/* ============ Atlántico Containers ============ */
:root {
  --navy-900: #0a1f33;
  --navy-800: #0e2a44;
  --navy-700: #143756;
  --navy-600: #1c4a70;
  --navy-400: #3a6d99;
  --navy-300: #7fa3c2;
  --accent: #e8622c;
  --accent-dark: #c94e1d;
  --paper: #f7f9fb;
  --white: #ffffff;
  --ink: #17263a;
  --ink-soft: #4a5b70;
  --line: #dde5ec;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(10, 31, 51, 0.10);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-dark); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 0.5em; }
h3 { font-size: 1.1rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.accent { color: var(--accent); }
.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 18px 0 26px; }
.section-intro { max-width: 640px; color: var(--ink-soft); margin-bottom: 36px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 31, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-block { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text { color: var(--white); font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-text strong { color: var(--accent); font-weight: 700; }
.brand-legal {
  color: rgba(255,255,255,0.55); font-size: 0.6rem; letter-spacing: 0.02em;
  margin-top: 2px; white-space: nowrap;
}

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent); color: var(--white) !important;
  padding: 9px 18px; border-radius: 999px; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-dark); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--white);
  padding: 72px 0 64px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--navy-300); }
.hero .lead { color: rgba(255,255,255,0.82); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero-points li {
  position: relative; padding-left: 22px; font-size: 0.92rem; color: rgba(255,255,255,0.75);
}
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 8px;
  font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-outline { border-color: var(--navy-600); color: var(--navy-600); padding: 10px 20px; font-size: 0.92rem; }
.btn-outline:hover { background: var(--navy-600); color: var(--white); }
.btn-block { width: 100%; }

/* ---------- Strip ventajas ---------- */
.strip { background: var(--navy-800); color: var(--white); padding: 40px 0; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.strip-item h3 { color: var(--accent); font-size: 1rem; margin-bottom: 6px; }
.strip-item p { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

/* ---------- Secciones ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--paper); }

/* ---------- Catálogo ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: var(--shadow); transition: transform 0.15s;
}
.card:hover { transform: translateY(-3px); }
.card-visual { background: var(--paper); border-radius: 8px; padding: 10px; }
.card-tag { font-size: 0.85rem; color: var(--accent-dark); font-weight: 600; }
.specs { display: grid; gap: 6px; font-size: 0.88rem; flex-grow: 1; }
.specs div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 5px; }
.specs dt { color: var(--ink-soft); }
.specs dd { font-weight: 600; text-align: right; }

/* ---------- Calidades ---------- */
.grades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grade {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.grade-badge {
  display: inline-block; padding: 4px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 14px; color: var(--white);
}
.grade-new { background: #2e7d32; }
.grade-cw { background: var(--navy-600); }
.grade-wwt { background: #8a6d1a; }
.grade h3 { margin-bottom: 8px; }
.grade p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Usos ---------- */
.uses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.use {
  border-left: 4px solid var(--accent); background: var(--paper);
  padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0;
}
.use h3 { margin-bottom: 6px; }
.use p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Proceso ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: paso; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--white); font-weight: 700; font-size: 1.05rem;
  margin-bottom: 12px;
}
.steps h3 { margin-bottom: 6px; font-size: 1rem; }
.steps p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Contacto ---------- */
.section-contact { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy .eyebrow { color: var(--navy-300); }
.contact-copy p { color: rgba(255,255,255,0.82); }
.contact-data { list-style: none; margin-top: 22px; display: grid; gap: 10px; }
.contact-data a { color: var(--accent); font-weight: 600; text-decoration: none; }
.contact-data a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); display: grid; gap: 16px;
}
.form-row { display: grid; gap: 6px; }
.form-row-2 { grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-2 > div { display: grid; gap: 6px; }
.contact-form label { font-size: 0.88rem; font-weight: 600; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px;
  font-family: inherit; font-size: 0.95rem; background: var(--paper);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: 2px solid var(--navy-400); outline-offset: 0; border-color: var(--navy-400); background: var(--white);
}
.field-hint { font-size: 0.8rem; margin-top: 2px; }
.field-hint a { color: var(--navy-600); font-weight: 600; text-decoration: none; }
.field-hint a:hover { text-decoration: underline; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.84rem; font-weight: 400 !important; color: var(--ink-soft); }
.form-consent input { width: auto; margin-top: 3px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { font-size: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: #2e7d32; }
.form-status.error { color: #c62828; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.6); padding: 26px 0; font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.75); }

/* ---------- Bloque de cobertura (portada) ---------- */
.section-cobertura { background: var(--navy-800); color: var(--white); }
.cobertura-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: center; }
.section-cobertura .eyebrow { color: var(--navy-300); }
.section-cobertura p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }
.cobertura-list { list-style: none; display: grid; gap: 12px; }
.cobertura-list li {
  background: rgba(255,255,255,0.06); border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 0 8px 8px 0; font-size: 0.92rem; color: rgba(255,255,255,0.75);
}
.cobertura-list strong { display: block; color: var(--white); font-size: 0.88rem; margin-bottom: 2px; }
@media (max-width: 900px) { .cobertura-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Buscador de terminales ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.finder-hero {
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--navy-700) 100%);
  color: var(--white); padding: 56px 0 44px;
}
.finder-hero .eyebrow { color: var(--navy-300); }
.finder-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.finder-hero .lead { color: rgba(255,255,255,0.82); max-width: 680px; margin-bottom: 0; }

.finder { padding: 0 0 72px; }
.finder-panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px 24px; margin-top: -28px; position: relative; z-index: 2;
}

.finder-search { position: relative; display: flex; align-items: center; }
.finder-search-icon {
  position: absolute; left: 14px; width: 20px; height: 20px; color: var(--ink-soft); pointer-events: none;
}
.finder-search input {
  width: 100%; padding: 14px 44px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 1.02rem; background: var(--paper);
}
.finder-search input:focus { outline: 2px solid var(--navy-400); border-color: var(--navy-400); background: var(--white); }
.finder-clear {
  position: absolute; right: 10px; border: 0; background: none; cursor: pointer;
  font-size: 1.5rem; line-height: 1; color: var(--ink-soft); padding: 0 6px;
}
.finder-clear:hover { color: var(--ink); }

.finder-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 20px; }
.filter-group { border: 0; padding: 0; min-width: 0; }
.filter-group legend {
  font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--ink-soft); margin-bottom: 8px; padding: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 0.84rem; color: var(--ink-soft); transition: 0.12s; user-select: none;
}
.chip span:hover { border-color: var(--navy-400); color: var(--navy-600); }
.chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.finder-meta {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; margin: 28px 0 4px;
}
.result-count { font-weight: 600; color: var(--ink-soft); font-size: 0.94rem; }
.finder-order {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 7px;
  background: var(--white); font-family: inherit; font-size: 0.88rem; color: var(--ink);
}

.group-title {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.11em;
  color: var(--accent); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.terminal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

.terminal {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
}
.terminal:hover { border-color: var(--navy-300); box-shadow: var(--shadow); }
.terminal-destacada { border-left: 4px solid var(--accent); }
.terminal-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.terminal-icon { width: 26px; height: 26px; color: var(--navy-400); }
.terminal-icon svg { width: 100%; height: 100%; }
.terminal h3 { font-size: 1rem; line-height: 1.3; }
.terminal-loc { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.terminal-badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 9px; border-radius: 999px; white-space: nowrap; color: var(--white);
}
.badge-maritimo { background: var(--navy-600); }
.badge-ferroviario { background: #4a5b70; }
.badge-depot { background: #8a6d1a; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.78rem; padding: 4px 10px; border-radius: 6px;
  background: var(--paper); border: 1px solid var(--line); color: var(--ink-soft);
}
.tag-stock { background: #e8f3ea; border-color: #b9d9c1; color: #24603a; }
.tag-stock b { font-weight: 700; }
.stock-consulta { font-size: 0.82rem; color: var(--ink-soft); font-style: italic; }
.btn-sm { padding: 8px 16px; font-size: 0.86rem; align-self: flex-start; margin-top: auto; }

.empty {
  background: var(--paper); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px 28px; text-align: center;
}
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-soft); font-size: 0.94rem; max-width: 460px; margin: 0 auto; }

.finder-note {
  margin-top: 34px; padding: 18px 20px; background: var(--paper);
  border-left: 4px solid var(--navy-300); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.9rem; color: var(--ink-soft);
}

@media (max-width: 900px) {
  .finder-filters { grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Página legal ---------- */
.legal-page { padding: 60px 0; max-width: 760px; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 20px; }
.legal-page h2 { font-size: 1.2rem; margin: 28px 0 8px; }
.legal-page p, .legal-page li { color: var(--ink-soft); font-size: 0.95rem; }
.legal-page ul { padding-left: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 440px; margin: 0 auto; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .grades { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--navy-900); flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0 !important; }
}
@media (max-width: 720px) {
  .brand-mark { width: 32px; height: 32px; }
  .brand-text { font-size: 1rem; }
  .brand-legal { font-size: 0.53rem; }
  .uses { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row-2 { grid-template-columns: 1fr; }
  .strip-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
