@font-face {
    font-family: 'OrangeAvenueDEMO-Regular';
    src: url('../fuentes/OrangeAvenueDEMO-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orange Avenue DEMO';
    src: url('../fuentes/OrangeAvenueDEMO-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* --- PALETA DE COLORES --- */
:root {
    --dorado: #C49E65;
    --oscuro: #0a1128;
    --marfil: #F4F1EB;
    --texto: #4A5568;
    --rojo-claro: #BE1E1F;
    --rojo-oscuro: #AA1B1F;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--marfil);
    color: var(--texto);
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--dorado);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

h1, h2, h3, .logo {
    font-family: 'Playfair Display', serif;
}

/* --- CLASES DE ANIMACIÓN AL HACER SCROLL --- */
.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 1.3s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.35s; }
.delay-3 { transition-delay: 0.55s; }

.foto-principal-contenedor.reveal,
.foto-contenedor.reveal {
    transform: translateY(35px) scale(0.98);
}

.foto-principal-contenedor.reveal.active,
.foto-contenedor.reveal.active {
    transform: translateY(0) scale(1);
}

.linea-oro.reveal {
    opacity: 1;
    transform: none;
    height: 0;
    transition: height 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.linea-oro.reveal.active {
    height: 80px;
}

/* --- PANTALLA DE CARGA --- */
#preloader {
    position: fixed;
    inset: 0;
    background-color: var(--oscuro);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.oculto {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#preloader img {
    width: min(40vw, 220px);
    height: auto;
    opacity: 0;
    animation: preloaderLogo 1.1s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes preloaderLogo {
    0% { opacity: 0; transform: scale(0.85); filter: blur(6px); }
    60% { opacity: 1; }
    100% { opacity: 1; transform: scale(1); filter: blur(0); }
}

body:not(.loaded) {
    overflow: hidden;
}

/* --- MENÚ SUPERIOR --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    background-color: rgba(244, 241, 235, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0,0,0,0.03);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

.navbar .logo img {
    height: 40px;
    width: auto;
    display: block;
}

.navbar nav a {
    text-decoration: none;
    color: var(--oscuro);
    margin-left: 35px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
}

.navbar nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--dorado);
    transition: width 0.3s ease;
}

.navbar nav a:hover::after {
    width: 100%;
}

.navbar nav a:hover {
    color: var(--dorado);
}

.navbar nav a.pagina-actual {
    color: var(--dorado);
}

.navbar nav a.pagina-actual::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--oscuro);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.activo span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.activo span:nth-child(2) { opacity: 0; }
.menu-toggle.activo span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 17, 40, 0.4);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-overlay.activo {
    display: block;
    opacity: 1;
}

/* --- PORTADA CON VÍDEO Y ANIMACIONES --- */
.hero-video {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.video-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    will-change: transform;
    z-index: -2;
}

.imagen-fondo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.15);
    will-change: transform;
    z-index: -2;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10,17,40,0.3) 0%, rgba(10,17,40,0.7) 100%);
    z-index: -1;
}

.resplandor-dorado {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    max-width: 140vw;
    max-height: 140vw;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(196,158,101,0.3) 0%, rgba(196,158,101,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.hero-contenido {
    position: relative;
    z-index: 1;
    color: #ffffff;
    margin-top: 50px;
}

.hero-contenido h1 {
    margin-bottom: 0;
    opacity: 0;
}

body.loaded .hero-contenido h1 {
    animation: bajarTitulo 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.2s;
}

.hero-contenido h1 img {
    display: block;
    margin: 0 auto;
    width: min(60vw, 480px);
    height: auto;
    filter: drop-shadow(0px 10px 30px rgba(0,0,0,0.5));
}

.hero-contenido h2 {
    margin-bottom: 30px;
    opacity: 0;
}

body.loaded .hero-contenido h2 {
    animation: subirSubtitulo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.6s;
}

.hero-contenido h2 img {
    display: block;
    margin: 0 auto;
    width: min(40vw, 340px);
    height: auto;
}

.linea-oro-horizontal {
    position: relative;
    width: 0;
    height: 1px;
    background-color: var(--dorado);
    margin: 0 auto 22px auto;
    opacity: 0;
}

.linea-oro-horizontal::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    background: var(--rojo-claro);
    transform: translate(-50%, -50%) rotate(45deg);
}

body.loaded .linea-oro-horizontal {
    animation: expandirLineaHorizontal 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.55s;
}

@keyframes expandirLineaHorizontal {
    0% { opacity: 0; width: 0; }
    100% { opacity: 1; width: 60px; }
}

.hero-fecha-destacada {
    font-family: 'Orange Avenue DEMO', 'Playfair Display', serif;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--dorado);
    margin-bottom: 10px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
    opacity: 0;
}

body.loaded .hero-fecha-destacada {
    animation: subirSubtitulo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.7s;
}

.hero-fecha {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: rgba(244, 241, 235, 0.85);
    margin-bottom: 28px;
    opacity: 0;
}

body.loaded .hero-fecha {
    animation: subirSubtitulo 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.8s;
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    opacity: 0;
}

body.loaded .redes-sociales {
    animation: aparecerRedes 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 1.1s;
}

.redes-sociales a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.redes-sociales a:hover {
    background-color: var(--dorado);
    border-color: var(--dorado);
    transform: translateY(-5px);
}

.redes-sociales svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.redes-sociales.oscuro {
    opacity: 1;
    animation: none;
}

.redes-sociales.oscuro a {
    border-color: rgba(10, 17, 40, 0.2);
    color: var(--oscuro);
}

.redes-sociales.oscuro a:hover {
    background-color: var(--dorado);
    border-color: var(--dorado);
    color: var(--oscuro);
}

.boton-apuntate {
    display: inline-block;
    margin-top: 10px;
    padding: 16px 45px;
    border: 1px solid var(--dorado);
    color: var(--dorado);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    transition: all 0.3s ease;
    opacity: 0;
    position: relative;
}

body.loaded .boton-apuntate {
    animation: aparecerRedes 1s cubic-bezier(0.25, 1, 0.5, 1) forwards 0.9s;
}

.boton-apuntate:hover {
    background-color: var(--dorado);
    color: var(--oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(196,158,101,0.35);
}

/* --- FORMULARIO APÚNTATE --- */
.formulario-apuntate {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    text-align: left;
}

.formulario-apuntate label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--oscuro);
    margin-bottom: 6px;
    display: block;
}

.formulario-apuntate input,
.formulario-apuntate select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    background-color: #fff;
    color: var(--texto);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.formulario-apuntate input:focus,
.formulario-apuntate select:focus {
    outline: none;
    border-color: var(--dorado);
    box-shadow: 0 0 0 3px rgba(196,158,101,0.18);
}

.formulario-apuntate button {
    margin-top: 10px;
    padding: 16px 45px;
    border: none;
    background-color: var(--oscuro);
    color: var(--dorado);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.formulario-apuntate button:hover {
    background-color: var(--dorado);
    color: var(--oscuro);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(10,17,40,0.25);
}

.form-estado {
    margin-top: 20px;
    font-size: 0.95rem;
}

@keyframes bajarTitulo {
    0% { opacity: 0; transform: translateY(-40px) scale(0.92); filter: blur(6px); }
    100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

@keyframes subirSubtitulo {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes aparecerRedes {
    0% { opacity: 0; transform: scale(0.8) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- CABECERA DE PÁGINAS INTERIORES --- */
.pagina-cabecera {
    position: relative;
    padding: 200px 12% 110px;
    background-color: var(--oscuro);
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.pagina-cabecera .resplandor-dorado {
    width: 700px;
    height: 700px;
}

.pagina-cabecera .kicker {
    position: relative;
    z-index: 1;
    color: var(--dorado);
}

.pagina-cabecera h1 {
    position: relative;
    z-index: 1;
    font-family: 'Orange Avenue DEMO', 'Playfair Display', serif;
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-style: normal;
    margin-bottom: 18px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.pagina-cabecera p {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 300;
    line-height: 1.9;
    color: rgba(244, 241, 235, 0.8);
}

/* --- SECCIONES DE CONTENIDO --- */
.seccion {
    padding: 120px 12%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.fondo-blanco { background-color: #ffffff; }

.kicker {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rojo-claro);
    margin-bottom: 14px;
}

.seccion-titulo {
    font-family: 'Orange Avenue DEMO', 'Playfair Display', serif;
    font-size: 2.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--oscuro);
    margin-bottom: 25px;
    font-style: normal;
    max-width: 100%;
    overflow-wrap: break-word;
}

.linea-oro {
    position: relative;
    width: 1px;
    height: 80px;
    background-color: var(--dorado);
    margin: 0 auto 40px auto;
}

.linea-oro::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--rojo-claro);
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: 0 0 0 5px var(--marfil);
}

.fondo-blanco .linea-oro::after {
    box-shadow: 0 0 0 5px #ffffff;
}

.seccion p {
    font-size: 1.1rem;
    line-height: 2;
    max-width: 700px;
    font-weight: 300;
    color: #555;
    margin-bottom: 60px;
}

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    width: 100%;
}

.foto-contenedor {
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    position: relative;
    transition: box-shadow 0.4s ease;
}

.foto-contenedor::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(196,158,101,0.4), rgba(196,158,101,0) 30%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.foto-contenedor:hover {
    box-shadow: 0 25px 50px rgba(196,158,101,0.25);
}

.foto-contenedor:hover::after { opacity: 0.5; }

.foto-tarjeta {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.foto-contenedor:hover .foto-tarjeta { transform: scale(1.08); }

.foto-principal-contenedor {
    width: 100%;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    transition: box-shadow 0.4s ease;
}

.foto-principal-contenedor:hover {
    box-shadow: 0 25px 55px rgba(196,158,101,0.25);
}

.foto-principal {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    transition: transform 0.9s cubic-bezier(0.25, 1, 0.5, 1);
}

.foto-principal-contenedor:hover .foto-principal {
    transform: scale(1.06);
}

/* --- PLACEHOLDER DE FOTO PENDIENTE --- */
.foto-placeholder {
    width: 100%;
    height: 100%;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 1px dashed rgba(10, 17, 40, 0.25);
    background: repeating-linear-gradient(135deg, rgba(196,158,101,0.06), rgba(196,158,101,0.06) 10px, transparent 10px, transparent 20px);
    color: rgba(10, 17, 40, 0.45);
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.foto-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.5;
}

.foto-placeholder span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    max-width: 220px;
    line-height: 1.6;
}

/* --- CARRUSEL DE GALERÍA --- */
.carrusel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.carrusel-pista {
    position: relative;
    width: 100%;
    height: 100%;
}

.carrusel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
}

.carrusel-slide.activa {
    opacity: 1;
    pointer-events: auto;
}

.carrusel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Modificador para galerías con fotos predominantemente verticales:
   el propio carrusel adopta un formato de retrato para que las fotos
   lo cubran por completo, sin franjas ni recortes forzados. */
.carrusel.carrusel--vertical {
    width: min(420px, 100%);
    height: auto;
    aspect-ratio: 2 / 3;
    margin: 0 auto;
}

.carrusel-flecha {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 17, 40, 0.45);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 2;
}

.carrusel-flecha:hover {
    background: var(--dorado);
    color: var(--oscuro);
}

.carrusel-anterior { left: 16px; }
.carrusel-siguiente { right: 16px; }

.carrusel-puntos {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 85%;
    background: rgba(10, 17, 40, 0.55);
    padding: 7px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.carrusel-puntos button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carrusel-puntos button.activa {
    background: var(--dorado);
    width: 22px;
    border-radius: 4px;
}

/* --- BLOQUES TEMÁTICOS (INICIO) --- */
.bloques-tematicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2px;
    width: 100%;
    background-color: rgba(10, 17, 40, 0.08);
}

.bloque-tematico {
    background-color: var(--marfil);
    padding: 50px 35px;
    text-align: left;
    display: flex;
    flex-direction: column;
    scroll-margin-top: 100px;
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.bloque-tematico:hover {
    background-color: #ffffff;
    transform: translateY(-6px);
}

.bloque-tematico h4 {
    font-family: 'Orange Avenue DEMO', 'Playfair Display', serif;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oscuro);
    margin-bottom: 14px;
    overflow-wrap: break-word;
}

.bloque-tematico p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    font-weight: 300;
    margin-bottom: 26px;
    flex-grow: 1;
}

.enlace-vermas {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--dorado);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: gap 0.3s ease, color 0.3s ease;
}

.enlace-vermas:hover {
    gap: 14px;
    color: var(--rojo-claro);
}

.enlace-vermas svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    flex-shrink: 0;
}

/* --- LISTA DE FORMACIONES MUSICALES --- */
.lista-formaciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    width: 100%;
    background-color: rgba(10, 17, 40, 0.08);
    text-align: left;
}

.formacion-item {
    background-color: var(--marfil);
    padding: 22px 26px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-left: 2px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.formacion-item:hover {
    border-left-color: var(--rojo-claro);
    background-color: #ffffff;
}

.formacion-item strong {
    font-size: 0.95rem;
    color: var(--oscuro);
    font-weight: 600;
    line-height: 1.4;
}

.formacion-item span {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--rojo-claro);
    font-weight: 600;
}

/* --- BLOQUES ALTERNOS FOTO + TEXTO (fotos verticales) --- */
.bloque-alterno {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 12%;
    max-width: 1200px;
    margin: 0 auto;
}

.bloque-alterno.invertido {
    flex-direction: row-reverse;
}

.bloque-foto-grupo {
    flex: 1 1 42%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}

.foto-vertical {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
    border-radius: 2px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.foto-vertical:hover {
    transform: scale(1.03);
}

.bloque-texto {
    flex: 1 1 55%;
    text-align: left;
}

.bloque-texto .kicker {
    display: block;
}

.bloque-texto p {
    font-size: 1.05rem;
    line-height: 1.8;
    font-weight: 300;
    color: #444;
}

/* --- ETIQUETA DE PRECIO --- */
.precio-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 10px;
}

.precio-badge .cantidad {
    font-family: 'Orange Avenue DEMO', 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--rojo-claro);
}

.precio-badge .etiqueta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #777;
}

/* --- LOGOS INSTITUCIONALES (ORGANIZA / COLABORA) --- */
.seccion-organizadores {
    padding-top: 60px;
    padding-bottom: 60px;
}

.logos-institucionales {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 100px;
    flex-wrap: wrap;
}

.logo-institucional {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.logo-institucional-etiqueta {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--rojo-claro);
}

.logo-institucional img {
    height: 130px;
    width: auto;
    object-fit: contain;
}

/* --- FOOTER Y LEGALES --- */
.footer {
    background-color: var(--oscuro);
    color: #ffffff;
    padding: 80px 20px 30px 20px;
    text-align: center;
}

.footer h3 {
    font-size: 2.2rem;
    color: var(--dorado);
    margin-bottom: 20px;
}

.footer p {
    color: #a0aec0;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.legal-links {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 1 !important; /* Fuerza la visibilidad */
    transform: none !important;
}

.legal-links a {
    color: #a0aec0; /* Gris claro para asegurar contraste */
    text-decoration: none;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--dorado);
}

/* --- MÓVIL (va al final a propósito: así gana el empate de especificidad frente a las reglas base) --- */
@media (max-width: 860px) {
    .navbar { padding: 16px 24px; }

    .navbar .logo img { height: 34px; }

    .menu-toggle { display: flex; }

    .navbar nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: min(75vw, 320px);
        background-color: var(--marfil);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.15);
        z-index: 1000;
    }

    .navbar nav.abierto { right: 0; }

    .navbar nav a { margin-left: 0; font-size: 0.9rem; }

    .hero-contenido h1 img { width: min(70vw, 340px); }
    .hero-contenido h2 img { width: min(55vw, 260px); }
    .hero-fecha-destacada { font-size: 1.2rem; letter-spacing: 1.5px; }

    .resplandor-dorado { width: 500px; height: 500px; }

    .seccion { padding: 70px 6%; }
    .seccion-titulo { font-size: 1.2rem; letter-spacing: 0; line-height: 1.3; }
    .kicker { font-size: 0.6rem; letter-spacing: 1.5px; }
    .seccion p { font-size: 0.95rem; line-height: 1.75; margin-bottom: 35px; }

    .galeria { grid-template-columns: 1fr; gap: 30px; }
    .foto-tarjeta { height: 320px; }

    .logos-institucionales { gap: 50px; }
    .logo-institucional img { height: 90px; }
    .foto-principal { height: auto; aspect-ratio: 3 / 2; min-height: 0; }

    .footer h3 { font-size: 1.4rem; }

    .pagina-cabecera { padding: 140px 6% 60px; }
    .pagina-cabecera h1 { font-size: 1.5rem; letter-spacing: 0; line-height: 1.3; }
    .pagina-cabecera p { font-size: 0.95rem; line-height: 1.75; }

    .carrusel { height: auto; aspect-ratio: 3 / 2; }
    .carrusel .foto-placeholder { min-height: 0; }
    .carrusel-puntos { display: none; }
    .foto-contenedor .foto-placeholder { min-height: 320px; }
    .bloque-tematico h4 { font-size: 1.15rem; letter-spacing: 0; }
    .bloque-tematico { padding: 40px 8%; }
    .precio-badge .cantidad { font-size: 1.3rem; }

    .bloque-alterno,
    .bloque-alterno.invertido {
        flex-direction: column;
        padding: 40px 6%;
        gap: 24px;
    }

    .foto-vertical { box-shadow: 0 10px 20px rgba(0,0,0,0.12); }
}
