/* Copied verbatim from docs/design/papeles_legales_paleta_de_colores.md §7 (same as web/src/styles/tokens.css).
   The only colors this page may use; rules follow §11.4. */
:root {
  /* Marca */
  --pl-navy-900: #071F3B;
  --pl-navy-700: #082B55;
  --pl-navy-600: #0C3B70;

  --pl-turquoise-500: #12B9B6; /* marca: sobre azul marino, o decorativo en fondos claros */
  --pl-turquoise-700: #0C7A78; /* interacción sobre fondos claros: botón, enlace, foco, progreso */
  --pl-turquoise-800: #095F5D; /* hover / activo del botón principal */

  --pl-gold-500: #C99A2E;      /* acento; nunca estado */
  --pl-gold-text: #89691F;     /* dorado como texto sobre fondos claros */

  /* Texto */
  --pl-text: #17324D;
  --pl-text-muted: #607080;
  --pl-text-on-navy: #FFFFFF;
  --pl-text-on-navy-muted: #C9D7E4;

  /* Superficies y bordes */
  --pl-background: #F5F7FA;
  --pl-surface-alt: #EEF3F7;
  --pl-surface: #FFFFFF;
  --pl-border: #DBE4EC;         /* separadores y tarjetas (decorativo) */
  --pl-border-control: #858D95; /* campos, casillas, controles */

  /* Semánticos */
  --pl-success: #1D8F6D;
  --pl-success-text: #197C5F;
  --pl-success-soft: #EDF7F2;
  --pl-success-soft-text: #197C5F;

  --pl-warning: #B47812;
  --pl-warning-text: #95640F;
  --pl-warning-soft: #FFF5E6;
  --pl-warning-soft-text: #9A6410;

  --pl-danger: #B94B4B;         /* ya cumple como texto */
  --pl-danger-soft: #FFF0F0;
  --pl-danger-soft-text: #9B3B3B;

  --pl-neutral-soft: #F0F3F6;
  --pl-neutral-soft-text: #5A6878;

  --pl-turquoise-soft: #EEF8F7; /* resaltado de selección, no estado */
  --pl-turquoise-soft-text: #17766F;
}

/* Non-color values shared with web/src/styles/base.css. */
:root {
  --pl-radius: 1.125rem;
  --pl-radius-sm: 0.75rem;
  --pl-shadow-card: 0 4px 18px color-mix(in srgb, var(--pl-navy-700) 4%, transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 5.5rem; } /* anchors and focus stay clear of the sticky header (WCAG 2.4.11) */

body {
  margin: 0;
  background: var(--pl-background);
  color: var(--pl-text);
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.55;
}

h1, h2, h3 { color: var(--pl-navy-700); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.25rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.75rem; }
img { max-width: 100%; height: auto; }

/* §11.4: links are turquoise-700 and always underlined. */
a { color: var(--pl-turquoise-700); text-decoration: underline; }

:focus-visible { outline: 2px solid var(--pl-turquoise-700); outline-offset: 2px; }
.on-navy :focus-visible { outline-color: var(--pl-text-on-navy); }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--pl-surface);
  border-radius: var(--pl-radius-sm);
}
.skip-link:focus { top: 1rem; }

/* ── Buttons (§11.4): primary turquoise-700 + white; light white + border-control + navy ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem; /* 44 px target */
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--pl-turquoise-700);
  border-radius: var(--pl-radius-sm);
  background: var(--pl-turquoise-700);
  color: var(--pl-text-on-navy);
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}
.button:hover, .button:active { background: var(--pl-turquoise-800); border-color: var(--pl-turquoise-800); }
/* On navy, turquoise-700 meets the band at only 2.74:1 and the button sinks into it. The §11.4 light
   button (white, navy label) gives 14.12:1 at the edge and for the label (§11.2, last row). */
.button-on-navy { background: var(--pl-surface); border-color: var(--pl-surface); color: var(--pl-navy-700); }
.button-on-navy:hover, .button-on-navy:active { background: var(--pl-surface-alt); border-color: var(--pl-surface-alt); }
/* Full width on phones (Module 17 §8.2), natural width from 40rem. */
.button-large { width: 100%; min-height: 3.25rem; font-size: 1.05rem; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--pl-surface); border-bottom: 1px solid var(--pl-border); }
.site-nav { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex-shrink: 0; display: flex; align-items: center; min-height: 2.75rem; }
.brand img { display: block; width: auto; height: 3rem; }
/* A link, not a button: returning customers need it, but it must not compete with the hero's action. */
.nav-link { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.25rem; font-weight: 700; white-space: nowrap; }

/* ── Hero ── */
.hero {
  padding: 3rem 0 3.5rem;
  background: linear-gradient(135deg, var(--pl-surface) 0%, var(--pl-turquoise-soft) 55%, var(--pl-background) 100%);
  border-bottom: 1px solid var(--pl-border);
}
.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--pl-turquoise-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em; /* one line from 360 px */
  text-transform: uppercase;
}
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.75rem); max-width: 18ch; margin: 0 0 1rem; letter-spacing: -0.035em; }
.lead { font-size: 1.15rem; max-width: 36rem; margin-bottom: 1.75rem; }
/* Friction reducers right under the action. The check is decorative (empty alt text): the words carry it. */
.reassure { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.35rem; color: var(--pl-text); }
.reassure li { display: flex; gap: 0.5rem; }
.reassure li::before { content: "✓" / ""; color: var(--pl-turquoise-700); font-weight: 800; }

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--pl-surface-alt); }
.section-compact { padding: 2.5rem 0; }

.steps, .reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  padding: 1.25rem 1.25rem 1rem;
  background: var(--pl-surface);
  border-left: 3px solid var(--pl-turquoise-700);
  border-radius: 0 var(--pl-radius-sm) var(--pl-radius-sm) 0;
}
/* Gold only as an accent (§9); gold-text, not gold-500, because it is text. */
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.35rem;
  color: var(--pl-gold-text);
  font-size: 0.85rem;
  font-weight: 800;
}
.steps p, .reasons p, .card p { color: var(--pl-text-muted); margin: 0; }

.cards { display: grid; gap: 1rem; }
.card {
  padding: 1.5rem;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow-card);
}
.card p { margin-bottom: 0.75rem; }
.card a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

.reasons li { padding-top: 1rem; border-top: 3px solid var(--pl-turquoise-500); } /* decorative rule */

/* ── Header links, hero panel, services, method, profiles, coverage (José's design) ── */
.site-links { display: none; }
.site-actions { display: flex; align-items: center; gap: 0.75rem; }
.site-links a { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.4rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.button-nav { min-height: 2.75rem; padding-inline: 0.9rem; white-space: nowrap; }
.hero-grid { display: grid; gap: 2rem; }
.hero-panel { padding: 1.25rem; background: var(--pl-navy-700); color: var(--pl-text-on-navy-muted); border-radius: var(--pl-radius); }
.hero-panel .eyebrow, .cta-band .eyebrow { color: var(--pl-turquoise-500); }
.hero-panel h2 { color: var(--pl-text-on-navy); font-size: 1.5rem; margin-bottom: 0.75rem; }
.minis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 1rem; }
.mini { display: grid; gap: 0.15rem; align-content: start; padding: 0.7rem 0.8rem; background: var(--pl-navy-600); border: 1px solid var(--pl-navy-600); border-radius: var(--pl-radius-sm); color: var(--pl-text-on-navy); text-decoration: none; }
.mini:hover { border-color: var(--pl-text-on-navy); }
.mini small { color: var(--pl-text-on-navy-muted); font-weight: 800; letter-spacing: 0.06em; }
.mini span { color: var(--pl-text-on-navy-muted); font-size: 0.85rem; }
.service-card { display: flex; flex-direction: column; padding: 1.1rem; }
.service-card a { margin-top: auto; }
.service-time { margin: 0 0 0.5rem; color: var(--pl-text-muted); font-size: 0.85rem; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: auto 0 0; padding-top: 0.75rem; border-top: 1px solid var(--pl-border); }
.metrics div:last-child { grid-column: 1 / -1; }
.metrics dt { color: var(--pl-text-muted); font-size: 0.75rem; }
.metrics dd { margin: 0; color: var(--pl-navy-700); font-weight: 800; font-size: 0.95rem; }

/* ── Tags, profiles and coverage ── */
.tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}
.tag-ok { background: var(--pl-success-soft); color: var(--pl-success-soft-text); }
.tag-soon { background: var(--pl-neutral-soft); color: var(--pl-neutral-soft-text); }
.section-note { max-width: 44rem; margin: -0.75rem 0 1.75rem; color: var(--pl-text-muted); }

.pros { display: grid; gap: 1rem; }
.pro {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius);
  box-shadow: var(--pl-shadow-card);
}
.avatar {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--pl-navy-700);
  color: var(--pl-text-on-navy);
  font-weight: 800;
}
.pro p { margin: 0 0 0.4rem; color: var(--pl-text-muted); }
.pro .tag { align-self: flex-start; }
.pro .pro-role { color: var(--pl-text); font-weight: 600; }
.pro .pro-meta { margin: 0; font-size: 0.9rem; }

.countries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.countries li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--pl-surface);
  border: 1px solid var(--pl-border);
  border-radius: var(--pl-radius-sm);
}
.countries .tag { margin: 0; }

/* ── FAQ ── */
.faq { max-width: 48rem; }
.faq details { background: var(--pl-surface); border: 1px solid var(--pl-border); border-radius: var(--pl-radius-sm); margin-bottom: 0.75rem; }
.faq summary {
  min-height: 2.75rem;
  padding: 0.9rem 1rem;
  color: var(--pl-navy-700);
  font-weight: 700;
  cursor: pointer;
}
.faq details p { padding: 0 1rem 1rem; margin: 0; }

/* ── Closing call to action, on navy (§11.3 #9: white / on-navy-muted for text) ── */
.cta-band { padding: 3.5rem 0; background: var(--pl-navy-700); color: var(--pl-text-on-navy-muted); }
.cta-band h2 { color: var(--pl-text-on-navy); margin-bottom: 0.75rem; }
.cta-band p { margin-bottom: 1.5rem; }
.cta-actions, .hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; }
.cta-actions .button, .hero-actions .button { align-self: stretch; }
.link-secondary { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }
.cta-band .link-secondary { color: var(--pl-text-on-navy); }

/* ── Footer ── */
.site-footer { padding: 2.5rem 0 1.5rem; background: var(--pl-navy-900); color: var(--pl-text-on-navy-muted); }
.site-footer a { color: var(--pl-text-on-navy); }
.site-footer :focus-visible { outline-color: var(--pl-text-on-navy); }
.footer-grid { display: grid; gap: 1.5rem; }
.footer-name { color: var(--pl-text-on-navy); font-weight: 700; margin-bottom: 0.25rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-mail { display: inline-flex; align-items: center; min-height: 2.75rem; }
.copyright { margin: 1.5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--pl-navy-600); font-size: 0.9rem; }

/* ── Legal pages (privacy.html, terms.html): one readable column of long text ── */
.legal { max-width: 48rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.legal h1 { font-size: clamp(2rem, 6vw, 2.75rem); margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal h3 { margin-top: 1.25rem; }
.legal ul { margin: 0 0 0.75rem; padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }
.legal-version { color: var(--pl-text-muted); margin-bottom: 1.5rem; }
.legal-draft { background: var(--pl-warning-soft); color: var(--pl-warning-soft-text); border-left: 4px solid var(--pl-warning); padding: 0.75rem 1rem; border-radius: 4px; margin: 0 0 1rem; }
.callout {
  margin: 1rem 0;
  padding: 1rem 1.25rem 0.25rem;
  background: var(--pl-surface);
  border-left: 3px solid var(--pl-turquoise-700);
  border-radius: 0 var(--pl-radius-sm) var(--pl-radius-sm) 0;
}

/* ── Phones: profiles as a swipeable row so they do not stack ~1800 px of page ── */
@media (max-width: 39.99rem) {
  .pros {
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    margin: 0 -1rem;
    padding: 0.25rem 1rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 1rem;
  }
  .pro { scroll-snap-align: start; }
}

/* ── Wider screens ── */
@media (min-width: 40rem) {
  .button-large { width: auto; }
  .cta-actions, .hero-actions { flex-direction: row; align-items: center; gap: 1.5rem; }
  .cta-actions .button, .hero-actions .button { align-self: auto; }
  .brand img { height: 3.25rem; }
  .reassure { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
  .hero { padding: 5rem 0; }
  .section, .cta-band { padding: 4.5rem 0; }
  .section-compact { padding: 3rem 0; }
  .service-card { padding: 1.5rem; }
  .cards, .reasons, .pros, .countries { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 64rem) {
  .site-links { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .steps-4 { grid-template-columns: repeat(4, 1fr); }
  .reasons, .countries { grid-template-columns: repeat(4, 1fr); }
  .pros { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
