/* ===== Home / landing estándar =====
 * Estructura en bloques (hero, beneficios, categorías, destacados, story,
 * CTA, contacto). Pensada para ser visualmente fuerte sin librerías JS. */

.home { display: flex; flex-direction: column; gap: 4rem; padding-bottom: 0; }
/* La banda CTA cierra la home y se pega al footer (ambas oscuras). */
main.home { padding-bottom: 0; }
main.home + .site-footer { margin-top: 0; }

/* Las secciones de la home usan el .container global (90% del viewport,
 * capped por --container-max). Header y secciones quedan alineados. */
/* .container ahora hereda --container-max global (definido en base.css);
 * coincide con el max-width del header (1200px) → mismo ancho que cabecera. */

.home-section__head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 1rem; margin: 0 0 1.4rem;
    border-bottom: 1px solid #eef0f2; padding-bottom: .9rem;
}
.home-section__title {
    font-size: 1.7rem; font-weight: 800; letter-spacing: -.015em; margin: 0;
    color: #0f172a;
}
.home-section__link {
    color: #64748b; text-decoration: none; font-size: .9rem; font-weight: 600;
    transition: color .15s;
}
.home-section__link:hover { color: #0f172a; }

/* ============ Hero (slider) ============ */
.home-hero {
    /* Banner CONTENIDO: mismo ancho que el cuerpo (.container global: 90% /
       máx 1600px, centrado). Antes era full-bleed (ocupaba todo el viewport)
       y se salía de los bordes de la cabecera y las secciones de abajo. Ahora
       sus bordes quedan alineados con el resto del sitio. */
    width: var(--container-width, 90%);
    max-width: var(--container-max, 1600px);
    margin: 2rem auto 0; /* centrado + aire bajo el header sticky */
    position: relative;
    overflow: hidden;
    color: #fff;
    border-radius: 24px; /* coherente con .home-story__panel (mismo radio) */
    background: #0d2818; /* fallback verde oscuro debajo de los slides */
}
/* El hero YA es la columna (90%/1600px); el container interno no debe volver a
   angostar el contenido. El aire lateral lo da el padding del slide. */
.home-hero .container { width: 100%; max-width: none; }
.home-hero__viewport { position: relative; overflow: hidden; width: 100%; }
.home-hero__track { display: flex; transition: transform .6s cubic-bezier(.22, .61, .36, 1); will-change: transform; }
.home-hero__slide {
    flex: 0 0 100%;
    width: 100%;
    /* Altura contenida: menos alto muerto que antes, sigue imponente. */
    min-height: clamp(540px, 72vh, 780px);
    /* Gutter lateral propio del banner contenido (mismo criterio que
       .home-story__panel) para que el copy no toque el borde redondeado. */
    padding: 4.5rem clamp(1.4rem, 3.5vw, 3.25rem) 5rem;
    display: flex; align-items: center;
    position: relative;
    /* Gradiente de marca: verde profundo → verde del logo. */
    background: linear-gradient(135deg, #0d2818 0%, #14532d 55%, var(--brand-primary, #51af3f) 100%);
}
.home-hero__slide::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(800px 400px at 80% 20%, color-mix(in srgb, var(--brand-secondary, #a7dd98) 30%, transparent), transparent),
        radial-gradient(600px 400px at 10% 90%, rgba(255, 255, 255, .07), transparent);
    pointer-events: none;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-hero__slide::before {
        background:
            radial-gradient(800px 400px at 80% 20%, rgba(167, 221, 152, .28), transparent),
            radial-gradient(600px 400px at 10% 90%, rgba(255, 255, 255, .07), transparent);
    }
}
.home-hero__slide--image { background: linear-gradient(105deg, rgba(13,40,24,.9) 0%, rgba(13,40,24,.6) 42%, rgba(13,40,24,.18) 100%), var(--hero-img) center/cover no-repeat; }
.home-hero__slide--center .home-hero__inner { text-align: center; }
.home-hero__slide--center .home-hero__copy { margin: 0 auto; }
.home-hero__slide--center .home-hero__cta { justify-content: center; }
.home-hero__slide--right .home-hero__inner { text-align: right; }
.home-hero__slide--right .home-hero__copy { margin-left: auto; }
.home-hero__slide--right .home-hero__cta { justify-content: flex-end; }
.home-hero__inner { position: relative; z-index: 1; }
/* En desktop el copy se reserva ~55% del ancho para no invadir el form. */
.home-hero__copy { max-width: 600px; }
@media (min-width: 1181px) {
    .home-hero__copy { max-width: min(56%, 620px); }
}

/* ---- Barra inferior: contador + flechas + dots ---- */
.home-hero__controls {
    position: absolute;
    bottom: 1.5rem;
    left: 0; right: 0;
    display: flex; align-items: center; justify-content: center; gap: 1.1rem;
    z-index: 5;
    padding: 0 clamp(1rem, 4vw, 2.5rem);
}
/* Contador 01 / 05 — monoespaciado, alineado a la izquierda de los controles. */
.home-hero__count {
    display: inline-flex; align-items: baseline; gap: .25rem;
    font-variant-numeric: tabular-nums; font-weight: 700;
    letter-spacing: .02em; color: #fff;
}
.home-hero__count-cur { font-size: 1.05rem; }
.home-hero__count-sep { opacity: .5; margin: 0 .1rem; }
.home-hero__count-tot { font-size: .85rem; opacity: .6; }
.home-hero__navdots {
    display: flex; align-items: center; gap: .7rem;
}
.home-hero__nav {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #fff;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .2s ease, transform .2s ease, border-color .2s;
    padding: 0; flex-shrink: 0;
}
.home-hero__nav:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .35);
    transform: scale(1.08);
}
.home-hero__nav:active { transform: scale(.96); }
.home-hero__nav svg { display: block; width: 16px; height: 16px; }

/* ---- Dots modernos (pill que se expande al activo) ---- */
.home-hero__dots {
    display: flex; gap: .5rem;
    padding: .35rem .6rem;
    background: rgba(15, 23, 42, .3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
}
.home-hero__dot {
    position: relative; overflow: hidden;
    width: 22px;
    height: 5px;
    background: rgba(255, 255, 255, .4);
    border: 0; border-radius: 999px;
    cursor: pointer; padding: 0;
    transition: background .25s ease, width .35s ease;
}
.home-hero__dot:hover { background: rgba(255, 255, 255, .65); }
.home-hero__dot.is-active {
    /* Track tenue: el relleno blanco de adentro marca el progreso del autoplay. */
    background: rgba(255, 255, 255, .3);
    width: 46px;
}
/* Relleno de progreso (barra que crece durante el intervalo de autoplay). */
.home-hero__dot-fill {
    position: absolute; inset: 0; width: 0;
    background: #fff; border-radius: 999px;
}
.home-hero__dot.is-active .home-hero__dot-fill {
    animation: heroDotFill var(--hero-interval, 6s) linear forwards;
}
.home-hero.is-paused .home-hero__dot.is-active .home-hero__dot-fill {
    animation-play-state: paused;
}
@keyframes heroDotFill { from { width: 0; } to { width: 100%; } }

@media (max-width: 640px) {
    .home-hero__nav { width: 32px; height: 32px; }
    .home-hero__controls { bottom: 1rem; gap: .7rem; }
    .home-hero__count-cur { font-size: .95rem; }
    .home-hero__navdots { gap: .5rem; }
    .home-hero__dot.is-active { width: 38px; }
    .home-hero { margin-top: 1rem; border-radius: 18px; }
    .home-hero__slide {
        min-height: clamp(480px, 68vh, 640px);
        padding: 3.5rem clamp(1.1rem, 5vw, 1.5rem) 4rem;
    }
}
.home-hero__eyebrow {
    display: inline-block; margin: 0 0 1.1rem;
    padding: .35rem .75rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: #e2e8f0;
}
.home-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    line-height: 1.05; letter-spacing: -.02em; font-weight: 800;
    color: #fff;
}
.home-hero__subtitle {
    margin: 0 0 1.6rem;
    font-size: clamp(1.2rem, 1.8vw, 1.45rem);
    color: #fff; max-width: 560px; line-height: 1.55;
}
/* Garantiza color de texto sobre el gradient oscuro del hero. Sólo dentro del
   slide: la tarjeta de contacto (fuera del slide) tiene su propio texto oscuro. */
.home-hero { color: #fff; }
.home-hero__slide h1, .home-hero__slide h2, .home-hero__slide p { color: #fff; }

/* ---- Animación de entrada del copy (sólo con JS: .is-ready) ---- */
/* Sin JS todo queda visible; con JS el slide activo revela su contenido
   escalonado (fade + slide-up) cada vez que entra en pantalla. */
@media (prefers-reduced-motion: no-preference) {
    .home-hero.is-ready .home-hero__slide .home-hero__copy > * {
        opacity: 0; transform: translateY(16px);
    }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > * {
        animation: heroCopyIn .6s cubic-bezier(.22, .61, .36, 1) both;
    }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > *:nth-child(1) { animation-delay: .05s; }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > *:nth-child(2) { animation-delay: .13s; }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > *:nth-child(3) { animation-delay: .21s; }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > *:nth-child(4) { animation-delay: .29s; }
    .home-hero.is-ready .home-hero__slide.is-active .home-hero__copy > *:nth-child(5) { animation-delay: .37s; }
    @keyframes heroCopyIn { to { opacity: 1; transform: none; } }
}
.home-hero__slide p.home-hero__subtitle { color: #fff; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---- Puntos de confianza (iconos) bajo el subtítulo ---- */
.home-hero__points {
    list-style: none; margin: 0 0 1.6rem; padding: 0;
    display: flex; flex-wrap: wrap; gap: .55rem .7rem;
}
.home-hero__points li {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .95rem; font-weight: 600; color: #e7ecf1;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    padding: .45rem .9rem; border-radius: 999px;
}
.home-hero__point-ico {
    display: inline-flex; width: 16px; height: 16px; flex-shrink: 0;
    color: var(--brand-secondary, #a7dd98);
}
.home-hero__point-ico svg { width: 100%; height: 100%; }

/* ---- Formulario de contacto lateral (tarjeta moderna) ---- */
/* El right se ancla al borde del ancho local del hero (--hero-max) en vez del
   borde de la ventana, para que el form quede a una distancia controlada del
   copy y no flotando lejísimos en pantallas anchas. */
.home-hero__contact {
    position: absolute;
    top: 50%;
    right: calc((100vw - min(90vw, var(--hero-max, 1240px))) / 2 + 0.5rem);
    transform: translateY(-50%);
    width: min(390px, 90vw);
    z-index: 4;
}
.home-hero__contact-card {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    /* Más aire vertical (arriba y abajo) dentro de la tarjeta. */
    padding: 2.6rem 1.9rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
/* Cabecera: ícono a la izquierda del título. */
.home-hero__contact-head {
    display: flex; align-items: center; gap: .8rem;
    margin-bottom: .5rem;
}
.home-hero__contact-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 12%, #fff);
    color: var(--brand-primary, #3f8f30);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-hero__contact-badge { background: #eaf5e6; }
}
.home-hero__contact-badge svg { width: 22px; height: 22px; }
.home-hero__contact-title {
    margin: 0; font-size: 1.45rem; font-weight: 800;
    letter-spacing: -.01em; color: #0f172a;
}
.home-hero__contact-sub { margin: 0 0 1.4rem; font-size: 1rem; line-height: 1.5; color: #64748b; }
.home-hero__contact-error {
    margin: 0 0 1rem; padding: .6rem .85rem; border-radius: 10px;
    background: #fef2f2; color: #b91c1c; font-size: .9rem; font-weight: 600;
}
.home-hero__contact-form { display: flex; flex-direction: column; gap: .8rem; }
.home-hero__contact-form p { margin: 0; }
.home-hero__contact-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: .8rem;
}
.home-hero__contact-form input,
.home-hero__contact-form textarea {
    width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: .75rem .95rem; font-size: 1rem; color: #0f172a;
    background: #f8fafc; font-family: inherit;
    transition: border-color .15s, background .15s;
}
.home-hero__contact-form input:focus,
.home-hero__contact-form textarea:focus {
    outline: none; border-color: var(--brand-primary, #51af3f); background: #fff;
}
.home-hero__contact-form textarea { resize: vertical; min-height: 76px; }
.home-hero__contact-btn { width: 100%; justify-content: center; margin-top: .3rem; padding: .9rem 1.2rem; font-size: 1rem; }
.home-hero__contact-trust {
    display: flex; align-items: center; gap: .4rem;
    margin: .9rem 0 0; font-size: .8rem; justify-content: center; color: #64748b;
}
.home-hero__contact-trust svg { color: var(--brand-primary, #3f8f30); flex-shrink: 0; }
.home-hero__contact-icon--ok {
    width: 44px; height: 44px; border-radius: 50%;
    background: #ecfdf3; color: #16a34a;
    display: flex; align-items: center; justify-content: center; margin-bottom: .8rem;
}
.home-hero__contact-icon--ok svg { width: 22px; height: 22px; }

@media (max-width: 1180px) {
    .home-hero__inner .home-hero__copy { max-width: 100%; padding-right: 0; }
    .home-hero__contact {
        position: static; transform: none;
        /* Gutters laterales: la tarjeta nunca toca los bordes del viewport. */
        width: min(460px, calc(100% - 2.4rem));
        margin: 2.25rem auto 0;
        /* Aire inferior: el fondo verde del hero envuelve la tarjeta en vez
           de cortarla al ras del borde de la sección. */
        padding-bottom: 2.75rem;
    }
    .home-hero__slide { padding-bottom: 1rem; }
}
@media (max-width: 480px) {
    .home-hero__contact-row { grid-template-columns: 1fr; }
    .home-hero__contact-card { padding: 2.1rem 1.35rem 2.2rem; border-radius: 18px; }
    .home-hero__contact-title { font-size: 1.3rem; }
    .home-hero__contact-sub { font-size: .93rem; margin-bottom: 1.2rem; }
    .home-hero__contact-badge { width: 38px; height: 38px; }
}

/* Botones grandes / invertidos para la home (no rompen componentes base). */
.btn.btn--lg { padding: .95rem 1.6rem; font-size: 1rem; border-radius: 12px; }
.btn.btn--invert { background: #fff; color: var(--brand-primary, #0f172a); border: 0; }
.btn.btn--invert:hover { background: #f1f5f9; }
/* Acento de marca para badges/destacados en la home. */
.shop-card__badge { background: var(--brand-primary, #51af3f) !important; box-shadow: 0 6px 14px color-mix(in srgb, var(--brand-primary, #51af3f) 45%, transparent) !important; }
.home-hero .btn { font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.home-hero .btn--ghost { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255,255,255,.25); box-shadow: none; }
.home-hero .btn--ghost:hover { background: rgba(255, 255, 255, .16); }

/* ============ Beneficios ============ */
.home-benefits {
    display: grid; gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: -3rem; /* solapa con el hero */
    position: relative; z-index: 2;
}
.home-benefit {
    background: #fff;
    border: 1px solid #eef0f2;
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    display: flex; align-items: flex-start; gap: .9rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
}
.home-benefit__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 12%, #fff);
    color: var(--brand-primary, #51af3f);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-benefit__ico { background: #eaf7e6; color: #2f7a3a; }
}
.home-benefit__ico svg { width: 22px; height: 22px; }
.home-benefit__title { display: block; font-size: .98rem; color: #0f172a; }
.home-benefit__desc { margin: .15rem 0 0; color: #64748b; font-size: .85rem; line-height: 1.45; }

/* ============ Vendedores (tarjetas mega pro) ============ */
.home-section__link--static { cursor: default; }
.home-sellers { margin-top: 3.2rem; }
.home-sellers__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.4rem;
}
.home-seller {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: 1.6rem 1.6rem 1.5rem;
    border-radius: 20px;
    background:
        linear-gradient(165deg, color-mix(in srgb, var(--brand-primary, #51af3f) 8%, #fff) 0%, #fff 60%);
    border: 1px solid color-mix(in srgb, var(--brand-primary, #51af3f) 16%, #e6ebe4);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-seller:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -18px color-mix(in srgb, var(--brand-primary, #51af3f) 55%, rgba(15, 23, 42, .35));
    border-color: color-mix(in srgb, var(--brand-primary, #51af3f) 40%, #e6ebe4);
}
/* Halo decorativo superior derecho. */
.home-seller__glow {
    position: absolute;
    top: -60px; right: -50px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-primary, #51af3f) 30%, transparent) 0%, transparent 70%);
    pointer-events: none;
}
.home-seller__top { display: flex; align-items: center; gap: 1rem; position: relative; }
.home-seller__avatar {
    flex: 0 0 auto;
    width: 56px; height: 56px;
    border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.15rem; font-weight: 800; letter-spacing: .02em;
    color: #fff;
    background: linear-gradient(135deg, #14532d 0%, var(--brand-primary, #51af3f) 100%);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand-primary, #51af3f) 70%, transparent);
}
.home-seller__id { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.home-seller__name { font-size: 1.15rem; font-weight: 800; color: #0f172a; letter-spacing: -.01em; }
.home-seller__role {
    align-self: flex-start;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--brand-primary, #3f8f30);
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-primary, #51af3f) 22%, #fff);
    padding: .18rem .5rem;
    border-radius: 999px;
}
.home-seller__contacts {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: .7rem;
}
.home-seller__contacts li { display: flex; align-items: center; gap: .65rem; }
.home-seller__ico {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    color: var(--brand-primary, #3f8f30);
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 12%, #fff);
}
.home-seller__contacts a {
    color: #0f172a; text-decoration: none; font-size: 1.06rem; font-weight: 700;
    letter-spacing: -.01em; word-break: break-word; transition: color .15s;
}
.home-seller__contacts a:hover { color: var(--brand-primary, #3f8f30); }
.home-seller__cta {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .7rem 1rem;
    border-radius: 12px;
    font-weight: 700; font-size: .92rem;
    text-decoration: none;
    color: #fff;
    background: var(--brand-primary, #51af3f);
    box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--brand-primary, #51af3f) 70%, transparent);
    transition: transform .15s, box-shadow .15s, background .15s;
}
.home-seller__cta:hover { transform: translateY(-1px); background: var(--brand-primary-hover, #3f8f30); box-shadow: 0 12px 22px -8px color-mix(in srgb, var(--brand-primary, #51af3f) 80%, transparent); }

/* ============ Categorías (bento + overlay) ============ */
.home-cats__bento {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(6, 1fr);
    /* Filas con tope absoluto para que en monitores anchos no se
     * conviertan en bloques gigantes (rompía el equilibrio visual). */
    grid-auto-rows: clamp(200px, 18vw, 260px);
    /* Truco anti-celdas-vacías: cualquier hueco que deje el patrón se rellena
     * con el siguiente tile (evita columnas fantasmas a la derecha). */
    grid-auto-flow: dense;
}
/* Patrón bento para 6 categorías: 1 grande (0) arriba-izquierda, 2 medianas
 * apiladas (1,2) arriba-derecha, y 3 anchas iguales (3,4,5) en la fila de
 * abajo. Tapiza exacto una grilla 6×3 sin dejar celdas vacías. */
.home-cat--0 { grid-column: span 3; grid-row: span 2; }
.home-cat--1 { grid-column: span 3; grid-row: span 1; }
.home-cat--2 { grid-column: span 3; grid-row: span 1; }
.home-cat--3 { grid-column: span 2; grid-row: span 1; }
.home-cat--4 { grid-column: span 2; grid-row: span 1; }
.home-cat--5 { grid-column: span 2; grid-row: span 1; }

/* Buckets para < 6 categorías: el patrón estándar deja huecos enormes.
 * Cada bucket ajusta los spans para llenar la grilla sin desborde. */
.home-cats__bento--n1 { grid-template-columns: repeat(2, 1fr); }
.home-cats__bento--n1 .home-cat--0 { grid-column: span 2; grid-row: span 2; }

.home-cats__bento--n2 { grid-template-columns: repeat(2, 1fr); }
.home-cats__bento--n2 .home-cat--0,
.home-cats__bento--n2 .home-cat--1 { grid-column: span 1; grid-row: span 2; }

.home-cats__bento--n3 { grid-template-columns: repeat(4, 1fr); }
.home-cats__bento--n3 .home-cat--0 { grid-column: span 2; grid-row: span 2; }
.home-cats__bento--n3 .home-cat--1,
.home-cats__bento--n3 .home-cat--2 { grid-column: span 2; grid-row: span 1; }

.home-cats__bento--n4 { grid-template-columns: repeat(4, 1fr); }
.home-cats__bento--n4 .home-cat--0 { grid-column: span 2; grid-row: span 2; }
.home-cats__bento--n4 .home-cat--1 { grid-column: span 2; grid-row: span 1; }
.home-cats__bento--n4 .home-cat--2 { grid-column: span 1; grid-row: span 1; }
.home-cats__bento--n4 .home-cat--3 { grid-column: span 1; grid-row: span 1; }

.home-cats__bento--n5 { grid-template-columns: repeat(6, 1fr); }
.home-cats__bento--n5 .home-cat--0 { grid-column: span 3; grid-row: span 2; }
.home-cats__bento--n5 .home-cat--1 { grid-column: span 3; grid-row: span 1; }
.home-cats__bento--n5 .home-cat--2 { grid-column: span 3; grid-row: span 1; }
.home-cats__bento--n5 .home-cat--3 { grid-column: span 3; grid-row: span 1; }
.home-cats__bento--n5 .home-cat--4 { grid-column: span 3; grid-row: span 1; }

.home-cat {
    position: relative;
    display: flex; align-items: flex-end;
    border-radius: 18px;
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-cat:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(15,23,42,.15); }

/* Con imagen: scrim oscuro abajo para legibilidad. */
.home-cat--has-img .home-cat__img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    z-index: 0;
    transition: transform .5s ease;
}
.home-cat--has-img:hover .home-cat__img { transform: scale(1.06); }
.home-cat--has-img::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(15,23,42,0) 30%, rgba(15,23,42,.7) 100%);
    z-index: 1; transition: background .25s;
}
.home-cat--has-img:hover::after {
    background: linear-gradient(180deg, rgba(15,23,42,.15) 10%, rgba(15,23,42,.78) 100%);
}

/* Sin imagen: tarjeta clara minimalista, acento verde de marca (coherente con
   el resto del sitio). El ícono va como watermark tenue en verde. */
.home-cat--no-img {
    background: #f6faf4;
    border: 1px solid #e4eede;
}
.home-cat--no-img:hover {
    border-color: color-mix(in srgb, var(--brand-primary, #51af3f) 45%, transparent);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-cat--no-img:hover { border-color: #a7dd98; }
}
.home-cat__icon {
    position: absolute;
    top: 50%; left: 50%;
    width: 84px; height: 84px;
    transform: translate(-50%, -62%);
    color: color-mix(in srgb, var(--brand-primary, #51af3f) 26%, transparent);
    transition: transform .3s ease, color .3s ease;
    z-index: 1;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-cat__icon { color: rgba(81, 175, 63, .3); }
}
.home-cat__icon svg { width: 100%; height: 100%; }
.home-cat--no-img:hover .home-cat__icon { transform: translate(-50%, -66%) scale(1.05); color: var(--brand-primary, #51af3f); }
/* Texto oscuro sobre la tarjeta clara (pisa el blanco por defecto de .home-cat). */
.home-cat--no-img .home-cat__name { color: #0f172a; }
.home-cat--no-img .home-cat__kicker { color: var(--brand-primary, #3f8f30); opacity: 1; }
.home-cat--no-img .home-cat__cta { color: var(--brand-primary, #3f8f30); }
/* Tile chica: ícono más chico. */
.home-cat--1 .home-cat__icon,
.home-cat--2 .home-cat__icon,
.home-cat--3 .home-cat__icon,
.home-cat--4 .home-cat__icon,
.home-cat--5 .home-cat__icon { width: 64px; height: 64px; }

.home-cat__body {
    position: relative; z-index: 2;
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex; flex-direction: column; gap: .1rem;
    width: 100%;
}
.home-cat__kicker {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .8;
}
.home-cat__name {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.1;
    color: #fff;
}
.home-cat--0 .home-cat__name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.home-cat__cta {
    margin-top: .55rem;
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .85rem; font-weight: 600;
    opacity: 0; transform: translateY(4px);
    transition: opacity .25s ease, transform .25s ease;
}
.home-cat:hover .home-cat__cta { opacity: 1; transform: translateY(0); }

/* ---- Layout: Cuadros (grid uniforme) ---- */
.home-cats__grid {
    display: grid; gap: 1.2rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.home-cat--grid {
    /* Cuadrados perfectos: lucen "modernos" y son predecibles. */
    aspect-ratio: 1 / 1;
}

/* ---- Layout: Masonry (mosaico Pinterest) ----
 * Usa CSS columns (soporte universal). Cada tile mantiene su alto natural
 * y "varía" según su orden (patrón 3-tier de alturas). */
.home-cats__masonry {
    column-count: 4;
    column-gap: 1.2rem;
}
/* El <a> sigue siendo flex (heredado de .home-cat) — sólo nos aseguramos de
 * que no se parta entre columnas y que tenga espacio inferior. */
.home-cat--masonry {
    width: 100%;
    margin: 0 0 1.2rem;
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    height: 240px;
}
/* Alturas variables: ciclo de 3 para crear ritmo visual. */
.home-cats__masonry > .home-cat--masonry:nth-child(3n+1) { height: 320px; }
.home-cats__masonry > .home-cat--masonry:nth-child(3n+2) { height: 220px; }
.home-cats__masonry > .home-cat--masonry:nth-child(3n+3) { height: 280px; }

/* ---- Layout: Carrusel infinito ---- */
.home-cats__carousel {
    /* Wrapper relativo para anclar las flechas. */
    position: relative;
}
.home-cats__track {
    display: flex; gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    /* Aire lateral para que el primer/último tile no quede pegado al borde. */
    padding: .25rem .25rem 1.2rem;
    /* OJO: NO usar scroll-behavior:smooth aquí; rompería el "salto invisible"
     * que da la ilusión de scroll infinito (animaría el reposicionado). */
}
.home-cats__track::-webkit-scrollbar { display: none; }
.home-cat--carousel {
    flex: 0 0 280px;
    height: 320px;
    scroll-snap-align: start;
}
.home-cat--carousel .home-cat__cta { display: none; }

.home-cats__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(15, 23, 42, .08);
    color: #0f172a;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .15);
    transition: transform .15s ease, background .15s ease;
    z-index: 3;
}
.home-cats__nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.home-cats__nav--prev { left: -.4rem; }
.home-cats__nav--next { right: -.4rem; }
/* En táctil, las flechas estorban: se accede deslizando. */
@media (hover: none) {
    .home-cats__nav { display: none; }
}

/* Responsive: 4 col en tablet, 2 en mobile, todo span 1. */
@media (max-width: 960px) {
    .home-cats__bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 160px; }
    .home-cat--0 { grid-column: span 4; grid-row: span 2; }
    .home-cat--1, .home-cat--2 { grid-column: span 2; grid-row: span 1; }
    .home-cat--3 { grid-column: span 4; grid-row: span 1; }
    .home-cat--4, .home-cat--5 { grid-column: span 2; grid-row: span 1; }
    /* Buckets parciales en tablet: n2 se queda con sus 2 columnas, n3+ pasan a
     * 4 columnas con un destacado arriba + el resto en fila. */
    .home-cats__bento--n3,
    .home-cats__bento--n4,
    .home-cats__bento--n5 { grid-template-columns: repeat(4, 1fr); }
    .home-cats__bento--n3 .home-cat--0,
    .home-cats__bento--n4 .home-cat--0,
    .home-cats__bento--n5 .home-cat--0 { grid-column: span 4; grid-row: span 2; }
    .home-cats__bento--n3 .home-cat--1,
    .home-cats__bento--n3 .home-cat--2,
    .home-cats__bento--n4 .home-cat--1,
    .home-cats__bento--n4 .home-cat--2,
    .home-cats__bento--n4 .home-cat--3,
    .home-cats__bento--n5 .home-cat--1,
    .home-cats__bento--n5 .home-cat--2,
    .home-cats__bento--n5 .home-cat--3,
    .home-cats__bento--n5 .home-cat--4 { grid-column: span 2; grid-row: span 1; }
    .home-cats__masonry { column-count: 3; }
}
@media (max-width: 600px) {
    .home-cats__bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: .7rem; }
    .home-cat--0, .home-cat--1, .home-cat--2,
    .home-cat--3, .home-cat--4, .home-cat--5 { grid-column: span 2; grid-row: span 1; }
    .home-cat__icon { width: 56px !important; height: 56px !important; }
    .home-cat__body { padding: .9rem 1rem 1rem; }
    .home-cat__cta { opacity: 1; transform: none; }
    /* Buckets parciales en mobile: full width. */
    .home-cats__bento--n1,
    .home-cats__bento--n2,
    .home-cats__bento--n3,
    .home-cats__bento--n4,
    .home-cats__bento--n5 { grid-template-columns: repeat(2, 1fr); }
    .home-cats__bento--n1 .home-cat--0,
    .home-cats__bento--n2 .home-cat--0,
    .home-cats__bento--n2 .home-cat--1,
    .home-cats__bento--n3 .home-cat--0,
    .home-cats__bento--n3 .home-cat--1,
    .home-cats__bento--n3 .home-cat--2,
    .home-cats__bento--n4 .home-cat--0,
    .home-cats__bento--n4 .home-cat--1,
    .home-cats__bento--n4 .home-cat--2,
    .home-cats__bento--n4 .home-cat--3,
    .home-cats__bento--n5 .home-cat--0,
    .home-cats__bento--n5 .home-cat--1,
    .home-cats__bento--n5 .home-cat--2,
    .home-cats__bento--n5 .home-cat--3,
    .home-cats__bento--n5 .home-cat--4 { grid-column: span 2; grid-row: span 1; }
    .home-cats__grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
    .home-cats__masonry { column-count: 2; column-gap: .7rem; }
    .home-cat--masonry { height: 180px !important; margin-bottom: .7rem; }
    .home-cat--carousel { flex-basis: 220px; height: 260px; }
}

/* ============ Productos destacados ============
 * Reutiliza .shop-grid / .shop-card de shop.css. Agregamos badge "Oferta". */
.home-featured .shop-card { position: relative; }
.shop-card__badge {
    position: absolute; top: .7rem; left: .7rem;
    background: #ef4444; color: #fff;
    font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    padding: .25rem .55rem; border-radius: 999px;
    box-shadow: 0 6px 14px rgba(239, 68, 68, .35);
    z-index: 1;
}

/* ============ Storytelling / marca ============
 * Panel de marca con banda verde suave, textura de puntos, foto con marco
 * interior + badge/chip flotantes, kicker pill y bullets con íconos.
 * Reveal-on-scroll: el estado oculto solo aplica bajo .js-reveal (lo agrega
 * el script de la sección), así sin JS nada queda invisible. */
.home-story__panel {
    position: relative;
    overflow: hidden;
    display: grid; align-items: center;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 4.5vw, 4rem);
    padding: clamp(1.4rem, 3.5vw, 3.25rem);
    border-radius: 24px;
    background:
        radial-gradient(720px 340px at 88% -10%, color-mix(in srgb, var(--brand-secondary, #a7dd98) 38%, transparent), transparent 70%),
        linear-gradient(160deg, color-mix(in srgb, var(--brand-primary, #51af3f) 7%, #fff) 0%, #f7fbf6 55%, #fff 100%);
    border: 1px solid color-mix(in srgb, var(--brand-primary, #51af3f) 14%, #fff);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-story__panel { background: linear-gradient(160deg, #eef7ec 0%, #f7fbf6 55%, #fff 100%); border-color: #ddeed8; }
}
/* Textura de puntos en la esquina, recortada por el overflow del panel. */
.home-story__panel::before {
    content: ""; position: absolute; right: -40px; top: -40px;
    width: 320px; height: 260px;
    background-image: radial-gradient(rgba(81, 175, 63, .38) 1.5px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(closest-side at 65% 35%, #000, transparent);
            mask-image: radial-gradient(closest-side at 65% 35%, #000, transparent);
    pointer-events: none;
}
@media (max-width: 800px) { .home-story__panel { grid-template-columns: 1fr; } }
.home-story__media { position: relative; }
.home-story__media img,
.home-story__media--empty {
    width: 100%; aspect-ratio: 4/3; border-radius: 18px; object-fit: cover; display: block;
    box-shadow: 0 26px 50px -22px rgba(13, 40, 24, .45);
}
.home-story__media--empty { background: linear-gradient(135deg, #1e293b, #334155); }
/* Marco interior tipo passe-partout sobre la foto. */
.home-story__media-frame {
    position: absolute; inset: .8rem; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .55);
    pointer-events: none;
}
.home-story__chip {
    position: absolute; top: 1rem; right: 1rem; z-index: 1;
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border-radius: 999px; padding: .45rem .85rem;
    font-size: .78rem; font-weight: 700; color: #14532d;
    box-shadow: 0 10px 22px rgba(13, 40, 24, .18);
}
.home-story__chip svg { width: 16px; height: 16px; color: var(--brand-primary, #51af3f); flex: 0 0 auto; }
.home-story__badge {
    position: absolute; left: 1rem; bottom: 1rem; z-index: 1;
    display: flex; align-items: center; gap: .6rem;
    background: #fff; border: 1px solid #eef2ee; border-radius: 14px;
    padding: .65rem .95rem;
    box-shadow: 0 14px 30px rgba(13, 40, 24, .22);
}
.home-story__badge-num {
    font-size: 1.7rem; font-weight: 800; line-height: 1; letter-spacing: -.02em;
    color: var(--brand-primary, #51af3f);
}
.home-story__badge-txt { font-size: .74rem; font-weight: 600; color: #475569; line-height: 1.25; }
@media (prefers-reduced-motion: no-preference) {
    .home-story__badge { animation: homeStoryFloat 5.5s ease-in-out infinite; }
}
@keyframes homeStoryFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.home-story__kicker {
    display: inline-flex; align-items: center; gap: .45rem;
    margin: 0 0 1rem;
    font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
    color: var(--brand-primary, #3f8f30);
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-primary, #51af3f) 22%, #fff);
    padding: .4rem .85rem; border-radius: 999px;
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-story__kicker { background: #eef7ec; border-color: #cfe8c8; }
}
.home-story__kicker svg { width: 13px; height: 13px; flex: 0 0 auto; }
.home-story__title { font-size: clamp(1.9rem, 3.2vw, 2.4rem); font-weight: 800; margin: 0 0 1rem; color: #0f172a; letter-spacing: -.01em; }
.home-story__body { font-size: clamp(1.02rem, 1.15vw, 1.12rem); color: #475569; line-height: 1.7; margin: 0 0 1.5rem; max-width: 54ch; }
.home-story__feats { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: .9rem; }
.home-story__feat { display: flex; gap: .85rem; align-items: flex-start; }
.home-story__feat-ico {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center;
    background: color-mix(in srgb, var(--brand-primary, #51af3f) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-primary, #51af3f) 20%, #fff);
    color: var(--brand-primary, #3f8f30);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-story__feat-ico { background: #eef7ec; border-color: #d5ebcf; }
}
.home-story__feat-ico svg { width: 20px; height: 20px; }
.home-story__feat-txt { display: grid; gap: .15rem; }
.home-story__feat-txt strong { font-size: .98rem; font-weight: 700; color: #0f172a; }
.home-story__feat-txt > span { font-size: .92rem; color: #64748b; line-height: 1.5; }
/* Reveal-on-scroll (solo con JS y sin reduced-motion). */
@media (prefers-reduced-motion: no-preference) {
    .home-story.js-reveal [data-reveal] {
        opacity: 0; transform: translateY(22px);
        transition:
            opacity .65s ease var(--reveal-delay, 0s),
            transform .65s cubic-bezier(.22, .61, .36, 1) var(--reveal-delay, 0s);
    }
    .home-story.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
}
/* CTA del storytelling: usar el primario de marca con flechita que se desliza
 * al hover. El .btn base ya aporta el color (var(--color-primary) = brand). */
.home-story__cta {
    padding: .85rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    border-radius: 12px;
    gap: .55rem;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--color-primary, #0f0f10) 22%, transparent);
}
.home-story__cta svg { transition: transform .2s ease; }
.home-story__cta:hover svg { transform: translateX(3px); }
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-story__cta { box-shadow: 0 8px 18px rgba(15, 15, 16, .22); }
}

/* ============ Banda CTA final (newsletter) ============
 * Sección minimalista: gradient sutil de marca + grid de puntos como textura,
 * tipografía generosa centrada, form pill compacto. Sin íconos flotantes que
 * pelean con el texto. */
.home-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 5.5rem 0 6rem;
    background:
        radial-gradient(70% 80% at 20% 0%, color-mix(in srgb, var(--brand-primary, #51af3f) 28%, transparent), transparent 60%),
        radial-gradient(70% 80% at 100% 100%, color-mix(in srgb, var(--brand-primary, #51af3f) 18%, transparent), transparent 60%),
        linear-gradient(180deg, #0c2418 0%, #103324 100%);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    .home-cta {
        background:
            radial-gradient(70% 80% at 20% 0%, rgba(81, 175, 63, .26), transparent 60%),
            radial-gradient(70% 80% at 100% 100%, rgba(81, 175, 63, .16), transparent 60%),
            linear-gradient(180deg, #0c2418 0%, #103324 100%);
    }
}

/* Textura de puntos sutil — reemplaza a los sobres flotantes. */
.home-cta__decor {
    position: absolute; inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    background-position: 0 0;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
/* Las viejas .home-cta__icn quedan ocultas (la decoración nueva es CSS puro). */
.home-cta__icn { display: none; }

.home-cta__inner {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; align-items: center;
    gap: 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.home-cta__copy { width: 100%; }
.home-cta__title {
    margin: 0 0 .8rem;
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.15;
    color: #fff;
}
.home-cta__sub {
    margin: 0 auto;
    color: #cbd5e1;
    font-size: clamp(.98rem, 1.1vw, 1.08rem);
    line-height: 1.55;
    max-width: 540px;
}

/* Form pill: input + botón con misma altura visual y borde unificado. */
.home-cta__form {
    display: flex;
    gap: .5rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: .45rem;
    border-radius: 999px;
    width: 100%;
    max-width: 520px;
    transition: border-color .2s, background .2s;
}
.home-cta__form:focus-within {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
}
.home-cta__input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0 1rem;
    color: #fff;
    font: inherit;
    font-size: 1rem;
    min-width: 0;
    line-height: 1.2;
}
.home-cta__input::placeholder { color: rgba(203, 213, 225, .65); }
.home-cta__input:focus { outline: none; }
/* Botón dentro del pill: redondo, sin sombra que pelee con el wrapper. */
.home-cta__btn {
    padding: .75rem 1.5rem !important;
    font-size: .95rem !important;
    border-radius: 999px !important;
    flex-shrink: 0;
    box-shadow: none !important;
    background: var(--brand-primary, #10b981) !important;
    border-color: var(--brand-primary, #10b981) !important;
    color: #fff !important;
    font-weight: 600;
    transition: background .18s, transform .15s !important;
}
.home-cta__btn:hover {
    background: color-mix(in srgb, var(--brand-primary, #10b981) 88%, white) !important;
    transform: translateY(-1px);
}

.home-cta__alert {
    margin: 0;
    padding: .95rem 1.3rem;
    border-radius: 999px;
    font-weight: 500;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    color: #fff;
    width: 100%;
    max-width: 520px;
    text-align: center;
}
.home-cta__alert--err { background: rgba(239, 68, 68, .15); border-color: rgba(239, 68, 68, .35); color: #fecaca; }
.home-cta__alert--ok { background: rgba(16, 185, 129, .15); border-color: rgba(16, 185, 129, .35); color: #d1fae5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 720px) {
    .home-cta { padding: 4rem 0 4.5rem; }
    .home-cta__inner { gap: 1.5rem; }
    .home-cta__form {
        flex-direction: column;
        border-radius: 18px;
        padding: .6rem;
        gap: .55rem;
    }
    .home-cta__input { padding: .8rem 1rem; }
    .home-cta__btn {
        width: 100%;
        padding: .85rem 1.3rem !important;
        border-radius: 14px !important;
    }
    .home-cta__alert { border-radius: 14px; }
}
@media (max-width: 480px) {
    .home-cta { padding: 3.5rem 0 4rem; }
    .home-cta__title { font-size: clamp(1.4rem, 6.5vw, 1.8rem); }
    .home-cta__sub { font-size: .95rem; }
}

/* ============ Responsive tweaks ============ */
@media (max-width: 720px) {
    .home { gap: 2.5rem; }
    .home-hero { padding: 0; }
    .home-section__head { margin: 0 0 1rem; padding-bottom: .7rem; }
    .home-section__title { font-size: 1.4rem; }
    .home-section__link { font-size: .85rem; }

    /* Hero más compacto y proporcionado en mobile. */
    .home-hero__slide {
        min-height: clamp(440px, 65vh, 560px);
        padding: 3rem 0 4rem;
    }
    .home-hero__title { font-size: clamp(1.9rem, 7vw, 2.4rem); }
    .home-hero__subtitle { font-size: .98rem; margin-bottom: 1.5rem; }
    .home-hero__eyebrow { font-size: .72rem; padding: .3rem .65rem; margin-bottom: .9rem; }
    .home-hero__cta { gap: .6rem; flex-direction: column; align-items: stretch; }
    .home-hero__cta .btn { width: 100%; justify-content: center; text-align: center; }
    .home-hero__cta .btn--lg { padding: .85rem 1.3rem; font-size: .95rem; }
    .home-hero__slide--center .home-hero__cta,
    .home-hero__slide--right .home-hero__cta { align-items: stretch; }
    /* Chips de confianza: más compactos para que entren 2 por fila. */
    .home-hero__points { gap: .45rem; margin-bottom: 1.3rem; }
    .home-hero__points li { font-size: .82rem; padding: .38rem .7rem; }
    /* Controles del slider (contador + flechas + dots). */
    .home-hero__dots { padding: .3rem .5rem; }
    .home-hero__dot { width: 18px; }
    .home-hero__dot.is-active { width: 34px; }

    /* Beneficios: 2 columnas chicas y solapado más sutil. */
    .home-benefits {
        margin-top: -1.6rem;
        grid-template-columns: repeat(2, 1fr);
        gap: .7rem;
    }
    .home-benefit {
        padding: .85rem;
        gap: .65rem;
        border-radius: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    .home-benefit__ico { width: 36px; height: 36px; border-radius: 10px; }
    .home-benefit__ico svg { width: 18px; height: 18px; }
    .home-benefit__title { font-size: .88rem; }
    .home-benefit__desc { font-size: .78rem; margin-top: .1rem; }

    /* Storytelling: padding lateral consistente y CTA full-width opcional. */
    .home-story__panel { gap: 1.4rem; padding: 1rem 1rem 1.4rem; border-radius: 18px; }
    .home-story__panel::before { width: 220px; height: 180px; background-size: 15px 15px; }
    .home-story__title { font-size: 1.7rem; margin-bottom: .7rem; }
    .home-story__body { font-size: 1.02rem; line-height: 1.65; margin-bottom: 1.2rem; }
    .home-story__feats { gap: .75rem; margin-bottom: 1.4rem; }
    .home-story__feat-ico { width: 38px; height: 38px; border-radius: 10px; }
    .home-story__feat-ico svg { width: 18px; height: 18px; }
    .home-story__cta { width: 100%; justify-content: center; }
    .home-story__media img,
    .home-story__media--empty { aspect-ratio: 16/10; border-radius: 12px; }
    .home-story__media-frame { inset: .55rem; border-radius: 8px; }
    .home-story__chip { top: .7rem; right: .7rem; font-size: .72rem; padding: .35rem .7rem; }
    .home-story__badge { left: .7rem; bottom: .7rem; padding: .5rem .75rem; border-radius: 12px; }
    .home-story__badge-num { font-size: 1.35rem; }
    .home-story__badge-txt { font-size: .68rem; }

    /* CTA newsletter: reglas específicas viven en el bloque @media de la sección CTA. */
}
@media (max-width: 480px) {
    .home { gap: 2rem; }
    .home-hero__slide { min-height: clamp(380px, 60vh, 480px); padding: 2.4rem 1.25rem 3.4rem; }
    .home-hero__title { font-size: clamp(1.7rem, 7.5vw, 2.1rem); line-height: 1.1; }
    .home-hero__subtitle { font-size: .92rem; line-height: 1.5; margin-bottom: 1.2rem; }
    /* Beneficios: 1 columna a < 480 para que respiren. */
    .home-benefits { grid-template-columns: 1fr; margin-top: -1.2rem; }
    .home-benefit { flex-direction: row; padding: .85rem 1rem; }
    .home-benefit__title { font-size: .95rem; }
    .home-benefit__desc { font-size: .82rem; }
    .home-section__title { font-size: 1.25rem; }
}

/* ============================================================
   Nuestros clientes — marquesina de logos (placeholders por ahora)
   ============================================================ */
.home-clients {
    padding: 3rem 0 1rem;
    overflow: hidden;
}
.home-clients__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 1.8rem;
    color: var(--text, #1a2a22);
}
.home-clients__marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.home-clients__track {
    display: flex;
    width: max-content;
    gap: 1.2rem;
    animation: home-clients-scroll 28s linear infinite;
}
.home-clients__marquee:hover .home-clients__track { animation-play-state: paused; }
.home-clients__logo {
    flex-shrink: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-width: 240px;
    height: 140px;
    padding: 1.2rem 2rem;
    border: 1px solid var(--border, #e1ebdd);
    border-radius: 16px;
    background: #fff;
    color: #64748b;
    box-shadow: 0 1px 2px rgba(13, 31, 21, .04);
    transition: transform .2s, box-shadow .2s;
}
.home-clients__logo:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(13, 31, 21, .08); }
.home-clients__logo img { display: block; max-height: 84px; max-width: 200px; width: auto; object-fit: contain; }
.home-clients__name { font-weight: 700; font-size: 1rem; letter-spacing: .01em; color: #475569; }
@keyframes home-clients-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .home-clients__track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* =========================================================================
   Banda CTA final — botón de cotización (reemplaza el viejo form newsletter)
   ========================================================================= */
.home-cta__actions { display: flex; justify-content: center; }
.home-cta__actions .home-cta__btn { min-width: 260px; }

/* =========================================================================
   Modal "Cotiza tu packaging"
   Se abre desde cualquier [data-cotizar]. La tarjeta interna reusa los
   estilos .home-hero__contact-* (antes fija en el hero).
   ========================================================================= */
.cotizar-modal {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 1.2rem;
}
.cotizar-modal[hidden] { display: none; }
.cotizar-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(8, 20, 12, .58);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: cotizar-fade .2s ease;
}
.cotizar-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 2.4rem);
    overflow: auto;
    animation: cotizar-pop .26s cubic-bezier(.22, .61, .36, 1);
}
.cotizar-modal__dialog .home-hero__contact-card {
    margin: 0;
    padding: 2.9rem 2.6rem;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .4);
}
/* En el modal la tarjeta es más grande que cuando iba en el hero. */
.cotizar-modal__dialog .home-hero__contact-title { font-size: 1.75rem; }
.cotizar-modal__dialog .home-hero__contact-sub { font-size: 1.06rem; margin-bottom: 1.7rem; }
.cotizar-modal__dialog .home-hero__contact-form { gap: 1rem; }
.cotizar-modal__dialog .home-hero__contact-form input,
.cotizar-modal__dialog .home-hero__contact-form textarea { padding: .9rem 1.1rem; font-size: 1.03rem; }
.cotizar-modal__dialog .home-hero__contact-form textarea { min-height: 96px; }
.cotizar-modal__dialog .home-hero__contact-btn { padding: 1rem 1.3rem; font-size: 1.05rem; }
.cotizar-modal__close {
    position: absolute; top: .7rem; right: .7rem; z-index: 2;
    width: 38px; height: 38px; border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9; color: #334155;
    transition: background .15s, color .15s;
}
.cotizar-modal__close:hover { background: #e2e8f0; color: #0f172a; }
body.cotizar-open { overflow: hidden; }
@keyframes cotizar-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cotizar-pop {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cotizar-modal__backdrop, .cotizar-modal__dialog { animation: none; }
}
