/* Monte Rosso del Mar — minimalismo mexicano editorial */

:root {
  --arena: #F4EEE3;
  --crema: #FAF7F0;
  --tinta: #221D16;
  --tinta-suave: #5C554A;
  --terracota: #B45A33;
  --terracota-osc: #92462a;
  --verde: #17342B;
  --linea: rgba(34, 29, 22, .14);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--tinta);
  background: var(--crema);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .nav-brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(3.2rem, 9vw, 6.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.55rem; }

h1 em, .nav-brand em { font-style: italic; font-weight: 300; }

.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 1rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: linear-gradient(rgba(20,18,14,.45), transparent);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-brand { color: #fff; font-size: 1.25rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-block;
  padding: .95rem 2rem;
  background: var(--terracota);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--terracota-osc); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-small { padding: .55rem 1.2rem; font-size: .82rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.4rem 5rem;
  width: 100%;
}
.hero .eyebrow { color: #f0c9a8; }
.hero-sub {
  margin-top: 1.6rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  max-width: 34em;
  color: rgba(255,255,255,.92);
}
.hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; }

/* ---------- Cifras ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.2rem 1.4rem;
  gap: 2rem;
  border-bottom: 1px solid var(--linea);
}
.stat { text-align: center; }
.stat-n {
  display: block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  color: var(--verde);
}
.stat-l { font-size: .85rem; color: var(--tinta-suave); letter-spacing: .03em; }

/* ---------- Secciones ---------- */
.section { padding: 6rem 0; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.4rem; }
.section-lead { max-width: 44em; color: var(--tinta-suave); margin-bottom: 3rem; }

.cols {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 4rem;
  align-items: start;
}
.prose p { margin-bottom: 1.2rem; }
.prose p:last-child { margin-bottom: 0; }

.historia { background: var(--arena); }
.historia h2 { margin-bottom: 2.4rem; }

/* ---------- Galería real ---------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
}
.gallery .img { aspect-ratio: 4 / 3; }
.gallery .img img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.gallery-actions {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.btn-ghost-dark {
  background: transparent;
  border: 1px solid var(--verde);
  color: var(--verde);
}
.btn-ghost-dark:hover { background: var(--verde); color: #fff; }

/* ---------- Franja de confianza ---------- */
.trust { background: var(--crema); border-bottom: 1px solid var(--linea); }
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.6rem 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.trust-item strong { display: block; color: var(--verde); font-size: 1.02rem; margin-bottom: .25rem; }
.trust-item span { font-size: .88rem; color: var(--tinta-suave); line-height: 1.5; }

/* ---------- El lote ---------- */
.lote h2 { margin-bottom: 2.5rem; }
.specs {
  list-style: none;
  margin-top: 1.6rem;
  border-top: 1px solid var(--linea);
}
.specs li {
  padding: .85rem 0;
  border-bottom: 1px solid var(--linea);
  font-size: .95rem;
}
.specs strong { color: var(--verde); }

.img {
  background-size: cover;
  background-position: center;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.img figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1.2rem .8rem;
  font-size: .78rem;
  letter-spacing: .05em;
  color: rgba(255,255,255,.9);
  background: linear-gradient(transparent, rgba(20,18,14,.55));
}

/* ---------- Visiones ---------- */
.visiones { background: var(--verde); color: #EDE7DA; }
.visiones .eyebrow { color: #D8A17C; }
.visiones .section-lead { color: rgba(237,231,218,.75); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.card { display: flex; flex-direction: column; }
.card-img {
  aspect-ratio: 4 / 5;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
}
.card-featured .card-img { outline: 1px solid rgba(216,161,124,.5); outline-offset: 6px; }
.card h3 { margin-bottom: .2rem; }
.card-tag {
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #D8A17C;
  margin-bottom: .7rem;
}
.card p:last-child { font-size: .95rem; color: rgba(237,231,218,.82); }
.visiones .fine { margin-top: 2.6rem; color: rgba(237,231,218,.55); }

/* ---------- Sector ---------- */
.sector { background: var(--arena); }

/* ---------- Ubicación ---------- */
.ubicacion h2 { margin-bottom: 2.2rem; }
.map {
  aspect-ratio: 16 / 8;
  border-radius: var(--radius);
  overflow: hidden;
  filter: saturate(.75) contrast(1.02);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ubicacion .fine { margin-top: 1rem; }

/* ---------- CTA final ---------- */
.cta-final {
  background: var(--verde);
  color: #EDE7DA;
  padding: 7rem 0;
  text-align: center;
}
.cta-final h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); font-style: italic; }
.cta-final p { max-width: 36em; margin: 1.4rem auto 0; color: rgba(237,231,218,.8); }
.cta-final .hero-cta { justify-content: center; margin-top: 2.4rem; }
.cta-final .btn-ghost { color: #EDE7DA; }

/* ---------- Formulario de leads ---------- */
.lead-form {
  max-width: 480px;
  margin: 2.4rem auto 0;
  display: grid;
  gap: .9rem;
  text-align: left;
}
.lead-form input, .lead-form textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1px solid rgba(237,231,218,.35);
  background: rgba(250,247,240,.06);
  color: #EDE7DA;
  font: inherit;
  font-size: .95rem;
  border-radius: var(--radius);
}
.lead-form input::placeholder, .lead-form textarea::placeholder { color: rgba(237,231,218,.55); }
.lead-form input:focus, .lead-form textarea:focus {
  outline: none;
  border-color: #D8A17C;
  background: rgba(250,247,240,.1);
}
.btn-form { width: 100%; border: none; cursor: pointer; font-size: 1rem; }
.cta-alt { margin-top: 1.6rem; color: rgba(237,231,218,.6); }
.cta-alt a { color: #D8A17C; text-decoration: none; }
.cta-alt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.6rem 1.4rem 3.4rem;
  text-align: center;
  background: var(--tinta);
  color: rgba(250,247,240,.85);
  font-size: .9rem;
}
.footer .fine { max-width: 52em; margin: .8rem auto 0; }

.fine { font-size: .78rem; color: var(--tinta-suave); line-height: 1.6; }
.footer .fine { color: rgba(250,247,240,.45); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; gap: 2.2rem; }
  .cards { grid-template-columns: 1fr; }
  .card-img { aspect-ratio: 16 / 10; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
  .section { padding: 4.2rem 0; }
  .hero-content { padding-bottom: 3.4rem; }
  .gallery { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr; gap: 1.4rem; }
}
