/* =====================================================================
   CARRUSEL DE LA PORTADA (.t-hero--pro)
   Texto a la izquierda y, a la derecha, fotos reales: la foto cargada en
   el panel ocupando todo el lado, o tres productos del catálogo como
   tarjetas iguales (foto + nombre + precio debajo, nunca encima de la
   foto). Sin degradados, destellos ni figuras decorativas.
   Los controles (flechas, puntos, pausa) van juntos en una barra abajo a
   la izquierda: flotando sobre las fotos tapaban productos y texto.
   Los selectores llevan .t-hero--pro / .t-hs para ganarle a las reglas
   viejas de tienda.css y tienda-portada.css sin tocar esos archivos.
   Sólo tokens --t-*: el modo oscuro los redefine.
   ===================================================================== */

.tienda .t-hero.t-hero--pro {
    height: auto;
    max-height: none;
    overflow: clip;
    border: 1px solid var(--t-border);
    border-radius: var(--t-radius);
    background: var(--t-surface);
    box-shadow: var(--t-shadow-sm);
}

.tienda .t-hero--pro .t-slide.t-hs {
    height: 440px;
    max-height: none;
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    /* Fila fija: si el texto es largo no estira la diapositiva (y las
       fotos no se salen por abajo). */
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
    background: var(--t-surface);
    background-image: none;
    color: var(--t-ink);
}
.tienda .t-hero--pro .t-slide.t-hs[hidden] { display: none; }

/* ---------- Texto ---------- */
.t-hs__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 14px;
    padding: 32px 40px 84px 64px;
    min-width: 0;
}
.t-hs__eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--t-primary-ink, var(--t-primary));
}
/* Es un <p>: el único h1 de la portada es el titular de abajo y los
   títulos de las diapositivas no son secciones. Toma la letra de títulos. */
.tienda .t-hero--pro .t-hs__title {
    margin: 0;
    font-family: var(--t-font-display, Georgia, serif);
    font-weight: 400;
    font-size: clamp(2rem, 3.3vw, 3rem);
    line-height: 1.06;
    letter-spacing: -.015em;
    color: var(--t-ink);
    max-width: none;
}
.tienda .t-hero--pro .t-hs__title span { color: var(--t-ink); }
.tienda .t-hero--pro .t-hs__title .t-hs__highlight { color: var(--t-primary-ink, var(--t-primary)); }
.t-hs__text {
    margin: 0;
    max-width: 40ch;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--t-muted);
}
.t-hs__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.t-hs__tags:empty,
.t-hs__tags[hidden] { display: none; }
.t-hs__tags span {
    padding: 3px 10px;
    border: 1px solid var(--t-border);
    border-radius: 999px;
    font-size: .75rem;
    color: var(--t-ink);
}
.t-hs__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-top: 8px; }
.t-hs__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--t-primary);
    color: #fff;
    font-weight: 700;
    font-size: .93rem;
    text-decoration: none;
    transition: background .15s ease;
}
.t-hs__cta:hover { background: var(--t-primary-dark); color: #fff; }
.t-hs__secondary {
    color: var(--t-ink);
    font-weight: 600;
    font-size: .9rem;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--t-border);
}
.t-hs__secondary:hover { color: var(--t-primary); text-decoration-color: currentColor; }
.t-hs__cta[hidden],
.t-hs__secondary[hidden] { display: none; }

/* tienda-portada.css pinta el foco del hero en blanco (era para el fondo
   oscuro de antes); sobre este fondo claro no se veía. */
.tienda .t-hero--pro :is(a, button):focus-visible { outline: 3px solid var(--t-primary); outline-offset: 3px; }

/* ---------- Fotos de productos ---------- */
.t-hs__media {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 16px;
    padding: 28px;
    background: var(--t-surface-2);
    min-width: 0;
    min-height: 0;
}
.t-hs__media:empty { display: none; }

.t-hs__prod {
    flex: 1 1 0;
    max-width: 250px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: var(--t-ink);
}
.t-hs__prod-foto {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--t-border);
    border-radius: 14px;
    background: var(--t-surface);
}
/* Absoluta: una foto vertical no estira la diapositiva; el alto lo pone
   la tarjeta y la foto se recorta (cover) adentro. */
.t-hs__prod-foto img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.t-hs__prod:hover .t-hs__prod-foto img { transform: scale(1.03); }
.t-hs__prod-info {
    display: grid;
    gap: 2px;
    padding: 0 2px;
    min-width: 0;
}
.t-hs__prod-info strong {
    font-size: .84rem;
    font-weight: 600;
    color: var(--t-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.t-hs__prod-info em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--t-primary-ink, var(--t-primary)); }
.t-hs__prod:hover .t-hs__prod-info strong { text-decoration: underline; text-underline-offset: 3px; }

/* Foto cargada en el panel: ocupa todo el lado derecho. */
.t-hs__media.is-foto { position: relative; display: block; padding: 0; }
.t-hs__foto { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }

/* Arte de campaña: el espacio libre del banner deja el copy encima, a la
   izquierda. Una foto personalizada conserva el diseño dividido; el URL
   exacto del arte se reemplaza por el picture local de escritorio y móvil. */
.tienda .t-hero--pro .t-slide.t-hs.has-campaign-art {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--arte-fondo, #f4efe8);
    overflow: hidden;
}
.tienda .t-hero--pro .has-campaign-art .t-hs__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: var(--arte-fondo, #f4efe8);
}
.t-hs__campaign-art { position: absolute; inset: 0; display: block; }
.tienda .t-hero--pro .has-campaign-art .t-hs__copy {
    position: relative;
    z-index: 1;
    grid-column: 1;
    grid-row: 1;
    width: min(52%, 620px);
    padding-left: 64px;
}

/* El arte de campaña es una foto clara: el texto de encima no depende del
   tema (en oscuro, --t-ink es casi blanco y desaparecía sobre el arte). */
.tienda .t-hero--pro .has-campaign-art .t-hs__copy {
    --t-ink: #1d1620;
    --t-muted: #4d4551;
}

/* Primera diapositiva (portada): banner a todo el ancho estilo campaña. El arte
   (img/carrusel/portada-pro-*) es fucsia oscuro a la izquierda, así que en
   escritorio el texto va en blanco y más grande. En móvil el texto queda
   debajo de la foto, sobre la superficie normal: no se toca. */
@media (min-width: 861px) {
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art { --arte-fondo: #d60c76; }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__copy {
        --t-ink: #fff;
        --t-muted: rgba(255, 255, 255, .9);
        width: min(50%, 620px);
        gap: 14px;
    }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__eyebrow {
        color: #fff;
        letter-spacing: .22em;
    }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__title {
        font-size: clamp(2.2rem, 3.5vw, 3.2rem);
        line-height: 1.02;
        text-shadow: 0 2px 18px rgba(90, 0, 45, .25);
    }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__title .t-hs__highlight { color: #ffd6ea; }
    /* Un solo mensaje, como un banner de campaña: sin etiquetas. */
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__tags { display: none; }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__cta {
        background: #fff;
        color: #b3085f;
        box-shadow: 0 8px 22px rgba(90, 0, 45, .25);
    }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__cta:hover { background: #ffe3f0; color: #8f0650; }
    .tienda .t-hero--pro :is([data-slide="banner"], [data-slide="feature"]).has-campaign-art .t-hs__secondary { color: #fff; text-decoration-color: rgba(255, 255, 255, .6); }
    /* Controles sobre el fucsia: fondo blanco para que se vean. */
    .tienda .t-hero--pro:has(:is([data-slide="banner"], [data-slide="feature"]).has-campaign-art[aria-hidden="false"]) .t-hero__controles button { background: #fff; }
}

/* Cada campaña con arte propio lleva su color: antetítulo, segunda línea del
   título y botón. Los colores salen de los productos (bandera, tortuga,
   bordó de la botita, Spider-Man…), no de la marca, y son planos: sin
   degradados. Sin --acento* la diapositiva usa el fucsia de la tienda. */
.tienda .t-hero--pro .has-campaign-art .t-hs__eyebrow { color: var(--acento-txt, var(--t-primary-ink, var(--t-primary))); }
.tienda .t-hero--pro .has-campaign-art .t-hs__title .t-hs__highlight { color: var(--acento2, var(--t-primary-ink, var(--t-primary))); }
.tienda .t-hero--pro .has-campaign-art .t-hs__cta { background: var(--acento, var(--t-primary)); }
.tienda .t-hero--pro .has-campaign-art .t-hs__cta:hover { background: var(--acento-osc, var(--t-primary-dark)); }
.tienda .t-hero--pro [data-slide="hinchada-paraguay"] { --acento: #d52b1e; --acento-osc: #b8241a; --acento-txt: #b8241a; --acento2: #0038a8; }
.tienda .t-hero--pro [data-slide="animalitos-para-regalar"] { --acento: #7a4a2e; --acento-osc: #5e3720; --acento-txt: #6b3f26; --acento2: #7a4a2e; }
.tienda .t-hero--pro [data-slide="parches-acne"] { --acento: #c2185b; --acento-osc: #9c1249; --acento-txt: #a3134c; --acento2: #c2185b; }
.tienda .t-hero--pro [data-slide="pantuflas-en-casa"] { --acento: #8c1d3a; --acento-osc: #6d152c; --acento-txt: #8c1d3a; --acento2: #8c1d3a; }
.tienda .t-hero--pro [data-slide="pantuflas-animales"] { --acento: #2f7d3a; --acento-osc: #235f2c; --acento-txt: #266a30; --acento2: #2f7d3a; }
.tienda .t-hero--pro [data-slide="heroes-aracnidos"] { --acento: #c8102e; --acento-osc: #a30d26; --acento-txt: #b30e29; --acento2: #14206b; }
.tienda .t-hero--pro [data-slide="conjunto-bebe"] { --acento: #8a6500; --acento-osc: #6b4f00; --acento-txt: #735500; --acento2: #8a6500; }
.tienda .t-hero--pro [data-slide="pantufla-cars"] { --acento: #b32630; --acento-osc: #8f1c25; --acento-txt: #a51f29; --acento2: #f2cd3d; }
.tienda .t-hero--pro [data-slide="remera-snoopy"] { --acento: #55735c; --acento-osc: #3f5b47; --acento-txt: #47644e; --acento2: #80967b; }
@media (min-width: 861px) {
    /* El arte ocupa la mitad derecha: el texto no pasa de ahí. */
    .tienda .t-hero--pro .has-campaign-art .t-hs__copy { width: min(46%, 540px); }
    .tienda .t-hero--pro .has-campaign-art .t-hs__title { font-size: clamp(1.75rem, 2.9vw, 2.6rem); }
}

/* ---------- Controles: una barra, abajo a la izquierda ---------- */
.tienda .t-hero--pro .t-hero__controles {
    position: absolute;
    left: 64px;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tienda .t-hero--pro .t-hero__controles :is(.t-hero__dots, .t-hero__arrow, .t-hero__pause) {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    margin: 0;
}
.tienda .t-hero--pro .t-hero__controles :is(.t-hero__arrow, .t-hero__pause) {
    display: inline-grid;
    place-items: center;
    width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    padding: 0;
    border: 1px solid var(--t-border) !important;
    border-radius: 50%;
    background: var(--t-surface) !important;
    color: var(--t-ink) !important;
    box-shadow: none;
    backdrop-filter: none;
    opacity: 1;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.tienda .t-hero--pro .t-hero__controles :is(.t-hero__arrow, .t-hero__pause):hover {
    border-color: var(--t-primary) !important;
    color: var(--t-primary) !important;
}
.tienda .t-hero--pro .t-hero__controles .t-hero__arrow svg { width: 16px; height: 16px; }
.tienda .t-hero--pro .t-hero__controles .t-hero__pause svg { width: 12px; height: 12px; }
.tienda .t-hero--pro .t-hero__controles .t-hero__pause { margin-left: 8px; }
.tienda .t-hero--pro .t-hero__dots { display: flex; gap: 4px; padding: 0 6px; }
.tienda .t-hero--pro .t-hero__dots button::before { background: var(--t-border); }
.tienda .t-hero--pro .t-hero__dots button::after,
.tienda .t-hero--pro .t-hero__dots button.is-active::before { background: var(--t-primary); }
.tienda .t-hero--pro .t-hero__dots button.is-active::before { opacity: .4; }

/* ---------- Pantallas medianas: texto más justo ---------- */
@media (max-width: 1100px) and (min-width: 861px) {
    .tienda .t-hero--pro .t-slide.t-hs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .t-hs__copy { padding-left: 44px; padding-right: 28px; }
    .t-hs__tags { display: none; }
    .t-hs__media { padding: 22px; gap: 12px; }
    /* Con la mitad del ancho, tres tarjetas quedan como tiras: van dos. */
    .t-hs__prod:nth-child(3) { display: none; }
    .tienda .t-hero--pro .t-hero__controles { left: 44px; }
}

/* ---------- Tablet y celular: fotos arriba, texto abajo ---------- */
@media (max-width: 860px) {
    .tienda .t-hero--pro .t-slide.t-hs {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        max-height: none;
        min-height: 0;
        align-content: start;
    }
    .t-hs__media {
        order: -1;
        padding: 12px;
        gap: 8px;
    }
    .tienda .t-hero--pro .t-slide.t-hs.has-campaign-art {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        height: auto;
    }
    .tienda .t-hero--pro .has-campaign-art .t-hs__media {
        position: relative;
        inset: auto;
        grid-column: 1;
        grid-row: 1;
        order: -1;
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
        max-height: none;
    }
    .tienda .t-hero--pro .has-campaign-art .t-hs__copy {
        grid-column: 1;
        grid-row: 2;
        width: auto;
    }
    .t-hs__prod { max-width: none; gap: 6px; }
    .t-hs__prod-foto { flex: none; aspect-ratio: 1 / 1; border-radius: 12px; }
    .t-hs__prod-info strong { font-size: .76rem; }
    .t-hs__prod-info em { font-size: .74rem; }
    /* Foto cargada: 16:9; con 1600×1000 y el producto al centro, el
       recorte no le come nada importante. */
    .t-hs__media.is-foto { aspect-ratio: 16 / 9; max-height: 320px; }
    .t-hs__copy { padding: 16px 20px 62px; gap: 8px; }
    .tienda .t-hero--pro .t-hs__title { font-size: clamp(1.55rem, 6.4vw, 2.1rem); max-width: none; }
    .t-hs__text {
        font-size: .92rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .t-hs__tags { display: none; }
    .t-hs__actions { margin-top: 4px; }
    .tienda .t-hero--pro .t-hero__controles { left: 16px; bottom: 16px; }
}
@media (max-width: 560px) {
    /* Fotos chicas: sólo el precio, el nombre no entra. */
    .t-hs__prod-info strong { display: none; }
    .t-hs__prod-info { text-align: center; }
    .t-hs__secondary { font-size: .85rem; }
}

@media (max-width: 430px) {
    /* Los puntos nuevos no deben empujar la pausa fuera del hero. */
    .tienda .t-hero--pro .t-hero__controles { left: 16px; right: 16px; gap: 4px; }
    .tienda .t-hero--pro .t-hero__dots { flex: 1 1 auto; min-width: 0; gap: 1px; padding: 0; overflow: hidden; }
    .tienda .t-hero--pro .t-hero__dots button,
    .tienda .t-hero--pro .t-hero__dots button.is-active { flex: 1 1 0; min-width: 0; width: auto !important; max-width: none; }
    .tienda .t-hero--pro .t-hero__dots button.is-active { flex-grow: 1.4; }
    .tienda .t-hero--pro .t-hero__controles .t-hero__pause { flex: 0 0 36px; margin-left: 0 !important; }
}

@media (max-width: 350px) {
    /* Con diez o más slides, los controles deben caber en 320 px. */
    .tienda .t-hero--pro .t-hero__dots { gap: 1px; padding: 0; }
}

/* El tema oscuro pinta todos los puntos con blanco translúcido y
   !important (tienda.css); el activo tiene que seguir marcándose. */
body.tienda[data-theme="dark"] .t-hero--pro .t-hero__dots button.is-active::before { background: var(--t-primary) !important; }
