/* =========================================================
   Gioconda Varas Propiedades — Sistema de Diseño Editorial
   Paleta inspirada en la pintura «La Gioconda» (Mona Lisa)
   de Leonardo da Vinci:
   - Verde ciprés y paisaje sfumato (#182825 / #28423D)
   - Bruma azul-verdosa del horizonte (#3A5652 / #E6ECE8)
   - Ocre dorado renacentista (#C69C4E)
   - Rojo veneciano / Tierra de Siena (#7D3C2D)
   - Lienzo marfil luminoso (#F7F4EC)
   ========================================================= */

/* ---------- 1. Tokens (Paleta «La Gioconda») ---------- */
:root {
  --navy: #182825;          /* Verde ciprés profundo del manto de La Gioconda */
  --navy-900: #101C1A;      /* Sombra sfumato profunda para el pie de página */
  --navy-700: #28423D;      /* Verde-azulado del paisaje y río de fondo */
  --navy-100: #E4ECE9;      /* Bruma suave del horizonte */
  --clay: #8F4636;          /* Rojo veneciano / mangas de La Gioconda */
  --clay-700: #763526;      /* Terracota veneciana de alto contraste AA */
  --clay-100: #F4E6E1;
  --gold: #C69C4E;          /* Ocre dorado de la luz y bordado renacentista */
  --gold-700: #7E5D1E;
  --gold-100: #F6EEDB;
  --bg: #F7F4EC;            /* Lienzo marfil cálido y luminoso */
  --parchment: #EDE3CE;     /* Pergamino renacentista que funde el logo */
  --slate-100: #EFECE2;     /* Sección alterna suave */
  --slate-200: #D2CBB8;     /* Bordes y líneas de trazo */
  --ink: #1C2421;           /* Texto principal nítido */
  --muted: #4E5B56;         /* Texto secundario de alta legibilidad */
  --white: #FFFFFF;
  --ok: #216846;
  --warn: #8F5308;
  --bad: #9E2A20;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-brand: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: .38rem;
  --radius: .65rem;
  --radius-lg: .95rem;
  --shadow-sm: 0 2px 8px rgb(16 28 26 / .06);
  --shadow: 0 12px 28px -10px rgb(16 28 26 / .14);
  --shadow-lg: 0 24px 48px -16px rgb(16 28 26 / .22);
  --ease: cubic-bezier(.22, .68, .2, 1);
  --header-h: 5.2rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.03rem; line-height: 1.72;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--navy); line-height: 1.18;
  margin: 0 0 .55em; text-wrap: balance; font-weight: 600;
}
h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem); }
h3 { font-size: clamp(1.22rem, 1.05rem + .5vw, 1.48rem); }
p { margin: 0 0 1.05em; }
a { color: var(--clay-700); text-underline-offset: .22em; transition: color .2s; }
a:hover { color: var(--navy); }
ul { padding-left: 1.2em; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--gold-100); color: var(--navy-900); }

.container { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.container--narrow { width: min(100% - 2.5rem, 50rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--navy); color: #fff; padding: .7rem 1rem; border-radius: var(--radius-sm); z-index: 200; }
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- 3. Secciones ---------- */
.section { padding-block: clamp(3.5rem, 2.2rem + 5vw, 6rem); }
.section--alt { background: var(--slate-100); border-block: 1px solid var(--slate-200); }
.section--dark {
  background: linear-gradient(155deg, var(--navy) 0%, var(--navy-700) 100%);
  color: #EAE6DC; position: relative;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #F7F4EC; }
.section--dark a { color: var(--gold-100); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-brand);
  letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; font-weight: 600;
  color: var(--clay-700); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 1.75rem; height: 1px; background: currentColor; }
.section--dark .eyebrow { color: var(--gold); }
.section-head { max-width: 44rem; margin-bottom: clamp(2rem, 3.5vw, 3.2rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.lead { font-size: 1.12rem; color: var(--muted); line-height: 1.7; }
.section--dark .lead { color: #D8E0DC; }

.grid { display: grid; gap: clamp(1.1rem, 2vw, 1.75rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: #F7F4EC; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 2.9rem; padding: .72rem 1.45rem; border-radius: var(--radius-sm);
  border: 1.5px solid var(--btn-bd); background: var(--btn-bg); color: var(--btn-fg);
  font: 500 .95rem/1.25 var(--font-body); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn--clay { --btn-bg: var(--clay-700); }
.btn--clay:hover { --btn-bg: var(--navy); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--navy-900); font-weight: 600; }
.btn--gold:hover { --btn-bg: #d4ad60; }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--outline:hover { --btn-bg: var(--navy); --btn-fg: #F7F4EC; }
.section--dark .btn--outline { --btn-fg: #F7F4EC; --btn-bd: rgb(247 244 236 / .55); }
.section--dark .btn--outline:hover { --btn-bg: #F7F4EC; --btn-fg: var(--navy); }
.btn--wa { --btn-bg: #1F6343; }
.btn--wa:hover { --btn-bg: #164B32; }
.btn--sm { min-height: 2.45rem; padding: .5rem 1.05rem; font-size: .88rem; }
.btn--block { width: 100%; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 5. Header / Nav con Logo Actualizado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; min-height: var(--header-h);
  background: rgb(247 244 236 / .96); backdrop-filter: saturate(1.3) blur(12px);
  border-bottom: 1px solid var(--slate-200); transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--navy); }
.brand img {
  width: 4.5rem; height: 3.4rem; object-fit: contain;
  border-radius: .4rem; border: 1px solid var(--slate-200);
  background: var(--parchment); padding: .12rem; flex: none;
}
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.38rem; color: var(--navy); }
.brand__tag { font-family: var(--font-brand); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--clay-700); font-weight: 600; }

.nav__toggle {
  display: inline-grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200); background: var(--white); color: var(--navy); cursor: pointer;
}
.nav__toggle svg { width: 1.35rem; height: 1.35rem; }
.nav__toggle .i-close { display: none; }
.nav__toggle[aria-expanded="true"] .i-close { display: block; }
.nav__toggle[aria-expanded="true"] .i-open { display: none; }
.nav {
  position: absolute; inset: 100% 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--slate-200);
  box-shadow: var(--shadow); padding: 1rem 1.25rem 1.5rem; display: none;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.nav[data-open="true"] { display: block; animation: slide-down .25s var(--ease); }
.nav__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.nav__link {
  display: block; padding: .75rem .5rem; color: var(--navy); font-weight: 500;
  text-decoration: none; border-bottom: 1px solid rgb(210 203 184 / .5);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--clay-700); }
.nav__link[aria-current="page"] { font-weight: 600; }
@keyframes slide-down { from { opacity: 0; transform: translateY(-.4rem); } }

@media (min-width: 62em) {
  .nav__toggle { display: none; }
  .nav { position: static; display: flex; align-items: center; gap: 1.25rem; background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible; }
  .nav__list { display: flex; margin: 0; gap: .25rem; }
  .nav__link { border: 0; padding: .5rem .85rem; font-size: .95rem; position: relative; }
  .nav__link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s var(--ease); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
}

/* ---------- 6. Hero Editorial Renacentista ---------- */
.hero-davinci {
  background: linear-gradient(135deg, #F4EFE2 0%, var(--parchment) 55%, #E4DEC9 100%);
  border-bottom: 1px solid var(--slate-200);
  padding-block: clamp(2.8rem, 4.5vw, 4.8rem);
  position: relative; overflow: hidden;
}
.hero-davinci::before {
  content: ""; position: absolute; inset: 1.15rem;
  border: 1px solid rgb(24 40 37 / .14); pointer-events: none;
}
.hero-davinci__grid {
  display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: center;
}
@media (min-width: 56em) {
  .hero-davinci__grid { grid-template-columns: 1fr 1.05fr; }
}
.hero-logo-card {
  text-align: center; padding: .75rem;
}
.hero-logo-card img {
  width: min(100%, 27rem); margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgb(198 156 78 / .45);
}
.hero-davinci__copy h1 {
  font-size: clamp(1.85rem, 1.3rem + 2vw, 2.75rem);
  color: var(--navy);
  margin-bottom: .7rem;
}
.hero-davinci__copy p {
  color: var(--ink); font-size: 1.06rem; max-width: 36rem; opacity: .9;
}
.nexxos-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .9rem; border-radius: 999px;
  background: var(--navy); border: 1px solid var(--gold);
  font: 600 .72rem var(--font-brand); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-100); margin-bottom: 1rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem;
}

/* ---------- 7. Retrato Editorial en Inicio ---------- */
.editorial-intro {
  background: var(--white); border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 2.8rem);
  box-shadow: var(--shadow-sm); position: relative;
}
.editorial-intro__grid {
  display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center;
}
@media (min-width: 52em) {
  .editorial-intro__grid { grid-template-columns: 16rem 1fr; }
}
.editorial-portrait { text-align: center; }
.editorial-portrait__img {
  width: 14rem; height: 14rem; margin-inline: auto;
  border-radius: 50%; object-fit: cover;
  border: 3px solid var(--gold); padding: .28rem; background: var(--bg);
  box-shadow: var(--shadow);
}
.editorial-portrait__caption {
  margin-top: .8rem; font-family: var(--font-brand); font-size: .75rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy-700); font-weight: 600;
}
.editorial-quote {
  font: italic 500 1.28rem/1.45 var(--font-display);
  color: var(--navy); border-left: 3px solid var(--gold);
  padding-left: 1.1rem; margin: 0 0 1rem;
}

/* ---------- 8. Cards, Pilares y Filosofía ---------- */
.card {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.65rem; box-shadow: var(--shadow-sm); color: var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.card__icon {
  width: 2.9rem; height: 2.9rem; border-radius: var(--radius-sm); display: grid; place-items: center;
  margin-bottom: 1rem; background: var(--navy-100); color: var(--navy); border: 1px solid var(--slate-200);
}
.card__icon svg { width: 1.45rem; height: 1.45rem; }
.card--navy { background: var(--navy); color: #E4ECE9; border-color: var(--gold); }
.card--navy h3 { color: #F7F4EC; }
.card--navy p { color: #D8E2DE; }
.card--navy .card__icon { background: rgb(198 156 78 / .18); color: var(--gold); border-color: rgb(198 156 78 / .4); }
.card p:last-child { margin-bottom: 0; }
@media (max-width: 48em) {
  .card[style*="span 2"] { grid-column: 1 / -1 !important; }
}

/* ---------- 9. Split (texto + imagen/formulario) ---------- */
.split { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 58em) { .split { grid-template-columns: 1fr 1.08fr; } .split--rev > :first-child { order: 2; } }
.frame { position: relative; border-radius: var(--radius); }
.frame img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); border: 1px solid var(--slate-200); }
.checklist { list-style: none; padding: 0; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C69C4E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 68% no-repeat;
}

/* ---------- 10. Formularios (Revisados al detalle para legibilidad total) ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.35rem);
  box-shadow: var(--shadow); border: 1px solid var(--slate-200);
  border-top: 4px solid var(--navy); color: var(--ink);
  width: 100%;
}
.form-card h2, .form-card h3 { color: var(--navy); }
.form {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
/* Solo dividir campos cortos cuando hay espacio amplio, manteniendo selects e inputs largos al 100% */
@media (min-width: 38em) {
  .form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label, .field legend {
  font-weight: 600; font-size: .92rem; line-height: 1.35;
  color: var(--navy); display: block;
}
.field .req { color: var(--clay-700); margin-left: .15rem; }

.field input,
.field select,
.field textarea {
  width: 100%; min-height: 3rem; padding: .68rem .95rem;
  font-family: var(--font-body); font-size: .96rem; line-height: 1.45;
  color: #141E1B; background-color: #FFFFFF;
  border: 1.5px solid #9BA8A2; border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
  overflow: visible; text-overflow: ellipsis;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #5C6B64; opacity: 1;
}
/* Select con flecha SVG nítida y espacio completo para que nunca se corte el texto */
.field select {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23182825' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 1.1rem;
  cursor: pointer;
}
.field textarea { min-height: 6.8rem; resize: vertical; line-height: 1.55; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(198 156 78 / .35);
}
.field .hint { font-size: .82rem; color: var(--muted); }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .88rem; color: var(--ink); }
.check input { margin-top: .22rem; width: 1.15rem; height: 1.15rem; min-height: auto; accent-color: var(--navy); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { grid-column: 1 / -1; padding: .9rem 1.05rem; border-radius: var(--radius-sm); font-weight: 500; display: none; }
.form-status[data-state] { display: block; }
.form-status[data-state="ok"] { background: #E3F3EA; color: #13462B; border: 1px solid #9ACFB2; }
.form-status[data-state="error"] { background: #FBE9E7; color: #751B13; border: 1px solid #E8ABA4; }
.form-status[data-state="info"] { background: var(--gold-100); color: #543E0E; border: 1px solid #DFC687; }
.form [type="submit"] { grid-column: 1 / -1; margin-top: .25rem; }
.form [type="submit"][aria-busy="true"] { opacity: .7; pointer-events: none; }

/* ---------- 11. Propiedades y Filtros ---------- */
.filters {
  background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 1.35rem; box-shadow: var(--shadow-sm);
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
  align-items: end; margin-bottom: 1.25rem;
}
@media (min-width: 52em) {
  .filters { grid-template-columns: repeat(3, 1fr); }
}
.filters .field--search { grid-column: 1 / -1; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: 1.25rem; color: var(--muted); font-size: .94rem; }
.results-bar strong { color: var(--navy); }
.seg {
  display: flex; width: 100%; border: 1.5px solid var(--navy);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--white);
}
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--navy);
  font: 600 .84rem/1.2 var(--font-body); padding: .55rem .5rem;
  cursor: pointer; min-height: 2.95rem; text-align: center; white-space: nowrap;
}
.seg button + button { border-left: 1px solid rgb(24 40 37 / .2); }
.seg button[aria-pressed="true"] { background: var(--navy); color: #F7F4EC; }

.prop-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); }
.prop-card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prop-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--slate-100); }
.prop-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prop-card:hover .prop-card__media img { transform: scale(1.05); }
.tag {
  position: absolute; top: .75rem; left: .75rem; background: var(--navy); color: #F7F4EC;
  font: 600 .7rem var(--font-body); letter-spacing: .08em; text-transform: uppercase;
  padding: .32rem .68rem; border-radius: var(--radius-sm);
}
.tag--demo { left: auto; right: .75rem; background: rgb(247 244 236 / .94); color: var(--navy); border: 1px solid var(--slate-200); }
.prop-card__body { padding: 1.2rem 1.35rem 1.4rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.prop-card__price { font: 700 1.48rem var(--font-display); color: var(--clay-700); line-height: 1.1; }
.prop-card__price small { display: block; font: 400 .84rem var(--font-body); color: var(--muted); margin-top: .2rem; }
.prop-card__title { font-size: 1.18rem; margin: 0; color: var(--navy); }
.prop-card__loc { display: flex; align-items: center; gap: .38rem; color: var(--muted); font-size: .88rem; margin: 0; }
.prop-card__loc svg { width: .95rem; height: .95rem; color: var(--clay-700); flex: none; }
.feats {
  list-style: none; padding: .75rem 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap;
  gap: .45rem 1rem; border-top: 1px dashed var(--slate-200); font-size: .85rem; color: var(--ink);
}
.feats li { display: inline-flex; align-items: center; gap: .35rem; }
.prop-card__actions { display: flex; gap: .55rem; margin-top: .95rem; }
.prop-card__actions .btn { flex: 1; }
.empty { text-align: center; padding: 2.75rem 1rem; background: var(--white); border-radius: var(--radius); border: 1px dashed var(--slate-200); }

/* Modal de ficha */
.modal { width: min(100% - 1.5rem, 46rem); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--slate-200); border-radius: var(--radius-lg); overflow: auto; box-shadow: var(--shadow-lg); background: var(--white); color: var(--ink); }
.modal::backdrop { background: rgb(16 28 26 / .65); backdrop-filter: blur(3px); }
.modal__img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.modal__body { padding: 1.5rem 1.75rem 1.75rem; }
.modal__close { position: absolute; top: .75rem; right: .75rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; background: rgb(247 244 236 / .95); color: var(--navy); cursor: pointer; font-size: 1.35rem; line-height: 1; box-shadow: var(--shadow); }

/* ---------- 12. Hogares que Hablan ---------- */
.hogares-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); }
.hogar-card { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.hogar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hogar-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.hogar-card__media img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.14) contrast(1.02); transition: transform .7s var(--ease); }
.hogar-card:hover .hogar-card__media img { transform: scale(1.04); }
.hogar-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.hogar-card__body h3 { font-style: italic; margin-bottom: .25rem; color: var(--navy); }
.hogar-card__body p { color: var(--muted); font-size: .94rem; }
.hogar-card__note { margin-top: auto; padding-top: .75rem; border-top: 1px dashed var(--slate-200); display: inline-block; font: 600 .7rem var(--font-brand); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-700); }

/* ---------- 13. Sobre mí y Psicoterapia ---------- */
.degrees-grid {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin-block: 2rem;
}
.degree-item {
  background: var(--white); border: 1px solid var(--slate-200); border-top: 3px solid var(--gold);
  border-radius: var(--radius-sm); padding: 1.15rem 1.25rem; text-align: center;
}
.degree-item strong {
  display: block; font: 600 .78rem var(--font-brand); letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: .35rem;
}
.degree-item span { font-size: .9rem; color: var(--muted); }

.approaches { display: grid; gap: .75rem; }
.approach { background: var(--white); border: 1px solid var(--slate-200); border-radius: var(--radius-sm); overflow: hidden; }
.approach[open] { border-color: var(--gold); box-shadow: var(--shadow-sm); }
.approach summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .85rem; padding: 1rem 1.2rem; font: 600 1.08rem var(--font-display); color: var(--navy); }
.approach summary::-webkit-details-marker { display: none; }
.approach summary::after { content: "+"; margin-left: auto; font: 400 1.4rem/1 var(--font-body); color: var(--clay-700); transition: transform .25s var(--ease); }
.approach[open] summary::after { transform: rotate(45deg); }
.approach__abbr { flex: none; min-width: 3rem; text-align: center; padding: .22rem .48rem; border-radius: var(--radius-sm); background: var(--navy); color: var(--gold-100); font: 600 .7rem var(--font-brand); letter-spacing: .08em; }
.approach__body { padding: 0 1.2rem 1.15rem; color: var(--muted); font-size: .95rem; }

.notice { border-left: 3px solid var(--gold); background: var(--white); padding: 1.05rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); font-size: .95rem; box-shadow: var(--shadow-sm); }
.notice strong { color: var(--navy); }

.about-gallery { display: grid; gap: .85rem; }
.about-gallery__portraits { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.about-portrait { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--slate-200); box-shadow: var(--shadow-sm); aspect-ratio: 1 / 1; background: var(--slate-100); }
.about-portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.about-portrait:hover img { transform: scale(1.05); }
.about-author-chip { display: inline-flex; align-items: center; gap: .8rem; margin-bottom: .75rem; padding: .35rem .85rem .35rem .35rem; background: var(--white); border: 1px solid var(--slate-200); border-radius: 999px; }
.about-author-chip img { width: 3rem; height: 3rem; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--gold); flex: none; }

/* ---------- 14. Page Header (Páginas Internas) ---------- */
.page-hero {
  background: linear-gradient(135deg, #F4EFE2 0%, var(--parchment) 100%);
  border-bottom: 1px solid var(--slate-200);
  padding-block: clamp(2.5rem, 4vw, 4rem);
  text-align: center;
}
.page-hero h1 { max-width: 24ch; margin-inline: auto; }
.page-hero .lead { max-width: 42rem; margin-inline: auto; margin-bottom: 0; color: var(--ink); opacity: .88; }

/* ---------- 15. Footer (Sombra Sfumato de La Gioconda + Conversor UF) ---------- */
.site-footer { background: var(--navy-900); color: #C5D0CC; padding-top: 3.5rem; font-size: .92rem; border-top: 3px solid var(--gold); }
.site-footer h2 { font: 600 .76rem var(--font-brand); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.site-footer a { color: #E8EFEA; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__grid { display: grid; gap: 2.2rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); padding-bottom: 2.5rem; }
.footer__brand .brand { color: #F7F4EC; margin-bottom: .75rem; }
.footer__brand .brand img {
  width: 5rem; height: 3.75rem; object-fit: contain;
  background: var(--parchment); border: 1px solid var(--gold);
  border-radius: .4rem; padding: .15rem;
}
.footer__brand .brand__name { color: #F7F4EC; }
.footer__brand .brand__tag { color: var(--gold); }
.social { display: flex; gap: .55rem; margin-top: .9rem; }
.social a { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgb(247 244 236 / .25); transition: all .22s var(--ease); }
.social a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-2px); text-decoration: none; }
.social svg { width: 1.15rem; height: 1.15rem; }

/* Mini Calculadora / Conversor UF en el Pie de Página */
.footer-uf-box {
  background: rgb(255 255 255 / .06); border: 1px solid rgb(198 156 78 / .38);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
}
.footer-uf-box__rate {
  font-size: .84rem; color: #DCE4E0; margin-bottom: .65rem;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-uf-box__rate strong { color: var(--gold); font-size: .92rem; }
.footer-uf-box__row {
  display: grid; grid-template-columns: 7rem 1fr; gap: .6rem; align-items: center;
}
.footer-uf-box input {
  width: 100%; min-height: 2.45rem; padding: .42rem .65rem; border-radius: var(--radius-sm);
  border: 1px solid rgb(255 255 255 / .3); background: #182825;
  color: #FFFFFF; font: 600 .92rem var(--font-body);
}
.footer-uf-box__out {
  font-weight: 700; color: #F7F4EC; font-size: .96rem; text-align: right; word-break: break-word;
}

.footer__legal {
  border-top: 1px solid rgb(247 244 236 / .12); padding-block: 1.35rem;
  font-size: .82rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
}

/* ---------- 16. WhatsApp flotante ---------- */
.wa { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 150; display: grid; justify-items: end; gap: .65rem; }
.wa__btn {
  width: 3.5rem; height: 3.5rem; border-radius: 50%; border: 0; display: grid; place-items: center;
  color: #fff; background: #1F6343; cursor: pointer; box-shadow: 0 8px 22px rgb(16 28 26 / .32);
  text-decoration: none; transition: transform .22s var(--ease); position: relative;
}
.wa__btn:hover { transform: scale(1.06); color: #fff; }
.wa__btn svg { width: 1.85rem; height: 1.85rem; }
.wa__menu {
  display: none; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: .6rem; width: min(17.5rem, calc(100vw - 2.5rem));
  border: 1px solid var(--slate-200);
}
.wa__menu[data-open="true"] { display: grid; gap: .3rem; animation: slide-down .22s var(--ease); }
.wa__menu p { margin: .25rem .55rem .45rem; font-weight: 600; font-size: .84rem; color: var(--navy); }
.wa__menu a { display: block; padding: .68rem .85rem; border-radius: var(--radius-sm); text-decoration: none; color: var(--navy); font-weight: 500; font-size: .88rem; background: var(--slate-100); }
.wa__menu a:hover { background: var(--navy); color: #F7F4EC; }

/* ---------- 17. Animaciones suaves ---------- */
.js .reveal { opacity: 0; transform: translateY(1rem); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa, .site-footer { display: none; } }
