/* ==========================================================================
   ESTILOS — Katherine Oblitas · Century 21 Exclusive
   Inspiración: diseño de Apple (tipografía SF Pro, mucho aire, bordes
   redondeados, vidrio esmerilado) con paleta beige, negro y dorado.
   1. Colores y variables   2. Base   3. Botones   4. Navegación
   5. Portada + formulario  6. Secciones   7. Portafolio   8. Sobre mí
   9. Propietarios  10. Oficina / mapa  11. Pie  12. WhatsApp  13. Animaciones
   ========================================================================== */

/* ---------- 1. Colores y variables (cambia aquí la paleta) ---------- */
:root {
  --bg:        #ece3d4;   /* beige principal: ni muy claro ni oscuro */
  --bg-2:      #e3d7c3;   /* beige más profundo para alternar */
  --paper:     #f9f6f0;   /* blanco cálido (tarjetas) */
  --ink:       #1d1d1f;   /* el negro de Apple */
  --ink-soft:  #3a3631;
  --ink-mute:  #5f574d;   /* gris cálido con contraste suficiente sobre beige */
  --gold:      #b0904f;   /* dorado (botones, detalles) */
  --gold-deep: #7a5f2c;   /* dorado oscuro para texto sobre beige */
  --gold-soft: #dcc796;   /* dorado claro para texto sobre fondo oscuro */
  --black:     #141210;
  --line:      rgba(29, 29, 31, 0.12);

  /* Fuente de Apple en sus dispositivos; Inter en el resto */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 30px 60px -36px rgba(40, 30, 15, 0.55);
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;            /* tamaño de texto de Apple */
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 600; line-height: 1.07; letter-spacing: -0.03em; margin: 0; }
em { font-style: normal; color: var(--gold-deep); }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink-mute); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Texto pequeño sobre los títulos (estilo "Nuevo" de Apple) */
.kicker {
  font-size: 15px; font-weight: 600; letter-spacing: 0;
  color: var(--gold-deep);
  margin: 0 0 12px;
}
.kicker-gold { color: var(--gold-soft); }

/* ---------- 3. Botones (cápsula, como en apple.com) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 980px;
  border: 0;
  font: 500 17px/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #3a3631; }
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #c3a462; }
.btn-sm { min-height: 36px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- 4. Navegación (vidrio esmerilado) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(236, 227, 212, 0.62);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(29, 29, 31, 0.08);
  transition: background .3s var(--ease);
}
.nav.is-scrolled { background: rgba(236, 227, 212, 0.86); }
.nav-inner {
  width: min(1120px, 100% - 32px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-weight: 600; font-size: 16px; letter-spacing: -0.02em; }
.brand-text small { font-size: 11px; color: var(--ink-mute); letter-spacing: 0; }
.nav-links { display: none; gap: 32px; }
.nav-links a { font-size: 13px; text-decoration: none; color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- 5. Portada con foto de fondo + formulario ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 56px;
  color: #fff;
  background: var(--black);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,.55) 0%, rgba(20,18,16,.7) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  width: min(1120px, 100% - 32px); margin-inline: auto;
  display: grid; gap: 32px;
}
.hero .kicker { color: var(--gold-soft); }
.hero-title { font-size: clamp(36px, 9vw, 60px); font-weight: 600; letter-spacing: -0.035em; }
.hero-title em { display: block; color: var(--gold-soft); }
.hero-sub { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; color: rgba(255,255,255,.88); max-width: 520px; margin: 20px 0 0; letter-spacing: -0.015em; }
.hero-points {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  font-size: 15px; color: rgba(255,255,255,.85);
}
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-soft); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Formulario en vidrio esmerilado claro */
.form-card {
  color: var(--ink);
  background: rgba(249, 246, 240, 0.86);
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-lg);
  padding: 28px 20px 22px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.form-kicker { font-size: 14px; font-weight: 600; color: var(--gold-deep); margin: 0 0 4px; }
.form-title { font-size: 30px; }
.form-intro { color: var(--ink-mute); margin: 8px 0 20px; font-size: 16px; }
.field { margin: 0 0 12px; min-width: 0; }
.field label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--ink-soft); }
.opt { font-weight: 400; color: var(--ink-mute); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  font: 16px var(--font);              /* 16px evita el zoom automático en iPhone */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field select {
  appearance: none; -webkit-appearance: none;
  padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f574d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* Zona: ocultar el triángulo de sugerencias que Chrome agrega al pasar el mouse */
.field input::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
.field input[list] { -webkit-appearance: none; appearance: none; }
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(176,144,79,.2);
}
.field .is-invalid { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: #b0342a; font-size: 14px; margin: 0 0 12px; }
.form-note { text-align: center; font-size: 13px; color: var(--ink-mute); margin: 12px 0 0; }
.form-success { text-align: center; padding: 16px 0 4px; }
.success-title { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.form-success p { color: var(--ink-soft); }

/* ---------- 6. Secciones ---------- */
.section { padding: 88px 0; }
.section-head { margin-bottom: 36px; }
.section-title { font-size: clamp(34px, 6.5vw, 56px); }
.section-dark { background: var(--black); color: #f5f5f7; }
.section-dark em { color: var(--gold-soft); }
.section-dark p { color: #c9c2b6; }

/* Franja de zonas que se desplaza */
.marquee { overflow: hidden; background: var(--bg-2); padding: 18px 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-track span {
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  padding: 0 28px; color: var(--ink-soft); white-space: nowrap;
}
.marquee-track span::after { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); margin-left: 56px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation-duration: 140s; } }

/* ---------- 7. Portafolio ---------- */
/* Filtros como "control segmentado" de Apple */
.filters {
  display: inline-flex; flex-wrap: wrap; gap: 2px;
  padding: 3px; margin-bottom: 32px;
  background: rgba(29, 29, 31, 0.07);
  border-radius: 980px;
}
.filter {
  font: 500 14px var(--font);
  min-height: 40px; padding: 0 18px;
  border: 0; border-radius: 980px;
  background: transparent; color: var(--ink-soft);
  cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s;
}
.filter:hover { color: var(--ink); }
.filter.is-active { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(0,0,0,.18); }

.cards { display: grid; gap: 24px; }
.card {
  background: var(--paper);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.card[hidden] { display: none; }        /* necesario para que funcionen los filtros */
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(249, 246, 240, 0.8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: 980px;
}
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card-zone { font-size: 13px; font-weight: 600; color: var(--gold-deep); margin: 0; }
.card-title { font-size: 21px; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; margin: 4px 0 0; }
.card-price { font-size: 19px; font-weight: 500; margin: 6px 0 0; }
.card-price small { font-size: 14px; color: var(--ink-mute); font-weight: 400; }
.card-specs {
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 14px; color: var(--ink-mute);
  list-style: none; padding: 14px 0 18px; margin: 12px 0 0;
  border-top: 1px solid var(--line);
}
.card-specs { gap: 4px 16px; }
.card-price-ask { font-size: 17px; color: var(--gold-deep); }
.card-highlights { list-style: none; padding: 0; margin: -6px 0 20px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-soft); }
.card-highlights li { display: flex; gap: 10px; align-items: baseline; }
.card-highlights li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex: none; transform: translateY(-2px); }
.filters[hidden], .filter[hidden] { display: none; }
.card .btn { margin-top: auto; }
.cards-empty { color: var(--ink-mute); }

/* ---------- 8. Sobre mí ---------- */
.about { display: grid; gap: 40px; align-items: center; }
.about-photo { margin: 0; }
.about-photo img { aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: center top; width: 100%; border-radius: var(--r-lg); }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--r-lg);
  background: linear-gradient(160deg, #2c2721, #181512);
  display: grid; place-content: center; text-align: center; gap: 8px;
}
.photo-placeholder span { font-size: 72px; font-weight: 600; letter-spacing: -0.04em; color: var(--gold-soft); }
.photo-placeholder small { color: #9d9384; font-size: 13px; }
.about-copy p { font-size: 19px; line-height: 1.5; max-width: 520px; }
.about-copy .btn { margin-top: 12px; }
.about-list { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 10px; font-size: 17px; color: #f5f5f7; }
.about-list li { display: flex; gap: 12px; align-items: baseline; }
.about-list li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); flex: none; transform: translateY(-2px); }

/* ---------- 9. Propietarios ---------- */
.sell { padding: 88px 0 0; }
.sell-inner {
  display: grid; gap: 24px; align-items: center;
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 40px 24px;
}
.sell p { color: var(--ink-mute); margin: 12px 0 0; max-width: 560px; font-size: 19px; }

/* ---------- 10. Oficina / mapa ---------- */
.location { display: grid; gap: 32px; align-items: center; }
.location-copy p { font-size: 19px; }
.map { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow); background: var(--bg-2); }
.map iframe { display: block; width: 100%; height: 340px; border: 0; filter: saturate(.75) sepia(.15); }

/* ---------- 11. Pie ---------- */
.footer { background: var(--black); color: #a8a196; padding: 48px 0 28px; font-size: 14px; }
.footer-inner { display: grid; gap: 20px; }
.footer-name { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: #f5f5f7; }
.footer a { color: var(--gold-soft); }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid rgba(220, 199, 150, 0.35);
  transition: background .2s, border-color .2s;
}
.socials a:hover { background: rgba(220, 199, 150, 0.12); border-color: var(--gold-soft); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; color: #7d766c; }

/* ---------- 12. Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
  transition: box-shadow .25s;
}
.wa-float:hover { box-shadow: 0 14px 30px -8px rgba(0,0,0,.55); }

/* ---------- 13. Animaciones de aparición ---------- */
/* El contenido es visible por defecto; solo se anima si el JS está activo. */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }   /* red de seguridad del skill */

/* ---------- Tablet y escritorio ---------- */
@media (min-width: 720px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .sell-inner { grid-template-columns: 1fr auto; padding: 56px; }
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .form-card { padding: 36px 32px 28px; }
}
@media (min-width: 1000px) {
  .nav-links { display: flex; }
  .hero { padding: 140px 0 110px; min-height: 92vh; display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(20,18,16,.78) 0%, rgba(20,18,16,.5) 55%, rgba(20,18,16,.3) 100%); }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 0.85fr 1.15fr; gap: 80px; }
  .location { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .map iframe { height: 440px; }
  .section { padding: 128px 0; }
  .sell { padding-top: 128px; }
}

/* Celular */
@media (max-width: 420px) {
  .brand-text small { display: none; }
  .hero-points { font-size: 14px; }
}
