/* ==========================================================
   subpaginas.css — complementa style.css (no lo reemplaza)
   Componentes para la estructura multipágina de BSGx Logistics
   ========================================================== */

/* Accesibilidad: saltar al contenido */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: #0b3d91;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; }

/* Navegación: con 7 enlaces el menú necesita más ancho */
.nav-logo img { width: 200px; height: auto; }
.nav-links a[aria-current="page"] { color: #0b3d91; }
@media (min-width: 768px) and (max-width: 1099px) {
  .nav-links { display: none; }
}
@media (min-width: 1100px) {
  .nav-links { display: flex; gap: 22px; }
}

/* Hero de subpáginas: más bajo que el de la portada */
.hero-sub { padding: 130px 20px 70px; }
.hero-sub h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
.hero-sub .hero-badge { margin-bottom: 18px; }

/* Migas de pan (anula los estilos globales de <nav>) */
nav.breadcrumb {
  position: static;
  width: auto;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  padding: 0;
  margin-bottom: 18px;
  z-index: auto;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #cbd5e1;
}
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #94a3b8; }
.breadcrumb a { color: #e2e8f0; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* Utilidades que reemplazan estilos en línea */
.section-head { max-width: 800px; margin: 0 auto 48px; }
.narrow { max-width: 880px; }
.text-muted { color: #4b5563; margin-bottom: 18px; }
.on-dark { color: #fff; }
.contact-intro { color: #cbd5e1; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.map-frame { width: 100%; height: 100%; min-height: 360px; border: none; border-radius: 28px; box-shadow: 0 20px 35px -12px rgba(0,0,0,0.3); }

/* Enlaces dentro de tarjetas */
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: #0b3d91;
  text-decoration: none;
}
.card-link:hover { color: #8c1f01; text-decoration: underline; }
.card .card-link { margin-top: auto; padding-top: 14px; }
.card p { margin-bottom: 4px; }
.port-card h3 a { color: inherit; text-decoration: none; }
.port-card h3 a:hover { text-decoration: underline; }

/* Lista de datos clave (GEO) */
.fact-list {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  background: #f0f4ff;
  padding: 18px 22px;
  border-radius: 18px;
  color: #374151;
  font-size: 0.95rem;
}
.fact-list strong { color: #0b3d91; }

/* Paneles destacados (China / ventaja diferencial / CTA) */
.highlight-panel {
  margin-top: 32px;
  padding: 28px 32px;
  background: #f0f4ff;
  border-radius: 24px;
  border-left: 5px solid #0b3d91;
}
.highlight-panel.accent {
  background: linear-gradient(135deg, #fef9e6, #fff4e0);
  border-left-color: #e8491d;
}
.highlight-panel h3 { font-size: 1.25rem; font-weight: 800; color: #1a1a2e; margin-bottom: 10px; }
.highlight-panel p { color: #4b5563; }

/* Proceso como lista ordenada */
.process-list { list-style: none; padding: 0; }

/* Mini-estadísticas como lista */
.coverage-redesign .value-stats-mini { list-style: none; }
.coverage-redesign .mini-stat { justify-content: flex-start; gap: 10px; }
.coverage-redesign .mini-stat span { font-size: 0.9rem; font-weight: 600; color: #1f2937; }

/* FAQ: el h3 envuelve al botón sin alterar el diseño */
.accordion-heading { margin: 0; font-size: inherit; font-weight: inherit; }

/* Bloque "En resumen" (respuesta directa para buscadores e IA) */
.summary-box {
  background: #f0f4ff;
  border: 1px solid #dbe4ff;
  border-left: 6px solid #0b3d91;
  border-radius: 20px;
  padding: 22px 26px;
  margin-bottom: 40px;
}
.summary-title {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: #8c1f01;
  margin-bottom: 10px;
}
.summary-box ul { list-style: disc; padding-left: 20px; color: #1f2937; display: grid; gap: 6px; }

/* Contenido largo de subpáginas */
.content-section { padding-top: 60px; }
.content { max-width: 860px; }
.content h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 900;
  color: #1a1a2e;
  line-height: 1.25;
  margin: 44px 0 14px;
}
.content h2:first-of-type { margin-top: 0; }
.content h3 { font-size: 1.2rem; font-weight: 800; color: #0b3d91; margin: 26px 0 8px; }
.content p { color: #374151; margin-bottom: 16px; font-size: 1.05rem; }
.content ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; color: #374151; }
.content ul li { margin-bottom: 6px; }
.content a:not(.card-link) { color: #0b3d91; text-decoration: underline; text-underline-offset: 3px; }
.content strong { color: #1a1a2e; }
.post-meta { font-size: 0.9rem !important; color: #6b7280 !important; margin-bottom: 24px !important; }
.note { font-size: 0.85rem !important; color: #6b7280 !important; font-style: italic; }

/* Pasos numerados */
.steps { counter-reset: paso; list-style: none; padding: 0; margin-bottom: 18px; }
.steps li {
  counter-increment: paso;
  position: relative;
  padding: 14px 18px 14px 64px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  color: #374151;
}
.steps li::before {
  content: counter(paso);
  position: absolute;
  left: 16px;
  top: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0b3d91;
  color: #fff;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Tablas de datos */
.table-wrap { overflow-x: auto; margin: 8px 0 12px; border-radius: 18px; border: 1px solid #e5e7eb; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.data-table caption { text-align: left; padding: 12px 16px; font-weight: 700; color: #1a1a2e; background: #f8fafc; }
.data-table th, .data-table td { padding: 12px 16px; text-align: left; border-top: 1px solid #e5e7eb; vertical-align: top; }
.data-table thead th { background: #0b3d91; color: #fff; font-weight: 700; border-top: 0; }
.data-table tbody th { font-weight: 700; color: #1a1a2e; }
.data-table tbody tr:nth-child(even) { background: #f8fafc; }

/* Tarjetas de páginas relacionadas */
.related { padding-top: 70px; padding-bottom: 70px; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 10px; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }
.related-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid #edf2f7;
  border-left: 5px solid #0b3d91;
  border-radius: 20px;
  padding: 22px;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 28px rgba(0,0,0,0.08); }
.related-name { font-weight: 800; font-size: 1.1rem; color: #1a1a2e; line-height: 1.3; }
.related-name a { color: inherit; text-decoration: none; }
.related-desc { color: #4b5563; font-size: 0.92rem; line-height: 1.5; }
.related-more { margin-top: auto; font-weight: 700; color: #0b3d91; text-decoration: none; }

/* Pie de página con enlaces */
footer { text-align: left; padding: 56px 20px 90px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-title { color: #fff; font-weight: 800; margin-bottom: 12px; font-size: 1rem; }
.footer-links { list-style: none; display: grid; gap: 8px; font-size: 0.92rem; }
.footer-links a, .footer-nap a, .footer-copy a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover, .footer-nap a:hover, .footer-copy a:hover { color: #fff; text-decoration: underline; }
.footer-nap { font-style: normal; font-size: 0.92rem; line-height: 1.8; color: #9ca3af; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 20px; font-size: 0.85rem; text-align: center; }

/* Botón de cotizar en el menú: sin saltos de línea en móvil */
.nav-cta { white-space: nowrap; }
@media (max-width: 480px) {
  .nav-logo img { width: 140px; }
  .nav-cta { padding: 9px 16px; font-size: 0.85rem; }
}
.hero-sub { padding-top: 150px; }
