/* =====================================================================
   COOPVIVENDIA · Web corporativa
  Identidad basada en el dossier de Coliving Life (tokens validados)
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap");

:root {
  --navy:      #1F3A5F;
  --blue:      #2E5C8A;
  --gold:      #B79355;
  --cream:     #F4EFE6;
  --sand:      #E8DFD0;
  --ink:       #1B1B1B;
  --graphite:  #3A3A3A;
  --mute:      #6B6B6B;
  --line:      #D9D2C4;

  --font-serif: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --font-sans:  "Inter", "Helvetica Neue", Arial, sans-serif;

  --shell-max: 1200px;
  --shell-pad: clamp(1.5rem, 5vw, 5rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 104px; overflow-x: clip; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

/* ---------- Tipografía editorial ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); line-height: 1.15; }
h3 { font-size: 1.4rem; }

p { color: var(--graphite); }

/* ---------- Botones ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.button-primary {
  background: var(--navy);
  color: var(--cream);
}
.button-primary:hover { background: var(--blue); }
.button-secondary {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.button-secondary:hover { border-color: var(--gold); color: var(--gold); }
.button-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.button-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.1rem var(--shell-pad);
  background: rgba(27, 27, 27, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.brand img { height: 68px; width: auto; }
.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; margin-right: 1.5rem; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-name sup { font-size: 0.45em; top: -0.7em; }
.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}
.nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--gold); }
.nav a.is-active { color: var(--gold); }
.nav a.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  background: var(--gold);
  border-radius: 2px;
}
/* Modo pestañas: solo la seccion activa es visible (fallback sin-JS: todo visible) */
.tabs-enabled main > section[hidden] { display: none !important; }
.header-actions { display: flex; gap: 0.75rem; }
.header-actions .button { padding: 0.7rem 1.4rem; font-size: 0.72rem; }
.header-actions .button-primary { background: #fff; color: var(--ink); }
.header-actions .button-primary:hover { background: var(--sand); }

/* ---------- Boton hamburguesa ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Contenedor de sección ---------- */
.section-shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) var(--shell-pad);
}
.section-shell + .section-shell { padding-top: 0; }
.section-shell:has(+ .section-shell) { padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.image-band + .section-shell { padding-top: clamp(2rem, 4vw, 3rem); }
.image-band + .statement .statement-inner { padding-top: clamp(2rem, 4vw, 3rem); }
.statement + .section-shell { padding-top: clamp(2rem, 4vw, 3rem); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading.narrow { max-width: 620px; }

/* ---------- Hero (pantalla completa, estilo Tesla) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem var(--shell-pad) 6rem;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(31, 58, 95, 0.55) 0%, rgba(27, 27, 27, 0.55) 100%);
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; color: #fff; }
.hero-inner .eyebrow { color: var(--sand); }
.hero-inner h1 { color: #fff; }
.hero-lead {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  margin: 1.75rem auto 2.5rem;
  max-width: 52ch;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-keywords {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
  margin: 0 auto 2.25rem;
  max-width: 620px;
}
.hero-keywords li {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  display: flex;
  justify-content: center;
}
.hero-scroll span {
  width: 4px;
  height: 8px;
  margin-top: 7px;
  border-radius: 2px;
  background: #fff;
  animation: heroScroll 1.6s ease-in-out infinite;
}
@keyframes heroScroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ---------- Statement ---------- */
.statement { background: var(--navy); color: var(--cream); }
.statement-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 6rem) var(--shell-pad);
}
.statement-inner p {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1.35;
  color: var(--cream);
  font-weight: 400;
}
.statement-inner .eyebrow-light { color: var(--gold); }
.statement-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.statement-list li {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--sand);
  line-height: 1.5;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--graphite);
  margin-top: 1.25rem;
  max-width: 60ch;
}
.section-cta { margin-top: 3rem; }
.section-cta .button { align-self: flex-start; }

/* ---------- Split / Coliving ---------- */
.text-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
}
.text-grid-three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Claim list (grandes afirmaciones) ---------- */
.claim-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.claim-list li {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--navy);
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.25;
}
.claim-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.7em;
  width: 12px; height: 2px;
  background: var(--gold);
}

/* ---------- Valores / tarjetas ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.values-grid-spaces { grid-template-columns: repeat(3, 1fr); }
.value-card {
  border: none;
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 1.75rem 1.5rem;
  background: var(--cream);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(31, 58, 95, 0.1); }
.value-card span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.6rem;
}
.value-card h3 { font-size: 1.15rem; }

/* ---------- Fila de etiquetas ---------- */
.tag-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag-row li {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  padding: 0.55rem 1.2rem;
  background: var(--cream);
  border-radius: 999px;
}
.text-grid article { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.text-grid .index {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--gold);
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  margin-right: 0.6rem;
}
.text-grid h3 { display: inline; vertical-align: middle; margin-bottom: 0.75rem; }

/* ---------- Banda de imagen ---------- */
.image-band {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.image-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 27, 27, 0.55), rgba(31, 58, 95, 0.55));
}
.image-band-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
  padding: clamp(3rem, 6vw, 5rem) var(--shell-pad);
  color: #fff;
  text-align: center;
}
.image-band-copy h2 { color: #fff; }
.image-band-copy p { color: rgba(255, 255, 255, 0.92); margin-top: 0.75rem; font-size: 1.15rem; }
.image-band-copy .eyebrow { color: var(--sand); }

/* ---------- Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.projects-grid-two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 940px;
  margin: 0 auto;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.project-card:hover { box-shadow: 0 18px 40px rgba(31, 58, 95, 0.12); transform: translateY(-4px); }
.project-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.project-card figure img { width: 100%; height: 100%; object-fit: cover; }
.project-body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.9rem; flex: 1; }
.project-body h3 { margin-bottom: 0.25rem; }
.project-body ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.project-body ul li {
  font-size: 0.92rem;
  color: var(--graphite);
  padding-left: 1.1rem;
  position: relative;
}
.project-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.project-body .button { margin-top: auto; align-self: flex-start; }
.project-card-future {
  background: var(--cream);
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
}
.project-card-future .project-body { justify-content: center; }
.project-card-simple { background: #fff; }

/* ---------- Proyecto destacado ---------- */
.project-feature {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line);
}
.feature-photo {
  position: relative;
  isolation: isolate;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  margin-bottom: 1.5rem;
  background: var(--navy);
}
.feature-photo picture { display: block; width: 100%; height: 100%; }
.feature-photo picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.06) brightness(0.86);
}
.feature-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(18, 31, 47, 0.34) 0%, transparent 42%, rgba(18, 31, 47, 0.5) 100%);
  pointer-events: none;
}
.feature-photo-branding {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(0.8rem, 2vw, 1.5rem);
  color: #fff;
  pointer-events: none;
}
.feature-photo-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #fff;
  opacity: 0.68;
  filter: drop-shadow(0 2px 6px rgba(18, 31, 47, 0.65));
}
.feature-photo-logo img { width: clamp(30px, 4vw, 46px); height: auto; }
.feature-photo-logo strong {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.1vw, 1.5rem);
  line-height: 1;
}
.feature-photo-logo sup { font-size: 0.45em; }
.feature-photo-domain {
  align-self: flex-end;
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(18, 31, 47, 0.75);
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-top: 1.5rem;
}
.feature-right { display: flex; flex-direction: column; }
.project-feature-body h3 { margin: 0.4rem 0 0.75rem; }
.feature-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem 1.5rem;
  margin: 1.5rem 0 1.75rem;
}
.feature-specs li {
  font-size: 0.92rem;
  color: var(--graphite);
  padding-left: 1.1rem;
  position: relative;
}
.feature-specs li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.feature-note {
  font-size: 0.9rem;
  color: var(--mute);
  margin: -0.5rem 0 1.5rem;
}
/* ---------- Proyectos secundarios (apilados) ---------- */
.projects-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.project-secondary {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: #fff;
}
.project-secondary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}
.project-secondary h3 { margin: 0.4rem 0 0.5rem; }
.project-secondary > p { color: var(--graphite); }
.project-secondary .feature-specs { margin: 1.25rem 0 1.75rem; }
.project-secondary .button { align-self: flex-start; }
.status-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--sand);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.project-secondary-future { background: var(--cream); border-style: dashed; }
.typologies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem;
}
.typology {
  background: var(--cream);
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 1.1rem 1.25rem;
}
.typology span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.typology p { font-size: 0.92rem; color: var(--graphite); line-height: 1.5; }
.feature-plan {
  margin: 0 0 1.75rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}
.feature-plan img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.feature-plan a:hover img { transform: scale(1.02); }
.feature-plan figcaption {
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.feature-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.legal-note {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--mute);
  text-align: justify;
  hyphens: auto;
}
.legal-note strong { color: var(--graphite); }

/* ---------- Propiedad ---------- */
.property .section-heading { max-width: none; }
.property .section-lead { max-width: none; text-align: justify; hyphens: auto; }
.lead-justify .section-heading { max-width: none; }
.lead-justify .section-lead { max-width: none; text-align: justify; hyphens: auto; }
.property-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.property-block {
  border: none;
  border-top: 2px solid var(--gold);
  border-radius: 6px;
  padding: 2rem;
  background: var(--cream);
}
.property-block h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 1.25rem;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.check-list li {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy);
  padding-left: 2rem;
  position: relative;
}
.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0; top: 0.05em;
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
}
.check-list-gold li { color: var(--graphite); font-size: 1.2rem; }
.check-list-gold li::before { content: "\2022"; color: var(--gold); font-size: 1.4rem; top: -0.05em; }
.check-list-gold {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem 1.5rem;
}
.block-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--mute);
  line-height: 1.5;
}

/* ---------- Ecuación del modelo ---------- */
.equation {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
  margin-top: 3.5rem;
}
.equation-item {
  flex: 1 1 200px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.equation-item span {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
}
.equation-result { background: var(--navy); border-color: var(--navy); }
.equation-result span { color: var(--cream); }
.equation-op {
  display: flex;
  align-items: center;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
}

/* ---------- Día en la comunidad ---------- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.day-card {
  border-top: 2px solid var(--gold);
  padding-top: 1.5rem;
}
.day-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.day-card ul li {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
}

/* ---------- Garantías (Cómo participar) ---------- */
.guarantees {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}
.guarantee-card {
  background: var(--cream);
  border-radius: 6px;
  padding: 1.75rem;
  border-top: 2px solid var(--gold);
}
.guarantee-card h4 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.guarantee-card p { font-size: 0.95rem; }

/* ---------- Método / Proceso ---------- */
.process-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3.5rem;
}
.process-list article { display: flex; gap: 1.5rem; align-items: flex-start; }
.process-list article span {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  min-width: 2.5rem;
}
.process-list h3 { margin-bottom: 0.5rem; }

/* ---------- Confianza ---------- */
.trust {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
  background: var(--cream);
  max-width: none;
}
.trust > * { max-width: var(--shell-max); }
.trust-card { max-width: 560px; margin-left: auto; }
.trust-card p { margin-top: 1.25rem; font-size: 1.05rem; }
.metrics { display: flex; flex-direction: column; gap: 1.25rem; }
.metrics div {
  border-left: 2px solid var(--gold);
  padding-left: 1.25rem;
}
.metrics strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--navy);
}
.metrics span { font-size: 0.9rem; color: var(--mute); }

/* ---------- Participación ---------- */
.participation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.participation-copy p { margin-top: 1.25rem; font-size: 1.05rem; }
.participation-media img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border-radius: 6px;
}

/* ---------- Contacto ---------- */
.contact { background: var(--navy); color: var(--cream); max-width: none; }
.contact-layout {
  max-width: var(--shell-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}
.contact-copy h2 { color: var(--cream); }
.contact-copy .eyebrow { color: var(--gold); }
.contact-copy > p { color: var(--sand); margin-top: 1.25rem; max-width: 48ch; }
.contact-details {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(244, 239, 230, 0.18);
}
.contact-details li { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-details span {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-details a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s ease;
}
.contact-details a:hover { color: var(--gold); }
.contact-blocks { display: grid; gap: 2rem; margin-top: 2.5rem; }
.contact-block h4 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.contact-block p { color: var(--sand); margin-bottom: 0.5rem; }
.contact-block ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.contact-block ul li {
  font-size: 0.98rem;
  color: var(--cream);
  padding-left: 1.1rem;
  position: relative;
}
.contact-block ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.65em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* ---------- Formulario ---------- */
.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(244, 239, 230, 0.18);
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sand);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--cream);
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 6px;
  padding: 0.75rem 0.9rem;
  text-transform: none;
  letter-spacing: normal;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; }
.contact-form select option { color: var(--ink); }
.contact-form .button { margin-top: 0.5rem; }
.form-feedback {
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}
.hp-field { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.form-consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: normal;
  text-transform: none;
  color: var(--sand);
  line-height: 1.5;
}
.form-consent input {
  margin-top: 0.15rem;
  width: auto;
  min-width: 16px;
  flex-shrink: 0;
  accent-color: var(--gold);
}
.form-consent a { color: var(--gold); }
.contact-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.home-page .purchase-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(244, 201, 93, 0.48);
  background: rgba(0, 0, 0, 0.12);
}
.home-page .purchase-options[hidden] { display: none; }
.home-page .purchase-options legend {
  padding: 0 0.35rem;
  color: var(--sand);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.home-page .contact-form .purchase-options label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream);
  font-size: 0.85rem;
  letter-spacing: normal;
  line-height: 1.35;
  text-transform: none;
}
.home-page .purchase-options input,
.home-page .contact-form .form-consent input {
  appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.home-page .purchase-options input:checked,
.home-page .contact-form .form-consent input:checked {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 3px var(--navy);
}
.home-page .purchase-options input:focus-visible,
.home-page .contact-form .form-consent input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.home-page .field-help {
  color: var(--sand);
  font-size: 0.72rem;
  letter-spacing: normal;
  line-height: 1.4;
  text-transform: none;
}
.home-page .contact-form input[aria-invalid="true"] { border-color: #f4c95d; }
.home-page .contact-form .button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
.home-page .contact-form .button-primary {
  background: #fff;
  color: var(--navy);
}
.home-page .contact-form .button-primary:hover:not(:disabled) { background: var(--cream); }
.home-page .required-note {
  color: var(--sand);
  font-size: 0.75rem;
  line-height: 1.45;
}

/* ---------- Páginas legales ---------- */
.legal {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(3rem, 6vw, 5rem) var(--shell-pad);
}
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.legal .subtitle { color: var(--mute); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.75rem;
  border-left: 3px solid var(--gold);
  padding-left: 0.85rem;
}
.legal h3 { font-size: 1.1rem; margin: 1.5rem 0 0.5rem; }
.legal p, .legal li { color: var(--graphite); margin-bottom: 0.75rem; font-size: 0.95rem; line-height: 1.7; }
.legal ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal a { color: var(--blue); }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.9rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 0.6rem 0.75rem; text-align: left; vertical-align: top; }
.legal th { background: var(--cream); color: var(--navy); font-weight: 600; }
.legal .notice {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.legal-sitemap { list-style: none; padding-left: 0; }
.legal-sitemap li { margin-bottom: 0.5rem; }

/* ---------- Enlaces legales del pie ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex: 1;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }

/* ---------- Contacto del pie ---------- */
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}
/* Forzar color en moviles: tel:/mailto: se ponen azules por -webkit-text-fill-color */
.footer-contact-item,
.footer-contact-item span { -webkit-text-fill-color: rgba(255, 255, 255, 0.75); }
.footer-contact-item svg { flex-shrink: 0; margin-top: 0.12rem; color: var(--gold); }
.footer-contact-item:hover,
.footer-contact-item:hover span { color: var(--gold); -webkit-text-fill-color: var(--gold); }
.footer-heading {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---------- Consentimiento de medicion ---------- */
.cookie-consent {
  position: fixed;
  z-index: 10000;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(244, 239, 230, 0.22);
  border-radius: 6px;
  background: #1b1b1b;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.34);
  color: #fff;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-copy { max-width: 62ch; }
.cookie-consent-title {
  margin: 0 0 0.35rem;
  color: var(--cream);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0;
}
.cookie-consent-title:focus { outline: none; }
.cookie-consent p { color: rgba(255, 255, 255, 0.86); font-size: 0.85rem; line-height: 1.5; }
.cookie-consent a { color: var(--gold); font-size: 0.82rem; }
.cookie-consent-actions { display: flex; flex: 0 0 auto; gap: 0.65rem; }
.cookie-consent-button {
  min-height: 42px;
  padding: 0.65rem 1rem;
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.cookie-consent-reject { background: transparent; color: var(--cream); }
.cookie-consent-accept { background: var(--gold); color: var(--ink); }
.cookie-consent-button:hover,
.cookie-consent-button:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.cookie-settings-button {
  display: block;
  min-height: 44px;
  margin: 0.65rem auto 0;
  padding: 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  text-decoration: underline;
  cursor: pointer;
}
.cookie-settings-button:hover,
.cookie-settings-button:focus-visible { color: var(--gold); }

/* ---------- Cierre ---------- */
.closing {
  background: var(--cream);
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) var(--shell-pad);
}
.closing-inner { max-width: 760px; margin: 0 auto; }
.closing h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
}
.closing-brand {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  margin-top: 2rem;
}
.closing-brand sup { font-size: 0.5em; }
.closing-tagline { color: var(--mute); margin-top: 0.5rem; }

/* ---------- Pie ---------- */
.site-footer {
  text-align: center;
  padding: clamp(0.85rem, 1.6vw, 1.2rem) var(--shell-pad);
  background: var(--ink);
  color: var(--sand);
}
.footer-main {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}
.footer-left { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-left p { margin-top: 0.35rem; }
.site-footer img {
  height: 60px;
  margin: 0 auto 1.5rem;
  padding: 0.9rem 1.4rem;
  background: var(--cream);
  border-radius: 10px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}
.footer-brand-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-top: 0.35rem;
}
.footer-tagline {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--cream);
  opacity: 0.9;
  margin-top: 0.45rem;
}
.footer-brand img {
  height: 68px;
  width: auto;
  margin: 0;
  padding: 0;
  background: none;
  border-radius: 0;
}
.footer-name {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
}
.footer-name sup { font-size: 0.4em; top: -0.9em; }
.site-footer p { color: #fff; font-size: 0.9rem; }
.site-footer p.footer-copy { margin-top: auto; padding-top: 0.6rem; font-size: 0.82rem; color: #fff; opacity: 0.7; }

/* ---------- FAQ ---------- */
.faq .section-heading { max-width: 820px; margin-left: auto; margin-right: auto; }
.faq .section-heading h2 { white-space: nowrap; font-size: clamp(1.15rem, 3.4vw, 2.4rem); }
.projects .section-heading.narrow { max-width: none; }
.projects .section-heading h2 { white-space: nowrap; font-size: clamp(1.05rem, 3.1vw, 2.4rem); }
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0;
  position: relative;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-answer {
  padding: 0 0 1.5rem;
}
.faq-answer p {
  color: var(--graphite);
  font-size: 1.05rem;
  max-width: 70ch;
  text-align: justify;
}
.faq-cta {
  max-width: 820px;
  margin: 2rem auto 0;
  text-align: left;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy);
}
.faq-cta a { color: var(--gold); text-decoration: none; font-weight: 600; }
.faq-cta a:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .faq .section-heading h2 { white-space: normal; }
  .projects .section-heading h2 { white-space: normal; }
  .footer-brand { flex-direction: column; gap: 0.5rem; }
  .footer-brand img { height: 56px; }
  .footer-name { font-size: 1.8rem; }
  .footer-copy { word-break: break-word; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .home-page .nav-toggle { display: flex; }
  .home-page .header-actions { display: none; }
  .home-page .brand { min-width: 0; margin-right: 0.75rem; }
  .home-page .brand img { height: 48px; }
  .home-page .brand-name { font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; }
  .home-page .site-header { gap: 0.75rem; }
  .home-page .nav {
    position: fixed;
    inset: 88px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 27, 27, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  .home-page.nav-open .nav { transform: translateY(0); }
  .home-page .nav a {
    padding: 1rem var(--shell-pad);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
  }
}

@media (max-width: 960px) {
  .hero-lead { font-size: 1.1rem; }
  .text-grid,
  .text-grid-three,
  .process-list,
  .projects-grid,
  .trust,
  .participation,
  .project-feature,
  .feature-grid,
  .property-columns,
  .day-grid,
  .guarantees,
  .contact-layout { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid-spaces { grid-template-columns: repeat(2, 1fr); }
  .equation { flex-direction: column; }
  .equation-op { justify-content: center; }
  .nav-toggle { display: flex; }
  .header-actions { display: none; }
  /* Evitar que la marca empuje el boton hamburguesa fuera de pantalla */
  .brand { min-width: 0; margin-right: 0.75rem; }
  .brand img { height: 48px; }
  .brand-name { font-size: 1.35rem; overflow: hidden; text-overflow: ellipsis; }
  .site-header { gap: 0.75rem; }
  .nav {
    position: fixed;
    inset: 88px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(27, 27, 27, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0;
    transform: translateY(-120%);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  }
  body.nav-open .nav { transform: translateY(0); }
  .nav a {
    padding: 1rem var(--shell-pad);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.95rem;
  }
}

@media (max-width: 600px) {
  .header-actions .button-secondary { display: none; }
  .hero-actions .button,
  .contact-actions .button { flex: 1; }
  .values-grid,
  .values-grid-spaces { grid-template-columns: 1fr; }
  .feature-specs,
  .form-row { grid-template-columns: 1fr; }
  .home-page .purchase-options { grid-template-columns: 1fr; }
  .typologies { grid-template-columns: 1fr; }
  .hero-keywords { gap: 0.5rem; }
  .footer-brand { flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
  .footer-brand img { height: 72px; }
  .footer-name { font-size: 2.1rem; }
  .footer-main { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { align-items: center; }
  .footer-contact { align-items: center; }
  .footer-contact-item { justify-content: center; text-align: left; }
  .cookie-consent {
    right: 0.75rem;
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    left: 0.75rem;
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
    max-height: calc(100dvh - 1.5rem);
    padding: 1rem;
    overflow-y: auto;
  }
  .cookie-consent-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .cookie-consent-button { width: 100%; min-height: 44px; }
}
