/* ============ Brand tokens ============ */
:root {
  --magenta: #D3277C;
  --magenta-soft: #e85ca5;
  --green: #78BE20;
  --green-soft: #9bd24b;
  --navy: #112D43;
  --navy-deep: #0b1f30;
  --gray: #878787;
  --gray-bg: #F5F5F5;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "EB Garamond", "Minion Pro", ui-serif, Georgia, serif;
  --sans: "Inter", "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Bebas Neue", "Coolvetica", "Inter", sans-serif;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ============ Base ============ */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
section { position: relative; }

/* ============ Type system ============ */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--magenta);
}
.eyebrow.on-dark { color: var(--green-soft); }
.eyebrow-line {
  display: inline-flex; align-items: center; gap: 14px;
}
.eyebrow-line::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6;
}

.h-display {
  font-family: var(--display);
  font-size: clamp(56px, 9vw, 132px);
  line-height: 0.92;
  letter-spacing: -0.01em;
  font-weight: 400;
  margin: 0;
}
.h-display .accent { color: var(--magenta); }
.h-display .serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.h-section {
  font-family: var(--display);
  font-size: clamp(48px, 7.5vw, 96px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin: 0;
  font-weight: 400;
}
.h-section .dot {
  display: inline-block;
  width: 0.12em; height: 0.12em;
  background: var(--magenta);
  border-radius: 999px;
  margin: 0 0.04em 0.18em;
  vertical-align: middle;
}
.h-section .accent { color: var(--magenta); }
.h-section .accent-green { color: var(--green); }
.h-section .serif-it {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-transform: none;
}

.h3 {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.05;
  margin: 0;
}
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--gray);
  max-width: 56ch;
}
.lead.on-dark { color: rgba(255,255,255,.78); }

.serif {
  font-family: var(--serif);
  font-weight: 500;
}

/* ============ Layout ============ */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .container { padding: 0 22px; } }

.section-pad {
  padding-top: clamp(56px, 7vw, 120px);
  padding-bottom: clamp(56px, 7vw, 120px);
}
.section-pad-sm {
  padding-top: clamp(48px, 5.5vw, 90px);
  padding-bottom: clamp(48px, 5.5vw, 90px);
}

/* ============ Navbar ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .4s var(--ease-soft), backdrop-filter .4s, padding .4s;
  padding: 22px 0;
  background: rgba(17, 45, 67, 0);
  backdrop-filter: blur(0);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px) saturate(140%);
  padding: 14px 0;
  box-shadow: 0 1px 0 rgba(17,45,67,.08), 0 10px 30px -20px rgba(17,45,67,.18);
}
.nav.scrolled .nav-links { color: var(--navy); }
.nav.scrolled .nav-links a { color: var(--navy); }
.nav.scrolled .hamburger { color: var(--navy); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  height: 52px;
  display: block;
  position: relative;
  transition: height .4s var(--ease-soft);
}
.nav.scrolled .nav-logo { height: 44px; }
.nav-logo img {
  height: 100%;
  width: auto;
  display: block;
  transition: opacity .4s ease;
  position: absolute;
  top: 0; left: 0;
}
/* white logo over transparent hero (default) */
.nav-logo .logo-white { opacity: 1; }
.nav-logo .logo-color  { opacity: 0; }
/* color logo when nav has solid background */
.nav.scrolled .nav-logo .logo-white { opacity: 0; }
.nav.scrolled .nav-logo .logo-color  { opacity: 1; }
/* spacer keeps nav-logo the right width (logo is 116×102 px native) */
.nav-logo::after {
  content: "";
  display: block;
  height: 52px;
  width: 60px;
}
.nav-links {
  display: flex; gap: 38px; align-items: center;
  font-size: 13.5px; font-weight: 500;
  color: rgba(255,255,255,.85);
  letter-spacing: 0.02em;
}
.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: var(--magenta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--magenta);
  color: white;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.nav-cta:hover {
  transform: translateY(-2px);
  background: #c01a6d;
  box-shadow: 0 10px 30px -10px rgba(211, 39, 124, .6);
}
.nav-cta svg { transition: transform .25s var(--ease-out); }
.nav-cta:hover svg { transform: translateX(3px); }

.scroll-progress {
  position: absolute; left: 0; bottom: 0; height: 2px;
  background: var(--magenta);
  width: 0%;
  transition: width .1s linear;
}

.hamburger {
  display: none;
  width: 36px; height: 36px;
  align-items: center; justify-content: center;
  color: white;
}

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: inline-flex; }
}

.drawer {
  position: fixed; inset: 0; z-index: 60;
  background: var(--navy);
  display: flex; flex-direction: column;
  padding: 28px 32px;
  transform: translateX(100%);
  transition: transform .5s var(--ease-out);
}
.drawer.open { transform: translateX(0); }
.drawer-top {
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-links {
  margin-top: 60px;
  display: flex; flex-direction: column; gap: 20px;
}
.drawer-links a {
  font-family: var(--display);
  font-size: 32px; color: white;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 16px;
}
.drawer-cta {
  margin-top: 32px;
  background: var(--magenta); color: white;
  padding: 16px 24px; border-radius: 999px;
  font-weight: 500; text-align: center;
}

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  color: white;
  overflow: hidden;
  background: var(--navy);
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--navy);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(17,45,67,.35) 0%, rgba(17,45,67,.5) 55%, rgba(17,45,67,.92) 100%),
    radial-gradient(60% 80% at 92% 100%, rgba(211, 39, 124, .3) 0%, transparent 60%);
  z-index: 1;
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}
.hero-grain {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 10% 90%, rgba(255,255,255,.04), transparent),
    radial-gradient(600px 300px at 90% 20%, rgba(255,255,255,.03), transparent);
  pointer-events: none;
}
.hero-iso {
  position: absolute;
  top: -6vw; right: -4vw;
  width: 36vw; max-width: 560px;
  opacity: .06;
  transform-origin: center;
  pointer-events: none;
  transition: transform .6s var(--ease-out);
  z-index: 0;
}
.hero-iso img { width: 100%; }

.hero-inner {
  position: relative; z-index: 2;
  padding-bottom: clamp(96px, 10vw, 140px);
  padding-top: clamp(120px, 14vh, 160px);
  width: 100%;
}
.hero-eyebrow {
  display: flex; align-items: center; gap: 16px;
  color: rgba(255,255,255,.75);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-eyebrow .pulse {
  width: 8px; height: 8px; background: var(--magenta);
  border-radius: 999px; position: relative;
}
.hero-eyebrow .pulse::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 999px;
  border: 1.5px solid var(--magenta);
  animation: pulse 2.2s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  max-width: 100%;
  margin: 0 0 28px;
}
.hero-title .hero-line {
  display: block;
}
.hero-title .accent {
  color: var(--magenta);
  font-style: italic;
}
.hero-title em.accent { font-style: italic; }

/* Big display title for hero (AGENCIA ADUANAL) */
.hero-title-display {
  font-family: var(--display, "Bebas Neue"), Impact, sans-serif;
  font-weight: 400;
  font-size: clamp(64px, 11vw, 168px);
  line-height: .88;
  letter-spacing: 0.01em;
  margin: 0 0 28px;
  color: white;
  text-shadow: 0 4px 30px rgba(0,0,0,.35);
}
.hero-title-display .hero-display-line {
  display: block;
}
.hero-title-display em.accent {
  font-style: normal;
  color: var(--magenta);
}
@media (max-width: 720px) {
  .hero-title-display { font-size: clamp(56px, 16vw, 96px); }
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.3vw, 19px);
  color: rgba(255,255,255,.78);
  max-width: 54ch;
  margin: 0 0 32px;
  line-height: 1.55;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  transition: all .3s var(--ease-out);
  cursor: pointer;
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--magenta); color: white;
  box-shadow: 0 8px 24px -10px rgba(211, 39, 124, .6);
}
.btn-primary:hover {
  background: #c01a6d;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -10px rgba(211, 39, 124, .7);
}
.btn-ghost {
  border-color: rgba(255,255,255,.4);
  color: white;
}
.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,.07);
}
.btn-ghost svg { transition: transform .3s var(--ease-out); }
.btn-ghost:hover svg { transform: translateX(4px); }
.btn-dark {
  background: var(--navy); color: white;
}
.btn-dark:hover { background: var(--navy-deep); transform: translateY(-2px); }

.hero-meta {
  position: absolute; bottom: 32px; left: 0; right: 0;
  z-index: 3;
  display: flex; justify-content: space-between; align-items: end;
  gap: 24px;
  color: rgba(255,255,255,.55);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-meta-block { display: flex; flex-direction: column; gap: 6px; }
.hero-meta-block strong { color: white; font-size: 14px; letter-spacing: 0.16em; font-weight: 500; }

.scroll-indicator {
  position: absolute;
  bottom: 96px;
  left: 50%; transform: translateX(-50%);
  z-index: 3;
  width: 1.5px; height: 56px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.scroll-indicator::after {
  content: "";
  position: absolute; top: -32px; left: 0; right: 0;
  height: 32px;
  background: var(--magenta);
  animation: scroll-line 2.6s var(--ease-out) infinite;
}
@keyframes scroll-line {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(96px); opacity: 0; }
}

/* ============ Reveal animations ============ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .9s var(--ease-out), transform .9s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }
.reveal.delay-5 { transition-delay: .40s; }
.reveal.delay-6 { transition-delay: .48s; }
.reveal.delay-7 { transition-delay: .56s; }

.word { display: inline-block; white-space: nowrap; }
.reveal-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40%);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-letter.in { opacity: 1; transform: translateY(0); }

/* ============ Section "Qué hacemos" ============ */
.qh {
  background: var(--gray-bg);
  position: relative;
  overflow: hidden;
}
.qh-deco {
  position: absolute;
  width: 460px; opacity: .06;
  pointer-events: none;
}
.qh-deco.tl { top: -80px; left: -120px; transform: rotate(-15deg); }
.qh-deco.br { bottom: -100px; right: -100px; transform: rotate(40deg); width: 380px; }
.qh-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 880px) { .qh-grid { grid-template-columns: 1fr; } }
.qh .h-section { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.05; }

.qh-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(17,45,67,.35);
}
.qh-img img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.05) saturate(.9); }
.qh-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(211,39,124,.25), rgba(17,45,67,.45));
  mix-blend-mode: multiply;
}
.qh-img-tag {
  position: absolute; bottom: 24px; left: 24px; z-index: 2;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); font-weight: 500;
}

.patente-card {
  margin-top: 44px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 36px 34px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbf6ee 100%);
  border: 1px solid rgba(17,45,67,.10);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -32px rgba(17,45,67,.18);
}
.patente-card::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(17,45,67,.10);
  border-radius: 4px;
  pointer-events: none;
}
.patente-seal {
  width: 96px; height: 96px;
  color: var(--magenta);
  opacity: .9;
  flex-shrink: 0;
}
.patente-seal svg,
.patente-seal img { width: 100%; height: 100%; display: block; object-fit: contain; }
.patente-body { min-width: 0; }
.patente-label {
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 600;
}
.patente-year {
  font-family: var(--serif);
  font-size: clamp(54px, 6vw, 78px);
  line-height: 1;
  color: var(--magenta);
  margin: 2px 0 4px;
}
.patente-year em {
  font-style: italic;
  font-weight: 500;
}
.patente-name {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(17,45,67,.10);
}
.patente-card p {
  font-size: 14px;
  color: rgba(17,45,67,.78);
  margin: 0;
  line-height: 1.65;
}
.patente-card p span {
  color: var(--navy);
  font-weight: 600;
}
@media (max-width: 540px) {
  .patente-card {
    grid-template-columns: 1fr;
    text-align: left;
    padding: 26px 22px 26px;
    gap: 18px;
  }
  .patente-seal { width: 72px; height: 72px; }
}

/* ============ Historia ============ */
.historia,
.nosotros-historia {
  position: relative;
  background: var(--navy);
  color: white;
  overflow: hidden;
}
.historia::before,
.nosotros-historia::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(50% 60% at 10% 30%, rgba(211,39,124,.18), transparent 70%),
    radial-gradient(40% 60% at 100% 80%, rgba(120,190,32,.1), transparent 70%);
  pointer-events: none;
}
.nosotros-historia .body {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 24px 0 32px;
}
.nosotros-historia .future-label {
  font-family: var(--display);
  color: var(--green);
  letter-spacing: 0.16em;
  font-size: 22px;
  margin: 48px 0 16px;
}
.nosotros-historia .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
  color: white;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--magenta);
}
.historia-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 72px; align-items: center; position: relative;
}
@media (max-width: 880px) { .historia-grid { grid-template-columns: 1fr; } }
.historia .body {
  font-size: 17px; line-height: 1.7;
  color: rgba(255,255,255,.78);
  max-width: 56ch;
  margin: 24px 0 32px;
}
.historia .future-label {
  font-family: var(--display);
  color: var(--green);
  letter-spacing: 0.16em;
  font-size: 22px;
  margin: 48px 0 16px;
}
.historia .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.4;
  color: white;
  max-width: 22ch;
  margin: 0;
  padding-left: 22px;
  border-left: 2px solid var(--magenta);
}
.boat-deco {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 20px 0;
}
.boat-deco svg {
  width: 100%; max-width: 480px;
  animation: bob 7s ease-in-out infinite;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,.4));
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ============ Nosotros (Historia + Valores reutiliza estilos existentes) ============ */
.nosotros { position: relative; }

/* Historia con PNG del barco + galería de equipo */
.historia-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.historia-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  animation: bob 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.45));
}

.team-gallery-wrap {
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.team-gallery-label {
  font-family: var(--display);
  color: var(--green);
  letter-spacing: 0.18em;
  font-size: 14px;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.team-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.team-photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.08);
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out), filter .8s var(--ease-out);
  filter: saturate(.92) contrast(1.04);
}
.team-photo:hover img { transform: scale(1.05); filter: saturate(1) contrast(1.05); }
@media (max-width: 880px) {
  .team-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .team-gallery { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 16 / 10; }
  .team-gallery-wrap { margin-top: 48px; }
}

/* ============ Stats strip ============ */
.stats {
  background: white;
  border-top: 1px solid rgba(17,45,67,.08);
  border-bottom: 1px solid rgba(17,45,67,.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 56px 24px;
  border-right: 1px solid rgba(17,45,67,.08);
  text-align: left;
}
.stat:last-child { border-right: none; }
@media (max-width: 720px) {
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(17,45,67,.08); }
}
.stat-num {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1;
  color: var(--magenta);
  display: flex; align-items: baseline; gap: 6px;
}
.stat-num .suffix { font-size: 0.4em; color: var(--gray); }
.stat-label {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============ Servicios ============ */
.servicios { background: white; }
.servicios-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-bottom: 80px;
  flex-wrap: wrap;
}
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
@media (max-width: 1100px) { .servicios-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .servicios-grid { grid-template-columns: 1fr; } }

.service {
  position: relative; z-index: 1;
  padding: 30px 28px 32px;
  background: white;
  border: 1px solid rgba(17,45,67,.08);
  border-radius: 10px;
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .4s;
  display: flex; flex-direction: column;
  height: 100%;
}
.service:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -25px rgba(17,45,67,.22);
  border-color: rgba(211,39,124,.18);
}
.service-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.service-num {
  font-family: var(--display);
  font-size: 22px;
  color: var(--magenta);
  letter-spacing: 0.16em;
  line-height: 1;
}
.service-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(211,39,124,.08);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--magenta);
  transition: background .3s, color .3s, transform .3s;
}
.service-icon-wrap svg { width: 26px; height: 26px; }
.service:hover .service-icon-wrap {
  background: var(--magenta);
  color: white;
  transform: rotate(-4deg);
}
.service-body {
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.service-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 16.5px;
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 0;
}
.service-sub {
  font-size: 11.5px;
  color: var(--magenta);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
}
.service-desc {
  font-size: 13.5px;
  color: rgba(17,45,67,.72);
  line-height: 1.55;
  margin: 6px 0 14px;
}
.service-bullets {
  list-style: none;
  padding: 16px 0 0;
  margin: auto 0 0;
  border-top: 1px dashed rgba(17,45,67,.12);
  display: flex; flex-direction: column; gap: 9px;
}
.service-bullets li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(17,45,67,.85);
}
.service-bullets li svg {
  flex: 0 0 16px;
  width: 16px; height: 16px;
  color: var(--green);
  margin-top: 2px;
}

/* ============ Beneficios ============ */
.beneficios {
  background: linear-gradient(165deg, var(--navy) 0%, #1a1f4a 60%, #401537 100%);
  color: white;
  overflow: hidden;
}
.beneficios::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='80' height='80'><circle cx='1' cy='1' r='1' fill='%23ffffff' fill-opacity='0.07'/></svg>");
  background-size: 80px 80px;
  pointer-events: none;
}
.beneficios-header {
  text-align: center;
  margin-bottom: 80px;
}
.beneficios-header .h-section { color: white; }
.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.benefit {
  grid-column: span 4;
  padding: 36px 32px 40px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  position: relative;
  transition: all .4s var(--ease-out);
  overflow: hidden;
}
.benefit::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--magenta);
  transform: scaleX(0); transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.benefit:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.22);
}
.benefit:hover::after { transform: scaleX(1); }
.benefit:hover .benefit-icon { background: var(--green); color: var(--navy); border-color: var(--green); }

.benefit-num {
  font-family: var(--display);
  font-size: 14px;
  color: var(--magenta);
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.benefit-icon {
  width: 52px; height: 52px;
  border: 1.5px solid var(--green);
  color: var(--green);
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  transition: all .4s var(--ease-out);
}
.benefit-title {
  font-family: var(--display);
  font-size: 24px;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.benefit-desc {
  font-size: 14.5px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
}

/* asymmetric bento layout */
.benefit:nth-child(1) { grid-column: span 5; }
.benefit:nth-child(2) { grid-column: span 4; }
.benefit:nth-child(3) { grid-column: span 3; }
.benefit:nth-child(4) { grid-column: span 4; }
.benefit:nth-child(5) { grid-column: span 4; }
.benefit:nth-child(6) { grid-column: span 4; }
.benefit:nth-child(7) { grid-column: span 12; padding: 40px 40px 44px; }

.benefit:nth-child(7) { display: grid; grid-template-columns: 1fr 2fr; gap: 32px; align-items: center; }
.benefit:nth-child(7) .benefit-num { margin: 0; }
.benefit:nth-child(7) .benefit-icon { margin: 0; }

@media (max-width: 980px) {
  .benefit, .benefit:nth-child(n) { grid-column: span 12; display: block; }
  .benefit:nth-child(7) { display: block; }
}

/* ============ Marquee ============ */
.marquee {
  background: var(--magenta);
  color: white;
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.marquee-track {
  display: flex;
  gap: 56px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track .dot {
  width: 6px; height: 6px; background: white; border-radius: 999px;
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ Cobertura / Mapa ============ */
.cobertura {
  background: white;
  overflow: hidden;
}
.cobertura-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .cobertura-grid { grid-template-columns: 1fr; } }
.cobertura .mision-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.45;
  color: var(--navy);
  max-width: 30ch;
  margin: 24px 0 32px;
}
.legend {
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13.5px;
  color: var(--navy);
}
.legend-item { display: flex; align-items: center; gap: 12px; }
.legend-dot {
  width: 12px; height: 12px; border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(0,0,0,.04);
}

.map-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(17,45,67,.22);
  aspect-ratio: 5/4;
}
.leaflet-map {
  width: 100%;
  height: 100%;
  min-height: 400px;
}
.leaflet-popup-content-wrapper {
  border-radius: 6px !important;
  box-shadow: 0 8px 24px -8px rgba(17,45,67,.3) !important;
  border: none !important;
}
.leaflet-popup-tip { background: white !important; }

/* ============ Valores ============ */
.valores {
  position: relative;
  overflow: hidden;
}
.valores-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(17,45,67,.94) 0%, rgba(17,45,67,.88) 55%, rgba(17,45,67,.82) 100%),
    url("assets/team-walking.jpg") center/cover no-repeat;
  z-index: 0;
}
.valores-inner { position: relative; z-index: 1; color: white; }
.valores-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
  margin-top: 60px;
}
@media (max-width: 880px) { .valores-grid { grid-template-columns: 1fr; } }
.valores-text .h-section { color: white; }
.valores-text .lead.on-dark { margin-top: 24px; }

.valor {
  position: relative;
  padding: 24px 0 28px 36px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.valor:last-child { border-bottom: none; }
.valor::before {
  content: ""; position: absolute;
  left: 0; top: 32px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: white;
  box-shadow: 0 0 0 4px rgba(255,255,255,.14);
}
.valor::after {
  content: ""; position: absolute;
  left: 6px; top: 46px; bottom: -1px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0));
}
.valor:last-child::after { display: none; }
.valor-title {
  font-family: var(--display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--green-soft);
  margin: 0 0 8px;
}
.valor-desc {
  font-size: 15px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  margin: 0;
  max-width: 56ch;
}

/* ============ Certificaciones ============ */
.certs { background: var(--gray-bg); text-align: center; }
.certs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 880px;
  margin: 60px auto 0;
}
@media (max-width: 720px) { .certs-grid { grid-template-columns: 1fr; } }
.cert {
  background: white;
  padding: 56px 36px;
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  box-shadow: 0 20px 50px -30px rgba(17,45,67,.3);
  transition: transform .4s var(--ease-out);
}
.cert:hover { transform: translateY(-6px); }
.cert-logo-wrap {
  height: 140px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 16px;
}
.cert-logo-wrap img {
  max-height: 140px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  transition: transform .4s var(--ease-out);
}
.cert:hover .cert-logo-wrap img {
  transform: scale(1.04);
}
.cert-title {
  font-family: var(--display);
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-top: 4px;
}
.cert-sub { color: var(--gray); font-size: 14px; }

/* ============ Manifesto ============ */
.manifesto {
  position: relative; overflow: hidden;
  color: white;
  text-align: center;
}
.manifesto-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(110deg, rgba(17,45,67,.88) 0%, rgba(211,39,124,.55) 45%, rgba(17,45,67,.92) 100%),
    url("assets/team-malecon.jpg") center/cover no-repeat;
  filter: saturate(.9);
}
.manifesto-inner {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
}
.manifesto-iso {
  width: 96px; height: auto;
  margin: 0 auto 36px;
  opacity: .7;
}
.manifesto h2 {
  font-family: var(--display);
  font-size: clamp(36px, 5.5vw, 78px);
  line-height: 1.04;
  letter-spacing: 0.005em;
  margin: 0;
  font-weight: 400;
}
.manifesto h2 .accent { color: var(--green-soft); }
.manifesto-sig {
  font-family: var(--serif);
  font-style: italic;
  margin-top: 36px;
  font-size: 24px;
  opacity: .85;
}

/* ============ Contacto ============ */
.contacto { background: white; }
.contacto-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 64px; align-items: start;
}
@media (max-width: 880px) { .contacto-grid { grid-template-columns: 1fr; } }
.field {
  position: relative;
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
  font-weight: 500;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-bottom: 1px solid rgba(17,45,67,.18);
  background: transparent;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy);
  outline: none;
  transition: border-color .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--magenta);
}
.field textarea { resize: vertical; min-height: 80px; }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 540px) { .fields-row { grid-template-columns: 1fr; } }

.contact-aside {
  background: var(--navy); color: white;
  padding: 48px 40px;
  border-radius: 8px;
  position: relative; overflow: hidden;
}
.contact-aside::before {
  content: ""; position: absolute;
  top: -40px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, var(--magenta) 0%, transparent 70%);
  opacity: .25;
}
.contact-aside h3 {
  font-family: var(--display);
  font-size: 28px; margin: 0 0 24px;
  letter-spacing: 0.02em;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 15px;
}
.contact-item .ic {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: rgba(120,190,32,.18);
  color: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.contact-item .lbl {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,.6);
  margin-bottom: 4px;
}
.contact-item .val { color: white; font-weight: 500; }

.qr-box {
  margin-top: 32px;
  background: white;
  border-radius: 8px;
  padding: 20px;
  display: flex; gap: 16px; align-items: center;
}
.qr-box .qr {
  width: 88px; height: 88px;
  background: white;
  border-radius: 4px;
  flex: 0 0 auto;
}
.qr-box .qr-text {
  font-size: 13px; color: var(--navy);
  line-height: 1.4;
}
.qr-box .qr-text strong { display: block; font-family: var(--display); font-size: 17px; letter-spacing: 0.04em; }

/* ============ Footer ============ */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
}
.footer-iso {
  position: absolute; right: -100px; bottom: -100px;
  width: 360px; opacity: .04;
  pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-top: 80px; padding-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
    padding-top: 72px;
    padding-bottom: 56px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .footer-logo { height: 40px; margin-bottom: 18px; }
  .footer-tag { font-size: 15px; max-width: 100%; line-height: 1.5; }
  .social { margin-top: 22px; }
  .footer-col h4 { margin: 0 0 18px; font-size: 10.5px; }
  .footer-col ul { gap: 11px; font-size: 13.5px; }
}
.footer-logo { height: 44px; margin-bottom: 20px; }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: rgba(255,255,255,.8);
  max-width: 32ch;
}
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--green-soft); font-weight: 500;
  margin: 0 0 22px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 14.5px;
}
.footer-col a:hover { color: white; }
.social {
  display: flex; gap: 12px;
  margin-top: 20px;
}
.social a {
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  color: var(--green-soft);
  display: flex; align-items: center; justify-content: center;
  transition: all .3s var(--ease-out);
}
.social a:hover {
  color: white; background: var(--magenta);
  border-color: var(--magenta);
  transform: translateY(-3px);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 28px 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 12.5px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}
.footer-bottom a:hover { color: white; }

/* ============ Loader ============ */
.loader {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  transition: opacity .6s, visibility .6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-iso { width: 120px; }
.loader-iso .b { transform-origin: center; opacity: 0; }
.loader-iso .b1 { animation: pop 1.5s var(--ease-out) .1s forwards; }
.loader-iso .b2 { animation: pop 1.5s var(--ease-out) .25s forwards; }
.loader-iso .b3 { animation: pop 1.5s var(--ease-out) .4s forwards; }
@keyframes pop {
  0% { opacity: 0; transform: scale(.3); }
  60% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 1; transform: scale(1); }
}

/* ============ TIMELINE ============ */
.timeline {
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
  overflow: hidden;
}
.timeline-header {
  max-width: 720px;
  margin: 0 auto 72px;
  text-align: center;
}
.timeline-header .eyebrow-line { justify-content: center; }
.timeline-wrap {
  position: relative;
  padding: 60px 0 40px;
}
.timeline-path {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: .85;
}
.timeline-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 18px;
  align-items: start;
}
.tl-card {
  position: relative;
  background: white;
  border: 1px solid rgba(17, 45, 67, .08);
  border-radius: 14px;
  padding: 18px 16px 18px;
  box-shadow: 0 10px 30px -18px rgba(17, 45, 67, .22);
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.tl-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -18px rgba(17, 45, 67, .35);
}
.tl-up { align-self: start; margin-top: 0; }
.tl-down { align-self: end; margin-top: 180px; }
.tl-marker {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--magenta);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--magenta), 0 6px 14px -4px rgba(211,39,124,.55);
}
.tl-up .tl-marker { bottom: -28px; }
.tl-down .tl-marker { top: -28px; }
.tl-green .tl-marker {
  background: var(--green);
  box-shadow: 0 0 0 2px var(--green), 0 6px 14px -4px rgba(120,190,32,.55);
}
.tl-magenta .tl-card:hover { border-color: rgba(211, 39, 124, .35); }
.tl-green .tl-card:hover { border-color: rgba(120, 190, 32, .4); }
.tl-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.tl-year {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--magenta);
}
.tl-green .tl-year { color: var(--green); }
.tl-icon {
  width: 28px; height: 28px;
  color: var(--navy);
  opacity: .7;
}
.tl-icon svg { width: 100%; height: 100%; }
.tl-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.tl-text {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(17, 45, 67, .72);
  margin: 0;
}

@media (max-width: 1100px) {
  .timeline-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .tl-up, .tl-down { align-self: stretch; margin-top: 0; }
  .tl-marker { display: none; }
  .timeline-path { display: none; }
  .tl-card { border-left: 4px solid var(--magenta); border-radius: 10px; }
  .tl-green.tl-card { border-left-color: var(--green); }
}
@media (max-width: 720px) {
  .timeline-grid { grid-template-columns: 1fr; gap: 16px; }
  .tl-card { padding: 16px 18px; }
  .tl-year { font-size: 24px; }
}

/* ============ Servicios Cintillo (home strip) ============ */
.servicios-cintillo {
  background: var(--magenta);
  border-bottom: none;
  padding: clamp(20px, 2.4vw, 36px) 0;
  position: relative;
  z-index: 5;
}
.cintillo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.cintillo-item {
  display: flex; align-items: center; gap: 16px;
  padding: 10px 24px;
  border-right: 1px solid rgba(255,255,255,.18);
  color: white;
  transition: background .22s var(--ease-out);
  text-decoration: none;
}
.cintillo-item:last-child { border-right: none; }
.cintillo-item:hover { background: rgba(255,255,255,.09); }
.cintillo-icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  color: white;
}
.cintillo-icon svg { width: 22px; height: 22px; }
.cintillo-text { min-width: 0; }
.cintillo-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .01em;
  color: white;
  line-height: 1.2;
}
.cintillo-sub {
  font-size: 11px;
  color: rgba(255,255,255,.72);
  margin-top: 3px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .cintillo-grid { grid-template-columns: repeat(2, 1fr); }
  .cintillo-item:nth-child(2) { border-right: none; }
  .cintillo-item:nth-child(1), .cintillo-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
}
@media (max-width: 600px) {
  .cintillo-grid { grid-template-columns: 1fr; }
  .cintillo-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,.18); padding: 14px 4px; }
  .cintillo-item:last-child { border-bottom: none; }
}

/* ============ Foreland Map — MapLibre + Deck.gl ============ */
.foreland {
  position: relative;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px -16px rgba(17,45,67,.14);
  border: 1px solid rgba(17,45,67,.08);
}
.foreland-regions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 14px 22px 12px;
  border-bottom: 1px solid rgba(17,45,67,.07);
  background: var(--gray-bg);
}
.foreland-regions-label {
  font-family: var(--display, Impact);
  font-size: 13px;
  letter-spacing: .28em;
  color: var(--magenta);
  text-transform: uppercase;
}
.foreland-regions-list {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(17,45,67,.6);
}
.foreland-map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.foreland-deck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Hide MapLibre logo/attribution to keep it clean */
.foreland-deck .maplibregl-ctrl-bottom-left,
.foreland-deck .maplibregl-ctrl-bottom-right { display: none; }
@media (max-width: 720px) {
  .foreland-map { aspect-ratio: 4 / 3; }
}
.foreland-legend {
  display: flex; flex-direction: column; gap: 9px;
  padding: 14px 22px 18px;
  color: rgba(17,45,67,.75);
  font-size: 12.5px;
  border-top: 1px solid rgba(17,45,67,.07);
  background: white;
}
.foreland-legend strong { color: var(--navy); font-weight: 600; }
.foreland-legend .leg-row {
  display: flex; align-items: center; gap: 12px;
}
.foreland-legend .leg-dot {
  width: 10px; height: 10px; border-radius: 999px;
  flex-shrink: 0;
}

/* ============ Certifications grayscale (OEA) ============ */
.cert-grayscale img {
  filter: grayscale(1) brightness(.95) contrast(.95);
  opacity: .85;
}

/* ============ WhatsApp Floating Button ============ */
.wa-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 100;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 32px -8px rgba(37, 211, 102, .7), 0 0 0 1px rgba(0,0,0,.05);
  transition: transform .3s var(--ease-out), box-shadow .3s;
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 18px 44px -10px rgba(37, 211, 102, .8);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 32px -8px rgba(37, 211, 102, .7), 0 0 0 0 rgba(37, 211, 102, .5); }
  50%      { box-shadow: 0 10px 32px -8px rgba(37, 211, 102, .7), 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (max-width: 720px) {
  .wa-btn { bottom: 20px; right: 20px; width: 52px; height: 52px; }
}

/* ============ Misc ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ============ Responsive sweep · fixes finales ============ */
@media (max-width: 720px) {
  /* Hero — columna única con mejor balance */
  .hero { flex-direction: column; align-items: stretch; justify-content: flex-end; }
  .hero-inner {
    flex: 1;
    padding-top: clamp(120px, 22vh, 168px);
    padding-bottom: 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-eyebrow { margin-bottom: 16px; }
  .hero-title-display { margin-bottom: 22px; }
  .hero-sub { margin-bottom: 26px; }
  /* Hero meta — grid 3 col fijas, texto centrado vertical y horizontal */
  .hero-meta {
    position: relative;
    bottom: auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    gap: 0;
    padding: 18px 0 22px;
    margin-top: 0;
    border-top: 1px solid rgba(255,255,255,.14);
    background: rgba(11,31,48,.35);
  }
  .hero-meta-block,
  .hero-meta-block[style] {
    text-align: center !important;
    padding: 0 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
  }
  .hero-meta-block:not(:last-child) {
    border-right: 1px solid rgba(255,255,255,.1);
  }
  .hero-meta-block span {
    font-size: 9px;
    letter-spacing: 0.16em;
    color: rgba(255,255,255,.55);
    line-height: 1.25;
    text-transform: uppercase;
  }
  .hero-meta-block strong {
    font-size: 11px;
    letter-spacing: 0.04em;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: normal;
    text-align: center;
    color: white;
    font-weight: 500;
  }
  /* Scroll indicator: ocultar en móvil */
  .scroll-indicator { display: none; }
  /* Botones hero — 2 columnas iguales */
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .hero-actions .btn {
    flex: unset;
    justify-content: center;
    padding: 14px 12px;
    font-size: 12.5px;
    text-align: center;
    letter-spacing: 0;
    line-height: 1.25;
  }
  .hero-actions .btn svg { display: none; }
  /* Servicios — padding reducido */
  .service { padding: 24px 22px 26px; }
  .servicios-header { margin-bottom: 48px; gap: 24px; }
  /* Beneficios — más respiración */
  .beneficios-header { margin-bottom: 48px; }
  /* h-section global más conservador en móvil */
  .h-section { font-size: clamp(40px, 12vw, 68px); }
  /* Foreland map: aspect ratio comprimido + padding */
  .foreland-map { aspect-ratio: 4 / 3; }
  .foreland-regions { padding: 12px 18px; gap: 10px; }
  .foreland-regions-list { font-size: 10px; letter-spacing: .12em; }
  .foreland-legend { padding: 12px 18px 16px; font-size: 11.5px; }
  /* Patente card — sello y números más pequeños */
  .patente-card { padding: 24px 22px 24px; gap: 14px; }
  .patente-seal { width: 64px; height: 64px; }
  .patente-year { font-size: 48px; }
  .patente-name { font-size: 17px; }
  /* QueHacemos — espaciado */
  .qh-grid { gap: 32px; }
  .qh .h-section { font-size: clamp(28px, 8vw, 44px); }
  /* Stats — tipografía móvil */
  .stat-num { font-size: clamp(40px, 12vw, 64px) !important; }
  .stat-label { font-size: 11px; }
  /* Contacto */
  .contacto-grid { gap: 32px; }
  /* Footer-bottom apilado y centrado en móvil */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 0 28px; }
  /* Marquee */
  .m-item { font-size: 14px; padding: 0 18px; }
  /* Timeline header */
  .timeline-header { margin-bottom: 48px; }
  /* Valores — slide oscuro: imagen primero, lista después */
  .valores-inner { gap: 28px; }
  /* Cobertura */
  .cobertura-grid { gap: 28px; }
  /* Drawer — items más cómodos */
  .drawer-link { font-size: 18px; padding: 12px 0; }
}

@media (max-width: 540px) {
  /* Container con menos padding */
  .container { padding: 0 18px; }
  /* Eyebrow — más chico */
  .eyebrow { font-size: 10.5px; }
  /* h-section — más chico aún */
  .h-section { font-size: clamp(34px, 11vw, 56px); }
  /* Hero — sub más estrecho, botones sin ícono */
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-actions .btn svg { display: none; }
  .hero-actions .btn { padding: 13px 10px; font-size: 12.5px; }
  /* Servicios bullets más comprimidos */
  .service-bullets li { font-size: 12.5px; }
  /* Hero buttons */
  .hero-actions { gap: 8px; }
  /* WhatsApp button mucho más pequeño */
  .wa-btn { width: 48px; height: 48px; bottom: 14px; right: 14px; }
  .wa-btn svg { width: 22px; height: 22px; }
  /* Cintillo padding apretado */
  .cintillo-item { padding: 12px 18px; }
  .cintillo-icon { flex-basis: 40px; width: 40px; height: 40px; }
  /* Foreland muy compacto */
  .foreland-regions { flex-direction: column; align-items: flex-start; gap: 4px; }
  .foreland-regions-list { letter-spacing: .1em; }
}

/* Tablets — historia con barco apilado */
@media (max-width: 880px) {
  .historia-image img { max-width: 380px; }
  .nosotros-historia .historia-grid { gap: 32px; }
}
