﻿@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Outfit:wght@500;600;700;800;900&family=JetBrains+Mono:wght@700&display=swap');

:root {
  --primary: #E81E40;
  --primary-gradient: linear-gradient(135deg, #FF2E54 0%, #E81E40 50%, #C01432 100%);
  --primary-glow: rgba(232, 30, 64, 0.35);
  --primary-subtle: #FFF1F3;
  --primary-border: rgba(232, 30, 64, 0.18);
  --success: #10B981;
  --success-gradient: linear-gradient(135deg, #34D399 0%, #059669 100%);
  --warning: #F59E0B;
  --warning-gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  --danger: #EF4444;
  --dark: #0F172A;
  --dark-light: #1E293B;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --white: #FFFFFF;
  --font-main: 'Tahoma', Geneva, Verdana, sans-serif;
  --font-title: 'Tahoma', Geneva, Verdana, sans-serif;
  --font-mono: 'JetBrains Mono', 'Tahoma', monospace;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-key: 0 4px 10px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-key-active: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-card-premium: 0 25px 60px -15px rgba(232, 30, 64, 0.1), 0 12px 30px -10px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(232, 30, 64, 0.08);
  --transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ind-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

input, textarea, select {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  user-select: text;
}

body {
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 700;
  background: radial-gradient(circle at 10% 20%, #FFF5F7 0%, #FFFFFF 45%, #F8FAFC 90%);
  color: var(--gray-900);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}


body::before {
  content: '';
  position: fixed;
  top: -150px;
  right: -150px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(255, 46, 84, 0.09) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232, 30, 64, 0.06) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}


.kiosk-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 24px 35px;
  max-width: 1250px;
  margin: 0 auto;
  width: 100%;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}


.kiosk-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 30px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(232, 30, 64, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.03);
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo-frame {
  background: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 30, 64, 0.15);
  box-shadow: 0 4px 12px rgba(232, 30, 64, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-img {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-title h1 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gray-900);
}

.brand-title p {
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
}

.clock-display {
  text-align: right;
  background: rgba(232, 30, 64, 0.04);
  border: 1px solid rgba(232, 30, 64, 0.12);
  padding: 8px 18px;
  border-radius: var(--radius-md);
}

.clock-time {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
}

.clock-date {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: capitalize;
  font-weight: 600;
}


.kiosk-main-content {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto;
  width: 100%;
  max-width: 530px;
  transition: all 0.3s ease;
}

.kiosk-main-content.rfid-active {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 530px;
}


.kiosk-info-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(232, 30, 64, 0.14);
  border-radius: var(--radius-xl);
  padding: 30px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card-premium);
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  text-align: center;
}

.kiosk-hero-text {
  text-align: center;
}

.kiosk-hero-text h2 {
  font-family: var(--font-title);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.2;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.kiosk-hero-text p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
  margin: 0 auto;
}

.scanner-hint-box {
  background: radial-gradient(circle, #FFF5F7 0%, #FFFFFF 100%);
  border: 2px dashed rgba(232, 30, 64, 0.35);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.scanner-icon {
  width: 68px;
  height: 68px;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 25px var(--primary-glow);
  animation: pulse-red 2s infinite ease-in-out;
}

@keyframes pulse-red {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 20px rgba(232, 30, 64, 0.3); }
  50% { transform: scale(1.08); box-shadow: 0 12px 32px rgba(232, 30, 64, 0.6); }
}

.scanner-hint-box h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}

.scanner-hint-box p {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}


.kiosk-input-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(232, 30, 64, 0.14);
  border-radius: var(--radius-xl);
  padding: 38px 45px;
  box-shadow: var(--shadow-card-premium);
  width: 100%;
  max-width: 530px;
  margin: 0 auto;
  position: relative;
}


.logo-badge-container {
  width: 76px;
  height: 76px;
  min-width: 76px;
  min-height: 76px;
  margin: 0 auto 12px auto;
  background: var(--white);
  border-radius: 50%;
  padding: 8px;
  box-shadow: 0 8px 25px rgba(232, 30, 64, 0.12), 0 0 0 4px var(--primary-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(232, 30, 64, 0.15);
  overflow: hidden;
  box-sizing: border-box;
}

.logo-kiosk-center {
  width: 100%;
  height: 100%;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.kiosk-input-header {
  text-align: center;
  margin-bottom: 20px;
}

.kiosk-input-header h2 {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.kiosk-input-header p {
  font-size: 14px;
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: 500;
}


.input-group-kiosk {
  margin-bottom: 20px;
}

.input-label-kiosk {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--gray-700);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-align: center;
}

.input-display-container {
  position: relative;
  display: flex;
  align-items: center;
}

.cedula-input-kiosk {
  width: 100%;
  height: 72px;
  background: #F8FAFC;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: 5px;
  text-align: center;
  transition: var(--transition);
  outline: none;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.cedula-input-kiosk:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 5px rgba(232, 30, 64, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.01);
}


.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.keypad-btn {
  height: 68px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  color: var(--gray-900);
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.12s ease;
  box-shadow: var(--shadow-key);
}

.keypad-btn:hover {
  background: #FFFFFF;
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(232, 30, 64, 0.1);
}

.keypad-btn:active {
  transform: translateY(2px) scale(0.96);
  background: var(--primary-subtle);
  border-color: var(--primary);
  box-shadow: var(--shadow-key-active);
}

.keypad-btn.action-btn {
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #F1F5F9;
  color: var(--gray-700);
}

.keypad-btn.clear-btn {
  background: #FEF2F2;
  border-color: #FEE2E2;
  color: var(--danger);
}

.keypad-btn.clear-btn:hover {
  background: #FEE2E2;
  color: var(--danger);
}

.keypad-btn.clear-btn:active {
  background: var(--danger);
  color: var(--white);
}


.btn-validar-kiosk {
  width: 100%;
  height: 72px;
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-lg);
  color: var(--white);
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 10px 28px var(--primary-glow);
  transition: var(--transition);
}

.btn-validar-kiosk:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(232, 30, 64, 0.45);
}

.btn-validar-kiosk:active {
  transform: translateY(2px) scale(0.98);
}


.kiosk-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(232, 30, 64, 0.08);
  font-size: 13px;
  color: var(--gray-600);
  font-weight: 600;
}

.admin-access-link {
  color: var(--gray-600);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--gray-200);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.admin-access-link:hover {
  background: var(--primary-subtle);
  border-color: var(--primary-border);
  color: var(--primary);
  transform: translateY(-1px);
}


.kiosk-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.kiosk-modal-overlay.active {
  display: flex;
  animation: modalPopIn 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: scale(1); }
}

.kiosk-response-card {
  background: var(--white);
  border-radius: 28px;
  padding: 48px 44px;
  max-width: 620px;
  width: 100%;
  text-align: center;
  box-shadow: 0 35px 85px -15px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.kiosk-response-card.card-success {
  border-color: var(--success);
}

.kiosk-response-card.card-warning {
  border-color: var(--warning);
}

.kiosk-response-card.card-info {
  border-color: #0284C7;
}

.kiosk-response-card.card-danger {
  border-color: var(--primary);
}

.response-icon-wrapper {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  margin: 0 auto 22px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 900;
}

.card-success .response-icon-wrapper {
  background: #ECFDF5;
  color: var(--success);
  border: 4px solid var(--success);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.25);
  animation: bounceSuccess 0.5s ease-out;
}

@keyframes bounceSuccess {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.card-warning .response-icon-wrapper {
  background: #FFFBEB;
  color: var(--warning);
  border: 4px solid var(--warning);
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.25);
}

.card-info .response-icon-wrapper {
  background: #F0F9FF;
  color: #0284C7;
  border: 4px solid #0284C7;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.25);
}

.card-danger .response-icon-wrapper {
  background: #FEF2F2;
  color: var(--primary);
  border: 4px solid var(--primary);
  box-shadow: 0 10px 30px rgba(232, 30, 64, 0.25);
}


.method-select-btn {
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font-main);
  font-size: 13px;
  font-weight: 800;
  border: 1.5px solid var(--gray-300);
  background: #FFFFFF;
  color: var(--gray-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  user-select: none;
}

.method-select-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.method-select-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(232, 30, 64, 0.3);
}

.response-title {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.response-message {
  font-size: 18px;
  color: var(--gray-700);
  line-height: 1.55;
  margin-bottom: 24px;
  font-weight: 500;
}

.response-user-info {
  background: #F8FAFC;
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-bottom: 24px;
  text-align: left;
  border: 1px solid var(--gray-200);
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  color: var(--gray-600);
  font-weight: 600;
}

.info-val {
  font-weight: 800;
  color: var(--gray-900);
}

.countdown-bar-container {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 18px;
}

.countdown-bar {
  height: 100%;
  background: var(--primary-gradient);
  width: 100%;
  transition: width 1.2s linear;
}

.btn-close-modal {
  background: #F1F5F9;
  border: 1px solid var(--gray-300);
  color: var(--gray-800);
  padding: 14px 38px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.btn-close-modal:hover {
  background: var(--gray-200);
  transform: translateY(-1px);
}


.admin-body {
  background: #F8FAFC;
  color: var(--gray-900);
  min-height: 100vh;
}

.admin-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 14px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-logo-img {
  height: 42px;
  width: auto;
}

.admin-badge-role {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-superadmin {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

.role-admin {
  background: #EFF6FF;
  color: #1D4ED8;
  border: 1px solid #DBEAFE;
}

.admin-user-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 25px 30px;
}


.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 25px;
  overflow-x: auto;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--gray-600);
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tab-btn:hover {
  color: var(--primary);
}

.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}


.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.stat-info h4 {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  font-weight: 800;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 30px;
  font-weight: 900;
  color: var(--gray-900);
}


.admin-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 28px;
  margin-bottom: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
}


.charts-grid-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 22px;
  margin-bottom: 25px;
}

.charts-grid-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 25px;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
}

.chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.chart-card-header h3 {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-header span {
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
}

.chart-canvas-container {
  position: relative;
  width: 100%;
  height: 270px;
  flex-grow: 1;
}

@media (max-width: 1024px) {
  .charts-grid-main,
  .charts-grid-secondary {
    grid-template-columns: 1fr;
  }
}

.card-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  background: #F8FAFC;
  color: var(--gray-700);
  padding: 14px 18px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--gray-200);
}

.admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.admin-table tr:hover {
  background: #F8FAFC;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-active {
  background: #ECFDF5;
  color: #059669;
}

.status-inactive {
  background: #F1F5F9;
  color: #64748B;
}

.badge-consumio {
  background: var(--primary-subtle);
  color: var(--primary);
}


.btn-primary {
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 30, 64, 0.4);
}

.btn-success {
  background: var(--success-gradient);
  color: var(--white);
  border: none;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: var(--transition);
}

.btn-success:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}

.btn-icon {
  background: var(--white);
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.form-control {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  color: var(--gray-900);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232, 30, 64, 0.12);
}


#ticket-impresion {
  display: none;
}

@media print {
  @page {
    size: auto;
    margin: 0mm;
  }

  
  body > *:not(#ticket-impresion) {
    display: none !important;
  }

  html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
  }

  #ticket-impresion {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    margin: 0 auto !important;
    width: 48mm !important;
    max-width: 48mm !important;
    padding: 1mm 1mm !important;
    background: #FFFFFF !important;
    box-sizing: border-box !important;
    text-align: center !important;
    page-break-inside: avoid !important;
    page-break-before: avoid !important;
    page-break-after: avoid !important;
  }

  #ticket-impresion,
  #ticket-impresion * {
    visibility: visible !important;
    font-family: 'Arial Narrow', 'Nimbus Sans L', Arial, sans-serif !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    line-height: 1.12 !important;
    color: #000000 !important;
    box-sizing: border-box !important;
  }

  .ticket-header {
    text-align: center !important;
    padding-bottom: 1px !important;
    margin-bottom: 1px !important;
  }

  .ticket-logo {
    font-size: 9px !important;
    font-weight: 700 !important;
    text-align: center !important;
    line-height: 1.1 !important;
  }

  .ticket-sub {
    font-size: 7.5px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
  }

  .ticket-divider {
    border-top: 1px dashed #000 !important;
    margin: 2px 0 !important;
    width: 100% !important;
  }

  .ticket-code-box {
    border: 1px solid #000 !important;
    padding: 1px 0 !important;
    margin: 2px 0 !important;
    text-align: center !important;
    font-size: 8.5px !important;
    font-weight: 700 !important;
    width: 100% !important;
    letter-spacing: 0.5px !important;
  }

  .ticket-body {
    margin: 2px 0 !important;
    text-align: left !important;
  }

  .ticket-row-between {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    margin-bottom: 1px !important;
    width: 100% !important;
  }

  .ticket-row-left {
    display: block !important;
    text-align: left !important;
    font-size: 8px !important;
    font-weight: 700 !important;
    margin-bottom: 1px !important;
    width: 100% !important;
  }

  .ticket-footer {
    text-align: center !important;
    padding-top: 1px !important;
    margin-top: 1px !important;
    font-size: 7.5px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
  }

  .ticket-cut-line {
    display: none !important;
  }
}


@media (max-width: 900px) {
  .kiosk-wrapper {
    padding: 12px;
    min-height: 100vh;
  }

  .kiosk-main-content.rfid-active {
    grid-template-columns: 1fr;
  }

  .kiosk-info-card {
    display: none;
  }

  .kiosk-input-card {
    padding: 24px 18px;
    max-width: 100%;
    margin: 0 auto;
  }

  .keypad-btn {
    height: 60px;
    font-size: 24px;
  }

  .cedula-input-kiosk {
    font-size: 26px;
    height: 60px;
    letter-spacing: 3px;
  }

  .btn-validar-kiosk {
    height: 56px;
    font-size: 16px;
  }

  .kiosk-response-card {
    max-width: 94vw;
    padding: 28px 18px;
    border-radius: 20px;
  }

  .response-title {
    font-size: 22px;
  }

  .response-icon-wrapper {
    width: 76px;
    height: 76px;
    font-size: 38px;
  }

  .admin-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
  }

  .admin-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
  }

  .admin-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .kiosk-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding: 10px 14px;
  }

  .brand-container {
    justify-content: center;
  }

  .clock-display {
    text-align: center;
  }

  .keypad-btn {
    height: 52px;
    font-size: 20px;
  }

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

  .kiosk-response-card {
    padding: 22px 14px;
  }
}


@keyframes scanLine {
  0% { top: 0%; opacity: 0.8; }
  50% { top: 96%; opacity: 1; }
  100% { top: 0%; opacity: 0.8; }
}


.admin-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 320px;
  max-width: 440px;
  padding: 14px 18px;
  border-radius: 14px;
  background: #FFFFFF;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
  border-left: 5px solid #059669;
  animation: slideInToast 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
  font-family: var(--font-main);
}

@keyframes slideInToast {
  0% { transform: translateY(-30px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.admin-toast.toast-fadeout {
  transform: translateY(-20px) scale(0.95);
  opacity: 0;
}

.toast-icon-wrapper {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  flex-shrink: 0;
}

.toast-content-wrapper {
  flex: 1;
  text-align: left;
}

.toast-title-text {
  font-size: 13px;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 2px;
}

.toast-message-text {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.4;
}

.toast-close-btn {
  background: none;
  border: none;
  font-size: 16px;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.toast-close-btn:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.admin-toast.toast-success {
  border-left-color: #059669;
}
.admin-toast.toast-success .toast-icon-wrapper {
  background: #ECFDF5;
  color: #059669;
}

.admin-toast.toast-error {
  border-left-color: #E81E40;
}
.admin-toast.toast-error .toast-icon-wrapper {
  background: #FEF2F2;
  color: #E81E40;
}

.admin-toast.toast-warning {
  border-left-color: #D97706;
}
.admin-toast.toast-warning .toast-icon-wrapper {
  background: #FFFBEB;
  color: #D97706;
}

.admin-toast.toast-info {
  border-left-color: #2563EB;
}
.admin-toast.toast-info .toast-icon-wrapper {
  background: #EFF6FF;
  color: #2563EB;
}

.admin-login-wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(232, 30, 64, 0.05) 0%, transparent 60%),
    radial-gradient(circle at 85% 85%, rgba(232, 30, 64, 0.03) 0%, transparent 50%),
    radial-gradient(rgba(232, 30, 64, 0.22) 1.5px, transparent 1.5px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  position: fixed;
  inset: 0;
  overflow: hidden;
  box-sizing: border-box;
  z-index: 9999;
}

.admin-ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  animation: adminOrbFloat 14s ease-in-out infinite alternate;
}

.admin-orb-1 {
  width: 380px;
  height: 380px;
  background: rgba(232, 30, 64, 0.08);
  top: -80px;
  left: 10%;
}

.admin-orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(244, 63, 94, 0.05);
  bottom: -60px;
  right: 15%;
  animation-delay: -7s;
}

@keyframes adminOrbFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, -20px) scale(0.95); }
}

.admin-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(232, 30, 64, 0.16);
  border-radius: 28px;
  padding: 44px 40px;
  max-width: 450px;
  width: 100%;
  position: relative;
  z-index: 10;
  box-shadow: 
    0 20px 45px -10px rgba(15, 23, 42, 0.08),
    0 0 25px rgba(232, 30, 64, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.03);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232, 30, 64, 0.07);
  border: 1px solid rgba(232, 30, 64, 0.22);
  color: #C01432;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.admin-status-pill .pulse-dot {
  width: 7px;
  height: 7px;
  background: #E81E40;
  border-radius: 50%;
  box-shadow: 0 0 8px #E81E40;
  animation: pulseNeonDot 1.8s ease-in-out infinite;
}

@keyframes pulseNeonDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.admin-logo-halo {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px auto;
  background: #FFFFFF;
  border-radius: 50%;
  padding: 12px;
  box-shadow: 
    0 8px 25px rgba(232, 30, 64, 0.16),
    0 0 0 3px rgba(232, 30, 64, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.admin-logo-halo::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px dashed rgba(232, 30, 64, 0.45);
  animation: adminHaloSpin 16s linear infinite;
}

@keyframes adminHaloSpin {
  100% { transform: rotate(360deg); }
}

.admin-login-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.3px;
  text-shadow: none;
}

.admin-login-subtitle {
  font-size: 13px;
  color: #64748B;
  margin-top: 5px;
  font-weight: 500;
}

.admin-login-alert {
  background: rgba(239, 68, 68, 0.08);
  border: 1.5px solid rgba(239, 68, 68, 0.3);
  color: #DC2626;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.1);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.admin-input-group {
  margin-bottom: 20px;
  text-align: left;
}

.admin-input-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.admin-input-box {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-input-box .input-icon {
  position: absolute;
  left: 16px;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: color 0.25s ease;
}

.admin-input-box:focus-within .input-icon {
  color: #E81E40;
}

.admin-input {
  width: 100%;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  color: #0F172A;
  padding: 13px 16px 13px 44px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  box-sizing: border-box;
  font-family: inherit;
}

.admin-input::placeholder {
  color: #94A3B8;
}

.admin-input:focus {
  border-color: #E81E40;
  background: #FFFFFF;
  box-shadow: 
    0 0 0 4px rgba(232, 30, 64, 0.12),
    inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.btn-admin-pass-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #94A3B8;
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: color 0.2s ease;
}

.btn-admin-pass-toggle:hover {
  color: #0F172A;
}

.btn-admin-login-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #FF2E54 0%, #E81E40 50%, #C01432 100%);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 22px rgba(232, 30, 64, 0.32);
  transition: all 0.25s ease;
}

.btn-admin-login-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(232, 30, 64, 0.48);
  filter: brightness(1.06);
}

.btn-admin-login-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.admin-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748B;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
  padding: 6px 12px;
  border-radius: 10px;
}

.admin-back-link:hover {
  color: #0F172A;
  background: rgba(15, 23, 42, 0.05);
  transform: translateX(-3px);
}

.btn-lock-kiosk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(232, 30, 64, 0.08);
  border: 1px solid rgba(232, 30, 64, 0.25);
  color: #E81E40;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-lock-kiosk:hover {
  background: #E81E40;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(232, 30, 64, 0.3);
}
