/* =========================================================
   Team Díaz · Florida Realtors®
   Paleta tomada del logo: azul marino profundo + oro metálico
   ========================================================= */
:root {
  --navy-900: #06142b;
  --navy-800: #0b1d3a;
  --navy-700: #0f2a52;
  --navy-500: #1b4a86;
  --gold-700: #8a5a14;
  --gold-600: #a8741f;
  --gold-500: #c9962e;
  --gold-300: #ecc969;
  --gold-100: #faecc0;
  --cream: #f8f5ee;
  --white: #ffffff;
  --ink: #16223a;
  --muted: #5b6475;
  --line: #e6e0d2;

  --gold-grad: linear-gradient(120deg, #8a5a14 0%, #c9962e 28%, #f3d98a 50%, #c9962e 72%, #8a5a14 100%);
  --navy-grad: linear-gradient(150deg, #0f2a52 0%, #0b1d3a 45%, #06142b 100%);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(6, 20, 43, .06);
  --shadow: 0 18px 40px -18px rgba(6, 20, 43, .35);
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--navy-800); color: var(--white); padding: .7rem 1.1rem; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

/* ---------- Tipografía utilitaria ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .8rem;
  font-size: .75rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold-grad); }
.eyebrow--light { color: var(--gold-300); }

.gold-text {
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; content-visibility: auto; contain-intrinsic-size: auto 900px; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-grad); color: #dfe6f2; }

.section__head { max-width: 680px; margin: 0 auto clamp(2.5rem, 5vw, 3.5rem); text-align: center; }
.section__head .eyebrow { justify-content: center; }
.section__head--row {
  max-width: none; text-align: left;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.section__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem); letter-spacing: -.01em; color: var(--navy-800);
}
.section__title em { font-style: italic; font-weight: 600; color: var(--gold-600); }
.section--navy .section__title, .contact .section__title { color: var(--white); }
.section--navy .section__title em, .contact .section__title em { color: var(--gold-300); }
.section__lead { color: var(--muted); margin-top: 1rem; font-size: 1.05rem; }

/* ---------- Botones ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.5rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: var(--pad-y) var(--pad-x);
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  border-radius: 999px; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .6s var(--ease), background-color .25s, color .25s;
}
.btn svg { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--lg { --pad-y: 1.05rem; --pad-x: 2rem; }
.btn--block { width: 100%; }
.btn--gold {
  background: var(--gold-grad); background-size: 220% auto; color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(168, 116, 31, .7), inset 0 1px 0 rgba(255,255,255,.4);
}
.btn--gold:hover { background-position: right center; transform: translateY(-2px); }
.btn--navy { background: var(--navy-800); color: var(--white); box-shadow: var(--shadow); }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { color: var(--white); border: 1px solid rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--gold-300); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo img { height: 58px; width: auto; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.8rem; }
.nav__list a {
  position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--navy-800); padding: .4rem 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: scaleX(1); }
.nav__cta { --pad-y: .7rem; --pad-x: 1.2rem; font-size: .75rem; }

.nav-toggle { display: none; width: 44px; height: 44px; position: relative; }
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--navy-800); border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--white);
  min-height: min(calc(100svh - var(--header-h)), 920px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(4rem, 9vh, 7rem) 0 2.5rem;
  overflow: hidden;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__bg img { object-fit: cover; object-position: center 60%; animation: heroZoom 18s ease-out both; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(6,20,43,.94) 0%, rgba(11,29,58,.82) 42%, rgba(11,29,58,.35) 75%, rgba(11,29,58,.2) 100%),
    linear-gradient(0deg, rgba(6,20,43,.85) 0%, transparent 35%);
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.hero__content { max-width: 1200px; }
.hero__title {
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(2.6rem, 6.2vw, 5rem); line-height: 1.04; letter-spacing: -.015em;
  max-width: 14ch; margin-bottom: 1.4rem;
}
.hero__title .gold-text { display: block; font-style: italic; font-weight: 600; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.hero__lead { max-width: 54ch; font-size: clamp(1rem, 1.4vw, 1.12rem); color: #d3dbe8; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__note { display: flex; align-items: center; gap: .5rem; margin-top: 1.2rem; font-size: .85rem; color: #aeb9cc; }
.hero__note svg { width: 16px; height: 16px; color: var(--gold-300); }

.stats {
  margin-top: clamp(3rem, 8vh, 5rem);
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(236, 201, 105, .35);
}
.stats li { padding: 1.5rem 1rem 0 0; }
.stats strong {
  display: block; font-family: var(--font-serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stats span { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: #b7c2d4; }

/* ---------- Tarjetas de servicio ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.card {
  position: relative; isolation: isolate; overflow: hidden; text-align: left;
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); color: var(--white);
  box-shadow: var(--shadow); transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform .8s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,20,43,0) 55%, rgba(6,20,43,.85) 100%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid rgba(236, 201, 105, 0); transition: border-color .45s;
}
.card:hover, .card:focus-visible { transform: translateY(-6px); box-shadow: 0 30px 50px -20px rgba(6,20,43,.55); }
.card:hover img, .card:focus-visible img { transform: scale(1.07); }
.card:hover::after, .card:focus-visible::after { border-color: rgba(236, 201, 105, .7); }
.card__body {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem 1.6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.card__title { font-family: var(--font-serif); font-size: 2rem; font-weight: 700; line-height: 1; }
.card__arrow {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(236, 201, 105, .6); color: var(--gold-300);
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.card__arrow svg { width: 18px; height: 18px; }
.card:hover .card__arrow, .card:focus-visible .card__arrow {
  background: var(--gold-grad); color: var(--navy-900); border-color: transparent; transform: translateX(3px);
}

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__media::before {
  content: ""; position: absolute; inset: -18px 18px 18px -18px; z-index: -1;
  border: 1px solid var(--gold-500); border-radius: var(--radius-lg);
}
.about__badge {
  position: absolute; right: -1.2rem; bottom: 2rem; max-width: 190px;
  background: var(--navy-grad); color: var(--white); padding: 1.3rem 1.4rem; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid rgba(236, 201, 105, .35);
}
.about__badge strong {
  display: block; font-family: var(--font-serif); font-size: 2.8rem; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.about__badge span { font-size: .78rem; letter-spacing: .06em; color: #c8d1e0; }
.about__text > p { color: var(--muted); }
.about__text .section__title { margin-bottom: 1.4rem; }
.checks { display: grid; gap: .8rem; margin: 1.8rem 0 2.2rem; }
.checks li { display: flex; gap: .8rem; align-items: flex-start; font-weight: 500; color: var(--navy-800); }
.checks svg {
  flex: none; width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  background: var(--gold-grad); color: var(--navy-900);
}

/* ---------- Proceso ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step {
  position: relative; padding: 2.4rem 2rem; border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  border: 1px solid rgba(236, 201, 105, .18);
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-6px); border-color: rgba(236, 201, 105, .55); background: rgba(255,255,255,.07); }
.step__num {
  display: inline-block; font-family: var(--font-serif); font-size: 3.4rem; font-weight: 700; line-height: 1;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.2rem;
}
.step h3 { font-family: var(--font-serif); font-size: 1.65rem; color: var(--white); margin-bottom: .7rem; }
.step p { margin: 0; color: #b9c4d6; font-size: .95rem; }

/* ---------- Sliders (scroll-snap nativo) ---------- */
.slider {
  display: flex; gap: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: .5rem max(1.25rem, (100% - 1200px) / 2) 1.5rem;
  scroll-padding-inline: max(1.25rem, (100% - 1200px) / 2);
}
.slider::-webkit-scrollbar { display: none; }
.slider > li { scroll-snap-align: start; flex: none; }
.slider-nav { display: flex; gap: .6rem; flex: none; }
.slider-nav button {
  width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--white); color: var(--navy-800);
  transition: background .25s, color .25s, border-color .25s;
}
.slider-nav button svg { width: 20px; height: 20px; }
.slider-nav button:hover { background: var(--navy-800); color: var(--gold-300); border-color: var(--navy-800); }

.gallery > li { width: clamp(240px, 24vw, 320px); }
.gallery img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform .5s var(--ease);
}
.gallery li:hover img { transform: scale(1.02); }

.testimonials > li { width: clamp(290px, 34vw, 420px); }
.quote {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.stars { color: var(--gold-500); letter-spacing: .2em; font-size: 1.05rem; margin-bottom: 1rem; }
.quote blockquote {
  margin: 0 0 1.6rem; flex: 1; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.45; color: var(--navy-800);
}
.quote__author { display: flex; align-items: center; gap: .9rem; margin: 0; font-size: .82rem; color: var(--muted); }
.quote__author strong { display: block; color: var(--navy-800); font-size: .95rem; }
.avatar {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-grad); color: var(--gold-300); font-weight: 600; font-size: .8rem; letter-spacing: .05em;
}

/* ---------- Contacto ---------- */
.contact {
  position: relative; isolation: isolate; color: #d3dbe8; overflow: hidden;
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
}
.contact__bg, .contact__bg img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; object-fit: cover; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(6,20,43,.96) 30%, rgba(11,29,58,.82) 100%); }
.contact__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.contact__info .section__title { margin-bottom: 1.2rem; }
.contact__list { display: grid; gap: 1rem; margin-top: 1.8rem; }

/* Tarjetas de agentes */
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.agent {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .4rem 1rem;
  padding: 1.1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.05); border: 1px solid rgba(236, 201, 105, .25);
  backdrop-filter: blur(6px); transition: border-color .3s, background .3s;
}
.agent:hover { border-color: rgba(236, 201, 105, .6); background: rgba(255,255,255,.08); }
.agent__photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  padding: 2px; background: var(--gold-grad);
}
.agent__name { font-family: var(--font-serif); font-size: 1.5rem; color: var(--white); line-height: 1.1; }
.agent__role { margin: 0; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.agent__phone { display: inline-block; margin-top: .2rem; font-weight: 600; font-size: .92rem; color: var(--white); white-space: nowrap; }
.agent__phone:hover { color: var(--gold-300); }
.agent__actions { grid-column: 1 / -1; display: flex; gap: .5rem; margin-top: .5rem; }
.agent__btn {
  flex: 1; display: grid; place-items: center; height: 40px; border-radius: 999px;
  border: 1px solid rgba(236, 201, 105, .45); color: var(--gold-300); transition: background .25s, color .25s, border-color .25s;
}
.agent__btn svg { width: 18px; height: 18px; }
.agent__btn:hover { background: var(--gold-grad); color: var(--navy-900); border-color: transparent; }
.agent__btn--wa:hover { background: #25d366; color: var(--white); }
.contact__list li { display: flex; align-items: center; gap: 1rem; font-weight: 500; color: var(--white); }
.contact__list svg {
  width: 44px; height: 44px; padding: 11px; flex: none; border-radius: 50%;
  border: 1px solid rgba(236, 201, 105, .45); color: var(--gold-300);
}
.contact__list a:hover { color: var(--gold-300); }

/* ---------- Formularios ---------- */
.form { position: relative; }
.form--card { background: var(--white); color: var(--ink); padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--radius-lg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.6); }
.form__title { font-family: var(--font-serif); font-size: 1.9rem; color: var(--navy-800); margin-bottom: 1.4rem; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field--full { grid-column: 1 / -1; }
.field > span, .field legend { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: .95rem; color: var(--ink);
  padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fcfbf8;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field select {
  appearance: none; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%230b1d3a' stroke-width='2' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 16px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); background: var(--white); box-shadow: 0 0 0 4px rgba(201, 150, 46, .15);
}
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; }
.field__count { align-self: flex-end; font-size: .72rem; color: var(--muted); }

/* Opciones tipo "chip" */
.chips { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: .5rem; }
.chips__list { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label span {
  display: inline-block; padding: .55rem 1rem; border-radius: 999px; font-size: .85rem; cursor: pointer;
  border: 1px solid var(--line); background: #fcfbf8; transition: all .2s;
}
.chips label:hover span { border-color: var(--gold-500); }
.chips input:checked + span { background: var(--navy-800); color: var(--gold-100); border-color: var(--navy-800); }
.chips input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form__status { margin: 1rem 0 0; font-size: .9rem; text-align: center; min-height: 1.4em; }
.form__status.is-ok { color: #1e7d4f; }
.form__status.is-error { color: #c0392b; }
.form__legal { margin: .6rem 0 0; font-size: .75rem; color: var(--muted); text-align: center; }
.form__legal a { text-decoration: underline; }

/* ---------- Modal ---------- */
.modal {
  width: min(640px, 100% - 1.5rem); max-height: min(90vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius-lg); background: var(--white);
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.5); overflow: hidden auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgba(6, 20, 43, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .35s var(--ease); }
.modal[open]::backdrop { animation: fadeIn .35s ease; }
.modal .form { padding: clamp(1.6rem, 4vw, 2.6rem); border-top: 4px solid transparent; border-image: var(--gold-grad) 1; }
.modal__close {
  position: absolute; top: .9rem; right: .9rem; width: 42px; height: 42px; border-radius: 50%;
  font-size: 1.8rem; line-height: 1; color: var(--navy-800); background: var(--cream);
  transition: background .2s, transform .2s;
}
.modal__close:hover { background: var(--line); transform: rotate(90deg); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } }
body.modal-open { overflow: hidden; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--line); padding-top: 4rem; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand img { width: 160px; margin-bottom: 1.2rem; }
.footer__brand p { color: var(--muted); max-width: 32ch; }
.footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.footer__col h4 { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); margin-bottom: .4rem; }
.footer__col a, .footer__col button { color: var(--navy-800); transition: color .2s; }
.footer__col a:hover, .footer__col button:hover { color: var(--gold-600); }
.socials { display: flex; gap: .7rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-300); transition: transform .25s, background .25s;
}
.socials a:hover { transform: translateY(-3px); background: var(--navy-500); color: var(--gold-100); }
.socials svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding: 1.5rem 0 6rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted);
}
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a:hover { color: var(--gold-600); }

/* ---------- Botones flotantes ---------- */
.fab { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; display: flex; flex-direction: column; gap: .75rem; }
.fab__btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--white);
  box-shadow: 0 12px 25px -8px rgba(6,20,43,.5); transition: transform .25s var(--ease);
}
.fab__btn:hover { transform: scale(1.08); }
.fab__btn svg { width: 26px; height: 26px; }
.fab__btn--phone { background: var(--navy-800); color: var(--gold-300); }
.fab__btn--wa { background: #25d366; }
.fab__btn--wa::after {
  content: ""; position: absolute; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.4s ease-out infinite; pointer-events: none;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.steps .reveal:nth-child(2) { transition-delay: .12s; }
.steps .reveal:nth-child(3) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 1.2rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 5 / 4; }
}

/* Menú hamburguesa desde 1200px (7 enlaces y el logo no caben antes) */
@media (max-width: 1200px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 50px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem 1.25rem 2rem; background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); visibility: hidden;
    transition: transform .4s var(--ease), visibility 0s .4s;
  }
  .nav.is-open { transform: none; visibility: visible; transition: transform .4s var(--ease); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
  .nav__list a::after { display: none; }
  .header__inner { gap: .75rem; }
  .lang { margin-left: auto; }
}

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__inner { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; margin-inline: auto 1.2rem; }
  .steps { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: .95rem; }
  .agents { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 3.5rem; }
  .hero::before { background: linear-gradient(180deg, rgba(6,20,43,.75) 0%, rgba(6,20,43,.9) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { aspect-ratio: 4 / 3; }
  .slider-nav { display: none; }
  .form__grid { grid-template-columns: 1fr; }
  .about__badge { right: -.6rem; }
  .footer__legal { gap: 1rem; }
  .fab__btn { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Selector de intención (modal) ---------- */
[hidden] { display: none !important; }
.picker { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.picker__btn {
  text-align: left; padding: 1.2rem 1.3rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fcfbf8; transition: all .25s var(--ease);
}
.picker__btn strong { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: var(--navy-800); }
.picker__btn small { display: block; font-size: .8rem; line-height: 1.4; color: var(--muted); }
.picker__btn:focus-visible { border-color: var(--gold-500); }
.picker__btn:hover { border-color: var(--gold-500); background: var(--navy-800); transform: translateY(-2px); }
.picker__btn:hover strong { color: var(--gold-300); }
.picker__btn:hover small { color: #c8d1e0; }
@media (max-width: 600px) { .picker { grid-template-columns: 1fr; } }
.form__sep {
  display: flex; align-items: center; gap: 1rem; margin: .8rem 0 0;
  font-family: var(--font-serif); font-size: 1.35rem; font-weight: 700; color: var(--navy-800);
}
.form__sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Selector de idioma ---------- */
.lang {
  display: flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  flex: none;
}
.lang a {
  min-width: 38px; padding: .35rem .6rem; border-radius: 999px; text-align: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: var(--navy-700);
  transition: background .2s, color .2s;
}
.lang a:hover { color: var(--gold-600); }
.lang a[aria-current="page"] { background: var(--navy-800); color: var(--gold-300); }

/* ---------- Selector de agente ---------- */
.modal--sm { width: min(440px, 100% - 1.5rem); }
.cp { position: relative; padding: clamp(1.6rem, 4vw, 2.2rem); border-top: 4px solid transparent; border-image: var(--gold-grad) 1; }
.cp .form__title { margin-bottom: .6rem; padding-right: 2.5rem; }
.cp__hint { color: var(--muted); font-size: .9rem; margin-bottom: .4rem; }
.cp__list { display: grid; gap: .75rem; margin-top: 1rem; }
.cp__item {
  display: flex; align-items: center; gap: 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fcfbf8; transition: background .25s, border-color .25s, transform .25s var(--ease);
}
.cp__item img { width: 56px; height: 56px; border-radius: 50%; padding: 2px; background: var(--gold-grad); flex: none; }
.cp__text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.cp__text strong { font-family: var(--font-serif); font-size: 1.4rem; color: var(--navy-800); }
.cp__text small { font-size: .88rem; font-weight: 500; color: var(--muted); }
.cp__icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-800); color: var(--gold-300); transition: background .25s, color .25s;
}
.cp__icon svg { width: 20px; height: 20px; }
.cp__item--wa .cp__icon { background: #25d366; color: var(--white); }
.cp__item:hover, .cp__item:focus-visible { border-color: var(--gold-500); background: var(--white); transform: translateY(-2px); }
.cp__item:hover .cp__icon { background: var(--gold-grad); color: var(--navy-900); }
.cp__item--wa:hover .cp__icon { background: #1ebe5a; color: var(--white); }

/* ---------- Página de propiedades ---------- */
.page-hero {
  background: var(--navy-grad); color: #d3dbe8; text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(5.5rem, 11vw, 8rem);
}
.page-hero .eyebrow { justify-content: center; }
.page-hero__title {
  font-family: var(--font-serif); font-weight: 700; color: var(--white);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem); letter-spacing: -.01em; margin-bottom: 1rem;
}
.page-hero__title em { font-style: italic; font-weight: 600; color: var(--gold-300); }
.page-hero__lead { max-width: 56ch; margin: 0 auto; font-size: 1.05rem; }

.listings { padding-top: 0; content-visibility: visible; }
.listing-agents {
  display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; gap: 1.5rem;
  margin-top: clamp(-4.5rem, -8vw, -3rem); position: relative;
}
.listing-agent {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 2.4rem 2rem 2rem; border-radius: var(--radius-lg); background: var(--white);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.listing-agent:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(6,20,43,.45); }
.listing-agent__photo {
  width: 120px; height: 120px; border-radius: 50%; object-fit: cover;
  padding: 3px; background: var(--gold-grad); margin-bottom: 1.2rem;
}
.listing-agent__name { font-family: var(--font-serif); font-size: 2rem; color: var(--navy-800); }
.listing-agent__role { margin: .3rem 0 1.6rem; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-600); }
.listing-agent__btn { width: 100%; }
.listing-agent__contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin-top: 1.2rem; }
.listing-agent__contact a { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 500; color: var(--navy-700); }
.listing-agent__contact a:hover { color: var(--gold-600); }
.listing-agent__contact svg { width: 16px; height: 16px; color: var(--gold-600); }
.listings__note { margin: 2rem auto 0; max-width: 60ch; text-align: center; font-size: .85rem; color: var(--muted); }

.listings-cta .section__head { margin-bottom: 2rem; }
.listings-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

@media (max-width: 760px) {
  .listing-agents { grid-template-columns: minmax(0, 420px); }
}

/* Encabezado: el logo, el botón y el selector de idioma nunca se encogen */
.header__logo, .lang, .nav__cta, .nav__cta svg { flex: none; }
.nav__list a { white-space: nowrap; }

/* Menú con 7 enlaces en pantallas medianas */
@media (min-width: 1201px) {
  .nav { gap: 1.1rem; }
  .nav__list { gap: 1.05rem; }
  .nav__list a { font-size: .72rem; letter-spacing: .08em; }
  .nav__cta { --pad-x: 1rem; font-size: .7rem; }
}

/* Páginas legales: en móvil el logo ya lleva al inicio */
@media (max-width: 600px) {
  .legal__actions .btn { display: none; }
}

/* ---------- Tarjetas de servicios: cinco opciones ---------- */
.field.is-invalid > span, .field.is-invalid legend { color: #c0392b; }
.field.is-invalid textarea { border-color: #c0392b; }
@media (min-width: 1201px) {
  .cards { grid-template-columns: repeat(5, 1fr); gap: 1rem; }
  .card__body { padding: 1.1rem 1.2rem; gap: .5rem; }
  .card__title { font-size: 1.7rem; }
  .card__arrow { width: 38px; height: 38px; }
}
@media (max-width: 1200px) and (min-width: 601px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .card { aspect-ratio: 3 / 2; }
  .cards > .card:last-child { grid-column: 1 / -1; aspect-ratio: 3 / 1; }
}

/* ---------- Selector inicial: la última opción impar ocupa todo el ancho ---------- */
.picker__btn:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Formularios largos: subtítulos, notas y aceptación ---------- */
.form__sub { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; color: var(--navy-800); margin: 0; }
.form__note { color: var(--muted); font-size: .9rem; margin: 0; }
.field--accept { flex-direction: row; align-items: center; gap: .6rem; }
.field--accept input { width: 20px; height: 20px; flex: none; accent-color: var(--navy-800); }
.field--accept > span { font-size: .85rem; letter-spacing: 0; text-transform: none; }

/* Correo de cada agente (sección Contacto) */
.agent__email { display: block; margin-top: .1rem; font-size: .8rem; color: rgba(255, 255, 255, .75); overflow-wrap: anywhere; }
.agent__email:hover { color: var(--gold-300); }
