/* ============================================
   ADOLF ALOJAMIENTO — PREMIUM STYLE
   ============================================ */

:root {
    --brand-navy: #0f1f38;
    --brand-navy-mid: #1e3a5f;
    --brand-blue: #2d72d9;
    --brand-blue-light: #4f8ef0;
    --brand-gold: #c8a96e;
    --brand-gold-light: #e4c98e;
    --brand-soft: #f5f7fc;
    --brand-white: #fdfeff;
    --shadow-sm: 0 2px 12px rgba(15, 31, 56, 0.06);
    --shadow-md: 0 8px 32px rgba(15, 31, 56, 0.10);
    --shadow-lg: 0 24px 56px rgba(15, 31, 56, 0.14);
    --shadow-glow: 0 0 40px rgba(45, 114, 217, 0.22);
    --radius-card: 20px;
    --radius-xl: 28px;
}

/* ---- BASE ---- */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'Lato', sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: var(--brand-soft);
    color: #2a3a52;
}

.font-serif { font-family: 'Playfair Display', serif; }

/* ---- GRAIN OVERLAY (agrega textura premium) ---- */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    opacity: 0.018;
    pointer-events: none;
    z-index: 9998;
}

/* ---- NAVEGACIÓN ---- */
nav {
    background: transparent !important;
    border-bottom: 1px solid transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

nav.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(45, 114, 217, 0.08);
    box-shadow: 0 4px 32px rgba(15, 31, 56, 0.10);
}

/* Links del nav: blancos en hero, azul oscuro al hacer scroll */
nav #desktop-menu a {
    color: rgba(255, 255, 255, 0.82);
    transition: color 0.3s ease;
}
nav.scrolled #desktop-menu a {
    color: var(--brand-navy);
}
nav #desktop-menu a:hover,
nav.scrolled #desktop-menu a:hover {
    color: var(--brand-blue);
}

/* Botón menu móvil: blanco en hero */
nav #menu-btn {
    color: white;
}
nav.scrolled #menu-btn {
    color: var(--brand-navy);
}

/* Logo wrapper: recuadro blanco en hero, desaparece al scrollear */
.logo-wrap {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 6px 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.18);
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease, border-radius 0.4s ease;
}

nav.scrolled .logo-wrap {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

nav a img {
    transition: transform 0.3s ease;
}

nav a img:hover {
    transform: scale(1.04);
}

/* ---- BOTONES CTA ---- */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
    color: #fff;
    border-radius: 100px;
    font-weight: 700;
    letter-spacing: 0.03em;
    box-shadow: 0 4px 18px rgba(45,114,217,0.30), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: all 0.25s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.12));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.25s;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(45,114,217,0.40), inset 0 1px 0 rgba(255,255,255,0.15);
}

/* ---- HERO ---- */
#inicio {
    position: relative;
    background: var(--brand-navy);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(45, 114, 217, 0.12);
    border: 1px solid rgba(45, 114, 217, 0.30);
    color: #7eb4f5;
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--brand-blue-light);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(79, 142, 240, 0.8);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(79, 142, 240, 0.8); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(79, 142, 240, 0.4); }
}

.hero-divider {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-gold), transparent);
    margin: 24px auto;
}

/* ---- TARJETAS FLOTANTES HERO ---- */
.hero-stat-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius-card);
    padding: 16px 22px;
    transition: all 0.3s ease;
    cursor: default;
}

.hero-stat-card:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(45, 114, 217, 0.35);
    transform: translateY(-3px);
}

.hero-stat-icon {
    color: var(--brand-gold);
}

/* ---- SECCIÓN DEPTO ---- */
#departamento {
    background: var(--brand-white);
}

.depto-card {
    background: var(--brand-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(45,114,217,0.06);
    position: relative;
    overflow: hidden;
}

.depto-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold), var(--brand-blue-light));
}

/* Iconos de amenidades */
.amenity-icon-wrap {
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #eef4ff, #dbeafe);
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    color: var(--brand-blue);
    font-size: 1.6rem;
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 2px 10px rgba(45,114,217,0.10);
}

.amenity-item:hover .amenity-icon-wrap {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
    color: white;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 20px rgba(45,114,217,0.28);
}

/* Tarjetas de detalle de rooms */
.room-card {
    background: #f8faff;
    border: 1px solid rgba(45,114,217,0.08);
    border-radius: var(--radius-card);
    padding: 28px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.room-card:hover::after { transform: scaleX(1); }
.room-card:hover {
    background: white;
    border-color: rgba(45,114,217,0.18);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* ---- MARQUESINA GALERÍA ---- */
.gallery-marquee {
    width: 100%;
    overflow: hidden;
    padding: 24px 0;
    background: transparent;
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    gap: 20px;
    animation: scroll-left 55s linear infinite;
    will-change: transform;
    animation-play-state: paused;
}

.marquee-track.active {
    animation-play-state: running;
}

@media (hover: hover) {
    .marquee-track:hover { animation-play-state: paused; }
}

.marquee-track.is-paused {
    animation-play-state: paused !important;
}

.gallery-item {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255,255,255,0.08);
    transform: translateZ(0);
    cursor: zoom-in;
    position: relative;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(15,31,56,0.5) 100%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.gallery-item:hover::after { opacity: 1; }

@media (min-width: 768px) {
    .gallery-item { width: 360px; height: 360px; }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05) saturate(1.1);
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---- SECCIÓN TURISMO ---- */
.turismo-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    border: 1px solid rgba(45,114,217,0.07);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.turismo-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(45,114,217,0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s;
}

.turismo-card:hover::before { opacity: 1; }
.turismo-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-6px);
    border-color: rgba(45,114,217,0.15);
}

.turismo-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, #eef4ff, #dbeafe);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--brand-blue);
    transition: all 0.3s;
}

.turismo-card:hover .turismo-icon {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
    color: white;
    transform: rotate(-5deg) scale(1.08);
}

.turismo-tag {
    display: inline-block;
    background: #f0f5ff;
    color: var(--brand-blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 100px;
    border: 1px solid rgba(45,114,217,0.15);
}

/* ---- OPINIONES ---- */
.review-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: 32px;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.review-card::before {
    content: '"';
    position: absolute;
    top: -8px; right: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: rgba(200, 169, 110, 0.18);
    line-height: 1;
    pointer-events: none;
}

.review-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(200, 169, 110, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.review-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-gold));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 14px rgba(45,114,217,0.25);
    flex-shrink: 0;
}

/* ---- CONTACTO ---- */
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--brand-soft);
    border: 1px solid rgba(45,114,217,0.07);
    border-radius: var(--radius-card);
    padding: 22px 26px;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: white;
    border-color: rgba(45,114,217,0.18);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-icon-wrap {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.contact-info-item:hover .contact-icon-wrap {
    transform: scale(1.1);
}

/* ---- LIGHTBOX ---- */
#lightbox {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(8, 16, 30, 0.96);
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    z-index: 99999;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#lightbox.active {
    display: flex;
    opacity: 1;
}

#lightbox img {
    max-width: 88vw;
    max-height: 88vh;
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    transform: scale(0.92) translateY(16px);
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    user-select: none;
}

#lightbox.active img {
    transform: scale(1) translateY(0);
}

#lightbox-close {
    position: absolute;
    top: 24px; right: 24px;
    width: 46px; height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    color: white;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 100000;
    transition: all 0.2s;
}

#lightbox-close:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.25);
    transform: rotate(90deg) scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: white;
    width: 52px; height: 52px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 100000;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.20);
    border-color: rgba(45, 114, 217, 0.5);
    box-shadow: 0 0 20px rgba(45,114,217,0.25);
    transform: translateY(-50%) scale(1.1);
}

#lightbox-prev { left: 24px; }
#lightbox-next { right: 24px; }

/* ---- FOOTER ---- */
footer {
    background: var(--brand-navy);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 60%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(45,114,217,0.35), transparent);
}

/* ---- WHATSAPP FLOTANTE ---- */
.wa-float {
    background: #25D366;
    box-shadow: 0 8px 28px rgba(37,211,102,0.38), 0 0 0 0 rgba(37,211,102,0.35);
    animation: wa-pulse 2.5s infinite;
    transition: all 0.25s ease;
}

.wa-float:hover {
    background: #20ba5a;
    transform: scale(1.12);
    box-shadow: 0 12px 36px rgba(37,211,102,0.50);
}

@keyframes wa-pulse {
    0% { box-shadow: 0 8px 28px rgba(37,211,102,0.38), 0 0 0 0 rgba(37,211,102,0.35); }
    70% { box-shadow: 0 8px 28px rgba(37,211,102,0.38), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 8px 28px rgba(37,211,102,0.38), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---- SECTION LABELS ---- */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brand-blue);
    margin-bottom: 14px;
}

.section-label::before,
.section-label::after {
    content: '';
    height: 1px;
    width: 24px;
    background: currentColor;
    opacity: 0.4;
}

/* ---- LÍNEA DIVISORA DECORATIVA ---- */
.fancy-divider {
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
    border-radius: 100px;
    margin: 0 auto;
}

/* ---- ANIMACIONES FLOTANTES ---- */
@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float-gentle 4s ease-in-out infinite;
}

/* ---- MOBILE MENU ---- */
#mobile-menu {
    background: rgba(8, 16, 30, 0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .marquee-track { animation-duration: 38s; }
    #lightbox img { max-width: 95vw; }
    .lightbox-nav { width: 42px; height: 42px; font-size: 1.2rem; }
    #lightbox-prev { left: 8px; }
    #lightbox-next { right: 8px; }
    #lightbox-close { top: 14px; right: 14px; width: 40px; height: 40px; }
}

/* ---- SCROLL SPY ACTIVE ---- */
#desktop-menu a.active-link {
    color: var(--brand-blue);
}

/* ---- HORIZONTAL RULE GOLD ---- */
.hr-gold {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-gold), transparent);
    border: none;
    margin: 0;
}

/* ---- MAP FRAME ---- */
.map-frame {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid white;
    outline: 1px solid rgba(45,114,217,0.12);
}