/* .section/.section-head (los primitivos base de toda sección con
   título+texto centrado) viven en layout.css — ver el comentario ahí. */

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    min-height: clamp(520px, 78vh, 760px);
    display: flex;
    align-items: center;
}

@media (max-width: 767px) {
    .hero {
        min-height: 82vh;
    }
}

/* Bloque «Slider»: el mismo carrusel que la portada, pero más bajo para ir en medio de una página. */
.hero--slider {
    min-height: clamp(380px, 56vh, 560px);
}

@media (max-width: 767px) {
    .hero--slider {
        min-height: 60vh;
    }
}

.hero-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.9s ease;
    background-size: cover;
    background-position: center;
}

.hero-slide:before {
    content: "";
    position: absolute;
    z-index: 9;
    width: 100%;
    height: 100%;
    background-image: url(../../../../uploads/2026/07/bg-hero-sombra-animacion-1024x582.webp);
    background-size: cover;
    opacity: 0;
    animation: hero-fade-in 2.2s ease-out forwards;
}

/* Diapositiva con «Activar sombra» apagado: sin la sombra animada (:before); el overlay ni se imprime. */
.hero-slide--sin-sombra:before {
    display: none;
}

/* Con video y una imagen móvil: el fondo (lo que se ve mientras carga el video) cambia en celular. */
@media (max-width: 767px) {
    .hero-slide--movil {
        background-image: var(--hero-bg-movil) !important;
    }
}

/* Con video y una imagen para tablet: el fondo (lo que se ve mientras carga el video) cambia en tablet.
   Va antes que --movil para que en celular siga mandando la imagen móvil. */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-slide--tablet {
        background-image: var(--hero-bg-tablet) !important;
    }
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* El video entra con fundido cuando ya tiene fotogramas; mientras tanto
   se ve la imagen de portada (fondo de la diapositiva), no negro. */
video.hero-bg {
    opacity: 0;
    transition: opacity 0.6s ease;
}

video.hero-bg.is-listo {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-image: url(../../../../uploads/2026/07/bg-hero-sombra-video-1024x582.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-inner {
    position: relative;
    padding-block: 3rem;
    z-index: 9;
    opacity: 0;
    animation: hero-fade-in 2s ease-out 0.5s forwards;
}

@keyframes hero-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide:before,
    .hero-inner {
        animation: none;
        opacity: 1;
    }
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.15;
    max-width: 32rem;
}

.hero-title strong {
    font-weight: 800;
}

.hero-copy {
    margin-top: 1.5rem;
    max-width: 32rem;
    line-height: 1.6;
}

.hero-copy strong {
    font-weight: 700;
    color: var(--color-brand-red);
}

.hero-inner .btn {
    margin-top: 2rem;
}

/* «Color del texto: Claro» de una diapositiva (fondos oscuros). El rojo de las palabras resaltadas se mantiene. */
.hero-slide--texto-claro .hero-title,
.hero-slide--texto-claro .hero-copy {
    color: var(--color-white);
}

@media (min-width: 640px) {
    .hero-title {
        font-size: var(--text-display-h1);
    }
}

/* Hero: controles del slider (solo se pintan con 2+ diapositivas) */
.hero-controles {
    position: absolute;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
}

.hero-flecha {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--color-brand-red);
    color: var(--color-white);
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-flecha:hover,
.hero-flecha:focus,
.hero-flecha:active {
    background: var(--color-brand-red);
    color: var(--color-white);
}

.hero-flecha:hover:not([disabled]) {
    transform: scale(1.08);
}

.hero-flecha[disabled],
.hero-flecha[disabled]:hover,
.hero-flecha[disabled]:focus {
    background: var(--color-gray-03);
    color: var(--color-white);
    cursor: default;
}

@media (prefers-reduced-motion: reduce) {
    .hero-flecha {
        transition: none;
    }

    .hero-flecha:hover {
        transform: none;
    }
}

.hero-dots {
    display: flex;
    gap: 0.5rem;
}

.hero-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--color-white);
}

/* Stats */
.stats {
    padding-block: 4rem;
}

.stats-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.stats-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.stats-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    padding: 1em;
    background: rgb(255 255 255 / 47%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 50%;
    border: 2px solid rgb(255 255 255);
    box-shadow: 0 8px 20px 0 rgba(0, 0, 0, 0.08), inset 1px 1px 0px 0px rgba(255, 255, 255, 0.5);
}

.stats-icon img,
.stats-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.stats-item .stats-titulo {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
    font-size: var(--text-body);
}

.stats-item p {
    font-size: var(--text-body-sm);
    color: var(--color-body);
}

@media (min-width: 640px) {
    .stats-card {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .stats-item .stats-titulo {
        font-size: var(--text-body-lg);
    }

    .stats-item p {
        font-size: var(--text-body);
    }
}

/* Tienda */
.tienda {
    position: relative;
    overflow: hidden;
    background: var(--color-ink);
    color: var(--color-white);
    padding: 10rem 0 4rem;
}

.tienda-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.tienda-inner {
    align-items: flex-start;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tienda-logo {
    height: 3rem;
    width: auto;
    margin-bottom: 3rem;
}

.tienda-copy {
    max-width: 34rem;
}

.tienda-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-brand-red-sobre-oscuro);
}

.tienda-copy :where(h2, h1.ax-h1p) {
    margin-top: 0.5rem;
    font-weight: 400;
}

.tienda-copy p:last-child {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 1024px) {
    .tienda {
        padding-block: 4rem;
    }

    .tienda-inner {
        align-items: flex-end;
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Catálogos */
.catalogos-cta {
    position: relative;
    margin-top: 2.5rem;
    min-height: 20rem;
    display: flex;
    align-items: center;
    border-radius: var(--radius-large);
    background-color: var(--color-bg-muted);
    background-image: var(--bg-desktop);
    background-size: cover;
    background-position: center right;
    overflow: hidden;
    box-shadow: 12px 12px 39px 0 rgba(158, 158, 158, 0.22), 5px 10px 10px 0 rgba(233, 233, 233, 0.25) inset, -6px -8px 10px 0 rgba(248, 248, 248, 0.25) inset;

}

@media (max-width: 767px) {
    .catalogos-cta {
        background-image: var(--bg-mobile, var(--bg-desktop));
    background-position: bottom;
    }

    .catalogos-cta-copy {
        height: 560px;
    }
}

.catalogos-cta-copy {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2.5rem 2rem;
}

.catalogos-cta p {
    color: var(--color-body);
    max-width: 28rem;
}

.catalogos-cta .btn-whatsapp {
    align-self: flex-start;
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .catalogos-cta-copy {
        padding: 2.5rem 4rem;
    }
}

/* Divisiones */
#marcas {
    padding-bottom: 8rem;
}

.division-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.division-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 4.5rem;
    padding-inline: 1.5rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--color-white);
    background: var(--color-white);
    transition: all 0.15s ease;
    box-shadow: 5px 10px 10px 0 rgba(233, 233, 233, 0.25) inset, -6px -8px 10px 0 rgba(248, 248, 248, 0.25) inset;
}

.division-tab-logo {
    height: 4rem;
    max-width: 8.5rem;
    width: auto;
    object-fit: contain;
}

/* En teléfono las pestañas van de a dos por fila (cada una se estira a la
   mitad del ancho) y el logo se achica para caber; recién bajo 350px
   pasan a una por fila. */
@media (max-width: 767px) {
    .division-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .division-tab {
        padding-inline: 0.75rem;
    }

    .division-tab-logo {
        max-width: 100%;
    }
}

@media (max-width: 349px) {
    .division-tabs {
        grid-template-columns: 1fr;
    }
}

.division-tab[data-active="true"], .division-tab:hover {
    background: linear-gradient(281deg, rgba(255, 255, 255, 0.20) 31.36%, rgba(191, 157, 157, 0.20) 93.38%);
    box-shadow: 5px 10px 10px 0 rgba(233, 233, 233, 0.25) inset, -6px -8px 10px 0 rgba(248, 248, 248, 0.25) inset;
    filter: drop-shadow(12px 12px 39px rgba(158, 158, 158, 0.22));
}

.division-panel {
    align-items: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: left;
    position: relative;
    display: grid;
    margin-top: 2.5rem;
    border-radius: var(--radius-large);
    background-color: var(--color-white);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--color-border);
    overflow: hidden;
    min-height: 250px;
}

.division-panel[hidden] {
    display: none;
}

.division-panel-media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    min-height: 0;
    padding: 2rem;
    max-width: 500px;
}

/* Mientras el panel va apilado (logo arriba, texto abajo) el texto ya trae su
   propio padding superior: sumarle el de abajo del logo separaba de más. */
@media (max-width: 1023px) {
    .division-panel-media {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .division-logo {
        height: 5rem !important;
    }
}

.division-logo {
    position: relative;
    height: 8rem;
    max-width: 70%;
    width: auto;
    object-fit: contain !important;
}

.division-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.division-copy p {
    color: var(--color-body);
}

.division-copy strong {
    color: var(--color-ink);
}

/* Éxito: .casos-exito .section-head (alineación propia) vive en layout.css,
   junto con .section-head base — ver el comentario ahí. */

@media (min-width: 1024px) {
    .division-panel {
        grid-template-columns: 40% 60%;
    }

    .division-panel-media {
        height: 100%;
        justify-content: flex-end;
        min-height: 12rem;
        max-width: none;
    }

    .division-copy {
        padding: 2.5rem 3rem;
    }
}


/* «Banner de WhatsApp (catálogos)» va solo o debajo del carrusel de «Catálogos»: al ir pegado a este,
   las dos secciones se ven como una (sin el doble padding de en medio). */
.catalogos-banner .catalogos-cta {
    margin-top: 0;
}

.catalogos + .catalogos-banner {
    padding-top: 0;
}

.catalogos + .catalogos-banner .catalogos-cta {
    margin-top: 2.5rem;
}

.catalogos:has(+ .catalogos-banner) {
    padding-bottom: 0;
}
