/* =============================================
   bada.casa - House of the Sea
   A contemplative Mediterranean coastal villa
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --stucco-white: #f4ede4;
    --sea-linen: #e8ddd0;
    --midnight-tide: #1a2332;
    --weathered-iron: #3d3832;
    --terracotta-dusk: #c4765b;
    --aegean-blue: #5b8fa8;
    --salt-crystal: #d4c9b8;
    --lavender-horizon: #8e7da3;
    --seagrass: #7a9e82;
    --deep-sea: #2a3a52;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;
}

body {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.8;
    color: var(--weathered-iron);
    background-color: var(--stucco-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Salt Texture Overlay --- */
.salt-texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.035;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* --- Typography --- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    letter-spacing: 0.12em;
    line-height: 1.3;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    margin-bottom: 1rem;
}

.room-name-es {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--terracotta-dusk);
}

.room-name-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: 14px;
    color: var(--lavender-horizon);
    margin-left: 0.5rem;
    opacity: 0.7;
}

/* --- Navigation Sidebar --- */
#room-nav {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 48px;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

#room-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
}

#room-nav .nav-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 24px;
}

#room-nav .nav-label {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 9px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--terracotta-dusk);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    opacity: 0.5;
    transition: opacity 0.6s ease;
    white-space: nowrap;
}

#room-nav .nav-link.active .nav-label {
    opacity: 1;
}

#room-nav .nav-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--terracotta-dusk);
    position: absolute;
    right: -10px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#room-nav .nav-link.active .nav-dot {
    opacity: 1;
}

.nav-track {
    position: absolute;
    left: 38px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.nav-trail {
    position: absolute;
    left: 0;
    width: 2px;
    background: var(--terracotta-dusk);
    opacity: 0;
    transition: opacity 2s ease, height 0.3s ease;
    border-radius: 1px;
}

/* --- Room Base Styles --- */
.room {
    min-height: 90vh;
    position: relative;
    scroll-snap-align: start;
    overflow: hidden;
}

.room-header {
    padding: 3rem 4rem 1rem;
    position: relative;
    z-index: 5;
}

.room-header-dark .room-name-es {
    color: var(--salt-crystal);
    opacity: 0.6;
}

.room-header-dark .room-name-kr {
    color: var(--lavender-horizon);
    opacity: 0.4;
}

/* --- Watercolor Wash Transitions --- */
.watercolor-transition {
    position: absolute;
    left: 0;
    right: 0;
    height: 120px;
    z-index: 2;
    pointer-events: none;
}

.watercolor-top {
    top: -60px;
}

.watercolor-bottom {
    bottom: -60px;
}

.room-entrada .watercolor-bottom {
    background: linear-gradient(180deg, rgba(244, 237, 228, 0) 0%, rgba(244, 237, 228, 0.3) 40%, rgba(232, 221, 208, 0.6) 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, black 30%, transparent 70%);
}

.room-sala .watercolor-top {
    background: linear-gradient(0deg, rgba(244, 237, 228, 0) 0%, rgba(244, 237, 228, 0.5) 100%);
    mask-image: radial-gradient(ellipse 130% 100% at 50% 100%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 130% 100% at 50% 100%, black 20%, transparent 80%);
}

.room-cocina .watercolor-bottom {
    background: linear-gradient(180deg, rgba(212, 201, 184, 0) 0%, rgba(196, 179, 156, 0.4) 100%);
    mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 110% 100% at 50% 0%, black 25%, transparent 75%);
}

.room-dormitorio .watercolor-top {
    background: linear-gradient(0deg, rgba(26, 35, 50, 0) 0%, rgba(42, 58, 82, 0.6) 100%);
    mask-image: radial-gradient(ellipse 130% 100% at 50% 100%, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 130% 100% at 50% 100%, black 20%, transparent 80%);
}

.room-dormitorio .watercolor-bottom {
    background: linear-gradient(180deg, rgba(26, 35, 50, 0) 0%, rgba(42, 58, 82, 0.5) 100%);
    mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 120% 100% at 50% 0%, black 30%, transparent 70%);
}

/* --- Tide Line Dividers --- */
.tide-line {
    position: relative;
    z-index: 10;
    height: 12px;
    margin: -6px 0;
    opacity: 0.6;
}

.tide-line svg {
    width: 100%;
    height: 100%;
}

.tide-line-dark svg path {
    stroke: var(--deep-sea);
}

/* =============================================
   ROOM 1: ENTRADA
   ============================================= */
.room-entrada {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, var(--stucco-white) 0%, var(--sea-linen) 100%);
}

.entrada-archway {
    text-align: center;
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.archway-frame {
    width: clamp(280px, 50vw, 500px);
    height: clamp(350px, 55vh, 550px);
    clip-path: polygon(
        0% 100%,
        0% 35%,
        2% 25%,
        5% 18%,
        10% 12%,
        17% 6%,
        25% 2%,
        35% 0.5%,
        50% 0%,
        65% 0.5%,
        75% 2%,
        83% 6%,
        90% 12%,
        95% 18%,
        98% 25%,
        100% 35%,
        100% 100%
    );
    overflow: hidden;
    position: relative;
    border: none;
    margin-bottom: 2rem;
}

.archway-ocean {
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        #c8a8d4 0%,
        #8e7da3 15%,
        #5b8fa8 35%,
        #5b8fa8 50%,
        #4a7d94 65%,
        #2a3a52 100%
    );
    position: relative;
}

.ocean-horizon {
    position: absolute;
    top: 48%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, rgba(244, 237, 228, 0.4) 20%, rgba(244, 237, 228, 0.6) 50%, rgba(244, 237, 228, 0.4) 80%, transparent 95%);
}

.ocean-shimmer {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 8px,
        rgba(244, 237, 228, 0.06) 8px,
        rgba(244, 237, 228, 0.06) 10px
    );
    animation: shimmerWave 8s ease-in-out infinite;
}

@keyframes shimmerWave {
    0%, 100% { transform: translateY(0px); opacity: 0.5; }
    50% { transform: translateY(-5px); opacity: 0.8; }
}

.entrada-lintel {
    margin-bottom: 2rem;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.12em;
    color: var(--weathered-iron);
    margin-bottom: 0.25rem;
}

.site-subtitle-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: var(--lavender-horizon);
    opacity: 0.8;
}

.entrada-welcome {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    color: var(--aegean-blue);
    opacity: 0;
    animation: morningLight 3s ease-out 1s forwards;
    margin-top: 1.5rem;
}

.entrada-welcome-en {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--salt-crystal);
    opacity: 0;
    animation: morningLight 3s ease-out 2s forwards;
    margin-top: 0.5rem;
}

@keyframes morningLight {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 0.7; transform: translateY(0); }
}

/* =============================================
   ROOM 2: SALA
   ============================================= */
.room-sala {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--stucco-white) 0%, var(--sea-linen) 40%, var(--stucco-white) 100%);
    padding: 2rem 4rem 6rem;
}

.sala-windows {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    gap: 2rem 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

.window-panel {
    background: var(--stucco-white);
    border: 6px solid var(--sea-linen);
    border-radius: 12px 12px 4px 4px;
    padding: 2.5rem;
    position: relative;
    box-shadow:
        0 4px 24px rgba(61, 56, 50, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    mask-image: radial-gradient(ellipse 130% 130% at 50% 50%, black 70%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 130% 130% at 50% 50%, black 70%, transparent 100%);
}

.window-large {
    grid-row: 1 / 3;
}

.window-medium {
    grid-column: 2;
}

.window-small {
    grid-column: 2;
}

.window-content h2 {
    color: var(--weathered-iron);
    margin-bottom: 1rem;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.window-content p {
    color: var(--weathered-iron);
    opacity: 0.85;
    line-height: 1.9;
}

.sala-quote {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    line-height: 1.7;
    color: var(--aegean-blue);
    opacity: 0.9;
}

/* Breathing window animation */
.breathing-window {
    animation: breathe 8s ease-in-out infinite;
}

.breathing-window:nth-child(2) {
    animation-delay: -2.6s;
}

.breathing-window:nth-child(3) {
    animation-delay: -5.3s;
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 4px 24px rgba(91, 143, 168, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 6px 36px rgba(91, 143, 168, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
}

/* =============================================
   ROOM 3: COCINA
   ============================================= */
.room-cocina {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sea-linen) 0%, var(--salt-crystal) 50%, var(--sea-linen) 100%);
    padding: 2rem 4rem 6rem;
    position: relative;
}

.tile-pattern-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    z-index: 1;
    background-color: var(--salt-crystal);
    background-image:
        /* Star pattern layer 1 */
        radial-gradient(circle 8px at 25px 25px, var(--aegean-blue) 3px, transparent 4px),
        radial-gradient(circle 8px at 75px 75px, var(--aegean-blue) 3px, transparent 4px),
        /* Cross pattern */
        linear-gradient(45deg, transparent 40%, var(--terracotta-dusk) 40%, var(--terracotta-dusk) 42%, transparent 42%),
        linear-gradient(-45deg, transparent 40%, var(--terracotta-dusk) 40%, var(--terracotta-dusk) 42%, transparent 42%),
        linear-gradient(45deg, transparent 58%, var(--terracotta-dusk) 58%, var(--terracotta-dusk) 60%, transparent 60%),
        linear-gradient(-45deg, transparent 58%, var(--terracotta-dusk) 58%, var(--terracotta-dusk) 60%, transparent 60%),
        /* Border grid */
        linear-gradient(0deg, rgba(91, 143, 168, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(91, 143, 168, 0.15) 1px, transparent 1px);
    background-size:
        100px 100px,
        100px 100px,
        100px 100px,
        100px 100px,
        100px 100px,
        100px 100px,
        50px 50px,
        50px 50px;
    background-position:
        1px 0px,
        0px 1px,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0,
        0 0;
    transition: opacity 1.5s ease;
}

.tile-pattern-bg.visible {
    opacity: 0.12;
}

.cocina-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto auto;
    gap: 1.5rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

.cocina-tile {
    background: rgba(244, 237, 228, 0.85);
    border-radius: 8px;
    padding: 2rem;
    position: relative;
    mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, black 65%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, black 65%, transparent 95%);
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cocina-tile.tile-visible {
    opacity: 1;
    transform: scale(1);
}

.tile-1 { grid-column: 1; grid-row: 1; border-radius: 8px 16px 8px 12px; }
.tile-2 { grid-column: 2; grid-row: 1; border-radius: 12px 8px 16px 8px; }
.tile-3 { grid-column: 1; grid-row: 2; border-radius: 16px 8px 12px 8px; }
.tile-4 { grid-column: 2; grid-row: 2; border-radius: 8px 12px 8px 16px; }

.cocina-tile h2 {
    color: var(--terracotta-dusk);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 0.75rem;
}

.cocina-tile p {
    line-height: 1.8;
    opacity: 0.85;
}

.cocina-detail {
    font-size: 0.95rem;
    color: var(--aegean-blue);
    font-style: italic;
}

.cocina-proverb {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    color: var(--terracotta-dusk);
    margin-bottom: 0.5rem;
}

.cocina-proverb-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--lavender-horizon);
    opacity: 0.8;
}

/* =============================================
   ROOM 4: TERRAZA
   ============================================= */
.room-terraza {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        var(--stucco-white) 0%,
        #f0e6d8 20%,
        #e8ddd0 40%,
        #dcd0c0 60%,
        var(--salt-crystal) 100%
    );
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem;
    position: relative;
}

.curtain {
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.curtain-left {
    left: 60px;
    background: linear-gradient(90deg, rgba(244, 237, 228, 0.7) 0%, rgba(244, 237, 228, 0) 100%);
    animation: curtainSway 6s ease-in-out infinite;
}

.curtain-right {
    right: 60px;
    background: linear-gradient(-90deg, rgba(244, 237, 228, 0.7) 0%, rgba(244, 237, 228, 0) 100%);
    animation: curtainSway 6s ease-in-out infinite reverse;
    animation-delay: -1.5s;
}

@keyframes curtainSway {
    0%, 100% {
        transform: translateX(0px) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateX(8px) rotate(1deg);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-5px) rotate(-1.5deg);
        opacity: 0.5;
    }
    75% {
        transform: translateX(10px) rotate(2deg);
        opacity: 0.65;
    }
}

.terraza-content {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 5;
}

.terraza-poem-line {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(1.8rem, 4.5vw, 3.5rem);
    letter-spacing: 0.1em;
    color: var(--weathered-iron);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.terraza-poem-line.visible {
    opacity: 1;
    transform: translateY(0);
}

.terraza-kr {
    font-family: 'Noto Serif KR', serif;
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--lavender-horizon);
    opacity: 0 !important;
    letter-spacing: 0.05em;
}

.terraza-kr.visible {
    opacity: 0.7 !important;
}

.terraza-horizon {
    position: absolute;
    bottom: 15%;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--aegean-blue) 20%, var(--aegean-blue) 80%, transparent 100%);
    opacity: 0.25;
}

/* =============================================
   ROOM 5: ESTUDIO
   ============================================= */
.room-estudio {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--sea-linen) 0%, var(--stucco-white) 30%, var(--sea-linen) 100%);
    padding: 2rem 4rem 6rem;
}

.estudio-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.estudio-bookshelf {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 1rem;
}

.book {
    border-radius: 2px;
    min-height: 20px;
}

.book-1 { background: var(--aegean-blue); height: 35px; width: 48px; opacity: 0.7; }
.book-2 { background: var(--terracotta-dusk); height: 22px; width: 52px; opacity: 0.6; }
.book-3 { background: var(--lavender-horizon); height: 28px; width: 44px; opacity: 0.5; }
.book-4 { background: var(--seagrass); height: 18px; width: 56px; opacity: 0.65; }
.book-5 { background: var(--salt-crystal); height: 32px; width: 40px; opacity: 0.7; }
.book-6 { background: var(--aegean-blue); height: 24px; width: 50px; opacity: 0.55; }
.book-7 { background: var(--terracotta-dusk); height: 26px; width: 46px; opacity: 0.6; }
.book-8 { background: var(--weathered-iron); height: 30px; width: 42px; opacity: 0.35; }

.estudio-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2.5rem;
}

.estudio-block {
    background: rgba(244, 237, 228, 0.6);
    padding: 2rem;
    border-radius: 4px;
    mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, black 60%, transparent 95%);
    -webkit-mask-image: radial-gradient(ellipse 140% 140% at 50% 50%, black 60%, transparent 95%);
}

.estudio-block h2 {
    color: var(--aegean-blue);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    margin-bottom: 0.75rem;
}

.estudio-block p {
    font-size: 0.95rem;
    line-height: 1.9;
    opacity: 0.85;
}

.block-3 {
    grid-column: 1 / -1;
}

.block-4 {
    grid-column: 1 / -1;
}

.estudio-note {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--lavender-horizon);
    padding: 1.5rem 2rem;
    border-left: 2px solid var(--salt-crystal);
}

/* =============================================
   ROOM 6: DORMITORIO
   ============================================= */
.room-dormitorio {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--midnight-tide) 0%, var(--deep-sea) 50%, var(--aegean-blue) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 4rem;
    position: relative;
}

.moonlight-reflection {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.moon-shimmer {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
}

.shimmer-1 {
    top: 10%;
    width: 40px;
    height: 60px;
    animation: moonBreath 6s ease-in-out infinite;
}

.shimmer-2 {
    top: 25%;
    width: 30px;
    height: 50px;
    animation: moonBreath 6s ease-in-out infinite 1s;
}

.shimmer-3 {
    top: 42%;
    width: 50px;
    height: 70px;
    animation: moonBreath 6s ease-in-out infinite 2s;
}

.shimmer-4 {
    top: 60%;
    width: 35px;
    height: 55px;
    animation: moonBreath 6s ease-in-out infinite 3s;
}

.shimmer-5 {
    top: 78%;
    width: 45px;
    height: 65px;
    animation: moonBreath 6s ease-in-out infinite 4s;
}

@keyframes moonBreath {
    0%, 100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.7; transform: translateX(-50%) translateY(-8px); }
}

.dormitorio-content {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dormitorio-window {
    width: clamp(200px, 35vw, 350px);
    height: clamp(250px, 40vh, 400px);
    border: 4px solid rgba(212, 201, 184, 0.15);
    border-radius: 8px 8px 2px 2px;
    overflow: hidden;
    margin-bottom: 3rem;
    position: relative;
}

.dormitorio-moonview {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0d1520 0%, #1a2332 40%, #2a3a52 100%);
    position: relative;
}

.moon-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(232, 221, 208, 0.3) 0%, rgba(232, 221, 208, 0.1) 40%, transparent 70%);
    animation: moonPulse 10s ease-in-out infinite;
}

@keyframes moonPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

.dormitorio-whisper {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    letter-spacing: 0.3em;
    color: var(--salt-crystal);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

.whisper-2 {
    font-family: 'Noto Serif KR', serif;
    letter-spacing: 0.15em;
    opacity: 0.2;
}

.whisper-3 {
    opacity: 0.15;
}

/* =============================================
   ROOM 7: AZOTEA
   ============================================= */
.room-azotea {
    min-height: 100vh;
    background: linear-gradient(
        180deg,
        var(--deep-sea) 0%,
        var(--aegean-blue) 15%,
        #8eb5c4 30%,
        #c8a8d4 45%,
        #e8b8a8 55%,
        var(--stucco-white) 70%,
        var(--stucco-white) 100%
    );
    padding: 6rem 4rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.room-azotea .room-header {
    padding-bottom: 2rem;
}

.room-azotea .room-name-es {
    color: var(--sea-linen);
    opacity: 0.7;
}

.room-azotea .room-name-kr {
    color: var(--sea-linen);
    opacity: 0.4;
}

.azotea-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    max-width: 700px;
    text-align: center;
    position: relative;
    z-index: 5;
    flex: 1;
    justify-content: center;
}

.azotea-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s ease;
}

.azotea-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.azotea-element p {
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.8;
    color: var(--stucco-white);
}

.elem-2 p {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    color: var(--sea-linen);
    opacity: 0.7;
}

.elem-3 p {
    color: var(--weathered-iron);
    opacity: 0.8;
}

.azotea-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--weathered-iron);
    letter-spacing: 0.12em;
    margin-bottom: 0.5rem;
}

.azotea-title-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--lavender-horizon);
    opacity: 0.7;
}

.azotea-final {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.5rem) !important;
    color: var(--weathered-iron) !important;
    line-height: 2;
}

.azotea-final-kr {
    font-family: 'Noto Serif KR', serif;
    font-weight: 300;
    font-size: 0.95rem !important;
    color: var(--lavender-horizon) !important;
    opacity: 0.6;
    margin-top: 0.75rem;
}

.azotea-horizon-line {
    position: absolute;
    bottom: 30%;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--salt-crystal) 30%, var(--salt-crystal) 70%, transparent 100%);
    opacity: 0.3;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
    #room-nav {
        display: none;
    }

    .room-header {
        padding: 2rem 2rem 1rem;
    }

    .room-sala {
        padding: 2rem 1.5rem 4rem;
    }

    .sala-windows {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .window-large {
        grid-row: auto;
    }

    .window-medium,
    .window-small {
        grid-column: 1;
    }

    .room-cocina {
        padding: 2rem 1.5rem 4rem;
    }

    .cocina-grid {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .tile-1, .tile-2, .tile-3, .tile-4 {
        grid-column: 1;
        grid-row: auto;
    }

    .room-terraza {
        padding: 4rem 1.5rem;
    }

    .room-estudio {
        padding: 2rem 1.5rem 4rem;
    }

    .estudio-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .estudio-bookshelf {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 3px;
    }

    .book {
        height: 20px !important;
        width: 30px !important;
    }

    .estudio-content {
        grid-template-columns: 1fr;
    }

    .block-3, .block-4 {
        grid-column: 1;
    }

    .room-dormitorio {
        padding: 4rem 2rem;
    }

    .room-azotea {
        padding: 4rem 2rem 3rem;
    }

    .curtain-left {
        left: 10px;
        width: 25px;
    }

    .curtain-right {
        right: 10px;
        width: 25px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }

    .archway-frame {
        width: 240px;
        height: 300px;
    }

    .terraza-poem-line {
        margin-bottom: 1rem;
    }

    .dormitorio-window {
        width: 220px;
        height: 280px;
    }
}
