/* ==========================================
   Design System — Dark Mode Premium
   ========================================== */

:root {
  --bg-body: #0f172a;
  --bg-card: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #3b82f6;
  --radius-card: 12px;
  --radius-lg: 16px;
  --transition-base: all 0.3s ease;
  --navbar-height: 64px;
}

body.light-mode {
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
}

body {
  background-color: var(--bg-body);
  color: var(--text-main);
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--text-main);
}

::selection {
  background: var(--accent);
  color: #fff;
}

.text-muted {
  color: #94a3b8 !important;
}

body.light-mode .text-muted {
  color: #64748b !important;
}

/* ==========================================
   Navbar — Dark Mode
   ========================================== */

.navbar-premium {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  height: var(--navbar-height);
}

.navbar-premium .navbar-brand {
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-premium .navbar-brand i {
  color: var(--accent);
}

.navbar-premium .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  border-radius: 0.5rem;
  transition: var(--transition-base);
}

.navbar-premium .nav-link:hover,
.navbar-premium .nav-link.active {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.06);
}

.theme-toggle-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  padding: 0;
  transition: var(--transition-base);
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-toggle-btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

body.light-mode .theme-toggle-btn {
  border-color: rgba(0, 0, 0, 0.1);
  color: #64748b;
}

body.light-mode .theme-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1e293b;
  border-color: rgba(0, 0, 0, 0.2);
}



/* ==========================================
   Hero Section — Premium Dark
   ========================================== */

.hero-premium {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  padding: 5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-premium::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-premium::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-premium h1 {
  color: #fff;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.hero-premium .lead {
  color: #cbd5e1;
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
}

.hero-premium p {
  color: #cbd5e1 !important;
}

.bank-portal-section p {
  color: #cbd5e1 !important;
}

.search-box-unified {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 5px;
  overflow: hidden;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.search-box-unified .search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.25rem;
  color: #94a3b8;
  flex-shrink: 0;
}

.search-box-unified input {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 1rem 0.75rem;
  font-size: 1rem;
  background: transparent;
  color: #1e293b;
  min-width: 0;
}

.search-box-unified input::placeholder {
  color: #94a3b8;
}

.search-box-unified button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 0.65rem 1.6rem;
  margin: 3px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.search-box-unified button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* ==========================================
   Bank Portal Cards
   ========================================== */

.bank-portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.bank-portal-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: var(--transition-base);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-portal-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bank-portal-logo {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bank-portal-card h5 {
  color: var(--text-main);
  font-weight: 700;
  margin: 0;
  font-size: 1.1rem;
}

.bank-portal-card small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.bank-portal-card .portal-arrow {
  color: var(--accent);
  opacity: 0;
  transform: translateX(-10px);
  transition: var(--transition-base);
}

.bank-portal-card:hover .portal-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================
   Contact Section
   ========================================== */

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-input {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.contact-input::placeholder {
  color: #64748b;
}

.contact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.contact-btn:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

body.light-mode .contact-card {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
}

body.light-mode .contact-input {
  background: #fff;
  border-color: #e2e8f0;
  color: #1e293b;
}

body.light-mode .contact-input::placeholder {
  color: #94a3b8;
}

body.light-mode .contact-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.contact-alert {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.contact-alert-success {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.contact-alert-error {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================
   Card System
   ========================================== */

.card,
.benefit-card,
.bank-card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  border: 1px solid #334155;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.benefit-card:hover,
.bank-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: 0;
}

.img-scotia {
  object-fit: cover;
  object-position: right center;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
  transition: var(--transition-base);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* ==========================================
   Modal — Dark Mode
   ========================================== */

.modal-content {
  background: #1e293b;
  border: 1px solid #334155;
}

.modal-header {
  border-bottom: 1px solid #334155;
}

.modal-footer {
  border-top: 1px solid #334155;
}

.modal-title {
  color: #ffffff;
}

.modal-body,
.modal-body p,
.modal-body li {
  color: #cbd5e1;
}

.modal-body strong,
.modal-body b {
  color: #ffffff;
}

.modal-body a {
  color: #60a5fa;
}

.modal-body a:hover {
  color: #93c5fd;
}

/* ==========================================
   Benefit Card Grid (CSS Grid)
   ========================================== */

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.benefit-grid > .benefit-card-wrapper {
  max-width: 350px;
  justify-self: center;
  width: 100%;
}

/* ==========================================
   Benefit Card Shared
   ========================================== */

.benefit-card {
  overflow: hidden;
}

.benefit-card .card-title {
  color: #ffffff;
  font-size: 0.95rem;
}

.benefit-card .card-text {
  color: #cbd5e1 !important;
}

.benefit-card .text-secondary {
  color: #94a3b8 !important;
}

.card-image-container {
  background: #ffffff;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  overflow: hidden;
  height: 180px;
}

.benefit-thumb {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.benefit-pct-corner {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.28rem 0.72rem;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: -0.02em;
  color: #fff;
  background: rgba(15, 20, 25, 0.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  font-variant-numeric: tabular-nums;
}

.benefit-pct-cashback {
  background: rgba(25, 135, 84, 0.85);
  border-color: rgba(255, 255, 255, 0.35);
}

.benefit-metrics {
  background: linear-gradient(145deg, rgba(25, 135, 84, 0.12), rgba(25, 135, 84, 0.03));
  border: 1px solid rgba(25, 135, 84, 0.16);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  margin-top: 0.75rem;
}

.benefit-metric-main {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-metric-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.55);
  color: rgb(21, 115, 71);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 16px rgba(25, 135, 84, 0.12);
}

[data-bs-theme="dark"] .benefit-metric-icon {
  background: rgba(30, 40, 35, 0.65);
  color: var(--bs-success-text-emphasis);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 16px rgba(0, 0, 0, 0.25);
}

.benefit-metric-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  flex: 1;
}

.benefit-metric-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bs-success);
  opacity: 0.95;
  margin-bottom: 0.06rem;
}

.benefit-metric-num {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  color: rgb(15, 90, 55);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.benefit-metric-sym {
  font-size: 1.15rem;
  font-weight: 700;
  margin-left: 0.08em;
  opacity: 0.9;
}

[data-bs-theme="dark"] .benefit-metric-num {
  color: var(--bs-success-text-emphasis);
}

.benefit-metric-extra {
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px dashed rgba(25, 135, 84, 0.2);
  font-size: 0.8125rem;
  color: var(--bs-secondary-color);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.35;
}

.benefit-metric-extra i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 0.8;
}

.benefit-metrics .benefit-vigencia-span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-promo-slot-empty {
  margin-top: 0.95rem;
  min-height: 4.85rem;
}

.benefit-cuotas-line {
  margin-top: 0.95rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  letter-spacing: 0.02em;
}

.benefit-descuento-con-tarjeta {
  margin-top: 0.95rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(145deg, rgba(25, 135, 84, 0.12), rgba(25, 135, 84, 0.03));
  border: 1px solid rgba(25, 135, 84, 0.16);
  border-radius: 1rem;
}

.benefit-descuento-con-tarjeta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-success);
  margin-bottom: 0.35rem;
}

.benefit-descuento-con-tarjeta-pct {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: rgb(15, 90, 55);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.benefit-descuento-con-tarjeta-pct .pct-suffix {
  font-size: 1.2rem;
  font-weight: 700;
  margin-left: 0.06em;
  opacity: 0.92;
}

[data-bs-theme="dark"] .benefit-descuento-con-tarjeta-pct {
  color: var(--bs-success-text-emphasis);
}

.benefit-subbar {
  margin-top: 0.95rem;
  padding: 0.65rem 0.95rem;
  background: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: 0.9rem;
  font-size: 0.815rem;
  color: var(--bs-secondary-color);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.4;
}

.benefit-subbar > i:first-child {
  margin-top: 0.14rem;
  flex-shrink: 0;
  color: var(--bs-success);
  opacity: 0.95;
}

.benefit-subbar-muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.benefit-subbar-discount .benefit-subbar-stack {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.benefit-subbar-discount-top {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  line-height: 1.15;
}

.benefit-subbar-discount-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
}

.benefit-subbar-discount-pct {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.benefit-subbar-discount-bottom {
  font-size: 0.78rem;
  color: var(--bs-secondary-color);
  line-height: 1.35;
}

.benefit-subbar-discount > i:first-child {
  margin-top: 0.35rem;
}

/* ==========================================
   Benefit Detail Shared
   ========================================== */

.benefit-detail-hero {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.08), rgba(102, 16, 242, 0.08));
  border: 1px solid rgba(13, 110, 253, 0.2);
  border-radius: var(--radius-card);
  padding: 0.85rem 1rem;
}

.benefit-detail-main {
  font-weight: 600;
  color: var(--bs-emphasis-color);
  margin-bottom: 0.25rem;
}

.benefit-detail-offer {
  color: var(--bs-success-text-emphasis);
  font-weight: 600;
}

.benefit-detail-section-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--bs-primary-text-emphasis);
  border-left: 4px solid var(--bs-primary);
  padding-left: 0.6rem;
}

.benefit-detail-list {
  margin-bottom: 0.4rem;
}

.benefit-detail-list li {
  line-height: 1.45;
}

.benefit-detail-paragraph {
  line-height: 1.55;
}

/* ==========================================
   Badges
   ========================================== */

.categoria-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 1rem;
  font-weight: 500;
}

.badge-categoria {
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 5px;
  background-color: #ffc107;
  color: #000;
}

.badge-banco {
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 5px;
  background-color: #ed1c24;
  color: #fff;
}

.badge-dia {
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-right: 5px;
  background-color: #28a745;
  color: #fff;
}

/* ==========================================
   Sidebar Navigation (SaaS-style)
   ========================================== */

.sidebar-nav {
  position: sticky;
  top: calc(var(--navbar-height) + 1.5rem);
  align-self: start;
}

.sidebar-section-title {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
}

.sidebar-link.active {
  background: var(--accent);
  color: #fff;
}

.sidebar-link i,
.sidebar-link svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-link.active svg {
  opacity: 1;
}

.sidebar-link.active .bank-name {
  color: #fff;
}

.btn-limpiar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.625rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  background: transparent;
  border: 1px solid #475569;
  text-decoration: none;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-limpiar:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border-color: var(--text-muted);
}

/* ==========================================
   Bank Logo Circles
   ========================================== */

.bank-logo-circle {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.bank-logo-bci { background: #003DA5; }
.bank-logo-santander { background: #EC0000; }
.bank-logo-banco-de-chile { background: #1A3C6E; }
.bank-logo-scotiabank { background: #EC111A; }

.sidebar-link .bank-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.sidebar-link.active .bank-name {
  color: #fff;
}

/* ==========================================
   Beneficio Cuerpo (Detalle Modal)
   ========================================== */

.beneficio-cuerpo {
  white-space: pre-line;
  line-height: 1.6;
  font-size: 0.95rem;
  color: var(--text-body);
}

.modal-body .beneficio-cuerpo,
.modal-body .beneficio-detalle {
  color: #cbd5e1;
}

.beneficio-detalle p,
.beneficio-cuerpo p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.beneficio-cuerpo > .benefit-detail-section-title ~ * {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.beneficio-cuerpo > .benefit-detail-section-title ~ * p {
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.beneficio-cuerpo > .benefit-detail-section-title {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bs-border-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.beneficio-detalle-hero {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(102, 16, 242, 0.06));
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: var(--radius-card);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.beneficio-detalle-hero p {
  margin-bottom: 0.25rem;
}

.beneficio-detalle-hero p:first-child {
  font-weight: 600;
  font-size: 1rem;
}

/* ==========================================
   Ad Placeholder
   ========================================== */

.ad-card {
  background: var(--bs-tertiary-bg);
  border: 2px dashed var(--bs-secondary-color);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  color: var(--bs-secondary-color);
  transition: background 0.2s ease;
}

.ad-card:hover {
  background: var(--bs-secondary-bg);
}

/* ==========================================
   Responsive — Mobile
   ========================================== */

@media (max-width: 575.98px) {
  .card,
  .benefit-card,
  .bank-card {
    margin-left: 0;
    margin-right: 0;
    border-radius: var(--radius-card);
  }

  .container > .row > [class*="col-"] {
    padding-left: 6px;
    padding-right: 6px;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 991.98px) {
  .sidebar-nav {
    position: static;
    margin-bottom: 1.5rem;
  }
}

/* ==========================================
   Footer
   ========================================== */

.footer {
  background: #0f172a;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.footer-brand {
  color: #cbd5e1;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.footer-version {
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ==========================================
   Utility
   ========================================== */

main {
  flex: 1;
}

/* ==========================================
   Light Mode Overrides
   ========================================== */

body.light-mode .navbar-premium {
  background: rgba(248, 250, 252, 0.9);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .navbar-premium .nav-link {
  color: #475569;
}

body.light-mode .navbar-premium .nav-link:hover,
body.light-mode .navbar-premium .nav-link.active {
  background: rgba(0, 0, 0, 0.04);
  color: #1e293b;
}





body.light-mode .navbar-premium .navbar-brand {
  background: linear-gradient(135deg, #1e293b 0%, #64748b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.light-mode .hero-premium {
  background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 50%, #e2e8f0 100%);
}

body.light-mode .hero-premium h1 {
  color: #1e293b;
}

body.light-mode .hero-premium .lead,
body.light-mode .hero-premium p {
  color: #475569 !important;
}

body.light-mode .search-box-unified input {
  color: #1e293b;
}

body.light-mode .card,
body.light-mode .benefit-card,
body.light-mode .bank-card {
  border-color: #e2e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

body.light-mode .benefit-card .card-title {
  color: #1e293b;
}

body.light-mode .benefit-card .card-text {
  color: #475569 !important;
}

body.light-mode .benefit-card .text-secondary {
  color: #64748b !important;
}

body.light-mode .modal-content {
  background: #ffffff;
  border-color: #e2e8f0;
}

body.light-mode .modal-title {
  color: #1e293b;
}

body.light-mode .modal-body,
body.light-mode .modal-body p,
body.light-mode .modal-body li {
  color: #475569;
}

body.light-mode .modal-body strong,
body.light-mode .modal-body b {
  color: #1e293b;
}

body.light-mode .modal-body .beneficio-cuerpo,
body.light-mode .modal-body .beneficio-detalle {
  color: #475569;
}

body.light-mode .modal-header {
  border-bottom-color: #e2e8f0;
}

body.light-mode .modal-footer {
  border-top-color: #e2e8f0;
}

body.light-mode .sidebar-link {
  color: #475569;
}

body.light-mode .sidebar-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #1e293b;
}

body.light-mode .footer {
  background: #1e293b;
  border-top-color: rgba(255, 255, 255, 0.08);
}

body.light-mode .bank-portal-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .bank-portal-card h5 {
  color: #1e293b;
}

body.light-mode .btn-limpiar {
  color: #475569;
  border-color: #cbd5e1;
}

body.light-mode .btn-limpiar:hover {
  color: #1e293b;
  border-color: #64748b;
  background: rgba(0, 0, 0, 0.04);
}


