/* ================= FUENTES PERSONALIZADAS ================= */
@font-face {
    font-family: 'LetraUno';
    src: url('fonts/l1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'LetraDos';
    src: url('fonts/l2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ================= VARIABLES ================= */
:root {
    --primary-color: #3e4a3d; 
    --accent-color: #D2B897;  
    --accent-hover: #b89f7d;
    --luminous-gold: #FFD700;
    --solar-pastel: #fffad0; 
    --bg-color: #fdfbf7;      
    --bg-light: #f4f1eb;
    --text-dark: #2c352b;
    --text-light: #ffffff;
    
    /* Tipografías */
    --font-main: 'Helvetica Neue', Arial, sans-serif;
    --font-l1: 'LetraUno', cursive; 
    --font-l2: 'LetraDos', cursive; 
    
    /* Efectos elásticos para animaciones vistosas */
    --transition-elastic: all 0.8s cubic-bezier(0.68, -0.55, 0.26, 1.55);
    --transition-slow: all 0.7s cubic-bezier(0.25, 1, 0.25, 1);
    --transition-fast: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --organic-corner: 100px;
    --rounded-corner: 50px;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
}

/* ================= PRELOADER ================= */
#preloader {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-color: var(--primary-color);
    display: flex; 
    align-items: center;
    z-index: 9999; 
    transition: opacity 1s ease;
}

.pulse-logo.luminous { 
    margin: auto; 
    height: 180px; 
    filter: drop-shadow(0 0 30px var(--luminous-gold)); 
    animation: pulse-glow 2s infinite ease-in-out; 
}

/* ================= TIPOGRAFÍA Y BOTONES BASE ================= */
h1, h2, h3 { 
    font-weight: 300; 
    margin-bottom: 1.2rem; 
    letter-spacing: 2px; 
}

h1 { 
    font-size: 5rem; 
    text-shadow: 0 0 15px rgba(210, 184, 151, 0.8); 
}

h2 { 
    font-size: 3.2rem; 
    color: var(--primary-color); 
    text-transform: uppercase; 
    letter-spacing: 3px; 
}

.btn-primary, 
.btn-secondary, 
.link-btn {
    display: inline-block; 
    padding: 15px 35px; 
    border: none; 
    cursor: pointer;
    text-transform: uppercase; 
    font-size: 0.9rem; 
    letter-spacing: 3px;
    transition: var(--transition-elastic); 
    position: relative; 
    overflow: hidden; 
    border-radius: var(--rounded-corner);
}

.btn-primary.luminous { 
    background-color: var(--primary-color); 
    color: var(--accent-color); 
    border: 2px solid var(--accent-color); 
    box-shadow: 0 6px 20px rgba(0,0,0,0.2); 
}

.btn-primary.luminous:hover { 
    background-color: var(--accent-color); 
    color: var(--primary-color); 
    box-shadow: 0 12px 35px rgba(210, 184, 151, 0.6); 
    transform: translateY(-5px); 
}

.btn-secondary.bio-organic { 
    background: linear-gradient(45deg, var(--accent-color), #b89f7d); 
    color: var(--primary-color); 
    font-weight: bold; 
    border-radius: var(--organic-corner); 
}

.btn-secondary.bio-organic:hover { 
    background: linear-gradient(45deg, #ffffff, var(--accent-color)); 
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4); 
    transform: translateY(-5px) scale(1.05); 
}

.link-btn.luminous-text {
    display: inline-block; 
    margin-top: 20px; 
    color: var(--primary-color);
    border-bottom: 3px solid var(--accent-color); 
    padding-bottom: 8px;
    text-transform: uppercase; 
    font-size: 0.95rem; 
    letter-spacing: 2px;
    transition: var(--transition-elastic); 
    background: transparent; 
    border-top: none; 
    border-left: none; 
    border-right: none; 
    cursor: pointer; 
    border-radius: 0;
}

.link-btn.luminous-text:hover { 
    color: var(--luminous-gold); 
    letter-spacing: 5px; 
    filter: drop-shadow(0 0 10px var(--luminous-gold)); 
    transform: translateY(-3px); 
}

/* ================= NAVEGACIÓN ================= */
header {
    position: fixed; 
    top: 30px; 
    left: 5%; 
    width: 90%;
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 10px 40px; 
    z-index: 1000; 
    transition: var(--transition-slow);
    background-color: rgba(62, 74, 61, 0.85); 
    backdrop-filter: blur(15px);
    border-radius: 40px; 
    border: 1px solid rgba(210, 184, 151, 0.3); 
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

header.scrolled { 
    top: 15px; 
    background-color: rgba(62, 74, 61, 0.95); 
    padding: 8px 40px; 
    box-shadow: 0 15px 50px rgba(0,0,0,0.4); 
}

header.hidden { 
    transform: translateY(calc(-100% - 50px)); 
    opacity: 0; 
    pointer-events: none; 
}

/* ESTILOS DE LA NUEVA PALABRA LOGO "ECLIPSE" */
.header-text-logo { 
    font-family: var(--font-l1); /* <--- AQUÍ MANDAMOS A LLAMAR A L2.TTF */
    color: var(--text-light); 
    text-transform: none; /* Quitamos las mayúsculas forzadas para que la cursiva fluya natural */
    font-size: 1.9rem; /* La hacemos más grande para que tenga presencia de logo */
    letter-spacing: 0px; 
    font-weight: normal; 
    text-decoration: none; 
    transition: var(--transition-slow); 
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.2)); 
}

header.scrolled .header-text-logo { 
    font-size: 1.4rem; /* Se hace un poco más pequeña al hacer scroll */
}

.header-text-logo:hover { 
    color: var(--luminous-gold); 
    filter: drop-shadow(0 0 10px var(--luminous-gold)); 
}

header .btn-primary { 
    padding: 10px 25px; 
    font-size: 0.8rem; 
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 15px; 
}

.nav-links a { 
    color: var(--text-light); 
    text-transform: uppercase; 
    font-size: 0.80rem; 
    letter-spacing: 2px; 
    transition: var(--transition-elastic); 
    position: relative; 
    padding: 8px 16px; 
    border-radius: 20px; 
    border: 1px solid transparent; 
}

.nav-links a:hover { 
    color: var(--luminous-gold); 
    background-color: rgba(210, 184, 151, 0.15); 
    border: 1px solid rgba(210, 184, 151, 0.3); 
    transform: translateY(-3px) scale(1.05); 
}

/* ================= HERO ================= */
.hero { 
    height: 100vh; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    color: var(--text-light); 
    overflow: hidden; 
    padding-top: 30vh; 
}

.hero-bg { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 110%; 
    height: 130%; 
    object-fit: cover; 
    z-index: -2; 
    filter: brightness(0.6); 
}

.watermark-logo-large { 
    position: absolute; 
    width: 900px; 
    opacity: 0.08; 
    z-index: -1; 
    filter: drop-shadow(0 0 30px var(--accent-color)); 
}

/* ================= APLICACIÓN DE FUENTES ================= */
.hero-content h1 { 
    font-family: var(--font-l2); 
    text-transform: none; 
    font-size: 6.5rem; 
    font-weight: normal; 
    letter-spacing: 0px; 
}

.hero-content p { 
    font-family: var(--font-l1); 
    font-size: 2rem; 
    text-transform: none; 
    letter-spacing: 1px; 
}

#about h2, 
#rooms h2, 
#services h2, 
.contact-info h2 { 
    font-family: var(--font-l1); 
    text-transform: none; 
    font-size: 4rem; 
    letter-spacing: 0px; 
    font-weight: normal; 
}

.ultra-content-scroll h2, 
.ultra-content-center h2 { 
    font-family: var(--font-l1); 
    text-transform: none; 
    font-size: 3.5rem; 
    letter-spacing: 0px; 
    font-weight: normal; 
}

/* ================= BARRA DE RESERVAS ================= */
.booking-bar.bio-luxury {
    position: absolute; 
    bottom: 30px; 
    background-image: linear-gradient(135deg, rgba(210, 184, 151, 0.9), rgba(210, 184, 151, 0.7));
    border: 2px solid rgba(255, 215, 0, 0.5); 
    backdrop-filter: blur(15px); 
    padding: 15px 40px;
    box-shadow: 0 25px 60px rgba(210, 184, 151, 0.5); 
    border-radius: var(--organic-corner); 
    width: 85%; 
    transition: var(--transition-slow);
    animation: border-pulse-glow 3s infinite ease-in-out; 
}

.booking-panel-wrapper { 
    display: flex; 
    gap: 40px; 
    align-items: center; 
    justify-content: space-between; 
}

.booking-bar.scrolled { 
    bottom: 20px; 
    transform: scale(0.95); 
    box-shadow: 0 15px 40px rgba(0,0,0,0.3); 
}

.custom-date-picker, 
.booking-field-wrapper { 
    display: flex; 
    flex-direction: column; 
    text-align: left; 
    transition: var(--transition-elastic); 
}

.custom-date-picker label, 
.booking-field-wrapper label { 
    font-size: 0.75rem; 
    text-transform: uppercase; 
    color: var(--primary-color); 
    font-weight: bold; 
    margin-bottom: 5px; 
    letter-spacing: 2px; 
}

.date-selector, 
.custom-select { 
    display: flex; 
    gap: 15px; 
    align-items: flex-end; 
    cursor: pointer; 
    background: transparent; 
    border: none; 
    outline: none; 
    color: var(--primary-color); 
}

.date-selector.luminous-gold, 
.custom-select.luminous-gold { 
    filter: drop-shadow(0 0 5px var(--primary-color)); 
}

.day-number { 
    font-size: 2rem; 
    font-weight: bold; 
    line-height: 1; 
}

.month-year { 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
}

.custom-select { 
    font-size: 2rem; 
    font-weight: bold; 
    width: 80px; 
    background: transparent; 
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none; 
}

/* ================= LAYOUTS Y EFECTOS ================= */
.section { 
    padding: 80px 5%; 
    position: relative; 
    z-index: 1; 
}

/* Fondo de imagen en sección Nosotros */
#about {
    position: relative;
    overflow: hidden; 
    z-index: 1;
}

#about::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background-image: url('sombrita.png');
    background-size: cover; 
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none; 
    opacity: 0.15; 
}

.bg-light-crema { 
    background-color: var(--bg-light); 
}

.is-organic-shape { 
    border-radius: var(--organic-corner) 0 var(--organic-corner) 0; 
}

.container { 
    max-width: 1300px; 
    margin: 0 auto; 
    position: relative; 
    z-index: 2; 
}

.center-text { 
    text-align: center; 
    margin-bottom: 60px; 
}

.section-icon { 
    height: 60px; 
    margin-bottom: 20px; 
    filter: drop-shadow(0 0 15px var(--accent-color)); 
}

.split-layout { 
    display: flex; 
    gap: 60px; 
    align-items: center; 
}

.split-layout > div { 
    flex: 1; 
}

.bio-rounded { 
    border-radius: var(--rounded-corner); 
}

.hover-luminous-zoom { 
    transition: var(--transition-elastic); 
}

.hover-luminous-zoom:hover { 
    transform: scale(1.08) rotate(1deg); 
    filter: drop-shadow(0 0 20px var(--accent-color)); 
    z-index: 10; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px; 
}

/* --- HOJAS PLANAS EN HABITACIONES --- */
#rooms { 
    position: relative; 
    z-index: 1; 
    overflow: hidden; 
}

.flat-leaf { 
    position: absolute; 
    z-index: 5; 
    background-repeat: no-repeat; 
    background-size: contain; 
    pointer-events: none; 
}

.flat-leaf.leaf-a { 
    width: 140px; 
    height: 140px; 
    top: 5%; 
    left: -30px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e4a3d' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-7m0 0C6 15 3 9 3 9s3 2 9 6m0 0c6-1 9-7 9-7s-3 2-9 6m0-4C7 11 4 5 4 5s3 2 8 6m0 0c5-1 8-7 8-7s-3 2-8 6'/%3E%3C/svg%3E"); 
    animation: float-leaf-alt 9s infinite alternate ease-in-out; 
}

.flat-leaf.leaf-b { 
    width: 200px; 
    height: 200px; 
    bottom: -20px; 
    left: -50px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2B897' stroke-width='0.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-7m0 0C6 15 3 9 3 9s3 2 9 6m0 0c6-1 9-7 9-7s-3 2-9 6m0-4C7 11 4 5 4 5s3 2 8 6m0 0c5-1 8-7 8-7s-3 2-8 6'/%3E%3C/svg%3E"); 
    animation: float-leaf 12s infinite alternate-reverse ease-in-out; 
    opacity: 0.7; 
}

.flat-leaf.leaf-c { 
    width: 100px; 
    height: 100px; 
    top: 35%; 
    right: -10px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e4a3d' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-3.87 3.13-7 7-7h5a2 2 0 0 1 2 2v5a7 7 0 0 1-7 7z'/%3E%3Cpath d='M11 20v-6'/%3E%3C/svg%3E"); 
    animation: float-leaf-alt 7s infinite alternate ease-in-out; 
}

.flat-leaf.leaf-d { 
    width: 120px; 
    height: 120px; 
    top: -20px; 
    right: 5%; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e4a3d' stroke-width='0.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-7m0 0C6 15 3 9 3 9s3 2 9 6m0 0c6-1 9-7 9-7s-3 2-9 6m0-4C7 11 4 5 4 5s3 2 8 6m0 0c5-1 8-7 8-7s-3 2-8 6'/%3E%3C/svg%3E"); 
    animation: float-leaf 10s infinite alternate ease-in-out; 
}

.flat-leaf.leaf-e { 
    width: 160px; 
    height: 160px; 
    bottom: 5%; 
    right: -40px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233e4a3d' stroke-width='0.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 20A7 7 0 0 1 4 13c0-3.87 3.13-7 7-7h5a2 2 0 0 1 2 2v5a7 7 0 0 1-7 7z'/%3E%3Cpath d='M11 20v-6'/%3E%3C/svg%3E"); 
    animation: float-leaf-alt 11s infinite alternate-reverse ease-in-out; 
}

.flat-leaf.leaf-f { 
    width: 90px; 
    height: 90px; 
    top: 60%; 
    left: -15px; 
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D2B897' stroke-width='0.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22v-7m0 0C6 15 3 9 3 9s3 2 9 6m0 0c6-1 9-7 9-7s-3 2-9 6m0-4C7 11 4 5 4 5s3 2 8 6m0 0c5-1 8-7 8-7s-3 2-8 6'/%3E%3C/svg%3E"); 
    animation: float-leaf 8s infinite alternate ease-in-out; 
    opacity: 0.6; 
}

/* Tarjetas Habitaciones */
.card-rounded-extreme { 
    background: #fff; 
    padding-bottom: 35px; 
    text-align: center; 
    border-radius: var(--organic-corner); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.06); 
    transition: var(--transition-elastic); 
    border-bottom: 5px solid transparent; 
    transform-style: preserve-3d; 
    perspective: 1000px; 
    position: relative; 
    z-index: 10;
}

.card-img-wrapper { 
    overflow: hidden; 
    margin-bottom: 25px; 
    border-radius: var(--organic-corner) var(--organic-corner) 0 0; 
}

.card img { 
    width: 100%; 
    height: 350px; 
    object-fit: cover; 
    transition: transform 1s ease; 
}

.card-rounded-extreme:hover { 
    transform: translateY(-20px) rotateX(5deg) rotateY(-5deg) scale(1.02); 
    border-bottom: 5px solid var(--accent-color); 
    box-shadow: 0 40px 80px rgba(210, 184, 151, 0.5); 
}

.card-rounded-extreme:hover img { 
    transform: scale(1.2); 
}

.card h3 { 
    color: var(--primary-color); 
    font-size: 1.6rem; 
    letter-spacing: 2px; 
    margin-bottom: 10px; 
}

/* ================= ACORDEÓN FLEXBOX EN SERVICIOS ================= */
.services-interactive-grid { 
    display: flex; 
    gap: 15px; 
    height: 480px; 
    width: 100%; 
}

.services-interactive-grid .service-card { 
    flex: 1; 
    position: relative; 
    height: 100%; 
    cursor: pointer; 
    transition: flex 0.6s cubic-bezier(0.25, 1, 0.25, 1), filter 0.6s ease; 
    border-radius: 30px; 
    border: none; 
    overflow: hidden; 
    transform: none !important; 
}

.service-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: var(--transition-elastic); 
    filter: brightness(0.9); 
}

.services-interactive-grid:hover .service-card { 
    flex: 0.6; 
    filter: blur(3px) brightness(0.5); 
}

.services-interactive-grid .service-card:hover { 
    flex: 2.8; 
    filter: blur(0) brightness(1.1); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.4); 
}

.service-card:hover img { 
    transform: scale(1.05); 
}

.service-card .overlay.has-luminous-overlay { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    text-align: center; 
    color: white; 
    padding-top: 250px; 
    padding-bottom: 40px; 
    transition: var(--transition-elastic); 
    background: linear-gradient(to top, rgba(20,25,20, 0.95) 0%, rgba(20,25,20, 0.4) 50%, transparent 100%); 
    opacity: 0; 
    transform: translateY(20px); 
}

.service-card:hover .overlay.has-luminous-overlay { 
    opacity: 1; 
    transform: translateY(0); 
}

.service-card h3 { 
    font-size: 2.2rem; 
    color: var(--accent-color); 
    letter-spacing: 3px; 
    margin-bottom: 5px; 
}

.service-card p { 
    font-size: 1rem; 
    width: 80%; 
}

.btn-ghost { 
    margin-top: 15px; 
    border: 2px solid var(--accent-color); 
    background: transparent; 
    padding: 10px 20px; 
    transition: var(--transition-elastic); 
    border-radius: 30px; 
}

.btn-ghost:hover { 
    background: var(--accent-color); 
    color: #111; 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(210,184,151,0.4); 
}

@media (max-width: 900px) { 
    .services-interactive-grid { 
        flex-direction: column; 
        height: auto; 
    } 
    .services-interactive-grid .service-card { 
        height: 250px; 
        flex: auto !important; 
    } 
}

/* ========================================================================= */
/* FOOTER: CICLO DE ECLIPSE (Arco Real, Sol Blanco, Aura Pastel)            */
/* ========================================================================= */

.footer.eclipse-cycle-section {
    position: relative;
    overflow: hidden; 
    padding: 180px 5% 40px; 
    background-color: var(--bg-color); 
    color: var(--text-dark); 
    animation: eclipseBackgroundChange 22s linear infinite;
    border-top: 2px solid rgba(0,0,0,0.05); 
}

/* SISTEMA DE CAPAS */
.logo-layer { 
    position: relative; 
    z-index: 10; 
    margin-top: 250px; 
} 

.content-layer { 
    position: relative; 
    z-index: 2; 
}

/* LOGO NEGRO 50% MÁS GRANDE */
.footer-logo-container { 
    text-align: center; 
    margin-bottom: 80px; 
}

.footer-logo-imperial {
    height: 210px; 
    filter: drop-shadow(0 0 15px rgba(0,0,0,0.1));
    transition: filter 1s ease;
}

/* ================= RESTAURACIÓN DEL LAYOUT DEL FOOTER ================= */

.footer-content-wrapper { 
    max-width: 1200px; 
    gap: 50px; 
    align-items: flex-start; 
}

.contact-info p { 
    color: #555; 
    margin-bottom: 10px; 
}

.contact-form {
    width: 100%;
}

.contact-form form { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.contact-form input, 
.contact-form textarea { 
    width: 100%; 
    padding: 18px; 
    border-radius: 15px; 
    font-family: inherit; 
    font-size: 1rem; 
    transition: var(--transition-elastic); 
    background: rgba(0,0,0,0.03); 
    border: 1px solid rgba(0,0,0,0.1); 
    color: var(--text-dark); 
    animation: eclipseInputs 22s linear infinite; 
}

.contact-form input:focus, 
.contact-form textarea:focus { 
    outline: none; 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.footer-bottom { 
    text-align: center; 
    margin-top: 80px; 
    font-size: 0.85rem; 
    color: rgba(0,0,0,0.4); 
    border-top: 1px solid rgba(0,0,0,0.05); 
    padding-top: 25px; 
}

/* ================= EL SOL Y SUS ANIMACIONES ================= */

/* EL SOL (Círculo Blanco + Aura Pastel Sutil) */
.solar-eclipse-element {
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: #ffffff; 
    
    /* Aura Pastel Sutil */
    box-shadow: 
        0 0 25px 8px rgba(255, 250, 208, 0.8),
        0 0 45px 15px rgba(255, 250, 208, 0.4);
        
    z-index: 5; 
    pointer-events: none; 
    animation: moveSunEclipse 22s linear infinite;
    top: 1060px; 
    left: -200px;
}

/* TRAYECTORIA EN ARCO (Desde la mitad izquierda hasta la mitad derecha) */
@keyframes moveSunEclipse {
    0% {
        top: 1060px; 
        left: -150px;
        transform: translateY(-50%);
        opacity: 0;
    }
    5% { 
        opacity: 1; 
    }
    17% { 
        top: 650px; 
        left: 15%; 
        transform: translate(-50%, -50%);
    }
    34% {
        top: 535px; 
        left: 50%; 
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    51% { 
        top: 650px; 
        left: 85%; 
        transform: translate(-50%, -50%);
    }
    63% { 
        opacity: 1; 
    }
    68% {
        top: 1060px; 
        left: calc(100% + 150px);
        transform: translateY(-50%);
        opacity: 0;
    }
    68.1%, 100% {
        top: 1060px; 
        left: -200px; 
        opacity: 0;
    }
}

/* CAMBIO DE COLOR DEL FONDO */
@keyframes eclipseBackgroundChange {
    0%, 25% { 
        background-color: var(--bg-color); 
    }
    34% { 
        background-color: #151814; 
    } 
    45% { 
        background-color: #151814; 
    }
    54% { 
        background-color: var(--bg-color); 
    }
    100% { 
        background-color: var(--bg-color); 
    }
}

/* Animaciones de Texto Sincronizadas */
.eclipse-cycle-section h2.text-reveal { 
    animation: eclipseTextH2 22s linear infinite; 
    color: var(--primary-color); 
}

@keyframes eclipseTextH2 { 
    0%, 25%, 54%, 100% { 
        color: var(--primary-color); 
    } 
    34%, 45% { 
        color: var(--accent-color); 
    } 
}

.eclipse-cycle-section p, 
.eclipse-cycle-section li { 
    animation: eclipseTextP 22s linear infinite; 
    color: #555; 
}

@keyframes eclipseTextP { 
    0%, 25%, 54%, 100% { 
        color: #555; 
    } 
    34%, 45% { 
        color: #cccccc; 
    } 
}

/* Animación del form oscurecido */
@keyframes eclipseInputs { 
    0%, 25%, 54%, 100% { 
        background: rgba(0,0,0,0.03); 
        color: var(--text-dark); 
        border-color: rgba(0,0,0,0.1); 
    } 
    34%, 45% { 
        background: rgba(255,255,255,0.05); 
        color: white; 
        border-color: rgba(210, 184, 151, 0.4); 
    } 
}

/* Sombra dorada para el logo en la oscuridad */
.eclipse-cycle-section .footer-logo-imperial { 
    animation: eclipseLogoSombra 22s linear infinite; 
}

@keyframes eclipseLogoSombra { 
    0%, 25%, 54%, 100% { 
        filter: drop-shadow(0 0 15px rgba(0,0,0,0.1)); 
    } 
    34%, 45% { 
        filter: drop-shadow(0 0 20px rgba(210, 184, 151, 0.4)); 
    } 
}

/* ================= MODALES ================= */
.ultra-modal { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    z-index: 9999; 
    display: none; 
}

.ultra-modal.is-active { 
    display: block; 
}

.ultra-backdrop { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(15, 20, 15, 0.85); 
    backdrop-filter: blur(15px); 
    opacity: 0; 
    transition: opacity 0.4s ease; 
}

.ultra-modal.is-active .ultra-backdrop { 
    opacity: 1; 
}

.ultra-panel { 
    position: absolute; 
    top: 5vh; 
    left: 5vw; 
    width: 90vw; 
    height: 90vh; 
    background: linear-gradient(145deg, #181d17, #0e110d); 
    border-radius: 30px; 
    box-shadow: 0 40px 100px rgba(0,0,0,0.9); 
    display: flex; 
    opacity: 0; 
    transform: translateY(100px); 
    transition: all 0.7s; 
}

.ultra-modal.is-active .ultra-panel { 
    opacity: 1; 
    transform: translateY(0); 
}

.ultra-close {
    position: absolute; 
    top: 25px; 
    right: 30px; 
    z-index: 100;
    background: rgba(0,0,0,0.4); 
    border: 1px solid var(--accent-color); 
    color: var(--accent-color);
    font-size: 20px; 
    width: 45px; 
    height: 45px; 
    border-radius: 50%;
    cursor: pointer; 
    transition: all 0.3s; 
    display: block; 
    text-align: center; 
    line-height: 43px; 
    padding: 0;
}

.ultra-close:hover { 
    background: var(--accent-color); 
    color: #000; 
    transform: rotate(90deg) scale(1.1); 
}

.split-layout-panel .ultra-visuals { 
    width: 50%; 
    height: 100%; 
    position: relative; 
    background: #000; 
    overflow: hidden; 
}

.split-layout-panel .ultra-visuals img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block; 
    opacity: 0; 
    transform: scale(1.1); 
    transition: all 1s ease 0.2s; 
}

.ultra-modal.is-active .ultra-visuals img { 
    opacity: 1; 
    transform: scale(1); 
}

.double-gallery { 
    display: flex; 
    flex-direction: column; 
    height: 100%; 
}

.double-gallery img { 
    height: 50% !important; 
    flex: 1; 
    border-bottom: 2px solid rgba(255,255,255,0.1); 
}

.ultra-content-scroll { 
    width: 50%; 
    height: 100%; 
    overflow-y: auto; 
    padding: 60px 50px; 
    box-sizing: border-box; 
}

.ultra-content-center { 
    width: 100%; 
    max-width: 600px; 
    margin: auto; 
    padding: 40px; 
    text-align: left; 
}

.ultra-logo { 
    height: 50px; 
    margin-bottom: 30px; 
    filter: drop-shadow(0 0 10px rgba(0,0,0,0.5)); 
}

.ultra-content-scroll h3 { 
    color: var(--text-light); 
    font-size: 1.5rem; 
    margin-bottom: 10px; 
    margin-top: 25px; 
}

.ultra-content-scroll p, 
.ultra-content-center p { 
    color: #cccccc; 
    font-size: 1.05rem; 
    line-height: 1.7; 
    margin-bottom: 20px; 
}

.ultra-list { 
    padding-left: 20px; 
    margin-bottom: 30px; 
}

.ultra-list li { 
    color: #bbbbbb; 
    margin-bottom: 12px; 
    font-size: 1rem; 
}

.ultra-price { 
    font-size: 2.2rem !important; 
    color: var(--luminous-gold) !important; 
    margin: 30px 0; 
}

.ultra-input {
    width: 100%; 
    padding: 18px; 
    margin-bottom: 20px; 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--accent-color); 
    color: white; 
    border-radius: 12px; 
    font-family: inherit; 
    font-size: 1rem;
    transition: var(--transition-elastic);
}

.ultra-input:focus { 
    outline: none; 
    box-shadow: 0 0 20px rgba(210, 184, 151, 0.4); 
    background: rgba(255,255,255,0.1); 
    transform: translateY(-2px); 
}

.ultra-btn { 
    width: 100%; 
    padding: 20px; 
    font-size: 1rem; 
    text-align: center; 
}

@keyframes slideUpFade {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.9); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

.stag-1, .stag-2, .stag-3, .stag-4, .stag-5 { 
    opacity: 0; 
}

.ultra-modal.is-active .stag-1 { animation: slideUpFade 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards 0.2s; }
.ultra-modal.is-active .stag-2 { animation: slideUpFade 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards 0.3s; }
.ultra-modal.is-active .stag-3 { animation: slideUpFade 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards 0.4s; }
.ultra-modal.is-active .stag-4 { animation: slideUpFade 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards 0.5s; }
.ultra-modal.is-active .stag-5 { animation: slideUpFade 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards 0.6s; }

.room-info-block { 
    display: none; 
}

.room-info-block.show { 
    display: block; 
    animation: slideUpFade 0.5s cubic-bezier(0.68, -0.55, 0.26, 1.55) forwards; 
}

@media (max-width: 900px) {
    .ultra-panel.split-layout-panel { 
        flex-direction: column; 
    }
    .split-layout-panel .ultra-visuals { 
        width: 100%; 
        height: 35%; 
    }
    .double-gallery { 
        flex-direction: row; 
    }
    .double-gallery img { 
        width: 50% !important; 
        height: 100% !important; 
        border-bottom: none; 
        border-right: 2px solid rgba(255,255,255,0.1); 
    }
    .split-layout-panel .ultra-content-scroll { 
        width: 100%; 
        height: 65%; 
        padding: 30px 20px; 
    }
}

/* ================= ANIMACIONES GLOBALES ================= */
.hidden-date-input { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    cursor: pointer; 
    z-index: 10; 
}

.hidden-date-input::-webkit-calendar-picker-indicator { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    opacity: 0; 
    cursor: pointer; 
}

@keyframes pulse-glow { 
    0% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 10px var(--luminous-gold)); } 
    50% { transform: scale(1.05); opacity: 1; filter: drop-shadow(0 0 40px var(--luminous-gold)); } 
    100% { transform: scale(0.95); opacity: 0.8; filter: drop-shadow(0 0 10px var(--luminous-gold)); } 
}

@keyframes float { 
    0% { transform: translateY(0px) rotate(0deg); } 
    50% { transform: translateY(-30px) rotate(3deg); } 
    100% { transform: translateY(0px) rotate(0deg); } 
}

@keyframes float-large { 
    0% { transform: translateY(0px) rotate(0deg); } 
    50% { transform: translateY(-50px) rotate(5deg); } 
    100% { transform: translateY(0px) rotate(0deg); } 
}

@keyframes border-pulse-glow { 
    0% { box-shadow: 0 25px 60px rgba(210, 184, 151, 0.5), 0 0 20px rgba(255, 215, 0, 0.1); } 
    50% { box-shadow: 0 25px 60px rgba(210, 184, 151, 0.5), 0 0 40px rgba(255, 215, 0, 0.6); } 
    100% { box-shadow: 0 25px 60px rgba(210, 184, 151, 0.5), 0 0 20px rgba(255, 215, 0, 0.1); } 
}

.float { 
    animation: float 12s infinite ease-in-out; 
}

.float-large { 
    animation: float-large 18s infinite ease-in-out; 
}

.animate-on-scroll { 
    opacity: 0; 
    transition: opacity 1s cubic-bezier(0.25, 1, 0.25, 1), transform 1s cubic-bezier(0.68, -0.55, 0.26, 1.55); 
}

.cascade-up { 
    transform: translateY(120px) scale(0.9); 
}

.cascade-left { 
    transform: translateX(-120px) rotate(-5deg); 
}

.cascade-right { 
    transform: translateX(120px) rotate(5deg); 
}

.scale-reveal { 
    transform: scale(0.5) rotate(-10deg); 
}

.animate-on-scroll.visible { 
    opacity: 1; 
    transform: translate(0) scale(1) rotate(0deg); 
}

.stagger-1 { transition-delay: 0.15s; }
.stagger-2 { transition-delay: 0.3s; }
.stagger-3 { transition-delay: 0.45s; }
.stagger-4 { transition-delay: 0.6s; }

.text-reveal .split-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotate(15deg) scale(0.5);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.26, 1.55);
}

.text-reveal.visible .split-char {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
}

.grid-2x2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 20px; 
}

.grid-2x2 img { 
    width: 100%; 
    height: 280px; 
    object-fit: cover; 
}