:root {
    --bg-white: #ffffff;
    --royal-black: #000000;
    --accent-gold: #b39359;
    --text-gray: #4a4a4a;
    --soft-gray: #F4F6F8;
    --text-main: #1A1A1A;
    --text-muted: #757575;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-white);
    color: var(--royal-black);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Cinematic Bars */
.cinema-bar {
    position: fixed;
    left: 0;
    width: 100%;
    height: 10vh;
    background: var(--royal-black);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinema-bar.top {
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cinema-bar.bottom {
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.brand-badge {
    color: white;
    letter-spacing: 8px;
    font-size: 0.7rem;
    font-weight: 300;
}

/* Mansion Layout */
.mansion-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    transition: transform 1.2s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-x: hidden;
}

.room {
    flex: 0 0 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15vh 8%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.content {
    display: flex;
    flex-direction: column;
    gap: 25px;
    max-width: 1200px;
    width: 100%;
    align-items: flex-start;
    text-align: left;
}

/* Móvil pequeño */
@media (max-width: 639px) {
    .room {
        padding: 12vh 5%;
    }
}

/* Tablet → suaviza el quiebre */
@media (min-width: 640px) and (max-width: 767px) {
    .room {
        padding: 12vh 6%;
    }
    .content {
        gap: 30px;
    }
}

/* Tablet / escritorio de pantalla estrecha */
@media (min-width: 768px) and (max-width: 1023px) {
    .room {
        padding: 10vh 6%;
    }
    .mansion-container {
        overflow-x: hidden;
    }
    .content {
        gap: 30px;
    }
}

/* Desktop: aquí sí entra el grid 2 columnas */
@media (min-width: 1024px) {
    .room {
        padding: 15vh 8%;
    }
    .content {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        gap: 60px;
        align-items: start;
        text-align: left;
    }
}

/* Typography */
h1, h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-align: left;
    width: 100%;
    margin-left: 0;
    margin-right: auto;
}

.content {
    align-items: flex-start;
    text-align: left;
}

p {
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-gray);
}

.highlight-gold {
    color: var(--accent-gold);
    font-style: italic;
}

/* Navigation Elements */
.nav-gate {
    display: flex;
    gap: 20px;
}

.gate-link {
    color: white;
    font-size: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 0;
}

.gate-link.active {
    opacity: 1;
    color: var(--accent-gold);
}

.gate-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
}

/* Cards & Buttons */
.experience-card {
    background: white;
    border: 1px solid #f2f2f2;
    padding: 1.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.02);
}

.btn-reserve {
    background: var(--royal-black);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    margin-top: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.6rem;
    cursor: pointer;
    transition: 0.4s;
    width: 100%;
}

.btn-reserve:hover {
    background: var(--accent-gold);
}

/* Notebook / Expediente Style */
.expediente-notebook {
    background: #FFFFFF;
    border-left: 8px solid #D4AF37;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    color: #003366;
}

.notebook-header {
    padding: 20px;
    border-bottom: 1px dashed #BCC6CC;
    text-align: center;
    background: #F9FAFB;
}

.notebook-body {
    padding: 25px;
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
}

.notebook-list li {
    list-style: none;
    padding: 12px 0;
    border-bottom: 1px solid #E0E0E0;
    font-size: 15px;
    letter-spacing: 0.5px;
}

/* Responsive & Desktop Overrides (ya incluidos aquí) */

/* Móvil → Tablet: ajustes suaves de tipografía y botones */
@media (min-width: 640px) {
    .nav-gate {
        gap: 40px;
    }
    .gate-link {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }
    .experience-card {
        padding: 2.5rem 2rem;
    }
    .btn-reserve {
        width: auto;
        padding: 0.9rem 1.5rem;
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .nav-gate {
        gap: 50px;
    }
    .gate-link {
        font-size: 0.6rem;
        letter-spacing: 4px;
    }
    .experience-card {
        padding: 3rem;
    }
    .btn-reserve {
        width: auto;
        padding: 1rem 2rem;
    }
}

/* Ajustes de altura en pantallas pequeñas */
@media (max-height: 700px) {
    .bot-window {
        height: 95vh;
    }
    .room {
        padding: 8vh 5%;
    }
}

@media (min-width: 768px) and (max-width: 1023px) and (min-height: 700px) {
    .bot-window {
        height: 85vh;
    }
    .room {
        padding: 8vh 6%;
    }
}

/* Forzar que Eric sea la capa más alta */
#royal-bot {
    z-index: 9999 !important;
    display: none; /* Se activa con el JS */
}

#royal-bot.active {
    display: flex !important;
}