/* ═══════════════════════════════════════════════════════════════════════
   ORDE / TURNOS — Website Design System
   Paleta:
     Índigo principal: #4353C4
     Índigo profundo:  #1B214F
     Ámbar día:        #F4A922
     Naranja tarde:    #F07B45
     Papel claro:      #F8F9FD
     Lavanda fondo:    #E4E9FF
   Tipografía: Plus Jakarta Sans (local en /fonts/)
   ═══════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-400.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-600.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/fonts/PlusJakartaSans-800.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

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

:root {
  --seed: #4353C4;
  --primary: #4353C4;
  --primary-hover: #3542A8;
  --primary-deep: #1B214F;
  --primary-soft: rgba(67, 83, 196, 0.08);
  --primary-border: rgba(67, 83, 196, 0.18);
  
  --amber: #F4A922;
  --amber-soft: rgba(244, 169, 34, 0.14);
  --orange: #F07B45;
  --orange-soft: rgba(240, 123, 69, 0.14);
  --shift-night: #4353C4;
  --shift-night-soft: rgba(67, 83, 196, 0.14);

  --bg-top: #E4E9FF;
  --bg-bottom: #F8F9FD;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-subtle: #F1F4FA;
  
  --text-primary: #151824;
  --text-secondary: #4A5168;
  --text-muted: #727B94;
  
  --border: rgba(27, 33, 79, 0.10);
  --border-light: rgba(27, 33, 79, 0.06);

  --glow-warm: rgba(244, 169, 34, 0.22);
  --glow-cool: rgba(67, 83, 196, 0.20);
  --shadow-sm: 0 4px 16px rgba(27, 33, 79, 0.06);
  --shadow-md: 0 10px 30px rgba(27, 33, 79, 0.08);
  --shadow-lg: 0 20px 50px rgba(27, 33, 79, 0.12);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #8391F0;
    --primary-hover: #9FAAF5;
    --primary-deep: #0D1024;
    --primary-soft: rgba(131, 145, 240, 0.12);
    --primary-border: rgba(131, 145, 240, 0.22);

    --bg-top: #12162C;
    --bg-bottom: #090B16;
    --surface: #15192E;
    --surface-raised: #1C223E;
    --surface-subtle: #181E36;

    --text-primary: #EEF1FA;
    --text-secondary: #A6AFCA;
    --text-muted: #7C86A5;

    --border: rgba(255, 255, 255, 0.10);
    --border-light: rgba(255, 255, 255, 0.05);

    --glow-warm: rgba(244, 169, 34, 0.12);
    --glow-cool: rgba(67, 83, 196, 0.28);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

    color-scheme: dark;
  }
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-bottom);
  background-image:
    radial-gradient(65vmax 65vmax at -10% -10%, var(--glow-warm), transparent 70%),
    radial-gradient(60vmax 60vmax at 110% 5%, var(--glow-cool), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 60vh);
  background-attachment: fixed;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── HEADER / NAVIGATION ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 20px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(248, 249, 253, 0.75);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.2s ease, border-color 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  .nav {
    background: rgba(9, 11, 22, 0.75);
  }
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.nav__logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(27, 33, 79, 0.15);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav__link:hover {
  color: var(--primary);
}

/* Language selector */
.lang-select {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px 6px;
  font-size: 12px;
  font-weight: 700;
  gap: 4px;
}

.lang-select a {
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  transition: all 0.15s ease;
}

.lang-select a:hover {
  color: var(--text-primary);
}

.lang-select a.active {
  background: var(--primary);
  color: #FFFFFF;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  background: var(--primary);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(67, 83, 196, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.nav__cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .nav {
    padding: 10px 14px;
  }
  .nav__brand span {
    font-size: 19px;
  }
  .nav__link {
    display: none;
  }
  .nav__links {
    gap: 8px;
  }
  .nav__cta {
    padding: 6px 14px;
    font-size: 13px;
  }
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn--primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(67, 83, 196, 0.3);
}

.btn--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(67, 83, 196, 0.38);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
  background: var(--surface-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--disabled {
  background: var(--surface-subtle);
  color: var(--text-muted);
  border-color: var(--border-light);
  cursor: default;
  opacity: 0.85;
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── CONTAINER ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── HERO SECTION ── */
.hero {
  padding: 70px 0 80px;
  position: relative;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: 50px;
}

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    text-align: center;
  }
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero__tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.hero__title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.4px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero__title span {
  color: var(--primary);
}

.hero__lead {
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 34px;
  max-width: 580px;
}

@media (max-width: 900px) {
  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

@media (max-width: 900px) {
  .hero__actions {
    justify-content: center;
  }
}

.hero__note {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── PHONE / CALENDAR MOCKUP ── */
.mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border-radius: 36px;
  padding: 22px 18px 24px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.phone-card__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding: 0 4px;
}

.phone-card__today {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
}

.badge-demo {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}

.badge--morning { background: #F4A922; color: #1B214F; }
.badge--afternoon { background: #F07B45; color: #FFFFFF; }
.badge--night { background: #4353C4; color: #FFFFFF; }
.badge--free { background: rgba(117, 119, 135, 0.16); color: var(--text-secondary); }

.phone-card__today-text h4 {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.phone-card__today-text p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Calendar month mini-grid */
.mini-month {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--border-light);
}

.mini-month__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
  padding: 0 4px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.mini-grid__dow {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 3px 0;
}

.mini-grid__day {
  height: 34px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  gap: 2px;
  background: transparent;
}

.mini-grid__day.is-today {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}

.mini-dot {
  width: 14px;
  height: 6px;
  border-radius: 3px;
}

.mini-dot--m { background: #F4A922; }
.mini-dot--t { background: #F07B45; }
.mini-dot--n { background: #4353C4; }
.mini-dot--l { background: transparent; }

/* Float pill on phone */
.mockup-pill {
  position: absolute;
  bottom: -14px;
  right: -10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  animation: floatPill 4s ease-in-out infinite alternate;
}

@media (max-width: 480px) {
  .hero {
    padding: 36px 0 50px;
  }
  .hero__title {
    font-size: 30px;
    letter-spacing: -0.8px;
  }
  .hero__lead {
    font-size: 16px;
  }
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
  }
  /* La etiqueta flotante baja debajo del teléfono, no a su lado. */
  .mockup-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .mockup-pill {
    position: static;
    margin-top: 14px;
    animation: none;
    justify-content: center;
    font-size: 12px;
    padding: 8px 12px;
  }
}

@keyframes floatPill {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ── SECTION HEADER ── */
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.18;
  margin-bottom: 16px;
}

.section-head__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── STEPS SECTION ── */
.steps-section {
  padding: 70px 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 800px) {
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card__num {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 22px;
}

.step-card__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 12px;
}

.step-card__text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── FEATURES GRID ── */
.features-section {
  padding: 70px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.feat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.feat-card__icon--blue { background: rgba(67, 83, 196, 0.12); color: #4353C4; }
.feat-card__icon--amber { background: rgba(244, 169, 34, 0.14); color: #D1890B; }
.feat-card__icon--orange { background: rgba(240, 123, 69, 0.14); color: #E0581B; }

.feat-card__title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
}

.feat-card__text {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── HIGHLIGHT PANELS (Partner & Backup) ── */
.panel-section {
  padding: 60px 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 48px 44px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 34px 24px;
  }
}

.panel--reverse {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

@media (max-width: 860px) {
  .panel--reverse {
    grid-template-columns: minmax(0, 1fr);
  }
}

.panel__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 12px;
}

.panel__title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.panel__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.panel__points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel__point {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.panel__point-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(67, 83, 196, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.panel__visual {
  display: flex;
  justify-content: center;
}

/* Visual card inside panel */
.share-preview-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.share-preview-link {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}

.share-preview-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-preview-pill {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border-light);
}

.share-preview-pill h5 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 4px;
}

.share-preview-pill p {
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ── TEMPLATES SECTION (Country patterns) ── */
.templates-section {
  padding: 70px 0;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--primary);
}

.tab-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

.templates-tab-content {
  display: none;
}

.templates-tab-content.active {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 860px) {
  .templates-tab-content.active {
    grid-template-columns: minmax(0, 1fr);
  }
}

.template-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.template-card__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: var(--primary-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.template-card__name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.template-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.template-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text-secondary);
}

/* ── FAQ SECTION ── */
.faq-section {
  padding: 70px 0;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.faq-answer {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── CTA BOTTOM SECTION ── */
.cta-section {
  padding: 70px 0 90px;
}

.cta-box {
  background: linear-gradient(135deg, #1B214F 0%, #293478 60%, #4353C4 100%);
  border-radius: 36px;
  padding: 64px 40px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(27, 33, 79, 0.35);
  position: relative;
  overflow: hidden;
}

.cta-box__title {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.cta-box__lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 34px;
  color: #D6DCFC;
}

.cta-box__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.btn--on-dark {
  background: #FFFFFF;
  color: #1B214F;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.btn--on-dark:hover {
  background: #F1F4FA;
  transform: translateY(-2px);
}

.btn--on-dark-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--on-dark-glass:hover {
  background: rgba(255, 255, 255, 0.20);
  transform: translateY(-2px);
}

/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 60px;
  background: var(--surface);
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 18px;
}

.footer__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.footer__links a:hover {
  color: var(--primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
}

/* ── LEGAL PAGES COMMON STYLES ── */
.legal-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 20px 90px;
}

.legal-header {
  margin-bottom: 36px;
}

.legal-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 10px;
}

.legal-title {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13.5px;
  color: var(--text-muted);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.legal-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  line-height: 1.7;
  font-size: 15.5px;
  color: var(--text-secondary);
}

@media (max-width: 600px) {
  .legal-content {
    padding: 24px 20px;
  }
}

.legal-content h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  margin: 32px 0 12px;
}

.legal-content h2:first-of-type {
  margin-top: 8px;
}

.legal-content p {
  margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
  margin: 0 0 16px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 700;
}

.legal-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-subtle);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 36px;
  padding: 10px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  transition: all 0.15s ease;
}

.legal-back:hover {
  background: var(--surface-subtle);
  transform: translateX(-2px);
}

/* ── 404 SPECIFIC ── */
.error-page {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}

.error-page__mark {
  width: 96px;
  height: 96px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.error-page__code {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary);
  margin-bottom: 8px;
}

.error-page__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 12px;
}

.error-page__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 460px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* En móvil nada más ancho que la pantalla: los hijos de rejilla y flex pueden
   encogerse por debajo de su contenido (antes un panel medía 425 px a 360). */
.panel > *, .hero__grid > *, [class*="grid"] > * { min-width: 0; }
.panel__title, .panel__desc, .hero__title { overflow-wrap: anywhere; }
