:root {
  --navy: #0b2e4f;
  --navy-dark: #071c33;
  --blue: #2e7fc1;
  --blue-light: #6fb4e8;
  --pearl: #eaf3fa;
  --green: #1fa971;
  --whatsapp: #25d366;
  --bg: #f5f9fc;
  --text: #16232f;
  --text-light: #56697c;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 46, 79, 0.10);
  font-size: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

h1, h2, h3, .logo__text { font-family: 'Poppins', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(46,127,193,.35);
}
.btn--primary:hover { background: var(--blue-light); }

.btn--ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover { background: rgba(255,255,255,.22); }

.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: #1ebd5a; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(11,46,79,.06);
  transition: box-shadow .25s ease;
}
.header.is-scrolled { box-shadow: 0 8px 24px rgba(11,46,79,.10); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo__mark {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.logo__text { font-weight: 500; font-size: 1.15rem; color: var(--navy); }
.logo__text strong { color: var(--blue); }
.logo__img { height: 52px; width: auto; border-radius: 8px; }
.logo__img--footer { height: 56px; border-radius: 8px; }

.nav { display: flex; gap: 28px; font-weight: 500; font-size: .95rem; color: var(--text-light); }
.nav a:hover { color: var(--navy); }

.header__cta { padding: 11px 20px; font-size: .9rem; white-space: nowrap; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 260px;
  background:
    radial-gradient(ellipse 900px 600px at 88% 8%, rgba(111,180,232,.35), transparent 60%),
    radial-gradient(ellipse 700px 500px at 8% 95%, rgba(200,224,245,.14), transparent 55%),
    linear-gradient(155deg, #071c33 0%, #0d3a63 38%, #1a6199 70%, #2e7fc1 100%);
  color: var(--white);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }

.hero__clouds {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.10), transparent 40%),
    radial-gradient(circle at 80% 10%, rgba(255,255,255,.08), transparent 35%),
    radial-gradient(circle at 60% 35%, rgba(255,255,255,.06), transparent 45%);
  animation: driftClouds 22s ease-in-out infinite alternate;
}
@keyframes driftClouds {
  from { transform: translateX(0); }
  to { transform: translateX(3%); }
}

.hero__glow {
  position: absolute;
  top: -10%; right: -8%;
  width: 640px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150,205,245,.32) 0%, rgba(150,205,245,0) 70%);
  animation: glowPulse 7s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: .7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.hero__waves {
  position: absolute;
  left: 0; right: 0; bottom: 40px;
  width: 100%; height: 180px;
}
.hero__waves--1 { fill: rgba(111,180,232,.18); animation: waveDrift 16s ease-in-out infinite alternate; }
.hero__waves--2 { fill: rgba(111,180,232,.10); bottom: 20px; animation: waveDrift 12s ease-in-out infinite alternate-reverse; }
@keyframes waveDrift {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}

.hero__skyline {
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  width: 100%; height: 220px;
  fill: rgba(6, 26, 46, .55);
}

.hero__houses {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 90px;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  padding: 0 6%;
}
.hero__houses .house {
  width: 46px; height: 46px;
  fill: rgba(255,255,255,.9);
  animation: bobHouse 5s ease-in-out infinite;
}
.house--1 { animation-delay: 0s; }
.house--2 { width: 60px; height: 60px; fill: rgba(255,255,255,.75); animation-delay: .6s; }
.house--3 { width: 38px; height: 38px; fill: rgba(255,255,255,.65); animation-delay: 1.1s; }
@keyframes bobHouse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.hero__content { max-width: 640px; }

/* ---------- Hero visual: logo showcase ---------- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
}

.hero__logo-card {
  position: relative;
  z-index: 2;
  width: 300px; height: 278px;
  border-radius: 34px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.25);
  box-shadow: 0 20px 60px rgba(5,20,40,.45), 0 0 80px rgba(111,180,232,.35);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: floatCard 6s ease-in-out infinite;
}
.hero__logo-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 18px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
}
.hero__ring--1 { width: 360px; height: 360px; animation: spinSlow 26s linear infinite; }
.hero__ring--2 { width: 430px; height: 430px; border-style: dashed; border-color: rgba(255,255,255,.14); animation: spinSlow 40s linear infinite reverse; }
@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero__pearl {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #c9dcf0 55%, #6fb4e8 100%);
  box-shadow: 0 0 24px rgba(180,220,255,.7);
}
.hero__pearl--1 { width: 22px; height: 22px; top: 8%; right: 10%; animation: pearlFloat 5s ease-in-out infinite; }
.hero__pearl--2 { width: 14px; height: 14px; bottom: 12%; left: 6%; animation: pearlFloat 6.5s ease-in-out infinite reverse; }
@keyframes pearlFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

.badge {
  display: inline-block;
  background: rgba(255,255,255,.16);
  color: var(--white);
  font-weight: 600;
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  backdrop-filter: blur(4px);
}

.hero h1 {
  font-size: 2.7rem;
  line-height: 1.18;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.08rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 32px;
  max-width: 520px;
}

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

/* ---------- Media placeholders ---------- */
.media-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #dfeaf3, #dfeaf3 10px, #eaf2f8 10px, #eaf2f8 20px);
  border: 2px dashed #b9cfe0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  font-size: .9rem;
  font-weight: 500;
  padding: 20px;
}
.media-placeholder--avatar {
  width: 64px; height: 64px; min-height: 0;
  border-radius: 50%; margin: 0 auto 14px;
  font-size: .7rem;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--white); }
.section--dark { background: var(--navy-dark); color: var(--white); }

.section__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 14px;
}
.section__title--left { text-align: left; }
.section__title--onDark { color: var(--white); }

.section__subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto 50px;
}
.onDark { color: rgba(255,255,255,.75); margin-bottom: 34px; }

/* ---------- Nosotros ---------- */
.nosotros__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.checklist li { color: var(--text-light); font-size: .95rem; }
.checklist span { color: var(--navy); font-weight: 600; }
.map-embed { width: 100%; height: 340px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards (servicios) ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(11,46,79,.16); }
.card__icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy); }
.card p { color: var(--text-light); font-size: .92rem; }

/* ---------- Catálogo de propiedades ---------- */
.property {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .3s ease, box-shadow .3s ease;
}
.property:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(11,46,79,.16); }
.property__photo { border-radius: 0; min-height: 200px; }
.property img.property__photo { width: 100%; height: 200px; object-fit: cover; }
.property__body { padding: 20px; }
.property__price { color: var(--blue); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.property__title { font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.property__location { color: var(--blue); font-size: .85rem; margin-bottom: 8px; }
.property__meta { color: var(--text-light); font-size: .88rem; }
.catalog__note { text-align: center; color: var(--text-light); font-size: .88rem; margin-top: 30px; font-style: italic; }

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(11,46,79,.16); }
.testimonial video { width: 100%; border-radius: 10px; margin-bottom: 14px; background: #000; }
.testimonial__avatar {
  width: 150px; height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin: 0 auto 20px;
  border: 4px solid var(--pearl);
  box-shadow: 0 12px 28px rgba(11,46,79,.22);
}
.testimonial__quote { font-style: italic; color: var(--text-light); margin-bottom: 16px; }
.testimonial__name { font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contacto__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-size: .95rem;
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.18);
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.5); }
.form button { align-self: flex-start; margin-top: 6px; }

.contacto__info { display: flex; flex-direction: column; gap: 18px; }
.info-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.info-card h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--blue-light); margin-bottom: 6px; }

.social-links { display: flex; gap: 14px; margin-top: 8px; }
.social-links a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: background .2s ease, transform .2s ease;
}
.social-links a:hover { background: var(--blue); transform: translateY(-3px); }
.social-links--footer a { background: rgba(255,255,255,.06); width: 34px; height: 34px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-dark); color: rgba(255,255,255,.6); padding: 32px 0; border-top: 1px solid rgba(255,255,255,.08); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: .85rem; }
.logo--footer .logo__text { color: var(--white); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(37,211,102,.45);
  z-index: 200;
  transition: transform .15s ease;
  animation: pulseRing 2.4s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulseRing {
  0%, 100% { box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  50% { box-shadow: 0 10px 24px rgba(37,211,102,.45), 0 0 0 10px rgba(37,211,102,0); }
}

/* ---------- Entrance & scroll animations ---------- */
@keyframes fadeUpIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-in { opacity: 0; animation: fadeUpIn .7s ease forwards; animation-delay: var(--d, 0s); }

[data-animate] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-animate="left"] { transform: translateX(-28px); }
[data-animate="right"] { transform: translateX(28px); }
[data-animate].in-view { opacity: 1; transform: none; }

.grid--3 > :nth-child(1) { --i: 0; }
.grid--3 > :nth-child(2) { --i: 1; }
.grid--3 > :nth-child(3) { --i: 2; }
.grid--3 [data-animate] { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .nosotros__grid, .contacto__grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 100px 0 200px; }
  .hero__visual { min-height: 280px; margin-top: 20px; }
  .hero__logo-card { width: 200px; height: 186px; border-radius: 26px; }
  .hero__ring--1 { width: 240px; height: 240px; }
  .hero__ring--2 { width: 290px; height: 290px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 2rem; }
  .form__row { grid-template-columns: 1fr; }
  .header__cta span { display: none; }
}
