/* =========================================================
   DOM Real Estate — estilos
   Diseño base: 1440px (Figma). Escala fluida hasta mobile.
   ========================================================= */

:root {
  --black: #000;
  --white: #fff;
  --bg: #f5f5f5;
  --pad: clamp(20px, 5.556vw, 80px);
  --header-h: 104px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Helvetica Neue LT Std", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul { list-style: none; margin: 0; padding: 0; }

.u-bold { font-weight: 700; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Botón blanco (Frame 4) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--white);
  font-size: 18px;
  letter-spacing: -0.36px;
  text-transform: uppercase;
  line-height: 1;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: color .45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--black);
  transform: translateY(101%);
  transition: transform .45s var(--ease);
  z-index: -1;
}
.btn:hover { color: var(--white); }
.btn:hover::before { transform: translateY(0); }
.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost::before { background: var(--white); }
.btn--ghost:hover { color: var(--black); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 60;
  background: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--pad);
  transition: transform .5s var(--ease), height .4s var(--ease);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-compact { height: 80px; }

.site-header__logo { width: 145px; height: 64px; flex: none; transition: transform .4s var(--ease); transform-origin: left center; }
.site-header.is-compact .site-header__logo { transform: scale(.8); }
.site-header__logo img { width: 145px; height: 64px; }

.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  position: relative;
  font-size: 20px;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 24px;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 1px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); transform-origin: left; }

.burger { display: none; width: 32px; height: 32px; position: relative; z-index: 70; }
.burger span {
  position: absolute; left: 4px; right: 4px; height: 2px; background: var(--white);
  transition: transform .4s var(--ease), top .4s var(--ease), opacity .3s;
}
.burger span:nth-child(1) { top: 10px; }
.burger span:nth-child(2) { top: 20px; }
.menu-open .burger span:nth-child(1) { top: 15px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 15px; transform: rotate(-45deg); }

/* menú mobile */
.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: var(--black); color: var(--white);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out);
  visibility: hidden;
}
.menu-open .mobile-menu { clip-path: inset(0 0 0 0); visibility: visible; }
.mobile-menu a {
  display: block; overflow: hidden;
  font-size: 40px; font-weight: 700; letter-spacing: -0.8px; text-transform: uppercase;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.25);
}
.mobile-menu a span { display: block; transform: translateY(110%); transition: transform .7s var(--ease-out); }
.menu-open .mobile-menu a span { transform: none; }
.menu-open .mobile-menu a:nth-child(2) span { transition-delay: .06s; }
.menu-open .mobile-menu a:nth-child(3) span { transition-delay: .12s; }
.menu-open .mobile-menu a:nth-child(4) span { transition-delay: .18s; }
.mobile-menu__foot { margin-top: 40px; font-size: 14px; line-height: 20px; opacity: .7; }

main { padding-top: var(--header-h); }

/* =========================================================
   HERO (home)
   ========================================================= */
.hero {
  position: relative;
  height: 800px;
  overflow: hidden;
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 115%; object-fit: cover;
  transform: scale(1.12);
  transition: transform 2.4s var(--ease-out);
  will-change: transform;
}
.is-loaded .hero__media img { transform: scale(1); }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,.3));
}
.hero__box {
  position: absolute;
  left: var(--pad);
  top: 328px;
  height: 330px;
  padding: 34px;
  background: rgba(0,0,0,.4);
  display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  backdrop-filter: blur(0px);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.1s var(--ease-out) .3s;
}
.is-loaded .hero__box { clip-path: inset(0 0 0 0); }
.hero__title {
  font-size: 40px;
  letter-spacing: -0.8px;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}
.line { display: block; overflow: hidden; }
.line > span { display: block; transform: translateY(105%); transition: transform 1s var(--ease-out); }
.is-loaded .hero__title .line > span { transform: none; }
.hero__title .line:nth-child(1) > span { transition-delay: .55s; }
.hero__title .line:nth-child(2) > span { transition-delay: .65s; }
.hero__title .line:nth-child(3) > span { transition-delay: .75s; }
.hero__title .line:nth-child(4) > span { transition-delay: .85s; }
.hero__box .btn { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease) 1.05s, transform .8s var(--ease) 1.05s, color .45s var(--ease); }
.is-loaded .hero__box .btn { opacity: 1; transform: none; }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about {
  display: grid;
  grid-template-columns: minmax(0, 522fr) minmax(0, 630fr);
  gap: clamp(40px, 8.9vw, 128px);
  align-items: center;
  padding: 80px var(--pad);
  background: var(--bg);
}
.about__title { font-size: 36px; letter-spacing: -0.72px; text-transform: uppercase; margin-bottom: 36px; }
.about__text { max-width: 490px; font-size: 16px; line-height: 1.2; }
.about__text p + p { margin-top: 38px; }
.about__media { aspect-ratio: 630 / 512; overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s var(--ease-out), clip-path 1.3s var(--ease-out); }
.about__media.is-in img { transform: scale(1); }

/* =========================================================
   SERVICIOS (fondo negro + lista hover)
   ========================================================= */
.services {
  position: relative;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}
.services__grid {
  display: grid;
  grid-template-columns: minmax(0, 602fr) minmax(0, 838fr);
}
.services__media {
  position: relative;
  aspect-ratio: 602 / 551;
  overflow: hidden;
}
.services__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.08);
  transition: opacity .7s var(--ease), transform 1.2s var(--ease-out), clip-path 1.3s var(--ease-out);
}
.services__media img.is-active { opacity: 1; transform: scale(1); }

.services__body { padding-top: 100px; }
.services__intro { width: 413px; max-width: calc(100% - 72px); margin-left: 36px; font-size: 16px; line-height: 1.2; margin-bottom: 54px; }

.services__list { position: relative; }
.services__item {
  position: relative;
  display: flex; align-items: center;
  height: 89px;
  padding: 0 36px;
  border-bottom: 1px solid var(--white);
  font-size: 32px; font-weight: 700; letter-spacing: -0.64px; text-transform: uppercase;
  cursor: default;
  z-index: 1;
}
.services__item span { display: inline-block; transition: transform .5s var(--ease); }
.services__item.is-active span { transform: translateX(14px); }
/* Rectangle 17 — barra blanca con mix-blend exclusion que invierte colores */
.services__indicator {
  position: absolute; left: 0; right: 0; top: 0;
  height: 88px;
  background: var(--white);
  mix-blend-mode: exclusion;
  pointer-events: none;
  z-index: 2;
  transition: transform .55s var(--ease);
}

.services__stripes {
  margin-top: 2.083%;            /* 30 / 1440 */
  aspect-ratio: 1440 / 487;      /* parte visible del Group 10 dentro del bloque negro */
  overflow: hidden;
}
.services__stripes img { width: 100%; height: auto; clip-path: inset(0 0 100% 0); transition: clip-path 1.8s var(--ease-out); }
.services__stripes.is-in img { clip-path: inset(0 0 0 0); }

/* =========================================================
   PROYECTOS
   ========================================================= */
.projects { padding-top: 44px; background: var(--white); }
.projects__title {
  text-align: center;
  font-size: 64px; letter-spacing: -1.28px; text-transform: uppercase;
  line-height: 1;
}
.filters {
  display: flex; justify-content: center; gap: 82px;
  margin: 60px 0 58px;
  font-size: 16px; letter-spacing: -0.32px; text-transform: uppercase;
}
.filters button { position: relative; padding: 4px 0; text-transform: uppercase; letter-spacing: inherit; }
.filters button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.filters button:hover::after,
.filters button.is-active::after { transform: scaleX(1); transform-origin: left; }

.projects__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  position: relative; display: block;
  aspect-ratio: 720 / 351;
  overflow: hidden;
  color: var(--white);
  background: #111;
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); z-index: 1; transition: background .6s var(--ease); }
.card__name {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  font-size: 24px; font-weight: 700; letter-spacing: -0.48px;
  white-space: nowrap; text-align: center;
}
.card__name::after {
  content: ""; display: block; height: 1px; background: currentColor; margin-top: 6px;
  transform: scaleX(0); transition: transform .6s var(--ease);
}
.card__tag {
  position: absolute; z-index: 2; left: 50%; top: calc(50% + 30px);
  transform: translate(-50%, 10px);
  font-size: 13px; letter-spacing: -0.26px; text-transform: uppercase;
  opacity: 0; transition: opacity .5s var(--ease), transform .5s var(--ease);
  white-space: nowrap;
}
.card:hover img { transform: scale(1.06); }
.card:hover::before { background: rgba(0,0,0,.5); }
.card:hover .card__name::after { transform: scaleX(1); }
.card:hover .card__tag { opacity: 1; transform: translate(-50%, 0); }

.card.is-hiding { animation: cardOut .35s var(--ease) forwards; }
.card.is-showing { animation: cardIn .6s var(--ease-out) both; }
@keyframes cardOut { to { opacity: 0; transform: scale(.97); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* =========================================================
   FOOTER / CONTACTO (Frame 23)
   ========================================================= */
.site-footer {
  position: relative;
  background: var(--black);
  color: var(--white);
  padding-top: 66px;
  overflow: hidden;
}
.site-footer__inner { padding: 0 var(--pad); }
.site-footer__title { font-size: 36px; letter-spacing: -0.72px; text-transform: uppercase; margin-bottom: 45px; line-height: 26px; }

.form-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.field { position: relative; }
.field input {
  width: 100%;
  padding: 0 0 8px;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--white);
  border-radius: 0;
  color: var(--white);
  font: 16px/19px var(--font);
  outline: none;
}
.field input::placeholder { color: var(--white); opacity: 1; transition: opacity .3s; }
.field input:focus::placeholder { opacity: .4; }
.field::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--white);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field.is-error input { border-bottom-color: #ff6b6b; }

.form-actions { margin-top: 45px; display: flex; align-items: center; gap: 24px; min-height: 45px; }
.form-msg { font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .4s; }
.form-msg.is-visible { opacity: 1; transform: none; }

.site-footer__shapes {
  position: relative;
  margin-top: 45px;
  aspect-ratio: 1440 / 465.954;
}
.site-footer__shapes > img.shapes { width: 100%; height: 100%; }
.site-footer__shapes > img.shapes { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-out); }
.site-footer__shapes.is-in > img.shapes { clip-path: inset(0 0 0 0); }

.footer-info {
  position: absolute;
  left: 69.514%;               /* 1001 / 1440 */
  bottom: 37px;
  color: var(--black);
  font-size: 14px; line-height: 20px;
  display: flex; flex-direction: column; gap: 30px;
  opacity: 0; transform: translateY(20px);
  transition: opacity .8s var(--ease) .6s, transform .8s var(--ease) .6s;
}
.site-footer__shapes.is-in .footer-info { opacity: 1; transform: none; }
.footer-info a { transition: opacity .3s; }
.footer-info a:hover { opacity: .55; }
.footer-info__social { display: flex; gap: 15px; }
.footer-info__social a { width: 20px; height: 20px; display: block; }
.footer-info__social img { width: 20px; height: 20px; }
.footer-info p, .footer-info a { white-space: nowrap; }

.remolino {
  position: absolute;
  right: 23px;
  top: 32.8%;
  width: 8px; height: 83.69px;
  display: flex; align-items: center; justify-content: center;
  opacity: .35; transition: opacity .3s;
}
.remolino:hover { opacity: 1; }
.remolino img { width: 83.705px; height: 8px; max-width: none; transform: rotate(-90deg); flex: none; }

.footer-info--mobile { display: none; }

/* =========================================================
   BOTONES FLOTANTES (Frame 5)
   ========================================================= */
.fab {
  position: fixed; right: 15px; bottom: 57px; z-index: 50;
  width: 42px; display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.fab > a { opacity: 0; transform: translateY(20px) scale(.8); transition: opacity .6s var(--ease), transform .6s var(--ease-out); }
.is-loaded .fab > a { opacity: 1; transform: none; }
.is-loaded .fab > a:nth-child(2) { transition-delay: .1s; }
.fab__chat {
  position: relative; width: 42px; height: 42px; border-radius: 37px; overflow: hidden;
  background: var(--white); box-shadow: 0 2px 15px rgba(0,0,0,.15);
}
.fab__chat .v, .fab__chat .vi, .fab__wa .vi { position: absolute; display: block; }
.fab__chat img, .fab__wa img { display: block; width: 100%; height: 100%; max-width: none; }
.fab__chat .v1 { inset: 34.29% 34.29% 23.81% 23.81%; }
.fab__chat .v1 .vi { inset: -4.26%; }
.fab__chat .v2 { inset: 23.81% 23.81% 42.84% 36.99%; }
.fab__chat .v2 .vi { inset: -5.35% -4.56%; }
.fab__chat .v3 { inset: 52.62% 46.07% 47.38% 35.62%; }
.fab__chat .v3 .vi { top: -0.75px; bottom: -0.75px; left: -9.75%; right: -9.75%; }
.fab__wa { position: relative; width: 42px; height: 42px; display: block; }
.fab__wa .vi { inset: -30.95% -35.7% -40.15% -35.7%; }
.fab > a:hover { transform: translateY(-3px) scale(1.06); }
.fab > a { transition-property: opacity, transform; }

/* =========================================================
   PROYECTO (detalle)
   ========================================================= */
.p-hero { position: relative; height: 800px; overflow: hidden; color: var(--white); background: #111; }
.p-hero__slides { position: absolute; inset: 0; }
.p-hero__slide {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 1s var(--ease);
}
.p-hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 6s linear; }
.p-hero__slide.is-active { opacity: 1; }
.p-hero__slide.is-active img { transform: scale(1); }
.p-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); pointer-events: none; }

.p-hero__title {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  transform: translate(-50%, -50%);
  font-size: 48px; letter-spacing: -0.96px; white-space: nowrap; text-align: center;
}
.p-hero__title .line > span { transition-delay: .3s; }
.is-loaded .p-hero__title .line > span { transform: none; }

.p-hero__back, .p-hero__status {
  position: absolute; top: 44px; z-index: 2;
  font-size: 16px; letter-spacing: -0.32px; text-transform: uppercase; line-height: 1;
}
.p-hero__back { left: var(--pad); display: flex; align-items: center; gap: 7px; }
.p-hero__back .caret { width: 5px; height: 10px; display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease); }
.p-hero__back .caret img { width: 10px; height: 5px; max-width: none; transform: rotate(-90deg) scaleY(-1); flex: none; }
.p-hero__back:hover .caret { transform: translateX(-5px); }
.p-hero__status { right: var(--pad); }

.p-hero__arrow {
  position: absolute; top: 382px; z-index: 3;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s var(--ease);
}
.p-hero__arrow img { width: 36px; height: 36px; flex: none; }
.p-hero__arrow--prev { left: 52px; }
.p-hero__arrow--prev img { transform: rotate(-90deg) scaleY(-1); }
.p-hero__arrow--next { right: 52px; }
.p-hero__arrow--next img { transform: rotate(-90deg); }
.p-hero__arrow--prev:hover { transform: translateX(-4px); }
.p-hero__arrow--next:hover { transform: translateX(4px); }

.p-hero__dots { position: absolute; z-index: 3; left: 50%; bottom: 32px; transform: translateX(-50%); display: flex; gap: 8px; }
.p-hero__dots button { width: 24px; height: 2px; background: rgba(255,255,255,.4); transition: background .3s, width .4s var(--ease); }
.p-hero__dots button.is-active { background: var(--white); width: 40px; }

.p-info {
  position: relative; z-index: 5;
  background: var(--black); color: var(--white);
  display: flex; justify-content: space-between; align-items: stretch;
  gap: 60px;
  padding: 80px var(--pad);
}
.p-info__left { width: 516px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.p-info__desc { max-width: 490px; font-size: 16px; line-height: 1.2; }
.p-info__plans p { font-size: 16px; margin-bottom: 24px; }

.p-specs { width: 515px; display: flex; flex-direction: column; }
.p-spec { padding: 30px 0; border-bottom: 1px solid var(--white); }
.p-spec:first-child { padding-top: 0; }
.p-spec:last-child { border-bottom: 0; padding-bottom: 0; }
.p-spec h3 { font-size: 24px; letter-spacing: -0.48px; text-transform: uppercase; margin-bottom: 14px; line-height: 1; }
.p-spec p { font-size: 16px; }
.p-spec sup { font-size: 10.32px; vertical-align: super; line-height: 0; }

/* Component 1 — selector de plantas */
.plans { display: flex; gap: 14px; align-items: flex-start; width: 371px; max-width: 100%; color: var(--black); }
.plans__select { position: relative; flex: 1 1 0; min-width: 0; }
.plans__toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; background: var(--white);
  font-size: 18px; letter-spacing: -0.36px; text-transform: uppercase; line-height: 17px;
  text-align: left;
}
.plans__toggle .caret { width: 9.167px; height: 4.583px; flex: none; transition: transform .35s var(--ease); }
.plans.is-open .plans__toggle .caret { transform: scaleY(-1); }
.plans__list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
  background: var(--white);
  filter: drop-shadow(2px 2px 12.5px rgba(0,0,0,.1));
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .5s var(--ease-out), visibility 0s .5s;
  max-height: 300px; overflow-y: auto;
}
.plans.is-open .plans__list { clip-path: inset(0 0 -20px 0); visibility: visible; transition: clip-path .5s var(--ease-out), visibility 0s; }
.plans__list li button {
  width: 100%; text-align: left;
  padding: 14px 20px; border-top: 1px solid var(--black);
  font-size: 18px; letter-spacing: -0.36px; line-height: 17px;
  transition: background .25s, color .25s;
}
.plans__list li button:hover,
.plans__list li button.is-selected { background: var(--black); color: var(--white); }
.plans__download {
  width: 45px; height: 45px; flex: none; padding: 12px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease);
}
.plans__download img { width: 24px; height: 24px; }
.plans__download:hover { transform: translateY(2px); }

.p-map { display: block; height: 421px; overflow: hidden; position: relative; }
.p-map img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.p-map:hover img { transform: scale(1.03); }
.p-map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); }
.p-map__hint {
  position: absolute; right: var(--pad); bottom: 20px;
  background: var(--black); color: var(--white); font-size: 14px; padding: 10px 14px; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s;
}
.p-map:hover .p-map__hint { opacity: 1; transform: none; }

.others { padding: 64px var(--pad) 90px; background: var(--bg); }
.others__title { text-align: center; font-size: 36px; letter-spacing: -0.72px; text-transform: uppercase; margin-bottom: 64px; line-height: 1; }
.others__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.others__grid .card { aspect-ratio: 405 / 351; }

/* =========================================================
   INVERSORES
   ========================================================= */
.login .site-footer__inner { padding-top: 17px; }
.login-row { display: flex; align-items: center; gap: 32px; }
.login-row .field { width: 296px; }
.login-row .btn { flex: none; }
.site-footer--login .site-footer__shapes { margin-top: 108px; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="fade"] { transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; }
[data-reveal="clip"] > * { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease-out), opacity .7s var(--ease), transform 1.2s var(--ease-out); }
[data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }
[data-reveal="title"] { opacity: 1; transform: none; }
[data-reveal="title"] .line > span { transition-duration: 1.1s; }
[data-reveal="title"].is-in .line > span { transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1280px) {
  .hero__title { font-size: 34px; }
  .services__item { font-size: 26px; }
  .filters { gap: 56px; }
}

@media (max-width: 1100px) {
  .services__body { padding-top: 60px; }
  .services__item { font-size: 22px; height: 72px; padding: 0 24px; }
  .services__indicator { height: 71px; }
  .services__intro { margin-left: 24px; margin-bottom: 36px; }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  /* footer: la info pasa arriba de las formas */
  .footer-info { display: none; }
  .footer-info--mobile {
    display: flex; position: static; color: var(--white);
    opacity: 1; transform: none; margin-top: 64px;
    flex-direction: row; flex-wrap: wrap; gap: 24px 48px;
  }
  .footer-info--mobile .footer-info__social img { filter: invert(1); }
  .remolino { display: none; }
  .p-info { flex-direction: column; }
  .p-info__left, .p-specs { width: 100%; }
  .login-row { flex-wrap: wrap; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .site-header { padding: 12px var(--pad); }
  .site-header.is-compact { height: 64px; }
  .site-header__logo, .site-header__logo img { width: 100px; height: 44px; }
  .nav { display: none; }
  .burger { display: block; }

  .hero { height: calc(100svh - var(--header-h)); min-height: 560px; max-height: 760px; }
  .hero__box { top: auto; bottom: 24px; left: 20px; right: 20px; height: auto; gap: 28px; padding: 24px; }
  .hero__title { font-size: clamp(22px, 6.6vw, 32px); letter-spacing: -0.5px; }
  .btn { font-size: 16px; }

  .about { grid-template-columns: 1fr; padding: 56px var(--pad); gap: 40px; }
  .about__title { font-size: 30px; margin-bottom: 24px; }
  .about__text p + p { margin-top: 22px; }

  .services__grid { grid-template-columns: 1fr; }
  .services__media { aspect-ratio: 4 / 3; }
  .services__body { padding: 40px 0 0; }
  .services__intro { margin: 0 var(--pad) 24px; max-width: none; width: auto; }
  .services__item { font-size: 18px; height: 64px; padding: 0 var(--pad); line-height: 1.1; }
  .services__indicator { height: 63px; }
  .services__item.is-active span { transform: translateX(8px); }
  .services__stripes { margin-top: 32px; }

  .projects { padding-top: 48px; }
  .projects__title { font-size: 40px; letter-spacing: -0.8px; }
  .filters { gap: 28px; margin: 32px 0 32px; font-size: 14px; }
  .projects__grid { grid-template-columns: 1fr; }
  .card { aspect-ratio: 375 / 240; }
  .card__name { font-size: 20px; }
  .card__tag { opacity: 1; transform: translate(-50%, 0); top: calc(50% + 24px); }

  .site-footer { padding-top: 48px; }
  .site-footer__title { font-size: 30px; margin-bottom: 32px; }
  .form-row { grid-template-columns: 1fr; row-gap: 32px; }
  .form-actions { margin-top: 36px; flex-wrap: wrap; }
  .footer-info--mobile { flex-direction: column; gap: 22px; margin-top: 48px; }
  .site-footer__shapes { margin-top: 48px; }

  .fab { right: 12px; bottom: 20px; }

  .p-hero { height: calc(100svh - var(--header-h)); min-height: 520px; max-height: 720px; }
  .p-hero__title { font-size: 32px; }
  .p-hero__back, .p-hero__status { top: 24px; font-size: 14px; }
  .p-hero__arrow { top: 50%; margin-top: -18px; }
  .p-hero__arrow--prev { left: 12px; }
  .p-hero__arrow--next { right: 12px; }
  .p-info { padding: 48px var(--pad); gap: 48px; }
  .p-spec { padding: 22px 0; }
  .p-spec h3 { font-size: 20px; }
  .p-map { height: 300px; }
  .others { padding: 48px var(--pad) 64px; }
  .others__title { font-size: 28px; margin-bottom: 32px; }
  .others__grid { grid-template-columns: 1fr; gap: 16px; }
  .others__grid .card { aspect-ratio: 375 / 240; }

  .login-row { flex-direction: column; align-items: stretch; gap: 28px; }
  .login-row .field { width: 100%; }
  .login-row .btn { width: 100%; }
  .site-footer--login .site-footer__shapes { margin-top: 64px; }
}

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