:root {
    --gold: #c6a35a;
    --background: #050505;
    --primary: #c6a35a;
    --muted: rgba(255, 255, 255, 0.4);
    --white: #ffffff;
}




/* Reset y Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Raleway', sans-serif; background: var(--background); color: var(--white); overflow-x: hidden; }

/* --- Navegación Superior (Logo + Dorado) --- */
nav {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 3%;
    position: fixed; 
    width: 100%; 
    top: 0; 
    z-index: 1000;
    background: rgba(5, 5, 5, 0.6); 
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(198, 163, 90, 0.15);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre logo y texto */
    text-decoration: none;
}

.nav-logo {
    height: 45px; /* Ajusta el tamaño de tu logo aquí */
    width: auto;
    filter: drop-shadow(0 0 5px rgba(198, 163, 90, 0.3)); /* Brillo sutil al logo */
}

.logo { 
    font-family: 'Cinzel', serif; 
    font-size: 0.85rem; 
    letter-spacing: 4px; 
    text-transform: uppercase; 
    /* Todo el texto del logo en Dorado */
    color: var(--gold); 
    font-weight: 700;
}

.logo span { 
    color: var(--gold); /* Aseguramos que el span también sea dorado */
    opacity: 0.8; /* Un poco más tenue para dar profundidad */
}

.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { 
    text-decoration: none; 
    color: var(--white); 
    font-size: 0.6rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    opacity: 0.6; 
    transition: 0.4s; 
}

.nav-links a:hover { 
    opacity: 1; 
    color: var(--gold); 
    text-shadow: 0 0 10px rgba(198, 163, 90, 0.5);
}








/* --- Layout del Hero --- */
.hero-container { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; }
.absolute-inset { position: absolute; inset: 0; z-index: -1; }

.hero-bg-image { 
    width: 100%; 
    height: 100%; 
    background: url('img/coctel_inicio.png') center/cover no-repeat; 
    filter: brightness(0.9) contrast(1.2); /* Ajustado para que el dorado resalte más */
}

.overlay-75 { 
    position: absolute; 
    inset: 0; 
    background-color: rgba(5, 5, 5, 0.4); 
}

.overlay-gradient { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, 
        var(--background) 0%, 
        rgba(5, 5, 5, 0.2) 50%, 
        rgba(5, 5, 5, 0.4) 100%); 
}

.hero-content-wrapper { 
    position: relative; 
    z-index: 10; 
    padding: 0 1.5rem; 
    max-width: 60rem; 
    margin-top: 40px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

/* --- Elementos Visuales --- */
.gold-line-small { width: 40px; height: 1px; background-color: var(--gold); margin: 0 auto; opacity: 0.6; }
.mb-8 { margin-bottom: 2rem; }
.mt-8 { margin-top: 2rem; }

/* Título unificado en Dorado */
.main-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.2rem, 5vw, 3.2rem);
    line-height: 1.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 400;
    /* Aplicamos el degradado a todo el h1 */
    background: linear-gradient(to right, #c6a35a, #f1d596, #c6a35a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.gold-gradient-text {
    /* Mantenemos esta clase por si la usas en otros lados, pero el título ya es dorado */
    background: linear-gradient(to right, #c6a35a, #f1d596, #c6a35a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.signature-text {
    font-size: 0.65rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
}

.btn-lovable {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    padding: 1.2rem 3rem;
    border: 1px solid rgba(198, 163, 90, 0.3);
    color: var(--gold);
    text-decoration: none;
    transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-lovable:hover {
    background: rgba(198, 163, 90, 0.1);
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(198, 163, 90, 0.15);
    letter-spacing: 0.4em;
}

/* --- Animaciones --- */
.animate-scale-opacity { animation: scaleOpacity 1.5s ease-out forwards; }
.animate-slide-up { animation: slideUp 1s ease-out 0.8s forwards; opacity: 0; }
.animate-slide-up-delayed { animation: slideUp 1s ease-out 1.2s forwards; opacity: 0; }

@keyframes scaleOpacity { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }







/*edicion de la trilogia////////////////
/* --- Estilos de La Trilogía (Añadir al final) --- */
.trilogia-section {
    padding: 120px 8%;
    background-color: var(--background);
    text-align: center;
}

.container-trilogia {
    max-width: 1200px;
    margin: 0 auto;
}

.section-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 15px;
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.gold-divider {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 80px;
    opacity: 0.4;
}

.trilogia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.trilogia-card {
    background: rgba(15, 15, 15, 0.3);
    padding: 60px 45px;
    border: 1px solid rgba(255, 255, 255, 0.03);
    position: relative;
    text-align: left;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Tarjeta Central Resaltada - Estilo Lovable */
.trilogia-card.featured {
    border: 1px solid var(--gold);
    box-shadow: inset 0 0 30px rgba(198, 163, 90, 0.02);
}

.roman-num {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: var(--gold);
    opacity: 0.2;
    display: block;
    margin-bottom: 25px;
}

.trilogia-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
}

.card-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.trilogia-card:hover {
    background: rgba(198, 163, 90, 0.05);
    transform: translateY(-10px);
    border-color: var(--gold);
}






/*seccion del manifiesto //////////////////////
/* --- Estilos de El Manifiesto --- */
.manifiesto-section {
    padding: 120px 8%;
    background-color: var(--background);
}

.container-manifiesto {
    max-width: 1100px;
    margin: 0 auto;
}

.manifiesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas iguales */
    gap: 80px;
    align-items: center;
}

/* Imagen y Resplandor */
.manifiesto-image-wrapper {
    position: relative;
    border: 1px solid rgba(198, 163, 90, 0.1);
}

.manifiesto-img {
    width: 100%;
    display: block;
    filter: brightness(0.9) contrast(1.1);
}

.image-glow {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(198, 163, 90, 0.1), 0 0 30px rgba(198, 163, 90, 0.05);
    pointer-events: none;
}

/* Textos del Manifiesto */
.manifiesto-text {
    text-align: left;
}

.text-badge {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.text-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 400;
}

.text-line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 40px;
    opacity: 0.5;
}

.text-body {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    font-weight: 300;
}

.text-body p {
    margin-bottom: 20px;
}

/* La Cita (Quote) */
.text-quote {
    font-family: 'Cinzel', serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--gold);
    border-left: 1px solid var(--gold);
    padding-left: 20px;
    margin-top: 50px;
    opacity: 0.8;
    letter-spacing: 2px;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .manifiesto-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}




/* seccion del codice/////////////////////////// */
/* --- Estilos de El Códice --- */
.codice-section {
    padding: 100px 8%;
    background-color: var(--background);
    text-align: center;
}

.section-badge-center {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 15px;
}

.section-title-center {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.gold-divider-center {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 20px auto 60px;
    opacity: 0.4;
}

/* Grilla de la Galería */
.codice-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.codice-item {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: #111;
}

.codice-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) contrast(1.1);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- NUEVOS ESTILOS PARA EL OVERLAY CON TEXTO --- */
.codice-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 5, 0.8); /* Fondo oscuro para legibilidad */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    opacity: 0; /* Oculto por defecto */
    transition: all 0.6s ease;
    text-align: center;
    backdrop-filter: blur(3px); /* Desenfoque elegante de la imagen de fondo */
}

.codice-overlay h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
    transform: translateY(20px); /* Efecto de subir */
    transition: transform 0.6s ease;
}

.codice-overlay p {
    font-family: 'Raleway', sans-serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    line-height: 1.6;
    font-weight: 300;
    transform: translateY(20px);
    transition: transform 0.6s ease 0.1s; /* Retraso sutil */
}

/* Interacción al pasar el puntero */
.codice-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.5) blur(2px);
}

.codice-item:hover .codice-overlay {
    opacity: 1; /* Aparece el texto */
}

.codice-item:hover .codice-overlay h3,
.codice-item:hover .codice-overlay p {
    transform: translateY(0); /* El texto sube a su posición final */
}

.codice-item:hover {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(198, 163, 90, 0.2);
    z-index: 2;
}

/* Responsive */
@media (max-width: 900px) {
    .codice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .codice-grid { grid-template-columns: 1fr; }
    .codice-overlay { opacity: 0; background: rgba(5, 5, 5, 0.4); justify-content: flex-end; padding: 15px; } /* En móvil el texto siempre se ve un poco abajo */
    .codice-overlay h3, .codice-overlay p { transform: translateY(0); }
}




/* --- Estilos de Admisiones Compacto (Estilo Lovable) --- */
.admisiones-section {
    padding: 100px 8%;
    background-color: var(--background);
    display: flex;
    justify-content: center; /* Centra el bloque entero horizontalmente */
    text-align: center;
}

.container-admisiones {
    max-width: 600px; /* ANCHO MÁS ESTRECHO Y ELEGANTE */
    width: 100%;
    margin: 0 auto;
}

.admisiones-form {
    margin-top: 50px;
    display: flex;
    flex-direction: column;
    gap: 30px; /* Espacio uniforme entre campos */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left; /* Etiquetas alineadas a la izquierda */
}

.form-group label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.7;
}

.form-group input, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(198, 163, 90, 0.15);
    padding: 16px;
    color: var(--white);
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.4s ease;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(198, 163, 90, 0.03);
    box-shadow: 0 0 10px rgba(198, 163, 90, 0.05);
}

/* Botón Centrado */
.form-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center; /* Centra el botón horizontalmente */
}

.btn-solicitar {
    background: transparent;
    border: 1px solid rgba(198, 163, 90, 0.4);
    color: var(--gold);
    padding: 18px 45px;
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    width: auto; /* Evita que ocupe todo el ancho */
}

.btn-solicitar:hover {
    background: var(--gold);
    color: var(--background);
    box-shadow: 0 0 25px rgba(198, 163, 90, 0.3);
    letter-spacing: 5px;
}

/* Ajuste específico para el título de Admisiones en móviles */
@media (max-width: 600px) {
    .section-title-center {
        font-size: 1.6rem; /* Tamaño más contenido para que no choque con los bordes */
        letter-spacing: 3px; /* Reducimos el espaciado para que entre en una o dos líneas limpias */
        line-height: 1.3;
        margin-bottom: 15px;
        padding: 0 10px; /* Evita que las letras toquen los bordes físicos de la pantalla */
    }

    .container-admisiones {
        padding: 0 20px; /* Damos un respiro lateral al contenedor */
    }

    .gold-divider-center {
        margin: 10px auto 40px; /* Reducimos el espacio excesivo bajo la línea dorada */
    }

    .btn-solicitar {
        width: 100%; /* En móvil si ocupa todo el ancho */
    }
}

/* seccion ultima de la pagina cierre shido 
/* --- Estilos del Footer Final --- */
.footer-final {
    padding: 100px 0 60px; /* Espaciado generoso arriba y abajo */
    background-color: var(--background);
    text-align: center;
    border-top: 1px solid rgba(198, 163, 90, 0.05); /* Línea divisoria casi invisible */
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px; /* Espacio entre logo, nombre y créditos */
}

.footer-logo-img {
    height: 70px; /* Tamaño destacado para el cierre */
    width: auto;
    filter: brightness(0.9) drop-shadow(0 0 15px rgba(198, 163, 90, 0.1));
    margin-bottom: 10px;
}

.footer-brand-name {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 6px; /* Espaciado de letras muy elegante */
    color: var(--gold);
    text-transform: uppercase;
    opacity: 0.8;
}

.footer-credits {
    font-family: 'Raleway', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: var(--muted);
    opacity: 0.6;
}

/* Ajuste para que se vea bien en móviles */
@media (max-width: 600px) {
    .footer-final {
        padding: 60px 20px;
    }
    .footer-brand-name {
        font-size: 0.6rem;
        letter-spacing: 4px;
        line-height: 1.6;
    }
}



/* seccion de redes sociales 
/* --- Estilos de Contactos y Redes --- */
.contacto-extra-section {
    padding: 80px 8% 120px;
    background-color: var(--background);
    border-top: 1px solid rgba(198, 163, 90, 0.03);
}

.container-contacto {
    max-width: 1100px;
    margin: 0 auto;
}

.contacto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.contacto-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(198, 163, 90, 0.1);
    padding: 40px;
    text-align: center;
    transition: all 0.5s ease;
}

.contacto-card:hover {
    border-color: var(--gold);
    background: rgba(198, 163, 90, 0.02);
    transform: translateY(-5px);
}

.contacto-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--gold);
    margin-bottom: 20px;
    opacity: 0.8;
}

.contacto-card h4 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.contacto-card p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.contacto-link {
    font-family: 'Raleway', sans-serif;
    font-size: 0.7rem;
    color: var(--white);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 5px;
    transition: 0.3s;
}

.contacto-link:hover {
    color: var(--gold);
}

/* Wrapper de Redes Sociales */
.social-links-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.social-links-wrapper a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--white);
    text-decoration: none;
    opacity: 0.6;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 15px;
}

.social-links-wrapper a:hover {
    opacity: 1;
    color: var(--gold);
    border-color: var(--gold);
}

.status-badge {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.6rem;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 5px 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr;
    }
}
/* --- MENÚ HAMBURGUESA Y RESPONSIVO --- */

/* Contenedor de la hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 9999; /* Por encima de TODO */
    padding: 10px;
}

.menu-toggle .bar {
    width: 28px;
    height: 2px;
    background-color: var(--gold);
    transition: all 0.3s ease;
}


.menu-overlay.active {
    display: block;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; 
    }

    .nav-links {
        position: fixed;
        right: -100%; /* Escondido */
        top: 0;
        height: 100vh;
        width: 280px; /* Menú más pequeño y elegante */
        background: #0a0a0a; 
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px !important; /* Espacio entre botones */
        transition: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: 9500; 
        border-left: 1px solid rgba(198, 163, 90, 0.3);
        padding: 40px;
    }

    .nav-links.active {
        right: 0; 
    }

    /* Transformar enlaces en BOTONES */
    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 15px 10px;
        font-size: 0.75rem !important; /* Texto legible pero no gigante */
        text-align: center;
        border: 1px solid rgba(198, 163, 90, 0.2); /* Apariencia de botón */
        color: var(--white) !important;
        opacity: 0.9 !important;
        letter-spacing: 3px;
        transition: 0.3s;
    }

    .nav-links a:hover, .nav-links a:active {
        background: rgba(198, 163, 90, 0.1);
        border-color: var(--gold);
        color: var(--gold) !important;
    }

    /* Botón especial (Admisiones) dentro del menú */
    .nav-links a.btn-nav {
        background: var(--gold);
        color: #000 !important;
        font-weight: 700;
        border: none;
    }

    /* Animación X */
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}