/*
LAYOUT: foto de la fachada real en el hero, franja de servicios con la fila de bloques de vidrio del logo, habitaciones, cómo llegar, formulario que abre WhatsApp.
COLOR: los del logo y la tarjeta del hospedaje.
*/
:root {
  color-scheme: light;
  --navy: #1e3556;      /* texto de marca, tarjeta del hospedaje */
  --navy-2: #162842;
  --sky: #8ccfdc;       /* cornisa y bloques del logo */
  --sky-soft: #eaf5f8;
  --clay: #d4644a;      /* arco de la puerta y letrero */
  --paper: #ffffff;
  --ink: #1b2433;
  --muted: #5a6577;
  --line: #dfe6ec;
  --wa: #1f9d57;
  --display: "Lexend", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
}

* { box-sizing: border-box; min-width: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); color: var(--navy); margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.04; letter-spacing: -1px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -.5px; }
h3 { font-size: 21px; font-weight: 500; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; max-width: 58ch; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.band { padding-block: clamp(56px, 8vw, 104px); }
.band--soft { background: var(--sky-soft); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 10px; border: 1.5px solid transparent; font: 600 16px var(--body); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn--primary { background: var(--wa); color: #fff; }
.btn--primary:hover { background: #188049; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.btn--block { width: 100%; }
.btn:active { transform: translateY(1px); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.ico .fill, svg .fill { fill: currentColor; stroke: none; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); }
.header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; }
.brand__name { font-family: var(--display); font-weight: 600; color: var(--navy); font-size: 19px; line-height: 1.05; display: flex; flex-direction: column; }
.brand__name small { font-size: 11px; font-weight: 500; letter-spacing: 2.5px; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--navy); }

/* Hero */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 24px; }
.plate { display: inline-flex; align-self: flex-start; align-items: center; gap: 12px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--navy); color: #fff; font-family: var(--display); font-size: 14px; letter-spacing: .5px; }
.plate strong { background: var(--clay); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; }
.plate span:last-child { color: var(--sky); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.phone { color: var(--muted); font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.phone strong { color: var(--navy); font-family: var(--display); font-weight: 600; font-size: 19px; font-variant-numeric: tabular-nums; }
.copy { font: 500 14px var(--body); color: var(--navy); background: var(--sky-soft); border: 0; border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.copy:hover { background: #d6edf2; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 62%; border-radius: 22px 22px 120px 22px; box-shadow: 0 30px 60px -30px rgba(30, 53, 86, .45); }
.hero__photo::before { content: ""; position: absolute; inset: auto auto -18px -18px; width: 46%; height: 40%; background: var(--sky-soft); border-radius: 18px; z-index: -1; }

/* Servicios */
.perks { background: var(--navy); color: #fff; padding-top: 40px; }
.perks__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-bottom: 40px; }
.perk { display: flex; gap: 14px; align-items: flex-start; }
.perk svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--sky); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.perk svg .fill { fill: var(--sky); }
.perk strong { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; }
.perk span { color: #b9c6d8; font-size: 15px; }

/* fila de bloques de vidrio, como en el logo y la fachada */
.tiles { height: 14px; background: repeating-linear-gradient(90deg, var(--sky) 0 22px, transparent 22px 28px); opacity: .9; }

/* Habitaciones */
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.rooms { display: grid; gap: 22px; }
.rooms--photo { grid-template-columns: repeat(2, 1fr); margin-bottom: 22px; }
.rooms--small { grid-template-columns: repeat(3, 1fr); }
.room { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.room img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.room__body, .room--plain { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.room__body .btn, .room--plain .btn { margin-top: auto; }
.room p { color: var(--muted); }
.room__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cap { font-size: 14px; font-weight: 600; color: var(--clay); white-space: nowrap; }
.beds { display: flex; gap: 6px; height: 46px; align-items: flex-end; padding-bottom: 4px; }
.beds i { width: 26px; height: 40px; border: 2px solid var(--navy); border-radius: 5px 5px 3px 3px; position: relative; }
.beds i::before { content: ""; position: absolute; top: 4px; left: 4px; right: 4px; height: 8px; border-radius: 3px; background: var(--sky); }

/* Ubicación */
.where { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.where__photo { margin: 0; }
.where__photo img { border-radius: var(--radius); width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 45%; }
figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.where__copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; width: 100%; }
.facts div { border-top: 2px solid var(--sky); padding-top: 10px; }
.facts dt { font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-family: var(--display); color: var(--navy); font-size: 18px; font-weight: 500; }

/* Reservar */
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.booking__intro { display: flex; flex-direction: column; gap: 16px; }
.town { margin: 12px 0 0; }
.town img { border-radius: var(--radius); }
.form { display: flex; flex-direction: column; gap: 18px; padding: clamp(22px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 24px 48px -32px rgba(30, 53, 86, .35); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
label { font-size: 15px; font-weight: 600; color: var(--navy); }
.opt { font-weight: 400; color: var(--muted); }
input, select { font: 16px var(--body); color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 10px; min-height: 50px; padding: 0 14px; width: 100%; }
input:focus, select:focus { border-color: var(--navy); outline: none; }
.invalid { border-color: var(--clay) !important; background: #fdf3f0; }
.form__msg { color: var(--clay); font-size: 15px; min-height: 1em; }

/* Footer */
.footer { background: var(--navy); color: #c9d4e3; }
.footer__inner { padding-block: 40px 48px; display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; font-size: 15px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--display); font-weight: 600; font-size: 18px; margin-right: auto; }
.footer__brand img { width: 34px; background: #fff; border-radius: 8px; padding: 3px; }
.footer a { color: var(--sky); }
.copyright { width: 100%; color: #8fa0b8; font-size: 14px; }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; z-index: 15; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4); }
.wa-float svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }

/* Responsive */
@media (max-width: 920px) {
  .nav { display: none; }
  .hero__grid, .where, .booking { grid-template-columns: 1fr; }
  .hero__photo { max-width: 460px; }
  .perks__grid { grid-template-columns: repeat(2, 1fr); }
  .rooms--small { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .rooms--photo { grid-template-columns: 1fr; }
  .row, .facts { grid-template-columns: 1fr; }
  .perks__grid { grid-template-columns: 1fr; gap: 20px; }
  .hero__ctas .btn { width: 100%; }
  .header .btn--sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
