/* =========================================================
   Grupo 89 Publicidad — Hoja de estilos principal
   ========================================================= */

/* ---------- Variables (colores de marca) ---------- */
:root {
  --blue: #1E72B8;
  --sky: #189CD8;
  --cyan: #10B0E6;
  --brand-gray: #CEC2C3;
  --navy: #0B2545;
  --navy-dark: #071A33;
  --navy-deep: #05132A;
  --text: #1B2A41;
  --muted: #66758A;
  --line: #E3E9F0;
  --light: #F2F5F9;
  --white: #FFFFFF;
  --whatsapp: #25D366;

  --grad: linear-gradient(135deg, var(--blue), var(--sky));
  --grad-cyan: linear-gradient(135deg, var(--cyan), var(--sky));

  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --shadow: 0 20px 50px -20px rgba(11, 37, 69, .35);
  --shadow-sm: 0 8px 24px -12px rgba(11, 37, 69, .3);
  --header-h: 72px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 18px; border-radius: 6px;
  background: var(--white); color: var(--navy); font-weight: 600;
}
.skip-link:focus { top: 16px; }

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

.section { padding: 110px 0; position: relative; }
.section--light { background: var(--light); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--sky);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--navy);
  text-align: center;
}
.section-title--left { text-align: left; margin-bottom: 18px; }

.section-head { max-width: 620px; margin: 0 auto 36px; text-align: center; }
.section-head .section-title { margin-bottom: 12px; }
.section-head p:last-child { color: var(--muted); margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 30px;
  border-radius: 50px; border: 2px solid transparent;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn__icon { width: 18px; height: 18px; }
.btn--white { background: var(--white); color: var(--blue); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn--white:hover { box-shadow: 0 14px 34px -10px rgba(16, 176, 230, .7); }
.btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--navy); }
.btn--primary { background: var(--grad); color: var(--white); box-shadow: 0 10px 24px -12px rgba(30, 114, 184, .9); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 10px 24px -12px rgba(37, 211, 102, .9); }
.btn--sm { min-height: 42px; padding: 8px 22px; font-size: 12px; }

.round-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad); color: var(--white);
  box-shadow: 0 8px 18px -8px rgba(30, 114, 184, .9);
  transition: transform .3s var(--ease), background-color .3s;
}
.round-btn svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.round-btn:hover { transform: scale(1.08); }
.round-btn--light { background: var(--white); color: var(--blue); }

/* ---------- Marca / logo ---------- */
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { width: 173px; height: 52px; max-width: none; flex-shrink: 0; transition: width .35s, height .35s; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  color: var(--white);
  transition: background-color .35s, box-shadow .35s;
}

.header__inner {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 32px;
  padding-top: 18px;
  transition: padding .35s;
}

.header__info { display: flex; gap: 34px; margin-left: auto; }
.header__contact { display: flex; align-items: center; gap: 12px; line-height: 1.3; }
.header__contact-icon {
  width: 38px; height: 38px; padding: 9px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
  transition: background-color .25s, border-color .25s;
}
.header__contact:hover .header__contact-icon { background: var(--sky); border-color: var(--sky); }
.header__contact strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.header__contact small { font-size: 11px; opacity: .65; }

.nav { flex-basis: 100%; margin-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.nav__list { display: flex; justify-content: space-between; }
.nav__link {
  position: relative; display: block;
  padding: 14px 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  line-height: 1.3;
  transition: color .25s;
}
.nav__link small {
  display: block;
  font-size: 11px; font-weight: 400; letter-spacing: 0; text-transform: none;
  opacity: .6;
}
.nav__link::before {
  content: ""; position: absolute; left: 0; top: -1px;
  width: 100%; height: 3px; border-radius: 0 0 3px 3px;
  background: var(--cyan);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__link:hover::before, .nav__link.is-active::before { transform: scaleX(1); }
.nav__link:hover, .nav__link.is-active { color: #CDEFFC; }
.nav__cta { display: none; }

/* Header al hacer scroll: una sola fila compacta */
.header.is-scrolled { background: var(--navy); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .45); }
.header.is-scrolled .header__inner { padding-top: 0; }
.header.is-scrolled .header__info { display: none; }
.header.is-scrolled .brand { padding: 12px 0; }
.header.is-scrolled .brand__logo { width: 147px; height: 44px; }
.header.is-scrolled .nav { flex-basis: auto; margin: 0 0 0 auto; border: 0; }
.header.is-scrolled .nav__list { gap: 34px; }
.header.is-scrolled .nav__link { padding: 24px 0; }
.header.is-scrolled .nav__link small { display: none; }

.nav-toggle {
  display: none; position: relative; z-index: 2;
  width: 44px; height: 44px; margin-left: auto;
  border-radius: 8px;
}
.nav-toggle span {
  position: absolute; left: 11px; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-backdrop {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(3, 10, 25, .6);
  opacity: 0; transition: opacity .3s;
}
.nav-backdrop.is-visible { opacity: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  min-height: max(640px, 92vh);
  display: flex; align-items: center;
  padding: 170px 0 150px;
  color: var(--white); text-align: center;
  background: var(--navy-dark);
}
.hero__bg {
  position: absolute; inset: -40px 0 -40px;
  background:
    linear-gradient(180deg, rgba(7, 26, 51, .75) 0%, rgba(11, 37, 69, .35) 45%, rgba(7, 26, 51, .85) 100%),
    url("../img/hero.svg") center / cover no-repeat;
  will-change: transform;
}
.hero__content { position: relative; }
.hero__eyebrow {
  margin-bottom: 8px;
  font-size: clamp(13px, 1.4vw, 16px); font-weight: 500;
  letter-spacing: .4em; text-transform: uppercase;
  color: #BFE6F8;
}
.hero__title {
  font-size: clamp(34px, 6vw, 64px); font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase;
  text-shadow: 0 6px 30px rgba(0, 0, 0, .45);
}
.hero__title span { display: block; background: linear-gradient(90deg, #fff, #9FE0FA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__text { max-width: 560px; margin: 22px auto 34px; font-size: 16px; color: rgba(255, 255, 255, .85); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.hero__content > * { animation: heroIn .9s var(--ease) both; }
.hero__content > :nth-child(2) { animation-delay: .1s; }
.hero__content > :nth-child(3) { animation-delay: .2s; }
.hero__content > :nth-child(4) { animation-delay: .3s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(28px); } }

/* Hero con banner: la imagen se ve completa debajo del header,
   y las tarjetas de servicios montan solo sobre la pista (≈10 % inferior) */
.hero--banner {
  display: block; min-height: 0;
  padding: 150px 0 0;
  background: var(--navy-dark);
}
.hero__banner {
  width: 100%; max-height: 88vh;
  object-fit: cover; object-position: center;
  animation: heroIn .9s var(--ease) both;
}
.hero--banner + .quick { margin-top: -4.5vw; }

/* =========================================================
   SERVICIOS RÁPIDOS (tarjetas sobre el hero)
   ========================================================= */
.quick { position: relative; z-index: 2; margin-top: -90px; }
.quick__grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--white);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
.quick__card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 34px 14px 30px;
  text-align: center;
  border-radius: 6px;
  transition: transform .35s var(--ease), background-color .35s, color .35s, box-shadow .35s;
}
.quick__card + .quick__card::after {
  content: ""; position: absolute; left: 0; top: 28%; height: 44%;
  border-left: 1px solid var(--line);
}
.quick__icon { width: 50px; height: 50px; margin-bottom: 14px; color: #9FB3C8; transition: color .35s; }
.quick__card h3 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); transition: color .35s; }
.quick__card p { margin: 4px 0 0; font-size: 12px; color: var(--muted); transition: color .35s; }
.quick__arrow {
  display: grid; place-items: center;
  width: 34px; height: 34px; margin-top: 14px; border-radius: 50%;
  background: var(--white); color: var(--blue);
  opacity: 0; transform: scale(.5);
  transition: opacity .3s, transform .35s var(--ease);
}
.quick__arrow svg { width: 16px; height: 16px; }
.quick__card.is-active {
  z-index: 1;
  background: var(--grad);
  transform: translateY(-18px);
  box-shadow: 0 24px 40px -18px rgba(30, 114, 184, .9);
}
.quick__card.is-active::after, .quick__card.is-active + .quick__card::after { display: none; }
.quick__card.is-active .quick__icon,
.quick__card.is-active h3,
.quick__card.is-active p { color: var(--white); }
.quick__card.is-active .quick__arrow { opacity: 1; transform: none; }

/* =========================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================= */
.why .section-title { margin-bottom: 40px; }

.why__tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 560px; margin: 0 auto 70px;
}
.why__line {
  position: absolute; left: 16.66%; right: 16.66%; bottom: 7px;
  height: 2px; background: var(--line);
}
.why__progress {
  position: absolute; inset: 0 auto 0 0; width: 50%;
  background: var(--grad);
  transition: width .5s var(--ease);
}
.why__tab {
  position: relative;
  padding-bottom: 32px;
  font-size: 12px; font-weight: 600; line-height: 1.35;
  color: #9AABBF;
  transition: color .3s;
}
.why__tab::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid #C9D4E0;
  transition: border-color .3s, transform .3s var(--ease);
}
.why__tab:hover { color: var(--sky); }
.why__tab.is-active { color: var(--blue); }
.why__tab.is-active::after { border-color: var(--blue); transform: scale(1.25); }

.why__panel {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 70px; align-items: center;
}
.why__panel[hidden] { display: none; }
.why__panel.is-active { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

.why__media { position: relative; padding: 30px 0 0 34px; }
.why__media::before {
  content: ""; position: absolute; left: 0; top: 60px; width: 40%; height: 70%;
  border-radius: 4px; background: var(--navy);
}
.why__img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; }
.why__img--back {
  position: absolute; top: 0; left: 70px; width: 72%;
  opacity: .9;
  box-shadow: var(--shadow-sm);
}
.why__img--front {
  position: relative; width: 82%; margin: 50px 0 0 auto;
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(24, 156, 216, .65);
}
.why__lead { font-size: 14px; color: var(--muted); }
.why__text p:last-child { font-size: 15px; color: var(--text); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about__grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; align-items: start; }
.about__title { font-size: clamp(24px, 2.6vw, 30px); font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.about__title span { display: block; color: var(--blue); }
.about__intro > p { font-size: 14px; color: var(--muted); }
.about__sign { margin-top: 26px; }
.about__sign img { width: 160px; height: 48px; max-width: none; margin-bottom: 6px; }
.about__sign small { font-size: 12px; }

.about-card { position: relative; }
.about-card__img { aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 12%; width: 100%; border-radius: 4px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.about-card h3 { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.about-card__text {
  font-size: 13.5px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.about-card.is-open .about-card__text { display: block; -webkit-line-clamp: unset; }
.about-card.is-open .round-btn svg { transform: rotate(45deg); }

.values { margin-top: 70px; padding-top: 50px; border-top: 1px solid var(--line); text-align: center; }
.values__title { font-size: 20px; color: var(--navy); margin-bottom: 26px; }
.values__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.value {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 50px;
  background: var(--white); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 600; color: var(--navy);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.value:hover { transform: translateY(-4px); background: var(--blue); color: var(--white); }
.value__icon { width: 22px; height: 22px; color: var(--sky); transition: color .3s; }
.value:hover .value__icon { color: var(--white); }

/* =========================================================
   SERVICIOS
   ========================================================= */
.services {
  overflow: hidden;
  background: radial-gradient(circle at 80% 90%, #123A6B 0%, var(--navy) 55%);
  color: var(--white);
}
.services__watermark {
  position: absolute; right: -120px; bottom: -140px;
  width: 520px; height: 520px; max-width: none;
  opacity: .06; pointer-events: none;
}
.services__grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.services__intro h2 { font-size: clamp(26px, 2.8vw, 32px); font-weight: 700; margin-bottom: 16px; }
.services__intro p { color: rgba(255, 255, 255, .7); font-size: 14px; max-width: 300px; }

.service-card {
  position: relative;
  padding: 34px 30px 30px;
  border: 1.5px solid rgba(24, 156, 216, .45);
  border-radius: 4px;
  transition: transform .4s var(--ease), border-color .3s, background-color .3s, box-shadow .3s;
}
.service-card:hover, .service-card.is-highlight {
  transform: translateY(-6px);
  border-color: var(--white);
  background: rgba(255, 255, 255, .04);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
}
.service-card.is-highlight { animation: pulse 1.6s var(--ease) 2; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(16, 176, 230, .25); } }
.service-card__icon { width: 54px; height: 54px; color: var(--white); margin-bottom: 18px; }
.service-card h3 { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.service-card p { font-size: 13px; color: rgba(255, 255, 255, .65); }
.service-card__link {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--cyan);
}
.service-card__link svg { transition: transform .3s var(--ease); }
.service-card__link:hover svg { transform: translateX(5px); }

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.chip {
  padding: 9px 20px; border-radius: 50px;
  border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--muted);
  transition: background-color .25s, color .25s, border-color .25s;
}
.chip:hover { border-color: var(--sky); color: var(--blue); }
.chip.is-active { background: var(--grad); border-color: transparent; color: var(--white); }

.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gallery__item { margin: 0; aspect-ratio: 10 / 9; border-radius: 8px; overflow: hidden; background: var(--light); }
.gallery__item.is-hidden { display: none; }
.gallery__more { margin-top: 40px; text-align: center; }
.gallery__item.is-showing { animation: zoomIn .5s var(--ease); }
@keyframes zoomIn { from { opacity: 0; transform: scale(.94); } }

.gallery__btn { position: relative; display: block; width: 100%; height: 100%; }
.gallery__btn img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .7s var(--ease); }
.gallery__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start;
  padding: 22px; text-align: left; color: var(--white);
  background: linear-gradient(180deg, transparent 40%, rgba(7, 26, 51, .88));
  transition: background-color .4s;
}
.gallery__overlay svg {
  position: absolute; top: 50%; left: 50%;
  width: 54px; height: 54px; padding: 14px; margin: -27px 0 0 -27px;
  border-radius: 50%; background: var(--grad);
  opacity: 0; transform: scale(.6);
  transition: opacity .35s, transform .35s var(--ease);
}
.gallery__overlay strong { font-size: 14px; font-weight: 600; line-height: 1.35; }
.gallery__overlay small { font-size: 12px; color: #9FE0FA; letter-spacing: .06em; text-transform: uppercase; }
.gallery__btn:hover img, .gallery__btn:focus-visible img { transform: scale(1.07); }
.gallery__btn:hover .gallery__overlay { background-color: rgba(11, 37, 69, .35); }
.gallery__btn:hover .gallery__overlay svg, .gallery__btn:focus-visible .gallery__overlay svg { opacity: 1; transform: none; }
.gallery__empty { text-align: center; color: var(--muted); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center; gap: 20px;
  padding: 60px 20px;
  background: rgba(3, 10, 25, .94);
  opacity: 0; transition: opacity .3s;
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; max-width: min(1100px, 100%); }
.lightbox__img { max-height: 78vh; width: auto; margin: 0 auto; border-radius: 6px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); }
.lightbox__img.is-loading { opacity: .3; }
.lightbox__caption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--white); font-size: 14px; }
.lightbox__counter { color: rgba(255, 255, 255, .6); }
.lightbox__close, .lightbox__nav {
  display: grid; place-items: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--white);
  transition: background-color .25s;
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--sky); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__close { position: absolute; top: 18px; right: 18px; }
.lightbox__nav--next svg { transform: rotate(180deg); }

/* =========================================================
   CIFRAS + UBICACIÓN
   ========================================================= */
.location__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.stats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 34px 60px; margin: 30px 0; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat__num { font-size: 44px; font-weight: 300; color: var(--blue); line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { font-size: 11px; line-height: 1.35; color: var(--muted); }
.location__address { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--navy); }
.location__address svg { width: 22px; height: 22px; color: var(--sky); }
.location__map {
  position: relative; overflow: hidden;
  height: 400px; border-radius: 12px;
  background: #DDE6EF;
  box-shadow: var(--shadow);
}
.location__map iframe { width: 100%; height: 100%; border: 0; }

/* =========================================================
   CONTACTO / FORMULARIO
   ========================================================= */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { display: grid; gap: 14px; margin-top: 30px; }
.contact__list a { display: flex; align-items: center; gap: 16px; font-weight: 500; color: var(--navy); word-break: break-word; }
.contact__list small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.contact__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--light); color: var(--blue);
  transition: background-color .25s, color .25s;
}
.contact__icon svg { width: 22px; height: 22px; }
.contact__list a:hover .contact__icon { background: var(--grad); color: var(--white); }

.quote-form {
  padding: 40px;
  background: var(--white); border-radius: 12px;
  border-top: 4px solid var(--sky);
  box-shadow: var(--shadow);
}
.quote-form h3 { font-size: 22px; color: var(--navy); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label { font-size: 13px; font-weight: 500; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  background: #FBFCFE;
  font-size: 14px;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky);
  box-shadow: 0 0 0 4px rgba(24, 156, 216, .15);
}
.field__error { display: none; margin-top: 4px; font-size: 12px; color: #D93B3B; }
.field.is-invalid input, .field.is-invalid select { border-color: #D93B3B; }
.field.is-invalid .field__error { display: block; }
.quote-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.quote-form__status { margin: 14px 0 0; font-size: 13px; color: var(--blue); min-height: 1.4em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { position: relative; background: var(--navy-dark); color: #A9B7CC; font-size: 14px; }
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 40px;
  padding-top: 80px; padding-bottom: 60px;
}
.footer__brand p { margin: 22px 0 24px; font-size: 13px; max-width: 320px; }
.footer h4 { margin-bottom: 20px; font-size: 14px; font-weight: 600; letter-spacing: .04em; color: var(--white); }
.footer__col li { margin-bottom: 10px; }
.footer__col a { position: relative; padding-left: 14px; transition: color .25s, padding .25s; }
.footer__col a::before { content: "›"; position: absolute; left: 0; color: var(--sky); }
.footer__col a:hover { color: var(--white); padding-left: 18px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer__contact svg { width: 18px; height: 18px; margin-top: 3px; color: var(--sky); }
.footer__contact li a { padding-left: 0; word-break: break-word; }
.footer__contact li a::before { content: none; }
.footer__contact li a:hover { padding-left: 0; }
.footer__contact .btn::before { content: none; }
.footer__contact .btn { margin-top: 10px; }

.social { display: flex; gap: 10px; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: var(--white);
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.social a:hover { background: var(--sky); border-color: var(--sky); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }

.footer__bottom { background: var(--navy-deep); font-size: 13px; }
.footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; padding-top: 20px; padding-bottom: 20px; }
.footer__bottom p { margin: 0; }
.footer__bottom nav { display: flex; gap: 22px; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Flotantes ---------- */
.float-wa, .to-top {
  position: fixed; right: 22px; z-index: 90;
  display: grid; place-items: center; border-radius: 50%;
  transition: transform .3s var(--ease), opacity .3s, visibility .3s;
}
.float-wa {
  bottom: 22px; width: 58px; height: 58px;
  background: var(--whatsapp); color: var(--white);
  box-shadow: 0 10px 26px -8px rgba(37, 211, 102, .8);
}
.float-wa svg { width: 30px; height: 30px; }
.float-wa::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--whatsapp);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.float-wa:hover { transform: scale(1.08); }
.to-top {
  bottom: 92px; width: 44px; height: 44px;
  background: var(--navy); color: var(--white);
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px);
}
.to-top svg { width: 20px; height: 20px; transform: rotate(90deg); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue); }

/* ---------- Animaciones al hacer scroll (solo con JS) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .header.is-scrolled .nav__list { gap: 22px; }
  .about__grid { grid-template-columns: 1fr 1fr; }
  .about__intro { grid-column: 1 / -1; max-width: 680px; }
}

@media (max-width: 991px) {
  :root { --header-h: 70px; }
  .section { padding: 80px 0; }

  .header { background: transparent; }
  .header__inner { padding-top: 0; min-height: var(--header-h); flex-wrap: nowrap; }
  .header.is-scrolled .brand { padding: 0; }
  .header__info { display: none; }
  .nav-toggle { display: block; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 1;
    width: min(330px, 86vw); margin: 0;
    padding: 96px 28px 32px;
    display: flex; flex-direction: column; gap: 28px;
    overflow-y: auto;
    background: var(--navy);
    border: 0;
    box-shadow: -20px 0 50px rgba(0, 0, 0, .35);
    transform: translateX(100%); visibility: hidden;
    transition: transform .4s var(--ease), visibility .4s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .header.is-scrolled .nav { margin: 0; }
  .nav__list, .header.is-scrolled .nav__list { flex-direction: column; gap: 0; }
  .nav__link, .header.is-scrolled .nav__link {
    padding: 14px 0 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 15px;
  }
  .header.is-scrolled .nav__link small { display: block; }
  .nav__link::before { top: 14px; bottom: 14px; left: 0; width: 3px; height: auto; transform: scaleY(0); }
  .nav__link:hover::before, .nav__link.is-active::before { transform: scaleY(1); }
  .nav__cta { display: inline-flex; }

  .hero { min-height: max(600px, 88vh); padding: 140px 0 140px; }
  .hero--banner { min-height: 0; padding: var(--header-h) 0 0; }

  .quick__grid { grid-template-columns: repeat(3, 1fr); }
  .quick__card:nth-child(4)::after { display: none; }

  .why__panel { grid-template-columns: 1fr; gap: 40px; }
  .why__media { max-width: 560px; }

  .services__grid { grid-template-columns: 1fr 1fr; }
  .services__intro { grid-column: 1 / -1; }

  .gallery__grid { grid-template-columns: repeat(3, 1fr); }

  .location__grid, .contact__grid { grid-template-columns: 1fr; gap: 44px; }

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

@media (max-width: 767px) {
  .quick { margin-top: -70px; }
  .hero--banner + .quick { margin-top: 10px; }
  .quick__grid {
    display: flex; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 18px 0 30px; margin: -18px 0 -30px;
    background: transparent; box-shadow: none;
    scrollbar-width: none;
  }
  .quick__grid::-webkit-scrollbar { display: none; }
  .quick__card {
    flex: 0 0 44%; scroll-snap-align: start;
    background: var(--white); border-radius: 0;
    box-shadow: 0 16px 30px -18px rgba(11, 37, 69, .4);
  }
  .quick__card:first-child { border-radius: 6px 0 0 6px; }
  .quick__card:last-child { border-radius: 0 6px 6px 0; }
  .quick__card.is-active { border-radius: 6px; transform: translateY(-12px); }
  .quick__card:nth-child(4)::after { display: block; }

  .why__tabs { margin-bottom: 50px; }
  .why__tab { font-size: 11px; }

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

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

  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery__overlay { padding: 12px; }
  .gallery__overlay strong { font-size: 12px; }
  .gallery__overlay small { font-size: 10px; }

  .stats { gap: 26px 34px; }
  .stat__num { font-size: 36px; }
  .location__map { height: 320px; }

  .quote-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .lightbox { padding: 70px 12px 90px; }
  .lightbox__nav { position: absolute; bottom: 24px; }
  .lightbox__nav--prev { left: calc(50% - 64px); }
  .lightbox__nav--next { right: calc(50% - 64px); }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-top: 60px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand__logo, .header.is-scrolled .brand__logo { width: 147px; height: 44px; }
  .hero__actions .btn { width: 100%; max-width: 280px; }
  .quick__card { flex-basis: 58%; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item { aspect-ratio: 4 / 3; }
  .gallery__overlay strong { font-size: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .quote-form__actions .btn { width: 100%; }
}

/* Respeta a quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
