/* ===== Hostal Monte Verde — estilos compartidos ===== */
:root {
  /* Marca */
  --night: oklch(0.24 0.05 245);
  --night-fg: oklch(0.97 0.01 120);
  --leaf: oklch(0.78 0.18 128);
  --primary: oklch(0.72 0.17 128);
  --primary-fg: oklch(0.2 0.05 245);
  --accent: oklch(0.55 0.14 140);
  --whatsapp: oklch(0.72 0.17 150);
  --bg: oklch(0.985 0.008 120);
  --text: oklch(0.24 0.05 245);
  --card: #ffffff;
  --secondary: oklch(0.94 0.03 125);
  --muted: oklch(0.48 0.03 240);
  --border: oklch(0.9 0.02 120);
  --input: oklch(0.88 0.02 120);
  --danger: oklch(0.577 0.245 27.325);
  --overlay: linear-gradient(180deg, oklch(0.24 0.05 245 / .55), oklch(0.24 0.05 245 / .25) 40%, oklch(0.24 0.05 245 / .85));
  /* Tipografía */
  --font-display: "Zilla Slab", Georgia, serif;
  --font-sans: "Karla", system-ui, sans-serif;
  --font-script: "Kaushan Script", cursive;
  /* Espaciado / forma */
  --space-1: .5rem; --space-2: 1rem; --space-3: 1.5rem; --space-4: 2.5rem; --space-5: clamp(3rem, 8vw, 5rem);
  --container: 80rem;
  --radius: .75rem; --radius-lg: 1.25rem;
  --shadow: 0 20px 50px -20px oklch(0.24 0.05 245 / .35);
  --header-h: 4.5rem;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--bg); }
img, video { display: block; max-width: 100%; height: auto; }
input, select, textarea, button { font: inherit; }
a { color: inherit; text-decoration: none; }
ul { padding: 0; list-style: none; }

/* Tipografía */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.6rem); }
.script { font-family: var(--font-script); color: var(--leaf); font-size: clamp(1.5rem, 3vw, 1.9rem); }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); }

/* Layout util */
.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-5); }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 700; border: 0; cursor: pointer; transition: transform .2s, filter .2s, background .2s; }
.btn-leaf { background: var(--primary); color: var(--primary-fg); }
.btn-leaf:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid var(--night-fg); color: var(--night-fg); background: transparent; }
.btn-ghost:hover { background: oklch(1 0 0 / .12); }
.link-accent { color: var(--accent); font-weight: 700; }

/* Formularios */
.form { display: grid; gap: 1rem; padding: var(--space-3); background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form label { display: block; font-size: .9rem; font-weight: 600; }
.field { display: block; width: 100%; min-height: 2.75rem; margin-top: .3rem; padding: .65rem .85rem; border: 1px solid var(--input); border-radius: calc(var(--radius) - 2px); background: var(--card); color: var(--text); font-size: .95rem; }
.field:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-error { color: var(--danger); font-size: .9rem; min-height: 0; }
.form-error:empty { display: none; }
@media (min-width: 640px) { .form .full { grid-column: 1 / -1; } }

/* Header / nav */
.site-header { position: fixed; inset: 0 0 auto; z-index: 40; background: oklch(0.24 0.05 245 / .95); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 6px 20px -8px oklch(0 0 0 / .4); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
.logo img { height: 3rem; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; background: none; border: 0; color: var(--night-fg); cursor: pointer; }
.nav-toggle svg { width: 1.6rem; height: 1.6rem; }
.nav { display: none; flex-direction: column; padding-bottom: 1rem; border-top: 1px solid oklch(1 0 0 / .1); }
.nav.open { display: flex; }
.nav a { display: flex; align-items: center; min-height: 2.75rem; font-weight: 600; color: var(--night-fg); }
.nav a:hover, .nav a.active { color: var(--leaf); }
.header-cta { display: none; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav { display: flex; flex-direction: row; gap: 2rem; padding: 0; border: 0; }
  .nav a { color: oklch(0.97 0.01 120 / .8); }
  .header-cta { display: inline-flex; padding-block: .5rem; }
  .header-wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
}
.header-wrap { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }

/* Hero de página interna */
.page-hero { position: relative; display: flex; align-items: flex-end; height: 55vh; min-height: 23rem; overflow: hidden; color: var(--night-fg); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.overlay { position: absolute; inset: 0; background: var(--overlay); }
.page-hero .container { position: relative; padding-bottom: 3.5rem; }
.page-hero p { margin-top: .75rem; max-width: 42rem; opacity: .85; }

/* Footer */
.site-footer { background: var(--night); color: var(--night-fg); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
.footer-grid img { height: 3.5rem; width: auto; }
.footer-grid h4 { color: var(--leaf); font-size: 1.25rem; margin-bottom: .75rem; }
.footer-grid a { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; opacity: .85; }
.footer-grid a:hover { color: var(--leaf); opacity: 1; }
.footer-grid svg { width: 1.1rem; height: 1.1rem; }
.footer-copy { border-top: 1px solid oklch(1 0 0 / .1); padding: 1.25rem; text-align: center; font-size: .85rem; opacity: .6; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

/* WhatsApp flotante */
.wa-btn { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 50; display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 50%; background: var(--whatsapp); color: var(--night-fg); box-shadow: var(--shadow); transition: transform .2s; }
.wa-btn:hover { transform: scale(1.1); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--whatsapp); opacity: .3; animation: ping 1.5s infinite; }
.wa-btn svg { position: relative; width: 1.9rem; height: 1.9rem; }
@keyframes ping { 75%, 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-btn::before { animation: none; } html { scroll-behavior: auto; } }
