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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #fff;
  min-height: 100vh;
}



/* Login */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.login-container h1 {
  margin-bottom: 10px;
  color: #e94560;
}

.login-container h2 {
  margin-bottom: 30px;
  color: #ccc;
  font-size: 18px;
}

/* Navbar */
.navbar {
  background: rgba(233, 69, 96, 0.1);
  border-bottom: 1px solid rgba(233, 69, 96, 0.3);
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar h1 {
  color: #e94560;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Cards */
.card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.card h2 {
  margin-bottom: 20px;
  color: #e94560;
}

/* Forms */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #ccc;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 16px;
}

.form-group input:focus {
  outline: none;
  border-color: #e94560;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary {
  background: #e94560;
  color: #fff;
}

.btn-primary:hover {
  background: #d6304a;
}

.btn-success {
  background: #4CAF50;
  color: #fff;
}

.btn-success:hover {
  background: #45a049;
}

.btn-danger {
  background: #f44336;
  color: #fff;
}

.btn-danger:hover {
  background: #da190b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 14px;
}

/* Status */
.status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 8px;
  display: none;
}

.status.success {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  display: block;
}

.status.error {
  background: rgba(244, 67, 54, 0.2);
  color: #f44336;
  display: block;
}

/* Licencias List */
.licencias-list {
  display: grid;
  gap: 15px;
}

.licencia-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.licencia-info {
  flex: 1;
}

.licencia-key {
  font-family: monospace;
  font-size: 14px;
  color: #e94560;
  background: rgba(233, 69, 96, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 10px;
}

.licencia-meta {
  color: #aaa;
  font-size: 14px;
}

.licencia-actions {
  display: flex;
  gap: 10px;
}

.estado-activa {
  color: #4CAF50;
}

.estado-vencida {
  color: #f44336;
}

.estado-mora {
  color: #d97706;
  font-weight: 600;
}

select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Nav de pestañas (comun/panel.js) */
.navbar nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.navbar nav a {
  color: #ccc;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.navbar nav a:hover {
  background: rgba(255, 255, 255, 0.08);
}

.navbar nav a.activa {
  background: #e94560;
  color: #fff;
}

.licencia-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Detalle (pagos y equipos) sobre la lista */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}

.modal.visible {
  display: flex;
}

.modal .card {
  width: min(700px, 92vw);
  max-height: 75vh;
  overflow-y: auto;
  background: #1a1a2e;
}

/* Secciones dentro de un formulario */
.seccion {
  color: #e94560;
  margin: 25px 0 8px;
  font-size: 18px;
}

.ayuda {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 15px;
}

.sucursal-form {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.sucursal-form input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
