/* ==========================================================================
   Afiche Promocional CSS - Sábado de Sabores (De Jessi)
   Proporción vertical móvil 9:16 responsiva basada en Container Queries (cqi)
   y variables exclusivas de la Paleta Corporativa Configurada
   ========================================================================== */

.afiche-sabado-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.afiche-sabado-link:hover,
.afiche-sabado-link:focus-visible {
    transform: translateY(-4px) scale(1.015);
    color: inherit;
    text-decoration: none;
}

.afiche-sabado {
    background: var(--brand-bg);
    width: 100%;
    max-width: 310px;
    aspect-ratio: 9 / 16;
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 14px 32px rgba(var(--afiche-accent-rgb, var(--brand-primary-rgb)), 0.22);
    border: 2px solid var(--brand-accent-yellow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    color: var(--brand-text);
}

.afiche-sabado-link:hover .afiche-sabado {
    box-shadow: 0 18px 38px rgba(var(--afiche-accent-rgb, var(--brand-primary-rgb)), 0.36);
}

.afiche-sabado--compact {
    max-width: 280px;
}

.afiche-sabado--showcase {
    max-width: 340px;
    border: 1px solid rgba(var(--afiche-accent-rgb, var(--brand-secondary-rgb)), 0.28);
    box-shadow: 0 16px 34px rgba(var(--afiche-accent-rgb, var(--brand-secondary-rgb)), 0.24);
}

.afiche-sabado--showcase:hover,
.sabado-special-card:hover .afiche-sabado--showcase {
    box-shadow: 0 22px 42px rgba(var(--afiche-accent-rgb, var(--brand-secondary-rgb)), 0.36);
}

.afiche-sabado--fullscreen {
    width: min(calc(100vw - 24px), calc(var(--poster-avail-h, calc(100dvh - 112px)) * 9 / 16), 460px);
    max-width: none;
    border: 2px solid var(--brand-accent-yellow);
    box-shadow: 0 18px 44px rgba(var(--afiche-accent-rgb, var(--brand-secondary-rgb)), 0.36);
}

.afiche-sabado__topbar {
    height: 1.6cqi;
    min-height: 5px;
    background: var(--afiche-accent, var(--brand-primary));
    width: 100%;
    flex: 0 0 auto;
}

.afiche-sabado__body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 3.2cqi 3cqi 1.8cqi;
    text-align: center;
    position: relative;
    z-index: 2;
}

.afiche-sabado__header-block {
    width: 100%;
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
}

/* Ornamentos sobre todo excepto los textos (z-index: 3 > stage 2, < textos 4 / precio 5) */
.afiche-sabado__ornament {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 3;
    line-height: 0;
}

.afiche-sabado__ornament > svg {
    width: 100%;
    height: 100%;
    display: block;
}

.afiche-sabado__ornament-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.afiche-sabado__ornament--tl {
    top: 0;
    left: 0;
    width: 27cqi;
    height: 24cqi;
    color: var(--brand-primary);
}

.afiche-sabado__ornament--tl .afiche-sabado__ornament-img {
    object-position: left top;
}

.afiche-sabado__ornament--tr {
    top: 0;
    right: 0;
    width: 27cqi;
    height: 24cqi;
    color: var(--brand-text);
}

.afiche-sabado__ornament--tr .afiche-sabado__ornament-img {
    object-position: right top;
}

.afiche-sabado__ornament--ml {
    top: 42%;
    left: 0;
    width: 16cqi;
    height: 14cqi;
    color: var(--brand-text);
    transform: translateY(-50%);
    z-index: 3;
}

.afiche-sabado__ornament--ml .afiche-sabado__ornament-img {
    object-position: left center;
}

.afiche-sabado__ornament--bl {
    bottom: 0;
    left: 0;
    width: 19cqi;
    height: 29cqi;
    color: var(--brand-primary);
}

.afiche-sabado__ornament--bl .afiche-sabado__ornament-img {
    object-position: left bottom;
}

.afiche-sabado__ornament--br {
    bottom: 0;
    right: 0;
    width: 21cqi;
    height: 29cqi;
    color: var(--brand-text);
}

.afiche-sabado__ornament--br .afiche-sabado__ornament-img {
    object-position: right bottom;
}

/* Cabecera de marca y tipografía oficial */
.afiche-sabado__logo {
    height: 11.5cqi;
    width: auto;
    max-width: 46%;
    object-fit: contain;
    margin-bottom: 1.6cqi;
    position: relative;
    z-index: 4;
}

.afiche-sabado__kicker {
    font-family: var(--font-titles), 'Anton', Impact, sans-serif;
    font-size: 9cqi;
    line-height: 0.98;
    letter-spacing: 0.03em;
    color: var(--brand-text);
    text-transform: uppercase;
    margin: 1.2cqi 0 -0.6cqi;
    position: relative;
    z-index: 4;
}

.afiche-sabado__title {
    font-family: var(--font-script), 'Satisfy', cursive;
    font-weight: 400;
    font-size: 19cqi;
    line-height: 1.02;
    color: var(--brand-secondary);
    -webkit-text-stroke: 1.15cqi var(--brand-primary);
    paint-order: stroke fill;
    text-shadow: 0 2px 3px rgba(var(--brand-primary-rgb), 0.25);
    position: relative;
    z-index: 3;
    width: 100%;
    display: block;
    padding: 0 1.5cqi;
    margin: 0 0 0.8cqi;
    white-space: nowrap;
}

.afiche-sabado__title-inner {
    display: inline-block;
}

.afiche-sabado__title--long {
    font-size: 14cqi;
}

.afiche-sabado__subtitle {
    font-family: var(--font-titles), 'Anton', Impact, sans-serif;
    font-size: 7.4cqi;
    line-height: 1.02;
    color: var(--brand-primary);
    letter-spacing: 0.02em;
    margin: 0;
    position: relative;
    z-index: 2;
}

/* Escenario central del plato: ocupa la mayor parte del ancho */
.afiche-sabado__stage {
    position: relative;
    width: 90%;
    margin: auto 0;
    padding: 0;
    z-index: 2;
    flex: 0 0 auto;
}

.afiche-sabado__wood-blob {
    border: 1.4cqi solid var(--afiche-accent, var(--brand-primary));
    border-radius: 52% 48% 54% 46% / 46% 52% 48% 54%;
    aspect-ratio: 1 / 0.94;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5cqi;
    position: relative;
    box-shadow: inset 0 0 22px rgba(var(--brand-text-rgb), 0.45), 0 6px 14px rgba(var(--brand-text-rgb), 0.14);
    background: linear-gradient(160deg, var(--brand-primary-dark) 0%, var(--brand-primary-darker) 60%, var(--brand-text) 100%);
}

.afiche-sabado__wood-blob--scene {
    padding: 0;
    background: var(--brand-primary-darker);
}

.afiche-sabado__scene-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.afiche-sabado__dish-img {
    width: 82%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 22px rgba(var(--brand-text-rgb), 0.55);
    display: block;
    background: var(--brand-bg);
}

.afiche-sabado__dish-fallback {
    width: 78%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-bg) 0%, var(--brand-surface) 100%);
    color: var(--brand-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px rgba(var(--brand-text-rgb), 0.45);
    padding: 3cqi;
}

/* Sello festoneado/ondulado de precio */
.afiche-sabado__price-seal {
    position: absolute;
    top: 2.5cqi;
    right: -1.6cqi;
    width: 34cqi;
    height: 34cqi;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    filter: drop-shadow(0 4px 8px rgba(var(--brand-text-rgb), 0.22));
}

.afiche-sabado__price-seal svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.afiche-sabado__price-text {
    position: relative;
    z-index: 2;
    font-family: var(--font-titles), 'Anton', Impact, sans-serif;
    color: var(--brand-secondary);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 0.9;
    letter-spacing: 0.01em;
}

.afiche-sabado__price-currency {
    font-size: 6.4cqi;
    margin-top: 1.6cqi;
    margin-right: 0.3cqi;
}

.afiche-sabado__price-int {
    font-size: 11.8cqi;
}

.afiche-sabado__price-dec {
    font-size: 6.2cqi;
    margin-top: 0.8cqi;
}

/* Remate manuscrito protagonista y barra inferior corporativa */
.afiche-sabado__cta-script {
    font-family: var(--font-script), 'Satisfy', cursive;
    font-weight: 400;
    font-size: 10cqi;
    color: var(--brand-text);
    line-height: 1.08;
    margin: 0.8cqi 0 1.4cqi;
    position: relative;
    z-index: 4;
    flex: 0 0 auto;
}

.afiche-sabado__footer {
    flex: 0 0 auto;
    background: var(--brand-primary);
    color: var(--brand-bg);
    padding: 2.6cqi 5.5cqi 3cqi;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9cqi;
    position: relative;
    z-index: 4;
}

.afiche-sabado__phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2.4cqi;
    max-width: 100%;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 6.8cqi;
    letter-spacing: 0.08em;
    line-height: 1.12;
    white-space: nowrap;
}

.afiche-sabado__phone-icon {
    font-size: 1.15em;
    flex: 0 0 auto;
    line-height: 1;
}

.afiche-sabado__phone-text {
    display: inline-block;
    white-space: nowrap;
}

.afiche-sabado__domain {
    max-width: 100%;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 6.3cqi;
    letter-spacing: 0.05em;
    opacity: 0.97;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
}

/* Carrusel del Afiche en el Banner de index.php */
.afiche-carousel-wrap {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    position: relative;
}

.afiche-carousel-wrap .carousel-inner {
    padding: 8px 4px 12px;
}

.afiche-carousel-wrap .carousel-control-prev,
.afiche-carousel-wrap .carousel-control-next {
    width: 34px;
    height: 34px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--brand-bg);
    border-radius: 50%;
    opacity: 0.92;
    box-shadow: 0 4px 10px rgba(var(--brand-text-rgb), 0.22);
    z-index: 6;
    color: var(--brand-primary);
}

.afiche-carousel-wrap .carousel-control-prev {
    left: -6px;
}

.afiche-carousel-wrap .carousel-control-next {
    right: -6px;
}

.afiche-carousel-wrap .carousel-control-prev:hover,
.afiche-carousel-wrap .carousel-control-next:hover {
    opacity: 1;
    background: var(--brand-accent-yellow);
    color: var(--brand-text);
}

.afiche-carousel-wrap .carousel-control-prev-icon,
.afiche-carousel-wrap .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
    filter: invert(25%);
}

.afiche-carousel-wrap .carousel-indicators {
    position: static;
    margin: 2px 0 0;
    gap: 6px;
}

.afiche-carousel-wrap .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 5px;
    border-radius: 999px;
    background-color: rgba(var(--brand-bg-rgb), 0.45);
    border: 0;
    margin: 0;
}

.afiche-carousel-wrap .carousel-indicators .active {
    background-color: var(--brand-accent-yellow);
    width: 30px;
}

@media (max-width: 575.98px) {
    .afiche-sabado--compact,
    .afiche-sabado-link {
        max-width: 265px;
    }

    .afiche-carousel-wrap .carousel-control-prev {
        left: 2px;
    }

    .afiche-carousel-wrap .carousel-control-next {
        right: 2px;
    }
}

/* ==========================================================================
   Variante "screen" (pantallas TV / redes / A4): el formato lo define la clase del body
   mode-16-9 (horizontal), mode-1-1 (cuadrado), mode-9-16 (historia), mode-a4 (impresión)
   ========================================================================== */
.afiche-sabado__screen-extra {
    display: none;
}

.afiche-sabado--screen {
    --ratio: 1.7778;
    width: min(100%, calc(var(--avail-h, 70vh) * var(--ratio)));
    max-width: none;
    aspect-ratio: var(--ratio);
    border: 2px solid var(--brand-accent-yellow);
    box-shadow: 0 18px 44px rgba(var(--afiche-accent-rgb, var(--brand-primary-rgb)), 0.34);
}

body.mode-1-1 .afiche-sabado--screen { --ratio: 1; }
body.mode-9-16 .afiche-sabado--screen { --ratio: 0.5625; }
body.mode-a4 .afiche-sabado--screen { --ratio: 0.7071; border-radius: 0; }

/* Composición horizontal (16:9 y 1:1): texto a la izquierda, plato a la derecha */
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__body,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__body {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    grid-template-rows: 1fr auto;
    column-gap: 2cqi;
    align-items: center;
    justify-items: center;
    padding: 2.4cqi 2.6cqi 1.2cqi;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__header-block,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__header-block {
    grid-column: 1; grid-row: 1; align-self: end;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__cta-script,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__cta-script {
    grid-column: 1; grid-row: 2; align-self: start;
    font-size: 5cqi; margin: 0.6cqi 0 0;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__stage,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__stage {
    grid-column: 2; grid-row: 1 / 3; width: 96%; margin: 0;
}

/* Formato 16:9: incluir descripción, categorías y atributos en la columna izquierda */
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__body {
    grid-template-rows: auto auto auto;
    align-content: center;
    row-gap: 1.2cqi;
    padding: 2.6cqi 2.8cqi 1.4cqi;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__header-block {
    grid-column: 1; grid-row: 1; align-self: end;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__screen-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.9cqi;
    grid-column: 1;
    grid-row: 2;
    width: 92%;
    position: relative;
    z-index: 4;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__cta-script {
    grid-column: 1; grid-row: 3; align-self: start;
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__stage {
    grid-column: 2; grid-row: 1 / 4; width: 96%; margin: 0;
}

.afiche-sabado__screen-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6cqi;
}

.afiche-sabado__screen-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4cqi;
    background: var(--brand-primary-soft);
    color: var(--brand-primary-dark);
    border: 1px solid var(--brand-primary-border);
    border-radius: 999px;
    padding: 0.35cqi 1.1cqi;
    font-size: 1.45cqi;
    font-weight: 700;
    line-height: 1.2;
}

.afiche-sabado__screen-badge--accent {
    background: var(--brand-accent-yellow);
    color: var(--brand-text);
    border-color: var(--brand-accent-yellow);
}

.afiche-sabado__screen-desc {
    font-family: var(--font-body);
    font-size: 1.65cqi;
    line-height: 1.38;
    color: var(--brand-text-muted);
    margin: 0;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.afiche-sabado__screen-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2cqi;
    font-size: 1.35cqi;
    font-weight: 700;
    color: var(--brand-primary);
}

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__logo,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__logo { height: 6.4cqi; margin-bottom: 1cqi; }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__kicker,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__kicker { font-size: 5cqi; margin: 0.4cqi 0 -0.4cqi; }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__title,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__title { font-size: 10cqi; -webkit-text-stroke: 0.6cqi var(--brand-primary); }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__subtitle,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__subtitle { font-size: 3.8cqi; }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__price-seal,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__price-seal { width: 17cqi; height: 17cqi; top: 1cqi; right: -1.2cqi; }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__price-currency,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__price-currency { font-size: 3.2cqi; margin-top: 0.8cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__price-int,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__price-int { font-size: 5.9cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__price-dec,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__price-dec { font-size: 3.1cqi; margin-top: 0.4cqi; }

body.mode-16-9 .afiche-sabado--screen .afiche-sabado__wood-blob,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__wood-blob { border-width: 0.7cqi; }

/* Pie en una sola fila */
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__footer,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__footer {
    flex-direction: row; gap: 5cqi; padding: 1.2cqi 3cqi;
}
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__phone,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__phone { font-size: 3.2cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__domain,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__domain { font-size: 3cqi; }

/* Ornamentos proporcionales en horizontal */
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__ornament--tl,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__ornament--tl { width: 13cqi; height: 11cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__ornament--tr,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__ornament--tr { width: 13cqi; height: 11cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__ornament--ml,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__ornament--ml { width: 7cqi; height: 6cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__ornament--bl,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__ornament--bl { width: 9cqi; height: 13cqi; }
body.mode-16-9 .afiche-sabado--screen .afiche-sabado__ornament--br,
body.mode-1-1 .afiche-sabado--screen .afiche-sabado__ornament--br { width: 9cqi; height: 13cqi; }
