* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Poppins', sans-serif;
  max-width: 480px;
  margin: 0 auto;
  background-color: #f5f5f5;
  min-height: 100vh;
}

/* --- ESTILOS LOGIN --- */
#login-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #0000C1;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  padding: 20px;
}

.login-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-logo { width: 80px; margin-bottom: 15px; }
.login-card h2 { font-size: 18px; margin-bottom: 5px; color: #111; }
.login-card p { font-size: 13px; color: #666; margin-bottom: 20px; }

.login-card input {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  font-size: 15px;
  outline: none;
}

.login-card input:focus { border-color: #0000C1; }

.login-card button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #0000C1;
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s;
}

.login-card button:active { transform: scale(0.98); opacity: 0.9; }

/* --- SPLASH SCREEN --- */
#splash-screen {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: #0000C1;
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease;
}

.splash-logo { width: 120px; animation: pulseLogo 1.2s infinite ease-in-out; }
@keyframes pulseLogo {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

.hide-splash { opacity: 0; visibility: hidden; pointer-events: none; }

/* --- APP CONTENT --- */
.header { background: #0000C1; padding: 16px; display: flex; align-items: center; gap: 12px; }
.logo { width: 52px; height: 52px; object-fit: contain; }
.header h1 { font-size: 16px; font-weight: 700; color: white; }
.header p { font-size: 11px; color: rgba(255,255,255,0.7); }

.content { padding: 16px; }
.tabs-wrapper { margin-bottom: 20px; border-bottom: 2px solid #e0e0e0; background: white; margin: -16px -16px 20px -16px; }
.tabs { display: flex; gap: 20px; overflow-x: auto; padding: 0 16px; scroll-behavior: smooth; }
.tabs::-webkit-scrollbar { display: none; }

.tab-btn { 
  background: transparent; 
  border: none; 
  padding: 12px 2px; 
  font-family: 'Poppins', sans-serif; 
  font-size: 13px; 
  font-weight: 700; 
  color: #666; 
  cursor: pointer; 
  white-space: nowrap; 
  border-bottom: 3px solid transparent; 
  transition: all 0.3s ease; 
}

.table-wrap { background: white; border: 1px solid #eee; border-radius: 12px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
thead { background: #f9f9f9; }
thead th { padding: 10px 6px; font-weight: 600; color: #888; font-size: 11px; text-align: center; }
thead th:first-child { text-align: left; padding-left: 12px; width: 55%; }
tbody tr { border-top: 1px solid #f0f0f0; }
tbody td { padding: 10px 6px; color: #111; text-align: center; }
tbody td:first-child { padding-left: 12px; font-weight: 600; text-align: left; }
.pos { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; margin-right: 8px; background: #f0f0f0; color: #888; }
.pos-1 { background: #fbbf24; color: #78350f; }
.cargando { text-align: center; padding: 40px; color: #888; }