/* ============================================================
   Centro de Acopio Inter Sea SpA — Hoja de estilos
   ============================================================ */

:root {
  --navy-900: #12163a;
  --navy-800: #1a2158;
  --navy-700: #232d72;
  --navy-600: #2d3a8c;
  --navy-050: #eef0fa;
  --orange-500: #f5a623;
  --orange-600: #e0910f;
  --ink: #1a1c29;
  --muted: #5c6178;
  --muted-light: #8a8fa3;
  --line: #e4e6f0;
  --bg-soft: #e7ecf7;
  --white: #ffffff;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(18, 22, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 22, 58, 0.12);
  --container: 1180px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
section { position: relative; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 10px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 44px;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.section-head p { color: var(--muted); margin: 0; font-size: 1.03rem; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.pad { padding: 96px 0; }
.pad-sm { padding: 64px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy-900); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--orange-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.btn-navy { background: var(--navy-800); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ============================================================
   Header / Navegación
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 1.05rem; color: var(--navy-900); letter-spacing: 0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text span { font-size: 0.72rem; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--navy-800);
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { background: var(--navy-050); }
.nav-links a.active { color: var(--orange-600); }
.nav-links .pdf-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-links .pdf-link svg { width: 14px; height: 14px; opacity: 0.7; }

.nav-cta { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.nav-cta .btn { padding: 10px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; color: var(--navy-900); }

@media (max-width: 980px) {
  .nav-links, .nav-cta .btn-outline-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn-primary { padding: 9px 16px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
  .brand-text span { display: none; }
  .brand-text strong { font-size: 0.95rem; }
  .brand img { height: 34px; }
  .nav-cta .btn-primary { display: none; }
}

.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 490;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu ul { display: flex; flex-direction: column; padding: 10px 24px 20px; }
.mobile-menu a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu li:last-child a { border-bottom: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + 88px);
  padding-bottom: 100px;
  background:
    linear-gradient(100deg, rgba(14,18,46,0.78) 0%, rgba(18,22,58,0.5) 42%, rgba(22,27,68,0.32) 70%, rgba(22,27,68,0.22) 100%),
    url("../assets/img/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,166,35,0.14);
  border: 1px solid rgba(245,166,35,0.4);
  color: var(--orange-500);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 22px;
}
.hero-badge svg { width: 15px; height: 15px; }
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--orange-500); }
.hero p.lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.88);
  max-width: 520px;
  margin: 0 0 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.16);
}
.hero-meta div { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: rgba(255,255,255,0.9); }
.hero-meta svg { width: 18px; height: 18px; color: var(--orange-500); flex-shrink: 0; }

.hero-panel {
  background: rgba(18,22,58,0.55);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(6px);
}
.hero-panel .wheel-icon { width: 92px; height: 92px; margin: 0 auto 20px; opacity: 0.95; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hero-stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.6rem; color: var(--orange-500); margin-bottom: 4px; }
.hero-stat span { font-size: 0.8rem; color: rgba(255,255,255,0.8); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 460px; }
}

/* ============================================================
   Historia / Nosotros
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.about-card h3 {
  display: flex; align-items: center; gap: 12px;
  font-size: 1.15rem; color: var(--navy-900); margin: 0 0 14px;
}
.about-card h3 svg { width: 22px; height: 22px; color: var(--orange-500); }
.about-card p { color: var(--muted); margin: 0 0 12px; }
.about-card p:last-child { margin-bottom: 0; }

.cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.cert-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--navy-050);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
}
.cert-chip svg { width: 18px; height: 18px; color: var(--orange-600); }

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

/* ---------- Vision / Mision / Valores ---------- */
.vmv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.vmv-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vmv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vmv-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.vmv-icon svg { width: 26px; height: 26px; color: var(--orange-500); }
.vmv-card h3 { margin: 0 0 10px; font-size: 1.15rem; color: var(--navy-900); }
.vmv-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 900px) {
  .vmv-grid { grid-template-columns: 1fr; }
}

/* ---------- Organigrama ---------- */
.orgchart { margin-top: 48px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.orgchart-label { text-align: center; margin-bottom: 20px; }
.orgchart-label span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.org-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.org-node {
  background: var(--navy-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  min-width: 150px;
}
.org-node.top { background: var(--orange-500); color: var(--navy-900); }
.org-node.lvl2 { background: var(--navy-700); font-weight: 600; }
.org-node.lvl3 { background: var(--navy-600); font-weight: 600; font-size: 0.82rem; min-width: 130px; }
.org-connector { width: 2px; height: 22px; background: var(--line); }

/* ============================================================
   Servicios
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  text-align: center;
}
.stat-box strong { display: block; font-size: 1.6rem; color: var(--navy-900); }
.stat-box span { font-size: 0.82rem; color: var(--muted); }

@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.svc-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.svc-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--navy-050);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.svc-icon svg { width: 19px; height: 19px; color: var(--navy-800); }
.svc-card h4 { margin: 0 0 6px; font-size: 0.98rem; color: var(--navy-900); }
.svc-card p { margin: 0; color: var(--muted); font-size: 0.87rem; }

@media (max-width: 900px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .svc-grid { grid-template-columns: 1fr; }
}

.subhead {
  display: flex; align-items: center; gap: 9px;
  font-size: 1.08rem; color: var(--navy-900); margin: 0 0 14px;
}
.subhead svg { width: 20px; height: 20px; color: var(--orange-500); }

#servicios.pad { padding: 68px 0; }
#servicios .section-head { margin-bottom: 32px; }

.resolution-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy-050);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-top: 14px;
}

/* Pilares (desafios) */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 32px; }
.pillar {
  border-radius: var(--radius);
  padding: 20px 20px;
  color: #fff;
}
.pillar:nth-child(1) { background: var(--navy-900); }
.pillar:nth-child(2) { background: var(--navy-700); }
.pillar:nth-child(3) { background: var(--navy-600); }
.pillar .num { font-size: 0.76rem; font-weight: 800; color: var(--orange-500); letter-spacing: 0.1em; }
.pillar h4 { margin: 5px 0 10px; font-size: 1rem; }
.pillar ul li { position: relative; padding-left: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-bottom: 6px; }
.pillar ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange-500); }

@media (max-width: 900px) {
  .pillar-grid { grid-template-columns: 1fr; }
}

/* Flota */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fleet-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px;
  text-align: center;
}
.fleet-item svg { width: 24px; height: 24px; color: var(--orange-600); margin: 0 auto 8px; }
.fleet-item strong { display: block; font-size: 1.2rem; color: var(--navy-900); }
.fleet-item span { font-size: 0.78rem; color: var(--muted); }

@media (max-width: 900px) {
  .fleet-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Ubicacion
   ============================================================ */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.dist-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.dist-table th, .dist-table td {
  padding: 13px 16px;
  text-align: left;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--line);
}
.dist-table th {
  background: var(--navy-900);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dist-table tr:last-child td { border-bottom: none; }
.dist-table td:last-child { font-weight: 700; color: var(--navy-800); white-space: nowrap; }
.dist-table tr:nth-child(even) td { background: var(--bg-soft); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  height: 100%;
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

@media (max-width: 900px) {
  .loc-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Seguridad / Ambiente / Comunidad + Politicas
   ============================================================ */
.sac-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.sac-card { text-align: left; }
.sac-icon {
  width: 58px; height: 58px;
  border-radius: 16px;
  background: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.sac-icon svg { width: 28px; height: 28px; color: var(--orange-500); }
.sac-card h3 { margin: 0 0 10px; color: var(--navy-900); font-size: 1.1rem; }
.sac-card p { margin: 0; color: var(--muted); font-size: 0.93rem; }

@media (max-width: 900px) {
  .sac-grid { grid-template-columns: 1fr; }
}

.policy-list { display: flex; flex-direction: column; gap: 14px; max-width: 780px; margin: 0 auto; }
.policy-item {
  display: flex; align-items: flex-start; gap: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
}
.policy-item .idx {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--navy-900);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.95rem;
}
.policy-item p { margin: 0; padding-top: 5px; font-size: 0.95rem; color: var(--ink); }

/* ============================================================
   Contacto
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.contact-card .role { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 6px; display: block; }
.contact-card h3 { margin: 0 0 16px; color: var(--navy-900); font-size: 1.2rem; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 0.94rem; color: var(--muted); margin-bottom: 10px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { width: 18px; height: 18px; color: var(--navy-800); flex-shrink: 0; }
.contact-line a:hover { color: var(--orange-600); }

.contact-strip {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.contact-strip .item {
  background: var(--navy-050);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.contact-strip .item svg { width: 20px; height: 20px; color: var(--navy-800); flex-shrink: 0; }
.contact-strip .item span { font-size: 0.86rem; font-weight: 600; color: var(--navy-900); }

@media (max-width: 900px) {
  .contact-grid, .contact-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,0.78); padding: 64px 0 28px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer-logo-badge {
  background: #fff;
  border-radius: 50%;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.footer-logo-badge img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand strong { display: block; color: #fff; font-size: 1.1rem; }
.footer-brand span { font-size: 0.8rem; color: rgba(255,255,255,0.6); }
.footer-quote { font-style: italic; color: rgba(255,255,255,0.7); max-width: 360px; font-size: 0.92rem; }
.footer-col h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.72); display: inline-flex; align-items: center; gap: 8px; }
.footer-col a:hover { color: var(--orange-500); }
.footer-col a svg { width: 15px; height: 15px; opacity: 0.7; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

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

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 24px; bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 400;
  border: none;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc responsive ---------- */
@media (max-width: 640px) {
  .pad { padding: 64px 0; }
  .pad-sm { padding: 44px 0; }
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 64px; }
}
