:root {
  --navy-900: #0A1826;
  --navy-800: #0E2233;
  --navy-700: #14304A;
  --ink: #1B2A38;
  --slate: #5C6B7A;
  --line: #E3E8ED;
  --bg: #FFFFFF;
  --bg-soft: #F5F7F9;
  --accent: #E8611C;
  --accent-dark: #C94E12;
  --font-head: "Archivo", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.container { width: min(1180px, 92%); margin: 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; }

.icon { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Top bar ===== */
.topbar {
  background: var(--navy-900);
  color: #A8B8C8;
  font-size: 13px;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-group { display: flex; gap: 24px; align-items: center; }
.topbar a { color: #A8B8C8; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: #fff; }
.topbar .icon { width: 14px; height: 14px; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
header.scrolled { box-shadow: 0 2px 16px rgba(10, 24, 38, .08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .04em;
  color: var(--navy-900);
}
.brand-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--slate);
  text-transform: uppercase;
  margin-top: 3px;
}

nav ul { display: flex; gap: 4px; list-style: none; align-items: center; }
nav ul a {
  display: block;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: color .15s, background .15s;
}
nav ul a:hover { color: var(--accent); background: var(--bg-soft); }
nav ul a.active { color: var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background .15s, border-color .15s, color .15s;
}
.btn .icon { width: 17px; height: 17px; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-nav { padding: 11px 22px; font-size: 14px; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy-900);
  margin: 6px 0; transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== Hero (inicio) ===== */
.hero {
  position: relative;
  background:
    linear-gradient(100deg, rgba(10,24,38,.97) 30%, rgba(10,24,38,.74) 70%, rgba(13,30,48,.55) 100%),
    url('../assets/hero-port.jpg') center 55% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 118px 0 150px;
  max-width: 640px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #9FB3C6;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--accent); }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  font-weight: 800;
  letter-spacing: -.015em;
  margin-bottom: 22px;
}
.hero p.lead {
  font-size: clamp(16px, 1.8vw, 18.5px);
  color: #B9C7D6;
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== Page hero (páginas interiores) ===== */
.page-hero {
  background:
    linear-gradient(100deg, rgba(10,24,38,.96) 40%, rgba(10,24,38,.78) 100%),
    url('../assets/hero-port.jpg') center 40% / cover no-repeat;
  color: #fff;
  padding: 72px 0 60px;
}
.page-hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.page-hero p { color: #B9C7D6; margin-top: 12px; max-width: 640px; font-size: 16.5px; }

/* ===== Franja de valor ===== */
.feat-band {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}
.feat-grid {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(10, 24, 38, .12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 24px;
  border-left: 1px solid var(--line);
}
.feat:first-child { border-left: none; }
.feat .icon { width: 26px; height: 26px; color: var(--accent); flex-shrink: 0; }
.feat strong { display: block; font-size: 14.5px; color: var(--navy-900); line-height: 1.3; }
.feat span { font-size: 12.5px; color: var(--slate); }

/* ===== Secciones ===== */
section { padding: 96px 0; }

.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--accent); }
.sec-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.sec-head p { color: var(--slate); font-size: 16.5px; }

/* ===== Tarjetas de servicio (inicio) ===== */
.bg-soft { background: var(--bg-soft); }

.svc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.svc:hover { box-shadow: 0 14px 40px rgba(10,24,38,.10); transform: translateY(-3px); }
.svc-img { height: 215px; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-body { padding: 0 36px 34px; display: flex; flex-direction: column; flex: 1; }
.svc-icon {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--navy-800);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -26px;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px #fff;
  margin-bottom: 20px;
}
.svc-icon .icon { width: 26px; height: 26px; }
.svc h3 { font-size: 21px; font-weight: 700; color: var(--navy-900); margin-bottom: 12px; }
.svc > .svc-body > p { color: var(--slate); font-size: 15px; margin-bottom: 20px; }
.svc ul { list-style: none; margin-bottom: 22px; }
.svc li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 7px 0;
  border-top: 1px solid var(--bg-soft);
}
.svc li .icon { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.svc-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14.5px;
  text-decoration: none;
}
.svc-link:hover { color: var(--accent-dark); }
.svc-link .icon { width: 16px; height: 16px; }

/* ===== Filas de servicio (página servicios) ===== */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.svc-row + .svc-row { margin-top: 88px; }
.svc-row-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}
.svc-row.flip .svc-row-img { order: 2; }
.svc-row h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--navy-900);
  margin-bottom: 14px;
}
.svc-row > div > p { color: var(--slate); font-size: 15.5px; margin-bottom: 18px; }
.svc-row ul { list-style: none; }
.svc-row li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.svc-row li .icon { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* ===== Capacidades ===== */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
}
.cap .icon { color: var(--accent); flex-shrink: 0; width: 22px; height: 22px; }

/* ===== Por qué ===== */
.dark { background: var(--navy-900); color: #fff; }
.dark .sec-head h2 { color: #fff; }
.dark .sec-head p { color: #9FB3C6; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.why {
  background: var(--navy-800);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 34px 30px;
}
.why .icon { width: 30px; height: 30px; color: var(--accent); margin-bottom: 20px; }
.why h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.why p { color: #9FB3C6; font-size: 14.5px; }

/* ===== Proceso ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  counter-reset: paso;
}
.stepc { position: relative; padding-top: 22px; }
.stepc::before {
  counter-increment: paso;
  content: "0" counter(paso);
  position: absolute;
  top: 0; left: 0;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  background: var(--navy-800);
  padding: 6px 12px;
  border-radius: 5px;
  line-height: 1;
  transform: translateY(-50%);
}
.stepc-body { border-top: 2px solid var(--line); padding-top: 24px; }
.stepc h4 { font-size: 17px; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; }
.stepc p { font-size: 14.5px; color: var(--slate); }

/* ===== Nosotros ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: start;
}
.about-grid .sec-head { margin-bottom: 24px; }
.about-grid > div > p { color: var(--slate); margin-bottom: 16px; font-size: 15.5px; }
.about-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
  display: block;
}

.commit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 36px 34px;
}
.commit h3 {
  font-size: 17px; font-weight: 700; color: var(--navy-900);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.commit ul { list-style: none; }
.commit li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 11px 0;
  font-size: 14.5px;
}
.commit li .icon { width: 19px; height: 19px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.commit li strong { display: block; color: var(--navy-900); font-size: 14.5px; }
.commit li p { color: var(--slate); font-size: 13.5px; margin: 0; }

/* ===== CTA banner ===== */
.cta-banner {
  background: linear-gradient(90deg, var(--navy-800), var(--navy-700));
  color: #fff;
  padding: 64px 0;
}
.cta-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.cta-banner p { color: #9FB3C6; font-size: 15.5px; }

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.ci-list { display: grid; gap: 14px; margin-top: 34px; }
.ci {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 20px;
}
.ci .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; width: 21px; height: 21px; }
.ci strong { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); font-weight: 600; margin-bottom: 2px; }
.ci a, .ci span.d { color: var(--navy-900); font-weight: 600; font-size: 15px; text-decoration: none; }
.ci a:hover { color: var(--accent); }

form.contact {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 42px 40px;
  box-shadow: 0 14px 40px rgba(10,24,38,.07);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: 7px;
}
input, select, textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(14,34,51,.10);
}
textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 12.5px; color: var(--slate); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  display: none;
  border-radius: 6px;
  padding: 13px 17px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px;
}
.alert.show { display: block; }
.alert-ok { background: #EDF8F1; border: 1px solid #4CAF7A; color: #1E6B44; }
.alert-err { background: #FDF0EE; border: 1px solid #D9534F; color: #8A2622; }

/* ===== Prose (páginas legales) ===== */
.prose { max-width: 780px; }
.prose h2 { font-size: 20px; color: var(--navy-900); margin: 34px 0 10px; }
.prose p, .prose li { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.prose ul { padding-left: 22px; margin-bottom: 12px; }
.prose a { color: var(--accent); }
.prose .updated { font-size: 13px; color: var(--slate); font-style: italic; }

/* ===== 404 ===== */
.err-wrap { min-height: 55vh; display: grid; place-items: center; text-align: center; padding: 90px 0; }
.err-wrap .code { font-family: var(--font-head); font-size: 90px; font-weight: 800; color: var(--line); line-height: 1; }
.err-wrap h1 { font-size: 26px; color: var(--navy-900); margin: 14px 0 10px; }
.err-wrap p { color: var(--slate); margin-bottom: 26px; }

/* ===== Footer ===== */
footer { background: var(--navy-900); color: #8FA3B5; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding: 64px 0 48px;
}
.footer-grid h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-grid p { font-size: 14px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 11px; }
.footer-grid a { color: #8FA3B5; text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-tag { color: #8FA3B5; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.footer-contact .icon { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.footer-contact a { color: #8FA3B5; text-decoration: none; }
.footer-contact a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer-bottom a { color: #8FA3B5; text-decoration: none; margin-left: 22px; }
.footer-bottom a:hover { color: #fff; }

/* ===== WhatsApp ===== */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  z-index: 90;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25D366;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 26px rgba(0,0,0,.22);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat:nth-child(3) { border-left: none; }
  .feat { border-top: 1px solid var(--line); }
  .feat:nth-child(-n+2) { border-top: none; }
  .svc-grid, .why-grid { grid-template-columns: 1fr; }
  .cap-grid, .steps { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .about-grid, .contact-grid, .svc-row { grid-template-columns: 1fr; gap: 40px; }
  .svc-row.flip .svc-row-img { order: 0; }
  .svc-row-img img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .topbar-group.right { display: none; }
  nav ul {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 82vw);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 34px 34px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .28s ease;
    box-shadow: -12px 0 32px rgba(10,24,38,.14);
    z-index: 99;
  }
  nav ul.open { transform: translateX(0); }
  nav ul a { font-size: 16px; width: 100%; }
  .hamburger { display: block; position: relative; z-index: 101; }
  .nav .btn-nav { display: none; }
  section { padding: 72px 0; }
  .hero-inner { padding: 72px 0 130px; }
  .form-row { grid-template-columns: 1fr; }
  .cap-grid, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
