/* ==========================================================================
   FESTIVAL FUEGO VIVO - STYLES RESPONSIVE
   ========================================================================== */

/* ====== VARIABLES Y CONFIGURACIÓN GLOBAL ====== */
:root {
    --ffv-bg: #0f0e0e;
    --ffv-white: #ffffff;
    --ffv-ink: #f8f1e5;
    --ffv-gold: #d88a1a;
    --ffv-accent: #e34f1c;
    --ffv-ink-dim: #d6cec0;
    --ffv-card: #171515;
    --ffv-border: #2a2626;
    --ffv-tag: #6d180f;
    --ffv-red: #ec3831;

    --primary: 221 83% 53%;
    /* Indigo-ish */
    --success: 142 70% 45%;
    /* Green */
    --warning: 38 92% 50%;
    /* Amber */
    --danger: 0 72% 51%;
    /* Red */
    --neutral: 220 9% 46%;

    --font-body: 'Roboto', Inter, system-ui, -apple-system, sans-serif;
    --font-heading: "Cinzel", Georgia, serif;

    --ffv-ab-radius: 16px;
    --ffv-ab-thickness: 2px;
    --ffv-ab-speed: 5s;
    --ffv-ab-color: rgba(216, 138, 26, .85);
}

/* UTILITIES */
.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.space-between {
    justify-content: space-between;
}

.mt-1 {
    margin-top: .8rem;
}

.mt-2 {
    margin-top: 1.6rem;
}

.mt-3 {
    margin-top: 2.4rem;
}

.mb-1 {
    margin-bottom: .8rem;
}

.mb-2 {
    margin-bottom: 1.6rem;
}

.mb-3 {
    margin-bottom: 2.4rem;
}

.gap-smaller {
    gap: .4rem;
}

.gap-1 {
    gap: .8rem;
}

.gap-2 {
    gap: 1.6rem;
}

.text--gold {
    color: var(--ffv-gold);
    font-weight: 700;
}

.text--accent {
    color: var(--ffv-accent);
    font-weight: 700;
}

.text--red {
    color: var(--ffv-red);
    font-weight: 700;
}

/* ====== RESET Y ESTILOS BASE ====== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: clamp(16px, 1.5vw + 0.5rem, 18px);
    scroll-behavior: smooth;
    background: black;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ffv-ink);
    background: var(--ffv-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#ffv-landing {
    background: linear-gradient(to right, #870000, #190a05);
}

/* Contenedor principal con espaciado lateral responsivo */
.wrap {
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 5vw, 2rem);
    padding-right: clamp(1rem, 5vw, 2rem);
}

/* Espaciado vertical fluido entre secciones (ajustado para desktop) */
section {
    padding-top: clamp(2.5rem, 4vw, 4.5rem);
    /* padding-bottom: clamp(2.5rem, 4vw, 4.5rem); */
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin: 0;
    color: var(--ffv-ink);
    text-wrap: balance;
}

p {
    color: var(--ffv-ink-dim);
    line-height: 1.7;
    margin: 0 0 1em;
    max-width: 65ch;
}

a {
    color: var(--ffv-gold);
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.mb-1 {
    margin-bottom: .8rem;
}

/* ====== COMPONENTES REUTILIZABLES ====== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--ffv-gold);
    color: #1a100a;
    padding: .9rem 1.2rem;
    border-radius: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
}

.btn-outline {
    background: transparent;
    color: var(--ffv-ink);
    border-color: var(--ffv-border);
}

.muted {
    color: var(--ffv-ink-dim);
    font-size: 0.9rem;
}

.card {
    background: var(--ffv-card);
    border: 1px solid var(--ffv-border);
    border-radius: 16px;
    padding: clamp(1rem, 4vw, 1.5rem);
}

.card--embed {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card--embed h2 {
    padding: 1.5rem 1.5rem 0;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--ffv-border);
    margin-bottom: 1rem;
}

/* Sistema de Grid Responsivo */
.grid {
    display: grid;
    gap: clamp(1rem, 4vw, 1.5rem);
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

/* Tablet y superior */
@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop y superior */
@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 95vh;
    padding-top: 4rem;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--ffv-border);
}

.hero-video {
    position: absolute;
    top: 0%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .75;
}

.hero .veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(15, 14, 14, 1) 5%, transparent 50%),
        radial-gradient(circle, transparent, var(--ffv-bg) 90%);
}

.hero .content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 999;
}

.image-logo img {
    width: clamp(100px, 20vw, 150px);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.kicker {
    color: var(--ffv-gold);
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    background: var(--ffv-tag);
    padding: .5rem 1rem;
    border-radius: 25px;
}

.title {
    font-size: clamp(2rem, 6vw, 3.75rem);
    max-width: 20ch;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--ffv-ink-dim);
    margin-bottom: 1.5rem;
    max-width: 50ch;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.fact {
    background: rgba(216, 138, 26, .09);
    border: 1px solid var(--ffv-border);
    border-radius: 10px;
    padding: .45rem .7rem;
    font-size: 0.9rem;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.timer {
    margin-top: 2rem;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.timer .box {
    background: #120f0d;
    border: 1px solid var(--ffv-border);
    border-radius: 12px;
    padding: .6rem .8rem;
    min-width: 64px;
    text-align: center;
}

.timer .box b {
    font-size: 1.2rem;
    color: var(--ffv-gold);
    display: block;
}

.hero .badges {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.badges img {
    height: 3.5rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

/* ====== CABECERA DE SECCIÓN ====== */
.section-head {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

/* ====== PROGRAMA Y TIMELINE ====== */
.timeline {
    position: relative;
    padding-left: 18px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: linear-gradient(var(--ffv-gold), transparent);
    border-radius: 3px;
}

.tl-item {
    position: relative;
    margin-bottom: 16px;
    padding-left: 12px;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 10px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--ffv-gold);
    box-shadow: 0 0 0 3px rgba(216, 138, 26, .25);
}

.tl-title {
    font-weight: 700;
    color: var(--ffv-ink);
    margin-top: .5rem;
}

.tl-time {
    color: var(--ffv-ink-dim);
    font-size: .95rem;
    margin-bottom: .25rem;
}

/* ====== STANDS ====== */
.stand {
    background: #141211;
    border: 1px solid var(--ffv-border);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.stand img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--ffv-border);
    flex-shrink: 0;
}

.stand h4 {
    margin: 0;
    font-size: 1.05rem;
}

.stand p {
    margin: 0;
    font-size: .95rem;
}


/* ====== INFO Y FAQ ====== */
.faq-grid {
    margin-top: 1.5rem;
}

details {
    background: #141211;
    border: 1px solid var(--ffv-border);
    border-radius: 14px;
    padding: 14px 16px;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ffv-ink);
}

details[open] p {
    margin-top: 0.5rem;
}

/* ====== VIDEOS Y MAPAS RESPONSIVOS ====== */
.responsive-embed {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
}

.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ====== REDES SOCIALES Y COMPARTIR ====== */
.social-buttons,
.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share {
    margin-top: 2rem;
}

/* ======= SPONSORS ======= */
.sponsor {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sponsor .sponsor-items {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
    cursor: pointer;
}

.sponsor .sponsor-items img {
    height: 5.5rem;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.sponsor .sponsor-items img:hover {
    transform: scale(1.05);
    transition: transform .3s ease, filter .3s ease;
}

.sponsor-bg {
    background: var(--ffv-white);
    border: 1px solid var(--ffv-border);
    border-radius: 16px;
}

.sponsor-md {
    width: 170px;
}

/* ====== ORGANIZA Y FOOTER ====== */
.badges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.badges img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .4));
}

.foot {
    border-top: 1px solid var(--ffv-border);
    padding: 2rem 0;
    text-align: center;
    color: var(--ffv-ink-dim);
    font-size: 0.9rem;
    margin-top: 2rem;
    background-color: #0f0e0e;
}

.develop-by-text {
    color: var(--ffv-red);
}

/* ====== BORDE ANIMADO ====== */
.ffv-ab {
    position: relative;
    overflow: hidden;
    border-radius: var(--ffv-ab-radius);
    isolation: isolate;
}

.ffv-ab__inner {
    position: relative;
    z-index: 1;
    border-radius: inherit;
    margin: var(--ffv-ab-thickness);
    background: #141211;
}

.ffv-ab__content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.programa-sello {
    display: block;
}

/* ====== Badge base ====== */
.badge {
    --b: var(--neutral);
    display: inline-flex;
    align-items: center;
    gap: .4em;
    line-height: 1;
    font-weight: 600;
    border-radius: 9999px;
    border: 1px solid transparent;
    padding: .25rem .5rem;
    font-size: .9rem;
    white-space: nowrap;
    transition: filter .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease;
}

.badge--sm {
    font-size: .6875rem;
    padding: .125rem .4rem;
}

.badge--lg {
    font-size: .875rem;
    padding: .375rem .625rem;
}

.badge--rounded {
    border-radius: .5rem;
}

.badge--primary {
    --b: var(--primary);
}

.badge--success {
    --b: var(--success);
}

.badge--warning {
    --b: var(--warning);
}

.badge--danger {
    --b: var(--danger);
}

.badge--neutral {
    --b: var(--neutral);
}

/* Estilos visuales */
.badge--solid {
    background-color: hsl(var(--b));
    color: #fff;
    border-color: hsl(var(--b));
}

.badge--soft {
    background-color: hsla(var(--b) / .14);
    color: hsl(var(--b));
}

.badge--outline {
    background-color: transparent;
    color: hsl(var(--b));
    border-color: hsla(var(--b) / .45);
}

/* Partes internas */
.badge__dot {
    width: .45em;
    height: .45em;
    border-radius: 9999px;
    background: currentColor;
    flex: 0 0 auto;
}

.badge__icon {
    width: 1.05em;
    height: 1.05em;
    display: inline-block;
    flex: 0 0 auto;
}

.badge__avatar {
    width: 1.15em;
    height: 1.15em;
    border-radius: 9999px;
    object-fit: cover;
    flex: 0 0 auto;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .75);
}

/* Accesibilidad: solo para lectores de pantalla */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Contenedor decorado del input + botón */
.email-cta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid var(--ffv-border);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, 0)) border-box,
        #141211 padding-box;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.email-cta:focus-within {
    border-color: var(--ffv-gold);
    box-shadow:
        0 0 0 3px rgba(216, 138, 26, .18),
        0 10px 20px rgba(0, 0, 0, .35);
}

.email-cta__input {
    flex: 1;
    min-width: 0;
    /* evita overflow */
    height: 48px;
    padding: 1rem;
    border: 1px solid var(--ffv-border);
    border-radius: 12px;
    background: rgba(18, 15, 13, .75);
    color: var(--ffv-ink);
    font-size: 1rem;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.email-cta__input::placeholder {
    color: rgba(214, 206, 192, .75);
}

.email-cta__input:focus {
    border-color: var(--ffv-gold);
    background: rgba(18, 15, 13, .95);
    box-shadow: 0 0 0 3px rgba(216, 138, 26, .18);
}

/* Botón con gradiente sutil */
.email-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    height: 48px;
    min-width: 160px;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    color: #1a140a;
    background: linear-gradient(90deg, var(--ffv-gold), var(--ffv-accent));
    box-shadow: 0 8px 18px rgba(227, 79, 28, .25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.email-cta__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    filter: brightness(1.02);
}

.email-cta__btn:active {
    transform: translateY(0);
}

.disabled,
.email-cta__btn:disabled {
    cursor: not-allowed;
    opacity: .6;
    box-shadow: none;
    transform: none;
    filter: none;
}

/* Responsive: stack en móviles estrechos */
@media (max-width: 520px) {
    .email-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .email-cta__btn {
        width: 100%;
    }
}

.hp {
    position: absolute;
    left: -9999px;
}

/* ===== RESPONSIVE ====== */

@media (min-width: 769px) {
    .programa-sello {
        display: block;
        flex-shrink: 0;
    }

    .programa-sello img {
        width: 15rem;
    }
}

@media (min-width: 1024px) {
    .programa-sello img {
        width: 20rem;
    }
}

.ffv-ab::before {
    content: "";
    position: absolute;
    z-index: 0;
    width: 110px;
    height: 800px;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    transform-origin: top center;
    border-radius: var(--ffv-ab-radius);
    background: linear-gradient(90deg, transparent 0%, var(--ffv-ab-color) 50%, transparent 100%);
    animation: ffv-rotate var(--ffv-ab-speed) linear infinite;
    pointer-events: none;
    mix-blend-mode: lighten;
}

@keyframes ffv-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ffv-ab::before {
        animation: none;
        opacity: .35;
    }
}

@media (max-width: 768px) {
    #ffv-landing .hero .hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 85% center;
        opacity: .9;
    }
}