/*
 * layout.css
 * ------------------------------------------------------------
 * Estructura general del sitio público de Biox Innovation:
 * container, header con logo, hero, secciones institucionales,
 * footer corporativo. UI reutilizable vive en components.css.
 * ------------------------------------------------------------
 */

/* ==========================================================
   Container
   ========================================================== */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: 880px;
}

/* ==========================================================
   Topbar (info corporativa)
   ========================================================== */
.topbar {
    background: linear-gradient(90deg, #0F2A48 0%, #14375E 100%);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    z-index: 60;
}

.topbar::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 50%, rgba(43, 169, 164, 0.18), transparent 40%);
    pointer-events: none;
}

.topbar__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    padding: 0.45rem 0;
    position: relative;
    z-index: 1;
    min-height: 36px;
}

.topbar__left,
.topbar__right {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    transition: color var(--transition);
    line-height: 1;
    letter-spacing: 0.01em;
}

.topbar__item:hover {
    color: var(--biox-teal-light);
}

.topbar__item--muted {
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-right: var(--space-md);
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.lang-switch__opt {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 0.15rem 0.35rem;
    border-radius: 4px;
    transition: color var(--transition), background var(--transition);
}

.lang-switch__opt:hover {
    color: var(--biox-teal-light);
}

.lang-switch__opt.is-active {
    color: #fff;
    background: rgba(43, 169, 164, 0.22);
    cursor: default;
}

.lang-switch__sep {
    opacity: 0.35;
    user-select: none;
}

@media (max-width: 720px) {
    .topbar__left { gap: var(--space-md); }
    .topbar__item--muted { display: none; }
    .topbar__hide-sm { display: none; }
    .lang-switch { padding-right: var(--space-sm); }
}
@media (max-width: 560px) {
    /* En mobile dejamos solo email + lang switch para evitar saturar */
    .topbar__left .topbar__item:nth-child(2),
    .topbar__left .topbar__item:nth-child(3) { display: none; }
    .topbar__item span:not(.topbar__hide-sm) {
        max-width: 180px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .topbar__inner { padding: 0.4rem 0; gap: var(--space-sm); }
    .lang-switch { font-size: 0.78rem; }
}

/* ==========================================================
   Site header
   ========================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition:
        border-color 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.96);
    border-bottom-color: var(--color-border);
    box-shadow: 0 4px 18px rgba(15, 42, 72, 0.06);
}

/* Default: logo centrado arriba + nav centrado abajo */
.site-header__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1.4rem 0 1rem;
    transition:
        padding 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        gap 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Scrolled: mismo layout, solo más compacto (sin saltos de estructura) */
.site-header.is-scrolled .site-header__inner {
    gap: 0.5rem;
    padding: 0.5rem 0 0.6rem;
}

.site-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-primary);
    text-decoration: none;
}

.site-header__brand:hover {
    color: var(--color-primary);
}

.site-header__logo {
    height: 88px;
    width: auto;
    display: block;
    transition: height 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.is-scrolled .site-header__logo {
    height: 56px;
}

.site-header__brand-text {
    display: none;
    font-family: var(--font-family-display);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--color-primary);
    text-transform: uppercase;
}

/* Nav: glass teal-tint, ancho completo, texto navy */
.site-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    background: linear-gradient(135deg, rgba(43, 169, 164, 0.10) 0%, rgba(20, 55, 94, 0.06) 100%);
    border: 1px solid rgba(43, 169, 164, 0.22);
    border-radius: 16px;
    padding: 0.45rem 0.55rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 14px 32px -16px rgba(15, 42, 72, 0.22);
    transition:
        padding 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        background 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        border-color 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 600ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-nav a {
    color: var(--color-primary);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.65rem 1.2rem;
    border-radius: 10px;
    position: relative;
    transition: color 200ms, background 200ms;
}

.site-nav a:hover {
    color: var(--color-primary);
    background: rgba(43, 169, 164, 0.12);
}

.site-nav__link--active {
    color: var(--color-primary) !important;
    background: rgba(43, 169, 164, 0.14);
}

.site-nav__link--active::after {
    content: "";
    position: absolute;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--biox-teal);
    border-radius: 2px;
}

.site-nav__cta {
    background: var(--color-primary);
    color: #fff !important;
    padding: 0.65rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.02em;
    transition: background 200ms, transform 200ms;
}

.site-nav__cta:hover {
    background: var(--biox-teal);
    color: #fff !important;
}

.site-nav__cta.site-nav__link--active {
    background: var(--color-primary);
}
.site-nav__cta.site-nav__link--active::after { display: none; }

/* Scrolled: bar se compacta apenas, mismo look */
.site-header.is-scrolled .site-nav {
    padding: 0.35rem 0.5rem;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 22px -14px rgba(15, 42, 72, 0.18);
}
.site-header.is-scrolled .site-nav a {
    padding: 0.5rem 1rem;
    font-size: 0.92rem;
}
.site-header.is-scrolled .site-nav__link--active::after {
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
}

@media (max-width: 880px) {
    .site-nav { gap: var(--space-md); }
    .site-nav__link { display: none; }
    .site-header__inner,
    .site-header.is-scrolled .site-header__inner {
        flex-direction: row;
        justify-content: center;
        padding: 0.6rem 0;
        gap: var(--space-md);
        position: relative;
    }
    .site-header__brand { margin: 0 auto; }
    .site-header__logo,
    .site-header.is-scrolled .site-header__logo { height: 40px; }

    /* La pill navy desaparece en mobile: solo queda el CTA "Contacto" anclado a la derecha */
    .site-nav,
    .site-header.is-scrolled .site-nav {
        width: auto;
        background: none;
        box-shadow: none;
        padding: 0;
        position: absolute;
        right: var(--container-padding, 1rem);
        top: 50%;
        transform: translateY(-50%);
    }
    .site-nav__cta {
        padding: 0.55rem 1.1rem;
        font-size: 0.85rem;
    }
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, rgba(43, 169, 164, 0.12), transparent 60%),
        linear-gradient(180deg, #FAFBFC 0%, #F1F5F8 100%);
    border-bottom: 1px solid var(--color-border);
}

/* Sin patrón de puntos — fondo limpio editorial */
.hero::before { display: none; }

/* Orbes flotantes con animación lenta */
.hero::after {
    content: "";
    position: absolute;
    bottom: -120px;
    right: -80px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(43, 169, 164, 0.22), transparent 65%);
    filter: blur(20px);
    animation: orb-drift 18s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes orb-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-40px, -30px) scale(1.08); }
}

/* Wave divider entre hero y siguiente sección */
.hero + .section,
.hero + .section--alt,
.hero + .trust {
    position: relative;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 880px) {
    .hero__grid { grid-template-columns: 1fr; }
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0;
    background: none;
    color: var(--biox-teal);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
}

.hero__eyebrow::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--biox-teal);
    border-radius: 0;
}

.hero__title {
    font-size: clamp(2rem, 3.6vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.028em;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 var(--space-md);
    max-width: 18ch;
}

.hero__title em {
    font-style: normal;
    color: var(--color-accent);
    background: linear-gradient(135deg, var(--biox-teal) 0%, #1FB8B0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero__lede {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 var(--space-lg);
    max-width: 40rem;
}

.hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

/* Strip de credibilidad debajo de los CTAs */
.hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(15, 42, 72, 0.1);
}

.hero__stat {
    flex: 0 1 auto;
    min-width: 0;
}

.hero__stat {
    margin: 0;
}

.hero__stat dt {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--biox-teal);
    margin-bottom: 0.35rem;
}

.hero__stat dd {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--color-primary);
    line-height: 1.3;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .hero__stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        padding-top: var(--space-md);
    }
}

.hero__visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    place-items: center;
}

/* Anillos concéntricos detrás del logo */
.hero__visual::before,
.hero__visual::after {
    content: "";
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(43, 169, 164, 0.25);
    pointer-events: none;
}

.hero__visual::after {
    inset: 18%;
    border-color: rgba(43, 169, 164, 0.35);
    border-style: dashed;
    animation: hero-spin 60s linear infinite;
}

@keyframes hero-spin {
    to { transform: rotate(360deg); }
}

.hero__visual-disc {
    position: absolute;
    inset: 25%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 25%, #ffffff 0%, #F4F8FB 60%, #E9F1F6 100%);
    box-shadow:
        0 30px 60px rgba(15, 42, 72, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: grid;
    place-items: center;
    z-index: 1;
}

.hero__visual img {
    width: 78%;
    height: auto;
    filter: drop-shadow(0 14px 28px rgba(15, 42, 72, 0.22));
}

/* Variante: hero visual con foto real (reemplaza el disco con logo)
   - Aspect-ratio horizontal que matchea la foto aérea (5:4).
   - overflow visible para que los badges sobresalgan sin cortarse.
   - Los badges quedan en las esquinas del card, dentro del viewport. */
/* Hero visual editorial:
   - Contenedor llena su columna sin restricción.
   - Aspect 4:3 horizontal, alineado al borde derecho.
   - Foto con Ken Burns sutil + float animation continuo.
   - Decoración acento detrás (formas suaves teal/lime). */
.hero__visual--photo {
    aspect-ratio: 4 / 3;
    max-width: none;
    width: 100%;
    border-radius: 0;
    overflow: visible;
    background: none;
    display: block;
    box-shadow: none;
    margin: 0;
    align-self: center;
    justify-self: stretch;
    isolation: isolate;
}

/* Acento decorativo detrás de la foto: forma teal blureada */
.hero__visual--photo::before {
    content: "";
    display: block;
    position: absolute;
    top: -8%;
    right: -6%;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle, rgba(43, 169, 164, 0.45), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
    animation: hero-orb-1 14s ease-in-out infinite alternate;
}
.hero__visual--photo::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -10%;
    left: -8%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.28), transparent 65%);
    filter: blur(40px);
    z-index: -1;
    border-radius: 50%;
    animation: hero-orb-2 18s ease-in-out infinite alternate;
}

@keyframes hero-orb-1 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(-12px, 18px) scale(1.08); }
}
@keyframes hero-orb-2 {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(15px, -12px) scale(1.1); }
}

/* La foto: Ken Burns + float continuo */
.hero__visual-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 20px;
    filter: none;
    box-shadow:
        0 40px 80px -24px rgba(15, 42, 72, 0.32),
        0 12px 32px -12px rgba(43, 169, 164, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    z-index: 1;
    transform-origin: center;
    animation:
        hero-photo-reveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) both,
        hero-photo-float 9s ease-in-out 1.4s infinite alternate;
    transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 600ms;
    will-change: transform;
}

/* Reveal inicial: aparece desde un poco abajo + zoom-in suave */
@keyframes hero-photo-reveal {
    from {
        opacity: 0;
        transform: translateY(24px) scale(1.06);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Float continuo: respiración sutil */
@keyframes hero-photo-float {
    from { transform: translateY(0) scale(1); }
    to   { transform: translateY(-8px) scale(1.012); }
}

/* Hover: zoom-in + sombra más intensa */
.hero__visual--photo:hover .hero__visual-photo {
    animation-play-state: paused;
    transform: translateY(-4px) scale(1.025);
    box-shadow:
        0 50px 100px -28px rgba(15, 42, 72, 0.4),
        0 16px 40px -12px rgba(43, 169, 164, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Badges flotantes sobre la foto editorial */
.hero__visual--photo .hero__badge {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 1px solid rgba(15, 42, 72, 0.08);
    border-radius: 999px;
    padding: 0.6rem 1.05rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    box-shadow:
        0 16px 32px -10px rgba(15, 42, 72, 0.22),
        0 4px 12px -2px rgba(15, 42, 72, 0.08);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    opacity: 0;
    animation:
        hero-badge-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards,
        hero-badge-float 5s ease-in-out infinite alternate;
}

.hero__visual--photo .hero__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--biox-leaf, #7CB342);
    box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.18);
    flex-shrink: 0;
}

.hero__visual--photo .hero__badge--teal {
    top: -16px;
    right: -16px;
    animation-delay: 0.6s, 0.6s;
}
.hero__visual--photo .hero__badge--teal::before {
    background: var(--biox-teal);
    box-shadow: 0 0 0 4px rgba(43, 169, 164, 0.2);
}

.hero__visual--photo .hero__badge--bottom {
    bottom: -16px;
    left: -16px;
    animation-delay: 0.9s, 0.9s;
    animation-direction: forwards, alternate-reverse;
}

@keyframes hero-badge-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes hero-badge-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-6px); }
}

/* En mobile los badges se acomodan dentro del card */
@media (max-width: 560px) {
    .hero__visual--photo .hero__badge {
        font-size: 0.74rem;
        padding: 0.5rem 0.85rem;
    }
    .hero__visual--photo .hero__badge--teal { top: 8px; right: 8px; }
    .hero__visual--photo .hero__badge--bottom { bottom: 8px; left: 8px; }
}

/* Respeto a usuarios con prefer-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero__visual-photo,
    .hero__visual--photo::before,
    .hero__visual--photo::after,
    .hero__visual--photo .hero__badge {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Badge flotante sobre el visual */
.hero__badge {
    position: absolute;
    top: 6%;
    right: -2%;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.95rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    z-index: 2;
    animation: badge-float 6s ease-in-out infinite alternate;
}

.hero__badge--bottom {
    top: auto;
    bottom: 8%;
    right: auto;
    left: -4%;
    animation-delay: -3s;
}

.hero__badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--biox-leaf);
    box-shadow: 0 0 0 4px rgba(124, 179, 66, 0.18);
}

.hero__badge--teal::before { background: var(--biox-teal); box-shadow: 0 0 0 4px rgba(43, 169, 164, 0.18); }

@keyframes badge-float {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}

@media (max-width: 880px) {
    .hero__visual { max-width: 320px; margin-top: var(--space-lg); }
    .hero__badge { font-size: 0.78rem; padding: 0.45rem 0.8rem; }
    /* Evitar que los badges se salgan del viewport en mobile */
    .hero__badge--teal { right: 4%; top: 4%; }
    .hero__badge--bottom { left: 4%; bottom: 6%; }
}

@media (max-width: 560px) {
    /* En pantallas chicas el visual del logo + anillos no aporta — lo ocultamos
       para que los CTAs respiren y no haya overlap con los badges flotantes */
    .hero__visual { display: none; }
}

/* ==========================================================
   Secciones
   ========================================================== */
.section {
    padding: clamp(3rem, 7vw, 5rem) 0;
}

.section--alt {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section--dark {
    background: linear-gradient(180deg, #0F2A48 0%, #14375E 100%);
    color: #DCE7F2;
}

.section--dark .section__title,
.section--dark .section__eyebrow {
    color: #fff;
}

.section--dark .section__lede {
    color: rgba(255, 255, 255, 0.78);
}

.section__head {
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    text-align: center;
}

.section__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--biox-teal);
    margin-bottom: var(--space-sm);
}

.section__eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section__head .section__eyebrow {
    display: inline-flex;
}

/* En section__head centrado, mostrar línea a ambos lados */
.section__head {
    text-align: center;
}

.section__head .section__eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    color: var(--color-primary);
    margin: 0 0 var(--space-md);
}

.section__lede {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin: 0;
}

/* ==========================================================
   Card grid (productos / servicios / valores)
   ========================================================== */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--biox-teal-light);
}

.card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(43, 169, 164, 0.15), rgba(124, 179, 66, 0.18));
    color: var(--biox-teal);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-md);
}

.card__icon svg {
    width: 26px;
    height: 26px;
}

.card__title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 0.4rem;
}

.card__body {
    color: var(--color-text-muted);
    margin: 0;
    font-size: 0.97rem;
}

/* ==========================================================
   Card variant: con foto en el header
   ========================================================== */
.card--photo {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card--photo .card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #F4F8FB, #E9F1F6);
}
.card--photo .card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms ease;
}
.card--photo:hover .card__media img {
    transform: scale(1.05);
}
.card--photo .card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(15, 42, 72, 0.18) 100%);
    pointer-events: none;
}
.card--photo .card__body-wrap {
    padding: var(--space-lg) var(--space-lg) var(--space-xl);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card--photo .product__tag {
    margin-top: 0;
    margin-bottom: 0.4rem;
}

/* ==========================================================
   Stats strip
   ========================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stats__item {
    padding: var(--space-md);
}

.stats__num {
    font-family: var(--font-family-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 700;
    color: var(--biox-teal-light);
    line-height: 1;
    display: block;
    margin-bottom: 0.4rem;
}

.section--dark .stats__label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

/* ==========================================================
   Contacto layout
   ========================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.contact-info p {
    color: var(--color-text-muted);
    margin: 0 0 var(--space-md);
}

.contact-info dl {
    margin: var(--space-lg) 0 0;
    display: grid;
    gap: var(--space-md);
}

.contact-info dt {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--biox-teal);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-info dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 500;
}

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-md);
}

/* ==========================================================
   Site footer
   ========================================================== */
.site-footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.72);
    padding: var(--space-2xl) 0 var(--space-lg);
    margin-top: 0;
    font-size: 0.93rem;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: var(--biox-teal-light);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 760px) {
    .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer__brand img {
    height: 56px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.site-footer__tagline {
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    max-width: 24rem;
}

.site-footer__col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 var(--space-md);
}

.site-footer__col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.site-footer__contact {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.site-footer__bottom {
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* ==========================================================
   Main
   ========================================================== */
main {
    padding-bottom: 0;
}

/* Lead form override dentro de la card de contacto */
.contact-form-wrap .lead-form { max-width: none; margin: 0; }
