:root {
  --primary-blue: #0f4c81;
  --primary-green: #1abc9c;
  --primary-sky: #52a1e1;
  --soft-bg: #f5f8fb;
  --text-muted: #6c757d;
  --primary-hover-btn: #bcd4e7;
}

body {
  background: #ffffff;
  color: #1f2933;
  font-family: system-ui, 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 ::after {
  width: 100%;
}

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

/* HERO */

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

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

.hero-subtitle {
  color: var(--text-muted);
}

.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: 140px;
  height: 140px;
  background: repeating-linear-gradient(45deg, #d0d7e2, #d0d7e2 6px, #f5f8fb 6px, #f5f8fb 12px);
  border-radius: 12px;
  margin: auto;
}

/* BENEFICIOS */

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

.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%);
}

/* PRODUCTOS */

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

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

.producto-img {
  width: 100%;
  height: 180px;
  background: repeating-linear-gradient(45deg, #d0d7e2, #d0d7e2 6px, #f5f8fb 6px, #f5f8fb 12px);
  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 */

.sidebar {
  width: 240px;
  background: #0f4c81;
  color: #fff;
  padding: 1.5rem 1rem;
}

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

.sidebar-logo i {
  font-size: 1.6rem;
  color: #52a1e1;
}

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

.sidebar-menu li {
  padding: .7rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .6rem;
  transition: .2s;
}

.sidebar-menu li i {
  font-size: 1.2rem;
}

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

/* MAIN CONTENT */

.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);
}

.dash-title {
  font-weight: 600;
  color: #0f4c81;
  margin-bottom: .8rem;
}

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

.dash-list li {
  margin-bottom: .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: .4rem 0;
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #0f4c81;
  cursor: pointer;
}

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

/* CONTENEDOR GENERAL */

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

/* TARJETA PRINCIPAL */

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

/* TÍTULO PRINCIPAL */

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

/* SUBTÍTULOS DE SECCIÓN */

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

/* CAMPOS */

.form-control, .form-select {
  border-radius: 10px;
  border: 1px solid #d0d7e2;
}

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

/* RESPONSIVE */

@media (max-width: 768px) {
  .registro-card {
    padding: 1.5rem;
  }
}

/* ===== LOGIN PAGE ===== */

.login-bg {
  background: #e8f5ff;
  background-image: url('');
  background-repeat: repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

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

.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;
}

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

/* INPUTS */

.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;
}

.form-control:focus {
  border-color: var(--primary-);
  box-shadow: 0 0 0 .15rem rgba(26,188,156,0.25);
}

/* LINKS */

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

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

/* BOTÓN */

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

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

.btn-secondary-qr {
  background: transparent;
  border-color: rgb(0, 0, 0);
  color: black;
  font-weight: 600;
  border-radius: 10px;
}

.btn-secondary-qr:hover {
  background: transparent;
  border-color: rgb(0, 0, 0);
  color: black;
  font-weight: 600;
  border-radius: 10px;
  box-shadow: 5px 5px black;
}

.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;
}

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

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

/* ===== TARJETA QR MÉDICO CON 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);
}

/* FOTO */

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

.qr-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #d0d7e2;
  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 */

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

.qr-code {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  background: repeating-linear-gradient( 45deg, #d0d7e2, #d0d7e2 6px, #f5f8fb 6px, #f5f8fb 12px );
  border: 1px solid #cfd6df;
}

/* MASONRY GRID */

.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;
}

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

