/* ═══════════════════════════════════════════════════════════════
   TUKU ECOHOTEL — Hoja de Estilos Global
   Versión: 2.0 · Sistema PHP Modular
   Fuentes: Cinzel (display) + Inter (cuerpo) · Google Fonts
   ═══════════════════════════════════════════════════════════════ */

/* ── 0. IMPORTS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');


/* ── 1. VARIABLES DE MARCA ───────────────────────────────────── */
:root {
  /* Paleta primaria (brandbook) */
  --red:        #CB343B;
  --red-dark:   #8C2228;
  --red-glass:  rgba(203, 52, 59, 0.12);

  --teal:       #62BFB7;
  --teal-light: #89CDCB;
  --teal-glass: rgba(98, 191, 183, 0.12);

  --gold:       #B5946B;
  --gold-light: #C4A35A;
  --gold-glass: rgba(181, 148, 107, 0.12);

  --green:      #6EB755;
  --orange:     #F59E38;
  --cream:      #FBEFDF;
  --cream-dim:  rgba(251, 239, 223, 0.65);
  --cream-dim2: rgba(251, 239, 223, 0.30);
  --cream-dim3: rgba(251, 239, 223, 0.10);

  /* Superficies oscuras */
  --black:      #0D0A08;
  --surface-1:  #16110D;
  --surface-2:  #1E1710;
  --surface-3:  #251B12;

  /* Bordes */
  --border:     rgba(251, 239, 223, 0.07);
  --border-mid: rgba(251, 239, 223, 0.14);

  /* Tipografía */
  --font-display: 'Cinzel', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Espaciado base */
  --section-py:     100px;
  --section-px:     6%;
  --section-py-sm:  64px;

  /* Radios */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;

  /* Transiciones */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration:   0.3s;
}


/* ── 2. RESET & BASE ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
}

/* Scroll suave para anclas internas */
[id] {
  scroll-margin-top: 80px;
}


/* ── 3. TIPOGRAFÍA ───────────────────────────────────────────── */

/* Display — Cinzel */
.t-display {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

/* Hero — el más grande */
.t-hero {
  font-family: var(--font-display);
  font-size: clamp(48px, 10vw, 104px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

/* Hero outline (INTELLIGENT style) */
.t-hero-outline {
  font-family: var(--font-display);
  font-size: clamp(12px, 2.4vw, 24px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5em;
  -webkit-text-stroke: 1.5px var(--cream);
  color: transparent;
  display: block;
}

/* Título de sección */
.t-section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.12;
  color: var(--cream);
}

/* Subtítulo */
.t-subtitle {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* Eyebrow / Label */
.t-label {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--cream-dim2);
  display: block;
}

/* Cuerpo de texto */
.t-body {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.8;
}

/* Precio grande */
.t-price {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 900;
  color: var(--teal);
  line-height: 1;
}

/* Precio desde */
.t-price-desde {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream-dim2);
}


/* ── 4. ESTRUCTURA DE SECCIONES ──────────────────────────────── */

.section {
  position: relative;
  padding: var(--section-py) var(--section-px);
  overflow: hidden;
}

/* Variantes de fondo */
.section--black      { background-color: var(--black); }
.section--surface-1  { background-color: var(--surface-1); }
.section--surface-2  { background-color: var(--surface-2); }
.section--red        { background-color: var(--red); }

/* Separador sutil entre secciones */
.section + .section {
  border-top: 1px solid var(--border);
}

/* Contenedor centrado */
.container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* Encabezado estándar de sección */
.section-header {
  margin-bottom: 56px;
}

.section-header--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: 56px;
}

.section-header .t-label {
  margin-bottom: 16px;
}

.section-header .t-section-title {
  margin-bottom: 20px;
}

.section-header .t-body {
  max-width: 520px;
}


/* ── 5. TRAMA (patrón de fondo de marca) ─────────────────────── */

/* Elemento fijo que cubre todo el sitio */
.trama-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: 0.042;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='88'%3E%3Ctext x='6' y='56' font-family='Georgia%2C serif' font-size='42' font-weight='900' fill='%23FBEFDF' letter-spacing='-1'%3ETUKU%3C/text%3E%3Ctext x='96' y='100' font-family='Georgia%2C serif' font-size='42' font-weight='900' fill='%23FBEFDF' letter-spacing='-1'%3ETUKU%3C/text%3E%3C/svg%3E");
  background-size: 180px 88px;
}

/* Trama más intensa para fondos rojos */
.trama-overlay--red {
  opacity: 0.08;
  mix-blend-mode: multiply;
}

/* Grano de film */
.grain-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}


/* ── 6. BOTONES ──────────────────────────────────────────────── */

/* Base compartida */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 15px 32px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--duration) var(--ease),
    border-color     var(--duration) var(--ease),
    color            var(--duration) var(--ease),
    transform        var(--duration) var(--ease),
    box-shadow       var(--duration) var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

/* Sólido rojo (primario) */
.btn--red {
  background-color: var(--red);
  color: var(--cream);
  border-color: var(--red);
}
.btn--red:hover {
  background-color: var(--red-dark);
  border-color: var(--red-dark);
  box-shadow: 0 8px 32px rgba(203, 52, 59, 0.35);
}

/* Sólido crema (sobre fondos oscuros) */
.btn--cream {
  background-color: var(--cream);
  color: var(--red);
  border-color: var(--cream);
}
.btn--cream:hover {
  background-color: var(--black);
  color: var(--cream);
  border-color: var(--black);
}

/* Sólido teal */
.btn--teal {
  background-color: var(--teal);
  color: var(--black);
  border-color: var(--teal);
}
.btn--teal:hover {
  background-color: var(--teal-light);
  border-color: var(--teal-light);
  box-shadow: 0 8px 32px rgba(98, 191, 183, 0.3);
}

/* Sólido gold */
.btn--gold {
  background-color: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn--gold:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

/* Sólido orange */
.btn--orange {
  background-color: var(--orange);
  color: var(--black);
  border-color: var(--orange);
}
.btn--orange:hover {
  background-color: #e08a24;
  border-color: #e08a24;
}

/* Ghost — outline crema */
.btn--ghost {
  background-color: transparent;
  color: var(--cream);
  border-color: rgba(251, 239, 223, 0.45);
}
.btn--ghost:hover {
  background-color: var(--cream-dim3);
  border-color: var(--cream);
}

/* Ghost — outline rojo */
.btn--ghost-red {
  background-color: transparent;
  color: var(--red);
  border-color: rgba(203, 52, 59, 0.45);
}
.btn--ghost-red:hover {
  background-color: var(--red-glass);
  border-color: var(--red);
}

/* Ghost — outline teal */
.btn--ghost-teal {
  background-color: transparent;
  color: var(--teal);
  border-color: rgba(98, 191, 183, 0.35);
}
.btn--ghost-teal:hover {
  background-color: var(--teal-glass);
  border-color: var(--teal);
}

/* Ghost — outline gold */
.btn--ghost-gold {
  background-color: transparent;
  color: var(--gold);
  border-color: rgba(181, 148, 107, 0.35);
}
.btn--ghost-gold:hover {
  background-color: var(--gold-glass);
  border-color: var(--gold);
}

/* Tamaños */
.btn--sm  { font-size: 9px;  padding: 10px 22px; letter-spacing: 0.2em; }
.btn--lg  { font-size: 12px; padding: 18px 44px; }
.btn--xl  { font-size: 13px; padding: 20px 56px; }
.btn--block { width: 100%; }

/* WhatsApp CTA especial */
.btn--whatsapp {
  background-color: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn--whatsapp:hover {
  background-color: #1ebe5a;
  border-color: #1ebe5a;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}


/* ── 7. CARDS ────────────────────────────────────────────────── */

/* Card base */
.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-color var(--duration) var(--ease),
    transform    var(--duration) var(--ease),
    box-shadow   var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--border-mid);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

/* Card con acento de color en borde superior */
.card--red    { border-top: 2px solid var(--red); }
.card--teal   { border-top: 2px solid var(--teal); }
.card--gold   { border-top: 2px solid var(--gold); }
.card--orange { border-top: 2px solid var(--orange); }

.card__img {
  position: relative;
  overflow: hidden;
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
  display: block;
}

.card:hover .card__img img {
  transform: scale(1.06);
}

.card__body {
  padding: 24px 26px 28px;
}

.card__num {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--cream-dim2);
  display: block;
  margin-bottom: 10px;
}

.card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 8px;
}

.card__text {
  font-size: 13px;
  color: var(--cream-dim2);
  line-height: 1.7;
}


/* ── 8. PLACEHOLDER DE IMAGEN ────────────────────────────────── */

/* Placeholder mientras no hay imagen cargada */
.img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border: 1px dashed rgba(181, 148, 107, 0.18);
  font-family: var(--font-body);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(181, 148, 107, 0.35);
  z-index: 0;
}

/* Imagen real encima del placeholder */
.img-wrapper {
  position: relative;
  overflow: hidden;
}

.img-wrapper img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.img-wrapper:hover img {
  transform: scale(1.05);
}


/* ── 9. REVEAL / ANIMACIONES DE SCROLL ───────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Cascada de hijos */
.reveal-group > * {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity  0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal-group.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-group.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-group.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-group.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-group.visible > *:nth-child(5) { transition-delay: 0.45s; }

.reveal-group.visible > * {
  opacity: 1;
  transform: none;
}


/* ── 10. LAYOUTS / GRIDS ─────────────────────────────────────── */

/* Dos columnas iguales */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

/* Dos columnas asimétricas */
.grid-2-3 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 64px;
}

.grid-3-2 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
}

/* Tres columnas */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Cuatro columnas */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Align helpers */
.align-center  { align-items: center; }
.align-end     { align-items: end; }

/* Galería masonry-like */
.gallery-main {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
}

.gallery-main__primary {
  grid-row: span 2;
}

/* Galería uniforme */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}


/* ── 11. ASPECT RATIOS ───────────────────────────────────────── */

.ratio-16-9  { aspect-ratio: 16 / 9; }
.ratio-4-3   { aspect-ratio: 4  / 3; }
.ratio-3-4   { aspect-ratio: 3  / 4; }
.ratio-1-1   { aspect-ratio: 1  / 1; }
.ratio-2-1   { aspect-ratio: 2  / 1; }
.ratio-card  { aspect-ratio: 85 / 54; } /* Tarjeta de crédito */


/* ── 12. DIVISORES / SEPARADORES ─────────────────────────────── */

.divider {
  width: 48px;
  height: 2px;
  background: var(--red);
  margin: 20px 0;
}

.divider--teal  { background: var(--teal); }
.divider--gold  { background: var(--gold); }
.divider--cream { background: rgba(251, 239, 223, 0.2); }
.divider--full  { width: 100%; }


/* ── 13. BADGES / TAGS ───────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: 20px;
  border: 1px solid currentColor;
}

.badge--red   { color: var(--red);  border-color: rgba(203, 52, 59,  0.35); background: var(--red-glass);  }
.badge--teal  { color: var(--teal); border-color: rgba(98,  191, 183, 0.35); background: var(--teal-glass); }
.badge--gold  { color: var(--gold); border-color: rgba(181, 148, 107, 0.35); background: var(--gold-glass); }
.badge--cream { color: var(--cream-dim); border-color: var(--border-mid); background: var(--cream-dim3); }


/* ── 14. LISTAS ESTILIZADAS ──────────────────────────────────── */

/* Lista con viñeta de color */
.list-branded {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.list-branded li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.7;
}

/* Dot viñeta */
.list-branded li::before {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  flex-shrink: 0;
  margin-top: 9px;
}

.list-branded--teal  li::before { background: var(--teal); }
.list-branded--gold  li::before { background: var(--gold); }

/* Lista numerada estilo Tuku */
.list-numbered {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: tuku-counter;
}

.list-numbered li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  counter-increment: tuku-counter;
  font-size: 14px;
  color: var(--cream-dim);
  line-height: 1.7;
}

.list-numbered li::before {
  content: "0" counter(tuku-counter);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  color: var(--red);
  opacity: 0.55;
  letter-spacing: 0.1em;
  min-width: 24px;
  padding-top: 3px;
  flex-shrink: 0;
}


/* ── 15. PRECIO ──────────────────────────────────────────────── */

.price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 24px 0 8px;
}

.price-block .t-price-desde {
  margin-bottom: 2px;
}

.price-note {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cream-dim2);
  margin-top: 4px;
}


/* ── 16. FORMS ───────────────────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream-dim2);
}

.form-input,
.form-select,
.form-textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--duration) var(--ease);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: rgba(203, 52, 59, 0.5);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--cream-dim2);
}

.form-select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(251,239,223,0.35)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}

.form-select option {
  background: var(--surface-2);
  color: var(--cream);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 11px;
  color: #ff7070;
  margin-top: 4px;
}


/* ── 17. HERO BASE (compartido por todas las páginas) ────────── */

.page-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay oscuro sobre la foto */
.page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(13, 10, 8, 0.45) 0%,
    rgba(13, 10, 8, 0.60) 60%,
    rgba(13, 10, 8, 0.88) 100%
  );
}

/* Hero rojo (sin foto — home y cierre) */
.page-hero--red {
  background-color: var(--red);
}

.page-hero--red .page-hero__overlay {
  background: linear-gradient(
    160deg,
    rgba(140, 34, 40, 0.5) 0%,
    transparent 60%
  );
}

.page-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--section-px);
  max-width: 900px;
  width: 100%;
}

.page-hero__logo {
  width: clamp(140px, 22vw, 200px);
  height: auto;
  margin: 0 auto 36px;
  filter: drop-shadow(0 8px 40px rgba(0, 0, 0, 0.45));
}

.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-indicator span {
  font-size: 8px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(251, 239, 223, 0.35);
}

.scroll-indicator__line {
  width: 1px;
  height: 40px;
  background: rgba(251, 239, 223, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-indicator__line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--cream);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 100%; }
}


/* ── 18. INCLUDES PARTIALS ───────────────────────────────────── */

/* Wrapper general de la página */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper main {
  flex: 1;
}

/* Z-index base para que el contenido quede sobre el trama-overlay */
main,
nav,
footer {
  position: relative;
  z-index: 2;
}


/* ── 19. UTILIDADES ──────────────────────────────────────────── */

.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-red     { color: var(--red);  }
.text-teal    { color: var(--teal); }
.text-gold    { color: var(--gold); }
.text-cream   { color: var(--cream); }
.text-dim     { color: var(--cream-dim); }
.text-dim2    { color: var(--cream-dim2); }

.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 40px; }
.mt-xl  { margin-top: 56px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 24px; }
.mb-lg  { margin-bottom: 40px; }

.gap-sm  { gap: 8px; }
.gap-md  { gap: 16px; }
.gap-lg  { gap: 28px; }

.flex        { display: flex; }
.flex-wrap   { flex-wrap: wrap; }
.flex-col    { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }


/* ── 20. RESPONSIVE — PUNTOS DE QUIEBRE ─────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-py: 80px;
    --section-px: 5%;
  }

  .grid-2-3,
  .grid-3-2 {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .section-header--split {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gallery-main {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-main__primary {
    grid-column: span 2;
    grid-row: auto;
  }
}

/* Mobile grande */
@media (max-width: 768px) {
  :root {
    --section-py: 64px;
    --section-px: 5%;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-3 {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .grid-4 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    grid-template-columns: 1fr;
  }
  .gallery-main__primary {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 480px) {
  :root {
    --section-py: var(--section-py-sm);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .page-hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .btn--xl,
  .btn--lg {
    padding: 15px 28px;
    font-size: 11px;
  }
}
