/* =========================================================
   CICLUS · Creando ciudad
   Paleta Mineral 2026 · Garet + Newsreader
   ========================================================= */

@font-face { font-family: "Garet"; src: url("assets/fonts/Garet-Book.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Garet"; src: url("assets/fonts/Garet-Heavy.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("assets/fonts/Newsreader-Italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }

:root {
  /* Paleta Mineral */
  --mineral: #4A5A44;      /* Verde Mineral */
  --logo: #424F38;         /* Verde del logotipo */
  --profundo: #2E3A2B;     /* Profundo */
  --salvia: #9AA694;       /* Salvia */
  --grafito: #1E211D;      /* Grafito */
  --concreto: #8B8D86;     /* Concreto */
  --hueso: #F1F0EA;        /* Hueso */

  --hueso-card: #F7F6F1;
  --line: rgba(46, 58, 43, .22);
  --line-light: rgba(241, 240, 234, .28);
  --text: #2E3A2B;
  --text-soft: #545a50;
  --text-light-soft: rgba(241, 240, 234, .78);

  --sans: "Garet", "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1280px;
  --radius: 14px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--hueso);
  color: var(--text);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, .35vw + 1rem, 1.1875rem);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--salvia); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--hueso); padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--mineral);
  margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: .9rem;
}
.eyebrow::before {             /* tres bandas: el ciclo, sin círculos */
  content: ""; flex: none; width: 26px; height: 11px;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 50% / 78% 2px no-repeat,
    linear-gradient(currentColor, currentColor) 0 100% / 56% 2px no-repeat;
  opacity: .8;
}
.eyebrow--light { color: var(--salvia); }

.title { font-size: clamp(2rem, 3.6vw + .6rem, 3.6rem); color: var(--profundo); max-width: 26ch; text-wrap: balance; }
.title--light { color: var(--hueso); }
.title--mineral { color: var(--mineral); }
.lead { font-size: clamp(1.15rem, .6vw + 1rem, 1.4rem); color: var(--text-soft); max-width: 40ch; }
.lead--light { color: var(--text-light-soft); }
.note { color: var(--text-soft); font-size: 1rem; }
.kicker { margin-top: clamp(2.5rem, 5vw, 4rem); font-style: italic; font-size: clamp(1.15rem, .8vw + 1rem, 1.5rem); color: var(--hueso); max-width: 60ch; }
.kicker--dark { color: var(--text-soft); font-style: normal; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none; padding: 1rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-1px); }
.btn--light { background: var(--hueso); color: var(--profundo); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { border-color: var(--line-light); color: var(--hueso); }
.btn--ghost-light:hover { border-color: var(--hueso); }
.btn--sm { padding: .7rem 1.15rem; font-size: .7rem; }

.tag {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--sans); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  background: var(--hueso); color: var(--profundo); padding: .5rem .95rem; border-radius: 999px;
}
.tag--mineral { background: var(--mineral); color: var(--hueso); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: var(--profundo); color: var(--hueso);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 1px 0 rgba(241,240,234,.08), 0 10px 30px -18px rgba(0,0,0,.6); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.2rem); }
.nav a:not(.btn) {
  font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  text-decoration: none; color: var(--text-light-soft); transition: color .2s;
}
.nav a:not(.btn):hover { color: var(--hueso); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--hueso); margin: 5px 0; transition: transform .3s, opacity .3s, width .3s; }
.nav-toggle span:nth-child(1) { width: 26px; }
.nav-toggle span:nth-child(2) { width: 20px; }
.nav-toggle span:nth-child(3) { width: 14px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--profundo); padding: .5rem var(--gutter) 1.75rem;
    border-top: 1px solid var(--line-light);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: 1rem 0; width: 100%; border-bottom: 1px solid rgba(241,240,234,.1); font-size: .85rem; }
  .nav .btn { margin-top: 1.25rem; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); width: 24px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.4fr 1fr;
  min-height: 100svh; padding-top: var(--header-h);
  background: var(--profundo); color: var(--hueso);
}
.hero__text {
  position: relative; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(4rem, 10vh, 7rem);
  padding-left: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
}
.hero__title {
  font-weight: 400; font-size: clamp(3.4rem, 8.4vw, 8.2rem); line-height: .98; letter-spacing: -.02em;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}
.hero__lead { font-size: clamp(1.2rem, 1vw + 1rem, 1.6rem); color: var(--text-light-soft); max-width: 32ch; line-height: 1.45; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(2rem, 4vw, 3rem); }
.hero__media { position: relative; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: .4; } to { transform: none; opacity: 1; } }

.bands { display: grid; gap: 7px; }
.bands i { display: block; height: 3px; background: currentColor; }
.bands--hero { position: absolute; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); bottom: clamp(1.75rem, 4vh, 3rem); width: 120px; color: var(--salvia); opacity: .6; }
.bands--hero i:nth-child(2) { width: 80%; }
.bands--hero i:nth-child(3) { width: 60%; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__text { padding-top: 3.5rem; padding-bottom: 5rem; }
  .hero__media { height: 72svh; min-height: 420px; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section--deep { background: var(--profundo); color: var(--hueso); }
.section--mineral { background: var(--mineral); color: var(--hueso); }
.section--bone2 { background: #ECEBE3; }
.section__head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head .lead { margin-top: 1.2rem; }

.grid-3, .grid-4, .grid-5 { display: grid; gap: clamp(.9rem, 1.6vw, 1.4rem); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid-3 { grid-template-columns: 1fr; } .grid-5 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-4, .grid-5 { grid-template-columns: 1fr; } }

/* ---------- Cards ---------- */
.card {
  display: flex; flex-direction: column; gap: 1rem;
  background: var(--hueso-card); border: 1px solid rgba(46,58,43,.1); border-radius: var(--radius);
  padding: clamp(1.4rem, 2vw, 1.9rem); text-decoration: none; color: var(--text-soft);
}
.card__logo { height: 54px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; margin-bottom: .6rem; }
.card__logo--fg { height: 50px; }
.card__logo--deal { height: 32px; margin-block: 11px calc(.6rem + 11px); }
.card__title { font-size: clamp(1.35rem, 1vw + 1rem, 1.6rem); color: var(--profundo); }
.card__more { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mineral); display: flex; justify-content: space-between; }
.card--link { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.card--link:hover { transform: translateY(-4px); border-color: rgba(46,58,43,.22); box-shadow: 0 22px 40px -28px rgba(30,33,29,.45); }
.card--link:hover .card__more span { transform: translateX(4px); }
.card__more span { transition: transform .3s; }

.problem .problem__issue { min-height: 4.65em; }
.problem .problem__how { padding-top: 1rem; border-top: 1px solid var(--line); }
.problem .problem__result {
  margin-top: auto; background: var(--profundo); color: var(--hueso);
  border-radius: 10px; padding: .95rem 1.05rem; font-size: 1rem; line-height: 1.4;
}

/* ---------- Ciclo ---------- */
.cycle { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 3vw, 3rem); counter-reset: paso; }
.cycle__step { position: relative; counter-increment: paso; }
.cycle__step img { height: 64px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; padding-bottom: 1.4rem; box-sizing: content-box; border-bottom: 1px solid var(--line-light); width: 100%; }
.cycle__step .cycle__fg { height: 56px; padding-top: 8px; }
.cycle__step .cycle__deal { height: 30px; padding-top: 17px; padding-bottom: calc(1.4rem + 17px); }
.cycle__verb { display: flex; align-items: baseline; gap: .7rem; margin-top: 1.2rem; font-family: var(--sans); font-weight: 800; font-size: clamp(1.35rem, 1.3vw + 1rem, 2rem); }
.cycle__verb::before { content: "0" counter(paso); font-weight: 400; font-size: .75rem; letter-spacing: .2em; color: var(--salvia); }
.cycle__step:not(:last-child)::after {
  content: "→"; position: absolute; right: calc(-1 * clamp(1rem, 3vw, 3rem) / 2); top: 32px;
  transform: translate(50%, -50%); color: var(--salvia); font-family: var(--sans); font-size: 1.1rem;
}
.quote {
  margin: clamp(3rem, 6vw, 5rem) 0 0; padding: 0; max-width: 46ch;
  font-size: clamp(1.35rem, 1.3vw + 1rem, 2.05rem); line-height: 1.35; color: var(--hueso); font-weight: 300;
}
@media (max-width: 880px) {
  .cycle { grid-template-columns: repeat(2, 1fr); row-gap: 2.5rem; }
  .cycle__step:nth-child(2)::after { display: none; }
}
@media (max-width: 480px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle__step::after { display: none; }
}

/* ---------- Tres C ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split__mark img { width: min(100%, 420px); margin-inline: auto; }
.values { list-style: none; margin-top: 2.2rem; border-top: 1px solid var(--line); }
.values li { padding: 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .35rem; }
.values h3 { font-size: clamp(1.35rem, 1vw + 1rem, 1.75rem); color: var(--profundo); }
.values p { color: var(--text-soft); }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } .split__mark img { width: 200px; margin: 0; } }

/* ---------- Contexto ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.stat { border-top: 1px solid var(--line-light); padding-top: 1.75rem; color: var(--text-light-soft); }
.stat__num { font-family: var(--sans); font-weight: 800; font-size: clamp(3.2rem, 6vw, 5.6rem); line-height: 1; color: var(--salvia); margin-bottom: .8rem; letter-spacing: -.02em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Feature (logo + texto + imagen) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.feature--wide { grid-template-columns: 1fr 1.25fr; }
.feature__text { display: grid; gap: 1.5rem; align-content: start; }
.feature__logo { height: 64px; width: auto; }
.feature__logo--fg { height: 92px; margin-bottom: .5rem; }
.feature__media { position: relative; border-radius: var(--radius); overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__media--tall { aspect-ratio: 4 / 5; }
.feature__media--stack { display: grid; gap: 10px; border-radius: 0; overflow: visible; }
.feature__media--stack figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.feature__media--stack img { width: 100%; height: 100%; object-fit: cover; }
#fg .feature__media { aspect-ratio: 4 / 5; }
#como-funciona .feature--wide { grid-template-columns: 1.25fr 1fr; }
@media (max-width: 880px) {
  .feature, .feature--wide, #como-funciona .feature--wide { grid-template-columns: 1fr; }
  #como-funciona .feature__text { order: -1; }
}

.list { list-style: none; display: grid; gap: .55rem; }
.list li { position: relative; padding-left: 1.4rem; }
.list li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 2px; background: var(--salvia); }
.list--light { color: var(--text-light-soft); }
.list:not(.list--light) { padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }

.plain { list-style: none; display: grid; gap: .4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--text-soft); }
.link { font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--mineral); border-bottom: 1px solid currentColor; padding-bottom: .2rem; justify-self: start; }

/* ---------- Lofts Lagrange ---------- */
.figures { display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 3vw, 2.75rem); padding-bottom: 1.4rem; border-bottom: 1px solid var(--line-light); margin: .5rem 0 0; }
.figures dt { font-family: var(--sans); font-weight: 400; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; }
.figures dd { margin: .35rem 0 0; color: var(--text-light-soft); font-size: 1rem; }
.credits { display: grid; gap: .35rem; margin: 0; }
.credits div { display: flex; flex-wrap: wrap; gap: .4rem; }
.credits dt { font-weight: 700; }
.credits dt::after { content: ":"; }
.credits dd { margin: 0; color: var(--text-light-soft); }
.credits--numbers { padding: 1.1rem 1.25rem; border: 1px solid var(--line-light); border-radius: 10px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pair figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 5; }
.pair img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 480px) { .pair figure { aspect-ratio: 3 / 4.6; } .pair .tag { left: 8px; bottom: 8px; font-size: .6rem; padding: .4rem .7rem; } }

/* ---------- Portafolio FG ---------- */
.portfolio { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: clamp(1rem, 2vw, 1.5rem); margin-top: clamp(4.5rem, 9vw, 7.5rem); align-items: end; }
.portfolio__text { display: grid; gap: 1.3rem; align-self: center; padding-right: clamp(0px, 2vw, 2rem); }
.portfolio__text .title { font-size: clamp(2rem, 2.8vw + .6rem, 3rem); }
.portfolio figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.portfolio figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.portfolio figure:hover img { transform: scale(1.03); }
@media (max-width: 880px) { .portfolio { grid-template-columns: 1fr 1fr; } .portfolio__text { grid-column: 1 / -1; } }
@media (max-width: 480px) { .portfolio { grid-template-columns: 1fr; } }

/* ---------- Casas DEAL ---------- */
.deal-logo { height: clamp(40px, 5vw, 58px); width: auto; margin-bottom: 2.2rem; }
.tile { background: #3B4A37; color: var(--text-light-soft); border-radius: 12px; padding: 1.3rem 1.25rem 1.5rem; font-size: .98rem; line-height: 1.45; }
.tile h3 { font-weight: 400; font-size: 1.2rem; color: var(--hueso); margin-bottom: .55rem; }
.statement { margin-top: clamp(2.5rem, 5vw, 4rem); font-size: clamp(1.25rem, 1.2vw + 1rem, 1.9rem); line-height: 1.4; max-width: 52ch; color: var(--profundo); }

.steps { list-style: none; counter-reset: s; display: grid; gap: .8rem; color: var(--text-light-soft); }
.steps li { counter-increment: s; position: relative; padding-left: 2rem; }
.steps li::before { content: counter(s) "."; position: absolute; left: 0; top: .1em; font-family: var(--sans); color: var(--salvia); }
.steps strong { color: var(--hueso); font-weight: 700; }
#como-funciona .figures, #proceso .figures { border-bottom: 0; border-top: 1px solid var(--line-light); padding: 1.4rem 0 0; }
#como-funciona .figures dt, #proceso .figures dt { font-weight: 800; }

.compare { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 2 / 3; width: min(100%, 460px); justify-self: center; user-select: none; --pos: 50%; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare__after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: var(--hueso); transform: translateX(-1px); pointer-events: none; }
.compare__handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: var(--hueso); color: var(--profundo); font-family: var(--sans); font-size: .95rem; letter-spacing: .1em;
  padding: .55rem .8rem; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); white-space: nowrap;
}
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare__range:focus-visible + * , .compare:focus-within .compare__handle::after { outline: 2px solid var(--salvia); outline-offset: 2px; }
.compare__label--l { left: 14px; top: 14px; bottom: auto; }
.compare__label--r { left: auto; right: 14px; top: auto; }

/* ---------- Equipo ---------- */
.person { background: var(--hueso-card); border: 1px solid rgba(46,58,43,.1); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 18%; background: #555; }
.person img.person__group { object-position: 50% 40%; }
.person__body { padding: 1.5rem 1.5rem 1.75rem; display: grid; gap: .55rem; color: var(--text-soft); }
.person h3 { font-size: 1.5rem; color: var(--profundo); }
.person__role { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--mineral); }

/* ---------- Súmate / Contacto ---------- */
.entry {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; flex-direction: column; gap: .8rem;
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.4rem; color: var(--text-light-soft); font-family: var(--serif); font-size: 1.02rem; line-height: 1.45;
  transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.entry em { color: var(--hueso); opacity: .85; }
.entry__verb { font-family: var(--sans); font-size: clamp(1.8rem, 1.6vw + 1rem, 2.4rem); color: var(--hueso); line-height: 1.1; }
.entry__unit { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line-light); font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.entry:hover, .entry.is-active { background: var(--hueso); color: var(--text-soft); border-color: var(--hueso); transform: translateY(-3px); }
.entry:hover .entry__verb, .entry.is-active .entry__verb, .entry:hover em, .entry.is-active em { color: var(--profundo); }
.entry:hover .entry__unit, .entry.is-active .entry__unit { border-color: var(--line); color: var(--mineral); }
.entry:focus-visible { outline: 2px solid var(--hueso); outline-offset: 3px; }

.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(3.5rem, 7vw, 6rem); padding-top: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-light); }
.contact__big { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem); line-height: 1.25; color: var(--hueso); max-width: 22ch; }
.contact__meta { margin-top: 2rem; color: var(--text-light-soft); }
.contact__meta a { text-decoration: none; border-bottom: 1px solid var(--line-light); }
.form { display: grid; gap: 1.15rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form.is-sent .field, .form.is-sent .field-row, .form.is-sent .btn { display: none; }
.form.is-sent .form__status { font-size: clamp(1.3rem, 1vw + 1rem, 1.7rem); color: var(--hueso); line-height: 1.35; }
.field { display: grid; gap: .45rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.field label { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--salvia); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1.05rem; color: var(--hueso);
  background: rgba(30,33,29,.18); border: 1px solid var(--line-light); border-radius: 10px;
  padding: .85rem 1rem; width: 100%; transition: border-color .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--salvia) 50%), linear-gradient(135deg, var(--salvia) 50%, transparent 50%); background-position: calc(100% - 22px) 55%, calc(100% - 16px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: var(--profundo); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--hueso); background: rgba(30,33,29,.3); }
.field textarea { resize: vertical; min-height: 7rem; }
.field input[aria-invalid="true"] { border-color: #E2B4A8; }
.form .btn { justify-self: start; margin-top: .4rem; }
.form__status { min-height: 1.5em; color: var(--text-light-soft); font-size: .98rem; }
@media (max-width: 880px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--hueso); padding-block: clamp(4.5rem, 9vw, 7rem) 2rem; }
.footer__logo { width: clamp(180px, 22vw, 260px); height: auto; }
.footer__claim {
  font-family: var(--sans); font-weight: 800; color: var(--salvia);
  font-size: clamp(2.4rem, 6.2vw, 6rem); line-height: 1.02; letter-spacing: -.015em;
  margin: clamp(3rem, 6vw, 5rem) 0; max-width: 21ch; text-wrap: balance;
}
.footer__claim strong { color: var(--profundo); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line); color: var(--text-soft); }
.footer__bottom a { text-decoration: none; }
.footer__site { font-family: var(--sans); font-weight: 800; font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem); color: var(--profundo); }
.footer__units { font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; text-align: right; line-height: 2; }
.footer__legal { margin-top: 3rem; font-size: .85rem; color: var(--concreto); }
@media (max-width: 560px) { .footer__units { text-align: left; } }

/* ---------- Botón dentro de un bloque de texto ---------- */
.feature__text > .btn { justify-self: start; }

/* ---------- Fuentes de las cifras ---------- */
.ref {
  font-family: var(--sans); font-size: .62em; line-height: 0; vertical-align: super;
  margin-left: .2em; text-decoration: none; color: var(--salvia);
}
.ref:hover { text-decoration: underline; }
.problem .ref { color: var(--mineral); }
.sources {
  margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 0 0 1.2rem; border-top: 1px solid var(--line-light);
  display: grid; gap: .45rem; max-width: 92ch;
  font-size: .82rem; line-height: 1.5; color: rgba(241, 240, 234, .62);
}
.sources a { color: inherit; }
.sources li:target { color: var(--hueso); }

/* ---------- Índice de proyectos ---------- */
.projects { row-gap: clamp(2.2rem, 4vw, 3.2rem); }
.project { display: flex; flex-direction: column; gap: .4rem; text-decoration: none; color: var(--text-soft); }
.project__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: .85rem; background: var(--concreto); }
.project__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.project:hover .project__media img { transform: scale(1.03); }
.project__units { font-family: var(--sans); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mineral); }
.project__name { font-size: clamp(1.35rem, 1vw + 1rem, 1.6rem); color: var(--profundo); }
.project__meta { font-size: 1rem; }
.project:hover .project__name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
@media (max-width: 1080px) { .grid-3.projects { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .grid-3.projects { grid-template-columns: 1fr; } .project__media { aspect-ratio: 4 / 3; } }

/* ---------- Página Casas DEAL ---------- */
.hero__title--sm { font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 1.02; }
.hero--deal .hero__media img { object-position: 50% 50%; }
.footer__logo--deal { width: clamp(180px, 20vw, 240px); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Enlaces a los sitios de FG Arquitectos y Casas DEAL ---------- */
.feature__text .btn { justify-self: start; }
.footer__units a { color: inherit; border-bottom: 1px solid var(--line); }
.footer__units a:hover { color: var(--profundo); border-color: currentColor; }
