/* ============================================================
   FleteExpert · Hoja de estilo para páginas legales
   (Términos, Privacidad, Aviso de Operación)
   Reutiliza el sistema visual del sitio: mismos tokens,
   misma tipografía y el mismo header/footer en versión compacta.
   ============================================================ */

:root {
  --green:      #47FF00;
  --green-dark: #2BCC00;
  --ink:        #0A0A0A;
  --ink-2:      #2A2A2A;
  --ink-3:      #5C5C5C;
  --ink-4:      #8A8A8A;
  --paper:      #FFFFFF;
  --paper-2:    #FAFAFA;
  --bg-3:       #F4F4F4;
  --line:       #E5E5E5;
  --line-soft:  #EFEFEF;

  --display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --body:    'Inter', 'Plus Jakarta Sans', system-ui, sans-serif;
  --logo:    'Poppins', 'Arial Black', sans-serif;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --shadow-md: 0 6px 18px rgba(10, 10, 10, 0.08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-3);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--green-dark); }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* ── Header ─────────────────────────────────────────────── */
.lg-header {
  background: var(--ink);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}
.lg-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.lg-brand {
  font-family: var(--logo);
  font-style: italic;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
}
.lg-brand em { color: var(--green); font-style: italic; }
.lg-back {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.lg-back:hover { color: var(--green); }

/* ── Contenido ──────────────────────────────────────────── */
.lg-main { padding: 56px 0 72px; }

.lg-eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}

.lg-title {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 0 14px;
}

.lg-updated {
  font-size: 13.5px;
  color: var(--ink-4);
  margin: 0 0 34px;
}

.lg-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow-md);
}

.lg-card h2 {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 34px 0 10px;
}
.lg-card h2:first-child { margin-top: 0; }

.lg-card h3 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 22px 0 8px;
}

.lg-card p { margin: 0 0 14px; }
.lg-card ul { margin: 0 0 16px; padding-left: 20px; }
.lg-card li { margin-bottom: 7px; }
.lg-card strong { color: var(--ink); font-weight: 600; }

.lg-note {
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 22px 0;
  font-size: 15px;
}
.lg-note p:last-child { margin-bottom: 0; }

.lg-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--green);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.lg-btn:hover { background: var(--green-dark); color: var(--ink); transform: translateY(-1px); }
.lg-btn.ghost {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--ink);
}
.lg-btn.ghost:hover { background: var(--paper-2); border-color: var(--ink-4); }

.lg-btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ── Breadcrumb ─────────────────────────────────────────── */
.lg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-4);
  margin-bottom: 18px;
}
.lg-crumbs a { color: var(--ink-3); text-decoration: none; }
.lg-crumbs a:hover { color: var(--green-dark); text-decoration: underline; }
.lg-crumbs span[aria-hidden] { color: var(--line); }
.lg-crumbs .current { color: var(--ink-2); font-weight: 600; }

.lg-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 62ch;
  margin: 0 0 34px;
}

/* ── FAQ acordeón ───────────────────────────────────────── */
.lg-faq { margin-top: 8px; }
.lg-faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 16px 0;
}
.lg-faq details:first-child { border-top: 1px solid var(--line-soft); }
.lg-faq summary {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.lg-faq summary::-webkit-details-marker { display: none; }
.lg-faq summary::before { content: '+ '; color: var(--green-dark); font-weight: 800; }
.lg-faq details[open] summary::before { content: '– '; }
.lg-faq details p { margin: 12px 0 0; color: var(--ink-3); }

/* ── Bloque de servicios relacionados ───────────────────── */
.lg-related {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}
@media (min-width: 640px) { .lg-related { grid-template-columns: 1fr 1fr; } }
.lg-related a {
  display: block;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.2s, transform 0.2s;
}
.lg-related a:hover { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.lg-related strong { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 4px; }
.lg-related span { font-size: 13.5px; color: var(--ink-4); }

/* ── Banner CTA final ───────────────────────────────────── */
.lg-cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 42px);
  margin-top: 40px;
  text-align: center;
}
.lg-cta-band h2 {
  font-family: var(--display);
  color: #fff;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.lg-cta-band p { color: rgba(255,255,255,0.65); margin: 0 0 22px; }
.lg-cta-band .lg-btn-row { justify-content: center; margin-top: 0; }

/* ── Footer ─────────────────────────────────────────────── */
.lg-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 30px 0;
  font-size: 13.5px;
}
.lg-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: space-between;
}
.lg-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.lg-footer a:hover { color: var(--green); }
