/* ==========================================================================
   Inmobiliaria Vista — Landing Page Premium
   Estilos: moderno, minimalista, sofisticado (CRO + Accesibilidad WCAG)
   ========================================================================== */

/* ---------- 1. Variables (Design Tokens) ---------- */
:root {
  /* Colores de marca */
  --navy: #1E3A8A;
  --navy-dark: #172B66;
  --navy-light: #2E4BA6;
  --gold: #D4A017;
  --gold-soft: #E3B84A;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  /* Semánticos */
  --text: #1E293B;
  --text-muted: #64748B;
  --bg: #FFFFFF;
  --bg-alt: #F8FAFC;
  --border: #E2E8F0;
  --danger: #DC2626;
  --success: #16A34A;

  /* Tipografía */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Espaciado / radios / sombras */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 12px 28px rgba(212, 160, 23, 0.28);
  --shadow-navy: 0 12px 28px rgba(30, 58, 138, 0.24);

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Transiciones */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.35s var(--ease);
}

/* ---------- 2. Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4 {
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. Utilidades ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section--alt {
  background: var(--bg-alt);
}

.text-gold {
  color: var(--gold);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus {
  top: 16px;
}

/* Encabezado de sección */
.section__header {
  max-width: 680px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  background: rgba(212, 160, 23, 0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}

.section__title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: var(--navy);
  --btn-color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--btn-bg);
  color: var(--btn-color);
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  display: inline-flex;
}

.btn--primary {
  --btn-bg: var(--navy);
  box-shadow: var(--shadow-navy);
}
.btn--primary:hover {
  --btn-bg: var(--navy-light);
  box-shadow: 0 16px 34px rgba(30, 58, 138, 0.32);
}

.btn--gold {
  --btn-bg: var(--gold);
  --btn-color: var(--gray-900);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover {
  --btn-bg: var(--gold-soft);
  box-shadow: 0 16px 34px rgba(212, 160, 23, 0.36);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(6px);
}
.btn--outline:hover {
  --btn-bg: rgba(255, 255, 255, 0.14);
  border-color: var(--white);
}

.btn--lg {
  padding: 17px 34px;
  font-size: 1.05rem;
}

.btn--full {
  width: 100%;
}

/* Loader del botón submit */
.btn__loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn__text {
  visibility: hidden;
  opacity: 0;
}
.btn.is-loading .btn__loader {
  display: block;
  position: absolute;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------- 5. Header / Navegación ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--gray-900);
}
.logo__icon {
  flex-shrink: 0;
}
.logo__accent {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav__link {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-full);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav__link:hover {
  color: var(--navy);
  background: var(--gray-100);
}

.nav__link--cta {
  background: var(--navy);
  color: var(--white);
  margin-left: 8px;
  box-shadow: var(--shadow-navy);
}
.nav__link--cta:hover {
  background: var(--navy-light);
  color: var(--white);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  z-index: 1100;
}
.nav__toggle-bar {
  width: 26px;
  height: 2.5px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.88) 0%,
    rgba(23, 43, 102, 0.72) 42%,
    rgba(30, 58, 138, 0.34) 100%
  );
}

.hero__container {
  position: relative;
  z-index: 1;
  padding-block: 60px;
}

.hero__content {
  max-width: 720px;
  color: var(--white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(212, 160, 23, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 160, 23, 0); }
}

.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero__trust-avatars {
  display: flex;
  align-items: center;
}
.hero__trust-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  margin-left: -12px;
}
.hero__trust-avatar:first-child {
  margin-left: 0;
}
.hero__trust-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--gray-900);
  font-size: 0.8rem;
  font-weight: 700;
  border: 2.5px solid rgba(255, 255, 255, 0.9);
  margin-left: -12px;
}
.hero__trust-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 160px;
  line-height: 1.35;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.hero__scroll-line {
  width: 1.5px;
  height: 44px;
  background: linear-gradient(rgba(255, 255, 255, 0.7), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.55); opacity: 0.3; }
}

/* ---------- 7. Métricas ---------- */
.metrics {
  position: relative;
  margin-top: -60px;
  z-index: 5;
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 38px 24px;
  background: var(--white);
}
.metric__number {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.metric__unit {
  font-size: 0.55em;
  vertical-align: super;
  margin-left: 2px;
}
.metric__label {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---------- 8. Beneficios ---------- */
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.benefit-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(212, 160, 23, 0.12));
  color: var(--navy);
  margin-bottom: 22px;
  transition: background var(--transition), color var(--transition);
}
.benefit-card:hover .benefit-card__icon {
  background: var(--navy);
  color: var(--gold);
}
.benefit-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.benefit-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 9. Galería ---------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__item:hover .gallery__img {
  transform: scale(1.06);
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery__item:hover::after {
  opacity: 1;
}
.gallery__caption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  z-index: 2;
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  transform: translateY(8px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.gallery__item:hover .gallery__caption {
  transform: translateY(0);
  opacity: 1;
}
.gallery__zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  transform: scale(0.7);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition), background 0.2s;
}
.gallery__item:hover .gallery__zoom {
  transform: scale(1);
  opacity: 1;
}
.gallery__zoom:hover {
  background: var(--gold);
  color: var(--gray-900);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  animation: fadeIn 0.3s var(--ease) forwards;
}
.lightbox[hidden] {
  display: none;
}
@keyframes fadeIn {
  to { opacity: 1; }
}
.lightbox__img {
  max-width: min(1000px, 92vw);
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox__close {
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }
.lightbox__close:hover,
.lightbox__nav:hover {
  background: var(--gold);
  color: var(--gray-900);
}
.lightbox__nav:hover {
  transform: translateY(-50%) scale(1.08);
}
.lightbox__caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
}

/* ---------- 10. Tipologías ---------- */
.tipologies__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.tipology-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}
.tipology-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.tipology-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.tipology-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.tipology-card:hover .tipology-card__img {
  transform: scale(1.06);
}
.tipology-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}
.tipology-card__badge--alt {
  background: var(--navy);
  color: var(--white);
}
.tipology-card__content {
  padding: 26px 26px 28px;
}
.tipology-card__title {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
.tipology-card__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}
.tipology-card__spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  background: var(--gray-100);
  padding: 7px 13px;
  border-radius: var(--radius-full);
}
.tipology-card__spec svg {
  color: var(--navy);
}
.tipology-card__price {
  display: flex;
  flex-direction: column;
  margin-bottom: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.tipology-card__price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tipology-card__price-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ---------- 11. Ubicación ---------- */
.location__wrapper {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 450px;
}
.location__map iframe {
  display: block;
  height: 100%;
  min-height: 450px;
}
.location__points {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location__points-title {
  font-size: 1.4rem;
  margin-bottom: 22px;
}
.location__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.location__item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.location__item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-sm);
}
.location__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(30, 58, 138, 0.08);
  color: var(--navy);
}
.location__info {
  display: flex;
  flex-direction: column;
}
.location__name {
  font-weight: 600;
  color: var(--gray-800);
}
.location__distance {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
}

/* ---------- 12. Invertir ---------- */
.invest__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.invest-card {
  text-align: center;
  padding: 36px 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.invest-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.invest-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 22px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  color: var(--gold);
  box-shadow: var(--shadow-navy);
}
.invest-card__title {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.invest-card__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ---------- 13. Testimonios ---------- */
.testimonials__slider {
  position: relative;
  max-width: 800px;
  margin: 8px auto 0;
  /* el viewport fijo que recorta las tarjetas al deslizarse */
  overflow: hidden;
  /* padding para no recortar la sombra de las tarjetas */
  padding: 14px;
}
.testimonials__track {
  display: flex;
}
.testimonial {
  flex: 0 0 100%;
  min-width: 100%;
  text-align: center;
  padding: 44px clamp(24px, 5vw, 56px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial__stars {
  display: inline-flex;
  gap: 4px;
  color: var(--gold);
  margin-bottom: 22px;
}
.testimonial__quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
  color: var(--gray-800);
  font-weight: 500;
  margin-bottom: 28px;
}
.testimonial__author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.testimonial__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}
.testimonial__info {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.testimonial__name {
  font-weight: 700;
  font-style: normal;
  color: var(--gray-900);
}
.testimonial__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 48px;
}
.testimonials__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--navy);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.testimonials__btn:hover {
  background: var(--navy);
  color: var(--white);
  transform: scale(1.06);
}
.testimonials__dots {
  display: flex;
  gap: 10px;
}
.testimonials__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.testimonials__dot--active {
  background: var(--gold);
  transform: scale(1.3);
}

/* Desktop: mostrar las 3 tarjetas en fila (sin carrusel) */
@media (min-width: 992px) {
  .testimonials__slider {
    max-width: 100%;
    overflow: visible;
    padding: 14px 0;
  }
  .testimonials__track {
    gap: 28px;
    transform: none !important;
    transition: none !important;
  }
  .testimonial {
    flex: 1 1 0;
    min-width: 0;
    padding: 40px 32px;
  }
  .testimonial__quote {
    font-size: 1.1rem;
  }
  .testimonials__controls {
    display: none;
  }
}

/* ---------- 14. FAQ ---------- */
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.faq__item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--gold);
}
.faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  list-style: none;
}
.faq__question::-webkit-details-marker {
  display: none;
}
.faq__icon {
  display: inline-flex;
  flex-shrink: 0;
  color: var(--navy);
  transition: transform var(--transition);
}
.faq__item[open] .faq__icon {
  transform: rotate(180deg);
  color: var(--gold);
}
.faq__answer {
  padding: 0 26px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  animation: faqSlide 0.35s var(--ease);
}
@keyframes faqSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 15. CTA Principal ---------- */
.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 130px) 0;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.cta__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cta__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(23, 43, 102, 0.94), rgba(30, 58, 138, 0.82));
}
.cta__container {
  position: relative;
  z-index: 1;
}
.cta__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.cta__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: var(--gray-900);
  margin-bottom: 22px;
}
.cta__title {
  font-size: clamp(1.9rem, 4.4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 18px;
}
.cta__subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.65;
  margin-bottom: 34px;
}
.cta__note {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- 16. Formulario / Contacto ---------- */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.contact__info .section__title {
  text-align: left;
}
.contact__info .section__tag {
  margin-bottom: 18px;
}
.contact__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 20px 0 30px;
}
.contact__features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact__feature {
  display: flex;
  align-items: center;
  gap: 16px;
}
.contact__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(212, 160, 23, 0.12);
  color: var(--gold);
}
.contact__feature strong {
  display: block;
  color: var(--gray-900);
  font-size: 1rem;
}
.contact__feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.contact__form-wrapper {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form__label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-700);
}
.form__label span {
  color: var(--danger);
}
.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--gray-50);
  color: var(--text);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background 0.2s var(--ease);
}
.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--gray-400);
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}
.form__input.is-invalid,
.form__select.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}
.form__textarea {
  resize: vertical;
  min-height: 84px;
}
.form__error {
  font-size: 0.82rem;
  color: var(--danger);
  min-height: 1em;
  font-weight: 500;
}

.form__group--checkbox {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}
.form__checkbox {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--navy);
  cursor: pointer;
}
.form__checkbox-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
  min-width: 200px;
}
.form__checkbox-label a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}
.form__group--checkbox .form__error {
  flex-basis: 100%;
}
.form__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.form__trust svg {
  color: var(--success);
  flex-shrink: 0;
}

/* Éxito del formulario */
.contact__success {
  text-align: center;
  padding: 20px 10px;
  animation: faqSlide 0.4s var(--ease);
}
.contact__success[hidden] {
  display: none;
}
.contact__success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.1);
  color: var(--success);
  margin-bottom: 22px;
}
.contact__success-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}
.contact__success-text {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 420px;
  margin: 0 auto;
}

/* ---------- 17. Footer ---------- */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(56px, 8vw, 80px) 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.logo--footer {
  color: var(--white);
  margin-bottom: 18px;
}
.footer__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 22px;
}
.footer__social {
  display: flex;
  gap: 12px;
}
.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__social-link:hover {
  background: var(--gold);
  color: var(--gray-900);
  transform: translateY(-3px);
}
.footer__title {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__link {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer__link:hover {
  color: var(--gold);
  padding-left: 4px;
}
.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  margin-bottom: 12px;
}
.footer__contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 28px;
}
.footer__copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 18. Back to Top ---------- */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--transition), visibility var(--transition),
    transform var(--transition), background 0.2s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--gold);
  color: var(--gray-900);
  transform: translateY(-3px);
}

/* ---------- 19. Animaciones de scroll (reveal) ---------- */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 992px) {
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid,
  .invest__grid { grid-template-columns: repeat(2, 1fr); }
  .tipologies__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .location__wrapper { grid-template-columns: 1fr; }
  .contact__wrapper { grid-template-columns: 1fr; gap: 36px; }
  .contact__info .section__title { text-align: center; }
  .contact__info .section__tag,
  .contact__info { text-align: center; }
  .contact__features { max-width: 460px; margin-inline: auto; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 68px; }

  /* Nav móvil */
  .nav__toggle { display: flex; }
  .nav__menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 82vw);
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 8px;
    padding: 80px 28px 40px;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link {
    padding: 14px 18px;
    font-size: 1.05rem;
  }
  .nav__link--cta { margin-left: 0; text-align: center; margin-top: 10px; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery__item--large { grid-column: span 2; grid-row: span 1; }

  .hero__trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero__scroll { display: none; }

  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__close { top: 16px; right: 16px; }
}

@media (max-width: 560px) {
  .container { padding-inline: 18px; }
  .metrics { margin-top: -30px; }
  .metrics__grid { grid-template-columns: 1fr; }
  .benefits__grid,
  .invest__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; }
}

/* ---------- 21. Accesibilidad: reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-animate] {
    opacity: 1;
    transform: none;
  }
  .hero__bg-img { animation: none; }
}
