/* public/assets/css/main.css
   Estilos de olumed — Historial Médico con QR.
   Identidad visual procedente de doc/entregables (styles.css). */

:root {
  --primary-blue: #0f4c81;
  --primary-accent: #1d4ed8;   /* azul acento (antes verde heredado de uquedi) */
  --primary-sky: #52a1e1;
  --soft-bg: #f5f8fb;
  --text-muted: #5a6573;
  --primary-hover-btn: #bcd4e7;
}

body {
  background: #f8fafc;
  color: #1f2933;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* NAVBAR */
.navbar-olumed {
  background: #ffffff;
  border-bottom: 1px solid #e1e7f0;
}

.navbar-olumed .navbar-brand span {
  color: var(--primary-blue);
  font-weight: 700;
}

.navbar-olumed .nav-item .nav-link::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: width 0.3s ease;
}

.navbar-olumed .nav-item:hover .nav-link::after,
.navbar-olumed .nav-item .nav-link.active::after {
  width: 100%;
}

.navbar-bar {
  height: 4px;
  background: var(--primary-blue);
}

/* HERO */
.hero-section {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fb 60%, #e8f5ff 100%);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--primary-blue);
}

.hero-subtitle {
  color: #4b5563;
  max-width: 32rem;
}

.phone-mockup {
  background: #fff;
  padding: 1.5rem;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  max-width: 300px;
}

.phone-notch {
  width: 40%;
  height: 6px;
  background: #d0d7e2;
  border-radius: 999px;
  margin: 0 auto 1rem;
}

.qr-box {
  border: 1px dashed #d0d7e2;
  padding: 1rem;
  border-radius: 16px;
}

.qr-placeholder {
  width: 200px;
  height: 200px;
  background: #f5f8fb;
  border: 1px dashed #d0d7e2;
  border-radius: 12px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qr-render {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background-color: #fff;
  border-radius: 8px;
}

.qr-svg {
  display: none;
}

.qr-render img,
.qr-render canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.qr-photo-inicial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 100%);
}

/* BENEFICIOS */
.benefit-card {
  padding: 1.5rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e1e7f0;
  text-align: center;
  height: 100%;
}

.benefit-icon {
  font-size: 2rem;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* PASOS */
.step-number {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* FOOTER */
.footer-section a {
  color: var(--primary-blue);
  text-decoration: none;
}

.footer-section a:hover {
  text-decoration: underline;
}

/* TIENDA HERO */
.tienda-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f5f8fb 60%, #e8f5ff 100%);
}

.bg-soft {
  background: var(--soft-bg);
}

/* PRODUCTOS */
.producto-card {
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  transition: 0.2s;
  height: 100%;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.producto-thumb {
  width: 48px;
  height: 48px;
  background-size: cover;
  background-position: center;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
}

.producto-img {
  width: 100%;
  height: 180px;
  background-color: #f5f8fb;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
}

/* PERSONALIZACIÓN */
.color-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #e1e7f0;
  cursor: pointer;
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-blue);
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-container {
  display: flex;
  min-height: 100vh;
  background: #f5f8fb;
}

.sidebar {
  width: 240px;
  background: #0f4c81;
  color: #fff;
  padding: 1.5rem 1rem;
  flex-shrink: 0;
  transition: width 0.25s ease;
}

.sidebar-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.2rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  transition: 0.2s;
}

.sidebar-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
}

.icon-collapse-close {
  display: none;
}

.sidebar-collapsed {
  width: 80px;
}

.sidebar-collapsed .sidebarCollapsable {
  display: none;
}

.sidebar-collapsed .sidebar-logo {
  justify-content: center;
}

.sidebar-collapsed .sidebar-logo svg {
  width: 1.5em;
  height: 1.5em;
}

.sidebar-collapsed .sidebar-menu a {
  justify-content: center;
  padding: 0.7rem 0;
}

.sidebar-collapsed .icon-collapse-open {
  display: none;
}

.sidebar-collapsed .icon-collapse-close {
  display: block;
}

.sidebar-logo {
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu a {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: 0.2s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
  background: rgba(255, 255, 255, 0.15);
}

.dashboard-main {
  flex: 1;
  padding: 2rem;
}

/* CARDS */
.dash-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.dash-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-weight: 600;
  color: #0f4c81;
  margin-bottom: 0.8rem;
}

.dash-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid #0f4c81;
  border-radius: 8px;
  color: #0f4c81;
  text-decoration: none;
  transition: 0.2s;
  flex-shrink: 0;
}

.dash-edit:hover {
  background: #0f4c81;
  color: #fff;
}

.dash-list {
  padding-left: 1rem;
  margin: 0;
}

.dash-list li {
  margin-bottom: 0.4rem;
}

/* PERFIL */
.perfil-foto {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #d0d7e2;
}

.dash-links {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.dash-links li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f4c81;
  cursor: pointer;
}

.dash-links li:hover {
  text-decoration: underline;
}

.qr-preview {
  width: 140px;
  height: 140px;
  margin: auto;
  background-color: #fff;
  border: 1px solid #cfd6df;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CONTENEDOR GENERAL */
.registro-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1rem;
}

.registro-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  border: 1px solid #e1e7f0;
}

.registro-title {
  font-weight: 700;
  color: #0f4c81;
  text-align: center;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0f4c81;
  margin-bottom: 0.5rem;
  border-left: 4px solid #1d4ed8;
  padding-left: 0.6rem;
}

.form-control,
.form-select,
.form-label {
  border-radius: 10px;
}

.form-control:focus,
.form-select:focus {
  border-color: #80b7d4;
  box-shadow: 0 0 0 0.15rem rgba(26, 188, 156, 0.25);
}

/* ===== LOGIN / REGISTRO ===== */
.login-bg {
  background: #e8f5ff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-main {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem 1rem;
}

.login-container {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #d0d7e2;
}

.login-icon {
  width: 60px;
  height: 60px;
  background: #0f4c81;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: auto;
  overflow: hidden;
}

.login-title {
  font-weight: 700;
  color: #0f4c81;
  margin-top: 0.8rem;
}

.login-input-icon {
  background: #f5f8fb;
  border-right: none;
  color: #0f4c81;
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.input-group-text {
  border-radius: 10px 0 0 10px;
}

.login-link {
  color: #0f4c81;
  text-decoration: none;
}

.login-link:hover {
  text-decoration: underline;
}

/* BOTONES */
.btn-primary-qr {
  background: var(--primary-blue);
  border-color: var(--primary-sky);
  font-weight: 600;
  border-radius: 10px;
  color: white;
}

.btn-primary-qr:hover,
.btn-primary-qr:focus {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-sky);
  box-shadow: 5px 5px var(--primary-sky);
}

.btn-secondary-qr {
  background: transparent;
  border-color: #000;
  color: #000;
  font-weight: 600;
  border-radius: 10px;
}

.btn-secondary-qr:hover {
  background: transparent;
  border-color: #000;
  color: #000;
  box-shadow: 5px 5px black;
}

.btn-outline-primary {
  border-radius: 10px;
  border-color: #0f4c81;
  color: #0f4c81;
}

.btn-outline-primary:hover {
  background: #0f4c81;
  color: #fff;
}

/* ===== TARJETA QR MÉDICO (MASONRY) ===== */
.qr-card-wrapper {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem;
}

.qr-card {
  width: 720px;
  background: #ffffff;
  border-radius: 22px;
  padding: 2rem 2rem 2.5rem;
  border: 1px solid #e1e7f0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.qr-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.qr-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f5f8fb;
  background-size: cover;
  background-position: center;
  margin: auto;
  border: 4px solid #f5f8fb;
  box-shadow: 0 0 0 3px #e1e7f0;
}

.qr-name {
  margin-top: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f4c81;
}

.qr-age {
  color: #6c757d;
  margin-top: -4px;
  margin-bottom: 1rem;
}

.qr-code-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.qr-code {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  border: 1px solid #cfd6df;
}

.qr-masonry {
  column-count: 2;
  column-gap: 1rem;
  margin-bottom: 1.5rem;
}

.qr-block {
  break-inside: avoid;
  background: #f8fafc;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.qr-block h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f4c81;
  margin-bottom: 0.3rem;
  border-bottom: 2px solid var(--primary-blue);
  padding-bottom: 5px;
}

.qr-block p,
.qr-block ul {
  margin: 0;
  font-size: 0.9rem;
  color: #1f2933;
  line-height: 1.3rem;
}

.qr-btn {
  width: 100%;
  padding: 0.75rem;
  background: #0f4c81;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.qr-btn:hover {
  background: #0d3f6a;
}

.qr-btn-ghost {
  background: transparent;
  color: #0f4c81;
  border: 1.5px solid #0f4c81;
}

.qr-btn-ghost:hover {
  background: #e7f1fb;
  color: #0d3f6a;
}

.qr-btn-ghost.active {
  background: #0f4c81;
  color: #ffffff;
}

.qr-gate {
  margin-top: 0.6rem;
  padding: 1rem;
  border: 1px dashed #b9cfe4;
  border-radius: 10px;
  background: #f7fbff;
  text-align: left;
}

.qr-gate label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5b6b7b;
  margin-bottom: 0.15rem;
}

/* ===== PÁGINA PÚBLICA /x/<código> ===== */

.qr-bg {
  background: var(--soft-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.qr-sitebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 4px solid var(--primary-blue);
}

.qr-sitebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 1.15rem;
}

.qr-sitebar-brand:hover {
  color: var(--primary-sky);
}

.qr-sitebar-logo {
  display: inline-block;
}

.qr-sitebar-tag {
  margin-left: auto;
  color: var(--primary-blue);
  font-size: 0.85rem;
}

.qr-footer {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid #e1e7f0;
}

.qr-share-wrap {
  background: #eef4fb;
  border: 1px dashed var(--primary-sky);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin: 1rem auto 0;
  max-width: 620px;
}

.qr-share-input {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.qr-share-code {
  flex: 1 1 auto;
  background: #fff;
  border: 1px solid #d0d7e2;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  word-break: break-all;
}

.qr-banner-title {
  color: var(--primary-blue);
  font-weight: 700;
}

.qr-banner-sub {
  color: var(--bs-text-muted, #6c757d);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .registro-card {
    padding: 1.5rem;
  }
  .sidebar {
    width: 80px;
  }
  .sidebarCollapsable {
    display: none;
  }
  .sidebar-logo {
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .qr-masonry {
    column-count: 1;
    column-gap: 0;
  }
  .qr-card {
    width: 100%;
    padding: 1.5rem;
  }
  .qr-code {
    width: 160px;
    height: 160px;
  }
  .qr-photo {
    width: 100px;
    height: 100px;
  }
}

/* ===== SKIP LINK (P1) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== TEXTO SECUNDARIO ACCESIBLE (P0) ===== */
.text-muted {
  color: var(--text-muted) !important;
}

/* ===== CONTENEDORES DE PÁGINA (P1 estructural) ===== */
.olumed-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 2rem 1rem;
}
.olumed-page--narrow {
  max-width: 900px;
}
.olumed-page--wide {
  max-width: 1200px;
}
.olumed-page--compact {
  max-width: 720px;
}
.olumed-page--small {
  max-width: 560px;
}

/* ===== UTILIDADES DE LAYOUT (P1 estructural) ===== */
.olumed-max-520 { max-width: 520px; }
.olumed-max-560 { max-width: 560px; }
.olumed-max-600 { max-width: 600px; }
.olumed-max-680 { max-width: 680px; }
.olumed-max-720 { max-width: 720px; }
.olumed-max-820 { max-width: 820px; }
.olumed-max-860 { max-width: 860px; }
.olumed-object-cover { object-fit: cover; }
.olumed-link-plain { color: inherit; text-decoration: none; }
.olumed-flex-col-center { display: flex; flex-direction: column; align-items: center; }
.olumed-nowrap { white-space: nowrap; }
.olumed-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== TARJETA BASE + MODIFICADORES (P1 estructural) ===== */
.olumed-card {
  background: #ffffff;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
}
.olumed-card--form {
  border-radius: 20px;
  padding: 2rem 2.5rem;
  border-color: #d0d7e2;
}
.olumed-card--form.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.olumed-card--metric {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  box-shadow: none;
}
.olumed-card--legal {
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.olumed-card--legal:hover {
  border-color: var(--primary-sky);
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.08);
}
.olumed-card--qr {
  width: 720px;
  max-width: 100%;
  border-radius: 22px;
  padding: 2rem 2rem 2.5rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

/* ===== NOTICES / BANNERS (P1 estructural) ===== */
.olumed-notice {
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border: 1px solid #e1e7f0;
  background: #f8fafc;
}
.olumed-notice--info {
  background: #eef4fb;
  border-color: var(--primary-sky);
  color: var(--primary-blue);
}
.olumed-notice--success {
  background: #eaf7f3;
  border-color: var(--primary-accent);
  color: #0f5132;
}
.olumed-notice--warning {
  background: #fff8e1;
  border-color: #ffc107;
  color: #664d03;
}
.olumed-notice--danger {
  background: #fde8e8;
  border-color: #dc3545;
  color: #842029;
}
.olumed-notice--security {
  background: #f0f7ff;
  border-color: var(--primary-sky);
  color: var(--primary-blue);
}

/* ===== CLASES FALTANTES DE TARJETA PRIVADA (P1 estructural) ===== */
.qr-Binside {
  padding: 0.5rem 0;
}
.qr-inside {
  padding-top: 5px;
}
.qr-medico {
  margin-top: 0.6rem;
}

/* ===== INDICADOR DE SCROLL HORIZONTAL EN TABLAS (P1 estructural) ===== */
.olumed-table-wrap {
  position: relative;
}
.olumed-table-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 24px;
  background: linear-gradient(to right, transparent, rgba(248, 250, 252, 0.9));
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.olumed-table-wrap:hover::after,
.olumed-table-wrap:focus-within::after {
  opacity: 1;
}

/* ===== SKIP LINK (P1) ===== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: var(--primary-blue);
  color: #fff;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

/* ===== UTILIDADES / COMPATIBILIDAD ===== */

.olumed-body-bg {
  background: var(--soft-bg);
}

.olumed-adminbar {
  background: var(--primary-blue);
}

.olumed-card {
  border-radius: 16px;
  border: 1px solid #e1e7f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.olumed-card-soft {
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  background: #fff;
}

.olumed-btn {
  background: var(--primary-blue);
  border: 1px solid var(--primary-sky);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.olumed-btn:hover {
  background: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-sky);
  box-shadow: 4px 4px var(--primary-sky);
}

.olumed-btn-sec {
  background: #fff;
  border: 1px solid var(--primary-sky);
  color: var(--primary-blue);
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.olumed-btn-sec:hover {
  background: var(--soft-bg);
  color: #000;
}

.olumed-table td,
.olumed-table th {
  vertical-align: middle;
}

.olumed-action {
  white-space: nowrap;
}

/* ===== BLOQUES LEGALES / AYUDA ===== */
.legal-page {
  max-width: 980px;
}

.legal-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  color: inherit;
  text-decoration: none;
  transition: 0.2s;
}

.legal-card:hover {
  border-color: var(--primary-sky);
  box-shadow: 0 8px 22px rgba(15, 76, 129, 0.08);
  color: inherit;
}

.legal-doc h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 1.6rem;
  margin-bottom: 0.5rem;
}

.legal-doc p,
.legal-doc li {
  color: #374151;
  line-height: 1.65;
}

.legal-doc ul {
  padding-left: 1.2rem;
}

/* ===== ANUNCIO / MARQUEE ===== */
.anuncio-bar {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-accent));
}

/* ===== AVATAR ===== */
.perfil-foto-inicial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #0f4c81 0%, #1d4ed8 100%);
  border-radius: 50%;
  width: 90px;
  height: 90px;
}

/* ===== RESEÑAS DE PRODUCTO ===== */
.producto-reviews {
  border-top: 1px solid #e1e7f0;
  padding-top: 0.6rem;
  text-align: left;
}

.review-item + .review-item {
  margin-top: 0.5rem;
  border-top: 1px dashed #e1e7f0;
  padding-top: 0.5rem;
}

/* ===== TICKETS ===== */
.ticket-hilo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-mensaje {
  background: #f5f8fb;
  border: 1px solid #e1e7f0;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.ticket-mensaje-soporte {
  background: #eaf7f3;
  border-color: #bfe8db;
}

/* Impresión (COLA #A14): imprime solo la tarjeta, sin chrome ni botones. */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body * {
    visibility: hidden;
  }
  .qr-card,
  .qr-card * {
    visibility: visible;
  }
  .qr-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 1px solid #ddd;
    page-break-inside: avoid;
  }
  .historia-print,
  .historia-print * {
    visibility: visible;
  }
  .historia-print {
    position: static !important;
    box-shadow: none;
    page-break-inside: avoid;
  }
  .qr-card-wrapper {
    margin: 0;
    padding: 0;
    box-shadow: none;
  }
  .qr-code canvas {
    display: none !important;
  }
  .qr-svg {
    display: block !important;
    width: 200px;
    height: auto;
  }
  .navbar,
  .navbar-olumed,
  .sidebar,
  footer,
  .footer-section,
  .qr-sitebar,
  .qr-footer,
  .qr-card-wrapper > .alert,
  form,
  .qr-share-wrap,
  .qr-btn,
  .dash-links {
    display: none !important;
  }
}

/* ===== FOCO VISIBLE Y REDUCCIÓN DE MOVIMIENTO (P0) ===== */
:where(a, button, input, select, textarea, [role="button"], [tabindex]:not([tabindex="-1"])):focus-visible {
  outline: 3px solid #0f4c81;
  outline-offset: 2px;
  box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .producto-card:hover,
  .legal-card:hover {
    transform: none !important;
  }
  .sidebar {
    transition: none !important;
  }
  .navbar-olumed .nav-item .nav-link::after {
    transition: none !important;
  }
}


/* ===== MEJORAS FOCUS GROUP (2026-11-25) ===== */

/* Contraste y tipografia accesible */
body {
  font-size: 1.0625rem;
}

.text-muted {
  color: #4b5563 !important;
}

.hero-metrics {
  color: #374151;
}

/* Tarjeta de emergencia (hero) */
.emergency-card {
  max-width: 380px;
  background: #fff;
  border: 1px solid #e1e7f0;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.12);
  overflow: hidden;
}

.emergency-card-head {
  background: linear-gradient(90deg, var(--primary-blue), var(--primary-accent));
  color: #fff;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.emergency-card-body {
  padding: 1.25rem;
}

.emergency-card-data .label {
  color: #4b5563;
  font-weight: 600;
}

.emergency-card-data p {
  margin-bottom: 0.35rem;
}

/* Seccion de confianza / seguridad */
.trust-section {
  background: #fff;
}

.trust-card {
  padding: 1.5rem;
  border: 1px solid #e1e7f0;
  border-radius: 16px;
  height: 100%;
  background: #f8fafc;
}

.trust-card h5 {
  color: var(--primary-blue);
  font-weight: 700;
}

.trust-icon {
  color: var(--primary-blue);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

/* Movil: zonas tactiles y espaciado */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.9rem;
  }
  .hero-ctas .btn-lg {
    min-height: 48px;
  }
  .hero-metrics {
    gap: 1rem !important;
  }
}

/* ===== REGLAS RECUPERADAS DE LA VARIANTE CANÓNICA ===== */
.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 28px rgba(15, 76, 129, 0.14);
  border-color: var(--primary-sky);
}

.benefit-card:hover .benefit-icon {
  transform: scale(1.08);
}

/* Encabezado de sección con estilo de marca */
.section-heading {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 2rem;
}

/* Foco visible accesible para botones y enlaces de navegación */
.btn-primary-qr:focus-visible,
.btn-secondary-qr:focus-visible,
.navbar-olumed .nav-link:focus-visible,
.footer-main a:focus-visible {
  outline: 2px solid var(--primary-sky);
  outline-offset: 2px;
}

/* ===== FOOTER (rediseño 2026-11-25) ===== */
.footer-main {
  background:
    radial-gradient(900px 320px at 12% 0%, rgba(82, 161, 225, 0.18) 0%, transparent 65%),
    linear-gradient(180deg, #0c3357 0%, #08233c 100%);
  color: #eaf1f8;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
}

/* Marca */
.footer-main .footer-brand-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1.1;
}

.footer-main .footer-brand-name:hover {
  color: #ffffff;
}

.footer-main .footer-brand-name img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  padding: 2px;
  flex: 0 0 auto;
}

.footer-main .footer-desc {
  color: rgba(234, 241, 248, 0.78);
  font-size: 0.925rem;
  line-height: 1.65;
  max-width: 36ch;
  margin: 0.9rem 0 0;
}

/* Columnas de enlaces */
.footer-main .footer-title {
  color: #ffffff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  margin: 0 0 1rem;
}

.footer-main .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-main .footer-links li {
  margin-bottom: 0.55rem;
}

.footer-main .footer-links li:last-child {
  margin-bottom: 0;
}

.footer-main .footer-links a {
  color: rgba(234, 241, 248, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.45;
  display: inline-block;
  padding: 0.1rem 0;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-main .footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
  text-decoration: none;
}

/* Redes sociales */
.footer-main .footer-social {
  display: flex;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-main .footer-social-ico {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #eaf1f8;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.footer-main .footer-social-ico:hover {
  background: var(--primary-sky);
  border-color: var(--primary-sky);
  color: #08233c;
  transform: translateY(-2px);
}

.footer-main .footer-social-ico svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* CTA de cierre: panel glass sobre el azul marino */
.footer-cta {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-cta-copy {
  max-width: 62ch;
}

.footer-cta-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.3;
  margin: 0 0 0.35rem;
}

.footer-cta-sub {
  color: rgba(234, 241, 248, 0.8);
  font-size: 0.95rem;
  margin: 0;
}

.footer-cta .btn-primary-qr {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-color: #ffffff;
  color: var(--primary-blue);
}

.footer-cta .btn-primary-qr:hover,
.footer-cta .btn-primary-qr:focus {
  background: var(--primary-sky);
  border-color: var(--primary-sky);
  color: #08233c;
  box-shadow: 0 6px 18px rgba(82, 161, 225, 0.28);
}

/* Barra inferior */
.footer-main .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(234, 241, 248, 0.62);
  font-size: 0.82rem;
  padding-top: 1.25rem;
  margin-top: 2.5rem;
}

.footer-main .footer-bottom a {
  color: rgba(234, 241, 248, 0.8);
  text-decoration: none;
}

.footer-main .footer-bottom a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-main .footer-trust {
  color: rgba(234, 241, 248, 0.62);
}

/* Reparto vertical de columnas */
.footer-main .footer-col {
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .footer-cta {
    flex-direction: row;
    align-items: center;
    padding: 1.75rem 2.25rem;
  }
}

@media (min-width: 992px) {
  .footer-main .footer-col {
    margin-bottom: 0;
  }
}

@media (max-width: 575.98px) {
  .footer-main {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }

  .footer-main .footer-brand-name {
    font-size: 1.2rem;
  }

  .footer-main .footer-desc {
    max-width: none;
    margin-top: 0.7rem;
  }

  .footer-main .footer-social {
    margin-top: 1rem;
  }

  .footer-main .footer-social-ico {
    width: 42px;
    height: 42px;
  }

  .footer-main .footer-col {
    margin-bottom: 1.25rem;
  }

  .footer-cta {
    padding: 1rem;
    text-align: center;
    align-items: center;
    gap: 0.9rem;
  }

  .footer-cta-title {
    font-size: 1.2rem;
  }

  .footer-cta-sub {
    font-size: 0.9rem;
  }

  .footer-cta .btn-primary-qr {
    width: 100%;
  }

  .footer-main .footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }
}
