/* ========================================
   Platillo Volante — Home "Carta Viva"
   Estilos de la landing page
   ======================================== */

/* ---- Keyframes ---- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ========================================
   1. HERO SPLIT
   ======================================== */
.hero-cv {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(
            100deg,
            var(--pv-cream) 0%,
            rgba(251, 246, 238, 0.85) 40%,
            rgba(251, 246, 238, 0.45) 70%,
            rgba(251, 246, 238, 0.15) 100%
        ),
        url("/static/img/platillo-hero.png") center/cover no-repeat;
    padding: var(--space-16) var(--space-6);
    overflow: hidden;
}

.hero-cv-container {
    max-width: var(--pv-max-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero-cv-left {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.hero-cv-logo {
    width: clamp(96px, 12vw, 140px);
    height: auto;
    object-fit: contain;
    margin-bottom: calc(var(--space-4) * -1);
    align-self: flex-start;
}

.hero-cv-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--pv-verde);
    background: var(--pv-verde-light);
    border: 1px solid var(--pv-verde);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    width: fit-content;
}

.hero-cv-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 4.5vw, 3.75rem);
    line-height: 1.1;
    color: var(--pv-text);
    margin: 0;
}

.hero-cv-subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: var(--pv-text-secondary);
    max-width: 460px;
    line-height: 1.6;
    margin: 0;
}

/* Countdown */
.countdown-box {
    background: var(--pv-naranja-light);
    border: 1px solid var(--pv-naranja-100);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    width: fit-content;
}

.countdown-label {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--pv-text);
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.countdown-num {
    background: var(--pv-naranja);
    color: var(--pv-white);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.125rem;
    font-variant-numeric: tabular-nums;
}

.countdown-sep {
    color: var(--pv-naranja);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: var(--space-4);
}

.countdown-text {
    font-family: var(--font-body);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pv-text-light);
}

/* CTAs */
.hero-cv-ctas {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* Grid de platos hero */
.hero-cv-right {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 1.3fr 1fr;
    gap: var(--space-4);
    height: 520px;
}

.hero-plate {
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
    position: relative;
    text-decoration: none;
    cursor: pointer;
}

.hero-plate:nth-child(1) { background: linear-gradient(135deg, #fce8db, #f9d4bf); }
.hero-plate:nth-child(2) { background: linear-gradient(135deg, #e8f5d4, #d4edb8); }
.hero-plate:nth-child(3) { background: linear-gradient(135deg, #fff3e0, #ffe0b2); }
.hero-plate:nth-child(4) { background: linear-gradient(135deg, #fce4ec, #f8bbd0); }

.hero-plate:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card-hover);
}

.hero-plate img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    filter: saturate(1.05) contrast(1.02);
}

/* Tinte de marca alternando naranja/verde sobre cada plato */
.hero-plate::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    mix-blend-mode: soft-light;
    opacity: 0.6;
    z-index: 1;
}

.hero-plate:nth-child(1)::after { background: var(--pv-naranja); }
.hero-plate:nth-child(2)::after { background: var(--pv-verde); }
.hero-plate:nth-child(3)::after { background: var(--pv-verde); }
.hero-plate:nth-child(4)::after { background: var(--pv-naranja); }

.hero-plate-emoji {
    font-size: var(--text-5xl);
}

.hero-plate-name {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 2;
    right: 0;
    padding: var(--space-8) var(--space-4) var(--space-3);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
    color: var(--pv-white);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
}

/* ========================================
   2. BARRA DE CONFIANZA
   ======================================== */
.trust-bar {
    background: var(--pv-white);
    border-top: 1px solid var(--pv-border-light);
    border-bottom: 1px solid var(--pv-border-light);
    padding: var(--space-6) var(--space-6);
}

.trust-bar-container {
    max-width: var(--pv-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.trust-icon {
    width: 40px;
    height: 40px;
    background: var(--pv-naranja-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pv-naranja);
    flex-shrink: 0;
}

.trust-text {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--pv-text-secondary);
    line-height: 1.4;
}

.trust-text strong {
    display: block;
    color: var(--pv-text);
    font-weight: 700;
}

/* ========================================
   3. PLATOS DE LA SEMANA — Carousel
   ======================================== */
.platos-semana {
    padding: var(--space-20) 0;
    background: var(--pv-cream);
    position: relative;
    overflow: hidden;
}

.platos-semana::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='80' viewBox='0 0 120 80'%3E%3Cg fill='none' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M0,30 Q15,22 30,30 T60,30 T90,30 T120,30' stroke='%23fe6520' opacity='0.14'/%3E%3Cpath d='M0,50 Q15,42 30,50 T60,50 T90,50 T120,50' stroke='%2383bc08' opacity='0.12'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.platos-semana-container {
    max-width: var(--pv-max-width);
    padding: 0 var(--space-6);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header-cv {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-10);
}

.section-title-cv {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--pv-text);
    margin: 0 0 var(--space-2) 0;
    line-height: 1.2;
}

.section-subtitle-cv {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--pv-text-secondary);
    margin: 0;
}

.carousel-arrows {
    display: flex;
    gap: var(--space-2);
    flex-shrink: 0;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    border: 1px solid var(--pv-border);
    background: var(--pv-white);
    color: var(--pv-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.carousel-arrow:hover {
    border-color: var(--pv-naranja);
    color: var(--pv-naranja);
    background: var(--pv-naranja-light);
}

.carousel-track {
    display: flex;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: var(--space-4);
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

/* Card plato */
.plato-card-cv {
    flex: 0 0 280px;
    background: var(--pv-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--pv-border-light);
    scroll-snap-align: start;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.plato-card-cv:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.plato-card-cv-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.plato-card-cv-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.plato-card-cv-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.plato-card-cv-emoji {
    font-size: var(--text-5xl);
}

.plato-badge-cv {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pv-white);
    padding: var(--space-1) var(--space-3);
}

.plato-card-cv-body {
    padding: var(--space-5);
}

.plato-card-cv-cat {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pv-text-light);
    display: block;
    margin-bottom: var(--space-1);
}

.plato-card-cv-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--pv-text);
    margin: 0;
    line-height: 1.3;
}

.plato-card-cv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-5) var(--space-5);
    margin-top: auto;
}

.plato-card-cv-price {
    font-family: var(--font-body);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--pv-naranja);
}

.plato-add-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--pv-naranja);
    color: var(--pv-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.plato-add-btn:hover {
    transform: scale(1.1);
    background: var(--pv-naranja-hover);
}

/* ========================================
   4. COMO FUNCIONA — Timeline
   ======================================== */
.como-funciona-cv {
    padding: var(--space-20) 0 var(--space-24);
    background: var(--pv-white);
    position: relative;
    overflow: hidden;
}

.como-funciona-cv::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cg fill='%2383bc08'%3E%3Cpath d='M25,20 C30,25 32,35 28,42 C22,39 20,29 25,20 Z' opacity='0.1' transform='rotate(-25 27 31)'/%3E%3Cpath d='M100,50 C106,55 107,66 101,72 C95,67 94,56 100,50 Z' opacity='0.1' transform='rotate(35 101 61)'/%3E%3Cpath d='M60,90 C65,94 66,104 60,108 C54,104 55,94 60,90 Z' opacity='0.12' transform='rotate(-15 60 99)'/%3E%3Cpath d='M115,110 C120,114 121,122 117,128 C112,125 110,115 115,110 Z' opacity='0.09' transform='rotate(60 116 119)'/%3E%3C/g%3E%3Cg fill='%23fe6520'%3E%3Cpath d='M75,30 C80,33 82,42 78,46 C73,43 71,34 75,30 Z' opacity='0.07' transform='rotate(50 76 38)'/%3E%3Cpath d='M30,115 C34,118 36,125 32,130 C28,126 26,118 30,115 Z' opacity='0.07' transform='rotate(-35 31 122)'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
}

.como-funciona-cv-container {
    max-width: var(--pv-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.timeline-cv {
    position: relative;
    max-width: 900px;
    margin: var(--space-12) auto 0;
}

.timeline-cv::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--pv-border);
    transform: translateX(-50%);
}

.timeline-cv-step {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    align-items: center;
    margin-bottom: var(--space-16);
    position: relative;
}

.timeline-cv-step:last-child {
    margin-bottom: 0;
}

.timeline-cv-dot {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--pv-naranja);
    color: var(--pv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow: 0 0 0 6px var(--pv-naranja-light), var(--shadow-md);
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.timeline-cv-dot > svg,
.timeline-cv-dot > i {
    display: block;
    stroke-width: 2.2;
}

.timeline-cv-content h3 {
    font-family: var(--font-display);
    font-size: 1.375rem;
    color: var(--pv-text);
    margin: 0 0 var(--space-2) 0;
}

.timeline-cv-content p {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--pv-text-secondary);
    line-height: 1.6;
    margin: 0;
}

.timeline-cv-illus {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.timeline-cv-illus img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.illus-1 { background: linear-gradient(135deg, var(--pv-naranja-light), var(--pv-naranja-50)); }
.illus-2 { background: linear-gradient(135deg, var(--pv-verde-light), rgba(131, 188, 8, 0.08)); }
.illus-3 { background: linear-gradient(135deg, var(--pv-cream), var(--pv-cream-dark)); }

/* Pasos impares: contenido izq (text-right), illus der */
.timeline-cv-step:nth-child(odd) .timeline-cv-content {
    text-align: right;
    padding-right: var(--space-6);
}

.timeline-cv-step:nth-child(odd) .timeline-cv-illus {
    margin-left: var(--space-6);
}

/* Pasos pares: illus izq, contenido der (text-left) */
.timeline-cv-step:nth-child(even) .timeline-cv-content {
    text-align: left;
    padding-left: var(--space-6);
}

.timeline-cv-step:nth-child(even) .timeline-cv-illus {
    margin-right: var(--space-6);
}

/* ========================================
   5. SEMILLAS — Impacto social
   ======================================== */
.semillas-cv {
    padding: var(--space-24) 0;
    background: linear-gradient(135deg, #1a3a0a, #2d5a12);
    color: var(--pv-white);
    position: relative;
    overflow: hidden;
}

.semillas-cv::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.semillas-cv-container {
    max-width: var(--pv-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    position: relative;
    z-index: 1;
}

.semillas-cv-img {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-xl);
    background: rgba(131, 188, 8, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.semillas-cv-img > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* --- Card deck en Semillas --- */
.semillas-cv-img.card-deck {
    background: transparent;
    border: none;
    overflow: visible;
    position: relative;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.semillas-cv-img.card-deck:focus-visible {
    outline: 2px solid var(--pv-naranja);
    outline-offset: 6px;
    border-radius: var(--radius-xl);
}

.deck-track {
    position: absolute;
    inset: 0;
}

.deck-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--pv-cream);
    box-shadow:
        0 14px 36px -14px rgba(0, 0, 0, 0.38),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    transform-origin: center left;
    transform:
        translate(
            calc(var(--deck-pos, 0) * 14px),
            calc(var(--deck-pos, 0) * 5px)
        )
        rotate(calc(var(--deck-pos, 0) * 1.2deg))
        scale(calc(1 - var(--deck-pos, 0) * 0.025));
    z-index: calc(100 - var(--deck-pos, 0));
    transition:
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 300ms ease,
        z-index 0s linear 280ms;
    will-change: transform;
}

.deck-card:nth-child(1) { --deck-pos: 0; }
.deck-card:nth-child(2) { --deck-pos: 1; }
.deck-card:nth-child(3) { --deck-pos: 2; }
.deck-card:nth-child(4) { --deck-pos: 3; }

.deck-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Hover: las cartas se abren en abanico mostrando mas de cada imagen */
@media (hover: hover) {
    .semillas-cv-img.card-deck:hover .deck-card {
        transform:
            translate(
                calc(var(--deck-pos, 0) * 22px),
                calc(var(--deck-pos, 0) * 8px)
            )
            rotate(calc(var(--deck-pos, 0) * 2.2deg))
            scale(calc(1 - var(--deck-pos, 0) * 0.018));
        box-shadow:
            0 22px 48px -18px rgba(0, 0, 0, 0.42),
            0 0 0 1px rgba(0, 0, 0, 0.05);
    }
}

/* Carta en ciclado: pequeno gesto de "lanzamiento" hacia arriba-derecha */
.deck-card.cycling {
    z-index: 200;
    animation: deckThrow 520ms cubic-bezier(0.22, 1, 0.36, 1);
    transition:
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 300ms ease,
        z-index 0s linear 0s;
}

@keyframes deckThrow {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    50% {
        transform: translate(28%, -8%) rotate(10deg) scale(0.97);
    }
    100% {
        transform:
            translate(
                calc(var(--deck-pos, 0) * 14px),
                calc(var(--deck-pos, 0) * 5px)
            )
            rotate(calc(var(--deck-pos, 0) * 1.2deg))
            scale(calc(1 - var(--deck-pos, 0) * 0.025));
    }
}

/* Indicador de posicion (dots) */
.deck-indicator {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 210;
    padding: 7px 12px;
    background: rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.deck-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.45);
    transition: background 220ms ease, transform 220ms ease, width 220ms ease;
}

.deck-dot.active {
    background: var(--pv-white);
    width: 18px;
    border-radius: var(--radius-full);
}

@media (prefers-reduced-motion: reduce) {
    .deck-card {
        transition: none;
    }
    .deck-card.cycling {
        animation: none;
    }
}

.semillas-cv-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.semillas-cv-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.7);
    width: fit-content;
}

.semillas-cv-stat {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
}

.semillas-cv-stat-num {
    font-family: var(--font-display);
    font-size: 4.5rem;
    color: var(--pv-naranja);
    line-height: 1;
}

.semillas-cv-stat-label {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.semillas-cv-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: var(--pv-white);
    margin: 0;
    line-height: 1.2;
}

.semillas-cv-text p {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
}

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--pv-white);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-5);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* ========================================
   6. TESTIMONIOS — Slider
   ======================================== */
.testimonios-cv {
    padding: var(--space-20) 0 var(--space-24);
    background-color: var(--pv-cream);
    background-image:
        linear-gradient(rgba(250, 248, 245, 0.62), rgba(250, 248, 245, 0.62)),
        url("/static/img/diseno-familia-platillo.png");
    background-size: 100% 100%, min(560px, 75%) auto;
    background-position: center, center bottom;
    background-repeat: no-repeat, no-repeat;
    position: relative;
}

.testimonios-cv-container {
    max-width: var(--pv-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.testimonios-slider {
    max-width: 720px;
    margin: var(--space-10) auto 0;
    overflow: hidden;
    position: relative;
}

.testimonio-slide {
    display: none;
    text-align: center;
    padding: var(--space-8) var(--space-6);
}

.testimonio-slide.active {
    display: block;
    animation: fadeIn var(--transition-slow) ease forwards;
}

.testimonio-avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: var(--pv-naranja-light);
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto var(--space-4);
    border: 3px solid var(--pv-white);
    box-shadow: var(--shadow-md);
}

.testimonio-stars {
    color: #f5a623;
    font-size: 1.25rem;
    letter-spacing: 2px;
    margin-bottom: var(--space-4);
}

.testimonio-quote {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--pv-text);
    line-height: 1.6;
    margin: 0 0 var(--space-5) 0;
    position: relative;
}

.testimonio-quote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--pv-naranja);
    position: absolute;
    top: -0.3em;
    left: -0.6em;
    line-height: 1;
}

.testimonio-quote::after {
    content: '\201D';
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    color: var(--pv-naranja);
    line-height: 1;
    margin-left: 0.1em;
}

.testimonio-name {
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--pv-text);
    margin: 0 0 var(--space-1) 0;
}

.testimonio-pedido {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    color: var(--pv-text-light);
    margin: 0;
}

.testimonios-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.testimonios-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    border: 2px solid var(--pv-border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-fast);
}

.testimonios-dot:hover {
    border-color: var(--pv-naranja);
}

.testimonios-dot.active {
    background: var(--pv-naranja);
    border-color: var(--pv-naranja);
    transform: scale(1.2);
}

/* ========================================
   7. CTA FINAL
   ======================================== */
.cta-final-cv {
    padding: var(--space-20) 0;
    background: var(--pv-naranja);
    text-align: center;
    color: var(--pv-white);
    position: relative;
    overflow: hidden;
}

.cta-final-cv::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm-40 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm40-40c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10zm-40 0c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10-10-4.477-10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-final-cv-container {
    max-width: var(--pv-max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    position: relative;
    z-index: 1;
}

.cta-final-cv h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin: 0 0 var(--space-3) 0;
    line-height: 1.2;
}

.cta-final-cv p {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    opacity: 0.9;
    margin: 0 0 var(--space-8) 0;
}

.btn-white {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-body);
    font-weight: 700;
    background: var(--pv-white);
    color: var(--pv-naranja);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* ========================================
   8. REVEAL (animacion scroll)
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal direccional para los pasos del timeline */
.timeline-cv-step.reveal:nth-child(odd) {
    transform: translateX(-48px);
}

.timeline-cv-step.reveal:nth-child(even) {
    transform: translateX(48px);
}

.timeline-cv-step.reveal.visible {
    transform: translateX(0);
}

/* Stagger entre pasos cuando entran juntos en viewport */
.timeline-cv-step.reveal:nth-child(1) { transition-delay: 0ms; }
.timeline-cv-step.reveal:nth-child(2) { transition-delay: 120ms; }
.timeline-cv-step.reveal:nth-child(3) { transition-delay: 240ms; }

/* Reveal direccional para el hero */
.hero-cv-left.reveal {
    transform: translateX(-32px);
}

.hero-cv-right.reveal {
    transform: translateX(32px);
    transition-delay: 120ms;
}

.hero-cv-left.reveal.visible,
.hero-cv-right.reveal.visible {
    transform: translateX(0);
}

/* ========================================
   9. RESPONSIVE
   ======================================== */

/* Tablet y movil */
@media (max-width: 768px) {
    .hero-cv {
        padding: var(--space-10) var(--space-5);
        min-height: auto;
        background:
            linear-gradient(
                180deg,
                rgba(251, 246, 238, 0.2) 0%,
                rgba(251, 246, 238, 0.7) 45%,
                var(--pv-cream) 100%
            ),
            url("/static/img/platillo-hero.png") center top/cover no-repeat;
    }

    .hero-cv-container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    /* Grid 2x2 en movil, ubicado tras el parrafo del subtitulo via JS */
    .hero-cv-right {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: var(--space-3);
        height: auto;
        aspect-ratio: 1 / 1;
        margin: var(--space-2) 0;
    }

    .hero-cv-title {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .hero-cv-subtitle {
        max-width: 100%;
    }

    /* Trust bar: 2 columnas */
    .trust-bar-container {
        gap: var(--space-6);
        justify-content: space-around;
    }

    .trust-item {
        flex: 0 0 calc(50% - var(--space-4));
    }

    /* Timeline vertical, 1 columna */
    .timeline-cv::before {
        left: 24px;
    }

    .timeline-cv-step {
        grid-template-columns: 60px 1fr;
        align-items: start;
        gap: var(--space-4);
        margin-bottom: var(--space-10);
    }

    .timeline-cv-dot {
        grid-row: 1;
        grid-column: 1;
        align-self: start;
    }

    /* Tarjeta apilada: imagen arriba, texto debajo */
    .timeline-cv-illus {
        display: block;
        grid-row: 1;
        grid-column: 2;
        aspect-ratio: 16 / 10;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        margin: 0;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    .timeline-cv-content {
        grid-row: 2;
        grid-column: 2;
        padding: var(--space-5);
        background: var(--pv-white);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        box-shadow: var(--shadow-sm);
    }

    .timeline-cv-step:nth-child(odd) .timeline-cv-content,
    .timeline-cv-step:nth-child(even) .timeline-cv-content {
        text-align: left;
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }

    /* Reveal movil: slide desde abajo en lugar de lateral */
    .timeline-cv-step.reveal:nth-child(odd),
    .timeline-cv-step.reveal:nth-child(even),
    .hero-cv-left.reveal,
    .hero-cv-right.reveal {
        transform: translateY(28px);
    }

    .timeline-cv-step.reveal.visible,
    .hero-cv-left.reveal.visible,
    .hero-cv-right.reveal.visible {
        transform: translateY(0);
    }

    /* Semillas: 1 columna */
    .semillas-cv-container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    /* En movil ocultamos la galeria — solo texto */
    .semillas-cv-img {
        display: none;
    }

    .semillas-cv-stat-num {
        font-size: var(--text-5xl);
    }

    /* Carousel cards mas estrechas */
    .plato-card-cv {
        flex: 0 0 260px;
    }

    /* Carousel arrows ocultar en movil */
    .carousel-arrows {
        display: none;
    }

    .section-header-cv {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }

    /* Testimonios */
    .testimonio-quote {
        font-size: var(--text-lg);
    }

    .testimonio-quote::before {
        position: static;
        display: inline;
    }
}

/* Movil pequeno */
@media (max-width: 480px) {
    .hero-cv {
        padding: var(--space-8) var(--space-4);
    }

    .hero-cv-right {
        aspect-ratio: 1 / 1;
        gap: var(--space-2);
    }

    .hero-cv-title {
        font-size: var(--text-4xl);
    }

    .hero-cv-ctas {
        flex-direction: column;
    }

    .hero-cv-ctas .btn {
        width: 100%;
        justify-content: center;
    }

    .countdown-box {
        width: 100%;
    }

    .countdown-timer {
        justify-content: center;
    }

    /* Trust bar: 1 columna */
    .trust-bar-container {
        flex-direction: column;
        gap: var(--space-4);
        align-items: flex-start;
    }

    .trust-item {
        flex: none;
        width: 100%;
    }

    .plato-card-cv {
        flex: 0 0 240px;
    }

    .platos-semana-container,
    .como-funciona-cv-container,
    .testimonios-cv-container,
    .cta-final-cv-container {
        padding: 0 var(--space-4);
    }

    .semillas-cv-container {
        padding: 0 var(--space-4);
    }

    .semillas-cv-text h2 {
        font-size: var(--text-2xl);
    }

    .cta-final-cv h2 {
        font-size: var(--text-3xl);
    }

    .testimonios-slider {
        margin-top: var(--space-6);
    }

    .testimonio-slide {
        padding: var(--space-4) var(--space-2);
    }

    .testimonio-quote {
        font-size: var(--text-base);
    }

    .timeline-cv-step {
        grid-template-columns: 48px 1fr;
    }

    .timeline-cv::before {
        left: 20px;
    }

    .timeline-cv-dot {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }
}

/* ============================================================
   Crédito 4d3 dentro del footer (solo landing)
   ============================================================ */
.footer-credit-4d3 {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    color: #8a7f72;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity var(--transition-fast);
}

.footer-credit-4d3:hover {
    opacity: 1;
}

.footer-credit-4d3-text {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-credit-4d3 img {
    display: block;
    height: 140px;
    width: auto;
}
