:root {
    --bg: #001a27;
    --text: #ffffff;
    --muted: #b8c9d1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Circular Std", Arial, sans-serif;
    line-height: 1.7;
}

/* Offset for fixed header */
section {
    scroll-margin-top: 120px;
}


/* HEADER */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
}

header.hide {
    transform: translateY(-100%);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 32px;
    background: rgba(0, 26, 39, 0.95);
}

.txt-center {
    text-align: center;
}


.m-top {
    margin-top: 24px;
}

.venecia-logo-wrapper {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    /* separación entre título y hero image */
}

.venecia-logo {
    max-width: 180px;
    /* ajusta según tu diseño */
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    /* sombra ligera */
    transition: transform 0.3s ease;
}

.venecia-logo:hover {
    transform: scale(1.05);
    /* leve zoom al pasar el mouse */
}

/* =========================
   FRECUENCIA DE VOZ
========================= */
.hero {
    text-align: center;
    padding-top: 120px;
}

.venice-logo {
    display: block;
    margin: 0 auto 16px;
    width: 220px;
}

.titulo {
    display: block;
    margin: 0 auto 32px;
    width: 60%;
}
.titulo2 {
    display: block;
    margin: 32px auto 32px;
    width: 40%;
}

.frequency-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 85%;
    max-width: 1100px;
    height: 60px;
    margin: 0 auto 24px;
}

@media (max-width: 768px) {
    .frequency-container {
        height: 40px; /* menos alto en móvil */
        gap: 2px;
    }

    .main-bar {
        animation-duration: 1.2s !important; /* más lenta */
        --max-scale: 1.8 !important;
    }

    .small-bar,
    .side-bar-left,
    .side-bar-right {
        animation-duration: 1.5s !important;
        --max-scale: 1.2 !important;
    }
}


/* HERO SLIDER */
.hero-slider {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: 500px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
    .hero-title {
        font-size: 34px;
    }

    .hero-slider {
        height: 300px;
    }

    .venice-logo {
        max-width: 180px;
        margin-bottom: 16px;
    }

.titulo {
    display: block;
    margin: 0 auto 32px;
    width: 80%;
}
.titulo2 {
    display: block;
    margin: 32px auto 32px;
    width: 80%;
}
}

/* BARRAS PRINCIPALES */
.main-bar {
    width: 3px;
    height: 25px;
    opacity: 0.3;
    /* leve transparencia */
    background: #9dd5cc;
    border-radius: 9px;
    box-shadow: 0 0 10px rgba(111, 211, 255, 1.9),
        0 0 20px rgba(111, 211, 255, 1.9),
        0 0 30px rgba(111, 211, 255, 1.9);
    animation: pulse-main 1.2s infinite ease-in-out;
}

/* BARRAS PEQUEÑAS */
.small-bar {
    width: 2px;
    height: 6px;
    background: #9dd5cc;
    opacity: 0.2;
    /* leve transparencia */
    border-radius: 9px;
    box-shadow: 0 0 6px rgba(111, 211, 255, 1.7),
        0 0 12px rgba(111, 211, 255, 1.5),
        0 0 18px rgba(111, 211, 255, 1.3);
    animation: pulse-small 1.5s infinite ease-in-out;
}

/* Barras laterales */
.side-bar-left,
.side-bar-right {
    width: 2px;
    height: 15px;
    background: rgba(157, 213, 204, 0.8);
    border-radius: 9px;
    opacity: 0.2;
    box-shadow:
        0 0 10px rgba(111, 211, 255, 0.4),
        0 0 20px rgba(111, 211, 255, 0.3),
        0 0 30px rgba(111, 211, 255, 0.2);
    animation: pulse-main var(--duration, 1.2s) infinite ease-in-out, wave-main var(--duration, 1.2s) infinite ease-in-out;
    transform-origin: bottom center;
}

/* Animaciones */
@keyframes pulse-main {

    0%,
    25%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(2.2);
    }
}

@keyframes pulse-small {

    0%,
    25%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(1.3);
    }
}



/* =========================
   IMAGEN HERO (POSTER)
========================= */
.hero-image {
    width: 85%;
    max-width: 800px;
    margin-top: 18px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

/* =========================
   LOGO HOVER
========================= */
.logo-link {
    display: inline-block;
}

.logo {
    height: 50px;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

/* Desktop hover */
@media (hover: hover) and (pointer: fine) {
    .logo-link:hover .logo {
        filter: grayscale(100%);
        opacity: 0.8;
    }
}

/* =========================
   HAMBURGUESA
========================= */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 1100;
}

/* =========================
   MENU ICON — SIMPLE HOVER
========================= */
.menu-toggle i {
    font-size: 22px;
    color: #ffffff;
    transition: color 0.25s ease, opacity 0.25s ease;
}

/* Hover SOLO color (desktop) */
@media (hover: hover) and (pointer: fine) {
    .menu-toggle:hover i {
        color: #98b4b0;
    }
}

/* Open → fade al icono (para la X) */
.menu-toggle.open i {
    opacity: 0;
}


.menu-toggle.open::before,
.menu-toggle.open::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 4px;
    width: 24px;
    height: 2px;
    background: #ffffff;
}

.menu-toggle.open::before {
    transform: rotate(45deg);
}

.menu-toggle.open::after {
    transform: rotate(-45deg);
}

/* =========================
   MENU BASE
========================= */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 22px;
}

.nav-menu a {
    position: relative;
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 0;
    transition: color 0.25s ease;
    font-family: "Barlow Condensed", sans-serif;
}

/* =========================
   DESKTOP HOVER
========================= */
@media (hover: hover) and (pointer: fine) {

    /* Cambio de color */
    .nav-menu a:hover {
        color: #98b4b0;
    }

    /* Capas base */
    .nav-menu a::after,
    .nav-menu a::before,
    .nav-menu a span::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -6px;
        width: 100%;
        height: 6px;
        pointer-events: none;
        opacity: 0;
        transform-origin: center;
    }

    /* CAPA 1 – rápida */
    .nav-menu a::after {
        background:
            repeating-linear-gradient(90deg,
            transparent 0,
            transparent 6px,
            #6fd3ff 7px,
            transparent 8px);
    }

    /* CAPA 2 – media */
    .nav-menu a::before {
        background:
            repeating-linear-gradient(90deg,
            transparent 0,
            transparent 10px,
            rgba(255, 255, 255, 0.8) 11px,
            transparent 12px);
    }

    /* CAPA 3 – profunda */
    .nav-menu a span::after {
        background:
            repeating-linear-gradient(90deg,
            transparent 0,
            transparent 14px,
            rgba(111, 211, 255, 0.35) 15px,
            transparent 16px);
    }

    /* Activación */
    .nav-menu a:hover::after {
        opacity: 1;
        animation: voiceWaveA 0.45s ease-in-out infinite;
    }

    .nav-menu a:hover::before {
        opacity: 1;
        animation: voiceWaveB 0.75s ease-in-out infinite;
    }

    .nav-menu a:hover span::after {
        opacity: 1;
        animation: voiceWaveC 1s ease-in-out infinite;
    }
}

/* =========================
   ANIMACIONES
========================= */
@keyframes voiceWaveA {
    0% {
        transform: scaleY(0.6);
    }

    25% {
        transform: scaleY(1.3);
    }

    50% {
        transform: scaleY(0.7);
    }

    75% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0.6);
    }
}

@keyframes voiceWaveB {
    0% {
        transform: scaleY(1);
    }

    30% {
        transform: scaleY(0.5);
    }

    60% {
        transform: scaleY(1.4);
    }

    100% {
        transform: scaleY(1);
    }
}

@keyframes voiceWaveC {
    0% {
        transform: scaleY(0.8);
    }

    40% {
        transform: scaleY(1.6);
    }

    70% {
        transform: scaleY(0.6);
    }

    100% {
        transform: scaleY(0.8);
    }
}



/* =========================
   MOBILE / RESPONSIVE
========================= */
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 64px;
        right: 0;
        width: 100%;
        background: #001a27;
        flex-direction: column;
        padding: 24px 20px;
        display: none;
        gap: 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 14px;
    }

    /* =========================
       MOBILE: SOLO COLOR
    ========================= */
    .nav-menu a {
        font-size: 14px;
        letter-spacing: 3px;
        color: #ffffff;

    }

    .nav-menu a:hover,
    .nav-menu a:active {
        color: #98b4b0;
    }

    /* APAGA COMPLETAMENTE LA FRECUENCIA */
    .nav-menu a::before,
    .nav-menu a::after {
        content: none !important;
        display: none !important;
        opacity: 0 !important;
        animation: none !important;
    }
}



/* HERO */
.hero {
    padding-top: 140px;
    text-align: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 32px;
}

.hero-image {
    width: 85%;
    max-width: 1100px;
}

/* SECTIONS */
.section {
    padding: 90px 12%;
}

.section-alt {
    background: rgba(255, 255, 255, 0.03);
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase;
    text-align: center;
    color: #5c7c85;
}

h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    text-align: center;
    color: #5c7c85;
}

.section p {
    max-width: 800px;
    margin: 0 auto;

    text-align: justify;
}

/* VIDEO */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    max-width: 1100px;
    margin: 0 auto;
}

.video-wrapper iframe {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* INFO */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* CAST */
.cast-list {
    list-style: none;
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

.cast-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.cast-col {
    text-align: center;
}

.cast-col img {
    width: 100%;
    max-width: 180px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 4px;
}

.cast-name {
    font-weight: 600;
    letter-spacing: 0.5px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .cast-item {
        grid-template-columns: 1fr;
    }

.logo {
    height: 40px;
    transition: filter 0.25s ease, opacity 0.25s ease;
}
}

/* =========================
   PROGRAMACION
========================= */

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 24px;
}
.info-grid div {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
}

/* izquierda */
.info-grid div:nth-child(1) {
    justify-content: flex-start;
    text-align: left;
}

/* centro */
.info-grid div:nth-child(2) {
    justify-content: center;
    text-align: center;
}

/* derecha */
.info-grid div:nth-child(3) {
    justify-content: flex-end;
    text-align: right;
}


.program-note {
    max-width: 700px;
    font-size: 14px;
    color: var(--muted);
    text-align: justify;
    line-height: 1.5;
}

/* =========================
   CALENDAR LINKS
========================= */
.calendar-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* Botones calendario */
.btn-calendar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #98b4b0;
    color: #001a27;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.25s ease, transform 0.2s ease;
}

.btn-calendar i {
    font-size: 14px;
}

.btn-calendar:hover {
    background: #314945;
    transform: translateY(-2px);
    color: #fff;
}

/* BOTON DESACTIVADO CARTELERA */
.btn-calendar.disabled {
    background: #333;
    color: #888;
    cursor: not-allowed;
    position: relative;
}

.btn-calendar.disabled:hover {
    background: #314945;
    color: #fff;
    /* El texto cambia a blanco al pasar */
}

/* Tooltip: solo visible en hover */
.btn-calendar.disabled .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #314945;
    color: #ccc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn-calendar.disabled:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .btn-calendar {
        width: 100%;
        justify-content: center;
    }

    .btn-calendar.disabled .tooltip-text {
        bottom: 100%;
    }
}


/* DIRECTOR BIO */
.director-bio {
    max-width: 900px;
    margin: 0 auto 80px;
    text-align: center;
}

.director-bio img {
    width: 100%;
    max-width: 460px;
    margin: 0 auto 24px;
    display: block;
    border-radius: 4px;
}

.bio-text h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.bio-text h5 {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.bio-text p {
    max-width: 720px;
    margin: 0 auto 14px;
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}

/* CAST ROW STRIPES */
.cast-item {
    padding: 32px 24px;
    border-radius: 6px;
}

/* Filas pares más oscuras */
.cast-item:nth-child(even) {
    background: rgba(0, 0, 0, 0.18);
}

/* Filas impares ligeramente más claras */
.cast-item:nth-child(odd) {
    background: rgba(255, 255, 255, 0.04);
}


/* =========================
   DONACIONES
========================= */
#donaciones {
    text-align: center;
    padding: 20px 8%;
}

#donaciones span {
    font-weight: bold;
color: #5c7c85;
}

#donaciones .section-title {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 24px;
    text-transform: uppercase; 
}

#donaciones .donation-text,
#donaciones .donation-note {
    max-width: 800px;
    margin: 0 auto 24px auto;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
text-align: center;
}

#donaciones .donation-qr img {
    width: 180px;
    max-width: 60%;
    height: auto;
    margin: 20px auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#donaciones .donation-qr img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* =========================
   FICHA TÉCNICA
========================= */

.tech-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.tech-col p {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 1.2px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85); 
}

.tech-col strong {
    font-weight: 600;
    color: #ffffff;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
    .tech-sheet {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .tech-col p {
        font-size: 12px;
        letter-spacing: 1.5px;
    }
}


/* FOOTER */
footer {
    background: #000f17;
    padding: 26px;
    text-align: center;
    font-family: "Barlow Condensed", sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
}

footer .social {
    margin-top: 14px;
}

.social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 20px 0;
}

.social a {
    color: #fff;
    font-size: 12px;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
}

.social a:hover {
    transform: scale(1.2);
    color: #81a19c; /* color del glow o acento */
    text-shadow: 0 0 8px rgba(111, 211, 255, 0.8),
                 0 0 16px rgba(111, 211, 255, 0.6);
}

footer a {
    color: #fff;
    margin: 0 6px;
    font-size: 12px;
}
footer a:hover {
    transform: scale(1.2);
    color: #81a19c; /* color del glow o acento */
    text-shadow: 0 0 8px rgba(111, 211, 255, 0.8),
                 0 0 16px rgba(111, 211, 255, 0.6);
}
#toTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #5c7c85;
    /* color base azul */
    color: #FFF;
    /* texto / icono oscuro */
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 26, 39, 0.35);
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icono dentro del botón */
#toTop i {
    font-size: 16px;
    margin-left: 0;
}

/* Hover */
#toTop:hover {
    background: #81a19c;
    /* azul un poco más oscuro */
    color: #314945;
    /* texto/icono cambia a blanco */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 26, 39, 0.45);
}

/* Efecto onda ligera detrás del botón */
#toTop::before {
    content: "";
    position: absolute;
    left: -50%;
    top: -50%;
    width: 200%;
    height: 200%;
    background: rgba(111, 211, 255, 0.15);
    transform: scale(0);
    border-radius: 50%;
    transition: transform 0.5s ease;
    z-index: 0;
}

#toTop:hover::before {
    transform: scale(1);
}

/* Asegurar que el icono esté por encima del efecto */
#toTop>* {
    position: relative;
    z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
    #toTop {
        padding: 10px 14px;
        font-size: 13px;
    }
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        right: 0;
        top: 64px;
        background: #001a27;
        flex-direction: column;
        width: 220px;
        padding: 20px;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-title {
        font-size: 34px;
    }

    .section {
        padding: 70px 8%;
    }

    .cast-item {
        grid-template-columns: 1fr;
    }
}


.hero-image,
.cast-col img,
.director-bio img {
    border-radius: 6px;
    box-shadow:
        0 12px 24px rgba(0, 0, 0, 0.55),
        0 4px 10px rgba(0, 0, 0, 0.45);
}