/* Bethel — sitio v2
   Paleta y tipografía del manual de marca (brand/tokens/tokens.css).
   Layout inspirado en la muestra: fondo oscuro, wordmark gigante, tarjetas de 2px, círculos lineales. */

:root {
  --azul: #7690C0;
  --azul-300: #B2C1DC;
  --azul-700: #586989;
  --gris: #BDBFC1;
  --negro: #373435;
  --blanco: #FFFFFF;
  --degradado: linear-gradient(90deg, #7690C0 0%, #BDBFC1 100%);

  --bg: #1c1a1b;            /* negro Bethel oscurecido para fondo */
  --surface: #262425;
  --card: #2e2c2d;
  --line: rgba(250, 250, 250, .1);
  --line-2: rgba(250, 250, 250, .2);
  --text: #fafafa;
  --muted: rgba(250, 250, 250, .58);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 2px;
  --gutter: clamp(16px, 2.2vw, 32px);
  --section: clamp(96px, 13vw, 200px);
  --ease: cubic-bezier(.25, 1, .5, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 500;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--azul); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }

.wrap { width: 100%; padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }

/* ---------- Tipografía ---------- */
.surtitle {
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.h2 { font-size: clamp(2.6rem, 6.6vw, 6.25rem); font-weight: 700; line-height: 1; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.9rem, 3.6vw, 3.4rem); font-weight: 700; line-height: 1.05; letter-spacing: -.03em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; justify-content: center;
  min-height: 52px; padding: 12px 20px; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn--sm { min-height: 42px; padding: 9px 14px; font-size: 12px; }
.btn--primary { background: var(--azul); color: #151314; }
.btn--primary:hover { background: var(--azul-300); }
.btn--ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--azul); }
.btn--dark { background: var(--negro); color: var(--text); }
.btn--dark:hover { background: #111; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.plus { position: relative; width: 12px; height: 12px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; }
.plus::before { width: 12px; height: 2px; }
.plus::after { width: 2px; height: 12px; transition: transform .35s var(--ease); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 10px 10px auto; z-index: 50; }
.header__bar {
  display: flex; align-items: center; gap: 18px;
  min-height: 54px; padding: 8px 8px 8px 16px; border-radius: var(--radius);
  background: rgba(46, 44, 45, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  transition: transform .5s var(--ease);
}
.header.is-hidden .header__bar { transform: translateY(-140%); }
.header__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.header__word { font-weight: 900; letter-spacing: .12em; font-size: 15px; }
.header__nav { display: none; margin-left: auto; gap: 26px; }
.header__nav a { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--muted); transition: color .3s; }
.header__nav a:hover { color: var(--text); }
.header__cta { display: none; }
.header__menu {
  margin-left: auto; display: inline-flex; align-items: center; gap: 12px;
  min-height: 40px; padding: 8px 14px; border: 0; border-radius: var(--radius); background: rgba(250,250,250,.08);
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
}
.header__menu .plus { color: var(--azul); }
.header__menu[aria-expanded="true"] .plus::after { transform: rotate(90deg) scaleX(0); }

.menu {
  position: fixed; inset: 0; z-index: 46; background: var(--bg);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 110px var(--gutter) 32px;
}
.menu[hidden] { display: none; }
.menu__nav { display: flex; flex-direction: column; gap: 4px; }
.menu__nav a { font-size: clamp(2.4rem, 10vw, 4.5rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-decoration: none; }
.menu__nav a:hover { color: var(--azul); }
.menu__foot { display: grid; gap: 14px; color: var(--muted); font-size: 14px; }
.menu__foot .btn { justify-self: start; }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__menu { display: none; }
}

/* ---------- Círculos decorativos ---------- */
.circle { position: absolute; border-radius: 50%; border: 1px solid var(--line-2); pointer-events: none; }
.circle--hero { width: 120vw; aspect-ratio: 1; right: -70vw; top: 18vh; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; padding-top: 92px; padding-bottom: 48px; overflow: hidden; }
.hero__circles { position: absolute; top: 22vh; left: 18vw; width: 150vw; pointer-events: none; }
.hero__circles svg { width: 100%; height: auto; overflow: visible; }
.hero__circles svg * { stroke: rgba(250, 250, 250, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
@media (min-width: 900px) { .hero__circles { top: 14vh; left: 38vw; width: 86vw; } }
.hero__inner { z-index: 1; position: relative; display: flex; flex-direction: column; min-height: calc(100svh - 140px); }
.wordmark {
  /* "BETHEL." mide ~4.21em en Montserrat 900: así llena el ancho útil sin desbordar */
  font-weight: 900; font-size: calc((100vw - 2 * var(--gutter)) / 4.26); line-height: .78; letter-spacing: -.045em;
  margin-left: -.04em; white-space: nowrap; padding-bottom: .06em;
}
.wordmark__txt { display: inline-block; }
.wordmark__dot, .footer__wordmark span { color: var(--azul); }
.split-char { display: inline-block; will-change: transform; }
.statement {
  margin-top: clamp(20px, 3vw, 40px); max-width: 21ch;
  font-size: clamp(1.75rem, 3.2vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em;
  color: var(--muted);
}
.statement strong { color: var(--text); font-weight: 700; }
.hero__grid { display: grid; gap: 28px; margin-top: auto; padding-top: 48px; }
.hero__lead { max-width: 46ch; font-size: 16px; margin-bottom: 24px; }
.hero__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.hero__media figcaption, .project figcaption { margin-top: 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--gutter); }
  .hero__copy { order: 0; }
  .hero__media { justify-self: end; width: min(100%, 560px); }
}

/* ---------- Imágenes ---------- */
.img { position: relative; overflow: hidden; border-radius: var(--radius); }
.img img { width: 100%; height: 115%; object-fit: cover; }

/* ---------- Nosotros ---------- */
.about__title { margin-bottom: clamp(40px, 6vw, 80px); }
.about__grid { display: grid; gap: 32px; }
.about__img-left { aspect-ratio: 4 / 5; max-width: 420px; }
.about__text p { margin-bottom: 16px; color: rgba(250,250,250,.86); }
.about__text strong { color: var(--text); }
.about__right { display: grid; gap: 28px; justify-items: start; }
.about__img-right { width: 100%; aspect-ratio: 16 / 10; }

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 4fr 5fr 4fr; align-items: start; gap: var(--gutter); }
  .about__title { margin-left: 30%; }
  .about__img-left { margin-top: -180px; }
  .about__right { margin-top: 140px; justify-items: end; }
}
@media (min-width: 1280px) {
  .about__grid { grid-template-columns: 4fr 6fr 4fr; }
  .about__text { column-count: 2; column-gap: var(--gutter); }
}

.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: clamp(64px, 9vw, 140px); border-top: 1px solid var(--line); }
.stat { padding: 28px 0 0; display: grid; gap: 6px; }
.stat__num { font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.stat__label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sliders ---------- */
.target { padding-bottom: var(--section); }
.target__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.track {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
}
.track::-webkit-scrollbar { display: none; }
.track.is-dragging { scroll-snap-type: none; }

/* Slider: flechas sobre las imágenes, cursor "Arrastra" y barra de progreso */
.slider { position: relative; }
.slider__btn {
  position: absolute; top: 50%; z-index: 5; display: grid; place-items: center;
  width: 60px; height: 60px; margin-top: -30px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(250, 250, 250, .94); color: #151314;
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6);
  transition: transform .45s var(--ease), opacity .35s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.slider__btn--prev { left: calc(var(--gutter) + 14px); }
.slider__btn--next { right: calc(var(--gutter) + 14px); }
.slider__btn span {
  width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M3 12h17M13 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: translate .35s var(--ease);
}
.slider__btn--prev span { scale: -1 1; }
.slider__btn:hover { background: var(--azul); transform: scale(1.08); }
.slider__btn--next:hover span { translate: 3px 0; }
.slider__btn--prev:hover span { translate: -3px 0; }
.slider__btn.is-off { opacity: 0; transform: scale(.5); pointer-events: none; }
/* Hasta que la persona interactúa, la flecha "siguiente" late y empuja hacia la derecha */
.slider__btn--next::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(250, 250, 250, .8); animation: slider-ping 2.4s cubic-bezier(.22, 1, .36, 1) infinite;
}
.slider__btn--next span { animation: slider-nudge 2.4s cubic-bezier(.22, 1, .36, 1) infinite; }
.slider.is-touched .slider__btn--next::after { animation: none; opacity: 0; }
.slider.is-touched .slider__btn--next span { animation: none; }
@keyframes slider-ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(1.75); opacity: 0; } }
@keyframes slider-nudge { 0%, 55%, 100% { transform: translateX(0); } 20% { transform: translateX(5px); } 35% { transform: translateX(-1px); } }

.slider__cursor {
  position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none;
  width: 108px; height: 108px; margin: -54px 0 0 -54px; border-radius: 50%;
  display: grid; place-items: center; background: var(--azul); color: #151314;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  scale: 0; transition: scale .4s cubic-bezier(.22, 1, .36, 1);
}
.slider__cursor span::before { content: "←"; margin-right: 6px; }
.slider__cursor span::after { content: "→"; margin-left: 6px; }
.slider.is-hover .slider__cursor { scale: 1; }
.slider.is-down .slider__cursor { scale: .82; }
@media (hover: hover) and (pointer: fine) {
  .slider .track, .slider .track * { cursor: none; }
}

.slider__foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.slider__count { flex: none; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(250, 250, 250, .4); font-variant-numeric: tabular-nums; }
.slider__count b { color: var(--text); font-weight: 600; }
.slider__bar { position: relative; flex: 1; height: 2px; overflow: hidden; background: rgba(250, 250, 250, .14); }
.slider__bar i { position: absolute; inset: 0 auto 0 0; width: 30%; background: var(--azul); transition: left .25s ease-out, width .25s ease-out; }
@media (max-width: 699px) {
  /* Móvil: flechas discretas; el latido las hace notar cuando nadie las está usando */
  .slider__btn { width: 38px; height: 38px; margin-top: -19px; background: rgba(250, 250, 250, .86); box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .6); }
  .slider__btn span { width: 16px; height: 16px; }
  .slider__btn--prev { left: calc(var(--gutter) + 6px); }
  .slider__btn--next { right: calc(var(--gutter) + 6px); }
}
.tcard {
  position: relative; flex: 0 0 min(82vw, 460px); aspect-ratio: 3 / 2; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; text-decoration: none;
}
.tcard img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.tcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(18,16,17,.85)); }
.tcard__label { position: absolute; z-index: 1; left: 18px; right: 18px; bottom: 16px; font-size: clamp(1.05rem, 1.5vw, 1.35rem); font-weight: 700; line-height: 1.2; }
.tcard:hover img { transform: scale(1.06); }

.target__sep { height: 1px; margin-bottom: 24px; background: rgba(250, 250, 250, .24); transform-origin: left; }
.target .tcard {
  display: grid; flex: 0 0 min(84vw, 440px); aspect-ratio: auto;
  border: 1px solid transparent; transition: border-color .6s var(--ease);
}
.target .tcard::before { content: ""; padding-top: 82%; grid-area: 1 / 1; }
.target .tcard::after { display: none; }
.tcard__link { position: absolute; inset: 0; z-index: 4; }
.tcard__img { position: absolute; inset: 0; overflow: hidden; }
.tcard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,16,17,.75), rgba(18,16,17,.08) 70%); }
.tcard__title-ctn, .tcard__info { grid-area: 1 / 1; }
.tcard__title-ctn { position: relative; z-index: 1; display: flex; align-items: flex-end; padding: 22px; }
.target .tcard__label { position: static; max-width: 17ch; font-size: clamp(1.3rem, 1.9vw, 1.7rem); letter-spacing: -.015em; line-height: 1.15; }
.tcard__info {
  position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; background: #151314; transform: translateY(100%); transition: transform .5s cubic-bezier(.19, 1, .22, 1);
}
.tcard__info > * { opacity: 0; transition: opacity .35s cubic-bezier(.25, .46, .45, .94); }
.tcard__info-tag { flex-grow: 1; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tcard__info-desc { margin: 24px 0 14px; font-size: 15px; color: rgba(250,250,250,.86); }
.tcard__cta { width: 100%; justify-content: center; }
.target .tcard .icon-btn { position: absolute; top: 16px; right: 16px; z-index: 3; }
.target .tcard:hover, .target .tcard:focus-within, .target .tcard.is-open { border-color: rgba(250, 250, 250, .24); }
.target .tcard:hover .tcard__info, .target .tcard:focus-within .tcard__info, .target .tcard.is-open .tcard__info { transform: translateY(0); }
.target .tcard:hover .tcard__info > *, .target .tcard:focus-within .tcard__info > *, .target .tcard.is-open .tcard__info > * { opacity: 1; transition-delay: .08s; }

.track--clients { align-items: flex-start; }
.track--clients img { flex: 0 0 auto; width: min(64vw, 300px); height: auto; min-width: 0; aspect-ratio: 4 / 5; object-fit: cover; scroll-snap-align: start; border-radius: var(--radius); }

/* ---------- Valores ---------- */
.values { overflow: hidden; }
.values__intro { display: grid; gap: 8px; margin-bottom: clamp(48px, 7vw, 96px); }
.values__lead { font-size: clamp(1.35rem, 2.3vw, 2.1rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 30ch; }
.values__cards { display: flex; flex-direction: column; gap: 20px; }
.vcard__num { margin-bottom: 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: rgba(250,250,250,.36); font-variant-numeric: tabular-nums; }
.vcard__num span { color: var(--text); }
.vcard {
  position: relative; display: grid; overflow: hidden; border-radius: var(--radius);
  background: var(--surface); border: 1px solid rgba(250, 250, 250, .12);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.vcard::before { content: ""; padding-top: 62%; grid-area: 1 / 1; }
.vcard:hover { background: #2c2a2b; border-color: rgba(250, 250, 250, .24); }
.vcard__bg { position: absolute; top: -18%; right: -22%; width: 92%; pointer-events: none; }
.vcard__bg svg { width: 100%; height: auto; }
.vcard__bg svg * { stroke: #4b4849; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.vcard__inner { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: clamp(22px, 3vw, 40px); }
.vcard__icon {
  display: grid; place-items: center; width: 64px; height: 64px; padding: 14px;
  border: 1px solid rgba(250, 250, 250, .16); border-radius: var(--radius); color: var(--azul);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.vcard__icon svg { width: 100%; height: 100%; }
.vcard:hover .vcard__icon { background: var(--azul); color: #151314; }
.vcard__title { margin-top: auto; font-size: clamp(2rem, 3.8vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; max-width: 12ch; }
.vcard__info { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.vcard__info p { max-width: 40ch; color: rgba(250,250,250,.78); }
@media (min-width: 900px) {
  .values__intro { grid-template-columns: 1fr 1fr; }
  .values__intro .surtitle { grid-column: 1; }
  .values__lead { grid-column: 2; }
  .values__cards { gap: 0; }
  .vcard-ctn { width: 58%; }
  .vcard-ctn + .vcard-ctn { margin-top: -2.4vw; }
  .vcard-ctn:nth-child(even) { margin-left: auto; text-align: right; }
  .vcard-ctn:nth-child(even) .vcard { text-align: left; }
  .vcard::before { padding-top: 50%; }
}

/* Línea azul que barre la tarjeta mientras se descubre (la crea main.js) */
.vcard__scan {
  position: absolute; top: 0; bottom: 0; left: 0; z-index: 2; width: 2px; opacity: 0; pointer-events: none;
  background: var(--azul); box-shadow: 0 0 18px 2px rgba(118, 144, 192, .55);
}

/* ---------- Amenidades: píldoras centradas con icono ---------- */
.amenities { margin-top: clamp(72px, 10vw, 140px); text-align: center; }
.amenities .surtitle { margin-bottom: clamp(20px, 3vw, 32px); }
.amenities__list { display: flex; flex-wrap: wrap; gap: 8px; }
/* Píldoras simples (destacados y características en las páginas de proyecto) */
.amenities__list > li:not(.amenity) {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 14px; font-weight: 600; background: var(--surface);
}
.amenities .amenities__list { justify-content: center; gap: 10px 12px; max-width: 860px; margin-inline: auto; }
.amenity {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px 8px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 15px; font-weight: 600; background: var(--surface);
  transition: border-color .4s var(--ease), background-color .4s var(--ease);
}
.amenity__icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 8px;
  border-radius: 50%; background: rgba(118, 144, 192, .14); color: var(--azul);
  transition: background-color .4s var(--ease), color .4s var(--ease), transform .6s var(--ease);
}
.amenity__icon svg { width: 100%; height: 100%; }
.amenity__icon svg * { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amenity:hover { border-color: rgba(118, 144, 192, .6); background: #2c2a2b; }
.amenity:hover .amenity__icon { background: var(--azul); color: #151314; transform: rotate(-12deg) scale(1.08); }
/* Reflejo que recorre las píldoras una tras otra cuando ya entraron */
.amenity::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
  background: linear-gradient(105deg, transparent 30%, rgba(189, 191, 193, .16) 50%, transparent 70%);
}
.amenities.is-in .amenity::after { animation: amenity-shine 7s var(--ease) infinite; animation-delay: calc(var(--i) * .35s + 1s); }
@keyframes amenity-shine { 0% { transform: translateX(-120%); } 18%, 100% { transform: translateX(120%); } }
@media (max-width: 699px) {
  .amenities__list { gap: 8px; }
  .amenity { gap: 8px; padding: 6px 14px 6px 6px; font-size: 14px; }
  .amenity__icon { width: 32px; height: 32px; padding: 7px; }
}

/* ---------- Proyectos ---------- */
.projects { position: relative; padding-top: var(--section); overflow-x: clip; }
.projects__head { display: grid; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
.filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 700;
  transition: background .3s, color .3s, border-color .3s;
}
.chip:hover { border-color: var(--azul); }
.chip.is-active { background: var(--text); color: #151314; border-color: var(--text); }
@media (min-width: 900px) { .projects__head .filter { justify-self: end; margin-top: .6em; } }

.projects__title {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0 .3em;
  font-size: clamp(3rem, 8.4vw, 10rem); font-weight: 700; letter-spacing: -.045em; line-height: 1;
}
.projects__title-r { transform: translateY(.225em); }
.projects__title .u-word { padding-bottom: .1em; margin-bottom: -.1em; }

.pshow { --fcard-w: calc(100vw - 2 * var(--gutter)); position: relative; overflow: clip; margin-top: clamp(24px, 4vw, 64px); }
.pshow__overlay-ctn { position: absolute; inset: 0; pointer-events: none; }
.pshow__overlay { position: sticky; top: 0; z-index: 2; height: 100svh; }
.pshow__circles { position: absolute; inset: 0; overflow: hidden; }
.pshow__circle { position: absolute; width: 64vw; aspect-ratio: 1; border: 1px solid rgba(250, 250, 250, .24); border-radius: 50%; }
.pshow__circle--l { top: 12vh; left: -40vw; }
.pshow__circle--r { top: 52vh; right: -40vw; }
.pshow__nav { position: absolute; top: 88px; left: var(--gutter); display: flex; gap: 8px; pointer-events: auto; }
.pshow__nav-link {
  position: relative; padding: 10px; border-radius: var(--radius); text-decoration: none;
  font-size: 12px; font-weight: 600; line-height: 1.15; letter-spacing: .06em; font-variant-numeric: tabular-nums;
  color: var(--text); background: rgba(250, 250, 250, .12); border: 1px solid rgba(250, 250, 250, .12);
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.pshow__nav-link:hover { background: rgba(250, 250, 250, .24); }
.pshow__nav-link.is-active { background: var(--text); color: #151314; }
.pshow__images { position: sticky; top: 0; z-index: 0; height: 0; }
.pshow__image { position: absolute; inset: 0 0 auto; height: 100svh; overflow: hidden; opacity: 0; transition: opacity 1s cubic-bezier(.39, .575, .565, 1); }
.pshow__image.is-active { opacity: 1; }
.pshow__image img { width: 100%; height: 100%; object-fit: cover; }
.pshow__card-ctn { position: relative; z-index: 1; display: grid; min-height: 100svh; pointer-events: none; }
.pshow__card-ctn[hidden] { display: none; }
.pshow__card-wrap { display: flex; }
.pshow__bg { background: rgba(18, 16, 17, .44); }
.pshow__bg--side { flex: 1; }
.pshow__col { display: flex; flex-direction: column; width: var(--fcard-w); }
.pshow__bg--grow { flex: 1; min-height: 16vh; }
.pshow__card-ctn:first-of-type .pshow__bg--grow:first-child { min-height: 34vh; }

.pframe {
  position: relative; z-index: 3; pointer-events: auto; border-radius: var(--radius);
  outline: 2px solid transparent; outline-offset: .25em; transition: outline-color .3s var(--ease);
}
.pframe:hover { outline-color: var(--text); }
.pframe__link { position: absolute; inset: 0; z-index: 1; }
.pframe__cat {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px;
  background: #fafafa; color: #151314; border-radius: var(--radius) var(--radius) 0 0;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.pframe__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--azul); }
.pframe__window { position: relative; aspect-ratio: 2 / 1; }
.pframe__window span { position: absolute; top: 0; width: 14px; height: 100%; background: #fafafa; }
.pframe__window span:last-child { right: 0; }
.pframe__info { display: grid; gap: 8px; padding: 16px; background: #fafafa; color: #151314; border-radius: 0 0 var(--radius) var(--radius); }
.pframe__logo { justify-self: start; height: 40px; width: auto; max-width: 120px; object-fit: contain; margin-bottom: 4px; }
.pframe__title { font-size: clamp(1.7rem, 2.5vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.pframe__desc { font-size: 15px; color: #5c595a; }
.pframe__actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.pframe .btn--primary { background: var(--azul-700); color: #fff; }
.pframe .btn--primary:hover { background: var(--negro); }
@media (min-width: 700px) {
  .pshow { --fcard-w: min(460px, 34vw); }
  .pshow__nav { top: 50%; flex-direction: column; translate: 0 -50%; }
  .pshow__circle { width: 48vw; }
  .pshow__circle--l { top: 9rem; left: -26vw; }
  .pshow__circle--r { top: 36rem; right: -26vw; }
}
.pframe__num { display: none; font-variant-numeric: tabular-nums; color: #8a8788; }
@media (max-width: 699px) {
  .pshow__card-ctn { min-height: 92svh; }
  /* En móvil la navegación flotante quedaría encima de las tarjetas: el número va dentro de cada una */
  .pshow__nav { display: none; }
  .pframe__num { display: inline; margin-left: auto; }
  .pframe__dot { display: none; }
}
.projects__empty { padding-block: 40px; color: var(--muted); font-size: 18px; }

.redirect { background: var(--surface); border-block: 1px solid var(--line); }
.redirect__inner { display: grid; gap: 18px; padding-block: clamp(48px, 6vw, 72px); justify-items: start; }
.redirect__inner p { color: var(--muted); font-size: 18px; }
@media (min-width: 900px) { .redirect__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; } }

/* ---------- Asesores ---------- */
.team__head { display: grid; gap: 32px; margin-bottom: clamp(48px, 7vw, 100px); }
.team__img { aspect-ratio: 3 / 4; max-width: 440px; }
.team__intro { display: grid; gap: 22px; align-content: center; }
.team__intro p:last-child { max-width: 46ch; color: rgba(250,250,250,.84); }
@media (min-width: 900px) { .team__head { grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: center; } }

.advisors { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.advisor { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 10px; border-radius: var(--radius); background: #F3F3F4; color: var(--negro); }
.advisor img { width: 96px; height: 96px; object-fit: cover; object-position: top; border-radius: var(--radius); background: #fff; }
.advisor h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.advisor p { font-size: 13px; color: #6E6E6F; margin-bottom: 6px; }
.advisor a { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--azul-700); text-decoration: none; }
.advisor a:hover { color: var(--negro); }

/* ---------- Clientes / Galería ---------- */
.clients { padding-top: 0; }
.gallery__title { max-width: 14ch; margin-bottom: clamp(40px, 6vw, 80px); }
.gallery__grid { display: grid; gap: 16px; }
.gallery__a { aspect-ratio: 16 / 10; }
.gallery__b, .gallery__c { aspect-ratio: 4 / 3; }
.gallery__text { display: grid; gap: 22px; justify-items: start; color: rgba(250,250,250,.84); max-width: 46ch; }
@media (min-width: 900px) {
  .gallery__title { margin-left: 8.33%; }
  .gallery__grid { grid-template-columns: repeat(12, 1fr); gap: var(--gutter); align-items: start; }
  .gallery__a { grid-column: 4 / span 9; }
  .gallery__b { grid-column: 1 / span 4; margin-top: -120px; }
  .gallery__text { grid-column: 6 / span 4; margin-top: 40px; }
  .gallery__c { grid-column: 10 / span 3; margin-top: 140px; }
}

/* ---------- Contacto ---------- */
.contact__grid { display: grid; gap: 48px; }
.contact__intro { display: grid; gap: 22px; align-content: start; }
.contact__intro p:last-child { max-width: 44ch; color: rgba(250,250,250,.84); }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.form label { display: grid; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line); font-size: 16px; text-transform: none; letter-spacing: 0; color: var(--text);
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--azul); }
.form .btn { justify-self: start; margin-top: 6px; }
.form__note { font-size: 14px; color: var(--azul-300); min-height: 1em; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: var(--gutter); } }

/* ---------- Footer ---------- */
.footer { position: relative; padding-top: 24px; overflow: hidden; }
.footer__grid { display: grid; gap: 10px; position: relative; z-index: 1; }
.footer__nav { display: grid; gap: 28px; align-content: space-between; padding: 24px; border-radius: var(--radius); background: var(--blanco); color: var(--negro); }
.footer__nav nav { display: grid; gap: 2px; }
.footer__nav nav a { font-size: clamp(1.5rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; line-height: 1.2; }
.footer__nav nav a:hover { color: var(--azul-700); }
/* Menú grande + dos columnas de enlaces; en tablet van lado a lado para no dejar media tarjeta vacía */
.footer__top { display: grid; gap: 32px; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer__label { margin-bottom: 12px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #7a797b; }
.footer__links { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.footer__links a { color: #545355; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .35s var(--ease); }
.footer__links a:hover { color: var(--negro); background-size: 100% 1px; }
.footer__legal { padding-top: 20px; border-top: 1px solid rgba(55, 52, 53, .12); font-size: 12px; color: #6E6E6F; }
@media (min-width: 600px) and (max-width: 899px) {
  .footer__top { grid-template-columns: auto 1fr; gap: 48px; }
  .footer__cols { padding-top: 8px; }
  .footer__info { grid-template-columns: auto 1fr; gap: 40px; align-items: start; }
  .footer__info dl { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 599px) {
  .footer__legal { text-align: center; }
  .footer__info { justify-items: stretch; }
  .footer__logo-full { justify-self: center; }
}
.footer__info { display: grid; gap: 28px; padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.footer__logo-full { width: 120px; }
.footer__info dl { display: grid; gap: 22px; }
.footer__info dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer__info dd { font-size: 16px; font-weight: 600; }
.footer__info dd a { text-decoration: none; }
.footer__info dd a:hover { color: var(--azul-300); }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px;
  transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.socials svg { width: 17px; height: 17px; fill: currentColor; flex: none; transition: transform .35s var(--ease); }
.socials a:hover, .footer__info .socials a:hover { background: var(--text); border-color: var(--text); color: #151314; }
.socials a:hover svg { transform: scale(1.12) rotate(-6deg); }
.footer__wordmark {
  font-weight: 900; font-size: calc((100vw - 2 * var(--gutter)) / 4.26); line-height: .78; letter-spacing: -.045em;
  white-space: nowrap; margin: 6vw 0 -2vw calc(var(--gutter) - .04em); color: var(--text);
}
@media (min-width: 900px) {
  .footer__grid { grid-template-columns: 5fr 7fr; }
  .footer__info { grid-template-columns: auto 1fr; gap: var(--gutter); }
  .footer__info dl { grid-template-columns: 1fr 1fr; }
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.5); transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Botón icono (flecha ↘ / más) ---------- */
.icon-btn {
  --ic: #151314; position: relative; display: inline-grid; place-items: center; overflow: hidden;
  width: 46px; height: 46px; border-radius: var(--radius); background: var(--azul); border: 1px solid var(--azul);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.icon-btn::before, .icon-btn::after {
  content: ""; position: absolute; width: 18px; height: 18px; background: var(--ic);
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.icon-btn--arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M5 5l14 14M19 8v11H8'/%3E%3C/svg%3E"); }
.icon-btn--arrow::before { transform: translate(-150%, -150%); opacity: 0; transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s var(--ease); }
.icon-btn--arrow::after { transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .3s var(--ease); }
.icon-btn--ghost { --ic: #151314; background: transparent; border-color: rgba(21, 19, 20, .2); }
.icon-btn--plus { --ic: #151314; --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2'%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E"); background: #fafafa; border-color: #fafafa; }
.icon-btn--plus::before { display: none; }
.icon-btn--plus::after { transition: transform .45s cubic-bezier(.25, 1, .5, 1); }
.pframe:hover .icon-btn, .icon-btn:hover { background: #fafafa; border-color: #fafafa; }
.pframe:hover .icon-btn--ghost { background: rgba(21, 19, 20, .06); border-color: rgba(21, 19, 20, .2); }
.pframe:hover .icon-btn--arrow::before { transform: translate(0, 0); opacity: 1; transition-delay: .1s; }
.pframe:hover .icon-btn--arrow::after { transform: translate(150%, 150%); opacity: 0; }
.tcard:hover .icon-btn--plus::after, .tcard:focus-within .icon-btn--plus::after, .tcard.is-open .icon-btn--plus::after { transform: rotate(135deg); }

/* ---------- Primera carga: el hero espera oculto a que la animación lo tome (sin doble aparición) ---------- */
.js-intro .hero__inner, .js-intro .hero__circles, .js-intro .header__bar { visibility: hidden; }

/* ---------- Revelado y texto dividido ---------- */
.media-overlay { position: absolute; inset: 0; z-index: 5; background: var(--azul); pointer-events: none; will-change: clip-path; }
.hide-media > img { visibility: hidden; }
.u-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.u-word__in { display: inline-block; will-change: transform; }
.footer__wordmark b { display: inline-block; font-weight: inherit; }
.js-anim [data-parallax] img { height: 125%; }
.no-parallax [data-parallax] img { height: 100%; }

/* ---------- Animación (solo si JS + GSAP cargaron) ---------- */
.js-anim [data-reveal] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =====================================================================
   Páginas de proyecto (/proyectos/<slug>/)
   ===================================================================== */
.phero { position: relative; padding-top: 112px; overflow: hidden; }
.phero__inner { position: relative; }
.crumbs { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--text); }
.phero__title {
  font-size: clamp(3.2rem, 11.5vw, 11.5rem); font-weight: 900; line-height: .86; letter-spacing: -.045em;
  margin-left: -.04em; text-wrap: balance;
}
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; }
.split-word > span { display: inline-block; }
.phero__lead { max-width: 26ch; }
.phero__media { margin-top: clamp(40px, 6vw, 80px); height: clamp(320px, 62vw, 86svh); overflow: hidden; }
.phero__media img { width: 100%; height: 112%; object-fit: cover; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--gutter); }
.spec { padding: 22px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.spec dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.spec dd { font-size: clamp(1.35rem, 2.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
@media (min-width: 900px) { .specs { grid-template-columns: repeat(5, 1fr); } .spec { border-bottom: 0; border-top: 1px solid var(--line); } }

.pintro__grid { display: grid; gap: 32px; }
.pintro__logo { width: 150px; height: auto; margin-top: 8px; padding: 14px; background: #fff; border-radius: var(--radius); }
.pintro__text { display: grid; gap: 20px; justify-items: start; }
.pintro__text p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: rgba(250,250,250,.86); max-width: 52ch; }
.pintro__text strong { color: var(--text); }
@media (min-width: 900px) { .pintro__grid { grid-template-columns: 4fr 8fr; } }

.finance { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(56px, 8vw, 110px); }
.finance__head { display: grid; gap: 10px; margin-bottom: 32px; }
.finance__head p { color: var(--muted); font-size: 18px; }
.finance__cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.fcard { padding: 26px; border-radius: var(--radius); background: var(--blanco); color: var(--negro); display: grid; gap: 6px; }
.fcard__lote { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-700); }
.fcard__big { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.05; }
.fcard__fin { font-size: 17px; font-weight: 600; }
.fcard__plazo { margin-top: 10px; padding-top: 12px; border-top: 1px solid #E7E8E9; font-size: 13px; color: #6E6E6F; font-weight: 600; }
.fcard__pagos { display: grid; margin-top: 8px; }
.fcard__pagos > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 9px 0; border-top: 1px solid #E7E8E9; }
.fcard__pagos dt { font-size: 14px; color: #6E6E6F; font-weight: 600; }
.fcard__pagos dd { font-size: 18px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.fcard__pagos .fcard__cuota { margin-top: 6px; padding: 12px 14px; border: 0; border-radius: var(--radius); background: #EEF1F8; }
.fcard__pagos .fcard__cuota dt { color: var(--azul-700); }
.fcard__pagos .fcard__cuota dd { color: var(--azul-700); }
.finance__medios { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* Estado de venta sobre el nombre del proyecto */
.phero__estado {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; padding: 8px 16px;
  border: 1px solid rgba(118, 144, 192, .55); border-radius: 999px; background: rgba(118, 144, 192, .14);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--azul-300);
}
.phero__estado span { width: 8px; height: 8px; border-radius: 50%; background: var(--azul); box-shadow: 0 0 0 0 rgba(118, 144, 192, .6); animation: latido 2.2s ease-out infinite; }
@keyframes latido { 70% { box-shadow: 0 0 0 10px rgba(118, 144, 192, 0); } 100% { box-shadow: 0 0 0 0 rgba(118, 144, 192, 0); } }
@media (prefers-reduced-motion: reduce) { .phero__estado span { animation: none; } }

/* Datos clave y servicios */
.ficha__grid { display: grid; gap: 32px; }
.ficha__list { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.ficha__item { display: grid; gap: 4px; align-content: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ficha__item dt { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ficha__item dd { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
@media (min-width: 640px) { .ficha__list { grid-template-columns: 1fr 1fr; column-gap: var(--gutter); } }
@media (min-width: 900px) { .ficha__grid { grid-template-columns: 4fr 8fr; gap: var(--gutter); } .ficha__head { position: sticky; top: 100px; align-self: start; } }
.servicios { margin-top: clamp(64px, 9vw, 120px); }
.servicios__title { margin-bottom: 28px; }
.servicios__grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .servicios__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .servicios__grid { grid-template-columns: repeat(3, 1fr); } }
.scard { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.scard h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.scard h3::before { content: ""; display: block; width: 28px; height: 3px; margin-bottom: 14px; background: var(--degradado); }
.scard p { font-size: 15px; line-height: 1.55; color: rgba(250,250,250,.78); }

/* Preguntas frecuentes */
.faq__grid { display: grid; gap: 32px; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .plus { color: var(--azul); }
.faq__item[open] summary .plus::after { transform: rotate(90deg); }
.faq__item p { padding: 0 0 24px; max-width: 64ch; color: rgba(250,250,250,.8); line-height: 1.6; }
@media (min-width: 900px) { .faq__grid { grid-template-columns: 4fr 8fr; gap: var(--gutter); } .faq__head { position: sticky; top: 100px; align-self: start; } }

.pamen__title { max-width: 14ch; margin-bottom: 32px; }
.pamen__list { margin-bottom: clamp(40px, 6vw, 72px); }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: var(--radius); }
.zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.zoom:hover img { transform: scale(1.04); }
figcaption { margin-top: 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.agrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.acard .zoom { aspect-ratio: 1; }
.acard--wide { grid-column: span 2; }
.acard--wide .zoom { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .agrid { grid-template-columns: repeat(4, 1fr); gap: var(--gutter); }
  .acard--wide { grid-column: span 2; grid-row: span 2; }
  .acard--wide .zoom { aspect-ratio: auto; height: calc(100% - 32px); min-height: 360px; }
}

.plan__grid { display: grid; gap: 32px; }
.plan__text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.plan__text p { color: rgba(250,250,250,.84); max-width: 46ch; }
.plan__media { display: grid; gap: 16px; }
.plan__fig .zoom { background: #F3F3F4; aspect-ratio: 16 / 10; }
.plan__fig .zoom img { object-fit: contain; }
@media (min-width: 900px) { .plan__grid { grid-template-columns: 4fr 8fr; gap: var(--gutter); } .plan__text { position: sticky; top: 100px; } }

.pgal { padding-bottom: var(--section); }
.gcard { flex: 0 0 min(84vw, 620px); scroll-snap-align: start; }
.gcard .zoom { aspect-ratio: 16 / 10; }

.works__head { margin-bottom: clamp(40px, 6vw, 72px); }
.works__puntos { display: grid; gap: 10px; margin-bottom: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 700px) { .works__puntos { grid-template-columns: 1fr 1fr; } }
.works__puntos li { position: relative; padding: 16px 18px 16px 46px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.works__puntos li::before { content: ""; position: absolute; left: 18px; top: 20px; width: 14px; height: 8px; border-left: 2px solid var(--azul); border-bottom: 2px solid var(--azul); transform: rotate(-45deg); }
.works__grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.wcard .zoom { aspect-ratio: 4 / 3; }
.wcard:first-child { grid-column: span 2; }
.wcard:first-child .zoom { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .works__grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }

.ploc__grid { display: grid; gap: 32px; }
.ploc__text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.ploc__text p { color: rgba(250,250,250,.84); max-width: 46ch; }
.ploc__img { width: 100%; margin-top: 12px; }
.ploc__img .zoom { aspect-ratio: 16 / 10; }
.ploc__map { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ploc__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.35) contrast(1.05); }
@media (min-width: 900px) { .ploc__grid { grid-template-columns: 5fr 7fr; gap: var(--gutter); } }

.advisors--stack { grid-template-columns: 1fr; margin-top: 12px; max-width: 460px; }

.others__grid { display: grid; gap: 12px; margin-top: 28px; }
.others__grid .tcard { flex: none; width: 100%; }
.tcard__label small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--azul-300); }
@media (min-width: 900px) { .others__grid { grid-template-columns: repeat(3, 1fr); gap: var(--gutter); } }
.disclaimer { margin-top: 40px; font-size: 12px; color: var(--muted); max-width: 70ch; }

.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; color: var(--text); }
.lightbox::backdrop { background: rgba(14, 13, 13, .9); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; border-radius: var(--radius); }
.lightbox__cap { margin-top: 12px; font-size: 13px; font-weight: 600; text-align: center; color: var(--muted); }
.lightbox__close {
  position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 28px; cursor: pointer;
}

/* Campo trampa anti-spam del formulario: invisible para personas, los bots lo llenan */
.trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- Equipo (inicio): tarjetas verticales centradas ---------- */
.advisors--equipo { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; perspective: 1200px; }
.advisors--equipo .advisor {
  flex: 0 1 220px; display: flex; flex-direction: column; gap: 0; padding: 10px 10px 18px; text-align: center;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.advisors--equipo .advisor:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.advisor__foto { display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: calc(var(--radius) - 2px); background: linear-gradient(180deg, #ffffff 0%, #e6e7ea 100%); }
.advisors--equipo .advisor img { width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 0; background: none; transition: transform .8s var(--ease); }
.advisors--equipo .advisor:hover img { transform: scale(1.05); }
.advisor__info { display: flex; flex-direction: column; align-items: center; padding-top: 14px; }
.advisors--equipo .advisor h3 { font-size: 18px; }
.advisors--equipo .advisor p { margin: 4px 0 12px; font-size: 13px; }
.advisors--equipo .advisor .advisor__wa {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid rgba(79, 106, 160, .35); border-radius: 999px;
  font-size: 11px; letter-spacing: .06em; white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.advisors--equipo .advisor .advisor__wa:hover { background: var(--azul-700); border-color: var(--azul-700); color: #fff; }
@media (max-width: 699px) {
  .advisors--equipo { gap: 10px; }
  .advisors--equipo .advisor { flex-basis: calc(50% - 5px); padding: 8px 8px 14px; }
  .advisors--equipo .advisor h3 { font-size: 15px; }
  .advisors--equipo .advisor .advisor__wa { padding: 8px 12px; }
}

/* Bloques que el equipo agrega desde el editor visual */
.bloque__grid { display: grid; gap: 24px; }
.bloque__texto { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.6; color: rgba(250,250,250,.84); max-width: 62ch; }
@media (min-width: 900px) { .bloque__grid { grid-template-columns: 4fr 8fr; gap: var(--gutter); } }
.bloque__foto-grid { display: grid; gap: 32px; align-items: center; }
.bloque__foto img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.bloque__foto-texto { display: grid; gap: 18px; }
.bloque__foto-texto p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: rgba(250,250,250,.84); max-width: 52ch; }
@media (min-width: 900px) {
  .bloque__foto-grid { grid-template-columns: 1fr 1fr; gap: var(--gutter); }
  .bloque--foto-der .bloque__foto { order: 2; }
}
