/**
 * HOTEL DUQUE - ESTILOS PERSONALIZADOS & PALETA #adff2f (ELECTRIC LIME / HIGH LUXURY)
 * Estilos garantizados para portada con video/imagen, animaciones y glassmorphism oscuro.
 */

:root {
    --duque-neon: #adff2f;
    --duque-neon-rgb: 173, 255, 47;
    --duque-neon-hover: #baff42;
    --duque-bg-dark: #070B14;
    --duque-card-bg: #0E1626;
    --duque-card-border: rgba(173, 255, 47, 0.15);
}

/* 0. ESTRUCTURA ROBUSTA DEL HERO / PORTADA */
.hero-duque {
    position: relative;
    min-height: 85vh;
    min-height: 680px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #070B14;
    color: #FFFFFF;
    overflow: hidden;
    width: 100%;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: brightness(0.65) contrast(1.1);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 2;
    filter: brightness(0.65) contrast(1.1);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(7, 11, 20, 0.75) 0%, rgba(7, 11, 20, 0.5) 45%, #070B14 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

/* 1. CLASES DE RESPLANDOR Y NEÓN #adff2f */
.text-neon {
    color: #adff2f !important;
}

.text-neon-gradient {
    background: linear-gradient(110deg, #adff2f 0%, #e6ff99 35%, #adff2f 65%, #7ce000 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: duqueNeonSweep 4.5s ease-in-out infinite;
}

.hero-title-italic {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-weight: 800 !important;
    font-style: italic;
    letter-spacing: -0.03em;
    animation: duqueHeroTitleIn 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (max-width: 639px) {
    .hero-duque {
        min-height: auto !important;
    }
    .hero-content {
        padding-top: 1.25rem !important;
        padding-bottom: 4.5rem !important;
    }
    .hero-title-italic {
        font-size: 1.65rem !important;
        line-height: 1.15 !important;
    }
}

.hero-accent-wrap {
    position: relative;
    display: inline-block;
    padding-bottom: 0.16em;
}

.hero-swoosh-svg {
    position: absolute;
    left: 2%;
    right: 2%;
    bottom: -0.02em;
    width: 96%;
    height: 0.24em;
    overflow: visible;
    pointer-events: none;
}

.hero-swoosh-path {
    stroke: #adff2f;
    stroke-width: 5.5;
    stroke-linecap: round;
    fill: none;
    filter: drop-shadow(0 0 8px rgba(173, 255, 47, 0.75));
    stroke-dasharray: 420;
    stroke-dashoffset: 420;
    animation: duqueSwooshDraw 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards, duqueSwooshGlow 3.2s ease-in-out 1.5s infinite;
}

@keyframes duqueNeonSweep {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes duqueHeroTitleIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes duqueSwooshDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes duqueSwooshGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(173, 255, 47, 0.55));
        opacity: 0.92;
    }
    50% {
        filter: drop-shadow(0 0 14px rgba(173, 255, 47, 0.95));
        opacity: 1;
    }
}

.bg-neon {
    background-color: #adff2f !important;
    color: #070B14 !important;
}

.border-neon {
    border-color: #adff2f !important;
}

.border-neon-subtle {
    border-color: rgba(173, 255, 47, 0.25) !important;
}

.shadow-neon {
    box-shadow: 0 0 25px rgba(173, 255, 47, 0.45) !important;
}

.shadow-neon-sm {
    box-shadow: 0 0 12px rgba(173, 255, 47, 0.3) !important;
}

.shadow-neon-lg {
    box-shadow: 0 0 45px rgba(173, 255, 47, 0.6) !important;
}

/* 2. BOTONES MODERNOS ULTRA-PREMIUM */
.btn-neon-primary {
    background: #adff2f;
    color: #070B14;
    font-weight: 900;
    letter-spacing: 0.02em;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(173, 255, 47, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-neon-primary:hover {
    background: #baff42;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(173, 255, 47, 0.6);
}

.btn-neon-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-neon-outline {
    background: rgba(173, 255, 47, 0.08);
    color: #adff2f;
    border: 1.5px solid #adff2f;
    font-weight: 800;
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-neon-outline:hover {
    background: #adff2f;
    color: #070B14;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(173, 255, 47, 0.45);
}

/* 3. TARJETAS OSCURAS GLASSMORPHISM CON BORDE NEÓN */
.card-duque {
    background: rgba(14, 22, 38, 0.90);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-duque:hover {
    border-color: rgba(173, 255, 47, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 25px rgba(173, 255, 47, 0.2);
}

/* 4. ANIMACIONES */
@keyframes neonBreath {
    0%, 100% {
        box-shadow: 0 0 15px rgba(173, 255, 47, 0.3), inset 0 0 10px rgba(173, 255, 47, 0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(173, 255, 47, 0.65), inset 0 0 18px rgba(173, 255, 47, 0.25);
    }
}

.animate-neon-pulse {
    animation: neonBreath 3s infinite ease-in-out;
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: floatSlow 4s ease-in-out infinite;
}

@keyframes radarRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-radar {
    animation: radarRotate 6s linear infinite;
}

@keyframes lightShimmer {
    0% { transform: translateX(-150%) skewX(-25deg); }
    100% { transform: translateX(250%) skewX(-25deg); }
}

.shimmer-badge {
    position: relative;
    overflow: hidden;
}

.shimmer-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(173, 255, 47, 0.4), transparent);
    animation: lightShimmer 4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Orbes ambientales decorativos */
.glow-orb {
    position: absolute;
    border-radius: 9999px;
    filter: blur(80px);
    pointer-events: none;
    z-index: 4;
}

.glow-orb-neon {
    background: radial-gradient(circle, rgba(173, 255, 47, 0.25) 0%, rgba(173, 255, 47, 0) 70%);
}

.glow-orb-cyan {
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, rgba(6, 182, 212, 0) 70%);
}

/* Badge de disponibilidad #adff2f */
.badge-avail-neon {
    background: rgba(173, 255, 47, 0.12);
    color: #adff2f;
    border: 1px solid rgba(173, 255, 47, 0.4);
    font-weight: 900;
}

/* 5. BARRA FLOTANTE DE BÚSQUEDA Y RESERVA (INSPIRACIÓN EVERNEST) */
.floating-booking-bar {
    background: rgba(14, 22, 38, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid rgba(173, 255, 47, 0.35);
    box-shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.85), 0 0 30px rgba(173, 255, 47, 0.15);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-booking-bar:focus-within {
    border-color: #adff2f;
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 35px rgba(173, 255, 47, 0.25);
}

/* 6. TARJETAS DE SELECCIÓN INTERACTIVA PARA RESERVA DIRECTA */
.room-select-card {
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 11, 20, 0.6);
}

.room-select-card:hover {
    border-color: rgba(173, 255, 47, 0.4);
    transform: translateY(-2px);
    background: rgba(14, 22, 38, 0.8);
}

.room-select-card.active {
    border-color: #adff2f !important;
    background: rgba(173, 255, 47, 0.08) !important;
    box-shadow: 0 0 20px rgba(173, 255, 47, 0.25);
}

/* Radio pill buttons */
.stay-mode-btn {
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    background: rgba(7, 11, 20, 0.6);
}

.stay-mode-btn.active {
    border-color: #adff2f !important;
    background: #adff2f !important;
    color: #070B14 !important;
    font-weight: 900;
    box-shadow: 0 0 16px rgba(173, 255, 47, 0.4);
}

/* Inputs de reserva limpios */
.booking-input {
    background: rgba(7, 11, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #F8FAFC;
    transition: all 0.2s ease;
}

.booking-input:focus {
    outline: none;
    border-color: #adff2f;
    box-shadow: 0 0 12px rgba(173, 255, 47, 0.25);
}

/* 7. REGLAS ROBUSTAS DE SECCIÓN Y GRID (EVITA COLAPSOS Y TRASLAPES) */
.section-duque {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    clear: both !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    min-height: fit-content !important;
}

/* Fallback de Grid para garantizar que ningún navegador colapse columnas */
@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)) !important; }
    .lg\:col-span-4 { grid-column: span 4 / span 4 !important; }
    .lg\:col-span-5 { grid-column: span 5 / span 5 !important; }
    .lg\:col-span-6 { grid-column: span 6 / span 6 !important; }
    .lg\:col-span-7 { grid-column: span 7 / span 7 !important; }
    .lg\:col-span-8 { grid-column: span 8 / span 8 !important; }
    .lg\:flex { display: flex !important; }
    .lg\:hidden { display: none !important; }
    .lg\:block { display: block !important; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
    .md\:flex { display: flex !important; }
    .md\:hidden { display: none !important; }
    .md\:block { display: block !important; }
}

@media (min-width: 640px) {
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
    .sm\:col-span-2 { grid-column: span 2 / span 2 !important; }
    .sm\:flex { display: flex !important; }
    .sm\:flex-row { flex-direction: row !important; }
    .sm\:hidden { display: none !important; }
    .sm\:block { display: block !important; }
}

/* 8. MENÚ LATERAL DESLIZABLE (DRAWER SIDEBAR ORIGINAL HOTEL DUQUE) */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-backdrop.active,
.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.drawer-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: #070B14;
    border-right: 1.5px solid rgba(173, 255, 47, 0.35);
    box-shadow: 15px 0 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(173, 255, 47, 0.15);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.drawer-panel.active,
.drawer-panel.is-open {
    transform: translateX(0);
}

/* 9. AVATAR DE LA RECEPCIONISTA EN EL FAB DE CHAT */
#cx-root .cx-fab img.duque-fab-avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
}

#cx-root .cx-fab svg {
    opacity: 0 !important;
}


/* ==========================================================
   LAYOUT Y ANCHO: 98% EN RESPONSIVO MÓVIL, 90% EN ESCRITORIO
   ========================================================== */
.site-container-90,
.max-w-7xl,
.max-w-6xl {
    width: 90% !important;
    max-width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* En móvil / pantallas estrechas: 98% de ancho para que nada quede aplastado */
@media (max-width: 640px) {
    .site-container-90,
    .w-\[90\%\],
    .max-w-\[90\%\],
    .w-duque-container,
    .max-w-7xl,
    .max-w-6xl,
    main.w-\[90\%\],
    .hero-content {
        width: 98% !important;
        max-width: 98% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    /* Padding optimizado en tarjetas móviles para máxima amplitud */
    .card-duque {
        padding-left: 0.85rem !important;
        padding-right: 0.85rem !important;
    }
}

@media (min-width: 1920px) {
    .site-container-90,
    .max-w-7xl,
    .max-w-6xl {
        width: 90% !important;
        max-width: 90% !important;
    }
}

/* ==========================================================
   TEXTURA DE LUJO & PARTÍCULAS DE FONDO HOTEL DUQUE
   ========================================================== */
/* Textura Orgánica de Pizarra/Terciopelo Oscuro (Sin líneas ni mallas) */
.duque-luxury-texture {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lienzo de Partículas Motes de Luz Flotantes */
#duqueAtmosphereCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2;
}

/* Auras de Luz Ambiental con Respiración Fluida */
.duque-ambient-glow {
    position: fixed;
    pointer-events: none;
    border-radius: 9999px;
    filter: blur(80px);
    z-index: 1;
    will-change: transform, opacity;
}

.duque-glow-lime {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(173, 255, 47, 0.08) 0%, transparent 70%);
    top: -120px;
    right: -100px;
    animation: duqueAuraBreathe 14s ease-in-out infinite alternate;
}

.duque-glow-sapphire {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(30, 58, 138, 0.14) 0%, transparent 70%);
    bottom: -150px;
    left: -120px;
    animation: duqueAuraBreathe 16s ease-in-out infinite alternate-reverse;
}

@keyframes duqueAuraBreathe {
    0% {
        transform: scale(0.92) translate(0, 0);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.08) translate(15px, -20px);
        opacity: 1;
    }
    100% {
        transform: scale(0.96) translate(-10px, 15px);
        opacity: 0.75;
    }
}

/* ==========================================================
   ANIMACIONES DE ENTRADA, SALIDA Y REVELADO ESCALONADO
   ========================================================== */
.duque-reveal {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(4px);
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.75s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform, filter;
}

.duque-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Micro-interacción Spotlight sobre tarjetas de habitación */
.card-duque {
    position: relative;
    background: #0E1626;
    border: 1px solid rgba(173, 255, 47, 0.16);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.card-duque::before {
    content: '';
    position: absolute;
    top: var(--spotlight-y, -1000px);
    left: var(--spotlight-x, -1000px);
    transform: translate(-50%, -50%);
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(173, 255, 47, 0.08) 0%, transparent 65%);
    pointer-events: none;
    transition: opacity 0.25s ease;
    opacity: 0;
    z-index: 1;
}

.card-duque:hover::before {
    opacity: 1;
}

.card-duque:hover {
    transform: translateY(-4px);
    border-color: rgba(173, 255, 47, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8), 0 0 25px rgba(173, 255, 47, 0.15);
}

/* Transición suave para Drawer / Menú lateral (Entrada y Salida) */
.drawer-panel {
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.drawer-panel.is-open {
    transform: translateX(0) !important;
}

#drawerOverlay {
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* Barras de Desplazamiento (Scrollbar de Lujo) */
/* Firefox */
html, * {
    scrollbar-width: thin;
    scrollbar-color: #adff2f #04070D;
}

/* Chrome, Edge, Safari (WebKit) */
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track {
    background: #04070D;
    border-left: 1px solid rgba(173, 255, 47, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #adff2f 0%, #82c418 100%);
    border-radius: 9999px;
    border: 2px solid #04070D;
    box-shadow: 0 0 12px rgba(173, 255, 47, 0.4);
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: #c2ff4d;
    box-shadow: 0 0 18px rgba(173, 255, 47, 0.8);
}

::-webkit-scrollbar-corner {
    background: #04070D;
}

/* Sticky Header Garantizado sin interferencia de overflow */
.site-sticky-header {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 50 !important;
    background: rgba(7, 11, 20, 0.96) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid rgba(173, 255, 47, 0.3) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
}

.site-sticky-header.is-pinned {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.95), 0 0 15px rgba(173, 255, 47, 0.2) !important;
    border-bottom-color: rgba(173, 255, 47, 0.45) !important;
}


/* === PERF: REDUCE GPU BLUR ON MOBILE === */
@media (max-width: 768px) {
    .duque-ambient-glow, .glow-orb { display: none !important; }
    .glass-header-dark { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(7, 11, 20, 0.97) !important; }
    .backdrop-blur-2xl, .backdrop-blur-xl, .backdrop-blur-md { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
