:root {
  --azul: #2C2F82;
  --turquesa: #43B4BB;
  --gris: #8E9091;
  --crema-fondo: #F4F7F8;
  --blanco: #FFFFFF;
  --radius: 16px;
  --font: 'Comfortaa', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: #1c1c2e;
  background: var(--blanco);
}

h1, h2, h3 { font-weight: 700; margin: 0; }
p { margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1510px;
  margin: 0 auto;
  padding: 0 40px;
}

.kicker {
  color: var(--turquesa);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  transition: filter .2s ease-out, background-color .2s ease-out, transform .2s cubic-bezier(.22,1,.36,1), box-shadow .2s ease-out;
}

.btn-solid { background: var(--azul); color: var(--blanco); }
.btn-solid:hover { filter: brightness(1.12); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(44, 47, 130, .25); }
.btn-outline { background: transparent; color: var(--turquesa); border-color: var(--turquesa); }
.btn-outline:hover { background: rgba(67, 180, 187, .08); }
.btn-outline-azul { background: transparent; color: var(--azul); border-color: var(--azul); }
.btn-outline-azul:hover { background: rgba(44, 47, 130, .06); }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  transition: box-shadow .25s ease;
}
.nav.is-scrolled { box-shadow: 0 6px 20px rgba(44, 47, 130, .08); }

.nav-inner {
  display: flex;
  align-items: flex-center;
  padding: 14px 40px;
  max-width: 1440px;
  margin: 0 auto;
  gap: 50px;
}

.nav-logo img { height: 72px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: space-evenly;
}

.nav-links span, .nav-links a {
  display: inline-block;
  color: var(--azul);
  font-weight: 700;
  font-size: 1.1rem;
  padding-bottom: 4px;
  border-bottom: 4px solid transparent;
  cursor: default;
}
.nav-links a { cursor: pointer; }
.nav-links span.active, .nav-links a.active { border-color: var(--turquesa); }

.nav-cta { flex-shrink: 0; margin-left: auto; }
.nav-cta .btn { padding: 12px 22px; font-size: .95rem; }

@media (max-width: 960px) {
  .nav-links { display: none; }
}

/* ---------- HERO (sección 1) ---------- */
.hero {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 70px 0 90px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 350px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.325rem, 3.6vw, 3.225rem);
  line-height: 1.15;
  color: var(--azul);
  margin: 18px 0 24px;
}

.hero-text .kicker { display: block; margin-bottom: 4px; }

.hero-text p {
  color: var(--gris);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 34px;
}

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

/* Collage de 6 contenedores independientes (no simétrico), cada uno es
   un slot fijo en posición/tamaño donde luego se puede poner cualquier
   foto o texto desde el admin. Posiciones tomadas del diseño original. */
.hero-photos {
  position: relative;
  width: 100%;
  aspect-ratio: 950 / 930;
  transform: scale(1.2);
  transform-origin: right center;
}

.hero-slot {
  position: absolute;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
  background: var(--blanco);
}

.hero-slot img { width: 100%; height: 100%; object-fit: cover; }

.slot-1 { left: -2.72%; top: 3.8%; width: 80.16%; height: 86.71%; z-index: 1; }
.slot-2 { left: 71.6%;  top: 5.9%;  width: 31.6%; height: 36.6%; z-index: 2; }
.slot-3 { left: 69.16%; top: 48.6%; width: 34.85%; height: 43.3%; z-index: 2; }
.slot-4 { left: 24.805%; top: 63.4%; width: 40.7%; height: 31.2%; z-index: 2; }

/* marco blanco de prueba en 2, 3 y 4 para ver el efecto antes de ajustar tamaños */
.slot-2, .slot-3, .slot-4 { border: 5px solid var(--blanco); }

.hero-badge {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  padding: 14px 18px;
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
}

.badge-location {
  left: 56.01%;
  top: 6.98%;
  width: 14.22%;
  min-width: 117px;
  height: 24.06%;
  border-radius: 50% 50% 12px 12px / 45% 45% 12px 12px;
  background: rgba(67, 180, 187, .8);
  color: var(--blanco);
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 6px;
  text-align: center;
}
.badge-location span { margin-top: 0; }

.badge-calidad {
  left: -2%;
  bottom: 3.8%;
  width: 190px;
  background: var(--blanco);
  color: var(--azul);
}
.badge-calidad span { line-height: 1.35; }

.hero-badge img { width: 30px; height: 30px; flex-shrink: 0; }
.hero-badge span { font-size: .85rem; font-weight: 700; line-height: 1.25; }
.badge-location img { width: auto; height: 49.14px; }
.badge-calidad img { width: auto; height: 36px; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photos { margin-top: 40px; }
}

/* ---------- SECCIÓN 2 ---------- */
.home2 {
  position: relative;
  margin-top: 3rem;
  background-color: var(--crema-fondo);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 0 0 90px;
  overflow: hidden;
}

.stats-bar {
  position: relative;
  z-index: 2;
  width: 72.25%;
  margin: -1px auto 0;
  background: var(--blanco);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
  padding: 30px 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 20px;
  flex-wrap: wrap;
}

.stat { display: flex; align-items: center; gap: 16px; }
.stat-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: none;
  border: 1.5px solid #C7C9CC;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-icon img { width: auto; height: auto; max-width: 46.8px; max-height: 46.8px; object-fit: contain; }
.stat strong { display: block; font-size: 1.8rem; color: var(--azul); font-variant-numeric: tabular-nums; }
.stat span { color: var(--gris); font-size: .95rem; }
.stat-divider { width: 4px; height: 78.2px; background: var(--turquesa); }

.home2-head {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: end;
  margin: 70px 0 50px;
}
.home2-head .kicker { font-size: 1.075rem; }
.home2-head h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); color: var(--azul); margin-top: 6px; }
.home2-head p { color: var(--azul); line-height: 1.6; }

.vision-cards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 44px;
}

.vision-card {
  background: var(--blanco);
  border-radius: 0 40px 40px 0;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
  display: flex;
  flex-direction: row;
}
.vision-card img { width: 50%; height: 100%; object-fit: cover; }
.vision-card .vc-body {
  width: 50%;
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.vision-card h3 { font-size: 1.15rem; color: var(--azul); }
.vision-card hr {
  width: 50%;
  border: none;
  border-top: 3px solid var(--turquesa);
  margin: 10px 0 14px;
}
.vision-card p { color: #000; font-size: .92rem; line-height: 1.5; }

.home2-cta { position: relative; z-index: 2; text-align: center; }
.home2-cta .btn { padding-top: 17.5px; padding-bottom: 17.5px; }

@media (max-width: 900px) {
  .home2-head { grid-template-columns: 1fr; }
  .vision-cards { grid-template-columns: 1fr; }
  .home2-sketch { width: 80%; }
}

/* ---------- SECCIÓN 3 ---------- */
.home3 {
  background-size: cover;
  background-position: top center;
  background-color: var(--crema-fondo);
  padding: 80px 0 0;
}

.home3-head {
  max-width: 720px;
  margin-left: auto;
  margin-right: 72px;
  padding-left: 40px;
}
.home3-head .kicker { font-size: 1.075rem; }
.home3-head h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--azul);
  line-height: 1.35;
  margin-top: 10px;
}

.home3-banner {
  width: 85%;
  background: var(--azul);
  border-radius: 20px;
  margin: 106px auto 0;
  padding: 34px 44px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  color: var(--blanco);
  transform: translateY(40%);
  opacity: .9;
}

.banner-item { display: flex; align-items: center; gap: 18px; flex: 1; min-width: 260px; }
.banner-item h4 { font-size: 1.2125rem; margin-bottom: 4px; }
.banner-item p { color: #d9daf2; font-size: .9825rem; line-height: 1.5; }
.banner-divider { width: 4px; height: 88.4px; align-self: center; background: var(--blanco); opacity: .5; }

.banner-item:last-child img { width: 92px; height: 92px; flex-shrink: 0; }

.banner-icon-circle {
  flex-shrink: 0;
  width: 93.6px;
  height: 93.6px;
  border-radius: 50%;
  background: var(--azul);
  border: 2px solid var(--turquesa);
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-icon-circle img { width: auto; height: 46.37px; }

.home3-spacer { height: 180px; }

@media (max-width: 900px) {
  .home3-head { margin: 0; padding: 0 20px; }
  .home3-banner { transform: none; margin: 40px 20px 0; }
  .home3-spacer { height: 40px; }
}

/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--azul);
  color: rgba(255, 255, 255, .55);
  padding: 34.82px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 26.11px;
}

.footer-brand { max-width: 32ch; text-align: center; }

.footer-logo {
  height: 88px;
  width: auto;
  margin: 0 auto 16px;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-brand p { font-size: 1.15rem; line-height: 1.6; max-width: 32ch; }

.footer-col h5 {
  color: rgba(255, 255, 255, .4);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col li, .footer-col a { font-size: .9rem; color: rgba(255, 255, 255, .65); }
.footer-col a:hover { color: var(--turquesa); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 13.06px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .8rem; color: rgba(255, 255, 255, .4); }

.footer-social { display: flex; gap: 16px; }
.footer-social span, .footer-social a { display: flex; color: rgba(255, 255, 255, .45); }
.footer-social a:hover { color: var(--turquesa); }
.footer-social svg { width: 22.5px; height: 22.5px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- LOGROS ---------- */
.logros-hero {
  background-color: var(--crema-fondo);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 70px 0 90px;
}

.logros-hero h1 {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  color: var(--azul);
  text-align: center;
  max-width: 1800px;
  margin: 0 auto 20px;
}

.logros-hero > .container > p {
  color: var(--gris);
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 1.05rem;
}

.logros-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.logros-stat-card, .logros-badge-card {
  background: var(--blanco);
  border-radius: 20px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 16px 36px rgba(44, 47, 130, .08);
}

.logros-stat-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logros-stat-icon img { width: auto; height: 34px; }
.logros-stats .logros-stat-card:nth-child(1) .logros-stat-icon img { height: 40.8px; }

.logros-stat-card strong { display: block; font-size: 2.1rem; color: var(--azul); font-variant-numeric: tabular-nums; }
.logros-stat-card span { color: #333; font-size: 1rem; }

.logros-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.logros-badge-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--crema-fondo);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.logros-badge-icon img { width: 70%; height: 70%; object-fit: contain; }
.logros-badges .logros-badge-card:nth-child(1) .logros-badge-icon img { width: 78.2px; height: 78.2px; }

.logros-badge-card h3 { font-size: 1.05rem; color: var(--azul); line-height: 1.3; margin-bottom: 6px; }
.logros-badge-card p { color: var(--gris); font-size: .88rem; line-height: 1.4; }

.logros-banner {
  background: #E9EEFB;
  border-radius: 20px;
  width: 75%;
  margin: 50px auto 0;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logros-banner-icon { height: 93.6px; width: auto; flex-shrink: 0; }
.logros-banner-divider { width: 2px; align-self: stretch; background: var(--gris); opacity: .4; flex-shrink: 0; }
.logros-banner p { flex: 1; color: var(--azul); font-size: 1.02rem; line-height: 1.55; }

@media (max-width: 900px) {
  .logros-stats, .logros-badges { grid-template-columns: 1fr; }
  .logros-banner { flex-direction: column; text-align: center; width: 92%; }
  .logros-banner-divider { display: none; }
}

/* ---------- NUESTRO PROPÓSITO ---------- */
.proposito-hero {
  background-color: var(--crema-fondo);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 70px 0 90px;
}

.proposito-kicker { display: block; position: relative; padding-top: 18px; }
.proposito-kicker::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px;
  height: 3px;
  background: var(--turquesa);
}

.proposito-hero h1 {
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  color: var(--azul);
  line-height: 1.25;
  max-width: 900px;
  margin: 14px 0 26px;
}

.proposito-parrafos { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 60px; }
.proposito-parrafos p { color: var(--azul); line-height: 1.6; font-size: 1rem; }

.proposito-divisor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}
.proposito-divisor::before, .proposito-divisor::after {
  content: '';
  flex: none;
  width: 100px;
  height: 3px;
  background: var(--turquesa);
  opacity: .6;
}
.proposito-divisor span {
  color: var(--turquesa);
  font-weight: 700;
  font-size: .8825rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.proposito-cards {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0 14px;
}

.proposito-card {
  background: var(--blanco);
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid var(--blanco);
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proposito-card-photo { position: relative; aspect-ratio: 800/340; }
.proposito-card-photo img { width: 100%; height: 100%; object-fit: cover; }

.proposito-card-tag {
  position: absolute;
  top: 16px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(67, 180, 187, .85);
  color: var(--blanco);
  padding: 10px 17.5px;
  border-radius: 0 10px 10px 0;
  width: 168px;
}
.proposito-card-tag img { width: 25px; height: 25px; flex-shrink: 0; }
.proposito-card-tag span { font-size: .5575rem; font-weight: 700; line-height: 1.25; text-transform: uppercase; letter-spacing: 0; }

.proposito-card-body { padding: 24px 22px 26px; }

.proposito-card-cols {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.proposito-card-content { flex: 1; min-width: 0; }
.proposito-card-heading { margin-bottom: 0; }

.proposito-card-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #C7C9CC;
  flex-shrink: 0;
}
.proposito-card-circle img { width: 22px; height: 22px; }

.proposito-card-numero {
  display: block;
  color: var(--turquesa);
  font-weight: 700;
  font-size: .8rem;
  margin-bottom: 4px;
}
.proposito-card-body h3 { color: var(--azul); font-size: 1.2rem; line-height: 1.35; }

.proposito-card-body hr {
  width: 40px;
  border: none;
  border-top: 3px solid var(--turquesa);
  margin: 16px 0 14px;
}
.proposito-card-content > p { color: var(--azul); font-size: .755rem; line-height: 1.55; }

.proposito-card-arrow {
  align-self: start;
  margin-top: 90px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--turquesa);
  color: var(--turquesa);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.proposito-cierre {
  text-align: center;
  width: 80%;
  margin: 56px auto 0;
  padding: 40px 30px;
  background: rgba(255, 255, 255, .5);
  border: 1px solid var(--turquesa);
  border-radius: 20px;
  box-shadow: 0 24px 48px rgba(20, 20, 40, .28);
  position: relative;
}
.proposito-cierre p { color: var(--azul); font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; }
.proposito-cierre span { display: block; margin-top: 10px; color: var(--turquesa); font-size: .9rem; font-weight: 700; }

@media (max-width: 900px) {
  .proposito-cards { grid-template-columns: 1fr; }
  .proposito-card-arrow { display: none; }
}

/* ---------- MOTION ---------- */

/* Reveal on scroll: JS adds .reveal + .is-visible. If JS never runs, content stays visible (no class = no hiding). */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero entrance: plays on load, above the fold, no scroll trigger needed */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
.hero-slot { opacity: 0; animation: rise-in 1.2s cubic-bezier(.22,1,.36,1) forwards; }
.hero-badge { opacity: 0; animation: fade-in .5s ease-out forwards; }
.hero-slot.slot-1 { animation-delay: .1s; }
.hero-slot.slot-2 { animation-delay: .25s; }
.hero-slot.slot-3 { animation-delay: .4s; }
.hero-slot.slot-4 { animation-delay: .55s; }
.hero-badge.badge-location, .hero-badge.badge-calidad { animation-delay: .75s; }

/* Proposito cards: arrow nudges toward the card that just got hovered */
.proposito-card-arrow { transition: transform .25s cubic-bezier(.22,1,.36,1); }
.proposito-card:hover + .proposito-card-arrow { transform: translateX(4px); }

/* ---------- PROYECTOS ---------- */
.proyectos-hero {
  padding: 60px 0 40px;
  background-color: #FCFAF8;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
}
.proyectos-hero h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--azul); margin: 0 0 14px; }
.proyectos-hero > .container > p { color: #111; font-size: 1.05rem; line-height: 1.6; max-width: 960px; }

.proyectos-main { padding-bottom: 100px; margin-top: 40px; }

.proyectos-grid {
  display: grid;
  grid-template-columns: 409px minmax(0, 0fr) minmax(0, 1fr);
  gap: 0 28px;
  align-items: start;
  transition: grid-template-columns .6s cubic-bezier(.22,1,.36,1);
}
.proyectos-grid.has-selection { grid-template-columns: 409px minmax(0, 1.8fr) minmax(0, 1fr); }

/* -- lista -- */
.proyectos-lista { display: flex; flex-direction: column; gap: 10px; align-self: center; }
.proyecto-card-wrap { position: relative; }
.proyecto-card-accent {
  position: absolute;
  left: -8px; top: 50%;
  transform: translateY(-50%) scaleY(.7);
  width: 40px; height: calc(100%);
  background: var(--proyecto-color);
  border-radius: 500px;
  opacity: 0;
  transition: opacity .25s ease-out, transform .3s cubic-bezier(.22,1,.36,1);
}
.proyecto-card-wrap:has(.proyecto-card.active) .proyecto-card-accent { opacity: 1; transform: translateY(-50%) scaleY(1); }
.proyecto-card {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  background: var(--blanco);
  border: 1.5px solid var(--turquesa);
  border-radius: var(--radius);
  padding: 10px 34px 10px 10px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .25s ease-out, box-shadow .25s ease-out, transform .25s cubic-bezier(.22,1,.36,1);
}
.proyecto-card:hover { border-color: var(--proyecto-color); transform: translateY(0px); }
.proyecto-card.active { border-color: var(--proyecto-color); box-shadow: 0 4px 10px -2px color-mix(in srgb, var(--proyecto-color) 55%, transparent), 0 16px 36px -8px color-mix(in srgb, var(--proyecto-color) 70%, transparent); }
.proyecto-card-chevron, .proyecto-card-pill { z-index: 1; }
.proyecto-card-foto { width: 120px; height: 100px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.proyecto-card-body { flex: 1; min-width: 0; }
.proyecto-card-body h3 { font-size: .9rem; color: var(--azul); margin: 0 0 4px; }
.proyecto-card-ubicacion { display: flex; align-items: flex-start; gap: 5px; color: #111; font-size: .8rem; line-height: 1.3; margin: 0; }
.proyecto-card-ubicacion svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; color: var(--proyecto-color-2); }
.proyecto-card-pill {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-block; padding: 3px 12px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.proyecto-estado-en_venta { background: var(--turquesa); color: #fff; }
.proyecto-estado-vendido { background: var(--gris); color: #fff; }
.proyecto-estado-proximamente { background: var(--azul); color: #fff; }
.proyecto-card-chevron { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #cbd5e1; flex-shrink: 0; transition: transform .25s cubic-bezier(.22,1,.36,1), color .25s ease-out; }
.proyecto-card.active .proyecto-card-chevron { color: var(--proyecto-color); transform: translateY(-50%) translateX(3px); }

/* -- detalle -- */
.proyecto-detalle { position: relative; }
.proyecto-detalle-panel {
  display: none;
  background: var(--blanco);
  border: 1px solid rgba(20,20,40,.06);
  border-radius: 22px;
  box-shadow: 0 2px 6px rgba(20,20,40,.08), 0 14px 28px rgba(20,20,40,.14), 0 40px 80px -20px rgba(20,20,40,.4);
  padding: 20px 24px 28px;
}
.proyecto-detalle-panel.active { display: block; }
.proyecto-detalle-panel.active .proyecto-detalle-foto {
  animation: detalle-foto-in 1.5s cubic-bezier(.22,1,.36,1);
}
@keyframes detalle-foto-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
.proyecto-detalle-foto { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; margin-bottom: 14px; }
.proyecto-detalle-ubicacion { display: flex; align-items: flex-start; gap: 6px; color: #111; font-size: .85rem; margin: 0 0 14px; }
.proyecto-detalle-ubicacion svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--proyecto-color-2); }
.proyecto-detalle-logo { max-height: 54px; max-width: 200px; object-fit: contain; margin-bottom: 12px; }
.proyecto-detalle-descripcion { color: #111; font-size: .92rem; line-height: 1.55; margin: 0 0 18px; }

.proyecto-pills { display: flex; flex-direction: row; gap: 10px; margin-bottom: 18px; }
.proyecto-pill {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
  background: var(--proyecto-color); border-radius: 14px; padding: 12px 14px;
  text-align: center;
}
.proyecto-pill-icono { width: 22px; height: 22px; flex-shrink: 0; filter: brightness(0) invert(1); object-fit: contain; }
.proyecto-pill-texto { display: flex; flex-direction: column; gap: 1px; min-width: 0; width: 100%; }
.pill-linea1, .pill-linea3 { color: rgba(255,255,255,.8); font-size: .68rem; line-height: 1.25; }
.pill-linea2 { color: #fff; font-size: .89rem; font-weight: 700; line-height: 1.25; }

.proyecto-precio-avance { background: var(--crema-fondo); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.proyecto-precio-label { display: block; color: #111; font-size: .78rem; }
.proyecto-precio-valor { display: block; color: var(--proyecto-color-2); font-size: 1.6rem; font-weight: 700; margin-bottom: 12px; }
.proyecto-avance-label { display: block; color: #111; font-size: .78rem; margin-bottom: 6px; }
.proyecto-avance-row { display: flex; align-items: center; gap: 12px; }
.proyecto-avance-track { flex: 1; height: 8px; border-radius: 4px; background: rgba(142,144,145,.2); overflow: hidden; }
.proyecto-avance-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--proyecto-color-2) 100%, black 30%), color-mix(in srgb, var(--proyecto-color-2) 100%, white 35%));
  transition: width 2s cubic-bezier(.22,1,.36,1);
}
.proyecto-avance-pct { font-size: .85rem; font-weight: 700; color: var(--proyecto-color-2); white-space: nowrap; }

.proyecto-btn-sitio { background: var(--proyecto-color); color: #fff; width: 100%; justify-content: center; }
.proyecto-btn-sitio-disabled { opacity: .45; cursor: not-allowed; }
.proyecto-btn-sitio-disabled:hover { filter: none; transform: none; }
.proyecto-btn-sitio svg { width: 16px; height: 16px; }

/* -- mapa -- */
.proyectos-mapa { position: sticky; top: 100px; align-self: center; }
.mapa-wrap {
  position: relative; width: 100%; aspect-ratio: 1000 / 1000;
  max-width: 100%; margin: 0 auto;
  transition: max-width .6s cubic-bezier(.22,1,.36,1);
}
.proyectos-grid:not(.has-selection) .mapa-wrap { max-width: 75%; }
.mapa-base { width: 100%; height: 100%; object-fit: contain; display: block; filter: drop-shadow(0 22px 34px rgba(20,30,80,.28)) drop-shadow(0 4px 10px rgba(20,30,80,.15)); }
.mapa-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  width: 40px; height: 52px;
  background: none; border: none; padding: 0; cursor: pointer;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease-out;
  z-index: 2;
}
.mapa-pin:hover { transform: translate(-50%, -100%) scale(1.12); }
.mapa-pin.active { transform: translate(-50%, -100%) scale(1.75); z-index: 5; }
.proyectos-grid.has-selection .mapa-pin:not(.active) { transform: translate(-50%, -100%) scale(.5); }
.mapa-pin-circle {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 3px solid var(--proyecto-color);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(20,20,40,.2);
}
.mapa-pin-circle img { width: 24px; height: 24px; object-fit: contain; }
.mapa-pin-punta {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--proyecto-color);
}

@media (max-width: 1100px) {
  .proyectos-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .proyecto-detalle { order: 3; }
  .proyectos-mapa { order: 2; position: static; }
  .mapa-wrap { max-width: 480px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slot, .hero-badge { animation: none !important; opacity: 1 !important; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
  .btn, .btn-solid:hover, .proposito-card-arrow { transition: none !important; }
  .btn-solid:hover { transform: none !important; }
  .proyectos-grid, .proyecto-detalle-panel, .proyecto-card, .proyecto-card-accent, .mapa-pin, .proyecto-card-chevron, .proyecto-avance-fill, .mapa-wrap {
    transition: none !important; transform: none !important;
  }
  .proyecto-detalle-panel.active .proyecto-detalle-foto { animation: none !important; }
}
