/* ==========================================================================
   TU RED 18 — LIQUID GLASS DESIGN SYSTEM (Inspirado en iOS 26 Liquid Glass)
   Reglas aplicadas de liquid-glass.md:
   - GlassEffectContainer: los paneles de cristal muestrean el lienzo ambiental,
     evitando anidar cristal borroso sobre otro cristal borroso.
   - .glass-interactive solo en controles pulsables/interactivos.
   - Tintes translúcidos (tint opacity) en lugar de bloques opacos planos.
   - Bordes concéntricos consistentes (24px contenedores, 16px internos, cápsulas).
   - Fallback tipo ultraThinMaterial para navegadores antiguos.
   ========================================================================== */

:root {
  --bg-deep: #040914;
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(214, 228, 248, 0.72);
  --text-muted: rgba(168, 190, 220, 0.56);

  /* Materiales Liquid Glass */
  --glass-bg-regular: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.13) 0%,
    rgba(255, 255, 255, 0.05) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  --glass-bg-clear: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-subtle: rgba(255, 255, 255, 0.12);
  --glass-specular:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.42),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.08),
    inset 1px 0 0.5px rgba(255, 255, 255, 0.14),
    0 18px 42px -12px rgba(0, 6, 20, 0.58);

  /* Tintes Semánticos (Liquid Glass Tint) */
  --tint-cyan: rgba(14, 165, 233, 0.34);
  --tint-cyan-strong: rgba(2, 132, 199, 0.52);
  --tint-violet: rgba(139, 92, 246, 0.34);
  --tint-emerald: rgba(16, 185, 129, 0.36);
  --tint-amber: rgba(245, 158, 11, 0.36);
  --tint-crimson: rgba(239, 68, 68, 0.34);

  /* Radios concéntricos */
  --radius-card: 24px;
  --radius-inner: 16px;
  --radius-pill: 999px;

  --blur-regular: blur(28px) saturate(185%);
  --spring-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 20px 16px 48px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
  line-height: 1.45;
}

/* Lienzo Ambiental Dinámico detrás de los cristales */
.ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.32), transparent 48%),
    radial-gradient(circle at 85% 22%, rgba(99, 102, 241, 0.28), transparent 46%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.2), transparent 52%),
    linear-gradient(180deg, #040914 0%, #071226 55%, #040914 100%);
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.62;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.ambient-orb.orb-1 {
  width: 340px;
  height: 340px;
  background: #0ea5e9;
  top: -80px;
  left: -70px;
}

.ambient-orb.orb-2 {
  width: 300px;
  height: 300px;
  background: #8b5cf6;
  top: 28%;
  right: -90px;
  animation-delay: -6s;
}

.ambient-orb.orb-3 {
  width: 320px;
  height: 320px;
  background: #10b981;
  bottom: -100px;
  left: 18%;
  animation-delay: -11s;
}

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(26px, 34px, 0) scale(1.12); }
}

/* Contenedor Principal (GlassEffectContainer) */
.app-container {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.app-container.wide {
  max-width: 780px;
}

/* ==========================================================================
   SUPERFICIES LIQUID GLASS (.glass-regular, .glass-clear, .glass-interactive)
   ========================================================================== */
.glass-regular {
  background: var(--glass-bg-regular);
  backdrop-filter: var(--blur-regular);
  -webkit-backdrop-filter: var(--blur-regular);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-card);
  box-shadow: var(--glass-specular);
  position: relative;
  overflow: hidden;
}

.glass-clear {
  background: var(--glass-bg-clear);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-border-subtle);
  border-radius: var(--radius-inner);
}

/* Superficie interna que NO re-aplica backdrop-filter (Glass cannot sample glass) */
.glass-well {
  background: rgba(5, 12, 26, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-inner);
}

/* Fallback ultraThinMaterial cuando el navegador no soporta backdrop-filter */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-regular,
  .glass-clear {
    background: rgba(15, 25, 45, 0.92);
  }
}

/* Tintes Liquid Glass */
.glass-tint-cyan {
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.26), rgba(2, 132, 199, 0.12));
  border-color: rgba(125, 211, 252, 0.38);
}

.glass-tint-violet {
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.26), rgba(109, 40, 217, 0.12));
  border-color: rgba(196, 181, 253, 0.38);
}

.glass-tint-emerald {
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.26), rgba(5, 150, 105, 0.12));
  border-color: rgba(110, 231, 183, 0.4);
}

.glass-tint-amber {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.25), rgba(217, 119, 6, 0.12));
  border-color: rgba(252, 211, 77, 0.38);
}

.glass-tint-crimson {
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.25), rgba(185, 28, 28, 0.13));
  border-color: rgba(252, 165, 165, 0.4);
}

/* Interactividad Liquid Glass (SOLO en elementos pulsables) */
.glass-interactive {
  cursor: pointer;
  transition:
    transform 0.32s var(--spring-smooth),
    border-color 0.28s ease,
    box-shadow 0.32s var(--spring-smooth),
    background 0.28s ease;
  --glow-x: 50%;
  --glow-y: 0%;
}

.glass-interactive::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    260px circle at var(--glow-x) var(--glow-y),
    rgba(255, 255, 255, 0.22),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.glass-interactive:hover::after,
.glass-interactive:focus-visible::after {
  opacity: 1;
}

.glass-interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
}

.glass-interactive:active {
  transform: scale(0.982);
}

/* ==========================================================================
   ENCABEZADO Y NAVEGACIÓN CÁPSULA (GlassSegmentedControl)
   ========================================================================== */
.header {
  text-align: center;
  padding: 8px 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(99, 102, 241, 0.26));
  border: 1px solid rgba(186, 230, 253, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 18px rgba(14, 165, 233, 0.22);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #f0f9ff;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 10px #34d399;
  animation: pulseDot 2.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.header h1 {
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 460px;
}

/* Segmented Control en Cápsula Liquid Glass */
.glass-segmented {
  display: flex;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--blur-regular);
  -webkit-backdrop-filter: var(--blur-regular);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 10px 26px rgba(0, 0, 0, 0.35);
}

.seg-btn {
  flex: 1;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  padding: 11px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s var(--spring-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.seg-btn:hover {
  color: #ffffff;
}

.seg-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(37, 99, 235, 0.38));
  border-color: rgba(186, 230, 253, 0.5);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(2, 132, 199, 0.32);
  color: #ffffff;
}

.view-section {
  display: none;
  flex-direction: column;
  gap: 20px;
  animation: fadeSlideIn 0.36s var(--spring-smooth);
}

.view-section.active {
  display: flex;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==========================================================================
   TARJETAS Y BOTONES LIQUID GLASS (.buttonStyle(.glass) / .glassProminent)
   ========================================================================== */
.card-pad {
  padding: 24px;
}

.hero-pay-card {
  padding: 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-icon-orb {
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.2));
  border: 1px solid rgba(186, 230, 253, 0.45);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(14, 165, 233, 0.28);
}

.hero-pay-card h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-pay-card p {
  color: var(--text-secondary);
  font-size: 0.93rem;
  max-width: 440px;
}

/* Botones Cápsula estilo iOS 26 Glass */
.btn-glass {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.96rem;
  font-weight: 600;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.45), 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.26s var(--spring-smooth), box-shadow 0.26s ease, background 0.26s ease;
}

.btn-glass:hover {
  transform: translateY(-1.5px);
  background: rgba(255, 255, 255, 0.18);
}

.btn-glass:active {
  transform: scale(0.975);
}

.btn-glass-prominent {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.78), rgba(37, 99, 235, 0.78));
  border-color: rgba(186, 230, 253, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.58),
    0 12px 28px -4px rgba(14, 165, 233, 0.48);
}

.btn-glass-prominent:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.88), rgba(37, 99, 235, 0.88));
}

.btn-glass-emerald {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.78), rgba(5, 150, 105, 0.78));
  border-color: rgba(167, 243, 208, 0.6);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 12px 28px -4px rgba(16, 185, 129, 0.42);
}

.btn-glass-amber {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.82), rgba(217, 119, 6, 0.82));
  border-color: rgba(253, 230, 138, 0.65);
  color: #fffbeb;
}

.btn-glass-danger {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.68), rgba(185, 28, 28, 0.68));
  border-color: rgba(254, 202, 202, 0.5);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.82rem;
}

.quick-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
  flex-wrap: wrap;
}

.quick-actions-row > * {
  flex: 1;
  min-width: 190px;
}

/* ==========================================================================
   PANELES DE PLANES INTERACTIVOS EN LIQUID GLASS
   ========================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 0 4px;
}

.section-head h2 {
  font-size: 1.2rem;
  font-weight: 700;
}

.section-head span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.plans-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-glass-card {
  padding: 20px 22px;
  transition:
    transform 0.35s var(--spring-smooth),
    border-color 0.3s ease,
    box-shadow 0.35s var(--spring-smooth);
}

.plan-glass-card.expanded {
  border-color: rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.55),
    0 22px 48px -10px rgba(14, 165, 233, 0.34);
}

.plan-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.plan-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

.plan-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.plan-speed {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 2px;
  color: #ffffff;
}

.plan-price-box {
  text-align: right;
  background: rgba(4, 10, 24, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 8px 14px;
  border-radius: var(--radius-inner);
}

.plan-price {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.plan-period {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

/* Barra interactiva de velocidad fibra */
.speed-meter {
  margin-top: 14px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.speed-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, #38bdf8, #818cf8, #34d399);
  transition: width 0.6s var(--spring-smooth);
}

.plan-expand-hint {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.plan-details {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.36s var(--spring-smooth), opacity 0.28s ease, margin-top 0.3s ease;
}

.plan-glass-card.expanded .plan-details {
  grid-template-rows: 1fr;
  opacity: 1;
  margin-top: 16px;
}

.plan-details-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 8px;
}

.plan-features li {
  font-size: 0.86rem;
  color: #e2e8f0;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(4, 10, 24, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   FORMULARIOS, INPUTS E INTERACCIONES (16px para evitar auto-zoom en iPhone)
   ========================================================================== */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-row {
  display: flex;
  gap: 10px;
}

.form-row > .form-group {
  flex: 1;
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  background: rgba(4, 10, 24, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 1rem; /* 16px evita zoom forzado en iOS Safari */
  font-family: inherit;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(186, 206, 232, 0.45);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(125, 211, 252, 0.75);
  background: rgba(8, 18, 38, 0.72);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

select option {
  background-color: #0b1528;
  color: #ffffff;
}

/* ==========================================================================
   SIMULADOR DEMO COMPLETO (Cédula -> Deuda -> Pago Móvil -> Verificación)
   ========================================================================== */
.demo-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 16px;
}

.demo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.chip-btn {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  border-color: rgba(125, 211, 252, 0.55);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.status-pill.suspendido {
  background: rgba(239, 68, 68, 0.28);
  border: 1px solid rgba(252, 165, 165, 0.5);
  color: #fecaca;
}

.status-pill.por-vencer {
  background: rgba(245, 158, 11, 0.28);
  border: 1px solid rgba(253, 230, 138, 0.5);
  color: #fef3c7;
}

.status-pill.activo {
  background: rgba(16, 185, 129, 0.28);
  border: 1px solid rgba(167, 243, 208, 0.55);
  color: #d1fae5;
}

.deuda-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 16px 0;
}

.metric-tile {
  padding: 12px 14px;
}

.metric-tile .lbl {
  display: block;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.metric-tile .val {
  display: block;
  font-size: 1.08rem;
  font-weight: 700;
  margin-top: 2px;
}

.metric-tile.total-span {
  grid-column: span 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.amount-big {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fca5a5;
}

.amount-big.solvente {
  color: #6ee7b7;
}

.bank-glass-box {
  padding: 14px 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.verify-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.verify-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(4, 10, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
}

.verify-step.active {
  border-color: rgba(56, 189, 248, 0.55);
  color: #ffffff;
}

.verify-step.done {
  border-color: rgba(52, 211, 153, 0.55);
  color: #d1fae5;
}

/* ==========================================================================
   VISTA PREVIA DE NOTIFICACIÓN PUSH (PANTALLA APAGADA / LOCKSCREEN iOS)
   ========================================================================== */
.lockscreen-preview {
  padding: 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 20%, rgba(56, 189, 248, 0.35), transparent 60%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.35), transparent 60%),
    #060d1d;
  border: 1px solid rgba(255, 255, 255, 0.22);
  margin: 12px 0 16px;
}

.lockscreen-time {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  opacity: 0.9;
}

.ios-push-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.38);
}

.ios-push-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.ios-push-body {
  flex: 1;
  min-width: 0;
}

.ios-push-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ios-push-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2px;
}

.ios-push-text {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 2px;
}

/* ==========================================================================
   TABLAS Y PANEL MASTER (ADMIN)
   ========================================================================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 14px 0 18px;
}

.stat-box {
  padding: 12px 10px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #7dd3fc;
}

.stat-box.warning .stat-num { color: #fcd34d; }
.stat-box.success .stat-num { color: #6ee7b7; }

.stat-lbl {
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  min-width: 500px;
}

.glass-table th,
.glass-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
}

.glass-table th {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.78rem;
}

.plan-editor-item {
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-editor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.status-banner {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  margin-top: 10px;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(125, 211, 252, 0.35);
  color: #e0f2fe;
}

.footer {
  text-align: center;
  padding: 16px 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer a {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
}

.copy {
  font-size: 0.76rem;
  color: var(--text-muted);
}

@media (max-width: 520px) {
  body {
    padding: 14px 12px 40px;
  }

  .card-pad,
  .hero-pay-card {
    padding: 20px 16px;
  }

  .form-row {
    flex-direction: column;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .deuda-summary-grid {
    grid-template-columns: 1fr;
  }

  .metric-tile.total-span {
    grid-column: span 1;
  }
}
