/* ===================================
   PEQUEGANGA — Estilos principales
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --green-dark: #2D5A3D;
    --green-mid: #4A7C5C;
    --green-light: #7FB069;
    --green-pale: #E8F5E4;
    --cream: #F5F0E8;
    --cream-light: #FAF7F2;
    --white: #FFFFFF;
    --text-dark: #1A2E23;
    --text-mid: #3D5A47;
    --text-light: #6B8A74;
    --text-muted: #9BB5A4;
    --border: #E0EBE0;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 2px 8px rgba(45, 90, 61, 0.06);
    --shadow-md: 0 4px 24px rgba(45, 90, 61, 0.10);
    --shadow-lg: 0 8px 40px rgba(45, 90, 61, 0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--cream-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--green-dark);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    z-index: 1000;
    font-weight: 500;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 16px;
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text-dark);
}

em {
    font-style: italic;
    color: var(--green-dark);
}

/* --- Section shared --- */
.section {
    padding: 100px 0;
}

.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.7;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn--primary {
    background: var(--green-dark);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(45, 90, 61, 0.3);
}

.btn--primary:hover {
    background: var(--green-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(45, 90, 61, 0.35);
}

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
    justify-content: center;
}

/* ===================================
   HEADER
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all var(--transition);
}

.header.scrolled {
    background: rgba(245, 240, 232, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: var(--text-dark);
    transition: opacity var(--transition);
}

.logo:hover {
    opacity: 0.8;
}

.logo__text--light {
    color: var(--cream);
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav__list {
    display: flex;
    gap: 8px;
}

.nav__link {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-mid);
    transition: all var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--green-dark);
    background: var(--green-pale);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--green-dark);
    transition: all var(--transition);
}

.nav__cta:hover {
    background: var(--green-mid);
    transform: translateY(-1px);
}

/* Nav toggle (mobile) */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.nav-toggle__line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition);
    transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   HERO
   =================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #2D5A3D 0%,
        #3D7A52 25%,
        #4A9B64 50%,
        #6BB882 75%,
        #8EC5A0 100%
    );
    z-index: 0;
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(127, 176, 105, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(74, 124, 92, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 70%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 46, 35, 0.15);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding: 120px 24px 80px;
    max-width: 780px;
}

.hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(245, 240, 232, 0.7);
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero__title em {
    color: var(--cream);
    font-style: italic;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(245, 240, 232, 0.8);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.hero__badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(245, 240, 232, 0.9);
    font-size: 0.82rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(245, 240, 232, 0.5);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: float 2.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===================================
   NOSOTROS
   =================================== */
.nosotros {
    background: var(--cream-light);
}

.nosotros__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.nosotros__media {
    position: relative;
}

.nosotros__img-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.nosotros__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.nosotros__img-wrapper:hover img {
    transform: scale(1.03);
}

.nosotros__img-secondary {
    position: absolute;
    bottom: -40px;
    right: -30px;
    width: 55%;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--cream-light);
}

.nosotros__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nosotros__text {
    padding: 20px 0;
}

.nosotros__text p {
    color: var(--text-mid);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.nosotros__stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat__number {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    color: var(--green-dark);
    line-height: 1.2;
}

.stat__label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ===================================
   PRODUCTOS
   =================================== */
.productos {
    background: var(--white);
}

.productos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.card-product {
    background: var(--cream-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    border: 1px solid transparent;
}

.card-product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border);
}

.card-product__img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
}

.card-product__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card-product:hover .card-product__img img {
    transform: scale(1.05);
}

.card-product__tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--white);
    color: var(--green-dark);
    box-shadow: var(--shadow-sm);
}

.card-product__tag--accent {
    background: var(--green-dark);
    color: var(--white);
}

.card-product__body {
    padding: 24px;
}

.card-product__name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.card-product__desc {
    font-size: 0.92rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-product__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--green-dark);
    transition: gap var(--transition);
}

.card-product__link:hover {
    gap: 10px;
}

/* ===================================
   VALORES
   =================================== */
.valores {
    background: var(--cream);
}

.valores__inner {
    max-width: 900px;
}

.valores__content {
    text-align: center;
    margin-bottom: 60px;
}

.valores__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.valor {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.valor:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--green-light);
}

.valor__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--green-pale);
}

.valor__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.valor__desc {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   CONTACTO
   =================================== */
.contacto {
    background: var(--cream-light);
}

.contacto__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contacto__desc {
    color: var(--text-light);
    margin-bottom: 32px;
    font-size: 1.02rem;
}

.contacto__details {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 32px;
}

.contacto__item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto__item dt {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
    min-width: 120px;
}

.contacto__item dd {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.6;
}

.contacto__item a {
    color: var(--green-mid);
    transition: color var(--transition);
}

.contacto__item a:hover {
    color: var(--green-dark);
}

.contacto__map {
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* --- Form --- */
.form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.form__title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    margin-bottom: 6px;
}

.form__hint {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.form__group {
    margin-bottom: 20px;
}

.form__label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.form__optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--cream-light);
    transition: all var(--transition);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--green-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 124, 92, 0.12);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: var(--text-muted);
}

.form__textarea {
    resize: vertical;
    min-height: 120px;
}

.form__success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    margin-top: 20px;
    border-radius: var(--radius-md);
    background: var(--green-pale);
    border: 1px solid var(--border);
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.form__success p {
    font-size: 0.95rem;
    color: var(--green-dark);
    font-weight: 500;
}

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

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--green-dark);
    color: var(--cream);
    padding: 48px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer__copy {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.6);
    margin-top: 8px;
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: 24px;
}

.footer__links a {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--transition);
}

.footer__links a:hover {
    color: var(--white);
}

.footer__contact {
    display: flex;
    gap: 20px;
}

.footer__contact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color var(--transition);
}

.footer__contact a:hover {
    color: var(--white);
}

/* ===================================
   SCROLL ANIMATIONS
   =================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1024px) {
    .nosotros__grid {
        gap: 40px;
    }

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

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--cream-light);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 8px;
        transform: translateX(100%);
        transition: transform var(--transition);
        box-shadow: -8px 0 32px rgba(0,0,0,0.1);
        z-index: 105;
    }

    .nav.open {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .nav__link {
        font-size: 1.1rem;
        padding: 12px 24px;
    }

    .nav__cta {
        margin-top: 16px;
    }

    /* Overlay */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(26, 46, 35, 0.4);
        z-index: 104;
    }

    .nav-overlay.active {
        display: block;
    }

    /* Hero */
    .hero__content {
        padding: 100px 20px 80px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Nosotros */
    .nosotros__grid {
        grid-template-columns: 1fr;
    }

    .nosotros__media {
        order: -1;
    }

    .nosotros__img-secondary {
        right: -10px;
        bottom: -20px;
        width: 50%;
    }

    .nosotros__stats {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Productos */
    .productos__grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }

    /* Valores */
    .valores__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .valor {
        padding: 24px 16px;
    }

    /* Contacto */
    .contacto__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form {
        padding: 28px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero__title {
        font-size: 2.2rem;
    }

    .hero__badges {
        flex-direction: column;
        align-items: center;
    }

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

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer__contact {
        flex-direction: column;
        align-items: center;
    }
}
