/*
Theme Name: Golf Houses
Theme URI: https://golf-houses.com
Author: Golf Houses
Description: Tema propio codificado a medida para Golf Houses (obra nueva, Ciudad Quesada, Costa Blanca). Sin maquetador visual.
Version: 1.0.0
Requires PHP: 7.4
License: Propietario
Text Domain: golf-houses
*/

/* ==========================================================================
   0. Fuentes autoalojadas
   ========================================================================== */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/fraunces-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/inter-variable.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ==========================================================================
   1. Variables de marca
   ========================================================================== */
:root {
  --gh-bg: #F3EEE4;
  --gh-bg-alt: #EAE3D4;
  --gh-accent: #1E3A2F;
  --gh-accent-dark: #142822;
  --gh-text: #2A2A26;
  --gh-muted: #8C8577;
  --gh-white: #FFFFFF;
  --gh-border: #DCD4C2;

  --gh-font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --gh-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --gh-space-xs: 0.5rem;
  --gh-space-sm: 1rem;
  --gh-space-md: 1.75rem;
  --gh-space-lg: 3rem;
  --gh-space-xl: 5rem;
  --gh-space-2xl: 8rem;

  --gh-container: 1200px;
  --gh-radius: 2px;
}

/* ==========================================================================
   2. Reset base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gh-bg);
  color: var(--gh-text);
  font-family: var(--gh-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, picture, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--gh-accent);
  outline-offset: 3px;
}

/* ==========================================================================
   3. Tipografía
   ========================================================================== */
h1, h2, h3, h4, .gh-serif {
  font-family: var(--gh-font-serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--gh-text);
}
h1, .gh-h1 { font-size: clamp(2.25rem, 5vw + 1rem, 4rem); font-weight: 500; }
h2, .gh-h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.75rem); }
h3, .gh-h3 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem); }
p { max-width: 65ch; }
.gh-eyebrow {
  font-family: var(--gh-font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gh-accent);
  font-weight: 600;
}
.gh-lead { font-size: 1.15rem; color: var(--gh-muted); }

/* ==========================================================================
   4. Layout utilitario
   ========================================================================== */
.gh-container {
  width: 100%;
  max-width: var(--gh-container);
  margin-inline: auto;
  padding-inline: var(--gh-space-sm);
}
@media (min-width: 768px) {
  .gh-container { padding-inline: var(--gh-space-lg); }
}
.gh-section { padding-block: var(--gh-space-xl); }
.gh-section--alt { background: var(--gh-bg-alt); }
.gh-section--dark { background: var(--gh-accent); color: var(--gh-white); }
.gh-section--dark h1, .gh-section--dark h2, .gh-section--dark h3 { color: var(--gh-white); }

.gh-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.gh-skip-link {
  position: absolute; left: 0; top: -60px; background: var(--gh-accent); color: var(--gh-white);
  padding: 0.75rem 1.25rem; z-index: 1000; transition: top .2s ease;
}
.gh-skip-link:focus { top: 0; }

/* ==========================================================================
   5. Botones
   ========================================================================== */
.gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--gh-radius);
  border: 1px solid transparent;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.gh-btn--primary { background: var(--gh-accent); color: var(--gh-white); }
.gh-btn--primary:hover { background: var(--gh-accent-dark); }
.gh-btn--secondary { background: transparent; color: var(--gh-text); border-color: var(--gh-text); }
.gh-btn--secondary:hover { background: var(--gh-text); color: var(--gh-white); }
.gh-section--dark .gh-btn--secondary { color: var(--gh-white); border-color: var(--gh-white); }
.gh-section--dark .gh-btn--secondary:hover { background: var(--gh-white); color: var(--gh-accent); }

/* ==========================================================================
   6. Header / navegación
   ========================================================================== */
.gh-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--gh-border);
}
.gh-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--gh-space-sm);
}
.gh-logo { display: flex; flex-direction: column; line-height: 1; }
.gh-logo img { height: 34px; width: auto; display: block; }
.gh-nav { display: none; }
@media (min-width: 1000px) {
  .gh-nav { display: flex; gap: var(--gh-space-md); align-items: center; }
  .gh-nav a { font-size: 0.95rem; font-weight: 500; }
  .gh-nav a:hover { color: var(--gh-accent); }
}
.gh-header__actions { display: flex; align-items: center; gap: var(--gh-space-sm); }

.gh-lang-switcher { position: relative; }
.gh-lang-switcher__current {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 600; border: 1px solid var(--gh-border);
  padding: 0.45rem 0.8rem; border-radius: var(--gh-radius); background: var(--gh-white);
}
.gh-lang-switcher__menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--gh-white); border: 1px solid var(--gh-border);
  min-width: 160px; display: none; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.gh-lang-switcher.is-open .gh-lang-switcher__menu { display: block; }
.gh-lang-switcher__menu a { display: block; padding: 0.6rem 0.9rem; font-size: 0.9rem; }
.gh-lang-switcher__menu a:hover { background: var(--gh-bg); }

.gh-menu-toggle {
  display: inline-block; position: relative;
  background: none; border: none; width: 40px; height: 40px; padding: 0;
}
@media (min-width: 1000px) { .gh-menu-toggle { display: none; } }
.gh-menu-toggle span {
  display: block; position: absolute; left: 8px; width: 24px; height: 2px;
  background: var(--gh-text); transition: transform .2s ease, opacity .2s ease;
}
.gh-menu-toggle span:nth-child(1) { top: 14px; }
.gh-menu-toggle span:nth-child(2) { top: 19px; }
.gh-menu-toggle span:nth-child(3) { top: 24px; }

.gh-mobile-nav {
  position: fixed; inset: 0; background: var(--gh-bg); z-index: 200;
  transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; padding: var(--gh-space-lg) var(--gh-space-sm);
}
.gh-mobile-nav.is-open { transform: translateX(0); }
.gh-mobile-nav__close { align-self: flex-end; background: none; border: none; font-size: 1.75rem; }
.gh-mobile-nav a { display: block; font-family: var(--gh-font-serif); font-size: 1.75rem; padding: 0.6rem 0; }

/* ==========================================================================
   7. Footer
   ========================================================================== */
.gh-footer {
  background: var(--gh-accent);
  color: var(--gh-white);
  padding-block: var(--gh-space-xl) var(--gh-space-lg);
}
.gh-footer a { color: var(--gh-white); }
.gh-footer__grid {
  display: grid;
  gap: var(--gh-space-lg);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .gh-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.gh-footer__logo img { height: 38px; width: auto; }
.gh-footer__tagline { color: #C9D3CC; margin-top: var(--gh-space-xs); font-size: 0.9rem; }
.gh-footer h3 {
  font-family: var(--gh-font-sans); font-size: 0.85rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #C9D3CC; margin-bottom: var(--gh-space-sm);
}
.gh-footer__grid nav a, .gh-footer__grid ul li { display: block; margin-bottom: 0.6rem; font-size: 0.95rem; }
.gh-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--gh-space-lg);
  padding-top: var(--gh-space-md); font-size: 0.8rem; color: #C9D3CC;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
}

/* ==========================================================================
   8. Botón flotante de WhatsApp
   ========================================================================== */
.gh-whatsapp {
  position: fixed;
  right: 1.1rem;
  /* Sube por encima del banner de cookies mientras esté visible — si no,
     el banner (z-index más alto, ancho completo) lo tapa por completo. */
  bottom: calc(1.1rem + var(--gh-banner-h, 0px));
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gh-accent);
  color: var(--gh-white);
  padding: 0.85rem 1.1rem;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(30, 58, 47, 0.35);
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform .18s ease, background-color .18s ease, bottom .3s ease;
}
.gh-whatsapp:hover { background: var(--gh-accent-dark); transform: translateY(-2px); }
.gh-whatsapp svg { width: 20px; height: 20px; flex-shrink: 0; }
.gh-whatsapp__label { display: none; }
@media (min-width: 560px) { .gh-whatsapp__label { display: inline; } }
@media (max-width: 480px) {
  .gh-whatsapp { right: 0.75rem; bottom: calc(0.75rem + var(--gh-banner-h, 0px)); padding: 0.75rem; }
}

/* ==========================================================================
   9. Banner de cookies
   ========================================================================== */
.gh-cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
  background: var(--gh-white); border-top: 1px solid var(--gh-border);
  padding: var(--gh-space-sm); box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  transform: translateY(100%); transition: transform .3s ease, visibility 0s linear .3s;
  visibility: hidden;
}
/* visibility:visible aplica al instante al mostrar, pero se retrasa .3s al
   ocultar (hasta que termine la transición de transform) — sin esto, el
   banner "oculto" seguía siendo alcanzable por teclado/lector de pantalla
   (solo se desplazaba fuera de la pantalla, no desaparecía de verdad).
   Encontrado en la auditoría de accesibilidad del 22/07/2026. */
.gh-cookie-banner.is-visible { transform: translateY(0); visibility: visible; transition: transform .3s ease; }
.gh-cookie-banner__inner {
  max-width: var(--gh-container); margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: var(--gh-space-sm); align-items: center; justify-content: space-between;
}
.gh-cookie-banner p { font-size: 0.9rem; margin: 0; flex: 1 1 320px; }
.gh-cookie-banner__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gh-cookie-banner__actions .gh-btn { padding: 0.6rem 1.1rem; font-size: 0.85rem; }

.gh-cookie-modal {
  position: fixed; inset: 0; z-index: 401; background: rgba(20,40,34,0.55);
  display: none; align-items: center; justify-content: center; padding: var(--gh-space-sm);
}
.gh-cookie-modal.is-open { display: flex; }
.gh-cookie-modal__panel {
  background: var(--gh-white); max-width: 540px; width: 100%; padding: var(--gh-space-lg);
  max-height: 85vh; overflow-y: auto;
}
.gh-cookie-modal__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--gh-space-sm) 0; border-bottom: 1px solid var(--gh-border);
}

/* ==========================================================================
   10. Aviso legal reutilizable (renders / precios — RD 515/1989)
   ========================================================================== */
.gh-legal-note {
  font-size: 0.78rem;
  color: var(--gh-muted);
  border-top: 1px solid var(--gh-border);
  padding-top: var(--gh-space-xs);
  margin-top: var(--gh-space-sm);
  max-width: none;
}

/* ==========================================================================
   11. Placeholder de portada (Fase 1 — se sustituye en Fase 2)
   ========================================================================== */
.gh-coming-soon {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: var(--gh-space-sm);
}

/* ==========================================================================
   12. Hero de portada
   ========================================================================== */
.gh-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--gh-white);
  background-color: var(--gh-accent);
  background-size: cover;
  background-position: center;
}
.gh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,40,34,0.25) 0%, rgba(20,40,34,0.55) 45%, rgba(20,40,34,0.88) 100%);
}
.gh-hero__inner { position: relative; z-index: 1; padding-block: var(--gh-space-xl); width: 100%; }
.gh-hero h1, .gh-hero .gh-eyebrow, .gh-hero .gh-lead {
  color: var(--gh-white);
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.gh-hero .gh-lead { color: #F1EEE6; }
.gh-hero .gh-legal-note {
  color: rgba(255,255,255,0.85);
  border-top-color: rgba(255,255,255,0.3);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
}
.gh-hero .gh-btn--secondary { color: var(--gh-white); border-color: rgba(255,255,255,0.75); }
.gh-hero .gh-btn--secondary:hover { background: var(--gh-white); color: var(--gh-accent); }

.gh-hero__badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem; margin-bottom: 0.75rem; }
.gh-hero__scarcity {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gh-white); background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.5);
  padding: 0.3rem 0.8rem; backdrop-filter: blur(2px);
}
.gh-hero__price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1.5rem; margin-top: 0.5rem; }
.gh-hero__price {
  font-family: var(--gh-font-serif); font-size: clamp(1.5rem, 2.5vw + 1rem, 2.25rem); font-weight: 500;
  color: var(--gh-white); text-shadow: 0 1px 12px rgba(0,0,0,0.35); margin: 0;
}
.gh-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.gh-hero__scroll { position: absolute; bottom: var(--gh-space-md); right: var(--gh-space-md); z-index: 1; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #E7E2D6; writing-mode: vertical-rl; }

/* ==========================================================================
   13. Galería con lightbox
   ========================================================================== */
.gh-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (min-width: 700px) { .gh-gallery-grid { grid-template-columns: repeat(4, 1fr); } }
.gh-gallery-grid button {
  border: none; background: none; padding: 0; cursor: pointer; display: block; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
}
.gh-gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gh-gallery-grid button:hover img { transform: scale(1.04); }
.gh-gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 0.4rem 0.6rem;
  font-size: 0.75rem; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.55), transparent);
  text-align: left;
}

.gh-lightbox {
  position: fixed; inset: 0; z-index: 500; background: rgba(20,40,34,0.92);
  display: none; align-items: center; justify-content: center; padding: var(--gh-space-sm);
}
.gh-lightbox.is-open { display: flex; }
.gh-lightbox img { max-width: 100%; max-height: 80vh; display: block; margin-inline: auto; }
.gh-lightbox__caption { color: #fff; text-align: center; margin-top: 0.75rem; font-size: 0.9rem; }
.gh-lightbox__close, .gh-lightbox__prev, .gh-lightbox__next {
  position: absolute; background: none; border: none; color: #fff; font-size: 2rem; cursor: pointer; padding: 0.5rem 1rem;
}
.gh-lightbox__close { top: var(--gh-space-sm); right: var(--gh-space-sm); }
.gh-lightbox__prev { left: var(--gh-space-sm); top: 50%; transform: translateY(-50%); }
.gh-lightbox__next { right: var(--gh-space-sm); top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   14. Características (iconos)
   ========================================================================== */
.gh-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: var(--gh-space-lg);
}
@media (min-width: 700px) { .gh-features-grid { grid-template-columns: repeat(3, 1fr); } }
.gh-feature {
  display: flex; flex-direction: column; gap: 0.6rem; padding: var(--gh-space-md);
  border: 1px solid var(--gh-border); background: var(--gh-white);
}
.gh-feature svg { width: 30px; height: 30px; stroke: var(--gh-accent); fill: none; stroke-width: 1.4; }
.gh-feature strong { font-family: var(--gh-font-serif); font-size: 1.05rem; font-weight: 500; }
.gh-feature span { color: var(--gh-muted); font-size: 0.9rem; }

/* ==========================================================================
   15. Tabla de distancias (ubicación)
   ========================================================================== */
.gh-table { width: 100%; border-collapse: collapse; margin-top: var(--gh-space-md); }
.gh-table th, .gh-table td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--gh-border); }
.gh-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gh-muted); font-weight: 600; }
.gh-table-wrap { overflow-x: auto; }
.gh-map-embed { width: 100%; aspect-ratio: 16/9; border: 0; margin-top: var(--gh-space-md); }
.gh-map-embed iframe { width: 100%; height: 100%; border: 0; }
.gh-map-embed__placeholder {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  width: 100%; height: 100%;
  background: var(--gh-bg-alt); border: 1px solid var(--gh-border);
  padding: var(--gh-space-lg); justify-content: center;
}
.gh-map-embed__placeholder svg { width: 36px; height: 36px; stroke: var(--gh-accent); fill: none; stroke-width: 1.4; }
.gh-map-embed__placeholder p { margin: 0; color: var(--gh-muted); }

.gh-map-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
  width: 100%; aspect-ratio: 16/9; margin-top: var(--gh-space-md);
  background: var(--gh-bg-alt); border: 1px solid var(--gh-border);
  padding: var(--gh-space-lg); justify-content: center;
}
.gh-map-card svg { width: 36px; height: 36px; stroke: var(--gh-accent); fill: none; stroke-width: 1.4; }
.gh-map-card p { margin: 0; color: var(--gh-muted); }

/* ==========================================================================
   16. Estilo de vida
   ========================================================================== */
.gh-lifestyle-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-top: var(--gh-space-lg); }
@media (min-width: 800px) { .gh-lifestyle-grid { grid-template-columns: 1.3fr 1fr; } }
.gh-lifestyle-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.gh-lifestyle-grid .gh-lifestyle-stack { display: grid; gap: 1rem; }

/* ==========================================================================
   17. Precio y plan de pagos
   ========================================================================== */
.gh-price-box {
  background: var(--gh-white); border: 1px solid var(--gh-border); padding: var(--gh-space-lg);
  display: flex; flex-wrap: wrap; gap: var(--gh-space-lg); align-items: center; justify-content: space-between;
  margin-top: var(--gh-space-md);
}
.gh-price-box .gh-price { font-family: var(--gh-font-serif); font-size: 2.5rem; color: var(--gh-accent); }
.gh-price-fx { font-size: 0.85rem; color: var(--gh-muted); margin-top: 0.35rem; opacity: 0; height: 0; overflow: hidden; }
.gh-price-fx.is-visible { opacity: 1; height: auto; }
.gh-payment-steps { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 1.5rem; margin-top: var(--gh-space-lg); }
.gh-payment-step { border-left: 2px solid var(--gh-accent); padding-left: 1rem; }
.gh-payment-step strong { display: block; font-family: var(--gh-font-serif); font-size: 1.1rem; }

/* ==========================================================================
   18. Garantías
   ========================================================================== */
.gh-guarantees-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: var(--gh-space-lg); }
@media (min-width: 700px) { .gh-guarantees-grid { grid-template-columns: repeat(2,1fr); } }
.gh-guarantee {
  padding: var(--gh-space-md); background: var(--gh-white);
  border: 1px solid var(--gh-border); border-left: 3px solid var(--gh-accent);
}
.gh-guarantee svg { width: 26px; height: 26px; stroke: var(--gh-accent); fill: none; stroke-width: 1.4; margin-bottom: 0.75rem; }
.gh-guarantee strong { display: block; font-family: var(--gh-font-serif); font-size: 1.1rem; margin-bottom: 0.4rem; }

.gh-guides-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: var(--gh-space-lg); }
@media (min-width: 700px) { .gh-guides-grid { grid-template-columns: repeat(2,1fr); } }
.gh-guide-card {
  display: block; padding: var(--gh-space-md); background: var(--gh-white);
  border: 1px solid var(--gh-border); text-decoration: none; color: inherit;
}
.gh-guide-card strong { display: block; font-family: var(--gh-font-serif); font-size: 1.1rem; margin-bottom: 0.4rem; color: var(--gh-text); }
.gh-guide-card span { color: var(--gh-muted); font-size: 0.9rem; }
.gh-guide-card:hover strong { color: var(--gh-accent); }

/* ==========================================================================
   18b. Disponibilidad (2 unidades) + mensaje de escasez
   ========================================================================== */
.gh-availability { margin-top: var(--gh-space-lg); padding-top: var(--gh-space-lg); border-top: 1px solid var(--gh-border); }
.gh-availability__scarcity {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--gh-white); background: var(--gh-accent); padding: 0.35rem 0.9rem; margin-bottom: 1.25rem;
}
.gh-availability__grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.gh-availability__unit {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.5rem; background: var(--gh-white); border: 1px solid var(--gh-border);
}
.gh-availability__unit strong { font-family: var(--gh-font-serif); font-size: 1.1rem; }
.gh-availability__unit span { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
@media (max-width: 480px) {
  /* En móvil, la disponibilidad se apila en una sola columna a todo el
     ancho — el botón flotante de WhatsApp (fijo, esquina inferior
     derecha) tapaba la última letra de "AVAILABLE"/"DISPONIBLE" en
     cualquier idioma cuando esa fila coincidía con esa esquina al hacer
     scroll. Encontrado en la auditoría del 22/07/2026. */
  .gh-availability__unit { padding-right: 3.5rem; }
}

/* ==========================================================================
   18c. Respiro visual — imagen a pantalla completa sin texto
   ========================================================================== */
.gh-breather { width: 100%; }
.gh-breather img { width: 100%; height: clamp(320px, 55vw, 640px); object-fit: cover; display: block; }

/* ==========================================================================
   19. FAQ (acordeón)
   ========================================================================== */
.gh-accordion { margin-top: var(--gh-space-lg); border-top: 1px solid var(--gh-border); }
.gh-faq-item { border-bottom: 1px solid var(--gh-border); border-left: 3px solid transparent; padding-left: 1rem; margin-left: -1rem; transition: border-left-color .2s ease; }
.gh-faq-item.is-open { border-left-color: var(--gh-accent); }
.gh-faq-item__q {
  width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font-family: var(--gh-font-serif); font-size: 1.1rem; cursor: pointer;
}
.gh-faq-item__q:hover { color: var(--gh-accent); }
.gh-faq-item__icon {
  font-size: 1rem; color: var(--gh-accent); flex-shrink: 0; transition: transform .2s ease;
  width: 28px; height: 28px; border: 1px solid var(--gh-accent); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.gh-faq-item.is-open .gh-faq-item__icon { transform: rotate(45deg); background: var(--gh-accent); color: var(--gh-white); }
.gh-faq-item__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.gh-faq-item.is-open .gh-faq-item__a { max-height: 600px; }
.gh-faq-item__a p { padding-bottom: 1.25rem; color: var(--gh-muted); }

/* ==========================================================================
   20. Formulario de contacto
   ========================================================================== */
.gh-form { display: grid; grid-template-columns: 1fr; gap: 1.25rem; margin-top: var(--gh-space-lg); max-width: 640px; }
@media (min-width: 700px) { .gh-form .gh-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; } }
.gh-form label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.gh-form input[type="text"], .gh-form input[type="email"], .gh-form input[type="tel"], .gh-form select, .gh-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--gh-border); background: var(--gh-white);
  font-family: var(--gh-font-sans); font-size: 0.95rem; color: var(--gh-text);
}
.gh-form textarea { min-height: 120px; resize: vertical; }
.gh-form input:focus, .gh-form select:focus, .gh-form textarea:focus { border-color: var(--gh-accent); }
.gh-form .gh-checkbox-row { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.85rem; }
.gh-form .gh-checkbox-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0;
  border: 1px solid var(--gh-border); background: var(--gh-white); margin-top: 0.1rem;
  cursor: pointer; position: relative; border-radius: 2px;
}
.gh-section--dark .gh-form .gh-checkbox-row input[type="checkbox"] { border-color: rgba(255,255,255,0.5); background: transparent; }
.gh-form .gh-checkbox-row input[type="checkbox"]:checked { background: var(--gh-accent); border-color: var(--gh-accent); }
.gh-form .gh-checkbox-row input[type="checkbox"]:checked::after {
  content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.gh-form .gh-checkbox-row input[type="checkbox"]:focus-visible { outline: 2px solid var(--gh-accent); outline-offset: 2px; }
.gh-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gh-form__status { padding: 1rem; border: 1px solid var(--gh-border); display: none; }
.gh-form__status.is-visible { display: block; }
.gh-form__status.is-error { border-color: #B0492B; color: #B0492B; }
.gh-form__status.is-success { border-color: var(--gh-accent); color: var(--gh-accent); }
.gh-field-error { color: #B0492B; font-size: 0.8rem; margin-top: 0.3rem; display: none; }
.gh-field-error.is-visible { display: block; }

/* ==========================================================================
   21. Contenido de página (páginas fijas y SEO)
   ========================================================================== */
.gh-page-content { max-width: 72ch; }
.gh-page-content h2 { margin-top: var(--gh-space-lg); margin-bottom: var(--gh-space-sm); }
.gh-page-content h3 { margin-top: var(--gh-space-md); margin-bottom: var(--gh-space-xs); }
.gh-page-content p { margin-bottom: var(--gh-space-sm); max-width: none; }
.gh-page-content ul, .gh-page-content ol { margin: var(--gh-space-sm) 0 var(--gh-space-sm) 1.25rem; list-style: disc; }
.gh-page-content ol { list-style: decimal; }
.gh-page-content li { margin-bottom: 0.5rem; }
.gh-page-content a { text-decoration: underline; text-underline-offset: 2px; }
.gh-page-content strong { font-weight: 600; }
.gh-page-content table { width: 100%; border-collapse: collapse; margin: var(--gh-space-sm) 0; }
.gh-page-content table th, .gh-page-content table td { border: 1px solid var(--gh-border); padding: 0.6rem 0.8rem; text-align: left; font-size: 0.9rem; }
.gh-page-content--wide { max-width: none; }

/* ==========================================================================
   22. Avance de obra (About Us)
   ========================================================================== */
.gh-progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; margin-top: var(--gh-space-lg); }
.gh-progress-item { background: var(--gh-white); border: 1px solid var(--gh-border); }
.gh-progress-item img { width: 100%; height: 180px; object-fit: cover; display: block; }
.gh-progress-item__body { padding: 1rem 1.25rem; }
.gh-progress-item__date { display: block; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gh-muted); margin-bottom: 0.3rem; }
