/* ═══════════════════════════════════════════
   SOLANA HABITAT — DESIGN SYSTEM
   Paleta: ámbar solar + verde olivo mediterráneo
═══════════════════════════════════════════ */

:root {
  --amber:    #C8811F;   /* sol, solana, acción */
  --amber-l:  #E09A3A;   /* hover amber */
  --olive:    #3A4A32;   /* olivo profundo, base oscura */
  --olive-l:  #4E6142;   /* hover olivo */
  --cedar:    #8B4A2A;   /* madera, calidez */
  --cream:    #FBF7EF;   /* fondo cálido */
  --cream-d:  #F2EBD9;   /* fondo ligeramente más oscuro */
  --sage:     #7B8C70;   /* texto secundario */
  --border:   #E4DBC8;
  --ink:      #1E2018;
  --white:    #FFFFFF;

  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'DM Sans', system-ui, sans-serif;

  --r-sm:   6px;
  --r-md:   14px;
  --r-lg:   22px;
  --r-full: 999px;

  --sh-sm:  0 2px 10px rgba(0,0,0,.06);
  --sh-md:  0 8px 32px rgba(0,0,0,.09);
  --sh-lg:  0 24px 64px rgba(0,0,0,.13);
  --sh-amber: 0 6px 24px rgba(200,129,31,.35);

  --ease: cubic-bezier(.4,0,.2,1);
  --t:    .3s var(--ease);

  --max: 1180px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
}

/* ─ RESET ─────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─ CONTAINER ──────────────────────────────── */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gap);
}

/* ─ TYPOGRAPHY ─────────────────────────────── */
.section-tag {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--olive);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--amber); }
.section-desc { font-size: 1.0625rem; color: var(--sage); max-width: 50ch; }
.section-header { text-align: center; margin-bottom: clamp(2.5rem,5vw,4rem); }
.section-header .section-desc { margin-inline: auto; }
.lead-text { font-size: 1.0625rem; color: var(--sage); max-width: 46ch; margin-bottom: 1.75rem; line-height: 1.7; }
.section { padding-block: clamp(4rem,8vw,6.5rem); }

/* ─ BUTTONS ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .9rem 2rem;
  border-radius: var(--r-full);
  font-family: var(--ff-sans);
  font-size: .9375rem;
  font-weight: 600;
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--sh-amber);
}
.btn-primary:hover { background: var(--amber-l); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(200,129,31,.4); }
.btn-amber {
  background: var(--amber);
  color: var(--white);
  box-shadow: var(--sh-amber);
}
.btn-amber:hover { background: var(--amber-l); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.38);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--olive);
  border: 2px solid var(--olive);
}
.btn-outline:hover { background: var(--olive); color: var(--cream); }
.btn-full { width: 100%; justify-content: center; }
.pcard-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: gap var(--t);
  margin-top: auto;
}
.pcard-link:hover { gap: .6rem; }

/* ─ NAVBAR ─────────────────────────────────── */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.1rem 0;
  transition: background var(--t), padding var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: rgba(251,247,239,.95);
  backdrop-filter: blur(16px);
  padding: .65rem 0;
  box-shadow: 0 1px 0 var(--border), var(--sh-sm);
}
.nav-inner {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.nav-logo { display: flex; align-items: center; gap: .5rem; }
.logo-text-fallback {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--t);
  line-height: 1;
}
.navbar.scrolled .logo-text-fallback { color: var(--olive); }
.logo-sep {
  color: #E8C070;
  font-size: 1rem;
  letter-spacing: 0;
  opacity: .8;
}
.logo-habitat {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 200;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: 1.35rem;
}
.navbar.scrolled .logo-sep { color: var(--amber); }
.logo-sun-o {
  width: .68em;
  height: .82em;
  display: inline-block;
  vertical-align: -0.14em;
  color: #E8C070;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links li a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.82);
  transition: color var(--t);
}
.nav-links li a:hover { color: var(--white); }
.navbar.scrolled .nav-links li a { color: var(--sage); }
.navbar.scrolled .nav-links li a:hover { color: var(--olive); }
.nav-cta {
  background: var(--amber) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: var(--r-full);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--amber-l) !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--t);
}
.navbar.scrolled .nav-hamburger span { background: var(--olive); }

@media (max-width: 820px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(300px, 85vw);
    height: 100dvh;
    background: var(--olive);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem var(--gap);
    gap: 1.75rem;
    transition: right .4s var(--ease);
    box-shadow: -8px 0 48px rgba(0,0,0,.18);
    z-index: 300;
  }
  .nav-links.open { right: 0; }
  .nav-links li a { color: rgba(255,255,255,.75); font-size: 1.1rem; }
  .nav-links li a:hover { color: var(--white); }
}

/* ─ HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  transition: transform 10s ease-out;
}
.hero-img.ken { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    165deg,
    rgba(30,32,24,.3) 0%,
    rgba(30,32,24,.1) 35%,
    rgba(30,32,24,.55) 65%,
    rgba(30,32,24,.92) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gap);
  width: 100%;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: .35rem 1rem;
  border-radius: var(--r-full);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp .6s .1s forwards;
}
.badge-dot {
  width: 7px; height: 7px;
  background: #7DC47D;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(125,196,125,.3);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(125,196,125,.3); }
  50% { box-shadow: 0 0 0 7px rgba(125,196,125,.08); }
}
.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(3.2rem, 7.5vw, 6rem);
  font-weight: 500;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp .7s .25s forwards;
}
.hero-title em { font-style: italic; color: #E8C070; }
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: rgba(255,255,255,.72);
  max-width: 48ch;
  line-height: 1.72;
  margin-bottom: 2.25rem;
  opacity: 0;
  animation: fadeUp .7s .4s forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeUp .7s .55s forwards;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  padding: 1.1rem 1.6rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(14px);
  border-radius: var(--r-md);
  width: fit-content;
  opacity: 0;
  animation: fadeUp .7s .7s forwards;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-serif);
  font-size: 2.1rem;
  font-weight: 500;
  color: #E8C070;
  line-height: 1;
}
.stat-label { font-size: .72rem; color: rgba(255,255,255,.58); letter-spacing: .03em; }
.stat-sep { width: 1px; height: 36px; background: rgba(255,255,255,.18); }
.scroll-hint {
  position: absolute;
  bottom: 2.25rem; right: var(--gap);
  z-index: 1;
}
.scroll-line {
  display: block;
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollAnim 2.2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─ ICONS ───────────────────────────────────── */
.ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.18em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-sm { width: .85em; height: .85em; stroke-width: 2; }
.ico-lg { width: 1.4em; height: 1.4em; }

/* ─ BANDA ───────────────────────────────────── */
.banda {
  background: var(--olive);
  padding: .9rem 0;
  overflow: hidden;
}
.banda-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem 1.5rem;
  font-size: .82rem;
  font-weight: 500;
  color: rgba(251,247,239,.65);
  letter-spacing: .04em;
}
.banda-inner .sep { opacity: .3; }

/* ─ PROYECTOS ───────────────────────────────── */
.proyectos { background: var(--white); }
.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.pcard--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 55% 45%;
}
.pcard {
  background: var(--cream);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.pcard-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.pcard--hero .pcard-img { aspect-ratio: unset; height: 100%; }
.pcard-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.pcard:hover .pcard-img img { transform: scale(1.06); }
.pcard-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(58,74,50,.35) 0%, transparent 60%);
}
.pcard-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--amber);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: var(--r-full);
}
.pcard-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.pcard--hero .pcard-body { padding: 2.5rem; justify-content: center; }
.pcard-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
}
.pcard-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.55rem;
  font-weight: 500;
  color: var(--olive);
  line-height: 1.2;
}
.pcard--hero .pcard-body h3 { font-size: 2.1rem; }
.pcard-body p { font-size: .9rem; color: var(--sage); flex: 1; }
.pcard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .25rem;
}
.pcard-meta span {
  font-size: .78rem;
  padding: .2rem .7rem;
  background: var(--cream-d);
  border-radius: var(--r-full);
  color: var(--olive);
}
.proyectos-plus {
  margin-top: 2.5rem;
  padding: 2rem;
  text-align: center;
  background: var(--cream);
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border);
}
.proyectos-plus p { font-size: .95rem; color: var(--sage); margin-bottom: 1.25rem; }
.proyectos-plus strong { color: var(--olive); }

/* ─ POR QUÉ ─────────────────────────────────── */
.por-que { background: var(--cream); }
.por-que-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.por-que-visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: visible;
}
.por-que-visual > img {
  border-radius: var(--r-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  box-shadow: var(--sh-lg);
}
.pq-badge {
  position: absolute;
  bottom: -1.5rem; right: -1.5rem;
  background: var(--olive);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .875rem;
  line-height: 1.4;
  box-shadow: var(--sh-md);
}
.pq-badge-icon { font-size: 1.75rem; }
.pq-badge strong { color: var(--amber); display: block; font-weight: 600; }
.pq-badge span { color: rgba(251,247,239,.6); font-size: .78rem; }
.ventajas { display: flex; flex-direction: column; gap: 1rem; }
.ventaja {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: border-color var(--t), box-shadow var(--t);
}
.ventaja:hover { border-color: var(--amber); box-shadow: var(--sh-sm); }
.v-icon {
  font-size: 1.4rem;
  width: 2.4rem; height: 2.4rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.ventaja h4 { font-size: .9375rem; font-weight: 600; color: var(--olive); margin-bottom: .2rem; }
.ventaja p { font-size: .85rem; color: var(--sage); }

/* ─ PROCESO ─────────────────────────────────── */
.proceso { background: var(--olive); }
.proceso .section-tag { color: #E8C070; }
.proceso .section-title { color: var(--cream); }
.proceso .section-title em { color: #E8C070; }
.pasos {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 3rem;
}
.paso {
  flex: 1;
  padding: 2rem 1.75rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  margin-inline: .5rem;
}
.paso-n {
  font-family: var(--ff-serif);
  font-size: 3.5rem;
  font-weight: 500;
  color: rgba(232,192,112,.22);
  line-height: 1;
  margin-bottom: 1rem;
}
.paso h3 { font-size: .9375rem; font-weight: 600; color: #E8C070; margin-bottom: .5rem; }
.paso p { font-size: .85rem; color: rgba(251,247,239,.55); line-height: 1.65; }
.paso-arrow {
  display: flex;
  align-items: center;
  padding-top: 3rem;
  color: rgba(232,192,112,.3);
  font-size: 1.5rem;
  flex-shrink: 0;
}
.proceso-cta { text-align: center; }

/* ─ TRUST ───────────────────────────────────── */
.trust { background: var(--amber); }
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.trust-quote {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--sh-md);
  position: relative;
}
.quote-mark {
  position: absolute;
  top: -.5rem; left: 1.5rem;
  font-family: var(--ff-serif);
  font-size: 7rem;
  line-height: 1;
  color: var(--olive);
  opacity: .1;
  user-select: none;
}
blockquote {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--olive);
  line-height: 1.7;
  margin-bottom: 1rem;
}
cite { font-size: .85rem; color: var(--sage); font-style: normal; }
.trust-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ts { text-align: center; }
.ts-n {
  display: block;
  font-family: var(--ff-serif);
  font-size: 3.25rem;
  font-weight: 500;
  color: var(--olive);
  line-height: 1;
  margin-bottom: .4rem;
}
.ts-l { font-size: .78rem; color: rgba(58,74,50,.75); }

/* ─ FAQ ─────────────────────────────────────── */
.faq { background: var(--white); }
.faq-list { max-width: 700px; margin-inline: auto; display: flex; flex-direction: column; gap: .6rem; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--t);
}
.faq-item[open] { border-color: var(--amber); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--olive);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-ico {
  font-size: 1.3rem;
  color: var(--amber);
  font-weight: 300;
  transition: transform var(--t);
  flex-shrink: 0;
}
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-item p { padding: 0 1.5rem 1.4rem; font-size: .9rem; color: var(--sage); line-height: 1.72; }

/* ─ CONTACTO ─────────────────────────────────── */
.contacto { background: var(--olive); }
.contacto .section-tag { color: #E8C070; }
.contacto .section-title { color: var(--cream); }
.contacto .section-title em { color: #E8C070; }
.contacto .lead-text { color: rgba(251,247,239,.6); }
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 5rem;
  align-items: start;
}
.contacto-promesas { display: flex; flex-direction: column; gap: .65rem; margin-bottom: 2rem; }
.contacto-promesas li { font-size: .9rem; color: rgba(251,247,239,.68); display: flex; align-items: center; gap: .5rem; }
.contacto-promesas .ico-sm { color: #E8C070; flex-shrink: 0; }
.contacto-img {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-top: 2rem;
  box-shadow: var(--sh-lg);
}
.contacto-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Form */
.lead-form {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  box-shadow: var(--sh-lg);
}
.fg { display: flex; flex-direction: column; gap: .4rem; }
.fg label { font-size: .78rem; font-weight: 600; color: var(--olive); letter-spacing: .03em; }
.fg input, .fg select, .fg textarea {
  padding: .8rem 1rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--ff-sans);
  font-size: .9375rem;
  color: var(--ink);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
  appearance: none;
  width: 100%;
}
.fg input::placeholder, .fg textarea::placeholder { color: #C0B8A8; }
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200,129,31,.12);
}
.fg textarea { resize: vertical; min-height: 88px; }
.fg select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.fcheck { display: flex; align-items: flex-start; gap: .7rem; }
.fcheck input[type=checkbox] {
  width: 1rem; height: 1rem;
  flex-shrink: 0; margin-top: .2rem;
  accent-color: var(--amber);
  cursor: pointer;
}
.fcheck label { font-size: .83rem; color: var(--sage); cursor: pointer; }
.form-link { color: var(--amber); text-decoration: underline; }
.form-note { font-size: .78rem; color: var(--sage); text-align: center; margin-top: -.15rem; }
.form-ok {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  box-shadow: var(--sh-lg);
}
.ok-icon {
  width: 4rem; height: 4rem;
  background: #4CAF50;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.5rem;
}
.form-ok h3 { font-family: var(--ff-serif); font-size: 1.8rem; color: var(--olive); margin-bottom: .75rem; }
.form-ok p { color: var(--sage); }

/* ─ FOOTER ──────────────────────────────────── */
.footer {
  background: #141710;
  color: rgba(255,255,255,.5);
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  margin-bottom: 2rem;
}
.footer-logo { height: 50px; width: auto; object-fit: contain; opacity: .85; margin-bottom: .75rem; }
.footer-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(251,247,239,.75);
  margin-bottom: .85rem;
}
.footer-wordmark .logo-sun-o { color: #C8811F; }
.logo-sep-footer { color: #C8811F; opacity: .8; letter-spacing: 0; }
.logo-habitat-footer { font-weight: 200; letter-spacing: .28em; }
.footer-tagline {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,.35);
  margin-bottom: .25rem;
}
.footer-sub { font-size: .8rem; }
.footer-links h4, .footer-contact h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  margin-bottom: 1rem;
}
.footer-links li { margin-bottom: .45rem; }
.footer-links a, .footer-contact a { font-size: .85rem; transition: color var(--t); }
.footer-links a:hover, .footer-contact a:hover { color: #E8C070; }
.footer-contact p { font-size: .85rem; margin-bottom: .45rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .78rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a:hover { color: #E8C070; }

/* ─ REVEAL ANIMATIONS ───────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .12s; }
.reveal-d2 { transition-delay: .24s; }
.reveal-d3 { transition-delay: .36s; }

/* ─ RESPONSIVE ───────────────────────────────── */
@media (max-width: 1024px) {
  .proyectos-grid { grid-template-columns: 1fr; }
  .pcard--hero { grid-column: 1; grid-template-columns: 1fr; }
  .pcard--hero .pcard-img { aspect-ratio: 16/9; height: auto; }
  .por-que-inner { grid-template-columns: 1fr; gap: 3rem; }
  .por-que-visual { max-width: 540px; }
  .pasos { flex-wrap: wrap; }
  .paso { flex: 1 1 calc(50% - 1.5rem); margin: .4rem; }
  .paso-arrow { display: none; }
  .trust-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hero { padding-top: 72px; }
  .hero-badge { margin-top: 1rem; }
  .hero-stats { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; padding: 1rem; }
  .stat-sep { display: none; }
  .stat-num { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .pasos { flex-direction: column; }
  .paso { margin-inline: 0; }
  .trust-stats { grid-template-columns: 1fr 1fr; }
  .lead-form { padding: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .banda-inner .sep { display: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.6rem; }
  .hero-subtitle { font-size: .95rem; }
  .hero-badge { font-size: .7rem; padding: .3rem .75rem; }
  .banda-inner { font-size: .75rem; gap: .4rem .9rem; }
  .lead-form { padding: 1.25rem; }
  .pcard-body { padding: 1.25rem; }
  .ts-n { font-size: 2.5rem; }
  .section-title { font-size: 2rem; }
  .pasos { gap: .5rem; }
  .pq-badge { bottom: -1rem; right: -.5rem; font-size: .78rem; padding: .75rem 1rem; }
}
