/* ============================================================
   Portales del Desierto — landing
   Paleta tomada del logo: azul marino, ocre/dorado, arena, crema
   ============================================================ */
:root {
  --navy: #1b2a4a;
  --navy-deep: #14203a;
  --gold: #ce8a2e;
  --gold-dark: #b4761f;
  --sand: #efc988;
  --cream: #f5efe4;
  --cream-soft: #faf6ee;
  --ink: #2a2f3a;
  --muted: #5c6472;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1eb857;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 58, 0.12);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 239, 228, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
}

.brand-logo { width: 46px; height: 46px; }

.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.15;
}
.brand-name em { font-style: italic; color: var(--gold-dark); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.92rem;
}
.main-nav a:hover { color: var(--gold-dark); }

.main-nav .nav-cta {
  background: var(--whatsapp);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
}
.main-nav .nav-cta:hover { background: var(--whatsapp-dark); color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.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, 32, 58, 0.55) 0%,
    rgba(20, 32, 58, 0.45) 45%,
    rgba(20, 32, 58, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  text-align: center;
  padding-block: 90px;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sand);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.18;
  max-width: 20ch;
  margin-inline: auto;
}
.hero h1 span { display: block; font-style: italic; color: var(--sand); }

.hero-sub {
  margin-top: 18px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.92);
}

.hero-badge {
  display: inline-block;
  margin-top: 22px;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 6px;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-block { width: 100%; }
.btn-lg { font-size: 1.1rem; padding: 16px 34px; }

/* ---------- Cifras ---------- */
.stats { background: var(--navy); color: var(--white); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.stat { padding: 28px 10px; }
.stat strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--sand);
  line-height: 1.1;
}
.stat span { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); }

/* ---------- Secciones ---------- */
.section { padding-block: 84px; }

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  color: var(--navy);
  line-height: 1.2;
  max-width: 24ch;
}
.section h2 em { font-style: italic; color: var(--gold-dark); }

.section-intro {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark h2 em { color: var(--sand); }
.section-dark .section-intro { color: rgba(255, 255, 255, 0.82); }
.section-dark .section-kicker { color: var(--sand); }

.section-tint { background: var(--cream-soft); }

/* ---------- La privada ---------- */
.features-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.feature {
  background: var(--cream-soft);
  border: 1px solid rgba(27, 42, 74, 0.07);
  border-radius: var(--radius);
  padding: 30px 26px;
}

.feature-icon {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--navy);
  color: var(--sand);
  margin-bottom: 18px;
}

.feature h3 {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.feature p { color: var(--muted); font-size: 0.95rem; }

.street-names {
  margin-top: 34px;
  padding: 16px 22px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  color: var(--muted);
  font-size: 0.93rem;
}
.street-names strong { color: var(--navy); }

/* ---------- Fraccionamiento ---------- */
.includes-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.include {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.include h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--sand);
}
.include p { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }

/* ---------- Modelos ---------- */
.models-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.model-card {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.09);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.model-photo { position: relative; }
.model-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.model-tag {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 6px;
}
.model-tag-gold { background: var(--gold); }

.model-disclaimer {
  position: absolute;
  bottom: 10px; right: 12px;
  background: rgba(20, 32, 58, 0.55);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 4px;
}

.model-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.model-body h3 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--navy);
}

.model-desc { color: var(--muted); margin-top: 6px; font-size: 0.96rem; }

.model-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 18px;
  text-align: center;
}

.model-specs li {
  background: var(--cream-soft);
  border-radius: 10px;
  padding: 10px 4px;
}
.model-specs strong {
  display: block;
  color: var(--navy);
  font-size: 1.02rem;
}
.model-specs span { font-size: 0.72rem; color: var(--muted); }

.model-areas {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.model-body .btn { margin-top: 18px; }

/* ---------- Galería ---------- */
.gallery-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gallery-grid img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

/* ---------- Créditos ---------- */
.credits-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.credit {
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-top: 4px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 24px 22px;
}

.credit h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.credit p { color: var(--muted); font-size: 0.92rem; }

.credits-closing {
  margin-top: 32px;
  font-size: 1.05rem;
  color: var(--muted);
}
.credits-closing strong { color: var(--navy); }

/* ---------- Proceso ---------- */
.steps-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 26px 22px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: rgba(255, 255, 255, 0.8); font-size: 0.9rem; }

.no-deposit {
  margin-top: 36px;
  background: var(--gold);
  color: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  font-size: 1rem;
}

/* ---------- Expediente ---------- */
.docs-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.doc-group {
  background: var(--cream-soft);
  border: 1px solid rgba(27, 42, 74, 0.07);
  border-radius: var(--radius);
  padding: 26px;
}

.doc-group h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.doc-group ul { list-style: none; }
.doc-group li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.93rem;
}
.doc-group li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.docs-help { margin-top: 30px; color: var(--muted); }
.docs-help strong { color: var(--navy); }
.docs-help a { color: var(--gold-dark); font-weight: 600; }

/* ---------- Ubicación ---------- */
.map-wrap {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; }

/* ---------- Contacto / formulario de leads ---------- */
.contact-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: start;
}

.contact-points {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-points li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 0.95rem;
}
.contact-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

.lead-form {
  background: var(--cream-soft);
  border: 1px solid rgba(27, 42, 74, 0.08);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}

.lead-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

.form-row input,
.form-row select,
.form-row textarea {
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.18);
  border-radius: 8px;
  padding: 11px 14px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(206, 138, 46, 0.18);
}

.lead-form-note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
}

.lead-form-success,
.lead-form-error {
  margin-top: 8px;
  text-align: center;
}
.lead-form-success strong { color: var(--navy); font-size: 1.1rem; }
.lead-form-error strong { color: var(--gold-dark); font-size: 1.05rem; }
.lead-form-success p,
.lead-form-error p {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* ---------- CTA final ---------- */
.final-cta {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  text-align: center;
  padding-block: 90px;
}

.final-cta .section-kicker { color: var(--sand); }

.final-cta h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  max-width: 22ch;
  margin-inline: auto;
  line-height: 1.2;
}
.final-cta h2 em { font-style: italic; color: var(--sand); }

.final-cta .btn { margin-top: 34px; }

.final-cta-note {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.92rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.85); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-block: 50px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 64px; height: 64px;
  background: var(--cream);
  border-radius: 50%;
  padding: 4px;
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--white);
}
.footer-brand p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }

.footer-info { font-size: 0.92rem; text-align: right; }
.footer-info p { margin-bottom: 8px; }
.footer-info a { color: var(--sand); text-decoration: none; }
.footer-info a:hover { text-decoration: underline; }

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-block: 18px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.15s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 22, 40, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 2.6rem;
  line-height: 1;
  padding: 10px;
}
.lightbox button:hover { color: var(--white); }

.lightbox-close { top: 16px; right: 22px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .features-grid, .docs-grid { grid-template-columns: 1fr 1fr; }
  .includes-grid, .credits-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .lead-form { padding: 26px; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(27, 42, 74, 0.1);
    display: none;
  }
  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 14px 6%;
    border-top: 1px solid rgba(27, 42, 74, 0.07);
  }
  .main-nav .nav-cta {
    border-radius: 0;
    text-align: center;
    padding: 14px;
  }

  .brand-name { font-size: 0.95rem; }

  .hero { min-height: 78vh; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .section { padding-block: 60px; }

  .models-grid { grid-template-columns: 1fr; }

  .features-grid, .docs-grid { grid-template-columns: 1fr; }

  .footer-info { text-align: left; }
}

@media (max-width: 520px) {
  .includes-grid, .credits-grid, .steps-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid img { height: 220px; }
  .model-specs { grid-template-columns: repeat(2, 1fr); }
  .whatsapp-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
