/* ===================================
   AGROHOME - ESTILOS GENERALES
   =================================== */

/* Variables CSS - Colores Corporativos */
:root {
    --color-amarillo: #F4D35E;
    --color-verde: #8BC49C;
    --color-negro: #1A1A1A;
    --color-blanco: #FFFFFF;
    --color-gris-claro: #F5F5F5;
    --color-gris: #666666;
    --color-gris-oscuro: #2A2A2A;
}

/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-negro);
    background-color: var(--color-blanco);
}

/* Accesibilidad - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   HEADER Y NAVEGACIÓN
   =================================== */

.header {
    background-color: var(--color-blanco);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 20px;
}

.logo h1 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--color-negro);
    letter-spacing: 1px;
}

.logo .tagline {
    font-size: 0.875rem;
    color: var(--color-gris);
    margin-top: -5px;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

.header-highlights {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--color-gris);
}

.highlight-item .icon {
    font-size: 1.2rem;
}

.nav {
    border-top: 1px solid #eee;
    padding: 10px 0;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    justify-content: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--color-negro);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--color-verde);
}

/* ===================================
   BOTONES
   =================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-verde);
    color: var(--color-blanco);
    border-color: var(--color-verde);
}

.btn-primary:hover {
    background-color: #73a882;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 196, 156, 0.3);
}

.btn-secondary {
    background-color: var(--color-amarillo);
    color: var(--color-negro);
    border-color: var(--color-amarillo);
}

.btn-secondary:hover {
    background-color: #e8c34d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(244, 211, 94, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-negro);
    border-color: var(--color-negro);
}

.btn-outline:hover {
    background-color: var(--color-negro);
    color: var(--color-blanco);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    background-image: url('https://images.unsplash.com/photo-1574943320219-553eb213f72d?w=1600&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0;
    text-align: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(244, 211, 94, 0.9) 0%, rgba(139, 196, 156, 0.85) 100%);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--color-negro);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 40px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: var(--color-blanco);
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   FRANJA DE VALOR
   =================================== */

.value-strip {
    background-color: rgba(244, 211, 94, 0.15);
    padding: 60px 0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.value-item {
    text-align: center;
    padding: 30px 20px;
}

.value-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 15px;
}

.value-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--color-negro);
}

.value-item p {
    color: var(--color-gris);
    font-size: 1rem;
}

/* ===================================
   SECCIÓN FERRETERÍAS
   =================================== */

.ferreterias-section {
    padding: 0 0 80px 0;
    background-color: var(--color-blanco);
    border-left: 5px solid var(--color-amarillo);
    position: relative;
}

.section-image-banner {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 50px;
}

.section-image-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-negro);
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 1.8rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-gris);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.product-card {
    background-color: var(--color-blanco);
    border: 2px solid #eee;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    border-color: var(--color-amarillo);
    box-shadow: 0 5px 20px rgba(244, 211, 94, 0.3);
    transform: translateY(-5px);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.product-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--color-negro);
}

.product-card p {
    color: var(--color-gris);
    font-size: 0.95rem;
}

.section-cta {
    text-align: center;
    margin-top: 50px;
}

.cta-text {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--color-negro);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   SECCIÓN AGRICULTORES
   =================================== */

.agricultores-section {
    padding: 0 0 80px 0;
    background-color: rgba(139, 196, 156, 0.1);
    position: relative;
}

.products-grid-agro {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.highlights-agro {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.highlight-agro {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
}

.check-icon {
    font-size: 1.5rem;
}

/* ===================================
   CÓMO COMPRAR
   =================================== */

.como-comprar {
    padding: 80px 0;
    background-color: var(--color-gris-claro);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--color-negro);
    margin-bottom: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin: 50px 0;
}

.step-card {
    background-color: var(--color-blanco);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--color-verde);
    color: var(--color-blanco);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
}

.step-icon {
    font-size: 3.5rem;
    margin: 20px 0;
}

.step-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--color-negro);
}

.step-card p {
    color: var(--color-gris);
}

.opciones-compra {
    background-color: var(--color-blanco);
    border-radius: 10px;
    padding: 40px;
    margin-top: 40px;
}

.opciones-compra h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--color-negro);
}

.opciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.opcion-item {
    background-color: var(--color-gris-claro);
    padding: 20px;
    border-radius: 8px;
    font-weight: 500;
    border-left: 4px solid var(--color-verde);
}

/* ===================================
   POR QUÉ ELEGIRNOS
   =================================== */

.por-que-elegirnos {
    padding: 80px 0;
    background-color: var(--color-blanco);
}

.razones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.razon-card {
    text-align: center;
    padding: 30px 20px;
}

.razon-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.razon-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--color-negro);
}

.razon-card p {
    color: var(--color-gris);
    font-size: 1rem;
}

/* ===================================
   TESTIMONIOS
   =================================== */

.testimonios {
    padding: 80px 0;
    background-color: rgba(139, 196, 156, 0.08);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonio-card {
    background-color: var(--color-blanco);
    border-radius: 10px;
    padding: 35px 30px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.testimonio-avatar {
    font-size: 4rem;
    margin-bottom: 20px;
}

.testimonio-texto {
    font-style: italic;
    color: var(--color-gris-oscuro);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.testimonio-autor {
    font-weight: bold;
    color: var(--color-negro);
    margin-bottom: 5px;
}

.testimonio-cargo {
    color: var(--color-gris);
    font-size: 0.9rem;
}

/* ===================================
   CTA PRINCIPAL (FORMULARIO CONTACTO)
   =================================== */

.cta-principal {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-amarillo) 0%, #f5e08a 100%);
    text-align: center;
}

.cta-principal h2 {
    font-size: 2.8rem;
    color: var(--color-negro);
    margin-bottom: 15px;
}

.cta-subtitle {
    font-size: 1.3rem;
    color: var(--color-gris-oscuro);
    margin-bottom: 40px;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-blanco);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-verde);
}

.contact-form button {
    width: 100%;
    margin-top: 20px;
    font-size: 1.2rem;
    border: none;
}

/* ===================================
   PREGUNTAS FRECUENTES (FAQ)
   =================================== */

.faq {
    padding: 80px 0;
    background-color: var(--color-blanco);
}

.faq-accordion {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: var(--color-blanco);
    border: 2px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background-color: var(--color-gris-claro);
    border: none;
    padding: 20px 25px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(244, 211, 94, 0.2);
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--color-gris-oscuro);
    line-height: 1.7;
}

/* ===================================
   FOOTER
   =================================== */

.footer {
    background-color: var(--color-gris-oscuro);
    color: var(--color-blanco);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-tagline {
    color: var(--color-amarillo);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    margin-bottom: 15px;
}

.footer-description {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-col h4 {
    color: var(--color-amarillo);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--color-amarillo);
}

.contact-list li {
    color: #ccc;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.social-link:hover {
    color: var(--color-amarillo);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 0.9rem;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    /* Header */
    .header-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .header-highlights {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        background-color: var(--color-blanco);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid #eee;
    }

    .nav-menu li a {
        display: block;
        padding: 15px 20px;
    }

    /* Logo responsive */
    .logo-img {
        height: 45px;
    }

    .footer-logo-img {
        height: 40px;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Imágenes de sección */
    .section-image-banner {
        height: 200px;
    }

    /* Grid ajustes */
    .products-grid,
    .products-grid-agro {
        grid-template-columns: 1fr;
    }

    .value-grid,
    .steps-grid,
    .razones-grid {
        grid-template-columns: 1fr;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
    }

    /* Formulario */
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Títulos */
    .section-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header h3 {
        font-size: 1.4rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================================
   ANIMACIONES
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card,
.step-card,
.razon-card,
.testimonio-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth scroll para secciones */
section {
    scroll-margin-top: 120px;
}
