/* ============================================================
   Elle Residences Miami — recreación HTML/CSS de la home
   Fuentes: familias con nombre para sustituir luego por los
   archivos originales (Boston, Ellenova, Didot).
   ============================================================ */

/* --- ElleNova (sans-serif de la marca) --- */
@font-face {
  font-family: 'ElleNova';
  src: url('../assets/fonts/ElleNovaC-Light.otf') format('opentype');
  font-weight: 300 400;
  font-display: swap;
}
@font-face {
  font-family: 'ElleNova';
  src: url('../assets/fonts/ElleNovaC-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'ElleNova';
  src: url('../assets/fonts/ElleNovaC-DemiBold.otf') format('opentype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'ElleNova';
  src: url('../assets/fonts/ElleNovaC-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* --- Boston (fuente de los títulos) --- */
@font-face {
  font-family: 'Boston';
  src: url('../assets/fonts/Boston-Skyline-Rough.otf') format('opentype');
  font-weight: 300 700;
  font-display: swap;
}

/* --- HTF Didot --- */
@font-face {
  font-family: 'Didot';
  src: url('../assets/fonts/HTFDidot-Light.otf') format('opentype');
  font-weight: 300 400;
  font-display: swap;
}
@font-face {
  font-family: 'Didot';
  src: url('../assets/fonts/HTFDidot-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Didot';
  src: url('../assets/fonts/HTFDidot-Bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

:root {
  --font-display: 'Boston', 'Cormorant Garamond', Georgia, serif;
  --font-sans:    'ElleNova', 'Helvetica Neue', Arial, sans-serif;
  --font-didot:   'Didot', 'Cormorant Garamond', Georgia, serif;
  --font-bauer:   'Bauer Bodoni Std', 'Didot', 'Cormorant Garamond', Georgia, serif;

  --color-bg:    #ffffff;
  --color-ink:   #1a1a1a;
  --color-grey:  #8a8a8a;
  --color-soft:  #e5e1e1;
  --color-dark:  #1a1a1a;

  --pad-x: clamp(20px, 6vw, 120px);
  --maxw:  1400px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }

/* Párrafos de contenido */
.intro p,
.feature__text p {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.7;
  color: #000;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn-link {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--color-ink);
  transition: opacity .25s ease;
}
.btn-link:hover { opacity: .55; }

.btn-rect {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
  padding: 18px 44px;
  border: 1px solid #fff;
  transition: background .3s ease, color .3s ease;
}
.btn-rect:hover { background: #fff; color: var(--color-ink); }
.btn-rect--dark {
  color: var(--color-ink);
  border-color: var(--color-ink);
  background: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.btn-rect--dark:hover { background: var(--color-ink); color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 28px 0;
  transition: background .35s ease, padding .35s ease;
}
.header.is-scrolled {
  background: rgba(255,255,255,.97);
  padding: 24px 0;
  box-shadow: 0 2px 18px rgba(0,0,0,.07);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
}
.header__logo {
  display: block;
  line-height: 0;
  color: #fff;
  transition: color .35s ease;
}
.header__logo-svg {
  display: block;
  width: 122px;
  height: auto;
  fill: currentColor;
  transition: width .35s ease;
}
.header.is-scrolled .header__logo { color: var(--color-ink); }
.header.is-scrolled .header__logo-svg { width: 106px; }

.header__right { display: flex; align-items: center; gap: 28px; }
.header__inquire {
  font-size: 16px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  font-weight: 600;
  transition: color .35s ease;
}
.header.is-scrolled .header__inquire { color: var(--color-ink); }

.header__toggle {
  width: 30px; height: 22px;
  background: none; border: 0; padding: 0; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
}
.header__toggle span {
  display: block; height: 1.5px; width: 100%;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .35s ease;
}
.header.is-scrolled .header__toggle span { background: var(--color-ink); }
.header__toggle.is-open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.header__toggle.is-open span:nth-child(2) { opacity: 0; }
.header__toggle.is-open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* NAV — inline en el header, oculto hasta abrir con la hamburguesa */
.nav {
  flex: 1;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
  min-width: 0;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
}
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
  white-space: nowrap;
  overflow-x: auto;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav,
.nav.is-open,
.nav__list,
.nav__list li,
.nav__list a {
  background: transparent !important;
  box-shadow: none !important;
}
.nav__list a {
  font-family: 'ElleNova', 'Helvetica Neue', Arial, sans-serif !important;
  font-style: normal !important;
  font-weight: 500;
  font-size: clamp(11px, .9vw, 13px);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  border: 0;
  transition: opacity .25s ease, color .35s ease;
}
.header.is-scrolled .nav__list a { color: var(--color-ink); }
.nav__list a:hover { opacity: .55; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--color-soft);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.30) 100%);
}
.hero__content {
  position: absolute;
  inset: 0;
  padding: 0 clamp(20px, 9vw, 170px);
}
.hero__title {
  position: relative;
  top: 40%;
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  color: #fff;
  font-size: clamp(56px, 9vw, 150px);
  line-height: 1;
  margin: 0;
  text-align: center;
}

/* ============================================================
   TIPOGRAFÍA COMPARTIDA
   ============================================================ */
.heading-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 7.5vw, 128px);
  line-height: 1.05;
  margin: 0 0 .5em;
}
.heading-rule {
  font-family: var(--font-sans);
  font-weight: 400;
  color: #000;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(30px, 3.4vw, 50px);
  line-height: 1.5;
  margin: 0 0 1em;
  display: flex;
  align-items: center;
  gap: 24px;
}
.heading-rule > span { white-space: nowrap; }
.heading-rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-ink);
}
.heading-rule--titled em {
  font-family: var(--font-didot);
  font-style: normal;
  font-weight: 700;
}

/* ============================================================
   SECCIÓN 2 — INTRO / PRÊT-À-VIVRE
   ============================================================ */
.intro { padding: clamp(70px, 11vw, 160px) 0; }
.intro__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: flex-end;
}
.intro__paragraph { margin-bottom: 90px; }
.intro__image img { width: 100%; box-shadow: 0 30px 60px rgba(0,0,0,.18); }

/* ============================================================
   SECCIÓN 3 — STATS
   ============================================================ */
.stats {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: clamp(40px, 6vw, 80px) 0;
}
.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-didot);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.stats__item strong {
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 64px);
  line-height: 1;
}
.stats__item span { font-size: clamp(16px, 1.6vw, 24px); }

/* ============================================================
   SECCIÓN 4/6/7 — FEATURE (texto + imagen)
   ============================================================ */
.feature { padding: clamp(60px, 9vw, 130px) 0; }
.feature__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.feature__text { max-width: 480px; }
.feature__text p { margin-bottom: 2em; }
.feature__image img {
  width: 100%;
  aspect-ratio: 960 / 813;
  object-fit: cover;
}

/* ============================================================
   SECCIÓN 5/9 — BANNER
   ============================================================ */
.banner {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: #b8b8b8;
}
.banner__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.28);
}
.banner__content {
  position: relative;
  padding: 0 var(--pad-x);
  max-width: 900px;
}
.banner__title {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(20px, 5.6vw, 125px);
  line-height: 1.1;
  margin: 0 0 .4em;
  white-space: nowrap;
}
.banner__text {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 14px;
  margin-bottom: 2em;
}

/* ============================================================
   SECCIÓN 8 — TEAM (collage)
   ============================================================ */
.team {
  padding: clamp(60px, 9vw, 120px) 0;
  background-image: url('../assets/img/bg_collage.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 58% auto;
}
.team__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.team__title {
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  margin: 0 0 .6em;
}
.team__title em {
  display: block;
  font-family: var(--font-didot);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(21px, 2.6vw, 36px);
  line-height: 1;
  margin-bottom: .15em;
}

.team__collage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
}
.team__item {
  position: absolute;
  margin: 0;
}
.team__img img {
  width: 100%;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.team__caption {
  margin-bottom: 10px;
  line-height: 1.3;
}
.team__role {
  display: block;
  font-family: var(--font-bauer);
  color: rgba(0, 0, 0, .3);
  text-transform: uppercase;
  letter-spacing: .02em;
  font-size: 20px;
}
.team__sub {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 16px;
}
/* Posiciones del collage (top / left / width en %) */
.team__item--1 { top: 3%;  left: 60%;  width: 20%; }
.team__item--2 { top: 0;   left: 0;    width: 20%; }
.team__item--3 { top: 28%; left: 28%;  width: 26%; }
.team__item--4 { top: 58%; left: 7%;   width: 27%; }
.team__item--5 { top: 45%; left: 63%;  width: 31%; }

.team__footer {
  display: flex;
  justify-content: center;
  margin-top: 56px;
}
.team__dev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: opacity .25s ease;
}
.team__dev:hover { opacity: .6; }
.team__dev-label {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11px;
  color: var(--color-grey);
}
.team__dev-name {
  font-family: var(--font-didot);
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: .03em;
}

/* ============================================================
   SECCIÓN 10 — CONTACT
   ============================================================ */
.contact {
  padding: clamp(70px, 10vw, 150px) 0;
  text-align: center;
  background: #f4f2ef;
}
.contact__inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.contact__title { margin-bottom: .15em; }
.contact__sub {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 15px;
  color: var(--color-grey);
  margin-bottom: 3em;
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 26px;
  text-align: left;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 36px; }

/* Campos de texto y select */
.contact__form input[type="text"],
.contact__form input[type="email"],
.contact__form input[type="tel"],
.contact__form select {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid #cdc8c1;
  border-radius: 0;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-ink);
  transition: border-color .2s ease;
}
.contact__form input:hover,
.contact__form select:hover { border-color: #a59f96; }
.contact__form input:focus,
.contact__form select:focus {
  outline: none;
  border-color: var(--color-ink);
}
.contact__form input::placeholder { color: #8c867d; }

/* Select con flecha personalizada */
.contact__form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' fill='none' stroke='%231a1a1a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.contact__form select:required:invalid { color: #8c867d; }
.contact__form select option { color: var(--color-ink); text-transform: none; }

/* Radios — I am a Broker / I am a Buyer */
.field--radio { display: flex; justify-content: center; padding: 8px 0; }
.radio-group { display: flex; gap: 44px; flex-wrap: wrap; }
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
}
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  margin: 0;
  border: 1px solid var(--color-ink);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-ink);
}

/* Consentimiento */
.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6e6a63;
  line-height: 1.6;
  cursor: pointer;
}
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px; height: 15px;
  margin: 2px 0 0;
  flex-shrink: 0;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  position: relative;
  cursor: pointer;
}
.consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px; top: 0;
  width: 5px; height: 9px;
  border: solid var(--color-ink);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact__form .btn-rect--dark {
  align-self: center;
  margin-top: 20px;
  background: var(--color-ink);
  color: #fff;
  padding: 20px 64px;
  font-size: 14px;
}
.contact__form .btn-rect--dark:hover { background: #000; color: #fff; opacity: .85; }
.contact__form .btn-rect--dark:disabled { opacity: .5; cursor: default; }

/* Campo trampa anti-spam (oculto para personas, visible para bots) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  text-align: center;
  padding: clamp(60px, 9vw, 120px) 0 clamp(40px, 6vw, 70px);
  background: #000;
  color: #fff;
}
.footer__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.footer__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 10vw, 150px);
  margin: 0 0 .15em;
  white-space: nowrap;
}
.footer__price {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: clamp(20px, 2.4vw, 34px);
  margin-bottom: 1.4em;
}
.footer__price strong { font-weight: 700; }
.footer__desc { margin-bottom: 2em; }
.footer__phone {
  font-family: var(--font-sans);
  font-size: clamp(24px, 3vw, 36px);
  margin-bottom: .3em;
}
.footer__email {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  margin-bottom: 3em;
}
.footer__locations {
  display: flex;
  justify-content: center;
  gap: clamp(40px, 8vw, 110px);
  margin-bottom: 3.5em;
  line-height: 1.7;
}
.footer__loc strong {
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer__legal {
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: left;
}
.footer__copy { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.6; }
.footer__menu {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0; padding: 0;
}
.footer__menu a {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.footer__menu a:hover { opacity: .55; }

.footer-pattern img { width: 100%; }

/* ============================================================
   THE RESIDENCES — Reside in Fashion (banner)
   ============================================================ */
.res-hero {
  position: relative;
  height: 80vh;
  min-height: 460px;
  overflow: hidden;
}
.res-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: top center;
  background-color: var(--color-soft);
}
.res-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.22) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,.30) 100%);
}
.res-hero__content {
  position: absolute;
  inset: 0;
  padding: 0 clamp(20px, 9vw, 170px);
}
.res-hero__title {
  position: relative;
  top: 40%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(48px, 8vw, 150px);
  line-height: 1;
}

/* ============================================================
   THE RESIDENCES — Ready to Live
   ============================================================ */
.ready { padding: clamp(60px, 9vw, 130px) 0; }
.ready__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.ready__col { display: flex; flex-direction: column; }
.ready__intro {
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1.7;
  color: #000;
  margin-bottom: clamp(28px, 4vw, 54px);
}
.ready__scheme { position: relative; margin: 0; }
.ready__scheme img { width: 100%; }
.ready__scheme-title {
  position: absolute;
  left: 6%;
  bottom: 6%;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #1a1a1a;
  font-size: clamp(36px, 4.6vw, 84px);
  line-height: 1;
}
.ready__photo { margin: 0 0 clamp(28px, 4vw, 52px); }
.ready__photo img { width: 100%; }
.ready__features-title {
  font-family: var(--font-sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 20px;
  margin: 0 0 22px;
}
.ready__list { list-style: none; margin: 0; padding: 0; }
.ready__list li {
  font-family: var(--font-didot);
  font-size: 18px;
  line-height: 1.4;
  padding: 10px 0;
  border-bottom: 1px solid #e5e1da;
}
.ready__list li:last-child { border-bottom: 0; }

/* ============================================================
   THE RESIDENCES — Gallery (carrusel)
   ============================================================ */
.gallery { padding: clamp(20px, 4vw, 60px) 0 clamp(60px, 8vw, 110px); }
.gallery__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.gallery__viewport {
  position: relative;
  overflow: hidden;
}
.gallery__track {
  display: flex;
  transition: transform .55s cubic-bezier(.7,0,.2,1);
}
.gallery__slide {
  flex: 0 0 100%;
  min-width: 0;
}
.gallery__slide img {
  width: 100%;
  aspect-ratio: 1920 / 1133;
  object-fit: cover;
  display: block;
}
.gallery__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  padding: 14px;
  filter: drop-shadow(0 1px 5px rgba(0,0,0,.6));
  transition: opacity .2s ease;
}
.gallery__arrow:hover { opacity: .65; }
.gallery__arrow svg { display: block; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__caption {
  font-family: var(--font-didot);
  font-size: 16px;
  text-align: center;
  color: var(--color-ink);
  margin: 20px 0 0;
}
.gallery__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.gallery__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--color-ink);
  background: none;
  cursor: pointer;
  transition: background .2s ease;
}
.gallery__dots button.is-active { background: var(--color-ink); }

/* ============================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ============================================================ */
.whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 26px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  box-shadow: 0 8px 22px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 28px rgba(0,0,0,.34);
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #fff;
}

/* ============================================================
   ANIMACIONES AL SCROLL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Tablet grande / portátil pequeño (≤ 1100px) --- */
@media (max-width: 1100px) {
  /* El collage absoluto no escala bien: se apila en columna */
  .team__collage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: clamp(30px, 6vw, 56px);
  }
  .team__item {
    position: static;
    width: 100% !important;
    max-width: 480px;
  }
  .team__item:nth-child(even) { align-self: flex-end; }
}

/* --- Tablet (≤ 960px) --- */
@media (max-width: 960px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 44px 20px; }

  /* Secciones de dos columnas pasan a una sola */
  .intro__inner,
  .feature__inner,
  .ready__inner {
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 60px);
  }
  .intro__paragraph { margin-bottom: 50px; }
  .intro__image,
  .feature--reverse .feature__image { order: -1; }
  .feature__text { max-width: none; }
}

/* --- Móvil (≤ 720px) --- */
@media (max-width: 720px) {
  .header { padding: 18px 0; }
  .header.is-scrolled { padding: 12px 0; }
  .header__right { gap: 18px; }
  .header__logo-svg { width: 70px; }
  .header.is-scrolled .header__logo-svg { width: 62px; }

  .nav__list { gap: 14px; }

  .banner { min-height: 64vh; min-height: 64svh; }

  .heading-rule { gap: 14px; }

  .team__item { max-width: none; }
  .team__item:nth-child(even) { align-self: stretch; }

  .footer__locations { flex-direction: column; gap: 30px; }
  .footer__legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* --- Móvil pequeño (≤ 520px) --- */
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; gap: 36px; }
  .btn-rect { padding: 15px 32px; }
  .whatsapp-float { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .whatsapp-float svg { width: 30px; height: 30px; }
}
