/* ==========================================================================
   NorthCarga S.A.S. — Rediseño 2026
   Hoja de estilos principal (sin dependencias externas salvo Google Fonts)
   ========================================================================== */

:root {
  --navy-900: #0a1b33;
  --navy-800: #0f2747;
  --navy-700: #163a66;
  --cyan-500: #00acde;
  --cyan-400: #33bfe8;
  --cyan-100: #e3f6fc;
  --amber-500: #f5a524;
  --amber-600: #dc8f12;
  --ink: #1d2a3a;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(10, 27, 51, .08);
  --shadow-lg: 0 20px 50px rgba(10, 27, 51, .16);
  --container: 1200px;
  --header-h: 76px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

/* ---------- Idioma: solo se muestra el bloque del idioma activo ---------- */
html[lang="es"] [data-l="en"],
html[lang="en"] [data-l="es"] { display: none !important; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: "cv11", "ss01";
  text-rendering: optimizeLegibility;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--cyan-500); text-decoration: none; }
a:hover { color: var(--navy-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-800); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; text-wrap: balance; }
p, li { text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--navy-800); color: #d6e2f0; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--cyan-500); margin-bottom: .8rem;
}
.lead { font-size: 1.2rem; line-height: 1.65; color: var(--muted); max-width: 720px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-800); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s ease; font-family: inherit;
}
.btn--primary { background: var(--amber-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--amber-600); color: var(--navy-900); transform: translateY(-1px); }
.btn--secondary { background: var(--cyan-500); color: #fff; }
.btn--secondary:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--navy-800); }
.btn--outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn--outline:hover { background: var(--navy-800); color: #fff; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-900); color: #b9c7d8; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #dfe8f3; }
.topbar a:hover { color: var(--cyan-400); }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; opacity: .8; }

/* ---------- Encabezado / navegación ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
/* El desenfoque va en un pseudo-elemento: si estuviera en .header, el menú móvil
   (position: fixed) quedaría atrapado dentro del encabezado. */
.header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: saturate(160%) blur(8px); backdrop-filter: saturate(160%) blur(8px);
}
.header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav li { position: relative; }
.nav a.nav__link, .nav button.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 8px;
  color: var(--navy-800); font-weight: 600; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav a.nav__link:hover, .nav button.nav__link:hover, .nav .is-active > .nav__link { color: var(--cyan-500); background: var(--cyan-100); }
.nav .chev { width: 14px; height: 14px; transition: transform .2s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 10px; list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .93rem; }
.dropdown a:hover { background: var(--bg-soft); color: var(--cyan-500); }
.dropdown .ico { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--cyan-100); color: var(--cyan-500); display: grid; place-items: center; }
.dropdown .ico svg { width: 18px; height: 18px; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-soft); }
.lang-switch button {
  border: 0; background: none; padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem;
  color: var(--muted); cursor: pointer; font-family: inherit;
}
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current] { background: var(--navy-800); color: #fff; }
.lang-switch a {
  padding: 6px 11px; border-radius: 999px; font-weight: 700; font-size: .8rem; color: var(--muted); text-decoration: none;
}
.lang-switch a[aria-current] { color: #fff; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-800); }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }
  .nav {
    position: fixed; top: var(--nav-top, var(--header-h)); left: 0; right: 0; bottom: 0; z-index: 99; background: #fff; flex-direction: column; align-items: stretch;
    padding: 16px 20px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden;
    transition: transform .25s ease, visibility 0s linear .25s;
  }
  body.nav-open .nav { transform: none; visibility: visible; transition: transform .25s ease; }
  html.nav-lock { overflow: hidden; }
  body.nav-open .nav { touch-action: pan-y; overscroll-behavior: contain; }
  body.nav-open .fab { display: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav a.nav__link, .nav button.nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 4px 0 8px 8px; display: none; min-width: 0; }
  .has-dropdown.open .dropdown { display: block; }
  .has-dropdown.open .chev { transform: rotate(180deg); }
  .has-dropdown:hover .dropdown { display: none; }
  .has-dropdown.open:hover .dropdown { display: block; }
  .nav .nav__cta { margin-top: 20px; display: flex !important; }
}
@media (min-width: 1081px) { .nav .nav__cta { display: none; } }

/* ---------- Imágenes con marcador (placeholder) ---------- */
.ph {
  position: relative; overflow: hidden; margin: 0;
  background: linear-gradient(135deg, var(--navy-700), var(--cyan-500));
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph.missing > img { display: none; }
.ph.missing::after {
  content: attr(data-ph); position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 16px; color: rgba(255,255,255,.85); font: 600 .78rem/1.4 ui-monospace, Consolas, monospace;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px);
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-1x1 { aspect-ratio: 1 / 1; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: min(88vh, 760px); display: flex; align-items: center; overflow: hidden; background: var(--navy-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg.ph { background: radial-gradient(circle at 75% 30%, var(--navy-700), var(--navy-900) 70%); }
.hero__bg.ph.missing::after { place-items: end end; padding: 24px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(10,27,51,.92) 0%, rgba(10,27,51,.7) 45%, rgba(10,27,51,.15) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 60px; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--cyan-400); }
.hero p { font-size: 1.2rem; color: #cfdbea; max-width: 600px; }
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__badges { display: flex; gap: 26px; margin-top: 48px; flex-wrap: wrap; }
.hero__badges div { display: flex; flex-direction: column; }
.hero__badges strong { font-family: var(--font-head); font-size: 1.9rem; color: #fff; line-height: 1.1; }
.hero__badges span { font-size: .85rem; color: #9fb3cb; }

/* Banner de páginas internas */
.page-hero { position: relative; color: #fff; padding: clamp(70px, 10vw, 120px) 0 clamp(50px, 7vw, 80px); overflow: hidden; background: var(--navy-900); }
.page-hero .hero__bg.ph.missing::after { place-items: end end; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,27,51,.9), rgba(10,27,51,.55)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #cfdbea; font-size: 1.1rem; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .85rem; color: #9fb3cb; margin-bottom: 12px; }
.breadcrumb a { color: #cfe6f5; }

/* ---------- Tarjetas y grillas ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s ease; color: inherit;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: inherit; }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; margin: 0; }
.card__more { margin-top: auto; padding-top: 12px; font-weight: 700; color: var(--cyan-500); font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.card__more svg { width: 16px; height: 16px; transition: transform .2s; }
a.card:hover .card__more svg { transform: translateX(4px); }

.icon-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--cyan-100); color: var(--cyan-500); display: grid; place-items: center; margin-bottom: 8px; }
.icon-badge svg { width: 26px; height: 26px; }
.feature { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Bloque dividido texto/imagen */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split .ph { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--cyan-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300acde' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}

/* Valores / cultura */
.values { display: flex; flex-wrap: wrap; gap: 12px; }
.values span { padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff; font-weight: 600; }
.section:not(.section--dark) .values span { background: var(--cyan-100); border-color: transparent; color: var(--navy-800); }

/* Estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--cyan-400); line-height: 1.1; }
.stats span { font-size: .92rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Certificaciones */
.certs { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.certs a, .certs div { background: #fff; border-radius: var(--radius); padding: 14px; border: 1px solid var(--line); display: grid; place-items: center; }
.certs img { height: 92px; width: auto; }

/* Indicadores */
.indicators { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border: 1px solid var(--line); }
.indicators h3 { display: flex; align-items: center; gap: 10px; }
.indicators dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; }
.indicators dt, .indicators dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.indicators dt { color: var(--muted); font-size: .93rem; }
.indicators dd { font-weight: 700; color: var(--navy-800); text-align: right; font-variant-numeric: tabular-nums; }
.indicators small { display: block; margin-top: 12px; color: var(--muted); font-size: .8rem; }

/* Banda CTA */
.cta-band { position: relative; overflow: hidden; border-radius: 22px; color: #fff; padding: clamp(36px, 6vw, 64px); background: var(--navy-800); }
.cta-band .hero__bg { z-index: 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,39,71,.95), rgba(15,39,71,.6)); }
.cta-band > *:not(.hero__bg) { position: relative; z-index: 2; }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: #cfdbea; max-width: 560px; }

/* Servicios: navegación interna */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; white-space: nowrap; padding: 14px 14px; font-weight: 600; font-size: .92rem; color: var(--muted); border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--navy-800); border-bottom-color: var(--cyan-500); }
.service-block { padding: clamp(48px, 7vw, 88px) 0; border-bottom: 1px solid var(--line); }
.service-block:nth-of-type(even) { background: var(--bg-soft); }
.service-block .icon-badge { width: 60px; height: 60px; }

/* Casos */
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case img { width: 100%; aspect-ratio: 950 / 447; object-fit: cover; }
.case__body { padding: 18px 20px; }
.case__route { font-size: .85rem; color: var(--cyan-500); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.case__body h3 { margin: 4px 0 0; font-size: 1.1rem; }

/* Herramientas */
.tool { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); transition: .2s; }
.tool:hover { border-color: var(--cyan-500); box-shadow: var(--shadow); color: var(--ink); }
.tool .icon-badge { flex: none; margin: 0; }
.tool h3 { font-size: 1.05rem; margin: 0 0 4px; }
.tool p { margin: 0; color: var(--muted); font-size: .9rem; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list a { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.doc-list a:hover { border-color: var(--cyan-500); color: var(--navy-800); }
.doc-list .tag { margin-left: auto; font-size: .72rem; font-weight: 700; background: var(--cyan-100); color: var(--cyan-500); padding: 3px 8px; border-radius: 6px; }
.doc-list svg { width: 22px; height: 22px; color: var(--cyan-500); flex: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button { border: 1px solid var(--line); background: #fff; padding: 9px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); font-family: inherit; font-size: .9rem; }
.tabs button[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab-panel[hidden] { display: none; }
.spec-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.spec { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
table.spec th, table.spec td { padding: 11px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.spec thead th { background: var(--navy-800); color: #fff; font-weight: 600; }
table.spec tbody th { color: var(--muted); font-weight: 600; }
table.spec td { font-variant-numeric: tabular-nums; }
table.spec tbody tr:last-child > * { border-bottom: 0; }
.container-figure { border-radius: var(--radius); max-width: 520px; }

.links-grid a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); height: 100%; }
.links-grid a:hover { border-color: var(--cyan-500); box-shadow: var(--shadow); }
.links-grid strong { display: block; color: var(--navy-800); }
.links-grid span { color: var(--muted); font-size: .88rem; }

/* ---------- Formularios ---------- */
.form-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--line); }
fieldset { border: 0; padding: 0; margin: 0 0 30px; }
legend { font-family: var(--font-head); font-weight: 800; color: var(--navy-800); font-size: 1.1rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
legend .step { width: 30px; height: 30px; border-radius: 50%; background: var(--cyan-500); color: #fff; display: inline-grid; place-items: center; font-size: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--navy-800); }
.field label .req { color: #d14343; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #cdd6e2; border-radius: 10px; font: inherit; font-size: .95rem; color: var(--ink); background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-500); box-shadow: 0 0 0 4px rgba(0,172,222,.15); }
.field textarea { min-height: 130px; resize: vertical; }
.field .error { display: none; color: #d14343; font-size: .8rem; margin-top: 4px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d14343; }
.field.invalid .error { display: block; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice > span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid #cdd6e2; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.choice input:checked + span { border-color: var(--cyan-500); background: var(--cyan-100); color: var(--navy-800); }
.choice input:focus-visible + span { outline: 3px solid var(--amber-500); outline-offset: 2px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-note { font-size: .82rem; color: var(--muted); }

/* Contacto */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; }
.contact-list .icon-badge { flex: none; margin: 0; width: 46px; height: 46px; }
.contact-list strong { display: block; color: var(--navy-800); }
.contact-list span, .contact-list a { color: var(--muted); }
.cities { display: flex; flex-wrap: wrap; gap: 8px; }
.cities span { padding: 6px 14px; border-radius: 999px; background: var(--cyan-100); color: var(--navy-800); font-weight: 600; font-size: .88rem; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius); display: block; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.person small { text-transform: uppercase; font-weight: 700; letter-spacing: .08em; color: var(--cyan-500); font-size: .72rem; }
.person strong { display: block; color: var(--navy-800); }

/* ---------- Pie de página ---------- */
.footer { background: var(--navy-900); color: #9fb3cb; padding: 70px 0 0; font-size: .93rem; }
.footer a { color: #cfdbea; }
.footer a:hover { color: var(--cyan-400); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 12px; margin-bottom: 16px; }
.footer__logo img { height: 46px; width: auto; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 50px; padding: 20px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } .topbar__info .hide-sm { display: none; } }

/* WhatsApp / llamada flotante y volver arriba */
.fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 54px; height: 54px; border-radius: 50%; background: var(--amber-500); color: var(--navy-900); display: grid; place-items: center; box-shadow: var(--shadow-lg); }
.fab:hover { color: var(--navy-900); transform: scale(1.05); }
.fab svg { width: 24px; height: 24px; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Icono del botón de menú: hamburguesa / cerrar */
.menu-toggle .i-close { display: none; }
body.nav-open .menu-toggle .i-open { display: none; }
body.nav-open .menu-toggle .i-close { display: inline-flex; }
.menu-toggle span { display: inline-flex; }
body.nav-open .header { background: #fff; }


/* ===== Ajustes 2026-10: navegación, proyectos, formularios ===== */
.nav a.nav__link--pay { background: var(--cyan-100); color: var(--navy-800); gap: 6px; }
.nav a.nav__link--pay:hover { background: var(--cyan-500); color: #fff; }
@media (min-width: 1081px) and (max-width: 1260px) {
  .nav a.nav__link, .nav button.nav__link { padding: 10px 9px; font-size: .9rem; }
  .brand img { height: 46px; }
  .header__actions .btn { padding: .7rem 1.1rem; }
}

/* Proyectos especiales: galería de fotos */
.case__photos { display: grid; gap: 4px; background: var(--line); }
.case__photos--3 { grid-template-columns: repeat(3, 1fr); }
.case__photos--2 { grid-template-columns: repeat(2, 1fr); }
.case__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.case { overflow: hidden; }
.case:hover .case__photos img { transform: scale(1.04); }
.case__photos { overflow: hidden; }
.case__photos img { min-width: 0; }
@media (max-width: 560px) { .case__photos--3 { grid-template-columns: 1fr 1fr; } .case__photos--3 img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }

/* Formularios: señuelo anti-spam y mensajes de estado */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.form-status[hidden] { display: none !important; }
.form-status--ok { background: #e6f6ee; color: #14663f; border: 1px solid #b7e3cb; }
.form-status--err { background: #fdecec; color: #9b2222; border: 1px solid #f3c1c1; }

/* ===== Animaciones ===== */
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); } 70% { box-shadow: 0 0 0 16px rgba(245,165,36,0); } 100% { box-shadow: 0 0 0 0 rgba(245,165,36,0); } }
.hero__bg, .page-hero .hero__bg, .cta-band .hero__bg { overflow: hidden; }
.hero .hero__bg > img, .page-hero .hero__bg > img, .cta-band .hero__bg > img { animation: kenburns 22s ease-in-out infinite alternate; will-change: transform; }
.hero .container > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .container > :nth-child(1) { animation-delay: .1s; }
.hero .container > :nth-child(2) { animation-delay: .25s; }
.hero .container > :nth-child(3) { animation-delay: .4s; }
.hero .container > :nth-child(4) { animation-delay: .55s; }
.hero .container > :nth-child(5) { animation-delay: .7s; }
.hero__badges div { animation: floaty 5s ease-in-out infinite; }
.hero__badges div:nth-child(2) { animation-delay: .6s; }
.hero__badges div:nth-child(3) { animation-delay: 1.2s; }
.hero__badges div:nth-child(4) { animation-delay: 1.8s; }
.page-hero .container > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.page-hero .container > :nth-child(2) { animation-delay: .12s; }
.page-hero .container > :nth-child(3) { animation-delay: .24s; }
.fab { animation: pulse-ring 2.4s ease-out infinite; }
.card .ph, .split .ph { overflow: hidden; }
.card .ph > img, .split .ph > img { transition: transform .8s ease; }
a.card:hover .ph > img, .split .ph:hover > img { transform: scale(1.06); }
.reveal:nth-child(2) { transition-delay: .08s; } .reveal:nth-child(3) { transition-delay: .16s; } .reveal:nth-child(4) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero__bg > img, .page-hero .hero__bg > img, .cta-band .hero__bg > img, .hero .container > *, .page-hero .container > *,
  .hero__badges div, .fab { animation: none !important; }
}

/* Áreas: los correos largos se parten dentro del recuadro */
.people { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.person { min-width: 0; }
.person a { display: block; overflow-wrap: anywhere; word-break: break-word; font-size: .95rem; }
.person { padding: 18px 16px; }
.person a { font-size: .86rem; letter-spacing: -.01em; }

/* Menú: botones (con submenú) y enlaces con exactamente la misma altura y línea base */
.nav > ul { align-items: center; }
.nav li { display: flex; align-items: center; }
.nav a.nav__link, .nav button.nav__link {
  box-sizing: border-box; height: 42px; line-height: 1.2; margin: 0; vertical-align: middle;
  font-family: inherit; font-size: .95rem; font-weight: 600; -webkit-appearance: none; appearance: none;
}
@media (min-width: 1081px) and (max-width: 1260px) { .nav a.nav__link, .nav button.nav__link { font-size: .9rem; } }
@media (max-width: 1080px) { .nav li { display: block; } .nav a.nav__link, .nav button.nav__link { height: auto; } }

/* Aviso de envío de formularios */
.notice { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px; background: rgba(10,27,51,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: notice-fade .25s ease both; }
.notice__card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 34px 28px 28px; text-align: center; box-shadow: 0 30px 70px rgba(0,0,0,.35); animation: notice-pop .35s cubic-bezier(.2,.9,.3,1.2) both; }
.notice__icon { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #e6f6ee; color: #14a35c; }
.notice__card--err .notice__icon { background: #fdecec; color: #d14343; }
.notice__icon svg { width: 36px; height: 36px; }
.notice__card h2 { font-size: 1.5rem; margin: 0 0 8px; }
.notice__card p { color: var(--muted); margin: 0 0 22px; }
.notice__close { min-width: 160px; }
@keyframes notice-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes notice-pop { from { opacity: 0; transform: translateY(14px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .notice, .notice__card { animation: none; } }
