/* LPAWEB Buceo – public/css/lpaweb-public.css */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --lpaweb-blue:    #0077b6;
  --lpaweb-blue-dk: #023e8a;
  --lpaweb-blue-lt: #e0f2fe;
  --lpaweb-radius:  12px;
}

/* ── Overlay ────────────────────────────────────────────── */
#lpaweb-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,20,50,.65); z-index: 99999;
  align-items: center; justify-content: center;
  backdrop-filter: blur(3px); padding: 5vh 5vw;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
#lpaweb-overlay.lpaweb-active { display: flex; }

/* ── Modal ──────────────────────────────────────────────── */
.lpaweb-modal {
  background: #fff; width: 90vw; max-width: 760px;
  max-height: 90vh; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,20,50,.4);
  animation: lpawebUp .3s ease;
}
@keyframes lpawebUp {
  from { opacity:0; transform: translateY(20px) scale(.98); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── Cabecera ───────────────────────────────────────────── */
.lpaweb-modal-header {
  background: linear-gradient(135deg,#0096c7,#023e8a);
  padding: 22px 28px 18px; color:#fff; flex-shrink:0;
  position:relative; overflow:hidden;
}
.lpaweb-modal-header::before,
.lpaweb-modal-header::after {
  content:''; position:absolute; border-radius:50%;
  background:rgba(255,255,255,.06);
}
.lpaweb-modal-header::before { width:140px;height:140px;right:-30px;top:-30px; }
.lpaweb-modal-header::after  { width:100px;height:100px;right:40px;bottom:-50px; }
.lpaweb-header-top { display:flex; align-items:center; gap:12px; margin-bottom:4px; }
.lpaweb-header-icon { font-size:26px; }
.lpaweb-modal-header h2 { font-size:18px;font-weight:800;letter-spacing:-.2px; }
.lpaweb-modal-header p  { font-size:13px;opacity:.75;margin-left:38px; }
.lpaweb-progress-wrap   { display:flex;align-items:center;gap:10px;margin-top:12px; }
.lpaweb-progress-bar    { flex:1;height:5px;background:rgba(255,255,255,.25);border-radius:3px;overflow:hidden; }
.lpaweb-progress-fill   { height:100%;background:#90e0ef;border-radius:3px;transition:width .3s; }
.lpaweb-progress-label  { font-size:12px;font-weight:700;opacity:.85;white-space:nowrap; }

/* ── Cuerpo ─────────────────────────────────────────────── */
.lpaweb-modal-body { overflow-y:auto;flex:1;padding:6px 0; }
.lpaweb-modal-body::-webkit-scrollbar { width:5px; }
.lpaweb-modal-body::-webkit-scrollbar-thumb { background:#90cde4;border-radius:3px; }

.lpaweb-form-heading {
  margin:14px 20px 4px; padding:14px 18px;
  background:var(--lpaweb-blue-dk); border-radius:10px;
  color:#fff; font-size:17px; font-weight:800; text-align:center;
}
.lpaweb-form-heading span { font-size:14px;font-weight:600;opacity:.8; }
.lpaweb-intro-text {
  margin:10px 20px 8px; padding:14px 16px;
  background:#f0f8ff; border-radius:10px;
  border:1px solid #bde0f5; font-size:14px;line-height:1.65;color:#1a2b3c;
}
.lpaweb-aviso-mujeres {
  background:#fff0f3;border-left:4px solid #ff4d6d;
  margin:12px 20px 4px;padding:10px 14px;
  border-radius:0 8px 8px 0;font-size:14px;color:#7d1128;font-weight:600;
}
.lpaweb-cuadro-header {
  background:var(--lpaweb-blue-lt);padding:9px 20px;
  font-size:13px;font-weight:800;color:#0369a1;
  text-transform:uppercase;letter-spacing:.7px;
  border-top:2px solid #bae6fd;margin-top:4px;
}

/* ── Preguntas ──────────────────────────────────────────── */
.lpaweb-question { padding:13px 20px;border-bottom:1px solid #eaf4f8;transition:background .15s; }
.lpaweb-question.lpaweb-answered { background:#f6fcff; }
.lpaweb-question-inner { display:flex;gap:12px;align-items:flex-start; }
.lpaweb-q-num {
  min-width:28px;height:28px;border-radius:50%;
  background:var(--lpaweb-blue-lt);color:var(--lpaweb-blue);
  font-weight:800;font-size:12px;display:flex;align-items:center;
  justify-content:center;flex-shrink:0;margin-top:1px;
}
.lpaweb-q-text { font-size:15px;line-height:1.55;color:#1a2b3c;padding-top:2px; }
.lpaweb-q-opts { display:flex;gap:8px;margin-top:9px;margin-left:40px;flex-wrap:wrap; }
.lpaweb-opt {
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 20px;border-radius:50px;
  border:1.5px solid #cbd5e1;background:#fff;color:#475569;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:14px;font-weight:700;
  cursor:pointer;transition:all .15s;user-select:none;
}
.lpaweb-opt input { display:none; }
.lpaweb-opt:hover { border-color:var(--lpaweb-blue);color:var(--lpaweb-blue);background:#f0f9ff; }
.lpaweb-opt.lpaweb-opt-sel { background:var(--lpaweb-blue-lt);border-color:var(--lpaweb-blue);color:#0369a1; }

/* ── Pie ────────────────────────────────────────────────── */
.lpaweb-modal-footer {
  padding:12px 20px;border-top:1px solid #e8f4fb;
  background:#f8fbfd;flex-shrink:0;display:flex;
  align-items:center;gap:12px;flex-wrap:wrap;
}
.lpaweb-modal-footer span { font-size:14px;color:#64748b;flex:1;min-width:140px; }

/* ── Botones ────────────────────────────────────────────── */
.lpaweb-btn-primary, button.lpaweb-btn-primary {
  background:var(--lpaweb-blue);color:#fff;border:none;
  padding:11px 28px;font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:15px;font-weight:700;border-radius:50px;
  cursor:pointer;white-space:nowrap;transition:background .2s;
}
.lpaweb-btn-primary:hover:not(:disabled), button.lpaweb-btn-primary:hover:not(:disabled) { background:#005f93; }
.lpaweb-btn-primary:disabled, button.lpaweb-btn-primary:disabled { background:#94a3b8;cursor:not-allowed; }

/* ── Panel declaración ──────────────────────────────────── */
.lpaweb-declaration-panel {
  overflow-y:auto;flex:1;padding:22px 28px;
  display:flex;flex-direction:column;gap:16px;
}
.lpaweb-decl-box {
  background:#f0f8ff;border:1px solid #bde0f5;
  border-radius:12px;padding:14px 16px;
}
.lpaweb-decl-box strong {
  display:block;font-size:13px;font-weight:800;
  color:#0369a1;margin-bottom:6px;
  text-transform:uppercase;letter-spacing:.5px;
}
.lpaweb-decl-box p { font-size:14px;line-height:1.65;color:#1a2b3c; }

/* ── Tutor bloque ───────────────────────────────────────── */
.lpaweb-tutor-bloque {
  background:#f0f8ff;border:2px solid var(--lpaweb-blue);
  border-radius:12px;padding:14px;
}
.lpaweb-tutor-pregunta { font-size:15px;font-weight:800;color:var(--lpaweb-blue-dk);margin-bottom:4px; }
.lpaweb-tutor-pregunta::after { content:' *';color:#ef4444; }
.lpaweb-obligatorio { font-size:12px;color:#ef4444;font-weight:700;display:block;margin-bottom:8px; }
.lpaweb-tutor-opts { display:flex;gap:8px; }
.lpaweb-tutor-fields {
  background:#f0f8ff;border:1px solid #bde0f5;
  border-radius:10px;padding:14px;
}

/* ── Campos del formulario ──────────────────────────────── */
.lpaweb-campo-grupo { display:flex;flex-direction:column;gap:6px; }
.lpaweb-campo-label { font-size:12px;font-weight:800;color:#0369a1;text-transform:uppercase;letter-spacing:.5px; }
.lpaweb-input {
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:14px;font-weight:600;
  padding:10px 14px;border:1.5px solid #cbd5e1;
  border-radius:10px;color:#1a2b3c;background:#fff;
  transition:border-color .15s;width:100%;
  box-sizing:border-box;max-width:100%;min-width:0;
}
/* 2.54.28 — Fecha del último buceo: sin box-sizing ni límite, el control de fecha (sobre todo
   en Safari/iOS y algunos temas) era más ancho que el formulario y salía barra horizontal. */
input[type="date"].lpaweb-input { display:block;min-height:44px;line-height:1.2; }
input[type="date"].lpaweb-input::-webkit-date-and-time-value { text-align:left;min-width:0; }
.lpaweb-input:focus { outline:none;border-color:var(--lpaweb-blue); }
.lpaweb-input.lpaweb-error { border-color:#ef4444;background:#fff5f5; }
.lpaweb-form-row { display:grid;grid-template-columns:1fr 1fr;gap:16px; }

/* Fecha con calendario */
.lpaweb-fecha-wrap { display:flex;align-items:center;gap:8px; }
.lpaweb-fecha-wrap .lpaweb-input { flex:1; }
.lpaweb-cal-wrap { position:relative;flex-shrink:0; }
.lpaweb-btn-cal, button.lpaweb-btn-cal {
  display:flex;align-items:center;justify-content:center;
  background:var(--lpaweb-blue-lt);border:1.5px solid #7dd3fc;
  border-radius:10px;padding:9px 12px;font-size:16px;pointer-events:none;
}
.lpaweb-fecha-overlay {
  position:absolute;inset:0;opacity:0;cursor:pointer;
  width:100%;height:100%;border:none;padding:0;
}

/* Firma */
.lpaweb-firma-wrap {
  border:1.5px solid #cbd5e1;border-radius:10px;
  background:#fafafa;position:relative;overflow:hidden;
  transition:border-color .15s;
}
.lpaweb-firma-wrap.lpaweb-error { border-color:#ef4444;background:#fff5f5; }
.lpaweb-firma-wrap canvas { display:block;width:100%;height:100px;cursor:crosshair;touch-action:none; }
.lpaweb-firma-clear, button.lpaweb-firma-clear {
  position:absolute;top:6px;right:8px;background:transparent;border:none;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:11px;font-weight:700;
  color:#94a3b8;cursor:pointer;padding:2px 6px;
}
.lpaweb-firma-clear:hover, button.lpaweb-firma-clear:hover { color:var(--lpaweb-blue); }
.lpaweb-firma-placeholder {
  position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);
  font-size:12px;color:#cbd5e1;pointer-events:none;font-weight:600;
}

/* Privacidad */
.lpaweb-privacy-wrap {
  display:flex;align-items:flex-start;gap:10px;
  padding:11px 14px;background:#f8fafc;
  border:1.5px solid #cbd5e1;border-radius:10px;
  cursor:pointer;user-select:none;transition:border-color .15s;
  font-size:14px;color:#1a2b3c;line-height:1.5;
}
.lpaweb-privacy-wrap:hover { border-color:var(--lpaweb-blue); }
.lpaweb-privacy-wrap.lpaweb-error { border-color:#ef4444;background:#fff5f5; }
.lpaweb-privacy-wrap input { accent-color:var(--lpaweb-blue);width:16px;height:16px;flex-shrink:0;margin-top:2px; }
.lpaweb-privacy-wrap a { color:var(--lpaweb-blue);font-weight:700; }

/* Información básica de protección de datos (art. 13 RGPD): primera capa, plegable en móvil */
.lpaweb-rgpd { border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc;font-size:12.5px;color:#334155;line-height:1.45; }
.lpaweb-rgpd summary { cursor:pointer;padding:9px 14px;font-weight:700;color:#1a2b3c;font-size:13px; }
.lpaweb-rgpd dl { margin:0;padding:0 14px 10px; }
.lpaweb-rgpd dt { font-weight:700;margin-top:6px; }
.lpaweb-rgpd dd { margin:0; }
.lpaweb-rgpd a { color:var(--lpaweb-blue);font-weight:700; }
.lpaweb-rgpd--group { margin:0 0 12px;text-align:left; }
.lpaweb-gsetup-note { margin:8px 0;padding:8px 12px;border-radius:8px;background:#fff8e1;border:1px solid #f1d38a;color:#6b4e00;font-size:13px;line-height:1.4; }

.lpaweb-accept-wrap { display:flex;justify-content:flex-end;padding-top:4px; }
.lpaweb-err-msg { font-size:12px;color:#ef4444;font-weight:600; }
.lpaweb-missing { margin:14px 0 4px;padding:12px 14px;border:1px solid #fecaca;background:#fef2f2;border-radius:10px;color:#b91c1c;font-size:13px; }
.lpaweb-missing ul { margin:6px 0 0 18px;padding:0; }
.lpaweb-missing li { margin:2px 0; }
.lpaweb-cancelled { margin:0 0 16px;padding:12px 14px;border:1px solid #fcd9a8;background:#fff8eb;border-radius:10px;color:#7a4a05;font-size:14px;line-height:1.45; }

/* ── Panel resultado ────────────────────────────────────── */
.lpaweb-result-panel { display:flex;flex-direction:column;align-items:center;padding:28px 22px;overflow-y:auto;flex:1; }
.lpaweb-result-box { width:100%;max-width:580px;border-radius:16px;padding:26px 22px;text-align:center; }
.lpaweb-result-ok  { background:#ecfdf5;border:2px solid #6ee7b7; }
.lpaweb-result-warning { background:#fffbeb;border:2px solid #fcd34d; }
.lpaweb-result-emoji { font-size:48px;margin-bottom:10px;line-height:1; }
.lpaweb-result-title { font-size:19px;font-weight:800;margin-bottom:10px;line-height:1.3; }
.lpaweb-result-ok .lpaweb-result-title      { color:#065f46; }
.lpaweb-result-warning .lpaweb-result-title { color:#92400e; }
.lpaweb-result-msg { font-size:15px;line-height:1.6;font-weight:600; }
.lpaweb-result-ok .lpaweb-result-msg      { color:#047857; }
.lpaweb-result-warning .lpaweb-result-msg { color:#78350f; }
.lpaweb-contact-inline { color:#92400e;font-weight:800; }
.lpaweb-contacto-btn-wrap { margin-top:14px; }
.lpaweb-btn-contact, button.lpaweb-btn-contact {
  display:inline-flex;align-items:center;
  background:var(--lpaweb-blue);color:#fff;text-decoration:none;
  padding:12px 28px;border-radius:50px;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:15px;font-weight:800;
  transition:background .2s;
}
.lpaweb-btn-contact:hover, button.lpaweb-btn-contact:hover { background:#005f93; }
.lpaweb-pdf-block {
  margin-top:14px;background:#fff;border:1px solid #fcd34d;
  border-radius:10px;padding:14px;text-align:left;
}
.lpaweb-pdf-block p { font-size:14px;color:#78350f;font-weight:600;margin-bottom:10px; }
.lpaweb-btn-pdf, button.lpaweb-btn-pdf {
  display:inline-flex;align-items:center;gap:6px;
  background:var(--lpaweb-blue);color:#fff;text-decoration:none;
  padding:9px 20px;border-radius:50px;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:14px;font-weight:700;
  transition:background .2s;
}
.lpaweb-btn-pdf:hover, button.lpaweb-btn-pdf:hover { background:#005f93; }
.lpaweb-flagged-list {
  margin-top:16px;background:#fff;border-radius:10px;
  padding:14px;text-align:left;border:1px solid #fde68a;
}
.lpaweb-flagged-list h4 {
  font-size:11px;font-weight:800;color:#b45309;
  text-transform:uppercase;letter-spacing:.8px;margin-bottom:8px;
}
.lpaweb-flagged-item {
  display:flex;gap:10px;align-items:flex-start;
  padding:6px 0;border-bottom:1px solid #fef3c7;
  font-size:13px;color:#78350f;line-height:1.45;
}
.lpaweb-flagged-item:last-child { border-bottom:none; }
.lpaweb-f-num {
  min-width:22px;height:22px;background:#f59e0b;color:#fff;
  border-radius:50%;font-size:11px;font-weight:800;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.lpaweb-btn-reset, button.lpaweb-btn-reset {
  margin-top:18px;background:transparent;color:var(--lpaweb-blue);
  border:2px solid var(--lpaweb-blue);padding:10px 28px;
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;font-size:14px;font-weight:700;
  border-radius:50px;cursor:pointer;transition:all .2s;
}
.lpaweb-btn-reset:hover, button.lpaweb-btn-reset:hover { background:var(--lpaweb-blue);color:#fff; }

/* ── Modo prueba ────────────────────────────────────────── */
.lpaweb-prueba-bar {
  background: #fefce8; border-top: 1px dashed #fde047;
  padding: 8px 20px; display: flex; align-items: center;
  gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.lpaweb-prueba-label {
  font-size: 11px; font-weight: 800; color: #854d0e;
  text-transform: uppercase; letter-spacing: .5px; margin-right: 4px;
}
.lpaweb-prueba-btn, button.lpaweb-prueba-btn {
  font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 50px; cursor: pointer;
  border: 1.5px solid #f59e0b; background: #fff;
  color: #92400e; transition: all .15s;
}
.lpaweb-prueba-btn:hover, button.lpaweb-prueba-btn:hover { background: #f59e0b; color: #fff; }

/* ── Avisos en ficha de producto ────────────────────────── */
.lpaweb-notice {
  margin: 16px 0; padding: 16px 18px;
  border-radius: 10px; font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.lpaweb-notice--info    { background:#f0f8ff;border:1px solid #bde0f5; }
.lpaweb-notice--warning { background:#fffbeb;border:1px solid #fcd34d; }
.lpaweb-notice--question { background:#f0fdf4;border:2px solid #6ee7b7; }
.lpaweb-notice p { margin-bottom:8px;font-size:15px;color:#1a2b3c; }
.lpaweb-changes-btns { display:flex;gap:10px;flex-wrap:wrap;margin-top:8px; }

/* ── Pedido en Mi Cuenta ────────────────────────────────── */
.lpaweb-order-form { margin-top:24px;padding-top:16px;border-top:1px solid #eaf4f8; }
.lpaweb-order-form h2 { font-size:16px;font-weight:700;margin-bottom:12px; }

/* ── Admin CSS rápido en backend ────────────────────────── */
.lpaweb-stats-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin:20px 0; }
.lpaweb-stat-card { background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:18px 14px;text-align:center; }
.lpaweb-stat-num  { display:block;font-size:32px;font-weight:800;color:#023e8a; }
.lpaweb-stat-label { display:block;font-size:13px;color:#64748b;margin-top:4px; }
.lpaweb-stat-card--green .lpaweb-stat-num  { color:#065f46; }
.lpaweb-stat-card--amber .lpaweb-stat-num  { color:#92400e; }
.lpaweb-stat-card--red   .lpaweb-stat-num  { color:#991b1b; }
.lpaweb-stat-card--blue  .lpaweb-stat-num  { color:#0077b6; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width:520px) {
  .lpaweb-modal-header { padding:16px 14px; }
  .lpaweb-modal-header h2 { font-size:16px; }
  .lpaweb-modal-header p { margin-left:0;margin-top:4px; }
  .lpaweb-q-opts { margin-left:0; }
  .lpaweb-modal-footer { flex-direction:column;align-items:stretch; }
  .lpaweb-declaration-panel { padding:16px 14px; }
  .lpaweb-form-row { grid-template-columns:1fr; }
  .lpaweb-accept-wrap { justify-content:stretch; }
  .lpaweb-accept-wrap .lpaweb-btn-primary, .lpaweb-accept-wrap button.lpaweb-btn-primary { width:100%; }
  .lpaweb-result-panel { padding:18px 12px; }
}

/* ═══════════════════════════════════════════════════════════
   REFINAMIENTOS v1.2.0 — moderno / limpio / accesible
═══════════════════════════════════════════════════════════ */
:root {
  --lpaweb-ring:    rgba(0,119,182,.35);
  --lpaweb-line:    #e6eef5;
  --lpaweb-shadow:  0 20px 60px rgba(0,20,50,.28);
}

/* Bloqueo de scroll del fondo cuando el modal está abierto */
body.lpaweb-modal-open { overflow: hidden; }

/* Overlay y modal: sombra y desenfoque algo más suaves y modernos */
#lpaweb-overlay { background: rgba(4,18,42,.62); backdrop-filter: blur(4px); }
.lpaweb-modal   { box-shadow: var(--lpaweb-shadow); }
.lpaweb-modal:focus { outline: none; }

/* Cabecera: separador limpio y barra de progreso con matiz */
.lpaweb-modal-header { box-shadow: inset 0 -1px 0 rgba(255,255,255,.12); }
.lpaweb-progress-fill { background: linear-gradient(90deg,#90e0ef,#48cae4); }

/* Líneas divisorias más suaves */
.lpaweb-question       { border-bottom-color: var(--lpaweb-line); }
.lpaweb-modal-footer   { border-top-color: var(--lpaweb-line); }

/* Estado "respondida": barra de acento a la izquierda */
.lpaweb-question { position: relative; }
.lpaweb-question.lpaweb-answered::before {
  content:''; position:absolute; left:0; top:0; bottom:0; width:3px;
  background: var(--lpaweb-blue); border-radius: 0 3px 3px 0;
}

/* Opciones Sí/No: selección más nítida y accesible */
.lpaweb-opt { transition: all .15s ease; }
.lpaweb-opt.lpaweb-opt-sel {
  background: var(--lpaweb-blue); border-color: var(--lpaweb-blue); color: #fff;
  box-shadow: 0 2px 8px rgba(0,119,182,.25);
}
.lpaweb-opt.lpaweb-opt-sel::before {
  content:'✓'; font-size:12px; font-weight:800; margin-right:2px;
}

/* Anillos de foco por teclado (accesibilidad) */
.lpaweb-opt:focus-within,
.lpaweb-privacy-wrap:focus-within,
.lpaweb-input:focus,
.lpaweb-btn-primary:focus-visible,
.lpaweb-btn-contact:focus-visible,
.lpaweb-btn-pdf:focus-visible,
.lpaweb-btn-reset:focus-visible,
.lpaweb-firma-clear:focus-visible {
  outline: none; box-shadow: 0 0 0 3px var(--lpaweb-ring);
}
.lpaweb-input:focus { border-color: var(--lpaweb-blue); box-shadow: 0 0 0 3px var(--lpaweb-ring); }

/* Botones primarios: profundidad sutil y estado activo */
.lpaweb-btn-primary, button.lpaweb-btn-primary { box-shadow: 0 2px 10px rgba(0,119,182,.25); }
.lpaweb-btn-primary:active:not(:disabled), button.lpaweb-btn-primary:active:not(:disabled) { transform: translateY(1px); }
.lpaweb-btn-primary:disabled, button.lpaweb-btn-primary:disabled { box-shadow: none; }

/* Firma: fondo con guía visual más limpia */
.lpaweb-firma-wrap {
  background: repeating-linear-gradient(90deg,#fafbfc,#fafbfc 12px,#f3f6f9 12px,#f3f6f9 13px);
}
.lpaweb-firma-wrap.lpaweb-error { background:#fff5f5; }

/* Cuadros de sección: tipografía algo más aireada */
.lpaweb-cuadro-header { border-top-color:#d6ecfb; }

/* Respeto a quien prefiere menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .lpaweb-modal { animation: none; }
  .lpaweb-opt, .lpaweb-btn-primary, .lpaweb-progress-fill, button.lpaweb-btn-primary { transition: none; }
}

/* ═══════════════ PUERTA CORREO/CONTRASEÑA v1.4.0 ═══════════════ */
.lpaweb-gate { display:flex; align-items:flex-start; justify-content:center; }
.lpaweb-gate-box { width:100%; max-width:440px; margin:0 auto; padding:8px 4px 24px; text-align:center; }
.lpaweb-gate-emoji { font-size:44px; line-height:1; margin-bottom:8px; }
.lpaweb-gate-title { font-size:20px; font-weight:800; color:#023e8a; margin:2px 0 6px; }
.lpaweb-gate-sub { font-size:14px; color:#5b6b7b; margin:0 0 18px; }
.lpaweb-gate-box .lpaweb-campo-grupo { text-align:left; margin-bottom:14px; }
.lpaweb-gate-hint { font-size:12px; color:#7a8ba0; text-align:left; margin:2px 0 0; }
.lpaweb-gate-link { display:inline-block; margin-top:8px; font-size:13px; color:#0077b6; text-decoration:underline; cursor:pointer; }
.lpaweb-gate #lpaweb-gate-continue { width:100%; margin-top:6px; }
.lpaweb-gate-msg { font-size:14px; margin:6px 0 12px; padding:10px 12px; border-radius:10px; }
.lpaweb-gate-msg--err { background:#fff5f5; color:#b42318; border:1px solid #f6d5d2; }
.lpaweb-gate-msg--ok  { background:#f0fdf4; color:#067647; border:1px solid #bbf7d0; }
.lpaweb-gate-box .lpaweb-gate-code { font-size:22px; font-weight:700; letter-spacing:8px; text-align:center; font-variant-numeric:tabular-nums; }

.lpaweb-gate-valid-box { margin-top:8px; padding:20px; background:#f0f9ff; border:1px solid #cfe8fb; border-radius:14px; }
.lpaweb-gate-health { font-weight:700; color:#1a2b3c; margin:14px 0 12px; }
.lpaweb-gate-health-btns { display:flex; gap:10px; justify-content:center; }
.lpaweb-gate-health-btns .lpaweb-btn-primary,
.lpaweb-gate-health-btns .lpaweb-btn-ghost, .lpaweb-gate-health-btns button.lpaweb-btn-primary, .lpaweb-gate-health-btns button.lpaweb-btn-ghost { flex:1; max-width:160px; }
.lpaweb-btn-ghost, button.lpaweb-btn-ghost {
  background:#fff; color:#0077b6; border:2px solid #0077b6; border-radius:10px;
  padding:11px 18px; font-size:15px; font-weight:700; cursor:pointer; transition:all .15s ease;
}
.lpaweb-btn-ghost:hover, button.lpaweb-btn-ghost:hover { background:#eaf6fd; }

/* ─── Adjuntos (titulación / seguro) v1.5.0 ─── */
.lpaweb-file-row { position:relative; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.lpaweb-file-btn { display:inline-flex; align-items:center; gap:6px; background:#eaf6fd; color:#0369a1;
  border:1px solid #cfe8fb; border-radius:10px; padding:9px 16px; font-size:14px; font-weight:600; cursor:pointer; }
.lpaweb-file-btn:hover { background:#dcefff; }
.lpaweb-file-input { position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; z-index:-1; }
.lpaweb-file-status { font-size:13px; color:#5b6b7b; }
.lpaweb-file-status.ok { color:#067647; font-weight:600; }
.lpaweb-file-status.err { color:#b42318; font-weight:600; }
.lpaweb-file-hint { font-size:12px; color:#7a8ba0; margin:6px 0 0; }

/* ── Fechas orientativas del curso ─────────────────────── */
.lpaweb-dates{margin:18px 0 4px;text-align:left;background:#f2f9fd;border:1px solid #d6ebf6;border-radius:12px;padding:14px 16px}
.lpaweb-dates-title{font-weight:700;color:#0a2b3c;margin-bottom:10px;font-size:15px}
.lpaweb-dates-row{display:flex;gap:12px;flex-wrap:wrap}
.lpaweb-dates-row label{flex:1;min-width:130px;display:flex;flex-direction:column;font-size:13px;color:#40616f;gap:5px;font-weight:600}
.lpaweb-dates-row input[type="date"]{padding:10px 12px;border:1px solid #bcdcec;border-radius:9px;font-size:15px;background:#fff;color:#0a2b3c}
.lpaweb-dates-note{margin:12px 0 0;font-size:12.5px;color:#6a7f8b;line-height:1.5}
.lpaweb-dates-err{margin:8px 0 0;font-size:13px;color:#b42318;font-weight:600}

/* ── Reservas de grupo ─────────────────────────────────── */
.lpaweb-g-back{display:inline-block;margin:0 0 14px;font-size:14px;font-weight:700;color:#0077b6;text-decoration:none}
.lpaweb-g-back:hover{color:#023e8a;text-decoration:underline}
.lpaweb-group-start,.lpaweb-group-panel{max-width:720px;margin:0 auto}
.lpaweb-group-title{font-size:20px;color:#071f34;margin:0 0 6px}
.lpaweb-group-sub{color:#5b7385;margin:0 0 16px}
.lpaweb-group-field{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
.lpaweb-group-field label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#40616f;font-weight:600}
.lpaweb-group-field input,.lpaweb-group-field select{padding:10px 12px;border:1px solid #bcdcec;border-radius:9px;font-size:15px;background:#fff}
.lpaweb-g-progress{background:#eaf4fb;border:1px solid #bcdcf1;border-radius:10px;padding:12px 16px;font-weight:600;color:#0a5a86;margin-bottom:20px}
.lpaweb-g-table-wrap{width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.lpaweb-g-table{width:100%;border-collapse:collapse;font-size:14px}
.lpaweb-g-table th,.lpaweb-g-table td{padding:12px 10px;text-align:left;border-bottom:1px solid #eef5f9;vertical-align:middle}
.lpaweb-g-table th{background:#071f34;color:#fff;padding:12px 10px}
.lpaweb-g-table th:nth-child(1){width:17%}
.lpaweb-g-table th:nth-child(2){width:19%}
.lpaweb-g-table th:nth-child(3){width:13%}
.lpaweb-g-table th:nth-child(4){width:51%}
.lpaweb-g-table input[type="email"]{padding:9px 11px;border:1px solid #bcdcec;border-radius:8px;font-size:13.5px;width:100%;max-width:240px;box-sizing:border-box;margin-right:4px}
.lpaweb-g-table input[type="text"].lpaweb-g-nombre{padding:9px 11px;border:1px solid #bcdcec;border-radius:8px;font-size:13.5px;width:100%;max-width:160px;box-sizing:border-box}
.lpaweb-g-table button{margin:4px 6px 4px 0;padding:8px 14px;border:1px solid #0077b6;background:#0077b6;color:#fff;border-radius:8px;font-size:12.5px;cursor:pointer;white-space:nowrap}
.lpaweb-g-table .lpaweb-g-copy{background:#fff;color:#0077b6}
.lpaweb-g-table td:nth-child(4){white-space:normal}

/* Móvil y tablet: la tabla se apila en tarjetas, sin scroll horizontal */
@media (max-width:900px){
  .lpaweb-g-table{min-width:0}
  .lpaweb-g-table thead{display:none}
  .lpaweb-g-table tr{display:block;border:1px solid #e2eef5;border-radius:12px;margin:0 0 12px;padding:8px 14px;background:#fff}
  .lpaweb-g-table td{display:block;border-bottom:1px solid #f2f7fa;padding:9px 0;min-width:0 !important}
  .lpaweb-g-table td:last-child{border-bottom:0}
  .lpaweb-g-table td::before{content:attr(data-label);display:block;font-size:11.5px;font-weight:700;color:#40616f;text-transform:uppercase;letter-spacing:.04em;margin-bottom:5px}
  .lpaweb-g-table td[data-label=""]::before{display:none}
  .lpaweb-g-table td[data-label=""]{font-weight:700;color:#071f34}
  .lpaweb-g-table input[type="email"],.lpaweb-g-table input[type="text"].lpaweb-g-nombre{width:100%;max-width:none;box-sizing:border-box;margin:0 0 8px}
}
.lpaweb-g-remove{background:#fff!important;color:#b42318!important;border-color:#e6c4c0!important}
.lpaweb-pill{display:inline-block;padding:3px 11px;border-radius:999px;font-size:12px;font-weight:700}
.lpaweb-pill--green{background:#e6f7ee;color:#0a7d55}
.lpaweb-pill--gray{background:#eef2f6;color:#6b7b8a}
.lpaweb-g-finalize{margin-top:20px;background:#f2f9fd;border:1px solid #d6ebf6;border-radius:12px;padding:16px 18px}
.lpaweb-g-finalize h3{margin:0 0 6px;color:#071f34;font-size:17px}
.lpaweb-g-finalize .lpaweb-dates-row{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
.lpaweb-g-finalize label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#40616f;font-weight:600}
.lpaweb-g-finalize input[type="date"]{padding:9px 11px;border:1px solid #bcdcec;border-radius:8px;font-size:15px}

/* ── Configuración de grupo WooCommerce ────────────────── */
#lpaweb-gsetup{position:fixed;inset:0;background:rgba(4,18,31,.55);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.lpaweb-gsetup-box{background:#fff;border-radius:16px;padding:26px;max-width:420px;width:100%;position:relative;box-shadow:0 24px 60px rgba(4,18,31,.3);max-height:92vh;overflow-y:auto}
.lpaweb-gsetup-box h3{margin:0 0 8px;color:#071f34;font-size:20px}
.lpaweb-gsetup-box p{margin:0 0 16px;color:#5b7385;font-size:14px}
.lpaweb-gsetup-box label{display:flex;flex-direction:column;gap:5px;font-size:13px;color:#40616f;font-weight:600;margin-bottom:12px}
.lpaweb-gsetup-box input{padding:10px 12px;border:1px solid #bcdcec;border-radius:9px;font-size:15px}
.lpaweb-gsetup-box select{padding:10px 12px;border:1px solid #bcdcec;border-radius:9px;font-size:15px;background:#fff}
.lpaweb-gsetup-x,button.lpaweb-gsetup-x{position:absolute;top:12px;right:14px;background:none;border:0;font-size:26px;color:#8595a3;cursor:pointer;line-height:1}
.lpaweb-g-table .lpaweb-g-remove{background:#fff;color:#b04a3d;border-color:#e7c3bd}

/* ── Mostrar/ocultar contraseña (ojo) v2.30.0 ── */
.lpaweb-pass-wrap { position:relative; display:block; }
.lpaweb-pass-wrap .lpaweb-input { padding-right:46px; width:100%; box-sizing:border-box; }
.lpaweb-eye, button.lpaweb-eye {
  position:absolute; right:6px; top:50%; transform:translateY(-50%);
  background:none; border:0; border-radius:8px; padding:6px 8px; margin:0;
  color:#5b6b7b; cursor:pointer; line-height:0; box-shadow:none;
}
.lpaweb-eye:hover, .lpaweb-eye:focus-visible, button.lpaweb-eye:hover, button.lpaweb-eye:focus-visible { background:#eef4f9; color:#0077b6; outline:none; }

/* ── 2.45.0: formularios de grupo integrados en Elementor ─────────────────────
   [lpaweb_reserva_grupo] hereda la letra y el color de la sección (fondo
   transparente). Los campos van siempre blancos con texto oscuro y las casillas
   se protegen de los estilos globales de Elementor y del tema (que suelen dar
   ancho, relleno y borde a todos los <input>). */
.lpaweb-group-start{color:inherit;font-family:inherit}
.lpaweb-group-start .lpaweb-group-title{color:inherit;font-family:inherit}
.lpaweb-group-start .lpaweb-group-sub{color:inherit;opacity:.8}
.lpaweb-group-start .lpaweb-group-field label{color:inherit;font-size:.9em;font-weight:600}
.lpaweb-group-start .lpaweb-group-field input,.lpaweb-group-start .lpaweb-group-field select,
.lpaweb-gsetup-box input:not([type="checkbox"]):not([type="radio"]),.lpaweb-gsetup-box select{
  display:block!important;width:100%!important;box-sizing:border-box!important;margin:0!important;height:auto!important;
  padding:10px 12px!important;border:1px solid #bcdcec!important;border-radius:9px!important;
  background:#fff!important;color:#0a2b3c!important;font-size:15px!important;line-height:1.3!important;box-shadow:none!important}
.lpaweb-group-start .lpaweb-group-field input:focus,.lpaweb-group-start .lpaweb-group-field select:focus,
.lpaweb-gsetup-box input:not([type="checkbox"]):not([type="radio"]):focus,.lpaweb-gsetup-box select:focus{outline:none;border-color:#0077b6!important;box-shadow:0 0 0 3px rgba(0,119,182,.2)!important}
.lpaweb-group-start .lpaweb-btn-primary,.lpaweb-gsetup-box .lpaweb-btn-primary,.lpaweb-group-start button.lpaweb-btn-primary,.lpaweb-gsetup-box button.lpaweb-btn-primary{width:auto!important;max-width:100%;white-space:normal}

/* Casilla de aceptación legal al crear un grupo y «Recordar este dispositivo» */
.lpaweb-group-start label.lpaweb-group-legal,#lpaweb-gsetup .lpaweb-gsetup-box label.lpaweb-group-legal{display:flex!important;flex-direction:row!important;gap:8px;align-items:flex-start;
  font-size:13px;font-weight:400;color:inherit;opacity:.95;margin:0 0 14px;line-height:1.5;width:auto}
#lpaweb-gsetup .lpaweb-gsetup-box label.lpaweb-group-legal{color:#40616f}
#lpaweb-gsetup .lpaweb-gsetup-box label{color:#40616f;font-weight:600}
.lpaweb-group-legal input[type="checkbox"],.lpaweb-gate-remember input[type="checkbox"]{
  width:auto!important;height:auto!important;min-width:0!important;margin:3px 0 0!important;padding:0!important;flex:0 0 auto!important;
  appearance:auto!important;-webkit-appearance:checkbox!important;border:initial!important;background:initial!important;box-shadow:none!important}
.lpaweb-group-legal span{flex:1 1 auto;min-width:0}
.lpaweb-group-legal a{color:inherit;text-decoration:underline}
.lpaweb-gsetup-box .lpaweb-group-legal a,.lpaweb-gate-remember a{color:#0077b6}
.lpaweb-gate-remember{margin-top:10px}

/* 2.53.2 — Pantallas estrechas (≤ 520 px): los botones con texto largo bajan de línea en
   vez de salirse (p. ej. «Confirmar ahora con 1 participante(s)» en el panel del grupo). */
@media (max-width:520px) {
  .lpaweb-btn-primary, .lpaweb-btn-contact, button.lpaweb-btn-primary, button.lpaweb-btn-contact { white-space:normal; max-width:100%; text-align:center; }
  .lpaweb-g-finalize .lpaweb-btn-primary, .lpaweb-g-finalize button.lpaweb-btn-primary { width:100%; }
}

/* ─── Botones a salvo del tema (2.53.13) ───
   Algunos temas (p. ej. Hello Elementor) pintan «button:hover» y «button:focus» de su
   color. Al pasar el ratón o tras pulsar, los botones del plugin conservan su aspecto. */
button.lpaweb-btn-primary:focus:not(:disabled) { background:var(--lpaweb-blue); color:#fff; }
button.lpaweb-btn-ghost:focus { background:#fff; color:#0077b6; }
button.lpaweb-btn-reset:focus { background:transparent; color:var(--lpaweb-blue); }
button.lpaweb-firma-clear:hover, button.lpaweb-firma-clear:focus { background:transparent; }
button.lpaweb-firma-clear:focus { color:#94a3b8; }
button.lpaweb-prueba-btn:focus { background:#fff; color:#92400e; }
button.lpaweb-eye:focus { background:none; color:#5b6b7b; }
button.lpaweb-gsetup-x:hover, button.lpaweb-gsetup-x:focus { background:none; color:#42586a; }

/* «¿Quién paga?» (2.54.4): el botón de opción a la izquierda del texto, también en temas que estiran los campos */
.lpaweb-paymode label{display:flex!important;flex-direction:row!important;gap:8px;align-items:flex-start;font-weight:400!important;line-height:1.45;cursor:pointer}
.lpaweb-paymode input[type="radio"]{display:inline-block!important;width:auto!important;flex:0 0 auto;margin:3px 0 0!important;padding:0!important;box-shadow:none!important}
/* Datos de contacto del organizador en su panel (2.54.4): mismo aspecto que el resto de campos */
.lpaweb-g-contact .lpaweb-g-contact-input{padding:9px 12px!important;border:1px solid #bcdcec!important;border-radius:9px!important;background:#fff!important;color:#0a2b3c!important;font-size:14px!important;line-height:1.3!important;box-shadow:none!important;height:auto!important;box-sizing:border-box}
.lpaweb-g-contact .lpaweb-g-contact-input:focus{outline:none;border-color:#0077b6!important;box-shadow:0 0 0 3px rgba(0,119,182,.2)!important}
.lpaweb-g-contact #lpaweb-gc-save{padding:9px 18px!important;border:0!important;border-radius:999px!important;background:#0077b6!important;color:#fff!important;font-weight:600;font-size:14px;cursor:pointer}
.lpaweb-g-contact #lpaweb-gc-save:hover{background:#005f92!important}

/* Enlaces con aspecto de botón a salvo del color de enlaces del tema (2.54.5):
   «Contacta con nosotros» salía con el texto del mismo azul que el fondo. */
a.lpaweb-btn-contact, a.lpaweb-btn-contact:visited, a.lpaweb-btn-contact:hover, a.lpaweb-btn-contact:focus,
a.lpaweb-btn-pdf, a.lpaweb-btn-pdf:visited, a.lpaweb-btn-pdf:hover, a.lpaweb-btn-pdf:focus { color: #fff !important; text-decoration: none !important; }

/* 2.54.12 — Entrada con huella o cara */
#lpaweb-gate-pk.lpaweb-btn-pk, button.lpaweb-btn-ghost.lpaweb-btn-pk { display:block; width:100%; margin-top:10px; }
.lpaweb-pk-offer .lpaweb-gate-health-btns { margin-top:14px; }

/* 2.54.13 — Pegar código */
#lpaweb-gate-paste.lpaweb-btn-paste { display:block; width:100%; margin:10px 0 4px; }
