/* ============================================================
   DAVID PDF-EXCEL v1.0 — Estilos de la interfaz
   Organización: variables · base · shell · cabecera · cuenta ·
   fondo · tarjetas · secciones · formulario · carga · botones ·
   log · pie · estados · responsive
   ============================================================ */

/* ---------- Variables ---------- */
:root {
  --dc-navy-950: #041747;
  --dc-navy-900: #06235f;
  --dc-navy-800: #062766;
  --dc-blue-700: #0759c7;
  --dc-blue-600: #0b67d8;
  --dc-blue-500: #0b66d4;
  --dc-blue-100: #edf5ff;
  --dc-bg: #f4f7fc;
  --dc-bg-2: #edf2f8;
  --dc-card: #ffffff;
  --dc-text: #0b2554;
  --dc-muted: #6f7f9d;
  --dc-border: #d8e1ee;
  --dc-shadow: 0 8px 24px rgba(20, 45, 85, 0.10);
  --dc-shadow-card: 0 8px 24px rgba(20, 45, 85, 0.10);
  --dc-radius-shell: 38px;
  --dc-radius-card: 14px;
  --dc-font: Inter, "Segoe UI", Roboto, Arial, system-ui, sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; max-width: 100%; }
[hidden] { display: none !important; }  /* respetar el atributo hidden aunque haya reglas display */
body {
  font-family: var(--dc-font);
  color: var(--dc-text);
  background: linear-gradient(180deg, #eef2f8 0%, #e7edf6 100%);
  min-height: 100vh;
  padding: 22px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, p { margin: 0; }
button { font-family: inherit; }

/* ---------- Shell (panel central) ---------- */
.app-shell {
  max-width: 1460px;
  margin: 0 auto;
  background: var(--dc-bg);
  border-radius: var(--dc-radius-shell);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(10, 30, 70, 0.18);
  min-height: calc(100vh - 44px);
  display: flex;
  flex-direction: column;
}

/* ---------- Cabecera ---------- */
.app-header {
  position: relative;
  z-index: 20;                 /* por encima del área principal, para que el menú de cuenta no quede detrás */
  min-height: 104px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  /* Formas diagonales sutiles resueltas como capas de degradado (no requieren overflow:hidden,
     así el menú desplegable de la cuenta no se recorta). */
  background:
    linear-gradient(255deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0) 34%),
    linear-gradient(75deg, rgba(255,255,255,0) 60%, rgba(255,255,255,0.05) 100%),
    linear-gradient(100deg, var(--dc-navy-950) 0%, var(--dc-navy-800) 42%, var(--dc-blue-700) 100%);
}

.brand { display: flex; align-items: center; gap: 16px; z-index: 1; min-width: 0; }
.home-btn {
  width: 40px; height: 40px; border-radius: 11px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.28);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; flex-shrink: 0; text-decoration: none; transition: background 0.15s ease;
}
.home-btn:hover { background: rgba(255,255,255,0.26); }
.home-btn svg { width: 20px; height: 20px; }

/* Botón de casa flotante: presente en TODAS las páginas, arriba a la izquierda. */
.home-fab {
  position: fixed; top: 16px; left: 16px; z-index: 9999;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--dc-blue-600, #0b67d8); border: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; transition: transform .12s ease, background .15s ease;
}
.home-fab:hover { background: var(--dc-blue-700, #0759c7); transform: translateY(-1px); }
.home-fab svg { width: 22px; height: 22px; }

/* Dona de créditos (APUs restantes) */
.cred-donut-wrap { display: inline-flex; align-items: center; }
.cred-donut { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 0; }
.cred-donut svg { display: block; }
.cred-donut-cap { font-size: 10px; font-weight: 700; color: #ef4444; line-height: 1; white-space: nowrap; }
.perfil-donut { color: var(--dc-text); }
.perfil-donut .cred-donut-cap { font-size: 13px; }

/* Selector de bancos (transferencia) */
.banco-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 4px 0 12px; }
.banco-tab {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 9px 4px; border: 2px solid var(--dc-border); border-radius: 11px;
  background: #fff; cursor: pointer; transition: border-color .12s ease, box-shadow .12s ease;
}
.banco-tab:hover { border-color: var(--bc, var(--dc-blue-600)); }
.banco-tab.activo { border-color: var(--bc, var(--dc-blue-600)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bc, #0b67d8) 22%, transparent); }
.banco-logo { display: inline-flex; line-height: 0; }
.banco-logo svg, .banco-logo img { width: 30px; height: 30px; display: block; object-fit: contain; }
.banco-det-head .banco-logo svg, .banco-det-head .banco-logo img { width: 26px; height: 26px; }
.banco-tab .banco-nombre { font-size: 11px; font-weight: 600; color: var(--dc-text); text-align: center; line-height: 1.15; }
.banco-det { background: #fff; border: 1px solid var(--dc-border); border-radius: 11px; padding: 11px 13px; }
.banco-det-head { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; font-size: 15px; color: var(--dc-navy-900); }
.banco-det-head .banco-logo svg { width: 26px; height: 26px; }
.banco-det-body { font-size: 13px; color: var(--dc-text); line-height: 1.75; }
.btn-copiar {
  border: 1px solid var(--dc-border); background: var(--dc-blue-100, #edf5ff);
  color: var(--dc-blue-700, #0759c7); font-size: 11px; font-weight: 600;
  border-radius: 6px; padding: 1px 8px; cursor: pointer; margin-left: 4px;
}
.btn-copiar:hover { background: #dcebff; }
.banco-wa { margin-top: 10px; font-size: 13.5px; font-weight: 600; color: #1c6b34; text-align: center; background: #eafaef; border: 1px solid #bfe6c6; border-radius: 8px; padding: 9px; }

/* Fila "Recordar mis datos" en el login */
.remember-row {
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 500; color: var(--dc-text);
  cursor: pointer; margin: -2px 0 14px;
}
.remember-row input { width: 16px; height: 16px; accent-color: var(--dc-blue-600, #0b67d8); cursor: pointer; }
.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}
.brand-text { min-width: 0; }
.brand-title-row { display: flex; align-items: center; gap: 10px; }
.brand-title {
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.1;
}
.brand-version {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #eaf2ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
}
.brand-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 400;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right { display: flex; align-items: center; gap: 12px; z-index: 1; }

/* cápsula de fecha */
.date-capsule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.date-capsule svg { width: 16px; height: 16px; opacity: 0.9; }

/* ---------- Cuenta ---------- */
.account { position: relative; }
.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px 0 8px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.account-btn:hover { background: rgba(255, 255, 255, 0.2); }
.account-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: #fff;
  color: var(--dc-blue-700);
  font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
}
.account-btn svg { width: 15px; height: 15px; opacity: 0.85; }
.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 30, 70, 0.22);
  padding: 12px;
  z-index: 100;
}
.account-menu[hidden] { display: none; }
.account-menu .am-name { font-weight: 700; color: var(--dc-text); font-size: 14px; }
.account-menu .am-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dc-muted); margin-top: 6px; }
.account-menu .am-row b { color: var(--dc-text); font-weight: 700; }
.account-menu hr { border: none; border-top: 1px solid var(--dc-border); margin: 10px 0; }
.account-menu a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px; border-radius: 8px;
  color: var(--dc-text); text-decoration: none; font-size: 13px; font-weight: 500;
}
.account-menu a:hover { background: var(--dc-blue-100); color: var(--dc-blue-700); }
.account-menu a svg { width: 15px; height: 15px; }

/* ---------- Área principal ---------- */
.app-main {
  position: relative;
  flex: 1;
  padding: 22px 20px 26px;
  background:
    radial-gradient(1200px 480px at 78% -8%, rgba(11, 103, 216, 0.06), transparent 60%),
    linear-gradient(180deg, var(--dc-bg) 0%, var(--dc-bg-2) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}
/* trama de puntos azules a la derecha */
.app-main::before {
  content: "";
  position: absolute;
  top: 60px; right: 26px;
  width: 190px; height: 300px;
  background-image: radial-gradient(rgba(11, 103, 216, 0.16) 1.4px, transparent 1.6px);
  background-size: 16px 16px;
  opacity: 0.55;
  pointer-events: none;
}
/* forma diagonal translúcida a la izquierda */
.app-main::after {
  content: "";
  position: absolute;
  top: -10%; left: -6%;
  width: 340px; height: 130%;
  background: linear-gradient(120deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
  transform: skewX(-14deg);
  pointer-events: none;
}

/* ---------- Tarjetas ---------- */
.card {
  position: relative;
  z-index: 1;
  width: clamp(650px, 63vw, 900px);
  max-width: 100%;
  background: var(--dc-card);
  border: 1px solid rgba(216, 225, 238, 0.9);
  border-radius: var(--dc-radius-card);
  box-shadow: var(--dc-shadow-card);
  padding: 20px 22px;
}

/* ---------- Título de sección ---------- */
.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.section-icon {
  width: 35px; height: 35px;
  border-radius: 50%;
  background: var(--dc-blue-700);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(7, 89, 199, 0.35);
}
.section-icon svg { width: 18px; height: 18px; stroke: #fff; }
.section-title {
  font-size: 18px; font-weight: 700; color: var(--dc-navy-900);
  padding-bottom: 6px;
  border-bottom: 3px solid var(--dc-blue-600);
  line-height: 1.1;
  white-space: nowrap;
}
.section-rule { flex: 1; height: 1px; background: var(--dc-border); }

/* ---------- Formulario ---------- */
.field { margin-bottom: 14px; }
.field > label {
  display: block;
  font-size: 13px; font-weight: 700; color: var(--dc-navy-900);
  margin-bottom: 6px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute; left: 10px;
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--dc-blue-700); pointer-events: none;
}
.input-icon svg { width: 18px; height: 18px; stroke: var(--dc-blue-700); }
.input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 40px;
  font-size: 14px;
  color: #37455f;
  background: #fff;
  border: 1px solid var(--dc-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-wrap input::placeholder { color: #9aa8c0; }
.input-wrap input:focus {
  border-color: var(--dc-blue-600);
  box-shadow: 0 0 0 3px rgba(11, 103, 216, 0.15);
}

/* ---------- Cuadro informativo ---------- */
.infobox {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--dc-blue-100);
  border: 1px solid #cfe2fb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 4px;
}
.infobox-icon {
  flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--dc-blue-600);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 13px; font-style: italic;
}
.infobox p { font-size: 13px; line-height: 1.5; color: #40567c; }
.infobox b { color: var(--dc-navy-900); }

/* ---------- Zona de carga ---------- */
.dropzone {
  border: 2px dashed #9cc0ef;
  border-radius: 11px;
  background: #fbfdff;
  min-height: 112px;
  padding: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}
.dropzone:hover { background: var(--dc-blue-100); border-color: var(--dc-blue-600); }
.dropzone.dragover { background: #e2eefe; border-color: var(--dc-blue-700); }
.dz-icon svg { width: 38px; height: 38px; color: var(--dc-blue-700); }
.dz-title { font-size: 14.5px; font-weight: 700; color: var(--dc-navy-900); }
.dz-sub { font-size: 12.5px; color: var(--dc-muted); max-width: 560px; line-height: 1.45; }
input[type="file"] { display: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border: none; border-radius: 6px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--dc-blue-700); color: #fff; box-shadow: 0 4px 12px rgba(7, 89, 199, 0.28); }
.btn-primary:hover:not(:disabled) { background: #064fb0; }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #a9bcd8; box-shadow: none; cursor: not-allowed; }
.btn-secondary {
  background: #fff; color: var(--dc-blue-700);
  border: 1.5px solid var(--dc-blue-600);
  box-shadow: none;
}
.btn-secondary:hover { background: var(--dc-blue-100); }
.btn.is-loading { position: relative; color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%;
  animation: dc-spin 0.7s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

.acciones { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.card-actions { margin-top: 14px; }

/* listas de archivos */
#lista-archivos, #lista-pliego { margin: 14px 0 0; display: flex; flex-direction: column; gap: 6px; }
.archivo-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 12px;
  background: #f6f9fe; border: 1px solid #e4ebf6; border-radius: 7px;
  font-size: 13px; color: var(--dc-text);
}
.archivo-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-quitar {
  flex-shrink: 0; margin-left: 10px;
  background: #fdeaea; color: #b42318; border: none; border-radius: 6px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.btn-quitar:hover { background: #fbdad7; }

/* log de proceso */
#log:not(:empty) {
  margin-top: 14px;
  background: #0b1f3f; color: #d7ffe9;
  font-family: Consolas, "SF Mono", monospace; font-size: 12.5px; line-height: 1.5;
  border-radius: 8px; padding: 12px 14px;
  max-height: 220px; overflow-y: auto;
}
.log-linea.warn { color: #ffe08a; }
.log-linea.error { color: #ff9d95; }

#resumen {
  margin-top: 12px; padding: 12px 14px;
  background: #e8f6ee; border: 1px solid #bfe6cd; border-radius: 8px;
  font-weight: 600; color: #1c6b3f; font-size: 13.5px;
}

.nota { font-size: 12.5px; color: var(--dc-muted); line-height: 1.5; margin-top: 12px; }
.nota b { color: var(--dc-navy-900); }
.oculto, .hidden { display: none !important; }

/* ---------- Pie ---------- */
.app-footer {
  min-height: 34px;
  display: flex; align-items: center; justify-content: center;
  padding: 8px 20px;
  background: linear-gradient(100deg, var(--dc-navy-950), var(--dc-navy-800) 70%, var(--dc-blue-700));
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px; text-align: center;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .card { width: 92%; }
  .app-header { padding: 0 22px; }
}

@media (max-width: 760px) {
  body { padding: 0; }
  .app-shell { border-radius: 0; min-height: 100vh; }
  .app-header {
    flex-direction: column; align-items: flex-start;
    gap: 12px; padding: 16px 16px; min-height: auto;
  }
  .header-right { width: 100%; justify-content: space-between; }
  .brand-title { font-size: 20px; }
  .brand-subtitle { white-space: normal; }
  .app-main { padding: 16px 14px 20px; }
  .app-main::before { display: none; }
  .card { width: 100%; padding: 16px; }
  .section-title { font-size: 16px; white-space: normal; }
  .date-capsule { height: 38px; font-size: 12px; padding: 0 12px; }
  .account-label { display: none; }
}

@media (max-width: 420px) {
  .brand { gap: 12px; }
  .brand-logo { width: 44px; height: 44px; }
  .brand-title { font-size: 18px; }
  .acciones { width: 100%; }
  .acciones .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   AUTENTICACIÓN (login) y ADMINISTRADOR
   ============================================================ */
.auth-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(11,103,216,0.10), transparent 60%),
    linear-gradient(135deg, var(--dc-navy-950), var(--dc-navy-800) 55%, var(--dc-blue-700));
}
.auth-card {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(4, 20, 60, 0.35);
  padding: 30px 28px;
}
.auth-logo { display: block; width: 72px; height: 72px; object-fit: contain; margin: 0 auto 14px; }
.auth-title { text-align: center; font-size: 20px; font-weight: 800; color: var(--dc-navy-900); }
.auth-sub { text-align: center; font-size: 13px; color: var(--dc-muted); margin-top: 4px; margin-bottom: 20px; }
.auth-card .field { margin-bottom: 14px; }
.auth-msg {
  display: none; margin: 4px 0 14px;
  padding: 10px 12px; border-radius: 8px; font-size: 13px;
  background: #fdecec; border: 1px solid #f6c9c6; color: #b42318;
}
.auth-msg.show { display: block; }
.auth-msg.ok { background: #e8f6ee; border-color: #bfe6cd; color: #1c6b3f; }
.auth-note { margin-top: 16px; font-size: 12px; color: var(--dc-muted); text-align: center; line-height: 1.5; }
.btn-block { width: 100%; justify-content: center; height: 44px; font-size: 15px; }

/* Barra superior del panel admin */
.admin-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(100deg, var(--dc-navy-950), var(--dc-navy-800) 60%, var(--dc-blue-700));
  color: #fff;
}
.admin-topbar .brand { gap: 12px; }
.admin-topbar .brand-logo { width: 42px; height: 42px; }
.admin-topbar h1 { font-size: 18px; font-weight: 800; color: #fff; }
.admin-main { max-width: 1000px; margin: 0 auto; padding: 22px 18px 40px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--dc-border); }
.admin-table th { color: var(--dc-navy-900); font-weight: 700; background: #f6f9fe; }
.admin-table td.num { text-align: right; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.badge.on { background: #e8f6ee; color: #1c6b3f; }
.badge.off { background: #fdecec; color: #b42318; }
.mini-btn { padding: 5px 10px; border: 1px solid var(--dc-border); border-radius: 6px; background: #fff; color: var(--dc-blue-700); font-size: 12px; font-weight: 600; cursor: pointer; }
.mini-btn:hover { background: var(--dc-blue-100); }
.mini-btn.danger { color: #b42318; }
.mini-btn.danger:hover { background: #fdecec; }
.grid-form { display: grid; grid-template-columns: 1fr 1fr 120px auto; gap: 12px; align-items: end; }
@media (max-width: 640px) { .grid-form { grid-template-columns: 1fr; } }

/* ============================================================
   LANDING (página pública) · PLANES · PERFIL
   ============================================================ */
.lp-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: linear-gradient(100deg, var(--dc-navy-950), var(--dc-navy-800) 60%, var(--dc-blue-700));
  color: #fff; position: sticky; top: 0; z-index: 20;
}
.lp-nav .brand { gap: 12px; }
.lp-nav .brand-logo { width: 40px; height: 40px; }
.lp-nav h1 { font-size: 18px; font-weight: 800; color: #fff; }
.lp-actions { display: flex; gap: 10px; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
.btn-white { background: #fff; color: var(--dc-blue-700); }
.btn-white:hover { background: #eaf1fb; }

.lp-hero {
  padding: 56px 24px 40px; text-align: center;
  background:
    radial-gradient(900px 420px at 50% -10%, rgba(11,103,216,0.10), transparent 60%),
    linear-gradient(180deg, var(--dc-bg), var(--dc-bg-2));
}
.lp-hero .badge-new { display:inline-block; background: var(--dc-blue-100); color: var(--dc-blue-700); font-weight:700; font-size:12px; padding:5px 12px; border-radius:999px; margin-bottom:16px; }
.lp-hero h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: var(--dc-navy-900); line-height: 1.15; max-width: 820px; margin: 0 auto; }
.lp-hero p { font-size: 16px; color: var(--dc-muted); max-width: 640px; margin: 16px auto 26px; line-height: 1.6; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lp-cta .btn { height: 48px; padding: 0 24px; font-size: 15px; }

.lp-section { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }
.lp-section h3 { text-align: center; font-size: 24px; font-weight: 800; color: var(--dc-navy-900); margin-bottom: 8px; }
.lp-section .sub { text-align: center; color: var(--dc-muted); margin-bottom: 28px; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--dc-border); border-radius: 14px; padding: 22px; box-shadow: var(--dc-shadow-card); }
.feature .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--dc-blue-100); color: var(--dc-blue-700); display:flex; align-items:center; justify-content:center; margin-bottom: 14px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h4 { font-size: 16px; font-weight: 700; color: var(--dc-navy-900); margin-bottom: 6px; }
.feature p { font-size: 13.5px; color: var(--dc-muted); line-height: 1.55; }

/* Planes */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.plan-card { background: #fff; border: 1px solid var(--dc-border); border-radius: 14px; padding: 22px; box-shadow: var(--dc-shadow-card); display: flex; flex-direction: column; }
.plan-card.destacado { border: 2px solid var(--dc-blue-600); box-shadow: 0 12px 30px rgba(11,103,216,0.18); }
.plan-card .pn { font-size: 16px; font-weight: 800; color: var(--dc-navy-900); }
.plan-card .pc { font-size: 34px; font-weight: 800; color: var(--dc-blue-700); margin: 8px 0 2px; }
.plan-card .pc small { font-size: 14px; color: var(--dc-muted); font-weight: 600; }
.plan-card .pd { font-size: 13px; color: var(--dc-muted); margin-bottom: 16px; }
.plan-card .btn { margin-top: auto; justify-content: center; }
.pill { display:inline-block; font-size:11px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--dc-blue-100); color:var(--dc-blue-700); margin-bottom:8px; align-self:flex-start; }

/* Tabla de paquetes por unidad */
.pkg-table { width: 100%; border-collapse: collapse; font-size: 14px; background:#fff; border-radius:12px; overflow:hidden; box-shadow: var(--dc-shadow-card); }
.pkg-table th, .pkg-table td { padding: 12px 16px; border-bottom: 1px solid var(--dc-border); text-align: left; }
.pkg-table th { background: #f6f9fe; color: var(--dc-navy-900); font-weight: 700; }
.pkg-table td.num { text-align: right; }
.pkg-table tr:last-child td { border-bottom: none; }
.pkg-table .buy { text-align: right; }

/* Perfil */
.avatar-lg { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--dc-blue-100); border: 3px solid #fff; box-shadow: 0 4px 14px rgba(10,30,70,0.2); }
.avatar-wrap { display:flex; align-items:center; gap:18px; margin-bottom:20px; }

/* Accesibilidad: foco visible en teclado */
a:focus-visible, button:focus-visible, input:focus-visible, .dropzone:focus-visible {
  outline: 3px solid rgba(11, 103, 216, 0.45);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
