/* Torol Calta — sitio web
   Concepto: fotos reales a sangre, mucho aire, tipografía itálica de cartel de sierra.
   Marrón = hostería, verde = apart (mismo código que en las redes). */

@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-latin-400-italic.woff") format("woff"); }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/playfair-display-latin-500-italic.woff") format("woff"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/playfair-display-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff") format("woff"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/montserrat-latin-600-normal.woff") format("woff"); }

:root {
  --bg: #f4f3f0;          /* piedra clara */
  --surface: #ffffff;
  --ink: #24211e;
  --muted: #6d665f;
  --line: #dcd7d0;
  --hosteria: #7a5236;    /* marrón del folleto */
  --apart: #4d6847;       /* verde sierra */
  --accent: var(--hosteria);
  --wa: #1f7a4d;
  --on-photo: #ffffff;
  --display: "Playfair Display", "Georgia", "Times New Roman", serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.5rem, 7vw, 4.75rem);
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171513; --surface: #211e1b; --ink: #ece7e1; --muted: #a9a097; --line: #37322d;
    --hosteria: #c99573; --apart: #95b58c; --wa: #3fb47a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171513; --surface: #211e1b; --ink: #ece7e1; --muted: #a9a097; --line: #37322d;
  --hosteria: #c99573; --apart: #95b58c; --wa: #3fb47a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--step-0); line-height: 1.65; }
body.apart { --accent: var(--apart); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: .5rem 1rem; z-index: 50; }

h1, h2, h3 { font-family: var(--display); font-style: italic; font-weight: 400; line-height: 1.12; text-wrap: balance; margin: 0; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { margin: 0; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: var(--step-1); line-height: 1.6; max-width: 38em; color: var(--muted); }
.prose { max-width: 40em; display: grid; gap: 1rem; }

/* Barra superior */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand img { height: 46px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none; } :root:not([data-theme="light"]) .logo-dark { display: block; } }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
.nav { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 1.75rem); font-size: .82rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; padding-block: .3rem; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--accent); }
.nav .h { --accent: var(--hosteria); }
.nav .a { --accent: var(--apart); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; font: 600 .85rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1.5px solid currentColor; cursor: pointer; background: none; color: inherit; }
.btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.nav .btn { padding: .6rem 1rem; font-size: .75rem; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .brand img { height: 38px; } }

/* Portada con foto */
.hero { position: relative; color: var(--on-photo); isolation: isolate; min-height: clamp(26rem, 72vh, 44rem); display: grid; align-items: end; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(20 16 12 / .15) 0%, rgb(20 16 12 / .2) 45%, rgb(20 16 12 / .78) 100%); }
.hero .wrap { width: 100%; padding-block: 3rem; display: grid; gap: 1rem; }
.hero h1 { font-size: var(--step-4); max-width: 13em; }
.hero p { font-size: var(--step-1); max-width: 32em; opacity: .92; }
.hero .eyebrow { color: #fff; opacity: .9; }
.hero .hero-logo { width: min(300px, 70vw); height: auto; margin-bottom: .5rem; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.hero .btn:not(.solid):not(.wa) { color: #fff; }
.hero .tag { justify-self: start; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 3px; }

section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: .75rem; margin-bottom: 2.25rem; }

/* Datos rápidos */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2rem; margin-top: 2.5rem; }
.fact { border-top: 2px solid var(--accent); padding-top: .9rem; display: grid; gap: .25rem; }
.fact strong { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
.fact span { color: var(--muted); font-size: .92rem; }

/* Las dos casas */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.5rem; }
.house { position: relative; display: grid; align-items: end; min-height: 30rem; color: #fff; text-decoration: none; overflow: hidden; border-radius: 4px; isolation: isolate; }
.house img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.house::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(20 16 12 / .82)); }
.house:hover img { transform: scale(1.04); }
.house .in { padding: 1.75rem; display: grid; gap: .6rem; }
.house .tag { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 3px; background: var(--hosteria); }
.house.ap .tag { background: var(--apart); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .house .tag { background: #7a5236; } :root:not([data-theme="light"]) .house.ap .tag { background: #4d6847; } }
:root[data-theme="dark"] .house .tag { background: #7a5236; }
:root[data-theme="dark"] .house.ap .tag { background: #4d6847; }
.house h3 { font-size: clamp(2rem, 4vw, 2.6rem); }
.house p { max-width: 28em; opacity: .92; }
.house .more { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0 2.5rem; list-style: none; padding: 0; margin: 0; }
.services li { padding-block: .85rem; border-bottom: 1px solid var(--line); display: flex; gap: .75rem; align-items: baseline; }
.services li::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: var(--accent); transform: translateY(-.1rem); }

/* Habitaciones / unidades */
.rooms { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
.room { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; }
.room:nth-child(even) .pics { order: 2; }
.room .pics { display: grid; gap: .5rem; min-width: 0; }
.room .pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; cursor: zoom-in; }
.room .main img { aspect-ratio: 4 / 3; }
.room .thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.room .thumbs img { aspect-ratio: 1; }
.room .count { font-size: .82rem; color: var(--muted); }
.gallery img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgb(12 10 8 / .94); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .5rem; padding: calc(16px + env(safe-area-inset-top, 0px)) max(8px, env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
.lightbox figure { margin: 0; display: grid; gap: .6rem; justify-items: center; min-width: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 3px; }
.lightbox figcaption { color: #ece7e1; font-size: .85rem; text-align: center; }
.lightbox button { background: none; border: 0; color: #fff; font: 300 2.6rem/1 var(--body); cursor: pointer; padding: .4rem .6rem; }
.lightbox .lb-close { position: absolute; top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); font-size: 2.2rem; }
.room .txt { display: grid; gap: .8rem; min-width: 0; }
.room .cap { font-size: .8rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 760px) { .room { grid-template-columns: 1fr; } .room:nth-child(even) .pics { order: 0; } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); grid-auto-rows: 14rem; grid-auto-flow: dense; gap: .6rem; }
.gallery figure { margin: 0; position: relative; overflow: hidden; border-radius: 3px; }
.gallery figure.tall { grid-row: span 2; }
.gallery figure.wide { grid-column: span 2; }
@media (max-width: 560px) { .gallery figure.wide { grid-column: auto; } }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem .8rem .6rem; font-size: .78rem; color: #fff; background: linear-gradient(transparent, rgb(20 16 12 / .7)); }

/* Tarifas */
.rates-wrap { overflow-x: auto; }
.rates { width: 100%; min-width: 34rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rates th, .rates td { padding: .9rem .75rem; text-align: right; border-bottom: 1px solid var(--line); }
.rates th:first-child, .rates td:first-child { text-align: left; }
.rates thead th { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); vertical-align: bottom; }
.rates thead th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; font-size: .78rem; }
.rates tbody td:first-child { font-weight: 500; }
.notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem 2rem; margin-top: 2rem; font-size: .92rem; color: var(--muted); }
.notes strong { color: var(--ink); display: block; font-weight: 600; }

/* Reserva */
.booking { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .booking { grid-template-columns: 1fr; } }
.booking .side { display: grid; gap: 1rem; }
.phone { font-family: var(--display); font-style: italic; font-size: 1.8rem; user-select: all; }
form.res { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: clamp(1.25rem, 3vw, 2rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
form.res .full { grid-column: 1 / -1; }
@media (max-width: 520px) { form.res { grid-template-columns: 1fr; } }
form.res label { display: grid; gap: .35rem; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
form.res input, form.res select, form.res textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .7rem .8rem; width: 100%; min-width: 0; text-transform: none; letter-spacing: 0; }
form.res textarea { min-height: 5.5rem; resize: vertical; }
.choice { display: flex; gap: .5rem; flex-wrap: wrap; }
form.res .choice label { flex: 1 1 8rem; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); cursor: pointer; text-transform: none; letter-spacing: 0; font-size: .95rem; font-weight: 500; color: var(--ink); }
.choice input { width: auto; accent-color: var(--accent); }
form.res .choice label:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.summary { grid-column: 1 / -1; font-size: .92rem; color: var(--muted); min-height: 1.5em; }
.summary.warn { color: var(--hosteria); font-weight: 500; }
.summary.err { color: #b3261e; font-weight: 500; }
form.res .btn.wa { grid-column: 1 / -1; padding-block: 1rem; font-size: .9rem; }
.fine { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }

/* Ubicación */
.place { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.place img { border-radius: 4px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .place { grid-template-columns: 1fr; } }
address { font-style: normal; font-size: var(--step-1); }

/* Pie */
footer { background: #24211e; color: #ece7e1; }
footer .wrap { padding-block: 3rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem; }
footer img { width: 190px; height: auto; }
footer h4 { margin: 0 0 .6rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: #a9a097; font-weight: 600; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .copy { grid-column: 1 / -1; font-size: .78rem; color: #a9a097; border-top: 1px solid #3a352f; padding-top: 1.25rem; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.wa-float svg { width: 28px; height: 28px; fill: currentColor; }
