/* Estilos generales del sitio Cedrus: variables, secciones, componentes, animaciones y adaptación móvil. */

/* Variables reutilizables de color, sombra y tamaño para mantener una apariencia uniforme. */
:root {
  --cedrus-ink: #071b17;
  --cedrus-dark: #0d2b25;
  --cedrus-green: #7ed957;
  --cedrus-green-soft: #dff6d4;
  --cedrus-gold: #c89a52;
  --cedrus-cream: #f7f4ec;
  --cedrus-white: #ffffff;
  --cedrus-muted: #62706b;
  --cedrus-line: rgba(13, 43, 37, .12);
  --shadow-soft: 0 18px 45px rgba(7, 27, 23, .12);
  --shadow-strong: 0 28px 70px rgba(7, 27, 23, .28);
  --radius: 8px;
}

/* Reinicio básico para que márgenes y medidas se comporten igual en todos los navegadores. */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--cedrus-ink);
  color: var(--cedrus-dark);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--cedrus-green);
  color: var(--cedrus-ink);
}

a {
  text-decoration: none;
}

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

.container {
  position: relative;
  z-index: 2;
}

/* ============ NAVBAR ============ */

.navbar {
  padding: 18px 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease, border-color .35s ease;
  background: rgba(7, 27, 23, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.navbar.scrolled {
  padding: 11px 0;
  background: rgba(7, 27, 23, .94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .28);
  border-color: rgba(126, 217, 87, .16);
}

.logo {
  height: 70px;
  width: auto;
  max-width: min(280px, 58vw);
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .22));
  transition: transform .35s ease, height .35s ease;
}

.navbar.scrolled .logo {
  height: 58px;
}

.navbar-brand:hover .logo,
.navbar-brand:focus .logo {
  transform: translateY(-2px);
}

.navbar-toggler {
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius);
  padding: 9px 11px;
  box-shadow: none !important;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, .86) !important;
  font-weight: 600;
  margin-left: 18px;
  letter-spacing: .2px;
  transition: color .3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  background: linear-gradient(90deg, var(--cedrus-green), var(--cedrus-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--cedrus-white) !important;
}

.nav-link:hover::after,
.nav-link:focus::after {
  transform: scaleX(1);
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 150px 0 95px;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 27, 23, .96) 0%, rgba(7, 27, 23, .70) 42%, rgba(7, 27, 23, .20) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .36) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 170px;
  background: linear-gradient(0deg, var(--cedrus-white), rgba(255, 255, 255, 0));
  opacity: .92;
}

.hero-info {
  position: relative;
  z-index: 10;
  color: var(--cedrus-white);
  max-width: 690px;
  text-shadow: 0 12px 34px rgba(0, 0, 0, .34);
}

.subtitle,
.titulo-verde {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  background: rgba(126, 217, 87, .15);
  color: var(--cedrus-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  border: 1px solid rgba(126, 217, 87, .24);
}

.subtitle::before,
.titulo-verde::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(126, 217, 87, .12);
}

.hero .subtitle {
  color: var(--cedrus-white);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .2);
  backdrop-filter: blur(12px);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 104px);
  font-weight: 800;
  letter-spacing: 8px;
  margin-bottom: 12px;
  line-height: .95;
}

.hero h2 {
  font-size: clamp(30px, 4.2vw, 50px);
  font-weight: 400;
  line-height: 1.14;
  margin-bottom: 26px;
  color: var(--cedrus-green-soft);
}

.hero p {
  max-width: 610px;
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 42px;
  color: rgba(255, 255, 255, .88);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============ BOTONES ============ */

.btn-primary-custom,
.btn-outline-custom {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: .2px;
  transition: transform .28s ease, box-shadow .28s ease, background .28s ease, color .28s ease, border-color .28s ease;
  border: 0;
  isolation: isolate;
  overflow: hidden;
}

.btn-primary-custom {
  background: linear-gradient(135deg, var(--cedrus-green), #b9ef79);
  color: var(--cedrus-ink);
  box-shadow: 0 14px 28px rgba(126, 217, 87, .26);
}

.btn-primary-custom:hover,
.btn-primary-custom:focus {
  color: var(--cedrus-ink);
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(126, 217, 87, .34);
}

.btn-outline-custom {
  border: 1px solid rgba(255, 255, 255, .72);
  color: var(--cedrus-white);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
}

.btn-outline-custom:hover,
.btn-outline-custom:focus {
  background: var(--cedrus-white);
  border-color: var(--cedrus-white);
  color: var(--cedrus-ink);
  transform: translateY(-3px);
}

.scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  font-size: 30px;
  color: var(--cedrus-white);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
  animation: sube 2s infinite;
}

/* ============ BASES DE SECCIÓN ============ */

.concepto,
.amenidades,
.ubicacion,
.contacto {
  position: relative;
  padding: 120px 0;
  background: var(--cedrus-white);
  overflow: hidden;
}

.amenidades,
.estadisticas,
.trayectoria,
.modelos,
.galeria-premium,
.testimonios,
.diferenciadores,
.ubicacion,
.financiamiento,
.contacto,
footer {
  content-visibility: auto;
  contain-intrinsic-size: 850px;
}

.concepto {
  background: linear-gradient(180deg, var(--cedrus-white), #fbfaf5);
}

.titulo {
  max-width: 820px;
  margin: 20px 0 28px;
  color: var(--cedrus-dark);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  line-height: 1.06;
}

.descripcion,
.concepto p,
.ubicacion p,
.contacto p {
  max-width: 730px;
  font-size: 18px;
  line-height: 1.9;
  color: var(--cedrus-muted);
}

.section-head {
  margin-bottom: 56px;
}

.section-head .titulo {
  margin-left: auto;
  margin-right: auto;
}

/* ============ CONCEPTO ============ */

.concepto-imagen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.concepto-imagen::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--radius);
  pointer-events: none;
}

.concepto-imagen img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .75s ease;
}

.concepto-imagen:hover img {
  transform: scale(1.07);
}

/* ============ ESTADÍSTICAS ============ */

.estadisticas {
  padding: 78px 0;
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .12), rgba(200, 154, 82, .08)),
    var(--cedrus-ink);
  color: var(--cedrus-white);
}

.stat {
  height: 100%;
  padding: 24px 18px;
  border-left: 1px solid rgba(255, 255, 255, .12);
  transition: transform .3s ease;
}

.stat:hover {
  transform: translateY(-6px);
}

.stat h3 {
  color: var(--cedrus-green);
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 800;
  margin-bottom: 10px;
}

.stat p {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-weight: 500;
}

/* ============ AMENIDADES ============ */

.amenidades {
  background: linear-gradient(180deg, #123d24 0%, #0f351f 100%);
  color: var(--cedrus-white);
}

.amenidades-club {
  max-width: 100%;
  margin: 0 auto;
}

.amenidades-club .titulo {
  max-width: 980px;
  margin-bottom: 18px;
  color: var(--cedrus-white);
  font-size: clamp(31px, 4vw, 52px);
}

.amenidades-club .titulo strong {
  color: var(--cedrus-green-soft);
  font-style: italic;
}

.amenidades-club .descripcion {
  max-width: 760px;
  margin-bottom: 46px;
  color: rgba(255, 255, 255, .78);
}

.amenidades .titulo-verde {
  background: rgba(213, 217, 49, .15);
  color: #d5d931;
  border-color: rgba(213, 217, 49, .32);
}

.amenidades-lista {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 18px;
  overflow: hidden;
}

.amenidades-lista > div {
  flex: 0 0 280px;
  max-width: 280px;
  animation: amenidadesSlider 28s linear infinite;
}

.amenidades-lista:hover > div {
  animation-play-state: paused;
}

@keyframes amenidadesSlider {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-280px * 6));
  }
}

.amenidad-icon-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 255px;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .12);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}

.amenidad-icon-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, .095);
  border-color: rgba(213, 217, 49, .45);
}

.amenidad-icono {
  flex: 0 0 66px;
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #d5d931;
  color: #0f351f;
  font-size: 28px;
  line-height: 1;
}

.amenidad-texto {
  display: block;
  color: var(--cedrus-white);
}

.amenidad-texto strong {
  display: block;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  line-height: 1.22;
  margin-bottom: 16px;
}

.amenidad-texto small {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: rgba(255, 255, 255, .74);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
}

/* ============ MODELOS ARQUITECTÓNICOS ============ */

.modelos {
  position: relative;
  padding: 120px 0;
  background: linear-gradient(180deg, #f7f4ec 0%, #ffffff 46%, #eef4ed 100%);
  overflow: hidden;
}

.modelos .text-center {
  margin-bottom: 48px !important;
}

.modelos .titulo {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  color: var(--cedrus-dark);
}

.modelos .descripcion {
  max-width: 860px;
  color: #52635e;
}

.modelos .modelo-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cedrus-white);
  border: 1px solid rgba(13, 43, 37, .10);
  border-radius: 14px;
  box-shadow: 0 24px 56px rgba(7, 27, 23, .14);
  transition: transform .32s ease, box-shadow .32s ease, border-color .32s ease;
}

.modelos .modelo-card:hover {
  transform: translateY(-7px);
  border-color: rgba(126, 217, 87, .40);
  box-shadow: 0 34px 72px rgba(7, 27, 23, .20);
}

/* --- imagen con texto encima --- */

.modelos .modelo-imagen {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #0d2b25;
}

.modelos .modelo-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform .6s ease;
}

.modelos .modelo-card:hover .modelo-imagen img {
  transform: scale(1.05);
}

.modelos .modelo-imagen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(7, 27, 23, .10) 0%,
      rgba(7, 27, 23, .00) 35%,
      rgba(7, 27, 23, .68) 72%,
      rgba(7, 27, 23, .94) 100%);
}

.modelos .modelo-card--sin-imagen {
  border-color: rgba(13, 43, 37, .16);
}

.modelos .modelo-sin-imagen {
  position: relative;
  min-height: 282px;
  display: flex;
  align-items: flex-end;
  padding: 72px 28px 28px;
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .14), rgba(200, 154, 82, .18)),
    repeating-linear-gradient(45deg, rgba(13, 43, 37, .07) 0 1px, transparent 1px 18px),
    #f6f3ea;
  color: var(--cedrus-dark);
}

.modelos .modelo-sin-imagen i {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--cedrus-dark);
  color: var(--cedrus-green);
  font-size: 22px;
  box-shadow: 0 12px 28px rgba(7, 27, 23, .18);
}

.modelos .modelo-sin-imagen h3 {
  margin: 0 0 10px;
  color: var(--cedrus-dark);
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 800;
  line-height: 1.15;
}

.modelos .modelo-sin-imagen p {
  margin: 0;
  color: #52635e;
  font-size: 15px;
  line-height: 1.65;
}

.modelos .modelo-etiqueta {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(126, 217, 87, .92);
  border: 0;
  color: #071b17;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  box-shadow: 0 8px 20px rgba(7, 27, 23, .28);
}

.modelos .modelo-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 30px 28px 26px;
  color: #fff;
}

.modelos .modelo-overlay h3 {
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 10px 26px rgba(0, 0, 0, .45);
}

.modelos .modelo-overlay p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, .88);
  font-size: 15px;
  line-height: 1.65;
  text-shadow: 0 8px 22px rgba(0, 0, 0, .45);
}

/* --- cuerpo claro --- */

.modelos .modelo-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 28px 30px;
  background: var(--cedrus-white);
}

.modelos .modelo-caracteristicas {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 26px;
}

.modelos .modelo-caracteristicas span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid rgba(13, 43, 37, .10);
  border-radius: 999px;
  background: #f3f7f1;
  color: #1f3c35;
  font-size: 13.5px;
  font-weight: 700;
}

.modelos .modelo-caracteristicas i {
  color: #4aa832;
  font-size: 11px;
}

.modelos .modelo-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.modelos .modelo-botones .btn-primary-custom,
.modelos .modelo-botones .btn-outline-custom {
  flex: 1 1 auto;
  min-height: 48px;
  padding: 12px 20px;
  font-size: 14px;
}

.modelos .modelo-botones .btn-outline-custom {
  background: transparent;
  border: 1px solid rgba(13, 43, 37, .24);
  color: var(--cedrus-dark);
  backdrop-filter: none;
}

.modelos .modelo-botones .btn-outline-custom:hover,
.modelos .modelo-botones .btn-outline-custom:focus {
  background: var(--cedrus-dark);
  border-color: var(--cedrus-dark);
  color: var(--cedrus-white);
}

/* ============ GALERÍA ============ */

.galeria-premium {
  padding: 128px 0;
  background: linear-gradient(180deg, var(--cedrus-white), #f2f4ef);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  background: var(--cedrus-ink);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s ease, filter .85s ease;
}

.gallery-item img[alt*="terreno"],
.gallery-item img[alt*="Terreno"] {
  object-position: center;
}

.gallery-item:hover img {
  transform: scale(1.12);
  filter: saturate(1.08) contrast(1.04);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 27, 23, 0), rgba(7, 27, 23, .55));
  opacity: 0;
  transition: opacity .35s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.large {
  grid-column: span 2;
  grid-row: span 2;
}

.tall {
  grid-row: span 2;
}

.wide {
  grid-column: span 2;
}

/* ============ TRAYECTORIA / TESTIMONIOS / DIFERENCIADORES ============ */

.trayectoria,
.testimonios,
.diferenciadores {
  padding: 120px 0;
}

.trayectoria {
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .10), rgba(200, 154, 82, .08)),
    var(--cedrus-ink);
  color: var(--cedrus-white);
}

.trayectoria .titulo {
  color: var(--cedrus-white);
}

.trayectoria .descripcion {
  color: rgba(255, 255, 255, .82);
}

.trayectoria-logo {
  width: min(320px, 80%);
  margin: auto;
  padding: 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45));
  transition: transform .45s ease;
}

.trayectoria-logo:hover {
  transform: translateY(-6px) scale(1.02);
}

.testimonios {
  background: linear-gradient(180deg, #f7f7f3, var(--cedrus-white));
}

.testimonio-card {
  position: relative;
  height: 100%;
  padding: 36px 30px;
  text-align: center;
  background: var(--cedrus-white);
  border-radius: var(--radius);
  border: 1px solid rgba(13, 43, 37, .08);
  box-shadow: var(--shadow-soft);
  transition: transform .34s ease, box-shadow .34s ease, border-color .34s ease;
}

.testimonio-card:hover {
  transform: translateY(-10px);
  border-color: rgba(200, 154, 82, .28);
  box-shadow: 0 28px 58px rgba(7, 27, 23, .17);
}

.cliente-foto {
  width: 96px;
  height: 96px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cedrus-dark), var(--cedrus-gold));
  box-shadow: 0 12px 24px rgba(7, 27, 23, .18);
}

.cliente-foto img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--cedrus-white);
}

.cliente-foto.avatar-fallback img {
  display: none;
}

.cliente-foto.avatar-fallback::before {
  content: "";
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 34px 0 14px rgba(255, 255, 255, .9);
  transform: translateY(-16px);
}

.estrellas {
  margin-bottom: 18px;
  color: #f0b83a;
  font-size: 17px;
  letter-spacing: 2px;
}

.comillas {
  font-size: 54px;
  color: var(--cedrus-gold);
  line-height: .8;
  margin-bottom: 18px;
}

.comentario {
  font-size: 15px;
  line-height: 1.85;
  color: var(--cedrus-muted);
  margin-bottom: 25px;
  font-style: italic;
}

.testimonio-card h5 {
  color: var(--cedrus-dark);
  font-weight: 800;
  margin-bottom: 5px;
}

.testimonio-card span {
  color: #89958f;
  font-size: 14px;
}

.diferenciadores {
  background: var(--cedrus-white);
}

.diferencia {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--cedrus-line);
  transition: transform .3s ease, border-color .3s ease;
}

.diferencia:hover {
  transform: translateX(8px);
  border-color: rgba(126, 217, 87, .45);
}

.diferencia strong {
  color: var(--cedrus-gold);
  font-size: 36px;
  font-weight: 800;
}

.diferencia h3 {
  color: var(--cedrus-dark);
  font-size: 24px;
  font-weight: 800;
}

.diferencia p {
  color: var(--cedrus-muted);
  margin: 0;
  line-height: 1.75;
}

/* ============ UBICACIÓN / FINANCIAMIENTO ============ */

.ubicacion {
  background: linear-gradient(180deg, #fbfaf5, var(--cedrus-white));
}

.lista-ubicacion {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.lista-ubicacion li {
  margin-bottom: 15px;
  font-size: 18px;
  color: var(--cedrus-dark);
  font-weight: 600;
}

.mapa {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 1px solid rgba(13, 43, 37, .08);
}

.mapa iframe {
  width: 100%;
  height: 450px;
  border: 0;
  filter: saturate(.92) contrast(1.02);
}

.financiamiento {
  padding: 82px 0;
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .12), rgba(200, 154, 82, .08)),
    var(--cedrus-dark);
  color: var(--cedrus-white);
}

.financiamiento h2 {
  font-size: clamp(38px, 5vw, 62px);
  color: var(--cedrus-green);
  font-weight: 800;
  text-transform: uppercase;
}

.financiamiento p {
  font-size: 20px;
  margin: 0;
  color: rgba(255, 255, 255, .8);
}

.financiamiento-alianza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 42px;
  padding: 26px 30px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .18);
}

.financiamiento-alianza span {
  display: block;
  margin-bottom: 8px;
  color: var(--cedrus-green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}

.financiamiento-alianza p {
  max-width: 760px;
}

.financiamiento-alianza img {
  width: min(220px, 42vw);
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--cedrus-white);
}

/* ============ PROYECTOS DU MONT ============ */

.proyectos-dumont {
  padding: 118px 0;
  background: linear-gradient(180deg, #f6f2e8, var(--cedrus-white));
}

.proyecto-card {
  height: 100%;
  padding: 30px;
  border: 1px solid rgba(13, 43, 37, .10);
  border-radius: var(--radius);
  background: var(--cedrus-white);
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.proyecto-card:hover {
  transform: translateY(-7px);
  border-color: rgba(126, 217, 87, .38);
  box-shadow: 0 28px 58px rgba(7, 27, 23, .16);
}

.proyecto-card span {
  display: inline-block;
  margin-bottom: 18px;
  color: #4a8f35;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.proyecto-card h3 {
  margin-bottom: 14px;
  color: var(--cedrus-dark);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.proyecto-card p {
  min-height: 84px;
  color: var(--cedrus-muted);
  line-height: 1.75;
}

.proyecto-card a {
  color: var(--cedrus-dark);
  font-weight: 900;
  text-decoration: none;
}

.proyecto-card a:hover,
.proyecto-card a:focus {
  color: #4a8f35;
}

/* ============ PAGINAS INTERNAS ============ */

.pagina-interna {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .08), rgba(200, 154, 82, .10)),
    #f6f2e8;
  color: var(--cedrus-dark);
}

.legal-page,
.blog-page {
  padding: 54px 0 80px;
}

.back-link {
  display: inline-flex;
  width: auto;
  margin-bottom: 24px;
  background: var(--cedrus-white);
  color: var(--cedrus-dark);
  backdrop-filter: none;
}

.legal-content,
.blog-content {
  max-width: 900px;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(13, 43, 37, .10);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-soft);
}

.legal-content h1,
.blog-content h1 {
  margin: 12px 0 22px;
  color: var(--cedrus-dark);
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.05;
}

.legal-content h2,
.blog-content h2 {
  margin-top: 34px;
  color: var(--cedrus-dark);
  font-size: 24px;
  font-weight: 800;
}

.legal-content p,
.blog-content p {
  color: #52635e;
  font-size: 16px;
  line-height: 1.85;
}

.legal-content a,
.blog-content a {
  color: #4a8f35;
  font-weight: 800;
}

.legal-note,
.blog-intro {
  padding-top: 22px;
  border-top: 1px solid rgba(13, 43, 37, .10);
}

.blog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* ============ CONTACTO ============ */

.contacto {
  background: linear-gradient(180deg, var(--cedrus-cream), #eef3ea);
}

.formulario {
  padding: 34px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(13, 43, 37, .08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.formulario input,
.formulario textarea,
.formulario select {
  width: 100%;
  padding: 17px 18px;
  margin-bottom: 18px;
  border: 1px solid #d7dedb;
  border-radius: var(--radius);
  color: var(--cedrus-dark);
  outline: none;
  background: var(--cedrus-white);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.formulario input:focus,
.formulario textarea:focus,
.formulario select:focus {
  border-color: var(--cedrus-green);
  box-shadow: 0 0 0 4px rgba(126, 217, 87, .18);
  transform: translateY(-1px);
}

.formulario input::placeholder,
.formulario textarea::placeholder {
  color: #82908a;
}

.formulario textarea {
  height: 180px;
  resize: none;
}

.alert {
  border-radius: var(--radius);
  border: 0;
  box-shadow: 0 14px 30px rgba(7, 27, 23, .10);
}

/* ============ FOOTER / WHATSAPP ============ */

footer {
  background:
    linear-gradient(135deg, rgba(126, 217, 87, .08), rgba(200, 154, 82, .06)),
    var(--cedrus-ink);
  color: var(--cedrus-white);
  padding: 80px 0 22px;
}

.logo-footer {
  width: 180px;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .3));
}

footer h4 {
  margin-bottom: 20px;
  color: var(--cedrus-green);
  font-weight: 800;
}

footer p {
  color: rgba(255, 255, 255, .76);
  margin-bottom: 10px;
}

footer a {
  color: var(--cedrus-green);
  font-weight: 700;
}

footer a:hover,
footer a:focus {
  color: var(--cedrus-white);
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--cedrus-green);
  font-size: 20px;
  transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 217, 87, .46);
  background: rgba(126, 217, 87, .16);
  color: var(--cedrus-white);
}

footer hr {
  border-color: rgba(255, 255, 255, .18);
  margin: 45px 0 20px;
}

.copy {
  margin: 0;
  text-align: center;
  color: rgba(255, 255, 255, .62);
}

.copy a {
  color: rgba(255, 255, 255, .82);
}

.whatsapp {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 64px;
  height: 64px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 36px;
  color: var(--cedrus-white);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .28);
  z-index: 9999;
  transition: transform .28s ease, background .28s ease, box-shadow .28s ease;
}

.whatsapp::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, .38);
  animation: whatsappPulse 2.4s ease-in-out infinite;
}

.whatsapp:hover,
.whatsapp:focus {
  transform: translateY(-4px) scale(1.06);
  background: #1ebe5d;
  color: var(--cedrus-white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .32);
}

.whatsapp i {
  color: var(--cedrus-white);
}

/* ============ ADMIN ============ */

.admin-page {
  background: var(--cedrus-cream);
  color: var(--cedrus-dark);
}

.admin-panel {
  min-height: 100vh;
  padding: 70px 0;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.admin-header h1 {
  margin-top: 18px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
}

.admin-panel .table-responsive {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(13, 43, 37, .08);
}

.admin-panel .table {
  margin: 0;
}

.admin-panel .table th {
  background: var(--cedrus-dark);
  color: var(--cedrus-white);
  border: 0;
}

.admin-panel .table td {
  color: var(--cedrus-dark);
}

.admin-interes {
  border-radius: 999px;
}

/* ============ ANIMACIONES ============ */

.reveal-item {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity .72s ease, transform .72s ease;
  will-change: opacity, transform;
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.amenidades-lista > div:nth-child(2) .amenidad-icon-item,
.testimonios .col-lg-4:nth-child(2) .reveal-item,
.gallery-item:nth-child(2) {
  transition-delay: .08s;
}

.amenidades-lista > div:nth-child(3) .amenidad-icon-item,
.testimonios .col-lg-4:nth-child(3) .reveal-item,
.gallery-item:nth-child(3) {
  transition-delay: .16s;
}

.amenidades-lista > div:nth-child(4) .amenidad-icon-item,
.gallery-item:nth-child(4) {
  transition-delay: .24s;
}

@keyframes sube {
  0% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, 10px);
  }

  100% {
    transform: translate(-50%, 0);
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

@keyframes whatsappPulse {
  0% {
    transform: scale(.95);
    opacity: .7;
  }

  70% {
    transform: scale(1.18);
    opacity: 0;
  }

  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

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

@media (max-width: 992px) {
  .navbar {
    background: rgba(7, 27, 23, .96);
    padding: 12px 0;
  }

  .navbar-collapse {
    padding: 15px 0 8px;
  }

  .logo,
  .navbar.scrolled .logo {
    height: 55px;
  }

  .nav-link {
    margin-left: 0;
    padding: 12px 0;
  }

  .nav-link::after {
    right: auto;
    width: 54px;
    bottom: 8px;
  }

  .hero {
    min-height: 92svh;
    padding-top: 130px;
  }

  .hero p {
    font-size: 16px;
    line-height: 1.75;
  }

  .concepto,
  .amenidades,
  .modelos,
  .ubicacion,
  .contacto,
  .galeria-premium,
  .proyectos-dumont,
  .trayectoria,
  .testimonios,
  .diferenciadores {
    padding: 90px 0;
  }

  .concepto-imagen img {
    height: 390px;
  }

  .modelos .modelo-overlay {
    padding: 26px 24px 22px;
  }

  .modelos .modelo-body {
    padding: 24px 24px 26px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .large,
  .wide {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 118px 0 88px;
    overflow-x: clip;
  }

  .hero-image {
    animation: none;
    transform: none;
  }

  .hero h1 {
    letter-spacing: 4px;
    font-size: clamp(46px, 17vw, 68px);
  }

  .hero h2 {
    font-size: 30px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn-primary-custom,
  .btn-outline-custom {
    width: 100%;
    min-height: 54px;
  }

  .titulo {
    font-size: clamp(31px, 9vw, 42px);
  }

  .descripcion,
  .concepto p,
  .ubicacion p,
  .contacto p {
    font-size: 16px;
    line-height: 1.75;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }

  .stat h3 {
    font-size: 32px;
  }

  .amenidad-icon-item {
    min-height: 0;
    gap: 20px;
    padding: 26px;
  }

  .modelos {
    padding: 80px 0;
  }

  .modelos .text-center {
    margin-bottom: 34px !important;
  }

  .modelos .modelo-imagen {
    aspect-ratio: 4 / 3;
  }

  .modelos .modelo-sin-imagen {
    min-height: 250px;
  }

  .modelos .modelo-overlay {
    padding: 24px 20px 20px;
  }

  .modelos .modelo-overlay p {
    font-size: 14px;
  }

  .modelos .modelo-body {
    padding: 22px 20px 24px;
  }

  .modelos .modelo-botones {
    gap: 10px;
  }

  .modelos .modelo-botones .btn-primary-custom,
  .modelos .modelo-botones .btn-outline-custom {
    flex: 1 1 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .large,
  .wide,
  .tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .gallery-item {
    min-height: 280px;
  }

  .financiamiento-alianza {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .proyecto-card p {
    min-height: 0;
  }

  .formulario {
    padding: 24px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .diferencia {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .whatsapp {
    width: 58px;
    height: 58px;
    right: 18px;
    bottom: 18px;
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .subtitle,
  .titulo-verde {
    max-width: 100%;
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .hero h1 {
    letter-spacing: 2px;
  }
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}
