:root {
  --navy: #0b2545;
  --navy-dark: #071a33;
  --gold: #c8973a;
  --gold-light: #e0b25f;
  --green: #1fa971;
  --whatsapp: #25d366;
  --bg: #f7f8fa;
  --text: #1c2530;
  --text-light: #5b6672;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 69, 0.08);
  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(--gold);
  color: var(--navy-dark);
  box-shadow: 0 8px 20px rgba(200, 151, 58, .35);
}
.btn--primary:hover { background: var(--gold-light); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

.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,37,69,.06);
  transition: box-shadow .25s ease, padding .25s ease;
}
.header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11,37,69,.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__img { height: 52px; width: auto; }
.logo__img--footer { height: 56px; filter: brightness(0) invert(1); opacity: .92; }

.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: 72px 0 90px;
  background:
    radial-gradient(circle at 85% 15%, rgba(200,151,58,.12), transparent 45%),
    linear-gradient(180deg, #eef2f7 0%, var(--bg) 100%);
}

/* Skyline decorativo, eco del logo */
.hero__skyline {
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 14px;
  padding-right: 4%;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}
.hero__skyline span {
  display: block;
  width: 10px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  animation: skylineRise 6s ease-in-out infinite;
  transform-origin: bottom;
}
.hero__skyline span:nth-child(1) { height: 40%; animation-delay: .0s; }
.hero__skyline span:nth-child(2) { height: 70%; animation-delay: .3s; }
.hero__skyline span:nth-child(3) { height: 50%; animation-delay: .6s; }
.hero__skyline span:nth-child(4) { height: 85%; animation-delay: .9s; }
.hero__skyline span:nth-child(5) { height: 60%; animation-delay: 1.2s; }
.hero__skyline span:nth-child(6) { height: 95%; animation-delay: 1.5s; }
.hero__skyline span:nth-child(7) { height: 45%; animation-delay: 1.8s; }
.hero__skyline span:nth-child(8) { height: 65%; animation-delay: 2.1s; }

@keyframes skylineRise {
  0%, 100% { transform: scaleY(1); opacity: .7; }
  50% { transform: scaleY(1.06); opacity: 1; }
}

.hero__inner { position: relative; z-index: 1; }

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(31,169,113,.12);
  color: var(--green);
  font-weight: 600;
  font-size: .82rem;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.5rem;
  line-height: 1.18;
  color: var(--navy-dark);
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--text-light);
  margin-bottom: 30px;
  max-width: 520px;
}

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

.hero__trust {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: .88rem;
  color: var(--navy);
  font-weight: 500;
}

/* ---------- Media placeholders ---------- */
.media-placeholder {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, #e7ebf1, #e7ebf1 10px, #eef1f5 10px, #eef1f5 20px);
  border: 2px dashed #c3ccd8;
  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--tall { min-height: 420px; box-shadow: var(--shadow); }

.hero__photo,
.hero__video {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #000;
}
.media-placeholder--video { min-height: 200px; font-size: 1.4rem; }
.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-dark);
  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; }

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card__icon { font-size: 2rem; margin-bottom: 14px; }
.card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--navy-dark); }
.card p { color: var(--text-light); font-size: .92rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.step { text-align: center; }
.step__number {
  width: 52px; height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}
.step h3 { color: var(--navy-dark); margin-bottom: 8px; font-size: 1.05rem; }
.step p { color: var(--text-light); font-size: .92rem; }

/* ---------- 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);
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Video feature ---------- */
.video-feature {
  max-width: 720px;
  margin: 0 auto;
}
.video-feature .media-placeholder,
.video-feature video {
  min-height: 380px;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.testimonial video {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 14px;
  background: #000;
}
.testimonial__headline {
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 10px;
}
.testimonial__quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 16px;
}
.testimonial__name { font-weight: 600; color: var(--navy-dark); }

/* ---------- 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;
  border: none;
  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(--gold-light); margin-bottom: 6px; }

/* ---------- 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;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- 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;
}

/* Stagger cards/steps/gallery/testimonials within their grid */
.grid--4 [data-animate],
.steps [data-animate],
.gallery [data-animate],
.grid--3 [data-animate] {
  transition-delay: calc(var(--i, 0) * 90ms);
}
.grid--4 > :nth-child(1), .steps > :nth-child(1), .gallery > :nth-child(1), .grid--3 > :nth-child(1) { --i: 0; }
.grid--4 > :nth-child(2), .steps > :nth-child(2), .gallery > :nth-child(2), .grid--3 > :nth-child(2) { --i: 1; }
.grid--4 > :nth-child(3), .steps > :nth-child(3), .gallery > :nth-child(3), .grid--3 > :nth-child(3) { --i: 2; }
.grid--4 > :nth-child(4), .steps > :nth-child(4), .gallery > :nth-child(4), .grid--3 > :nth-child(4) { --i: 3; }
.gallery > :nth-child(5), .grid--3 > :nth-child(5) { --i: 4; }
.gallery > :nth-child(6), .grid--3 > :nth-child(6) { --i: 5; }

/* ---------- Hover motion ---------- */
.card, .step, .testimonial, .gallery img {
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover, .testimonial:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(11,37,69,.12);
}
.step:hover .step__number {
  transform: scale(1.1);
}
.step__number {
  transition: transform .3s ease;
}
.gallery img:hover {
  transform: scale(1.035);
  box-shadow: 0 16px 34px rgba(11,37,69,.16);
}

.whatsapp-float {
  animation: pulseRing 2.4s ease-in-out infinite;
}
@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); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner, .nosotros__grid, .contacto__grid { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: 1.9rem; }
  .grid--4, .steps, .gallery { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .header__cta span.js-whatsapp-text { display: none; }
}
