/* ============================================================
   SUDPACIFIC — estilos
   Paleta corporativa: Azul Pacífico #02C2ED · Gris Industrial #43454F
   Estética industrial oscura · acentos cian
============================================================ */
:root {
  --blue:        #02C2ED;   /* Azul Pacífico (principal) */
  --blue-2:      #3fd9fb;
  --blue-deep:   #0192b4;
  --gray:        #43454F;   /* Gris Industrial (principal) */
  --navy:        #22242d;   /* paneles */
  --navy-2:      #191b22;   /* secciones alternas */
  --navy-3:      #14161c;   /* fondo base */
  --light:       #EDF1F7;
  --white:       #ffffff;
  --muted:       #a6adbd;
  --muted-2:     #7a8194;
  --line:        rgba(255,255,255,.10);
  --card:        rgba(255,255,255,.04);
  --card-2:      rgba(255,255,255,.06);
  --wa:          #25D366;
  --wa-dark:     #1ebe5a;
  --radius:      18px;
  --radius-sm:   12px;
  --shadow:      0 18px 50px rgba(0,0,0,.45);
  --shadow-blue: 0 16px 40px rgba(2,194,237,.28);
  --maxw:        1200px;
  --ease:        cubic-bezier(.22,1,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--navy-3);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Skip link (teclado / lectores) ---------- */
.skip-link {
  position: fixed; top: -60px; left: 16px; z-index: 300;
  padding: 10px 18px; background: var(--blue); color: #04303d;
  border-radius: 10px; font-weight: 700; font-size: .9rem;
  transition: top .2s var(--ease);
}
.skip-link:focus-visible { top: 12px; }

/* ---------- Foco accesible (teclado) ---------- */
:focus-visible { outline: 2px solid #7fe4ff; outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .service-card:focus-visible, .lang-btn:focus-visible { outline: 2px solid #7fe4ff; outline-offset: 4px; }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }

/* ---------- Botones ---------- */
.btn {
  --pad: 13px 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: var(--pad);
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { --pad: 9px 18px; font-size: .85rem; }
.btn-lg { --pad: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { box-shadow: 0 22px 50px rgba(2,194,237,.42); }
.btn-whatsapp { background: var(--wa); color: #06321a; }
.btn-whatsapp:hover { background: var(--wa-dark); box-shadow: 0 16px 36px rgba(37,211,102,.4); }
.btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.wa-icon { width: 20px; height: 20px; }

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s, padding .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20,22,28,.85);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 10px 0; border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; flex: none; }
.brand-logo { height: 42px; width: auto; display: block; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 36px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav > a { font-weight: 500; font-size: .95rem; color: var(--light); position: relative; opacity: .9; transition: opacity .2s; }
.nav > a::after { content:''; position:absolute; left:0; bottom:-6px; width:0; height:2px; background: var(--blue); transition: width .3s var(--ease); }
.nav > a:hover { opacity: 1; }
.nav > a:hover::after, .nav > a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.lang-btn { background: none; border: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px; transition: color .2s; }
.lang-btn.active { color: var(--blue); }
.lang-btn:hover { color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; z-index: 110; }
.hamburger span { width: 26px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 28s ease-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1.18) translateY(-1.5%); } }
/* Tinte de marca sutil sobre la foto (no la oscurece) */
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(2,148,181,.28), transparent 55%);
  mix-blend-mode: soft-light;
}
/* Overlay ligero: legible a la izquierda, deja ver la foto al centro/derecha */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(96deg, rgba(15,17,22,.85) 0%, rgba(15,17,22,.6) 26%, rgba(15,17,22,.22) 50%, rgba(15,17,22,0) 74%),
    linear-gradient(0deg, var(--navy-3) 0%, rgba(15,17,22,.5) 16%, transparent 42%);
}
.hero::before {
  content: ''; position: absolute; z-index: 1; top: -16%; right: -8%; width: 52vw; height: 52vw;
  pointer-events: none; background: radial-gradient(circle, rgba(2,194,237,.16), transparent 62%); filter: blur(12px);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 170px 24px rgba(0,0,0,.38);
}
/* Isotipo SP como marca de agua del hero */
.hero-mark {
  position: absolute; z-index: 2; right: clamp(-60px, 2vw, 90px); bottom: -6%;
  width: clamp(300px, 34vw, 560px); opacity: .09; pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(2,194,237,.25));
}
.site-header .container { max-width: 1560px; padding: 0 clamp(22px, 5.5vw, 92px); }
.hero-content { position: relative; z-index: 3; max-width: 1560px; padding: clamp(110px, 16vh, 160px) clamp(22px, 5.5vw, 92px) clamp(80px, 12vh, 120px); }
.hero-tag, .hero-title, .hero-lead, .hero-sub, .hero-cta { max-width: 640px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 18px; margin-bottom: 24px;
  background: rgba(24,27,34,.55); border: 1px solid rgba(2,194,237,.45);
  color: #eafbff; border-radius: 999px; font-size: clamp(.74rem,1.6vw,.82rem); font-weight: 600; letter-spacing: .04em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.hero-tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 10px var(--blue); animation: tagpulse 2s infinite; flex: none; }
@keyframes tagpulse { 0%,100% { opacity: 1; transform: scale(1);} 50% { opacity: .35; transform: scale(.6);} }
.hero-title {
  font-size: clamp(1.95rem, 4.55vw, 3.55rem); line-height: 1.07; font-weight: 800; color: #fff; letter-spacing: -.02em;
  text-shadow: 0 2px 22px rgba(8,10,14,.75), 0 1px 3px rgba(0,0,0,.55);
}
.hero-title span { display: block; }
.hero-title .grad {
  background: linear-gradient(100deg, #d9f8ff, #5ee6ff 48%, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 14px rgba(2,194,237,.22)) drop-shadow(0 2px 12px rgba(8,10,14,.55));
}
.hero-lead {
  margin: 22px 0 0; font-size: clamp(1rem, 1.65vw, 1.2rem); font-weight: 600; color: #fff;
  text-shadow: 0 2px 16px rgba(8,10,14,.7);
  padding-left: 16px; border-left: 3px solid var(--blue);
}
.hero-sub { margin: 16px 0 34px; font-size: clamp(.92rem, 1.25vw, 1.02rem); color: #e8edf6; max-width: 600px; text-shadow: 0 2px 16px rgba(8,10,14,.7); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrolldot 1.8s infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0);} 40% { opacity: 1;} 80% { opacity: 0; transform: translateY(14px);} 100% { opacity: 0; } }

/* ============================================================
   2 · ALCANCE
============================================================ */
.scope { background: var(--navy-2); border-block: 1px solid var(--line); padding: 90px 0; position: relative; }
.scope .section-intro { margin-bottom: 40px; }
.scope-band {
  display: flex; align-items: center; gap: 22px;
  max-width: 900px; margin: 0 auto 44px; padding: 22px 28px;
  background: linear-gradient(160deg, rgba(2,194,237,.09), rgba(2,146,180,.04));
  border: 1px solid rgba(2,194,237,.22); border-radius: var(--radius);
}
.scope-band p { color: var(--light); font-size: .97rem; margin: 0; }
.iso-status { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.iso-status.sm { align-items: center; gap: 9px; }
.iso-badge {
  display: inline-grid; place-items: center; line-height: 1; text-align: center;
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  border: 2px solid var(--blue); color: var(--blue); font-weight: 700; font-size: .72rem; letter-spacing: .06em;
}
.iso-badge strong { display: block; font-size: 1.05rem; }
.iso-pending { color: var(--light); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.iso-badge.sm { width: 50px; height: 50px; font-size: .6rem; }
.iso-badge.sm strong { font-size: .85rem; }
.iso-status.sm .iso-pending { font-size: .64rem; }

.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.stat { text-align: center; padding: 26px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.stat:hover { transform: translateY(-4px); border-color: rgba(2,194,237,.4); background: var(--card-2); }
.stat-ic { display: grid; place-items: center; width: 46px; height: 46px; margin: 0 auto 14px; border-radius: 12px; color: var(--blue); background: rgba(2,194,237,.1); border: 1px solid rgba(2,194,237,.22); }
.stat-ic svg { width: 23px; height: 23px; }
.stat-num { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat-plus, .stat-suffix { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.stat-label { display: block; margin-top: 6px; font-size: .82rem; color: var(--muted); }

/* ============================================================
   SECCIONES GENÉRICAS
============================================================ */
.section { padding: 96px 0; }
.section-intro { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-tag { display: inline-block; color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; color: #fff; line-height: 1.14; letter-spacing: -.02em; }
.section-desc { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.section-note {
  max-width: 820px; margin: 40px auto 0; text-align: center;
  color: var(--muted); font-size: .97rem; font-style: italic;
  padding: 18px 26px; border-block: 1px solid var(--line);
}

/* ---------- ¿Por qué nosotros? ---------- */
.why { background: var(--navy-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.why-card {
  padding: 34px 28px; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(2,194,237,.4); background: var(--card-2); }
.why-card-ic {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 18px; border-radius: 16px;
  color: var(--blue); background: linear-gradient(135deg, rgba(2,194,237,.16), rgba(2,146,180,.10));
  border: 1px solid rgba(2,194,237,.28);
}
.why-card-ic svg { width: 28px; height: 28px; }
.why-card h3 { color: #fff; font-size: 1.18rem; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Quiénes somos ---------- */
.about { background: linear-gradient(180deg, var(--navy-3), var(--navy-2)); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.about-visual { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.about-cards { display: flex; flex-direction: column; gap: 16px; }
.mv-card { padding: 24px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); }
.mv-card h3 { color: var(--blue); font-size: 1.15rem; margin-bottom: 6px; }
.mv-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Misión, visión y valores ---------- */
.mvv { background: var(--navy-2); border-block: 1px solid var(--line); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-big {
  padding: 36px 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.mv-big:hover { transform: translateY(-4px); border-color: rgba(2,194,237,.4); background: var(--card-2); }
.mv-ic {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; margin-bottom: 18px; border-radius: 14px;
  color: #fff; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); box-shadow: var(--shadow-blue);
}
.mv-ic svg { width: 26px; height: 26px; }
.mv-big h3 { color: #fff; font-size: 1.3rem; margin-bottom: 10px; }
.mv-big p { color: var(--muted); font-size: .97rem; }

.values { margin-top: 56px; }
.values-title { text-align: center; font-size: 1.6rem; color: #fff; margin-bottom: 30px; }
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.value-pill {
  display: flex; align-items: center; gap: 13px; padding: 16px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: #fff; font-weight: 600; font-size: .98rem;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.value-pill:hover { transform: translateY(-3px); border-color: rgba(2,194,237,.4); background: var(--card-2); }
.vp-ic {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 12px; color: var(--blue);
  background: rgba(2,194,237,.12); border: 1px solid rgba(2,194,237,.25);
}
.vp-ic svg { width: 21px; height: 21px; }

/* ---------- Presencia / cobertura ---------- */
.coverage { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; padding: 36px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.ports { display: flex; flex-wrap: wrap; gap: 10px; }
.ports span { padding: 7px 14px; background: rgba(2,194,237,.1); border: 1px solid rgba(2,194,237,.25); color: var(--light); border-radius: 999px; font-size: .85rem; font-weight: 500; }
.coverage-flags { display: flex; flex-direction: column; gap: 12px; }
.flag-card { display: flex; flex-direction: column; padding: 16px 20px; background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.flag-card .flag { font-size: 1.6rem; }
.flag-card strong { color: #fff; margin-top: 4px; }
.flag-card span { color: var(--muted); font-size: .85rem; }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.service-card {
  min-height: 320px; display: flex; align-items: flex-end;
  background: var(--navy); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.service-card::before { content:''; position: absolute; z-index: 3; top:0; left:0; width:100%; height:3px; background: linear-gradient(90deg, var(--blue), var(--blue-deep)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.service-card::after {
  content:''; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(24deg, rgba(16,18,24,.92) 0%, rgba(16,18,24,.66) 34%, rgba(16,18,24,.10) 68%),
    linear-gradient(0deg, rgba(16,18,24,.70) 0%, transparent 44%);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(2,194,237,.4); box-shadow: var(--shadow); }
.service-card:hover::before { transform: scaleX(1); }
.svc-media { position: absolute; inset: 0; z-index: 0; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .35s var(--ease); }
.service-card:hover .svc-media img { transform: scale(1.08); filter: saturate(1.08); }
.svc-body { position: relative; z-index: 2; width: min(390px, 64%); padding: 0 0 clamp(16px, 1.9vw, 20px) clamp(20px, 2.2vw, 24px); }
.svc-ic {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; margin-bottom: 12px;
  border-radius: 12px; color: var(--blue);
  background: linear-gradient(135deg, rgba(2,194,237,.22), rgba(2,146,180,.18));
  border: 1px solid rgba(2,194,237,.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .35s var(--ease), background .35s, border-color .35s, box-shadow .35s, color .35s;
}
.svc-ic svg { width: 21px; height: 21px; }
.service-card:hover .svc-ic {
  transform: translateY(-3px);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-color: transparent; color: #fff; box-shadow: var(--shadow-blue);
}
.service-card h3 { color: #fff; font-size: clamp(1.02rem, 1.55vw, 1.18rem); line-height: 1.18; margin-bottom: 8px; text-shadow: 0 2px 14px rgba(0,0,0,.62); }
.service-card p {
  color: #e8edf6; font-size: .8rem; line-height: 1.36; max-width: 36ch;
  text-shadow: 0 2px 14px rgba(0,0,0,.62);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ---------- Proceso (¿Cómo trabajamos?) ---------- */
.process { background: var(--navy-2); border-block: 1px solid var(--line); }
.process-grid { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 28px 24px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(2,194,237,.4); background: var(--card-2); }
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 50%; right: -21px; width: 22px; height: 2px;
  background: linear-gradient(90deg, rgba(2,194,237,.6), rgba(2,194,237,.15));
}
.step-num {
  position: absolute; top: 20px; right: 22px;
  font-size: 1.9rem; font-weight: 800; color: rgba(127,228,255,.16);
  font-variant-numeric: tabular-nums; line-height: 1;
}
.step-ic {
  display: inline-grid; place-items: center;
  width: 50px; height: 50px; margin-bottom: 16px; border-radius: 13px;
  color: var(--blue); background: linear-gradient(135deg, rgba(2,194,237,.16), rgba(2,146,180,.10));
  border: 1px solid rgba(2,194,237,.28);
}
.step-ic svg { width: 24px; height: 24px; }
.step h3 { color: #fff; font-size: 1.08rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .9rem; }

/* ---------- Contacto ---------- */
.contact { background: linear-gradient(180deg, var(--navy-2), var(--navy-3)); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-info { display: flex; flex-direction: column; }
.offices { display: flex; flex-direction: column; gap: 14px; margin-bottom: 26px; }
.office { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.office .flag { font-size: 1.4rem; flex: none; }
.office strong { display: block; color: #fff; font-size: .98rem; }
.office span { color: var(--muted); font-size: .88rem; }
.contact-channels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.channel { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--card); transition: transform .25s var(--ease), border-color .25s; }
.channel:hover { transform: translateY(-3px); border-color: var(--blue); }
.channel .wa-icon { width: 30px; height: 30px; color: var(--wa); }
.channel .ch-ic { display: grid; place-items: center; color: var(--blue); }
.channel .ch-ic svg { width: 28px; height: 28px; }
.channel strong { display: block; color: #fff; }
.channel span { color: var(--muted); font-size: .82rem; }

/* Bloque "¿Por qué SudPacific?" — equilibra la altura del formulario */
.contact-why {
  margin-top: 24px; flex: 1;
  padding: 34px 34px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(2,194,237,.09), rgba(2,146,180,.04));
  border: 1px solid rgba(2,194,237,.22);
  display: flex; flex-direction: column; justify-content: flex-start;
}
.contact-why h3 { color: #fff; font-size: 1.12rem; margin-bottom: 22px; }
.why-list { list-style: none; display: flex; flex-direction: column; gap: 18px; }
.why-list li { display: flex; align-items: center; gap: 13px; color: var(--light); font-size: .93rem; }
.why-ic {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px; color: var(--blue);
  background: rgba(2,194,237,.12); border: 1px solid rgba(2,194,237,.25);
}
.why-ic svg { width: 20px; height: 20px; }

.contact-form-wrap { padding: 32px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; margin-bottom: 7px; font-size: .88rem; color: var(--light); font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; background: var(--navy-3); border: 1px solid var(--line);
  border-radius: var(--radius-sm); color: #fff; font: inherit; font-size: .95rem; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field select { cursor: pointer; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(2,194,237,.15); }
.field input.invalid, .field textarea.invalid { border-color: #ff6b6b; }
.err { display: none; color: #ff8585; font-size: .8rem; margin-top: 5px; }
.form-ok { margin-top: 16px; padding: 14px; background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.35); color: #8ff0b6; border-radius: var(--radius-sm); font-size: .9rem; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--navy-3); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { height: 42px; width: auto; }
.footer-brand p { color: var(--muted); margin: 14px 0 18px; max-width: 40ch; font-size: .92rem; }
.footer-nav h4, .footer-contact h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer-nav a { display: block; color: var(--muted); margin-bottom: 9px; font-size: .92rem; transition: color .2s; }
.footer-nav a:hover { color: var(--blue); }
.footer-contact p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.footer-contact a { display: block; color: var(--blue); font-size: .92rem; margin-bottom: 8px; transition: opacity .2s; }
.footer-contact a:hover { opacity: .75; }
.footer-bottom { border-top: 1px solid var(--line); padding: 20px 0; }
.footer-bottom .container { display: flex; justify-content: center; }
.footer-bottom span { color: var(--muted-2); font-size: .85rem; }

/* ============================================================
   WHATSAPP FLOAT
============================================================ */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  animation: wa-pulse 2.4s infinite;
  transition: transform .25s var(--ease);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float-tooltip {
  position: absolute; right: 70px; white-space: nowrap;
  background: #fff; color: #14161c; padding: 8px 14px; border-radius: 8px;
  font-size: .85rem; font-weight: 600; opacity: 0; pointer-events: none;
  transform: translateX(8px); transition: opacity .25s, transform .25s;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.whatsapp-float-tooltip::after { content:''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: #fff; }
.whatsapp-float:hover .whatsapp-float-tooltip { opacity: 1; transform: translateX(0); }
@keyframes wa-pulse { 0% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5);} 70% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0);} 100% { box-shadow: 0 10px 30px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,0);} }

/* ---------- Mapa de cobertura (Chile real, interactivo) ---------- */
.coverage-map { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.chile-map { width: auto; height: 600px; max-height: 70vh; max-width: 100%; overflow: visible; }
.regions .rg {
  fill: rgba(140,165,205,.12); stroke: rgba(190,215,245,.2); stroke-width: .5;
  transition: fill-opacity .35s var(--ease), fill .35s, stroke .35s; cursor: pointer;
}
.regions .rg[data-active="1"] { fill: url(#zoneGrad); fill-opacity: .58; stroke: #bfefff; stroke-width: .7; }
.regions .rg[data-active="1"]:hover, .regions .rg.sel { fill-opacity: .92; stroke: #eafcff; }
.regions .rg:hover { fill: rgba(63,217,251,.45); }
.route { fill: none; stroke: url(#routeGrad); stroke-width: 1.4; stroke-dasharray: 3 6; opacity: .95; animation: route-flow 6s linear infinite; }
@keyframes route-flow { to { stroke-dashoffset: -90; } }
.ship { fill: #ecfeff; }
.mk { cursor: pointer; }
.mk-dot { fill: #8ef0ff; transition: r .25s var(--ease), fill .25s; }
.mk-ring { fill: rgba(2,194,237,.25); stroke: rgba(142,240,255,.7); stroke-width: 1; transform-box: fill-box; transform-origin: center; transform: scale(.55); opacity: .65; animation: mk-pulse 2.6s ease-out infinite; }
@keyframes mk-pulse { 0% { transform: scale(.5); opacity: .85; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
.mk.active .mk-dot { fill: #fff; r: 4.5; }
.mk.active .mk-ring { animation: none; transform: scale(1.6); opacity: 1; fill: rgba(142,240,255,.45); stroke: #eafcff; }
.map-legend { display: flex; gap: 22px; font-size: .82rem; color: var(--muted); }
.map-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; vertical-align: middle; margin-right: 5px; }
.map-legend .lg-active { background: rgba(2,194,237,.5); border: 1px solid var(--blue); }
.map-legend .lg-port { border-radius: 50%; background: #8ef0ff; box-shadow: 0 0 0 3px rgba(142,240,255,.3); }
.ports span { cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.ports span.active { background: var(--blue); border-color: var(--blue); color: #04303d; transform: translateY(-2px); }
.coverage-info h3 { font-size: 1.6rem; color: #fff; margin-bottom: 12px; }
.coverage-info p { color: var(--muted); margin-bottom: 20px; }
.region-panel { padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius-sm); margin-bottom: 22px; min-height: 96px; }
.rp-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.region-panel h4 { color: #fff; font-size: 1.18rem; margin-bottom: 6px; }
.region-panel p { color: var(--muted); font-size: .92rem; margin: 0; }
.coverage-info .coverage-flags { flex-direction: row; flex-wrap: wrap; margin-top: 22px; }
.coverage-info .flag-card { flex: 1; min-width: 140px; }


/* ---------- Barra de progreso ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200; background: linear-gradient(90deg, var(--blue), var(--blue-2)); box-shadow: 0 0 12px rgba(2,194,237,.6); transition: width .1s linear; }
.js-parallax { will-change: transform; }

/* ============================================================
   REVEAL (AOS propio)
============================================================ */
[data-aos] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--aos-delay, 0ms); will-change: opacity, transform; }
[data-aos].aos-visible { opacity: 1; transform: none; }
[data-aos="fade-up"]    { transform: translateY(34px); }
[data-aos="fade-right"] { transform: translateX(-40px); }
[data-aos="fade-left"]  { transform: translateX(40px); }
[data-aos="clip-up"]    { transform: translateY(20px); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 26px;
    background: rgba(20,22,28,.97); backdrop-filter: blur(16px);
    padding: 40px; transform: translateX(100%); transition: transform .4s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav.open { transform: translateX(0); }
  .nav-actions { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .hamburger { display: flex; }
  .about-grid, .values-grid, .services-grid, .mv-grid, .why-grid, .contact-grid, .coverage, .footer-inner { grid-template-columns: 1fr; }
  .stats, .process-grid { grid-template-columns: repeat(2,1fr); }
  .step:not(:last-child)::after { display: none; }
  .about-visual img { min-height: 300px; }
  .coverage-map { order: -1; }
  .chile-map { height: 480px; }
  .scope-band { flex-direction: column; text-align: center; }
  .hero-mark { opacity: .06; }
}
@media (max-width: 760px) {
  /* En móvil el texto va sobre toda la foto: scrim vertical para legibilidad */
  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(15,17,22,.5) 0%, rgba(15,17,22,.3) 35%, rgba(15,17,22,.65) 100%),
      linear-gradient(0deg, var(--navy-3) 0%, transparent 55%);
  }
  .hero-content { max-width: 100%; }
}
@media (max-width: 560px) {
  .section { padding: 70px 0; }
  .container { padding: 0 18px; }
  .hero-content { padding: 110px 18px 80px; }
  .hero-cta .btn { width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .values-grid, .process-grid, .field-row { grid-template-columns: 1fr; }
  .chile-map { height: 420px; }
  .brand-logo, .site-header.scrolled .brand-logo { height: 30px; }
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero-bg img { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   INFO CARD DE PUERTO + MODAL DE SERVICIO
============================================================ */
.port-card {
  position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center;
  background: rgba(10,11,15,.72); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  opacity: 0; transition: opacity .25s var(--ease); padding: 20px;
}
.port-card[hidden] { display: none; }
.port-card.show { opacity: 1; }
.pc-inner {
  position: relative; width: min(440px, 92vw); background: var(--navy-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transform: translateY(14px) scale(.97); transition: transform .3s var(--ease);
}
.port-card.show .pc-inner { transform: none; }
.pc-media img { width: 100%; height: 200px; object-fit: cover; display: block; }
.pc-body { padding: 22px 24px 26px; }
.pc-region { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.pc-body h4 { color: #fff; font-size: 1.45rem; margin-bottom: 10px; }
.pc-body p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.pc-web { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; border-radius: 999px; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-blue); transition: transform .2s var(--ease); }
.pc-web:hover { transform: translateY(-2px); }
.pc-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,22,28,.6); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; transition: background .2s; }
.pc-close:hover { background: rgba(20,22,28,.95); }

/* Modal de servicio */
.svc-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10,11,15,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s var(--ease); }
.svc-modal[hidden] { display: none; }
.svc-modal.show { opacity: 1; }
.svc-dialog { width: min(860px, 96vw); max-height: 90vh; overflow: hidden auto; background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); display: grid; grid-template-columns: 1fr 1fr; }
.svc-modal.show .svc-dialog { transform: none; }
.svc-dialog .sm-media { position: relative; min-height: 100%; }
.svc-dialog .sm-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc-dialog .sm-body { padding: 34px 34px 36px; }
.sm-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 16px; border-radius: 14px; background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: var(--shadow-blue); }
.sm-ic svg { width: 28px; height: 28px; }
.sm-body h3 { color: #fff; font-size: 1.7rem; margin-bottom: 14px; }
.sm-body p { color: var(--light); opacity: .9; font-size: .98rem; margin-bottom: 16px; }
.sm-included { color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.sm-body .sm-points { list-style: none; padding: 0; margin: 0 0 22px; }
.sm-body .sm-points li { color: var(--muted); font-size: .92rem; padding-left: 24px; position: relative; margin-bottom: 9px; }
.sm-body .sm-points li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.sm-close { position: absolute; top: 16px; right: 18px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,22,28,.6); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s; }
.sm-close:hover { background: rgba(20,22,28,.95); }
.service-card { cursor: pointer; }
.service-card .svc-more {
  position: absolute; z-index: 2; right: clamp(18px, 2vw, 24px); bottom: clamp(16px, 1.9vw, 20px);
  display: inline-block; margin-top: 0; color: var(--blue-2);
  font-size: .76rem; font-weight: 700; white-space: nowrap;
  opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s;
}
.service-card:hover .svc-more, .service-card:focus-visible .svc-more { opacity: 1; transform: none; }
@media (max-width: 700px) {
  .service-card { min-height: 280px; }
  .svc-body { width: min(330px, 82%); padding: 0 90px 48px 20px; }
  .svc-ic { width: 38px; height: 38px; margin-bottom: 10px; }
  .svc-ic svg { width: 19px; height: 19px; }
  .service-card .svc-more { right: 18px; bottom: 18px; font-size: .72rem; }
  .svc-dialog { grid-template-columns: 1fr; }
  .svc-dialog .sm-media { min-height: 200px; }
  .svc-dialog .sm-media img { position: relative; height: 200px; }
}
