/*
 * WebDoctor — tema visual del portal cliente de Perfex CRM
 *
 * @author  Leonardo Gimenez
 * @version 1.0.0
 * @date    2026-05-18
 *
 * Replica el sistema de diseno de webdoctor.es. Se inyecta via el hook
 * app_customers_head (no es un tema-carpeta de Perfex), por lo que sobrevive
 * a las actualizaciones del CRM y no toca el nucleo. Las @font-face viven en
 * webdoctor.css, que se carga antes que este fichero en el mismo hook.
 *
 * Todo va prefijado con body.customers para acotar el alcance al portal.
 */

:root {
  --wd-dark:    #2F3E46;
  --wd-bg:      #2F3E46;   /* fondo real de webdoctor.es */
  --wd-surface: #354F52;   /* cards y panels (--bg2 de la web) */
  --wd-mid:     #52796F;
  --wd-midtext: #91B0A9;
  --wd-accent:  #84A98C;
  --wd-light:   #CAD2C5;
  --wd-white:   #FFFFFF;
  --wd-border:  rgba(82, 121, 111, 0.22);
  --wd-ease:    cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
body.customers {
  background: var(--wd-bg);
  color: var(--wd-light);
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 400;
}
body.customers h1, body.customers h2, body.customers h3,
body.customers h4, body.customers h5, body.customers .h1,
body.customers .h2, body.customers .h3 {
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', Helvetica, sans-serif;
  font-weight: 700;
  color: var(--wd-white);
  letter-spacing: -0.5px;
}
body.customers a {
  color: var(--wd-accent);
  transition: color 0.25s var(--wd-ease);
}
body.customers a:hover,
body.customers a:focus {
  color: var(--wd-light);
  text-decoration: none;
}
body.customers hr { border-top-color: var(--wd-border); }
body.customers .text-muted { color: var(--wd-midtext) !important; }

/* ── Navegacion superior ─────────────────────────────────────────────────── */
body.customers .navbar.header {
  background: var(--wd-dark);
  border: 0;
  border-bottom: 1px solid var(--wd-border);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.18);
}
body.customers .navbar.header .nav > li > a {
  color: var(--wd-light);
  font-weight: 500;
  transition: color 0.2s var(--wd-ease);
}
body.customers .navbar.header .nav > li > a:hover,
body.customers .navbar.header .nav > li > a:focus,
body.customers .navbar.header .nav > li.active > a {
  color: var(--wd-accent);
  background: transparent;
}
body.customers .navbar.header .navbar-toggle .icon-bar { background: var(--wd-light); }
body.customers .navbar.header .dropdown-menu {
  background: var(--wd-surface);
  border: 1px solid var(--wd-border);
}
body.customers .navbar.header .dropdown-menu > li > a { color: var(--wd-light); }
body.customers .navbar.header .dropdown-menu > li > a:hover {
  background: var(--wd-dark);
  color: var(--wd-accent);
}

/* ── Logo: texto "WebDoctor" en lugar del logo por defecto ───────────────── */
body.customers .navbar-brand.logo {
  display: flex !important;
  align-items: center;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--wd-accent) !important;
  padding-top: 14px;
  padding-bottom: 14px;
}
body.customers .navbar-brand.logo img { display: none !important; }
body.customers .navbar-brand.logo::after {
  content: 'WebDoctor';
}

/* ── Cards y paneles ─────────────────────────────────────────────────────── */
body.customers .panel,
body.customers .panel_s,
body.customers .panel-default,
body.customers .well {
  background: var(--wd-surface);
  border: 1px solid var(--wd-border);
  border-radius: 4px;
  box-shadow: none;
  color: var(--wd-light);
}
body.customers .panel-heading {
  background: transparent;
  border-bottom: 1px solid var(--wd-border);
  color: var(--wd-white);
  font-weight: 700;
}
body.customers .panel-footer {
  background: transparent;
  border-top: 1px solid var(--wd-border);
}

/* ── Botones ─────────────────────────────────────────────────────────────── */
body.customers .btn {
  font-weight: 500;
  border-radius: 2px;
  letter-spacing: -0.2px;
  transition: all 0.3s var(--wd-ease);
}
body.customers .btn-primary,
body.customers .btn-success,
body.customers .btn-info {
  background: var(--wd-accent);
  border-color: var(--wd-accent);
  color: var(--wd-dark);
  font-weight: 700;
}
body.customers .btn-primary:hover,
body.customers .btn-success:hover,
body.customers .btn-info:hover,
body.customers .btn-primary:focus,
body.customers .btn-success:focus {
  background: var(--wd-light);
  border-color: var(--wd-light);
  color: var(--wd-dark);
}
body.customers .btn-default {
  background: transparent;
  border: 1px solid rgba(132, 169, 140, 0.4);
  color: var(--wd-accent);
}
body.customers .btn-default:hover,
body.customers .btn-default:focus {
  background: rgba(132, 169, 140, 0.10);
  border-color: var(--wd-accent);
  color: var(--wd-light);
}
body.customers .btn-link { color: var(--wd-accent); }

/* ── Tablas ──────────────────────────────────────────────────────────────── */
body.customers .table { color: var(--wd-light); }
body.customers .table > thead > tr > th {
  border-bottom: 2px solid var(--wd-border);
  color: var(--wd-midtext);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.4px;
}
body.customers .table > tbody > tr > td,
body.customers .table > tbody > tr > th {
  border-top: 1px solid var(--wd-border);
}
body.customers .table-striped > tbody > tr:nth-of-type(odd) {
  background: rgba(255, 255, 255, 0.02);
}
body.customers .table-hover > tbody > tr:hover {
  background: rgba(132, 169, 140, 0.07);
}

/* ── Formularios ─────────────────────────────────────────────────────────── */
body.customers .form-control {
  background: rgba(47, 62, 70, 0.85);
  border: 1px solid var(--wd-border);
  border-radius: 2px;
  color: var(--wd-light);
  box-shadow: none;
}
body.customers .form-control:focus {
  border-color: var(--wd-accent);
  box-shadow: 0 0 0 2px rgba(132, 169, 140, 0.15);
}
body.customers .form-control::placeholder { color: var(--wd-mid); }
body.customers label,
body.customers .control-label { color: var(--wd-light); font-weight: 500; }
body.customers .input-group-addon {
  background: var(--wd-dark);
  border: 1px solid var(--wd-border);
  color: var(--wd-midtext);
}

/* ── Badges y labels ─────────────────────────────────────────────────────── */
body.customers .badge { background: var(--wd-mid); color: var(--wd-white); }
body.customers .label-success,
body.customers .badge-success { background: var(--wd-accent); color: var(--wd-dark); }
body.customers .label-warning { background: #E9A23B; color: #2a2300; }
body.customers .label-danger  { background: #C0492F; color: #fff; }
body.customers .label-default { background: var(--wd-mid); color: var(--wd-light); }

/* ── Alertas ─────────────────────────────────────────────────────────────── */
body.customers .alert {
  border-radius: 4px;
  border: 1px solid var(--wd-border);
}
body.customers .alert-success {
  background: rgba(132, 169, 140, 0.12);
  color: var(--wd-light);
  border-color: rgba(132, 169, 140, 0.4);
}

/* ── Panel de contenido / contenedores ───────────────────────────────────── */
body.customers .customers-content,
body.customers .content { background: transparent; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
body.customers footer.footer {
  background: #283139;
  border-top: 1px solid var(--wd-border);
  color: var(--wd-light);
  padding: 22px 0;
}
body.customers footer.footer .copyright-footer,
body.customers footer.footer a { color: var(--wd-midtext); }
body.customers footer.footer a:hover { color: var(--wd-accent); }

/* ===================================================================
 *  Oscurecimiento forzado del portal cliente
 *  Perfex y el CSS base del modulo traen fondos claros con alta
 *  especificidad; se fuerzan con !important. El wrapper real del portal
 *  es body.customers (verificado en el tema perfex), NO .customers-area.
 * =================================================================== */

/* 1. Paneles y cards de Perfex (facturas, perfil, login...) */
body.customers .panel,
body.customers .panel-body,
body.customers .panel-default,
body.customers .panel_s,
body.customers .panel-heading,
body.customers .panel-footer,
body.customers .well,
body.customers .card {
  background-color: #354F52 !important;
  border-color: rgba(82, 121, 111, 0.3) !important;
  color: #CAD2C5 !important;
}

/* 2. Tablas */
body.customers table,
body.customers .table,
body.customers .table > tbody > tr > td,
body.customers .table > tbody > tr > th,
body.customers .table > thead > tr > th,
body.customers .table > tfoot > tr > td {
  background-color: transparent !important;
  color: #CAD2C5 !important;
  border-color: rgba(82, 121, 111, 0.3) !important;
}
body.customers .table > tbody > tr:nth-child(odd) > td {
  background-color: rgba(47, 62, 70, 0.5) !important;
}
body.customers .table-hover > tbody > tr:hover > td {
  background-color: rgba(132, 169, 140, 0.10) !important;
}

/* 3. Formularios e inputs (vence tambien a los estilos en linea) */
body.customers input,
body.customers select,
body.customers textarea,
body.customers .form-control {
  background-color: #2F3E46 !important;
  color: #CAD2C5 !important;
  border-color: rgba(132, 169, 140, 0.4) !important;
}
body.customers input::placeholder,
body.customers textarea::placeholder { color: #52796F !important; }
body.customers input[type=checkbox],
body.customers input[type=radio] { background-color: transparent !important; }

/* 4. Texto general — sin tocar .wd-big/.wd-state/badges (van coloreados) */
body.customers h1, body.customers h2, body.customers h3,
body.customers h4, body.customers h5, body.customers p,
body.customers label, body.customers .control-label,
body.customers td, body.customers li,
body.customers .panel p {
  color: #CAD2C5 !important;
}
body.customers strong, body.customers b { color: #FFFFFF !important; }

/* 5. Alertas / avisos */
body.customers .alert {
  background-color: rgba(82, 121, 111, 0.2) !important;
  border-color: rgba(132, 169, 140, 0.4) !important;
  color: #CAD2C5 !important;
}

/* 6. Links (excepto botones y badges) */
body.customers a:not(.btn):not([class*="badge"]):not([class*="btn"]) {
  color: #84A98C !important;
}
body.customers a:not(.btn):not([class*="badge"]):not([class*="btn"]):hover {
  color: #CAD2C5 !important;
}

/* 7. Separadores */
body.customers hr { border-color: rgba(82, 121, 111, 0.3) !important; }

/* 8. Dashboard del modulo WebDoctor */
body.customers .wd-portal { color: #CAD2C5 !important; }

/* Tarjetas semaforo: conservan su border-top de color (estilo en linea);
   solo se oscurece el fondo y los otros tres bordes. */
body.customers .wd-portal .wd-card {
  background-color: #354F52 !important;
  border-right-color:  rgba(132, 169, 140, 0.22) !important;
  border-bottom-color: rgba(132, 169, 140, 0.22) !important;
  border-left-color:   rgba(132, 169, 140, 0.22) !important;
}
body.customers .wd-portal .wd-action,
body.customers .wd-portal .wd-msg,
body.customers .wd-portal .wd-google-connect,
body.customers .wd-portal .wd-sec form {
  background-color: #354F52 !important;
  border-color: rgba(132, 169, 140, 0.3) !important;
  color: #CAD2C5 !important;
}
body.customers .wd-portal .wd-msg:hover {
  background-color: rgba(132, 169, 140, 0.12) !important;
}
body.customers .wd-portal .wd-title,
body.customers .wd-portal .wd-cap,
body.customers .wd-portal .wd-txt,
body.customers .wd-portal h2 { color: #CAD2C5 !important; }
body.customers .wd-portal .wd-sub { color: #91B0A9 !important; }

/* 9. Barra de progreso del plan */
body.customers .wd-portal .wd-progress-wrap { background-color: #2F3E46 !important; }
body.customers .wd-portal .wd-progress-bar {
  background-color: #84A98C !important;
  color: #2F3E46 !important;
}

/* Los semaforos (rojo/amarillo/verde), las tendencias .wd-trend-* y los
   badges de factura .wd-badge-* conservan sus colores a proposito. */

/* ===================================================================
 *  Sprint 9 — Modernizacion UX/UI del portal cliente
 *  Jerarquia (numero hero en Black), profundidad, micro-interacciones
 *  con reduced-motion. Solo CSS; sin tocar las vistas PHP.
 * =================================================================== */

/* A/E — Respiracion y jerarquia entre secciones */
body.customers .wd-portal .wd-sec {
  margin-bottom: 28px !important;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(132, 169, 140, 0.15);
}
body.customers .wd-portal .wd-sec:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
body.customers .wd-portal h2 {
  font-weight: 700 !important;
  font-size: 1.45rem !important;
}

/* G — Semaforos con mas impacto: numero hero + profundidad + hover */
body.customers .wd-portal .wd-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.customers .wd-portal .wd-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.33) !important;
}
body.customers .wd-portal .wd-card.wd-traffic {
  border-top-width: 6px !important;
}
/* El numero grande solo en las tarjetas-metrica (.wd-traffic): el .wd-big
   de la tarjeta "Analisis en preparacion" lleva su propio tamaño en linea. */
body.customers .wd-portal .wd-traffic .wd-big {
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', sans-serif !important;
  font-weight: 900 !important;
  font-size: 48px !important;
  line-height: 1 !important;
  letter-spacing: -1.5px;
}
body.customers .wd-portal .wd-cap {
  color: #91B0A9 !important;
  font-weight: 500;
}

/* H — Barra de progreso del plan: gradiente + profundidad (ya no plana) */
body.customers .wd-portal .wd-progress-wrap {
  height: 26px !important;
  border-radius: 999px !important;
  background: #2F3E46 !important;
  border: 1px solid rgba(132, 169, 140, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
  overflow: hidden;
}
body.customers .wd-portal .wd-progress-bar {
  background: linear-gradient(90deg, #84A98C 0%, #52796F 100%) !important;
  line-height: 24px !important;
  font-weight: 700 !important;
  color: #FFFFFF !important;
  letter-spacing: -0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* I — Boton "Enviar mensaje a Leo" con mas personalidad de marca */
body.customers .wd-portal .btn-wd {
  border-radius: 4px !important;
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', sans-serif;
  font-weight: 700 !important;
  letter-spacing: -0.2px;
  transition: transform .18s ease, box-shadow .18s ease, background-color .2s ease;
}
body.customers .wd-portal a.btn-wd.btn-primary {
  background: #84A98C !important;
  border-color: #84A98C !important;
  color: #2F3E46 !important;
  box-shadow: 0 4px 14px rgba(132, 169, 140, 0.28);
}
body.customers .wd-portal a.btn-wd.btn-primary:hover,
body.customers .wd-portal a.btn-wd.btn-primary:focus {
  background: #52796F !important;
  border-color: #52796F !important;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(132, 169, 140, 0.34);
}

/* Accesibilidad — prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  body.customers .wd-portal .wd-card,
  body.customers .wd-portal .btn-wd { transition: none !important; }
  body.customers .wd-portal .wd-card:hover,
  body.customers .wd-portal a.btn-wd.btn-primary:hover { transform: none !important; }
}

/* ===================================================================
 *  Sprint 10 — Hero resumen + pestañas tipo libro del portal cliente
 * =================================================================== */

/* ── Hero resumen ────────────────────────────────────────────────────── */
body.customers .wd-portal .wd-hero {
  background: #354F52;
  border: 1px solid rgba(132, 169, 140, 0.18);
  border-radius: 14px;
  padding: 24px 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}
body.customers .wd-portal .wd-hero-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
body.customers .wd-portal .wd-hero-greet {
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-size: 1.7rem;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}
body.customers .wd-portal .wd-hero-url {
  color: #91B0A9;
  font-size: .95rem;
  margin-top: 2px;
}
body.customers .wd-portal .wd-hero-url a { color: #84A98C !important; }
body.customers .wd-portal .wd-hero-trend {
  text-align: right;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
}
body.customers .wd-portal .wd-hero-trend-sub {
  color: #91B0A9;
  font-size: .8rem;
  font-weight: 400;
}

/* Puntuacion global + barra */
body.customers .wd-portal .wd-hero-score { margin-top: 18px; }
body.customers .wd-portal .wd-hero-score-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  color: #91B0A9;
  font-size: .95rem;
}
body.customers .wd-portal .wd-hero-score-num {
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', sans-serif;
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -1.5px;
}
body.customers .wd-portal .wd-hero-score-num small {
  font-size: 1rem;
  font-weight: 500;
  color: #91B0A9;
}
body.customers .wd-portal .wd-score-bar {
  height: 12px;
  border-radius: 999px;
  background: #2F3E46;
  border: 1px solid rgba(132, 169, 140, 0.15);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
body.customers .wd-portal .wd-score-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .5s cubic-bezier(.16, 1, .3, 1);
}

/* ── Pestañas tipo libro ─────────────────────────────────────────────── */
body.customers .wd-portal .wd-tabs {
  display: flex;
  border-bottom: 2px solid rgba(132, 169, 140, 0.2);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.customers .wd-portal .wd-tabs::-webkit-scrollbar { display: none; }
body.customers .wd-portal .wd-tab {
  padding: 12px 24px;
  color: #91B0A9;
  cursor: pointer;
  font-family: 'NeueHaasDisplay', 'Helvetica Neue', sans-serif;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}
body.customers .wd-portal .wd-tab:hover { color: #CAD2C5; }
body.customers .wd-portal .wd-tab:focus-visible {
  outline: 2px solid #84A98C;
  outline-offset: -2px;
}
body.customers .wd-portal .wd-tab.active {
  color: #FFFFFF;
  font-weight: 600;
  border-bottom-color: #84A98C;
}
body.customers .wd-portal .wd-tab-content { display: none; }
body.customers .wd-portal .wd-tab-content.active { display: block; }

/* ── Caja del grafico de evolucion ───────────────────────────────────── */
body.customers .wd-portal .wd-chart-box {
  position: relative;
  height: 180px;
  margin-bottom: 18px;
}

/* ── Caja "Conectar Google" (movida del <style> en linea de la vista) ──── */
body.customers .wd-portal .wd-google-connect {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 2px dashed rgba(132, 169, 140, 0.5);
  border-radius: 14px;
  background: rgba(47, 62, 70, 0.6);
}
body.customers .wd-portal .wd-gc-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}
body.customers .wd-portal .wd-gc-sub {
  color: #91B0A9;
  font-size: .95rem;
  max-width: 520px;
}
body.customers .wd-portal .wd-gc-btn {
  display: inline-block;
  background: #84A98C;
  color: #2F3E46 !important;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .15s ease;
}
body.customers .wd-portal .wd-gc-btn:hover,
body.customers .wd-portal .wd-gc-btn:focus {
  background: #52796F;
  color: #FFFFFF !important;
  text-decoration: none;
}
body.customers .wd-portal .wd-disconnect {
  color: #91B0A9 !important;
  font-size: .9rem;
  text-decoration: underline;
}
body.customers .wd-portal .wd-disconnect:hover { color: #E0654F !important; }

/* ── Formulario de preferencias de notificacion ──────────────────────── */
body.customers .wd-portal .wd-prefs-form {
  max-width: 460px;
  background: rgba(47, 62, 70, 0.6);
  border: 1px solid rgba(132, 169, 140, 0.18);
  border-radius: 10px;
  padding: 20px 22px;
}
body.customers .wd-portal .wd-prefs-legend {
  font-weight: 600;
  color: #CAD2C5;
  margin: 0 0 10px;
}
body.customers .wd-portal .wd-prefs-opt {
  display: block;
  margin-bottom: 8px;
  cursor: pointer;
  color: #CAD2C5;
}
body.customers .wd-portal .wd-prefs-input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* ── Movil ───────────────────────────────────────────────────────────── */
@media (max-width: 575px) {
  body.customers .wd-portal .wd-hero { padding: 18px 18px; }
  body.customers .wd-portal .wd-hero-greet { font-size: 1.35rem; }
  body.customers .wd-portal .wd-hero-trend { text-align: left; }
  body.customers .wd-portal .wd-tab { padding: 10px 16px; font-size: 14px; }
}

/* ===================================================================
 *  Sprint 11 — Stripe Subscriptions (contratacion y portal)
 * =================================================================== */
body.customers .wd-portal .wd-plan-renewal {
  font-size: .8rem;
  color: #84A98C;
  font-weight: 600;
  margin: 6px 0 12px;
}
body.customers .wd-portal .wd-contrato-ok {
  max-width: 560px;
  margin: 32px auto;
  text-align: center;
}

/* ===================================================================
 *  Tarjetas de planes y firma de la pagina de contratacion (tema oscuro)
 *  Override del CSS base claro de webdoctor.css (.wd-contratar .wd-plan-*).
 * =================================================================== */

/* Tarjeta de plan */
body.customers .wd-contratar .wd-plan-card {
  background: #354F52 !important;
  border: 2px solid rgba(132, 169, 140, 0.3) !important;
  color: #CAD2C5 !important;
}
body.customers .wd-contratar .wd-plan-card:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32) !important;
}

/* Plan destacado (Visibilidad) — borde de acento mas marcado */
body.customers .wd-contratar .wd-plan-popular {
  border: 3px solid #84A98C !important;
}

/* Tarjeta seleccionada */
body.customers .wd-contratar .wd-plan-selected {
  border-color: #84A98C !important;
  box-shadow: 0 0 0 3px rgba(132, 169, 140, 0.25) !important;
}

/* Badge "MAS POPULAR" */
body.customers .wd-contratar .wd-plan-badge {
  background: #84A98C !important;
  color: #FFFFFF !important;
}

/* Nombre, precio y textos */
body.customers .wd-contratar .wd-plan-name { color: #CAD2C5 !important; }
body.customers .wd-contratar .wd-plan-price { color: #FFFFFF !important; }
body.customers .wd-contratar .wd-plan-price span { color: #91B0A9 !important; }
body.customers .wd-contratar .wd-plan-features li {
  color: #CAD2C5 !important;
  border-bottom-color: rgba(132, 169, 140, 0.15) !important;
}

/* Boton "Elegir este plan" — secundario por defecto */
body.customers .wd-contratar .wd-plan-pick {
  background: transparent !important;
  border: 2px solid #84A98C !important;
  color: #84A98C !important;
  transition: background-color .2s ease, color .2s ease;
}
body.customers .wd-contratar .wd-plan-card:hover .wd-plan-pick {
  background: #84A98C !important;
  color: #FFFFFF !important;
}
/* En el plan destacado y en el seleccionado, boton solido de acento */
body.customers .wd-contratar .wd-plan-popular .wd-plan-pick,
body.customers .wd-contratar .wd-plan-selected .wd-plan-pick {
  background: #84A98C !important;
  border-color: #84A98C !important;
  color: #FFFFFF !important;
}

/* ── Seccion de firma / resumen ──────────────────────────────────────── */
body.customers .wd-contratar .wd-sign {
  background: #354F52 !important;
  border: 1px solid rgba(132, 169, 140, 0.3) !important;
}
body.customers .wd-contratar .wd-sign h2 { color: #FFFFFF !important; }
body.customers .wd-contratar .wd-contract-text {
  background: #2F3E46 !important;
  color: #CAD2C5 !important;
}
body.customers .wd-contratar .wd-contract-text b { color: #FFFFFF !important; }
body.customers .wd-contratar .wd-accept,
body.customers .wd-contratar .wd-accept span { color: #CAD2C5 !important; }

/* Boton "Proceder al pago seguro" */
body.customers .wd-contratar #wd-pay-btn,
body.customers .wd-contratar button.btn-wd {
  background: #84A98C !important;
  border-color: #84A98C !important;
  color: #2F3E46 !important;
  font-weight: 700;
}
body.customers .wd-contratar #wd-pay-btn:hover,
body.customers .wd-contratar #wd-pay-btn:focus,
body.customers .wd-contratar button.btn-wd:hover,
body.customers .wd-contratar button.btn-wd:focus {
  background: #52796F !important;
  border-color: #52796F !important;
  color: #FFFFFF !important;
}

/* =================================================================
 * Sprint A2 — Onboarding wizard del portal cliente
 * Pantalla completa centrada; cubre la navegacion habitual del portal.
 * ================================================================= */

.wd-onboarding-wrap {
  position: fixed;
  inset: 0;
  z-index: 99990;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2F3E46;
  padding: 40px 20px;
  overflow-y: auto;
}

.wd-onboarding-logo {
  font-family: 'NeueHaasDisplay', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: #84A98C;
  letter-spacing: 0.5px;
  margin-bottom: 28px;
}

.wd-onboarding-card {
  background: #354F52;
  border: 1px solid rgba(132,169,140,0.3);
  border-radius: 12px;
  padding: 48px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  font-family: 'NeueHaasDisplay', sans-serif;
}

/* Indicador de progreso */
.wd-steps { display: flex; align-items: center; margin-bottom: 12px; }
.wd-step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #52796F;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #52796F;
  flex: 0 0 auto;
  transition: all 0.3s ease;
}
.wd-step-dot.done { background: #84A98C; border-color: #84A98C; color: #fff; }
.wd-step-dot.active { border-color: #84A98C; color: #84A98C; }
.wd-step-line { flex: 1; height: 2px; background: #52796F; margin: 0 8px; }
.wd-step-line.done { background: #84A98C; }

.wd-step-label {
  color: #91B0A9; font-size: 13px; font-weight: 600;
  margin-bottom: 32px;
}

/* Textos del wizard */
.wd-onboarding-title {
  color: #FFFFFF; font-size: 22px; font-weight: 700;
  line-height: 1.35; margin: 0 0 16px;
}
.wd-onboarding-text {
  color: #CAD2C5; font-size: 16px; line-height: 1.55; margin: 0 0 12px;
}
.wd-onboarding-muted { color: #91B0A9; font-size: 14px; }
.wd-center { text-align: center; }

/* Ocultar la navegacion del portal durante el onboarding */
body.customers.wd-onboarding-active .navbar,
body.customers.wd-onboarding-active #header-portal,
body.customers.wd-onboarding-active .horizontal-menu,
body.customers.wd-onboarding-active footer {
  display: none !important;
}

/* Input de URL */
.wd-onboarding-card input[type=url],
.wd-onboarding-card input[type=text] {
  width: 100%; padding: 14px 16px;
  background: #2F3E46; border: 1px solid rgba(132,169,140,0.4);
  border-radius: 6px; color: #fff; font-size: 16px;
  font-family: 'NeueHaasDisplay', sans-serif; margin: 16px 0;
  box-sizing: border-box;
}
.wd-onboarding-card input[type=url]:focus,
.wd-onboarding-card input[type=text]:focus {
  outline: none; border-color: #84A98C;
}

/* Boton principal */
.wd-btn-primary {
  display: block; width: 100%; padding: 16px;
  background: #84A98C; color: #fff; border: none;
  border-radius: 6px; font-size: 16px; font-weight: 600;
  font-family: 'NeueHaasDisplay', sans-serif; cursor: pointer;
  text-align: center; text-decoration: none;
  transition: background 0.2s;
}
.wd-btn-primary:hover,
.wd-btn-primary:focus { background: #52796F; color: #fff; text-decoration: none; }
.wd-btn-google { margin-top: 8px; }

/* Separador del paso 2 */
.wd-onboarding-divider {
  height: 1px; background: rgba(132,169,140,0.25);
  margin: 24px 0 4px;
}

/* Boton skip */
.wd-btn-skip {
  display: block; width: 100%; text-align: center; margin-top: 16px;
  color: #52796F; font-size: 14px; text-decoration: none;
  background: none; border: none; cursor: pointer;
  font-family: 'NeueHaasDisplay', sans-serif;
}
.wd-btn-skip:hover { color: #91B0A9; }

/* Check grande del paso 3 */
.wd-check-big {
  font-size: 64px; text-align: center;
  margin-bottom: 24px; display: block;
}

/* Sprint A2 / WD 1.7.1 — forzar visibilidad del texto de los botones del
 * wizard (el tema del portal pisaba el color con reglas mas especificas).
 * Cubre tambien el boton "Ver mi panel" del paso 3 (es un .wd-btn-primary). */
.wd-btn-primary,
.wd-onboarding-card button,
.wd-onboarding-card input[type=submit] {
  color: #FFFFFF !important;
  font-weight: 600 !important;
}
