/* Plus Jakarta Sans (fuente variable 400–800), alojada en nuestro servidor */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ==========================================================================
   Inmobiliaria Galicia — hoja de estilos
   Colores de marca: azul marino #11163F · turquesa #75ADB4
   ========================================================================== */

:root {
  --navy: #11163f;
  --navy-2: #1c2358;
  --navy-3: #2a3274;
  --teal: #75adb4;
  --teal-d: #4f8d95;
  --teal-l: #e6f2f3;
  --coral: #fa5450;
  --ink: #1a1d2e;
  --text: #3d4155;
  --muted: #7b8096;
  --line: #e4e6ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 22, 63, 0.06), 0 2px 8px rgba(17, 22, 63, 0.05);
  --shadow: 0 10px 30px -10px rgba(17, 22, 63, 0.22);
  --shadow-lg: 0 30px 60px -20px rgba(17, 22, 63, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;
  --head-h: 72px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
main { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--teal); color: var(--navy); box-shadow: 0 8px 20px -8px rgba(117, 173, 180, 0.9); }
.btn--primary:hover { background: #86bcc3; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn--light { background: #fff; color: var(--navy); }
.btn--wa { background: #25d366; color: #fff; }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Cabecera ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h);
  transition: background 0.35s, box-shadow 0.35s, color 0.35s;
  color: #fff;
}
.header__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.header__logo img { height: 54px; width: auto; filter: brightness(0) invert(1); transition: filter 0.35s; }
.header__nav { display: flex; gap: 6px; margin-left: auto; }
.header__nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  opacity: 0.9; transition: background 0.2s, opacity 0.2s;
}
.header__nav a:hover { background: rgba(255, 255, 255, 0.12); opacity: 1; }
.header__cta { display: flex; gap: 10px; align-items: center; }
.header__tel { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.header__tel svg { width: 18px; height: 18px; }
.header__fav { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,0.12); border: 0; color: inherit; }
.header__fav svg { width: 20px; height: 20px; }
.header__fav b {
  position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--coral); color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px;
  transform: scale(0); transition: transform 0.3s var(--ease);
}
.header__fav b.on { transform: scale(1); }
.header__burger { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; margin-left: auto; }
.header__burger span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }

.header.is-solid, .header.is-open, body.page-light .header {
  background: rgba(255, 255, 255, 0.92); color: var(--navy);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-solid .header__logo img, .header.is-open .header__logo img, body.page-light .header__logo img { filter: none; }
.header.is-solid .header__nav a:hover, body.page-light .header__nav a:hover { background: var(--bg-soft); }
.header.is-solid .header__fav, body.page-light .header__fav { background: var(--bg-soft); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(92vh, 860px); display: flex; align-items: center;
  color: #fff; overflow: hidden; isolation: isolate; padding: calc(var(--head-h) + 40px) 0 80px;
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(17, 22, 63, 0.35), transparent 60%),
    linear-gradient(180deg, rgba(17, 22, 63, 0.55) 0%, rgba(17, 22, 63, 0.35) 45%, rgba(17, 22, 63, 0.85) 100%);
}
.hero__in { width: 100%; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.14); backdrop-filter: blur(8px); font-size: 14px; font-weight: 600;
}
.hero__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, 0.7); animation: pulse 2s infinite; margin-left: 6px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(62, 224, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(62, 224, 143, 0); } }
.hero h1 {
  color: #fff; font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; margin: 22px 0 18px; max-width: 14ch;
  letter-spacing: -0.035em; line-height: 1.02;
}
.hero h1 em { font-style: normal; color: var(--teal); position: relative; white-space: nowrap; }
.hero__lead { font-size: clamp(17px, 1.6vw, 20px); max-width: 560px; opacity: 0.92; margin-bottom: 34px; }

/* Buscador estilo portal */
.search {
  background: #fff; border-radius: 20px; padding: 8px; display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 4px; box-shadow: var(--shadow-lg); max-width: 1040px;
}
.search__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.search__tab { padding: 9px 18px; border-radius: 12px 12px 0 0; font-weight: 700; font-size: 14px; color: #fff; background: rgba(255,255,255,0.14); border: 0; }
.search__tab.is-on { background: #fff; color: var(--navy); }
.field { position: relative; padding: 10px 16px; border-radius: 14px; transition: background 0.2s; }
.field + .field::before { content: ''; position: absolute; left: -2px; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.field:hover { background: var(--bg-soft); }
.field label { display: block; font-size: 12px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.06em; }
.field select, .field input {
  width: 100%; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--text);
  padding: 2px 0; outline: none; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.search .btn { height: 100%; min-height: 58px; border-radius: 14px; padding: 0 28px; }

.hero__stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -0.03em; }
.hero__stat span { font-size: 14px; opacity: 0.8; }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px;
  border: 2px solid rgba(255, 255, 255, 0.6);
}
.hero__scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Marquesina ---------- */
.marquee { background: var(--navy); color: #fff; overflow: hidden; padding: 16px 0; }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; opacity: 0.9; white-space: nowrap; }
.marquee__track span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.kicker { display: inline-block; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--teal-d); margin-bottom: 10px; }
.section h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; }
.section__lead { max-width: 560px; color: var(--muted); font-size: 17px; margin-top: 12px; }

/* ---------- Barra de resultados (estilo portal) ---------- */
.results-bar {
  position: sticky; top: var(--head-h); z-index: 20; background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding: 14px 0; margin-bottom: 28px;
}
.results-bar__in { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 38px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--navy); }
.chip.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { font-weight: 700; opacity: 0.55; }
.results-bar__right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.select {
  height: 38px; border-radius: 999px; border: 1.5px solid var(--line); padding: 0 34px 0 14px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--navy); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2311163F' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.view-toggle { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { width: 34px; height: 30px; border: 0; background: transparent; border-radius: 999px; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.is-on { background: var(--navy); color: #fff; }
.view-toggle svg { width: 16px; height: 16px; }
.results-count { font-weight: 700; color: var(--navy); font-size: 15px; }
.results-count span { color: var(--muted); font-weight: 500; }
.filters-more { display: none; }

/* ---------- Tarjeta de vivienda ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  position: relative; background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card__track { display: flex; height: 100%; transition: transform 0.55s var(--ease); }
.card__track img { flex: none; width: 100%; height: 100%; object-fit: cover; }
.card:hover .card__track img { }
.card__nav {
  position: absolute; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.92); color: var(--navy); display: grid; place-items: center; opacity: 0;
  transition: opacity 0.25s, transform 0.25s; box-shadow: var(--shadow-sm); z-index: 2;
}
.card__nav svg { width: 16px; height: 16px; }
.card__nav--prev { left: 12px; }
.card__nav--next { right: 12px; }
.card:hover .card__nav { opacity: 1; }
.card__nav:hover { transform: scale(1.08); }
.card__dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; }
.card__dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.55); transition: width 0.3s, background 0.3s; }
.card__dots i.on { width: 16px; background: #fff; }
.card__badges { position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { padding: 5px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.95); color: var(--navy); }
.badge--teal { background: var(--teal); color: var(--navy); }
.badge--navy { background: var(--navy); color: #fff; }
.card__fav {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; z-index: 3;
  background: rgba(255, 255, 255, 0.95); display: grid; place-items: center; color: var(--navy); box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease);
}
.card__fav:hover { transform: scale(1.1); }
.card__fav svg { width: 20px; height: 20px; transition: fill 0.2s, color 0.2s; }
.card__fav.is-on { color: var(--coral); }
.card__fav.is-on svg { fill: var(--coral); animation: heart 0.45s var(--ease); }
@keyframes heart { 40% { transform: scale(1.35); } }
.card__count { position: absolute; bottom: 12px; right: 12px; z-index: 2; background: rgba(17, 22, 63, 0.7); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; display: flex; align-items: center; gap: 5px; }
.card__count svg { width: 13px; height: 13px; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__loc { font-size: 13px; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: 0.08em; display: flex; align-items: center; gap: 6px; }
.card__loc svg { width: 14px; height: 14px; }
.card__title { font-size: 19px; font-weight: 700; margin: 8px 0 12px; line-height: 1.3; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__price { font-size: 26px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.card__price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.card__note { font-size: 13px; color: var(--muted); margin: 4px 0 16px; }
.card__feats { display: flex; gap: 16px; padding-top: 14px; margin-top: auto; border-top: 1px solid var(--line); flex-wrap: wrap; }
.feat { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.feat svg { width: 18px; height: 18px; color: var(--teal-d); }

/* Vista lista (tipo portal) */
.grid.is-list { grid-template-columns: 1fr; gap: 20px; }
.grid.is-list .card { flex-direction: row; }
.grid.is-list .card__media { width: 42%; flex: none; aspect-ratio: auto; min-height: 280px; }
.grid.is-list .card__body { padding: 26px 30px; }
.grid.is-list .card__title { font-size: 22px; }
.grid.is-list .card__desc { display: -webkit-box; }
.card__desc { display: none; color: var(--muted); font-size: 15px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.card__desc strong { font-weight: 500; }

.empty { text-align: center; padding: 60px 20px; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); grid-column: 1 / -1; }
.empty h3 { margin-bottom: 8px; }

/* Skeleton / aparición */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.card.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), box-shadow 0.45s var(--ease); }

/* ---------- Zonas ---------- */
.zones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.zone {
  position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; isolation: isolate; border: 0; text-align: left;
}
.zone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.zone::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(17, 22, 63, 0.9)); }
.zone:hover img { transform: scale(1.08); }
.zone h3 { color: #fff; font-size: 26px; font-weight: 800; }
.zone span { font-size: 14px; opacity: 0.85; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.zone span i { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.18); display: grid; place-items: center; transition: background 0.3s, transform 0.3s; font-style: normal; }
.zone:hover span i { background: var(--teal); transform: rotate(-45deg); }

/* ---------- Ventajas ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk { background: #fff; border-radius: var(--radius-lg); padding: 30px 26px; border: 1px solid var(--line); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.perk:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.perk__ico { width: 54px; height: 54px; border-radius: 16px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; margin-bottom: 20px; }
.perk__ico svg { width: 26px; height: 26px; }
.perk h3 { font-size: 19px; margin-bottom: 8px; }
.perk p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA vender ---------- */
.sell {
  position: relative; overflow: hidden; border-radius: 28px; background: var(--navy); color: #fff;
  padding: 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; isolation: isolate;
}
.sell::before {
  content: ''; position: absolute; width: 520px; height: 520px; right: -120px; top: -180px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(117, 173, 180, 0.55), transparent 65%); animation: float 9s ease-in-out infinite;
}
.sell::after {
  content: ''; position: absolute; width: 380px; height: 380px; left: -120px; bottom: -200px; border-radius: 50%; z-index: -1;
  background: radial-gradient(circle, rgba(42, 50, 116, 0.9), transparent 65%); animation: float 11s ease-in-out infinite reverse;
}
@keyframes float { 50% { transform: translate(-30px, 30px); } }
.sell h2 { color: #fff; font-size: clamp(28px, 3.4vw, 42px); }
.sell p { opacity: 0.85; font-size: 17px; margin: 14px 0 0; }
.sell__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__info h2 { margin-bottom: 14px; }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.contact__list .ico { width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact__list .ico svg { width: 20px; height: 20px; }
.contact__list small { display: block; color: var(--muted); font-size: 13px; }
.contact__list b { color: var(--navy); font-size: 16px; }

/* ---------- Formulario ---------- */
.form { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.form h3 { font-size: 22px; margin-bottom: 4px; }
.form__sub { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.input { position: relative; margin-bottom: 14px; }
.input input, .input textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 22px 14px 8px; font: inherit; font-size: 15px;
  color: var(--ink); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; outline: none; resize: vertical;
}
.input textarea { min-height: 116px; }
.input label { position: absolute; left: 15px; top: 15px; font-size: 15px; color: var(--muted); pointer-events: none; transition: all 0.2s var(--ease); }
.input input:focus, .input textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(117, 173, 180, 0.18); }
.input input:focus + label, .input input:not(:placeholder-shown) + label,
.input textarea:focus + label, .input textarea:not(:placeholder-shown) + label { top: 6px; font-size: 11.5px; font-weight: 700; color: var(--teal-d); text-transform: uppercase; letter-spacing: 0.05em; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 18px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; margin-top: 1px; }
.check a { color: var(--navy); text-decoration: underline; }
.check details summary { cursor: pointer; color: var(--navy); font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; }
.form__msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.form__msg.is-err { display: block; background: #ffecec; color: #b3261e; }
.form__ok {
  position: absolute; inset: 0; border-radius: inherit; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.form.is-sent .form__ok { opacity: 1; pointer-events: auto; }
.form__ok .tick { width: 72px; height: 72px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; margin-bottom: 18px; }
.form__ok .tick svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form.is-sent .form__ok .tick svg { animation: draw 0.6s 0.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form__ok h3 { margin-bottom: 6px; }
.form__ok p { color: var(--muted); }
.btn.is-loading { pointer-events: none; opacity: 0.8; }
.btn.is-loading::after { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.quick button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: var(--navy); transition: all 0.2s; }
.quick button:hover, .quick button.is-on { border-color: var(--navy); background: var(--navy); color: #fff; }

/* ---------- Pie ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); padding: 72px 0 28px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer img { height: 50px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.footer a:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 13px; flex-wrap: wrap; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.7); transition: transform 0.3s var(--ease);
}
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2.4s infinite; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.7); opacity: 0; } }

/* Panel de favoritos */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer__bg { position: absolute; inset: 0; background: rgba(17, 22, 63, 0.45); opacity: 0; transition: opacity 0.3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; transform: translateX(100%);
  transition: transform 0.45s var(--ease); display: flex; flex-direction: column;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__body { overflow-y: auto; padding: 16px 24px; flex: 1; }
.drawer__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg-soft); display: grid; place-items: center; }
.drawer__close svg { width: 18px; height: 18px; }
.mini { display: grid; grid-template-columns: 96px 1fr auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.mini b { color: var(--navy); display: block; }
.mini span { font-size: 13px; color: var(--muted); }
.mini button { border: 0; background: transparent; color: var(--coral); }

/* ==========================================================================
   Ficha de vivienda
   ========================================================================== */
body.page-light { padding-top: var(--head-h); }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); padding: 22px 0 16px; flex-wrap: wrap; align-items: center; }
.crumbs a:hover { color: var(--navy); }
.crumbs svg { width: 14px; height: 14px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { border: 0; padding: 0; position: relative; overflow: hidden; background: var(--bg-soft); }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), filter 0.3s; }
.gallery button:hover img { transform: scale(1.05); filter: brightness(0.92); }
.gallery__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.gallery__all .btn { height: 42px; box-shadow: var(--shadow); }

.detail { display: grid; grid-template-columns: 1fr 380px; gap: 56px; padding: 36px 0 80px; align-items: start; }
.detail__loc { color: var(--teal-d); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.detail__loc svg { width: 16px; height: 16px; }
.detail h1 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; margin: 10px 0 8px; }
.detail__addr { color: var(--muted); margin-bottom: 22px; }
.detail__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.detail__price b { font-size: 38px; color: var(--navy); font-weight: 800; letter-spacing: -0.03em; }
.detail__price span { color: var(--muted); font-weight: 600; }
.detail__note { display: inline-flex; gap: 8px; align-items: center; background: var(--teal-l); color: var(--navy); font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; margin: 12px 0 0; }
.detail__note svg { width: 16px; height: 16px; color: var(--teal-d); }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0; }
.keyfact { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.keyfact svg { width: 22px; height: 22px; color: var(--teal-d); margin-bottom: 8px; }
.keyfact b { display: block; font-size: 20px; color: var(--navy); line-height: 1.2; }
.keyfact span { font-size: 13px; color: var(--muted); }
.block { padding: 32px 0; border-top: 1px solid var(--line); }
.block h2 { font-size: 24px; margin-bottom: 18px; }
.block p { font-size: 16.5px; line-height: 1.75; }
.block strong { color: var(--ink); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.specs dd.pending { color: var(--muted); font-weight: 500; font-style: italic; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--bg-soft); font-weight: 600; font-size: 14px; color: var(--ink); }
.tag svg { width: 16px; height: 16px; color: var(--teal-d); }
.map { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--navy) center/cover; display: grid; place-items: center; }
.map::before { content: ''; position: absolute; inset: 0; background: rgba(17, 22, 63, 0.55); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__cta { position: relative; text-align: center; color: #fff; padding: 20px; }
.map__cta p { margin: 8px 0 16px; opacity: 0.85; font-size: 14px; }

.aside { position: sticky; top: calc(var(--head-h) + 20px); }
.aside .form { padding: 26px; }
.aside__agent { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.aside__agent .av { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; }
.aside__agent .av img { width: 34px; filter: brightness(0) invert(1); }
.aside__agent b { color: var(--navy); display: block; }
.aside__agent span { font-size: 13px; color: var(--muted); }
.aside__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.aside__btns .btn { height: 46px; font-size: 14px; padding: 0 12px; }
.share { display: flex; gap: 8px; margin-top: 14px; justify-content: center; }
.share button { border: 0; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; padding: 8px 10px; border-radius: 10px; }
.share button:hover { background: var(--bg-soft); color: var(--navy); }
.share svg { width: 16px; height: 16px; }

.mobile-bar { display: none; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 10, 30, 0.96); display: none; flex-direction: column; }
.lb.is-open { display: flex; animation: fade 0.3s; }
@keyframes fade { from { opacity: 0; } }
.lb__top { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 16px 20px; }
.lb__stage { flex: 1; position: relative; display: grid; place-items: center; min-height: 0; padding: 0 70px; }
.lb__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; animation: fade 0.35s; }
.lb__btn { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }
.lb__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__prev { left: 12px; }
.lb__next { right: 12px; }
.lb__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; }
.lb__close svg { width: 20px; height: 20px; }
.lb__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 14px 20px 20px; scrollbar-width: thin; }
.lb__thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; opacity: 0.5; background: none; transition: opacity 0.2s, border-color 0.2s; }
.lb__thumbs button.on { opacity: 1; border-color: var(--teal); }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; translate: -50% 140%; background: var(--navy); color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); transition: translate 0.45s var(--ease);
}
.toast.is-on { translate: -50% 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .zones, .perks { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr 340px; gap: 36px; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .field:nth-child(3)::before { display: none; }
  .search .btn { grid-column: 1 / -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --head-h: 64px; }
  .header__nav, .header__tel { display: none; }
  .header__burger { display: block; margin-left: 0; }
  .header__cta { margin-left: auto; }
  .header__nav.is-open {
    display: flex; flex-direction: column; position: fixed; top: var(--head-h); left: 0; right: 0; background: #fff; padding: 12px 20px 24px;
    box-shadow: var(--shadow); color: var(--navy);
  }
  .header__nav.is-open a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .header.is-open .header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header.is-open .header__burger span:nth-child(2) { opacity: 0; }
  .header.is-open .header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 68px 0; }
  .contact, .sell { grid-template-columns: 1fr; }
  .sell { padding: 40px 28px; }
  .sell__actions { justify-content: flex-start; }
  .detail { grid-template-columns: 1fr; }
  .aside { position: static; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 120px; }
  .gallery button:first-child { grid-column: 1 / -1; grid-row: auto; }
  .gallery button:nth-child(n + 4) { display: none; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); }
  .grid.is-list .card { flex-direction: column; }
  .grid.is-list .card__media { width: 100%; min-height: 0; aspect-ratio: 4 / 3; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff; box-shadow: 0 -8px 24px rgba(17, 22, 63, 0.1);
  }
  .mobile-bar .btn { height: 46px; padding: 0 10px; font-size: 14px; }
  body.has-mobile-bar { padding-bottom: 76px; }
  body.has-mobile-bar .wa-float { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid, .zones, .perks { grid-template-columns: 1fr; }
  .zones { grid-template-columns: 1fr 1fr; gap: 12px; }
  .zone { aspect-ratio: 4 / 5; padding: 16px; }
  .zone h3 { font-size: 20px; }
  .search { grid-template-columns: 1fr; padding: 6px; }
  .field + .field::before { left: 16px; right: 16px; top: -2px; bottom: auto; width: auto; height: 1px; }
  .search .field:nth-child(3)::before { display: block; }
  .hero { min-height: auto; padding-bottom: 60px; }
  .hero__stats { gap: 24px; }
  .hero__stat b { font-size: 28px; }
  .hero__scroll { display: none; }
  .form { padding: 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .results-bar__right { margin-left: 0; width: 100%; }
  .results-bar__right .select { flex: 1; }
  .specs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .lb__stage { padding: 0 8px; }
  .lb__btn { width: 42px; height: 42px; background: rgba(0,0,0,0.4); }
  .detail__price b { font-size: 32px; }
  .map { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Páginas legales ---------- */
.legal { max-width: 860px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 8px 0 28px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal h3, .legal h4 { font-size: 18px; margin: 26px 0 10px; }
.legal p, .legal li { font-size: 16px; line-height: 1.75; }
.legal a { color: var(--teal-d); text-decoration: underline; }
.legal table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; display: block; overflow-x: auto; }
.legal td, .legal th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }

/* ==========================================================================
   Hero con una sola foto (alta calidad)
   ========================================================================== */
.hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--navy); overflow: hidden; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%;
  animation: heroIn 2.4s var(--ease) both;
}
/* entra con un leve zoom y se queda a tamaño real, para que se vea nítida */
@keyframes heroIn { from { transform: scale(1.06); opacity: 0.4; } to { transform: none; opacity: 1; } }
.hero::after {
  background:
    linear-gradient(90deg, rgba(17, 22, 63, 0.82) 0%, rgba(17, 22, 63, 0.55) 45%, rgba(17, 22, 63, 0.12) 100%),
    linear-gradient(180deg, rgba(17, 22, 63, 0.35) 0%, transparent 30%, transparent 65%, rgba(17, 22, 63, 0.7) 100%);
}
@media (max-width: 860px) {
  .hero::after { background: linear-gradient(180deg, rgba(17, 22, 63, 0.7) 0%, rgba(17, 22, 63, 0.6) 50%, rgba(17, 22, 63, 0.85) 100%); }
}

/* Teléfono como texto (sin enlace de llamada) */
.btn.tel { cursor: text; user-select: all; -webkit-user-select: all; letter-spacing: 0.02em; }
.btn.tel:hover { transform: none; box-shadow: inset 0 0 0 1.5px var(--line); }
.header__tel { user-select: all; -webkit-user-select: all; }
@media (max-width: 860px) {
  .mobile-bar { grid-template-columns: 1.25fr 1fr 1fr; }
  .mobile-bar .btn { font-size: 13.5px; gap: 6px; }
  .mobile-bar .btn svg { width: 16px; height: 16px; }
}
@media (max-width: 380px) { .mobile-bar .btn.tel svg { display: none; } }

/* ---------- Preguntas frecuentes ---------- */
.faq-wrap { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 56px; align-items: start; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; transition: box-shadow 0.3s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; transition: transform 0.3s var(--ease); }
.faq summary i svg { width: 16px; height: 16px; }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--text); }

/* ---------- Cabecera de páginas interiores (localidades, blog) ---------- */
.zone-hero { background: linear-gradient(180deg, var(--bg-soft), #fff); padding: 8px 0 20px; }
.zone-hero h1 { font-size: clamp(32px, 4.4vw, 54px); font-weight: 800; margin: 4px 0 6px; }
.zone-hero .chips { flex-wrap: wrap; }
a.chip { text-decoration: none; }

/* ---------- Blog ---------- */
.posts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.post-card img { width: 100%; aspect-ratio: 12 / 7; object-fit: cover; height: auto; }
.post-card__body { padding: 24px 26px 26px; }
.post-card__meta { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); font-weight: 600; }
.post-card__meta svg { width: 15px; height: 15px; }
.post-card h3 { font-size: 22px; margin: 10px 0; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card__more { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; color: var(--navy); }
.post-card__more svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.post-card:hover .post-card__more svg { transform: translateX(4px); }
.post-card--big { grid-column: 1 / -1; flex-direction: row; }
.post-card--big img { width: 55%; aspect-ratio: auto; min-height: 320px; }
.post-card--big .post-card__body { align-self: center; padding: 36px 40px; }
.post-card--big h3 { font-size: clamp(22px, 2.4vw, 30px); }

.post__head { max-width: 860px; padding-bottom: 20px; }
.post__head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; margin: 6px 0 14px; }
.post__meta { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 14px; font-weight: 600; flex-wrap: wrap; }
.post__meta svg { width: 16px; height: 16px; }
.post__cover { width: 100%; max-width: 1100px; margin: 0 auto; border-radius: var(--radius-lg); aspect-ratio: 12 / 6; object-fit: cover; height: auto; }
.post__body { max-width: 780px; padding-top: 40px; padding-bottom: 80px; }
.post__body h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 44px 0 14px; }
.post__body h3 { font-size: 21px; margin: 32px 0 10px; }
.post__body p, .post__body li { font-size: 17.5px; line-height: 1.8; }
.post__body ul, .post__body ol { padding-left: 22px; margin: 0 0 1.2em; }
.post__body li { margin-bottom: 8px; }
.post__body a { color: var(--teal-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post__body img { border-radius: var(--radius); margin: 26px auto; height: auto; }
.post__body figure { margin: 0; }
.post__body blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--teal); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; font-size: 18px; }
.post__body blockquote p { margin: 0; }
.post__body table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; display: block; overflow-x: auto; }
.post__body th { background: var(--navy); color: #fff; text-align: left; }
.post__body th, .post__body td { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.post__cta { margin-top: 48px; padding: 32px; border-radius: var(--radius-lg); background: var(--navy); color: #fff; }
.post__cta h3 { color: #fff; margin: 0 0 8px; }
.post__cta p { opacity: 0.85; font-size: 16px; }

@media (max-width: 860px) {
  .faq-wrap { grid-template-columns: 1fr; gap: 24px; }
  .posts { grid-template-columns: 1fr; }
  .post-card--big { flex-direction: column; }
  .post-card--big img { width: 100%; min-height: 0; aspect-ratio: 12 / 7; }
  .post-card--big .post-card__body { padding: 24px; }
}

/* ---------- Página de contacto ---------- */
.contact--page { grid-template-columns: 0.85fr 1.15fr; }
.contact__note { margin-top: 22px; padding: 22px; border-radius: var(--radius); background: var(--teal-l); }
.contact__note h3 { font-size: 17px; margin-bottom: 6px; }
.contact__note p { margin: 0; font-size: 15px; color: var(--text); }
@media (max-width: 860px) { .contact--page { grid-template-columns: 1fr; } .contact--page .form { order: -1; } }

/* Eslogan bajo el título del hero */
.hero h1 { max-width: none; margin-bottom: 6px; }
.hero__slogan { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: #fff; margin: 0 0 14px; letter-spacing: -0.02em; opacity: 0.95; }

/* ---------- Comprobación anti-robots (suma) ---------- */
.captcha {
  display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; padding: 10px 10px 10px 14px;
  border: 1.5px dashed var(--line); border-radius: 12px; background: var(--bg-soft);
}
.captcha__ico { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--teal-l); color: var(--teal-d); display: grid; place-items: center; }
.captcha__ico svg { width: 18px; height: 18px; }
.captcha__q { flex: 1; font-size: 14px; color: var(--text); line-height: 1.35; }
.captcha__q b { color: var(--navy); font-size: 16px; white-space: nowrap; }
.captcha__a {
  flex: none; width: 64px; height: 44px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  text-align: center; font: inherit; font-size: 18px; font-weight: 700; color: var(--navy); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.captcha__a:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(117, 173, 180, 0.18); }
.captcha__a::placeholder { color: var(--muted); font-weight: 500; }

/* ==========================================================================
   Visor de fotos (corrección): la foto siempre cabe entera en la pantalla
   ========================================================================== */
.lb { background: #0a0d24; height: 100vh; height: 100dvh; }
.lb__top { flex: none; }
.lb__stage { flex: 1 1 auto; min-height: 0; display: block; position: relative; padding: 0 76px 8px; }
.lb__stage img {
  display: block; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; border-radius: 0; user-select: none; -webkit-user-drag: none;
}
.lb__thumbs { flex: none; }
.lb__thumbs button { flex: none; }
@media (max-width: 640px) {
  .lb__stage { padding: 0 0 6px; }
  .lb__btn { background: rgba(10, 13, 36, 0.55); backdrop-filter: blur(4px); }
  .lb__prev { left: 8px; }
  .lb__next { right: 8px; }
  .lb__thumbs { padding: 10px 12px calc(12px + env(safe-area-inset-bottom)); }
  .lb__thumbs button { width: 64px; height: 48px; }
}
/* Móvil en horizontal / pantallas bajas: más espacio para la foto */
@media (max-height: 520px) {
  .lb__top { padding: 8px 14px; }
  .lb__thumbs { display: none; }
  .lb__close { width: 38px; height: 38px; }
}

/* ==========================================================================
   Ficha en móvil (correcciones)
   ========================================================================== */
@media (max-width: 860px) {
  .gallery__all { right: 10px; bottom: 10px; }
  .gallery__all .btn { height: 38px; padding: 0 14px; font-size: 13.5px; gap: 6px; }
  .gallery__all .btn svg { width: 16px; height: 16px; }
}
@media (max-width: 640px) {
  /* migas de pan en una sola línea */
  .crumbs { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; font-size: 13.5px; padding: 16px 0 12px; }
  .crumbs > span:last-child { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .crumbs svg { flex: none; }
  .gallery { grid-template-rows: 240px 110px; gap: 6px; border-radius: 16px; }
  .detail { padding-top: 24px; gap: 28px; }
  .keyfacts { gap: 10px; margin: 22px 0; }
  .keyfact { padding: 14px; }
}

/* ==========================================================================
   Móvil (correcciones de diseño)
   ========================================================================== */
@media (max-width: 860px) {
  /* la barra de filtros no se queda fija: en móvil ocupaba demasiada pantalla */
  .results-bar { position: static; padding: 10px 0 12px; margin-bottom: 18px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 640px) {
  /* botón de WhatsApp más discreto para no tapar las tarjetas */
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
  .wa-float svg { width: 26px; height: 26px; }
  /* desplegables del buscador más cómodos para el dedo */
  .field { padding: 12px 16px; }
  .field select { min-height: 32px; font-size: 16px; }
  /* tablas de los artículos: se desplazan de lado sin romper la página */
  .post__body table { font-size: 13.5px; }
  .post__body th, .post__body td { padding: 10px; min-width: 110px; }
  .form__sub { white-space: normal; }
}
