/* --- 1. VARIABLES DE DISEÑO PREMIUM --- */
:root {
    /* Paleta Colonial de Lujo */
    --primary: #5D4037; 
    --primary-dark: #3E2723;
    --secondary: #8D6E63; 
    --gold: #C0A062; 
    --gold-hover: #D4B06A;
    --gold-light: #E6D5B8; 
    --sand: #F5F0EB; 
    --white: #FFFFFF;
    --dark: #121212; 
    --gray-light: #f9f9f9;
    
    /* Efectos */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-blur: blur(12px);
    --shadow-lg: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-gold: 0 10px 30px rgba(192, 160, 98, 0.2);
    
    /* Tipografía */
    --font-display: 'Cormorant Garamond', serif; 
    --font-body: 'Montserrat', sans-serif; 
    
    /* Transiciones */
    --transition-smooth: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* --- 2. BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
    font-family: var(--font-body); color: var(--dark); background-color: var(--sand);
    line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.loaded { overflow-y: auto; }

/* Tipografía */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
p { margin-bottom: 24px; font-weight: 400; color: #555; }

/* --- 3. PRELOADER --- */
.preloader-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.preloader-panel { position: absolute; left: 0; width: 100%; height: 51%; background-color: var(--primary-dark); z-index: 1; transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1); background-image: url('https://www.transparenttextures.com/patterns/black-linen.png'); }
.panel-top { top: 0; transform-origin: top; border-bottom: 1px solid rgba(192, 160, 98, 0.3); }
.panel-bottom { bottom: 0; transform-origin: bottom; border-top: 1px solid rgba(192, 160, 98, 0.3); }
.preloader-content { position: relative; z-index: 2; text-align: center; color: var(--white); display: flex; flex-direction: column; align-items: center; }
.loader-brand { font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4rem); letter-spacing: 4px; margin-bottom: 15px; opacity: 0; transform: translateY(30px); animation: textReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.2s; text-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.loader-brand span { color: var(--gold); font-style: italic; }
.loader-progress-track { width: 240px; height: 2px; background: rgba(255,255,255,0.1); margin: 25px 0; position: relative; overflow: hidden; border-radius: 2px; }
.loader-progress-bar { position: absolute; top: 0; left: 0; height: 100%; width: 0%; background: var(--gold); box-shadow: 0 0 15px var(--gold); transition: width 0.1s linear; }
.loader-status { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 4px; color: var(--gold-light); opacity: 0; animation: fadeIn 1s ease forwards 0.6s; }
@keyframes textReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }
.preloader-container.split-open .panel-top { transform: translateY(-100%); }
.preloader-container.split-open .panel-bottom { transform: translateY(100%); }
.preloader-container.split-open .preloader-content { opacity: 0; transform: scale(0.95); transition: 0.5s; }
.preloader-container.hidden { pointer-events: none; display: none; }

/* --- 4. UTILIDADES --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 25px; }
.text-center { text-align: center; }
.section-padding { padding: clamp(60px, 10vw, 120px) 0; }
.reveal { opacity: 0; transform: translateY(40px) scale(0.95); filter: blur(10px); transition: all 1.2s cubic-bezier(0.19, 1, 0.22, 1); will-change: transform, opacity, filter; }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* --- 5. NAVEGACIÓN --- */
.navbar { position: fixed; top: 0; width: 100%; z-index: 1000; padding: 25px 0; transition: var(--transition-smooth); background: transparent; }
.navbar.scrolled { background: rgba(18, 18, 18, 0.85); padding: 15px 0; box-shadow: 0 10px 30px rgba(0,0,0,0.3); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.brand { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--white); text-transform: uppercase; letter-spacing: 2px; text-decoration: none; display: flex; align-items: center; gap: 8px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 35px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 600; position: relative; padding: 5px 0; transition: var(--transition-fast); }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--gold); transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.search-trigger { cursor: pointer; color: var(--white); font-size: 1.1rem; padding: 10px; transition: transform 0.3s ease; border: 1px solid transparent; border-radius: 50%; }
.search-trigger:hover { color: var(--gold); transform: scale(1.2); border-color: rgba(192, 160, 98, 0.3); background: rgba(255,255,255,0.05); }
.menu-toggle { display: none; color: var(--white); font-size: 1.8rem; cursor: pointer; z-index: 1001; }

/* --- 6. PANEL SENSORIAL & ACCESIBILIDAD --- */
.sensory-controls { position: fixed; bottom: 120px; left: 40px; z-index: 9990; display: flex; flex-direction: column; gap: 15px; }
.btn-sensory { width: 50px; height: 50px; border-radius: 50%; border: none; background: rgba(18, 18, 18, 0.9); color: var(--white); display: flex; justify-content: center; align-items: center; font-size: 1.2rem; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(192, 160, 98, 0.3); position: relative; overflow: visible; }
.btn-sensory:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }
.btn-sensory.active::after { content: ''; position: absolute; top: -5px; left: -5px; right: -5px; bottom: -5px; border-radius: 50%; border: 2px solid var(--gold); animation: ripple 1.5s infinite; opacity: 0; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.5); opacity: 0; } }
.reading-highlight { background-color: rgba(192, 160, 98, 0.2); border-radius: 4px; padding: 2px 5px; transition: background-color 0.3s; box-shadow: 0 0 10px rgba(192, 160, 98, 0.1); }

/* --- 7. BUSCADOR SPOTLIGHT --- */
.search-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); z-index: 20000; opacity: 0; visibility: hidden; transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1); display: flex; flex-direction: column; align-items: center; padding-top: 15vh; }
.search-overlay.active { opacity: 1; visibility: visible; }
.search-close-btn { position: absolute; top: 40px; right: 40px; font-size: 2rem; color: #666; cursor: pointer; transition: 0.3s; }
.search-close-btn:hover { color: var(--gold); transform: rotate(90deg); }
.search-container { width: 100%; max-width: 800px; padding: 0 25px; position: relative; transform: translateY(30px); transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.search-overlay.active .search-container { transform: translateY(0); }
.search-input-wrapper { position: relative; width: 100%; margin-bottom: 40px; }
.search-input { width: 100%; background: transparent; border: none; border-bottom: 2px solid #333; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 3.5rem); color: var(--white); padding: 15px 0; outline: none; transition: 0.3s; }
.search-input::placeholder { color: #333; }
.search-input:focus { border-color: var(--gold); }
.search-icon-lg { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 2rem; color: var(--gold); opacity: 0.5; }
.search-results { list-style: none; width: 100%; max-height: 50vh; overflow-y: auto; }
.search-result-item { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; align-items: center; gap: 20px; cursor: pointer; transition: 0.3s; opacity: 0; animation: slideUp 0.4s forwards; border-radius: 8px; }
.search-result-item:hover { background: rgba(255,255,255,0.03); padding-left: 30px; }
.search-result-icon { font-size: 1.5rem; color: #555; transition: 0.3s; }
.search-result-item:hover .search-result-icon { color: var(--gold); transform: scale(1.2); }
.search-result-info h4 { margin: 0; color: var(--white); font-family: var(--font-body); font-weight: 600; font-size: 1.1rem; }
.search-result-info p { margin: 0; font-size: 0.85rem; color: #888; }
.no-results { color: #555; text-align: center; font-size: 1.2rem; margin-top: 30px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* --- 8. HERO & SCROLL --- */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.9) 100%); z-index: 1; pointer-events: none; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: 0; transform: translateX(-50%) translateY(-50%) scale(1.1); object-fit: cover; filter: contrast(1.1) brightness(0.8); }
.hero-content { position: relative; z-index: 3; text-align: center; color: var(--white); max-width: 1000px; padding: 0 20px; }
.hero-logo { width: clamp(180px, 30vw, 280px); height: auto; margin: 0 auto 30px; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)); }
.hero-subtitle { font-size: clamp(0.9rem, 2vw, 1.2rem); letter-spacing: 6px; text-transform: uppercase; margin-bottom: 25px; display: block; color: var(--gold); font-weight: 600; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-title { margin-bottom: 20px; font-weight: 400; line-height: 1.1; text-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.scroll-indicator { position: absolute; bottom: 120px; left: 50%; transform: translateX(-50%); z-index: 5; animation: bounce 2s infinite; opacity: 0.8; }
.scroll-indicator i { color: var(--white); font-size: 1.5rem; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);} 40% {transform: translateX(-50%) translateY(-10px);} 60% {transform: translateX(-50%) translateY(-5px);} }

/* --- 9. NOTIFICACIONES TOAST --- */
.toast-container { position: fixed; top: 85px; right: 20px; z-index: 100000; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
.toast { background: rgba(18, 18, 18, 0.95); color: #fff; padding: 18px 25px; border-left: 4px solid var(--gold); border-radius: 4px; box-shadow: var(--shadow-lg); font-family: var(--font-body); font-size: 0.9rem; transform: translateX(120%); opacity: 0; transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); display: flex; align-items: center; gap: 15px; backdrop-filter: blur(10px); pointer-events: auto; position: relative; overflow: hidden; min-width: 300px; }
.toast.show { transform: translateX(0); opacity: 1; }
.toast i { color: var(--gold); font-size: 1.3rem; }
.toast-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: var(--gold); width: 100%; animation: toastTime 4s linear forwards; }
.toast-close { margin-left: auto; cursor: pointer; color: #666; font-size: 1rem; padding: 5px; transition: 0.3s; }
.toast-close:hover { color: var(--white); }
@keyframes toastTime { from { width: 100%; } to { width: 0%; } }

/* --- 10. WIDGET RESERVAS --- */
.booking-widget { position: relative; margin-top: -90px; z-index: 20; background: var(--white); padding: 45px 50px; box-shadow: var(--shadow-lg); max-width: 1180px; margin-left: auto; margin-right: auto; border-radius: 8px; border-top: 4px solid var(--gold); transition: var(--transition-smooth); }
.booking-widget:hover { transform: translateY(-8px); box-shadow: 0 40px 80px rgba(0,0,0,0.15); }
.row.book-form { display: flex; gap: 25px; align-items: flex-end; flex-wrap: wrap; justify-content: center; }
.form-group { flex: 1; min-width: 150px; position: relative; }
.form-group label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 12px; font-weight: 700; }
.form-group input, .form-group select { width: 100%; border: 1px solid #e0e0e0; padding: 15px 40px 15px 20px; font-family: var(--font-body); font-size: 1rem; color: var(--dark); background: #f9f9f9; outline: none; border-radius: 4px; cursor: pointer; transition: var(--transition-fast); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.form-group input:focus, .form-group select:focus { border-color: var(--gold); background: #fff; box-shadow: 0 0 0 4px rgba(192, 160, 98, 0.1); }
.form-group i.input-icon { position: absolute; right: 18px; bottom: 17px; color: var(--gold); font-size: 1.1rem; pointer-events: none; }
input[type="date"] { position: relative; z-index: 2; background: transparent; min-height: 50px; }
input[type="date"]::-webkit-calendar-picker-indicator { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 3; }
.form-group .input-icon { z-index: 1; pointer-events: none; }
.btn-check { background: linear-gradient(135deg, var(--gold) 0%, #B08D55 100%); color: var(--white); border: none; padding: 16px 35px; font-family: var(--font-body); text-transform: uppercase; font-size: 0.95rem; font-weight: 700; letter-spacing: 2px; cursor: pointer; transition: var(--transition-bounce); display: flex; align-items: center; justify-content: center; gap: 12px; min-width: 200px; height: 56px; border-radius: 4px; position: relative; overflow: hidden; box-shadow: 0 10px 20px rgba(192, 160, 98, 0.3); }
.btn-check::after { content: ''; position: absolute; top: -50%; left: -60%; width: 20%; height: 200%; background: rgba(255,255,255,0.4); transform: rotate(45deg); transition: all 0.5s; opacity: 0; }
.btn-check:hover::after { left: 120%; opacity: 1; transition: 0.7s; }
.btn-check:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 20px 30px rgba(192, 160, 98, 0.4); }

/* --- 11. BARRA STICKY --- */
.sticky-booking-bar { position: fixed; bottom: 0; left: 0; width: 100%; background: rgba(20, 15, 10, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 9999; padding: 15px 0; border-top: 2px solid var(--gold); box-shadow: 0 -10px 30px rgba(0,0,0,0.5); transform: translateY(150%); transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); display: flex; justify-content: center; align-items: center; }
.sticky-booking-bar.visible { transform: translateY(0); }
.sticky-container { display: flex; align-items: center; gap: 20px; max-width: 1200px; width: 100%; padding: 0 20px; }
.sticky-label { color: var(--gold); font-family: var(--font-display); font-size: 1.5rem; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.sticky-group { position: relative; width: 180px; }
.sticky-group input, .sticky-group select { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: var(--white); padding: 10px 15px; border-radius: 4px; font-size: 0.9rem; width: 100%; outline: none; }
.sticky-btn { background: var(--gold); color: var(--dark); border: none; padding: 10px 25px; font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; border-radius: 4px; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.sticky-btn:hover { background: var(--white); transform: scale(1.05); }

/* --- 12. OTA --- */
.ota-section { padding: 50px 0; background: var(--white); border-bottom: 1px solid #f0f0f0; }
.ota-grid { display: flex; justify-content: center; align-items: center; gap: 50px; flex-wrap: wrap; opacity: 0.7; transition: var(--transition-fast); }
.ota-section:hover .ota-grid { opacity: 1; }
.ota-item { text-decoration: none; color: #888; font-weight: 600; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; transition: var(--transition-bounce); }
.ota-item:hover { color: var(--primary); transform: translateY(-3px); }

/* --- 13. SECCIONES --- */
.section-subtitle { color: var(--gold); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; margin-bottom: 15px; display: inline-block; position: relative; }
.section-title { color: var(--primary-dark); margin-bottom: 30px; }
.text-lead { font-size: clamp(1rem, 2vw, 1.25rem); color: #444; font-weight: 400; line-height: 1.7; margin-bottom: 30px; }
.btn-line { background: transparent; border: none; color: var(--dark); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; cursor: pointer; transition: var(--transition-fast); font-size: 0.85rem; }
.btn-line:hover { color: var(--gold); border-color: var(--primary); padding-bottom: 12px; }

/* ABOUT */
.about-section { background-color: var(--sand); position: relative; overflow: hidden; }
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 80px; align-items: center; }
.about-img-wrapper { position: relative; z-index: 1; }
.about-img-wrapper::before { content: ''; position: absolute; top: -20px; left: -20px; width: 100%; height: 100%; border: 2px solid var(--gold); z-index: -1; transition: var(--transition-smooth); }
.about-img-wrapper:hover::before { transform: translate(-15px, -15px); }
.about-img-main { width: 100%; height: 600px; object-fit: cover; border-radius: 4px; box-shadow: var(--shadow-md); transition: var(--transition-smooth); }
.about-img-wrapper:hover .about-img-main { transform: scale(1.02); box-shadow: var(--shadow-lg); }

/* RESTAURANTE */
.gastronomy-section-v2 { background-color: var(--white); padding: 0; }
.gastronomy-split-layout { display: flex; flex-wrap: wrap; }
.gastro-text-side { flex: 1; padding: clamp(50px, 8vw, 100px) clamp(30px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; background: url('https://www.transparenttextures.com/patterns/cubes.png'); border-right: 1px solid #eee; }
.gastro-visual-side { flex: 1.3; }
.gastro-grid-gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, minmax(250px, 350px)); }
.gastro-item { position: relative; overflow: hidden; }
.gastro-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.gastro-item:hover img { transform: scale(1.15); }
.gastro-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; opacity: 0; transition: var(--transition-fast); }
.gastro-item:hover .gastro-overlay { opacity: 1; }
.gastro-badge { background: var(--gold); color: var(--dark); padding: 6px 12px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; align-self: flex-start; margin-bottom: 10px; border-radius: 2px; }
.gastro-overlay h4 { color: var(--white); font-size: 1.5rem; margin-bottom: 5px; }
.gastro-overlay p { color: #ddd; margin: 0; font-size: 0.9rem; }

/* NEGOCIOS */
.meeting-section-dark { background-color: var(--dark); background-image: url('https://www.transparenttextures.com/patterns/black-linen.png'); color: var(--white); position: relative; padding: 140px 0; }
.business-header h2 { color: var(--white); }
.business-grid-cards { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 60px; }
.exec-card { background: #1a1a1a; border: 1px solid #333; width: 360px; max-width: 100%; display: flex; flex-direction: column; transition: var(--transition-smooth); position: relative; }
.exec-card:hover { transform: translateY(-20px); box-shadow: 0 30px 60px rgba(0,0,0,0.5); border-color: var(--gold); z-index: 5; }
.exec-card-head { padding: 40px; text-align: center; background: linear-gradient(135deg, #222 0%, #151515 100%); border-bottom: 1px solid #333; }
.exec-title { font-size: 2rem; color: var(--white); }
.exec-price { font-size: 3.5rem; color: var(--gold); font-family: var(--font-display); line-height: 1; margin: 15px 0 5px; }
.exec-price span { font-size: 1rem; color: #666; font-family: var(--font-body); }
.exec-card-body { padding: 40px; flex-grow: 1; display: flex; flex-direction: column; }
.exec-features { list-style: none; margin-bottom: 30px; }
.exec-features li { margin-bottom: 18px; color: #aaa; font-size: 0.95rem; display: flex; align-items: center; gap: 15px; }
.exec-features li i { color: var(--gold); }
.btn-gold-outline { margin-top: auto; width: 100%; padding: 18px; border: 1px solid var(--gold); background: transparent; color: var(--gold); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; cursor: pointer; transition: var(--transition-fast); }
.btn-gold-outline:hover { background: var(--gold); color: var(--dark); }

/* HABITACIONES */
.rooms-section-v3 { background-color: var(--sand); }
.room-showcase { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--white); margin-bottom: 100px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition-smooth); }
.room-showcase:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); }
.room-showcase.reverse { direction: rtl; }
.room-showcase.reverse .room-info-side { direction: ltr; }
.room-gallery-side { position: relative; height: 550px; overflow: hidden; background: #000; }
.room-main-image { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.room-gallery-indicators { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: none; gap: 8px; z-index: 5; }
.indicator-dot { width: 8px; height: 8px; background: rgba(255,255,255,0.5); border-radius: 50%; }
.indicator-dot.active { background: var(--gold); transform: scale(1.2); }
.room-badge { position: absolute; top: 30px; left: 30px; background: var(--white); color: var(--primary); padding: 8px 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 0.75rem; box-shadow: 0 5px 15px rgba(0,0,0,0.1); z-index: 2; }
.room-gallery-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 25px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); display: flex; gap: 12px; justify-content: center; z-index: 2; }
.room-thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; transition: var(--transition-fast); }
.room-thumb.active, .room-thumb:hover { border-color: var(--gold); opacity: 1; transform: scale(1.1); }
.room-info-side { padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; }
.room-info-side::before { content: ''; position: absolute; left: 0; top: 60px; width: 4px; height: 60px; background: var(--gold); }
.room-showcase.reverse .room-info-side::before { left: auto; right: 0; }
.room-type-title { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }
.room-price-tag { color: var(--secondary); font-weight: 600; margin-bottom: 25px; font-size: 1.1rem; }
.amenities-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 30px 0; }
.amenity-item { display: flex; align-items: center; gap: 10px; color: #666; font-size: 0.9rem; }
.amenity-item i { color: var(--gold); width: 20px; text-align: center; }
.btn-room-action { align-self: flex-start; padding: 15px 40px; border: 1px solid var(--dark); color: var(--dark); text-transform: uppercase; letter-spacing: 2px; font-weight: 600; font-size: 0.8rem; text-decoration: none; transition: var(--transition-fast); display: flex; align-items: center; gap: 10px; }
.btn-room-action:hover { background: var(--dark); color: var(--white); }

/* --- 18. GALERÍA MOSAICO (MASONRY) & LIGHTBOX (NUEVO) --- */
.gallery-section { position: relative; z-index: 10; background-color: #121212; }
.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
    padding: 20px 0;
}
.gallery-item {
    position: relative; overflow: hidden; border-radius: 4px; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.3s ease;
}
.gallery-item img {
    width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); opacity: 0; transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay i { color: var(--white); font-size: 2rem; }

/* Grid dinámico */
.gallery-item.span-2 { grid-column: span 2; }
.gallery-item.row-2 { grid-row: span 2; }

/* LIGHTBOX CINE MODE */
.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    z-index: 30000; display: none; justify-content: center; align-items: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.lightbox-overlay.active { display: flex; opacity: 1; }
.lightbox-content { max-width: 90%; max-height: 90%; position: relative; }
.lightbox-content img { max-width: 100%; max-height: 85vh; border-radius: 4px; box-shadow: 0 0 50px rgba(0,0,0,0.8); }
.lightbox-close {
    position: absolute; top: 30px; right: 30px; font-size: 2rem;
    color: #888; background: none; border: none; cursor: pointer; transition: 0.3s;
}
.lightbox-close:hover { color: var(--white); transform: rotate(90deg); }
.lightbox-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.1); border: none; color: var(--white);
    width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
    font-size: 1.2rem; transition: 0.3s;
}
.lightbox-nav:hover { background: var(--gold); color: var(--dark); }
.lightbox-nav.prev { left: 30px; }
.lightbox-nav.next { right: 30px; }

/* ESTACIONAMIENTO & SERVICIOS */
.parking-section { background: #151515; color: #ccc; border-top: 4px solid var(--gold); }
.parking-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 50px; text-align: center; }
.parking-feature i { font-size: 3.5rem; color: var(--gold); margin-bottom: 25px; transition: var(--transition-bounce); }
.parking-feature:hover i { transform: scale(1.2) rotate(10deg); text-shadow: 0 0 30px var(--gold); color: #fff; }
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 60px; }
.service-card { padding: 40px; background: var(--sand); border-radius: 6px; transition: var(--transition-smooth); border: 1px solid transparent; }
.service-card:hover { background: #fff; transform: translateY(-15px); box-shadow: var(--shadow-md); border-color: rgba(192, 160, 98, 0.3); }
.service-icon { font-size: 2.5rem; color: var(--gold); margin-bottom: 25px; }

/* CLIENTES */
.clients-section { background: var(--dark); color: var(--white); }
.clients-wrapper { display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; margin-top: 50px; }
.client-card { width: 280px; padding: 40px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); text-align: center; border-radius: 8px; transition: var(--transition-smooth); }
.client-card:hover { background: rgba(255,255,255,0.08); transform: translateY(-10px); border-color: var(--gold); }

/* MAPA */
.map-container { width: 100%; height: 550px; filter: none; border: 1px solid var(--gold); box-shadow: var(--shadow-lg); margin-top: -50px; position: relative; z-index: 10; }
iframe.googlemaps { width: 100%; height: 100%; border: 0; filter: contrast(1.1); }

/* FOOTER */
footer { background: linear-gradient(to bottom, #111 0%, #000 100%); color: #999; padding: 100px 0 30px; font-size: 0.95rem; border-top: 5px solid var(--gold); position: relative; }
footer::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-image: url('https://www.transparenttextures.com/patterns/black-linen.png'); opacity: 0.2; pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 60px; margin-bottom: 80px; position: relative; z-index: 2; }
.footer-logo { font-family: var(--font-display); font-size: 2.5rem; color: var(--white); display: block; margin-bottom: 25px; text-decoration: none; }
footer h4 { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 30px; font-weight: 700; }
footer ul { list-style: none; }
footer ul li { margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 8px; }
footer ul li:last-child { border: none; }
footer a { color: #aaa; text-decoration: none; transition: 0.3s; display: block; }
footer a:hover { color: var(--gold); transform: translateX(5px); }
.certification-badges { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; }
.cert-img { height: 50px; width: auto; object-fit: contain; filter: grayscale(100%) brightness(1.2); opacity: 0.7; transition: all 0.4s ease; }
.cert-img:hover { filter: grayscale(0%) brightness(1); opacity: 1; transform: scale(1.05); }
.footer-tool-btn { display: inline-block; margin-top: 15px; padding: 8px 15px; border: 1px solid var(--gold); color: var(--gold); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; border-radius: 4px; transition: all 0.3s; }
.footer-tool-btn:hover { background: var(--gold); color: #000; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(15px); z-index: 10000; display: none; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.4s ease; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content-box { background: var(--sand); width: 100%; max-width: 1100px; height: 85vh; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,0.5); border: 1px solid var(--gold); transform: translateY(50px); transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.modal-overlay.active .modal-content-box { transform: translateY(0); }
.modal-header { background: var(--primary); padding: 25px 40px; display: flex; justify-content: space-between; align-items: center; color: var(--white); border-bottom: 4px solid var(--gold); }
.modal-body { padding: 50px; overflow-y: auto; }
.tourist-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.tourist-card { background: #fff; border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.tourist-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.tourist-img { height: 200px; width: 100%; object-fit: cover; }
.tourist-info { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tourist-desc { flex-grow: 1; margin-bottom: 20px; font-size: 0.95rem; color: #666; }
.tourist-tools { display: flex; gap: 10px; margin-top: auto; border-top: 1px solid #eee; padding-top: 15px; }
.btn-tool { flex: 1; padding: 10px; text-align: center; font-size: 0.8rem; text-transform: uppercase; font-weight: 700; text-decoration: none; border-radius: 4px; transition: 0.3s; }
.btn-tool-map { background: #f0f0f0; color: #333; }
.btn-tool-map:hover { background: #e0e0e0; color: #000; }
.btn-tool-info { background: var(--primary); color: #fff; }
.btn-tool-info:hover { background: var(--primary-dark); }
.tourist-data-list { list-style: none; margin: 10px 0; padding: 15px; font-size: 0.85rem; color: #555; background: #f9f9f9; border-radius: 4px; border-left: 3px solid var(--gold); }
.tourist-data-list li { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.tourist-data-list li:last-child { margin-bottom: 0; }
.tourist-data-list i { color: var(--gold); width: 15px; text-align: center; }

/* FLOAT BUTTONS & CONVIVENCIA */
.float-partner-btn, .float-tourism-btn { position: fixed; bottom: 40px; padding: 12px 28px; border-radius: 50px; text-decoration: none; z-index: 9990; font-weight: 700; letter-spacing: 1px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); transition: transform 0.3s, bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
.float-partner-btn { right: 40px; background: var(--primary); color: var(--gold); border: 2px solid var(--gold); animation: float 4s ease-in-out infinite; }
.float-tourism-btn { left: 40px; background: var(--white); color: var(--primary); border: 2px solid var(--primary); animation: float 4.5s ease-in-out infinite; }
.float-partner-btn:hover, .float-tourism-btn:hover { transform: scale(1.1) rotate(-2deg); animation: none; }
#stickyBookingBar.visible ~ .float-partner-btn, #stickyBookingBar.visible ~ .float-tourism-btn { bottom: 120px; }
#stickyBookingBar.visible ~ .sensory-controls { bottom: 200px; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .about-grid, .room-showcase, .room-showcase.reverse { grid-template-columns: 1fr; }
    .room-gallery-side { height: 400px; }
    .room-info-side::before { display: none; }
    .room-info-side { padding: 40px; }
    .room-gallery-indicators { display: flex; }
    /* Grid Galería Tablet */
    .gallery-mosaic { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 768px) {
    .nav-links { position: fixed; top: 0; right: -100%; width: 85%; height: 100vh; background: rgba(18,18,18,0.98); backdrop-filter: blur(10px); flex-direction: column; justify-content: center; transition: var(--transition-smooth); z-index: 999; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
    .nav-links.active { right: 0; }
    .menu-toggle { display: block; }
    .booking-widget { padding: 30px; margin-top: -50px; }
    .row.book-form { flex-direction: column; width: 100%; }
    .form-group, .btn-check { width: 100%; }
    .gastronomy-split-layout { flex-direction: column; }
    .gastro-grid-gallery { grid-template-rows: repeat(2, 200px); }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .sticky-booking-bar { padding: 15px; flex-direction: column; height: auto; border-radius: 20px 20px 0 0; }
    .sticky-container { flex-direction: column; gap: 10px; }
    .sticky-group, .sticky-btn { width: 100%; }
    .float-partner-btn { right: 20px; bottom: 90px; padding: 10px 20px; font-size: 0.8rem; }
    .float-tourism-btn { left: 20px; bottom: 90px; padding: 10px 20px; font-size: 0.8rem; }
    .sensory-controls { left: 20px; bottom: 150px; }
    #stickyBookingBar.visible ~ .float-partner-btn, #stickyBookingBar.visible ~ .float-tourism-btn { bottom: 240px; transform: scale(0.9); }
    #stickyBookingBar.visible ~ .sensory-controls { bottom: 300px; transform: scale(0.9); }
    .about-img-main { height: 350px; }
    .modal-content-box { height: 95vh; width: 95%; }
    .modal-header { padding: 15px 20px; }
    .modal-body { padding: 20px; }
    /* Grid Galería Móvil */
    .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery-item.span-2, .gallery-item.row-2 { grid-column: span 1; grid-row: span 1; } /* Reset masonry móvil */
}
@media (max-width: 480px) {
    .hero-title { font-size: 2.5rem; }
    .room-gallery-side { height: 250px; }
    .section-padding { padding: 60px 0; }
    .float-partner-btn span, .float-tourism-btn span { display: none; }
    .float-partner-btn, .float-tourism-btn { padding: 12px; border-radius: 50%; }
}

/* --- 19. MODAL PROMO (REGLA DE ORO: EVOLUCIÓN) --- */

/* ... (MANTENER TODO EL CÓDIGO ANTERIOR SIN CAMBIOS HASTA LA SECCIÓN 19) ... */

/* --- 19. MODAL PROMO (REGLA DE ORO: EVOLUCIÓN & RESPONSIVIDAD) --- */

/* Animación de entrada: De arriba hacia abajo */
@keyframes slideFromTop {
    0% { transform: translateY(-100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Animación de salida/retroceso: De abajo hacia arriba */
@keyframes slideToTop {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

/* NUEVA Animación para el botón flotante (reemplaza a .reveal) */
@keyframes promoEntrance {
    0% { transform: translateY(50px) scale(0.8); opacity: 0; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

.promo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    z-index: 40000;
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.promo-overlay.active {
    display: flex;
    opacity: 1;
}

.promo-content {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--gold);
    /* Aplicando animación de inicio */
    animation: slideFromTop 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

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

.promo-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-bounce);
}

.promo-close:hover {
    transform: scale(1.2) rotate(90deg);
}

.promo-action {
    padding: 20px;
    text-align: center;
    background: var(--sand);
}

/* BOTÓN FLOTANTE PROMO - REDISEÑADO (REGLA DE ORO)
   Mejora: Se ha reducido el tamaño, ajustado la posición para apilarse 
   verticalmente sobre el botón de Partner y añadido lógica responsiva avanzada.
*/
.float-promo-btn {
    position: fixed;
    bottom: 135px; /* ANTES: 100px. AUMENTADO para evitar choque con la animación */
    right: 40px;
    background: var(--gold);
    color: var(--dark);
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 9991;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-gold);
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    
    /* ANIMACIÓN DE ENTRADA */
    opacity: 0; 
    animation: promoEntrance 0.8s ease-out forwards 1.2s;
}

.float-promo-btn:hover {
    transform: translateY(-5px) scale(1.05);
    background: var(--white);
    box-shadow: 0 15px 30px rgba(192, 160, 98, 0.4);
}

/* LÓGICA DE INTERACCIÓN CON STICKY BAR */
/* Cuando aparece la barra de reservas, ambos botones suben. 
   El de Partner sube a 120px, así que el Promo debe subir mucho más. */
#stickyBookingBar.visible ~ .float-promo-btn {
    bottom: 230px; /* ANTES: 180px. AUMENTADO para mantener la distancia */
}

/* RESPONSIVO */
@media (max-width: 1024px) {
    .float-promo-btn {
        right: 40px;
        bottom: 145px; /* Ajuste proporcional para tablets */
    }
}

@media (max-width: 768px) {
    /* Ajustes para Móviles */
    .float-promo-btn {
        right: 20px;
        bottom: 170px; /* ANTES: 160px. Subido un poco más por seguridad en móvil */
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }
    
    .float-promo-btn span {
        display: none;
    }
    
    .float-promo-btn i {
        font-size: 1.2rem;
        margin: 0;
    }

    /* Ajuste en móvil con Sticky Bar activa */
    #stickyBookingBar.visible ~ .float-promo-btn {
        bottom: 320px; /* ANTES: 300px. Separación máxima */
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    /* En pantallas muy pequeñas, aseguramos consistencia */
    .float-partner-btn span, .float-tourism-btn span, .float-promo-btn span { display: none; }
    .float-partner-btn, .float-tourism-btn, .float-promo-btn { padding: 12px; border-radius: 50%; justify-content: center; }
}