/* ==========================================================
   La Raya Land Co. — estilos
   ========================================================== */

:root {
  --navy: #1a3153;
  --navy-deep: #0d2d51;
  --ink: #1a3153;
  --text: #2b3a55;
  --muted: #5d6679;
  --paper: #f7f7f5;
  --white: #ffffff;
  --rule: #c8c8c8;

  --serif: "Tinos", "Times New Roman", Times, serif;
  --brand-serif: "Cormorant Garamond", "Tinos", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 2400px;
  --gutter: 16px;
  /* márgenes laterales proporcionales: 86px a 1440px (igual al mockup) y crecen en pantallas anchas */
  --side: max(var(--gutter), 6vw);
  --header-h: 106px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--ink); }
p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--side);
}

.dot { margin: 0 .55em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #e3e3e3;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 max(var(--gutter), 5.5vw);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy-deep);
}
.brand-mark { width: 56px; height: 56px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--brand-serif);
  font-weight: 500;
  font-size: 20.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.brand-tagline {
  display: flex;
  gap: 2.1em;
  margin-top: 8px;
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 60px;
}
.site-nav a {
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  transition: opacity .2s;
}
.site-nav a:not(.btn-outline):hover { opacity: .6; }

.btn-outline {
  margin-left: 16px;
  padding: 14px 32px 13px 21px;
  border: 1.5px solid var(--navy);
  transition: background .25s, color .25s !important;
}
.btn-outline:hover { background: var(--navy); color: var(--white) !important; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 1.5px;
  margin: 7px auto;
  background: var(--navy);
  transition: transform .3s;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Tipografía compartida ---------- */
.eyebrow, .crumb, .member-role, .hero-counter, .link-arrow, figcaption {
  font-family: var(--sans);
  text-transform: uppercase;
}

.crumb {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--navy);
  margin-bottom: 30px;
}
.crumb span { margin: 0 .8em; }
.crumb--light { color: rgba(255,255,255,.8); }

.display {
  font-size: clamp(38px, calc(2.2vw + 26px), 76px);
  line-height: 1.15;
  letter-spacing: -.005em;
}
.display--light { color: var(--white); }

.subhead { font-size: 27px; margin-bottom: 26px; }

.body-lg {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text);
  max-width: max(460px, 28vw);
}
.body-lg + .body-lg { margin-top: 44px; }

.lead {
  margin-top: 50px;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
}

.rule-short {
  width: 72px;
  height: 0;
  margin: 44px 0 30px;
  border: 0;
  border-top: 3px solid var(--navy);
}

.link-arrow {
  display: inline-block;
  margin-top: 70px;
  padding: 0 44px 18px 0;
  border-bottom: 1.5px solid currentColor;
  font-size: 11.5px;
  letter-spacing: .2em;
  text-decoration: none;
  color: var(--navy);
}
.link-arrow span { margin-left: .9em; display: inline-block; transition: transform .25s; }
.link-arrow:hover span { transform: translate(3px, -3px); }
.link-arrow--light { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: clamp(520px, 70vh, 680px);
  overflow: hidden;
  color: var(--white);
  background: #2d4a2f;
}
.hero-slides, .hero-slide, .hero-shade { position: absolute; inset: 0; }
.hero-slide {
  background-size: cover;
  background-position: center 20%;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slide--1 { background-image: url("../img/cerro-panoramica.webp"); background-position: center 42%; }
.hero-slide--2 { background-image: url("../img/aerea-lago.webp"); }
.hero-slide--3 { background-image: url("../img/hero.webp"); }
@media (max-width: 960px) {
  .hero-slide--1 { background-image: url("../img/cerro-panoramica-sm.webp"); background-position: 62% 40%; }
  .hero-slide--2 { background-image: url("../img/aerea-lago-sm.webp"); }
  .hero-slide--3 { background-image: url("../img/hero-sm.webp"); }
}
.hero-shade {
  background:
    linear-gradient(90deg, rgba(20,34,52,.55) 0%, rgba(20,34,52,.28) 42%, rgba(20,34,52,0) 70%),
    linear-gradient(180deg, rgba(20,34,52,.18) 0%, rgba(20,34,52,0) 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 104px var(--side) 0 max(var(--gutter), 7.4vw);
}
.eyebrow { font-size: 12px; letter-spacing: .24em; margin-bottom: 26px; }
.eyebrow--light { color: rgba(255,255,255,.92); }

.hero-title {
  color: var(--white);
  font-size: clamp(46px, calc(3.2vw + 28px), 100px);
  line-height: 1.05;
  letter-spacing: -.005em;
  text-shadow: 0 1px 24px rgba(0,0,0,.12);
}
.hero-lead {
  margin-top: 54px;
  font-size: 22px;
  line-height: 1.4;
  color: rgba(255,255,255,.95);
}
.hero .link-arrow { margin-top: 64px; }

.hero-counter {
  position: absolute;
  z-index: 2;
  right: 92px;
  bottom: 30px;
  font-size: 11px;
  letter-spacing: .2em;
}

/* ---------- Secciones ---------- */
.section { padding: 36px 0 44px; }
.section + .section { padding-top: 110px; }
.section--navy { background: var(--navy); color: var(--white); padding: 110px 0; }
.section--navy .body-lg { color: rgba(255,255,255,.88); }
.section--navy + .section { padding-top: 110px; }

/* Visión */
.vision { padding-top: 36px; padding-bottom: 68px; }
.vision-grid {
  display: grid;
  grid-template-columns: 1fr min(41vw, 860px);
  gap: 60px;
  align-items: start;
}
.vision-text .display { max-width: none; }
.vision-figure { margin: 0; }
.vision-figure img { width: 100%; aspect-ratio: 590 / 595; object-fit: cover; }
.vision-figure figcaption {
  background: var(--navy);
  color: var(--white);
  padding: 24px 30px 25px;
  font-size: 11px;
  letter-spacing: .2em;
}

/* Qué hacemos */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 6vw;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.pillar { padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.pillar-num { display: block; font-size: 27px; color: var(--ink); }
.pillar h3 { margin: 26px 0 20px; font-size: 25px; }
.pillar p { font-size: 16.5px; line-height: 1.65; max-width: max(280px, 82%); }

/* Equipo */
#equipo .display { margin-bottom: 100px; }
.team {
  display: grid;
  gap: 0 32px;
}
.team--three {
  grid-template-columns: repeat(3, 1fr);
  gap: 0 2.3vw;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.team--two {
  grid-template-columns: repeat(2, 1fr);
  gap: 0 5vw;
  margin-top: 30px;
}
.member { padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.member-role {
  font-size: 10.5px;
  letter-spacing: .2em;
  color: var(--muted);
}
.member h3 { margin: 14px 0 20px; font-size: 23px; }
.member h3 .dot { margin: 0 .4em; }
.member p:last-child { font-size: 16px; line-height: 1.6; max-width: max(350px, 90%); }

/* La Raya */
.laraya-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: end;
}
.laraya-body .link-arrow { margin-top: 48px; }

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 70px;
}
.contact-grid .display { margin-bottom: 36px; }
.contact-form { display: grid; gap: 26px; }
.field { display: grid; gap: 8px; }
.field span {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea {
  width: 100%;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  font: 19px/1.4 var(--serif);
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--navy); }
.hp { position: absolute; left: -9999px; }

.btn-solid {
  justify-self: start;
  margin-top: 10px;
  padding: 16px 44px;
  background: var(--navy);
  color: var(--white);
  border: 1.5px solid var(--navy);
  font: 500 11.5px var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn-solid:hover { background: transparent; color: var(--navy); }

/* Footer */
.site-footer { background: var(--navy); color: var(--white); padding: 56px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand--footer { color: var(--white); }
.brand--footer .brand-mark { width: 44px; height: 44px; outline: 1px solid rgba(255,255,255,.35); }
.footer-meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

/* Aparición suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .reveal { transition: none; transform: none; }
  .reveal { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .site-nav { gap: 36px; }
  .vision-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
}

@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .br-desk { display: none; }
  .brand-mark { width: 48px; height: 48px; }
  .brand-name { font-size: 17px; }
  .brand-tagline { font-size: 7.5px; gap: 1.6em; }

  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 28px;
    background: var(--white);
    border-bottom: 1px solid #e3e3e3;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding: 16px 0; width: 100%; border-bottom: 1px solid #eee; }
  .site-nav .btn-outline { margin: 18px 0 0; width: auto; padding: 14px 24px; border-bottom: 1.5px solid var(--navy); }

  .hero-content { padding: 80px 24px 0; }
  .hero-counter { right: 24px; }

  .vision-grid, .laraya-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .body-lg { max-width: none; }
  .pillars, .team--three, .team--two { grid-template-columns: 1fr; gap: 0; }
  .pillar, .member { padding-top: 28px; }
  .pillar p, .member p:last-child { max-width: none; }
  .team--two { margin-top: 0; }
  #equipo .display { margin-bottom: 56px; }
  .section + .section, .section--navy { padding-top: 80px; }
  .section--navy { padding-bottom: 80px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .header-inner { padding: 0 var(--gutter); }
  .brand { gap: 10px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 15px; letter-spacing: .1em; }
  .brand-tagline { font-size: 6.5px; gap: 1.3em; margin-top: 6px; }
  .hero-content { padding: 64px var(--gutter) 0; }
  .hero-lead { font-size: 19px; margin-top: 32px; }
  .hero .link-arrow { margin-top: 44px; }
  .hero-counter { right: var(--gutter); bottom: 22px; }
  .eyebrow { font-size: 10.5px; letter-spacing: .18em; }
  .body-lg, .lead { font-size: 18px; }
  .link-arrow { margin-top: 48px; }
  .vision-figure figcaption { padding: 18px 20px; font-size: 10px; }
}

/* Páginas simples (gracias / 404) */
.page-simple { display: flex; flex-direction: column; min-height: 100vh; }
.simple-main { flex: 1; padding: 110px 0 130px; }
.simple-text { margin-top: 36px; max-width: 560px; }
