/* css/style.css */
:root {
    --bg: #f7f3ee;
    --bg-alt: #f0e9e1;
    --paper: #faf6f1;
    --text: #3d342c;
    --text-soft: #6b5e54;
    --accent: #c9a992;
    --accent-dark: #a88870;
    --border: #e0d5c8;
    --shadow: rgba(61, 52, 44, 0.08);
    --sketch: #8d6b52;
    --bg-button: #c9a992;
    --font-title: 'Playfair Display', serif;
    --size-title: 2.8rem;
    --color-title: #3d342c;
    --font-heading: 'Playfair Display', serif;
    --size-heading: 1.8rem;
    --color-heading: #a88870;
    --font-card: 'Playfair Display', serif;
    --size-card: 1.4rem;
    --color-card: #3d342c;
    --font-body: 'Lora', serif;
    --size-body: 1.05rem;
    --color-body: #3d342c;
    --font-nav: 'Lora', serif;
    --size-nav: 0.95rem;
    --color-nav: #6b5e54;
    --font-soft: 'Lora', serif;
    --size-soft: 0.9rem;
    --color-soft: #6b5e54;
    --font-script: 'Caveat', cursive;
    --size-script: 1.35rem;
    --color-script: #a88870;
    --font-button: 'Lora', serif;
    --size-button: 0.95rem;
    --color-button: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--size-body);
    background-color: var(--bg);
    color: var(--color-body);
    line-height: 1.7;
    background-image: radial-gradient(var(--border) 0.6px, transparent 0.6px);
    background-size: 22px 22px;
    overflow-x: hidden;
}

body.has-page-bg {
    position: relative;
    z-index: 0;
}

body.has-page-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--page-bg-image);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: var(--page-bg-opacity, 1);
    pointer-events: none;
}

img, video, iframe {
    max-width: 100%;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.site-header,
main,
.site-footer {
    position: relative;
    z-index: 1;
}

.site-header {
    flex: 0 0 auto;
    padding: 10px 0 8px;
    text-align: center;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

.site-header.has-header-bg::before,
.site-footer.has-footer-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.site-header.has-header-bg::before {
    background-image: var(--header-bg-image);
    opacity: var(--header-bg-opacity, 1);
}

.site-header .container {
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px 20px;
}

.logo {
    margin: 0;
    line-height: 1;
}

.logo img {
    max-height: 44px;
    width: auto;
    display: block;
}

.logo-text.handwritten {
    font-size: calc(var(--size-script) * 1.85);
}

.site-title {
    font-family: var(--font-title);
    font-weight: 400;
    font-size: clamp(1.35rem, 3vw, var(--size-title));
    color: var(--color-title);
    margin: 0;
    letter-spacing: 0.5px;
    line-height: 1.15;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 18px;
    margin: 0;
}

.main-nav a {
    color: var(--color-nav);
    font-family: var(--font-nav);
    text-decoration: none;
    font-size: var(--size-nav);
    letter-spacing: 0.3px;
    border-bottom: 1px solid transparent;
    padding: 2px 2px;
    transition: color 0.2s, border-color 0.2s;
}

.main-nav a:hover {
    color: var(--color-heading);
    border-bottom-color: var(--bg-button);
}

main {
    padding: 50px 0 80px;
    min-height: 60vh;
}

.hero {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 60px;
}

.hero h2,
.page-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: clamp(1.45rem, 3.4vw, var(--size-heading));
    color: var(--color-heading);
    line-height: 1.25;
}

.hero h2 {
    font-style: italic;
    margin-bottom: 20px;
}

.page-title {
    text-align: center;
    margin: 0 0 18px;
}

.page-title.align-left {
    text-align: left;
}

.page-intro {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 36px;
}

.presentation {
    font-size: calc(var(--size-body) * 1.08);
    color: var(--color-body);
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px;
    margin-top: 28px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 20px;
    bottom: 20px;
    width: 12px;
    background: repeating-linear-gradient(
        var(--sketch),
        var(--sketch) 2px,
        transparent 2px,
        transparent 6px
    );
    border-radius: 2px;
    opacity: 0.45;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px var(--shadow);
}

.card h3,
.article-item h2 {
    font-family: var(--font-card);
    color: var(--color-card);
    margin-top: 0;
    font-size: var(--size-card);
    line-height: 1.3;
}

.article-item h2 {
    font-family: var(--font-heading);
    font-size: calc(var(--size-heading) * 0.85);
    color: var(--color-heading);
}

.card a.btn,
a.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 22px;
    background: var(--bg-button);
    color: var(--color-button);
    font-family: var(--font-button);
    font-size: var(--size-button);
    text-decoration: none;
    border-radius: 30px;
    transition: filter 0.2s;
}

.card a.btn:hover,
a.btn:hover {
    filter: brightness(0.92);
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.article-item {
    background: var(--paper);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border);
}

.article-item a {
    color: inherit;
    text-decoration: none;
}

.article-content {
    font-size: var(--size-body);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
    gap: 15px;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.cover-img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 24px;
}

.calendly-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: var(--paper);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.calendly-frame {
    width: 100%;
    height: 70vh;
    min-height: 520px;
    border: 0;
    display: block;
}

.site-footer {
    flex: 0 0 auto;
    background: var(--bg-alt);
    padding: 8px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    font-family: var(--font-soft);
    font-size: var(--size-soft);
    color: var(--color-soft);
}

.site-footer.has-footer-bg::before {
    background-image: var(--footer-bg-image);
    opacity: var(--footer-bg-opacity, 1);
}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 26px;
    line-height: 1.4;
}

.footer-note {
    margin: 0;
}

.socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2px 22px;
    margin: 0;
}

.socials a {
    color: var(--color-body);
    font-family: var(--font-nav);
    text-decoration: none;
    font-weight: 500;
    padding: 4px 2px;
}

.note {
    color: var(--color-soft);
    font-family: var(--font-soft);
    font-size: var(--size-soft);
}

.handwritten {
    font-family: var(--font-script);
    font-size: var(--size-script);
    color: var(--color-script);
}

.admin-wrap {
    max-width: 1000px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px var(--shadow);
}

.admin-nav {
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.admin-nav a {
    padding: 8px 16px;
    background: var(--bg-alt);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text);
}

fieldset.settings-block {
    border: 1px solid var(--border);
    border-radius: 12px;
    margin: 28px 0;
    padding: 8px 18px 18px;
}

fieldset.settings-block legend {
    font-family: var(--font-heading);
    color: var(--color-heading);
    padding: 0 8px;
    font-size: 1.25rem;
}

.hint {
    color: var(--text-soft);
    font-size: 0.92rem;
    margin: 8px 0 14px;
}

.social-row,
.style-grid {
    display: grid;
    gap: 10px;
    margin-bottom: 10px;
}

.social-row {
    grid-template-columns: minmax(120px, 1fr) minmax(180px, 2fr) auto;
    align-items: center;
}

.style-grid {
    grid-template-columns: minmax(160px, 2fr) minmax(90px, 0.7fr) minmax(90px, 0.8fr);
    align-items: end;
}

.style-role {
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.style-role h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.color-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

form label {
    display: block;
    margin: 15px 0 5px;
    font-weight: 500;
}

.style-grid label,
.social-row label {
    margin: 0;
}

form input[type="text"],
form input[type="url"],
form input[type="password"],
form input[type="number"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    color: var(--text);
}

form input[type="color"] {
    width: 100%;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
}

form textarea {
    min-height: 120px;
}

form button,
.btn {
    background: var(--accent-dark);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
}

form button:hover,
.btn:hover {
    filter: brightness(0.95);
}

button.btn-quiet {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
    margin-top: 0;
    padding: 10px 14px;
    white-space: nowrap;
}

.alert {
    padding: 12px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 15px;
}

.alert-error {
    padding: 12px;
    background: #fdecea;
    color: #8a2b22;
    border-radius: 6px;
    margin-bottom: 15px;
}

.bg-upload img {
    display: block;
    width: 280px;
    max-width: 100%;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 6px;
}

.bg-remove {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 8px;
    font-weight: 400;
    font-size: 0.92rem;
}

.opacity-field {
    margin-top: 8px;
    font-weight: 400;
}

.opacity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.opacity-row input[type="range"] {
    flex: 1;
    max-width: 280px;
    margin: 0;
}

.opacity-row output {
    min-width: 3.2em;
    font-variant-numeric: tabular-nums;
}

.note-page main {
    min-height: 100vh;
    padding: 0;
}

.note-wall {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px 48px;
}

.wall-note {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto;
    padding: 58px 28px 32px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 70px),
        #fffaf3;
    color: var(--sketch);
    border-radius: 2px 3px 4px 3px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 18px 36px rgba(61, 52, 44, 0.16),
        0 2px 6px rgba(61, 52, 44, 0.08);
    transform: rotate(-1.3deg);
}

.note-tape {
    position: absolute;
    top: -16px;
    left: 50%;
    width: 104px;
    height: 30px;
    transform: translateX(-50%) rotate(2deg);
    background: rgba(214, 186, 146, 0.55);
    border-left: 1px solid rgba(255, 255, 255, 0.45);
    border-right: 1px solid rgba(141, 107, 82, 0.15);
    box-shadow: 0 8px 12px rgba(61, 52, 44, 0.08);
}

.note-logo {
    display: block;
    margin: 0 auto 4px;
}

.note-logo.mark {
    width: 220px;
    height: 100px;
    object-fit: cover;
    object-position: center;
    mix-blend-mode: multiply;
}

.note-logo.contain {
    width: auto;
    max-width: 78%;
    max-height: 120px;
    height: auto;
    object-fit: contain;
}

.note-mark {
    text-align: center;
    font-size: 3.4rem;
    line-height: 1;
    margin: 0 0 6px;
}

.wall-note h1,
.note-lead,
.note-links a,
.note-empty,
.note-sign,
.note-back {
    font-family: var(--font-script);
    font-weight: 400;
}

.wall-note h1 {
    margin: 0;
    text-align: center;
    font-size: clamp(2.6rem, 10vw, 3.4rem);
    line-height: 0.95;
    color: var(--sketch);
}

.note-lead,
.note-empty {
    margin: 6px 0 18px;
    text-align: center;
    font-size: clamp(1.35rem, 5vw, 1.7rem);
    color: var(--color-script);
}

.note-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.note-links li {
    border-top: 1px dashed rgba(141, 107, 82, 0.35);
}

.note-links li:last-child {
    border-bottom: 1px dashed rgba(141, 107, 82, 0.35);
}

.note-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 64px;
    padding: 8px 8px;
    color: var(--sketch);
    text-decoration: none;
    font-size: clamp(1.8rem, 7vw, 2.3rem);
    line-height: 1;
}

.note-links a:hover,
.note-links a:focus-visible {
    color: var(--color-title);
}

.note-sign {
    margin: 22px 0 0;
    text-align: right;
    font-size: clamp(1.4rem, 5vw, 1.7rem);
    color: var(--color-script);
}

.note-back {
    display: inline-block;
    margin-top: 18px;
    color: var(--color-script);
    text-decoration: none;
    font-size: 1.35rem;
}

.note-back:hover,
.note-back:focus-visible {
    color: var(--color-title);
}

/* En directo: ventajas de suscripción como billetes de tren plegables.
   Cada <details> se abre y se cierra por su cuenta. */
.tickets {
    max-width: 760px;
    margin: 0 auto 40px;
}

.tickets-title {
    font-family: var(--font-heading);
    font-size: var(--size-heading);
    color: var(--color-heading);
    text-align: center;
    margin: 0 0 4px;
}

.tickets-hint {
    text-align: center;
    font-family: var(--font-soft);
    font-size: var(--size-soft);
    color: var(--color-soft);
    margin: 0 0 18px;
}

.ticket {
    --wood: #dcc4a6;
    position: relative;
    margin: 0 0 14px;
    background: #fdfbf7;
    border: 1px solid var(--border);
    border-left: 6px solid var(--wood);
    border-radius: 12px;
    box-shadow: 0 3px 14px var(--shadow);
    overflow: hidden;
}

.ticket-2 { --wood: #c9a27c; }
.ticket-3 { --wood: #a8805f; }

/* Muescas de billete a los lados de la cabecera */
.ticket::before,
.ticket::after {
    content: "";
    position: absolute;
    top: 21px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    pointer-events: none;
}

.ticket::before { left: -10px; }
.ticket::after { right: -8px; }

.ticket summary {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 10px;
    padding: 16px 52px 16px 22px;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

.ticket summary::-webkit-details-marker {
    display: none;
}

.ticket summary:hover {
    background: rgba(220, 196, 166, 0.14);
}

.ticket summary:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: -3px;
}

.ticket-name {
    font-family: var(--font-card);
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--color-card);
}

.ticket-level {
    font-family: var(--font-soft);
    font-size: var(--size-soft);
    color: var(--color-soft);
}

.ticket-chevron {
    position: absolute;
    right: 22px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent-dark);
    border-bottom: 2px solid var(--accent-dark);
    transform: translateY(-70%) rotate(45deg);
    transition: transform 0.25s ease;
}

.ticket[open] .ticket-chevron {
    transform: translateY(-30%) rotate(-135deg);
}

/* Línea perforada entre la cabecera y el contenido */
.ticket-body {
    border-top: 2px dashed var(--border);
    padding: 16px 22px 18px;
    animation: ticket-open 0.25s ease;
}

.ticket-intro {
    margin: 0 0 10px;
    font-style: italic;
    color: var(--text-soft);
}

.ticket-list {
    margin: 0;
    padding-left: 1.2em;
}

.ticket-list li {
    margin: 0 0 8px;
    line-height: 1.55;
}

.ticket-list li::marker {
    color: var(--wood);
}

.ticket-list strong {
    color: var(--color-card);
    font-weight: 600;
}

@keyframes ticket-open {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 600px) {
    .ticket summary {
        padding: 14px 44px 14px 16px;
    }

    .ticket-name {
        font-size: 1.02rem;
        letter-spacing: 0.03em;
    }

    .ticket-chevron {
        right: 18px;
    }

    .ticket-body {
        padding: 14px 16px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ticket-body { animation: none; }
}

/* Página de la habitación (inicio): pantalla completa sin scroll.
   El encabezado y el pie siempre visibles; la imagen ocupa todo el ancho
   y el alto restante. */
body.room-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.room-page main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 0;
    overflow: hidden;
}

.room-stage {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background-color: #efe4d6;
}

/* Relleno difuminado de la propia foto para cuando sobra alto (móvil en vertical) */
.room-stage::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: url('/habitacion.jpg') center center / cover no-repeat;
    filter: blur(22px) brightness(0.92);
    pointer-events: none;
}

/* Marco con la proporción exacta de la foto (1376x768): siempre a todo el ancho
   y centrado en vertical. Si es más alto que el hueco disponible se recorta
   arriba y abajo (como object-fit: cover); si es más bajo, queda centrado.
   Las zonas van en % dentro del marco, así que siempre coinciden con la foto. */
.room-frame {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    aspect-ratio: 1376 / 768;
    transform: translateY(-50%);
    z-index: 1;
}

.room-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
}

.zone {
    position: absolute;
    left: calc(var(--l) * 1%);
    top: calc(var(--t) * 1%);
    width: calc(var(--w) * 1%);
    height: calc(var(--h) * 1%);
    border-radius: var(--r, 12px);
    color: inherit;
}

.zone .lit,
.zone .glow {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.zone .lit {
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

.zone .lit img {
    position: absolute;
    max-width: none;
    width: calc(100% * 100 / var(--w));
    height: calc(100% * 100 / var(--h));
    left: calc(var(--l) / var(--w) * -100%);
    top: calc(var(--t) / var(--h) * -100%);
    filter: brightness(1.38) saturate(1.18);
}

.zone .glow {
    inset: -10%;
    border-radius: inherit;
    background: radial-gradient(ellipse at center, rgba(255, 236, 196, 0.55), rgba(255, 196, 120, 0.18) 42%, transparent 70%);
    mix-blend-mode: screen;
}

.zone:hover .lit,
.zone:hover .glow,
.zone:focus-visible .lit,
.zone:focus-visible .glow,
.zone.is-on .lit,
.zone.is-on .glow {
    opacity: 1;
}

.zone:focus-visible {
    outline: 2px solid rgba(168, 112, 72, 0.85);
    outline-offset: 2px;
}

.room-caption {
    position: absolute;
    z-index: 6;
    width: min(320px, calc(100% - 24px));
    padding: 14px 16px 16px;
    background: rgba(250, 246, 241, 0.94);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 28px var(--shadow);
    pointer-events: none;
    line-height: 1.45;
}

.room-caption-title {
    margin: 0 0 6px;
    font-family: var(--font-card);
    font-size: var(--size-card);
    color: var(--color-card);
    line-height: 1.2;
}

.room-caption-text {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--size-body);
    color: var(--color-body);
}

.room-caption-text .word {
    opacity: 0;
    animation: room-word 0.35s ease forwards;
}

@keyframes room-word {
    from { opacity: 0; }
    to { opacity: 1; }
}

body.room-mode {
    background-color: #efe4d6;
    background-image: url('/habitacion.jpg');
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.room-mode.has-page-bg::before {
    display: none;
}

/* Secciones abiertas desde la habitación: encabezado y pie fijos en pantalla,
   la sección centrada en el hueco entre ambos y con scroll propio si es larga.
   (Mis redes queda fuera: es .note-page y sigue a página completa.) */
body.room-mode:not(.note-page) {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.room-mode:not(.note-page) main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 20px 16px;
}

body.room-mode:not(.note-page) main .container {
    width: 100%;
    max-width: 1100px;
    margin: auto;
    background: rgba(250, 246, 241, 0.9);
    border-radius: 16px;
    padding: 28px 22px 36px;
}

/* Clic en la foto de fondo (fuera del recuadro) vuelve a la habitación */
body.room-mode:not(.note-page) main {
    cursor: pointer;
}

body.room-mode:not(.note-page) main .container {
    cursor: auto;
}

/* El calendario se ajusta al alto disponible para que el recuadro quepa
   entre encabezado y pie sin scroll (en pantallas muy bajas, scroll interno). */
body.room-mode .calendly-frame {
    height: 62vh;
    height: clamp(320px, calc(100dvh - 350px), 700px);
    min-height: 0;
}

@media (prefers-reduced-motion: reduce) {
    .room-caption-text .word {
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 800px) {
    body.room-mode {
        background-attachment: scroll;
    }

    body.room-mode .calendly-frame {
        height: clamp(300px, calc(100dvh - 430px), 700px);
    }

    .room-caption {
        left: 12px !important;
        right: 12px;
        top: auto !important;
        bottom: 12px;
        width: auto;
    }
}

@media (max-width: 800px) {
    .site-header {
        padding: 8px 0 4px;
    }

    .site-header .container {
        gap: 2px 12px;
    }

    .logo img {
        max-height: 34px;
    }

    .logo-text.handwritten {
        font-size: calc(var(--size-script) * 1.4);
    }

    /* Menú en una sola línea deslizable para que el encabezado no crezca */
    .main-nav {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        gap: 0 16px;
        padding-bottom: 2px;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .site-footer {
        padding: 6px 0;
        font-size: calc(var(--size-soft) * 0.92);
    }

    body.has-page-bg::before {
        position: absolute;
    }

    main {
        padding: 28px 0 56px;
    }

    .hero {
        margin-bottom: 36px;
    }

    .card {
        padding: 20px 18px 20px 22px;
    }

    .card:hover {
        transform: none;
    }

    .admin-wrap {
        margin: 16px 12px;
        padding: 18px 14px;
    }

    .social-row,
    .style-grid {
        grid-template-columns: 1fr;
    }

    .calendly-frame {
        height: 78vh;
        min-height: 460px;
    }

    .note-wall {
        align-items: flex-start;
        padding: 28px 14px 40px;
    }

    .wall-note {
        transform: rotate(-0.4deg);
        padding: 52px 18px 26px;
    }

    .gallery-item img,
    .gallery-item video {
        height: 180px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 14px;
    }

    .main-nav {
        gap: 4px 12px;
    }
}

.zone:not([href]) { cursor: default; }
