/* =====================================================================
   DAPTUX INMOBILIARIA — Sistema de diseño
   Stack: HTML5 + CSS3 vanilla (sin frameworks) — PROJECT.md
   Identidad: editorial premium · azul profundo + acento dorado
   ===================================================================== */

/* ------------------------- Tokens / Variables ------------------------ */
:root {
  /* Marca — azul profundo dueño de la página, dorado como acento premium */
  --navy-900: #081729;
  --navy-800: #0B1F3A;   /* azul corporativo principal */
  --navy-700: #102a4c;
  --navy-600: #1b3c66;
  --navy-300: #6f8bb0;
  --gold-600: #b08d35;
  --gold-500: #c9a84c;   /* acento dorado / cobre */
  --gold-300: #e4cf90;

  /* Neutrales */
  --white: #ffffff;
  --paper: #faf8f4;      /* fondo suave cálido */
  --paper-2: #f3efe8;
  --line: rgba(11, 31, 58, 0.10);
  --line-strong: rgba(11, 31, 58, 0.18);
  --ink: #0d0f12;        /* texto principal carbón */
  --ink-soft: #3c4654;
  --muted: #6b7686;

  /* Estados */
  --ok: #1f9d61;
  --ok-bg: #e4f6ec;
  --warn: #c98a16;
  --warn-bg: #fbf0d8;
  --gray: #7a8494;
  --gray-bg: #eceef1;
  --danger: #d23c3c;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Radios / sombras / capas */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(8, 23, 41, .06), 0 2px 8px rgba(8, 23, 41, .05);
  --shadow-md: 0 8px 30px rgba(8, 23, 41, .10);
  --shadow-lg: 0 24px 60px rgba(8, 23, 41, .18);
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* Layout */
  --container: 1240px;
  --nav-h: 76px;
}

/* ----------------------------- Reset --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; color: var(--ink); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }

/* --------------------------- Tipografía ------------------------------ */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -.01em; color: var(--navy-900); }
.h-eyebrow {
  font-family: var(--font-sans); font-weight: 600; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--gold-600);
  display: inline-flex; align-items: center; gap: .55rem;
}
.h-eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold-500); }
.lead { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.7; }
.muted { color: var(--muted); }

/* ---------------------------- Layout --------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy-900); color: #d9e2ef; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-top: .8rem; }
.section-head p { margin-top: .9rem; }

.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------------------------- Botones -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--r-pill);
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-600)); color: var(--navy-900); box-shadow: 0 6px 20px rgba(201,168,76,.35); }
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(201,168,76,.45); }
.btn--ghost { background: transparent; color: var(--navy-800); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--navy-800); background: var(--navy-800); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.btn--ghost-light:hover { background: #fff; color: var(--navy-900); }
.btn--wa { background: #25D366; color: #062b13; }
.btn--wa:hover { background: #1eb957; transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1rem; font-size: .85rem; }
.btn--lg { padding: 1rem 1.9rem; font-size: 1.02rem; }

/* ---------------------------- Badges --------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .32rem .7rem; border-radius: var(--r-pill);
  font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--disponible { color: var(--ok); background: var(--ok-bg); }
.badge--reservado { color: var(--warn); background: var(--warn-bg); }
.badge--vendido { color: var(--gray); background: var(--gray-bg); }
.badge--destacado { color: var(--gold-600); background: #fbf3dd; }
.badge--gold { color: var(--navy-900); background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); box-shadow: 0 4px 12px rgba(201,168,76,.3); }
.badge--gold::before { background: var(--navy-900); }

/* ====================================================================
   NAVBAR (inyectado por components.js)
   ==================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav--solid { background: rgba(255,255,255,.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav__inner { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 56px; width: auto; display: block; flex-shrink: 0; }
.footer .brand__logo { height: 66px; }
/* Dark logo (charcoal) on light surfaces; light logo on dark surfaces. */
.brand__logo--light { display: none; }
.nav--transparent .brand__logo--dark, .footer .brand__logo--dark { display: none; }
.nav--transparent .brand__logo--light, .footer .brand__logo--light { display: block; }

.nav__links { display: flex; align-items: center; gap: .35rem; }
.nav__link { padding: .5rem .8rem; border-radius: var(--r-pill); font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .2s, background .2s; position: relative; }
.nav__link:hover { color: var(--navy-800); }
.nav__link.is-active { color: var(--navy-800); font-weight: 600; }
.nav__link.is-active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .25rem; height: 2px; background: var(--gold-500); border-radius: 2px; }
.nav--transparent .nav__link { color: rgba(255,255,255,.85); }
.nav--transparent .nav__link:hover, .nav--transparent .nav__link.is-active { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: .6rem; }
.nav--transparent .btn--ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.nav--transparent .btn--ghost:hover { background: #fff; color: var(--navy-900); }

.nav__burger { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); align-items: center; justify-content: center; }
.nav__burger span, .nav__burger span::before, .nav__burger span::after { content: ""; display: block; width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav__burger span::before { transform: translateY(-7px); }
.nav__burger span::after { transform: translateY(5px); }
.nav--transparent .nav__burger span, .nav--transparent .nav__burger span::before, .nav--transparent .nav__burger span::after { background: #fff; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: rotate(45deg); }
body.menu-open .nav__burger span::after { transform: rotate(-45deg); }

/* Mobile drawer */
.nav__mobile { position: fixed; inset: 0; z-index: 79; background: var(--navy-900); display: flex; flex-direction: column; padding: calc(var(--nav-h) + 1.5rem) clamp(1.1rem,4vw,2.5rem) 2rem; transform: translateX(100%); transition: transform .4s var(--ease); visibility: hidden; }
body.menu-open .nav__mobile { transform: translateX(0); visibility: visible; }
.nav__mobile a { color: #fff; font-family: var(--font-display); font-size: 1.5rem; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.nav__mobile .nav__actions { margin-top: 1.5rem; flex-direction: column; align-items: stretch; }
.nav__mobile .btn { width: 100%; }

/* ====================================================================
   PROPERTY CARD
   ==================================================================== */
.card {
  background: #fff; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 16/11; overflow: hidden; background: var(--paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__badges { position: absolute; top: .9rem; left: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.card__fav { position: absolute; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .2s, color .2s; color: var(--ink-soft); }
.card__fav:hover { transform: scale(1.1); color: var(--danger); }
.card__fav.is-fav { color: var(--danger); }
.card__fav svg { width: 19px; height: 19px; }
.card__op { position: absolute; bottom: .8rem; left: .9rem; background: rgba(8,23,41,.82); color: #fff; padding: .25rem .7rem; border-radius: var(--r-pill); font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: capitalize; backdrop-filter: blur(4px); }
.card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; color: var(--navy-900); letter-spacing: -.02em; }
.card__price small { font-size: .8rem; font-weight: 500; color: var(--muted); font-family: var(--font-sans); }
.card__title { font-family: var(--font-sans); font-weight: 600; font-size: 1.02rem; color: var(--ink); margin-top: .45rem; line-height: 1.35; }
.card__loc { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .88rem; margin-top: .3rem; }
.card__loc svg { width: 15px; height: 15px; flex-shrink: 0; }
.card__specs { display: flex; gap: 1.1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .85rem; }
.card__spec { display: inline-flex; align-items: center; gap: .35rem; }
.card__spec svg { width: 16px; height: 16px; color: var(--navy-600); }
.card__actions { display: flex; gap: .6rem; margin-top: 1.25rem; }
.card__actions .btn { flex: 1; }

/* ====================================================================
   HERO
   ==================================================================== */
.hero { position: relative; min-height: 100vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,23,41,.55) 0%, rgba(8,23,41,.25) 35%, rgba(8,23,41,.85) 100%); }
.hero__inner { padding-block: clamp(8rem, 16vh, 11rem) clamp(2.5rem, 6vh, 4rem); }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); color: #fff; max-width: 16ch; line-height: 1.04; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 56ch; margin-top: 1.4rem; font-size: clamp(1.02rem, 2vw, 1.25rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2rem; }

/* Buscador rápido */
.searchbar { margin-top: 2.6rem; background: rgba(255,255,255,.97); border-radius: var(--r-lg); padding: .7rem; box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: .5rem; max-width: 880px; }
.searchbar__field { display: flex; flex-direction: column; padding: .45rem .9rem; border-radius: var(--r-md); transition: background .2s; }
.searchbar__field + .searchbar__field { border-left: 1px solid var(--line); }
.searchbar__field label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.searchbar__field select, .searchbar__field input { border: none; background: none; padding: .15rem 0; font-weight: 600; color: var(--navy-900); outline: none; cursor: pointer; width: 100%; }
.searchbar .btn { margin: .15rem; }

/* ====================================================================
   STAT / FEATURE / STEP / SERVICE
   ==================================================================== */
.stat { text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 600; color: var(--gold-500); line-height: 1; letter-spacing: -.02em; }
.stat__label { margin-top: .5rem; font-size: .92rem; color: inherit; opacity: .82; }

.service { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2rem 1.8rem; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.service__icon { width: 58px; height: 58px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(135deg, var(--navy-800), var(--navy-600)); color: var(--gold-300); margin-bottom: 1.2rem; }
.service__icon svg { width: 28px; height: 28px; }
.service h3 { font-size: 1.3rem; }
.service p { margin-top: .6rem; color: var(--ink-soft); font-size: .96rem; }

.step { position: relative; padding-left: 1.2rem; }
.step__num { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; color: var(--gold-500); opacity: .55; line-height: 1; }
.step h3 { font-size: 1.2rem; margin-top: .6rem; }
.step p { margin-top: .5rem; color: var(--ink-soft); font-size: .94rem; }

/* Categorías marketplace */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.cat { position: relative; aspect-ratio: 4/3; border-radius: var(--r-lg); overflow: hidden; color: #fff; display: flex; align-items: flex-end; padding: 1.4rem; box-shadow: var(--shadow-sm); }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8,23,41,.05), rgba(8,23,41,.8)); }
.cat:hover img { transform: scale(1.08); }
.cat__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.cat__count { font-size: .82rem; opacity: .85; }

/* Testimonios */
.t-track { display: flex; gap: 1.5rem; transition: transform .5s var(--ease); }
.t-card { flex: 0 0 100%; }
.t-quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 2.4rem; box-shadow: var(--shadow-sm); }
.t-quote .stars { color: var(--gold-500); letter-spacing: .15em; font-size: 1.1rem; }
.t-quote blockquote { font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.7rem); line-height: 1.45; color: var(--navy-900); margin: 1rem 0 1.5rem; font-style: italic; }
.t-author { display: flex; align-items: center; gap: .9rem; }
.t-author__avatar { width: 50px; height: 50px; border-radius: 50%; background: var(--navy-700); color: var(--gold-300); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.t-author strong { display: block; }
.t-author span { font-size: .85rem; color: var(--muted); }
.t-nav { display: flex; gap: .5rem; justify-content: center; margin-top: 1.6rem; }
.t-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: background .25s, transform .25s; }
.t-dot.is-active { background: var(--gold-500); transform: scale(1.25); }

/* Blog card */
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); display: flex; flex-direction: column; }
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post__media { aspect-ratio: 16/10; overflow: hidden; background: var(--paper-2); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post:hover .post__media img { transform: scale(1.06); }
.post__body { padding: 1.4rem 1.4rem 1.6rem; flex: 1; display: flex; flex-direction: column; }
.post__cat { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-600); }
.post__title { font-family: var(--font-display); font-size: 1.25rem; margin: .5rem 0 .6rem; line-height: 1.25; }
.post__excerpt { color: var(--ink-soft); font-size: .92rem; flex: 1; }
.post__meta { margin-top: 1.1rem; font-size: .82rem; color: var(--muted); display: flex; gap: .8rem; }

/* ====================================================================
   FORMULARIOS
   ==================================================================== */
.form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.field label .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(27,60,102,.12); }
.field textarea { resize: vertical; min-height: 110px; }
.field--invalid input, .field--invalid select, .field--invalid textarea { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); min-height: 1em; display: none; }
.field--invalid .field__error { display: block; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__status { padding: .9rem 1.1rem; border-radius: var(--r-md); font-size: .9rem; font-weight: 500; display: none; }
.form__status.is-success { display: block; background: var(--ok-bg); color: #146c43; }
.form__status.is-error { display: block; background: #fde8e8; color: #a02525; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ====================================================================
   WHATSAPP FLOAT
   ==================================================================== */
.wa-float { position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem); z-index: 70; display: inline-flex; align-items: center; gap: .65rem; background: #25D366; color: #062b13; padding: .8rem 1.2rem .8rem .9rem; border-radius: var(--r-pill); box-shadow: 0 10px 30px rgba(37,211,102,.4); font-weight: 700; font-size: .92rem; transition: transform .3s var(--ease), box-shadow .3s; }
.wa-float svg { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(37,211,102,.5); }
.wa-float__label { white-space: nowrap; }
@media (max-width: 600px) { .wa-float__label { display: none; } .wa-float { padding: .85rem; } }

/* ====================================================================
   FOOTER
   ==================================================================== */
.footer { background: var(--navy-900); color: #b8c5d8; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer .brand__name, .footer .brand__name span { color: #fff; }
.footer p { font-size: .92rem; margin-top: 1rem; max-width: 34ch; }
.footer h4 { color: #fff; font-family: var(--font-sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.footer a { display: block; padding: .3rem 0; font-size: .92rem; transition: color .2s; }
.footer a:hover { color: var(--gold-300); }
.footer__contact li { display: flex; align-items: flex-start; gap: .6rem; font-size: .92rem; padding: .3rem 0; }
.footer__contact svg { width: 17px; height: 17px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer__social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer__social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; padding: 0; }
.footer__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { padding-top: 1.8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: #7e8da3; }

/* ====================================================================
   ANIMACIÓN on-scroll (IntersectionObserver añade .in)
   ==================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* page padding for fixed nav on inner pages */
.page-top { padding-top: var(--nav-h); }

/* utilidades */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.flex-cta { display: flex; flex-wrap: wrap; gap: .85rem; }
.divider-gold { width: 54px; height: 3px; background: var(--gold-500); border-radius: 3px; }

/* ====================================================================
   RESPONSIVE
   ==================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 900px) {
  .nav__links, .nav__actions.nav__actions--desktop { display: none; }
  .nav__burger { display: flex; }
  .grid-3, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .btn { grid-column: 1 / -1; }
  .searchbar__field + .searchbar__field { border-left: none; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .grid-4, .cat-grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { min-height: 92vh; }
}
