/* ============================================================
   Gino D'Odorico — RE/MAX Cosmopolita
   Sistema: azul noche #0B2447 · azul RE/MAX #003DA5 · rojo #DC1C2E
   papel #F8F7F4 · tinta #101826 · oro premio #C9A227
   Display: Archivo (expandida, black) · Cuerpo: Archivo · Datos: IBM Plex Mono
   ============================================================ */

@font-face {
  font-family: "Archivo";
  src: url("assets/fonts/Archivo-100-900-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("assets/fonts/IBMPlexMono-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --azul-noche: #0B2447;
  --azul-remax: #003DA5;
  --rojo: #DC1C2E;
  --rojo-oscuro: #B31424;
  --papel: #F8F7F4;
  --blanco: #FFFFFF;
  --tinta: #101826;
  --tinta-suave: #45526B;
  --oro: #C9A227;
  --wa: #1FA855;
  --wa-oscuro: #178643;
  --borde: #E3E1DB;
  --radio: 14px;
  --ancho: 1120px;
  --fs-display: clamp(2.1rem, 5.5vw + 0.5rem, 4.1rem);
  --fs-h2: clamp(1.6rem, 2.6vw + 0.6rem, 2.4rem);
  --sombra: 0 10px 30px rgba(11, 36, 71, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; }
[id] { scroll-margin-top: 5rem; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(0, 61, 165, 0.15); }
body {
  overflow-x: clip;
  font-family: "Archivo", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.08; text-wrap: balance; }
h1 {
  font-weight: 900;
  font-stretch: 115%;
  font-size: var(--fs-display);
  letter-spacing: -0.015em;
  text-transform: uppercase;
}
h1 em { font-style: normal; color: #FF5A66; }
h2 {
  font-weight: 850;
  font-stretch: 112%;
  font-size: var(--fs-h2);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.lede { max-width: 62ch; color: var(--tinta-suave); margin-bottom: 2rem; }

a { color: var(--azul-remax); }
:focus-visible { outline: 3px solid var(--azul-remax); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .footer :focus-visible, .ticker :focus-visible { outline-color: #7FB3FF; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--azul-remax); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 0.95rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--rojo); color: #fff; box-shadow: 0 6px 18px rgba(220, 28, 46, 0.30); }
.btn--primary:hover { background: var(--rojo-oscuro); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-oscuro); }
.btn--small { padding: 0.55rem 1.1rem; font-size: 0.9rem; }
.btn--block { width: 100%; }
.ico { width: 1.2em; height: 1.2em; flex: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 36, 71, 0.92); backdrop-filter: blur(8px); }
.nav__inner {
  max-width: var(--ancho); margin: 0 auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; text-decoration: none; min-width: 0; }
.nav__logo { height: 2.6rem; width: auto; max-width: min(62vw, 320px); object-fit: contain; object-position: left center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(168deg, var(--azul-noche) 0%, #0E2E5C 55%, #113767 100%); color: #fff; overflow: hidden; }
.hero__inner {
  max-width: var(--ancho); margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
  display: grid; gap: 2.5rem; grid-template-columns: 1fr; align-items: center;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: #8FB7F5; margin-bottom: 1.1rem;
}
.hero__sub { font-size: 1.15rem; color: #C9D8F0; max-width: 46ch; margin: 1.2rem 0 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__proof {
  margin-top: 1.6rem; font-family: "IBM Plex Mono", monospace; font-size: 0.78rem;
  color: var(--oro); letter-spacing: 0.06em;
}
.hero__photo { position: relative; justify-self: center; max-width: 420px; }
.hero__photo img { border-radius: var(--radio); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.hero__photo figcaption {
  position: absolute; left: 0.9rem; bottom: 0.9rem;
  font-family: "IBM Plex Mono", monospace; font-size: 0.7rem; letter-spacing: 0.08em;
  background: rgba(11, 36, 71, 0.85); color: #fff; padding: 0.35rem 0.7rem; border-radius: 6px;
}

/* ---------- Ticker (elemento firma) ---------- */
.ticker {
  display: flex; align-items: stretch; background: #081A35; color: #E8EEF9;
  border-top: 3px solid var(--rojo); border-bottom: 3px solid var(--rojo);
}
.ticker__label {
  flex: none; display: grid; place-items: center; padding: 0.7rem 1rem;
  background: var(--rojo); color: #fff;
  font-family: "IBM Plex Mono", monospace; font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.18em; line-height: 1.4; text-align: center;
}
.ticker__viewport { overflow: hidden; flex: 1; min-width: 0; display: flex; align-items: center; }
.ticker__track {
  display: flex; gap: 3rem; list-style: none; white-space: nowrap;
  padding: 0.85rem 0; animation: ticker 42s linear infinite; will-change: transform;
}
.ticker__viewport:hover .ticker__track,
.ticker__viewport:focus-within .ticker__track { animation-play-state: paused; }
.ticker__track li {
  font-family: "IBM Plex Mono", monospace; font-size: 0.82rem; font-weight: 400; letter-spacing: 0.04em;
}
.ticker__track li::before { content: "◆"; color: var(--rojo); margin-right: 0.9rem; font-size: 0.6rem; vertical-align: 2px; }
.ticker__track strong { color: #FFD84D; font-weight: 600; }
.ticker__track li.down strong { color: #5BE58A; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section__inner { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; }
.cols { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }

/* ---------- Formulario ---------- */
.section--form { background: var(--blanco); border-bottom: 1px solid var(--borde); }
.form-intro p { color: var(--tinta-suave); max-width: 42ch; }
.checklist { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.8rem; }
.checklist li { padding-left: 2rem; position: relative; font-weight: 600; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--azul-remax); color: #fff;
  display: grid; place-items: center; font-size: 0.8rem;
}
.form { background: var(--papel); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; display: grid; gap: 1.1rem; box-shadow: var(--sombra); }
.field { display: grid; gap: 0.35rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.field label { font-weight: 700; font-size: 0.92rem; }
.opt { color: var(--tinta-suave); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1.5px solid var(--borde); border-radius: 9px; background: #fff; color: var(--tinta); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--azul-remax); outline: 2px solid rgba(0, 61, 165, 0.25); outline-offset: 0; }
.form__error { color: var(--rojo-oscuro); font-weight: 600; font-size: 0.9rem; }

/* ---------- ACM ---------- */
.section--acm { text-align: left; }
.steps { list-style: none; counter-reset: paso; display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin: 2.2rem 0 2.4rem; }
.steps li { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.5rem; position: relative; }
.steps__n {
  font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 0.85rem;
  color: var(--rojo); border: 1.5px solid var(--rojo); border-radius: 6px; padding: 0.15rem 0.5rem;
  display: inline-block; margin-bottom: 0.8rem;
}
.steps h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.steps p { color: var(--tinta-suave); font-size: 0.97rem; }

/* ---------- Oportunidades ---------- */
.section--opps { background: var(--azul-noche); color: #fff; }
.section--opps .lede { color: #B9C9E4; }
.opps { display: grid; gap: 1.3rem; grid-template-columns: 1fr; }
.opp {
  background: #10305F; border: 1px solid #1C4680; border-radius: var(--radio);
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.opp:hover { transform: translateY(-3px); border-color: #3B6FB8; }
.opp__tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: #FFD84D; border: 1px solid rgba(255, 216, 77, 0.45); border-radius: 999px; padding: 0.25rem 0.7rem; width: fit-content;
}
.opp__tag--suelo { color: #5BE58A; border-color: rgba(91, 229, 138, 0.45); }
.opp h3 { font-size: 1.15rem; margin-top: 0.3rem; }
.opp__zone { color: #9FB6DC; font-size: 0.92rem; }
.opp__price { font-family: "IBM Plex Mono", monospace; font-weight: 600; font-size: 1.2rem; margin-top: 0.4rem; }
.opp__data { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: #C6D5EE; }
.opp__data strong { color: #5BE58A; }
.opp__cta {
  margin-top: auto; padding-top: 0.9rem; font-weight: 700; font-size: 0.95rem; color: #8FB7F5; text-decoration: none;
}
.opp__cta::after { content: " →"; }
.opp__cta:hover { color: #fff; text-decoration: underline; }
.fineprint { margin-top: 1.8rem; font-size: 0.8rem; color: inherit; opacity: 0.65; max-width: 70ch; }

/* ---------- Banda dato ---------- */
.band { background: var(--rojo); color: #fff; padding: clamp(2.5rem, 6vw, 4rem) 0; }
.band__inner { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; text-align: center; display: grid; gap: 0.9rem; justify-items: center; }
.band__label { font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.band__stat { font-weight: 850; font-stretch: 112%; font-size: clamp(1.4rem, 3.4vw, 2.3rem); text-transform: uppercase; line-height: 1.15; max-width: 24ch; }
.band__stat span { font-family: "IBM Plex Mono", monospace; background: #fff; color: var(--rojo); padding: 0.05em 0.25em; border-radius: 8px; white-space: nowrap; }
.band__note { max-width: 52ch; opacity: 0.92; }
.band .btn--primary { background: var(--azul-noche); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); }
.band .btn--primary:hover { background: #081A35; }

/* ---------- Quién te atiende ---------- */
.section--about { background: var(--blanco); }
.about__photos { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; align-items: start; max-width: 560px; }
.about__main { border-radius: var(--radio); box-shadow: var(--sombra); }
.about__award { position: relative; }
.about__award img { border-radius: var(--radio); border: 3px solid var(--oro); }
.about__award figcaption {
  margin-top: 0.5rem; font-family: "IBM Plex Mono", monospace; font-size: 0.72rem; letter-spacing: 0.05em; color: var(--tinta-suave);
}
.gold { color: var(--oro); font-weight: 600; }
.about__facts { list-style: none; margin: 1.4rem 0; display: grid; gap: 0.7rem; }
.about__facts li { padding-left: 1.6rem; position: relative; }
.about__facts li::before { content: "◆"; position: absolute; left: 0; color: var(--rojo); font-size: 0.7rem; top: 0.35em; }
.about__motto {
  border-left: 4px solid var(--oro); padding: 0.4rem 0 0.4rem 1.1rem; margin: 1.6rem 0;
  font-weight: 600; color: var(--azul-noche); font-size: 1.1rem;
}
.about__copy p { max-width: 56ch; }

/* ---------- Por qué ---------- */
.why { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
.why article { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.5rem; }
.why h3 { font-size: 1.05rem; margin-bottom: 0.5rem; color: var(--azul-remax); }
.why p { color: var(--tinta-suave); font-size: 0.97rem; }

/* ---------- Testimonios ---------- */
.section--quotes { background: var(--papel); }
.quotes { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.8rem; }
.quotes blockquote { background: var(--blanco); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.6rem; }
.quotes p { font-size: 1rem; }
.quotes footer { margin-top: 0.9rem; font-family: "IBM Plex Mono", monospace; font-size: 0.75rem; color: var(--tinta-suave); }
.section--quotes .fineprint { color: var(--tinta-suave); opacity: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--azul-noche); color: #C9D8F0; padding: 3.5rem 0 2.5rem; }
.footer__inner { max-width: var(--ancho); margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 0.8rem; justify-items: center; text-align: center; }
.footer__logo { width: 110px; height: auto; }
.footer__motto { font-weight: 600; color: #fff; }
.footer a { color: #8FB7F5; }
.footer__social { display: flex; gap: 1.1rem; margin: 0.6rem 0; }
.footer__social a {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  color: #C9D8F0; transition: color 0.15s ease;
}
.footer__social a:hover { color: #fff; }
.footer__social svg { width: 1.5rem; height: 1.5rem; }
.footer .fineprint { opacity: 0.55; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 60;
  width: 3.4rem; height: 3.4rem; border-radius: 50%; background: var(--wa); color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 1.9rem; height: 1.9rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; }
  .cols { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
  .cols--about { grid-template-columns: 1fr 1fr; align-items: center; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .opps { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .opps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; flex-wrap: wrap; white-space: normal; padding: 0.8rem 1rem; gap: 0.6rem 2rem; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .opp, .btn, .wa-float { transition: none; }
}
