body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

.auth-page {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 20px;
  box-sizing: border-box;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 90%;
  max-width: 400px;
  border: 1px solid #e8e8e8;
}

.logo {
  display: block;
  margin: 10px auto 12px auto;
  width: 130px;
}

h1 {
  text-align: center;
  color: #2e7d32;
  margin-bottom: 5px;
  font-size: 20px;
}

.subtitulo {
  text-align: center;
  color: #555;
  margin-bottom: 20px;
  font-size: 14px;
}

label {
  font-weight: bold;
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
}

button {
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  background: #3b78e7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}

.bloqueado {
  pointer-events: none;
  opacity: 0.5;
}

#resultado {
  margin-top: 15px;
  text-align: center;
  font-size: 14px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3b78e7;
  margin: auto;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 600px) {

  .card {
    width: 95%;
    max-width: none;
    padding: 10px;
  }

  body {
    align-items: flex-start;
    padding-top: 20px;
  }

  h1 {
    font-size: 22px;
  }

  input {
    font-size: 18px;
    padding: 14px;
  }

  button {
    font-size: 18px;
    padding: 16px;
  }
}

select {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  font-size: 16px;
  background: white;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  box-sizing: border-box;

  padding: 16px;
  margin-top: 12px;

  background: #ffffff;

  border: 1px solid #e0e0e0;
  border-radius: 10px;

  box-shadow: 0 2px 4px rgba(0,0,0,0.05);

  text-decoration: none;
  color: #333;

  font-size: 17px;
  font-weight: bold;

  transition: all 0.2s ease;
}

.menu-btn:hover {
  background: #e9e9e9;
  transform: translateY(-2px);
}

.contador {
  color: red;
  margin-left: 6px;
  font-weight: bold;
}

.logout {
  display: block;
  margin-top: 25px;
  text-align: center;

  color: #c62828;
  text-decoration: none;
  font-weight: bold;
}

.card a {
  box-sizing: border-box;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.tabla th {
  background: #2e7d32;
  color: white;
  padding: 12px;
  text-align: left;
}

.tabla td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}

.tabla tr:nth-child(even) {
  background: #f9f9f9;
}

.tabla tr:hover {
  background: #f1f1f1;
}

.btn-verde {
  display: inline-block;
  padding: 8px 14px;
  background: #2e7d32;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-rojo {
  display: inline-block;
  padding: 8px 14px;
  background: #c62828;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.btn-azul {
  display: inline-block;
  padding: 8px 14px;
  background: #1565c0;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.contenedor-tabla {
  overflow-x: auto;
  margin-top: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.badge-pendiente {
  background: #fff3cd;
  color: #856404;
}

.badge-aprobado {
  background: #d4edda;
  color: #155724;
}

@media (max-width: 600px) {

  .tabla {
    font-size: 12px;
  }

  .tabla th,
  .tabla td {
    padding: 8px;
  }

  .btn-verde,
  .btn-rojo,
  .btn-azul {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    box-sizing: border-box;
    text-align: center;
  }
}

.alerta {
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: bold;
  text-align: center;
}

.alerta-ok {
  background: #d4edda;
  color: #155724;
}

.alerta-warning {
  background: #fff3cd;
  color: #856404;
}

.estado-aprobado {
  color: green;
  font-weight: bold;
}

.estado-pendiente {
  color: #c77d00;
  font-weight: bold;
}

.seccion {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.vehiculo-box {
  margin-top: 18px;
}

.botones-panel {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.botones-panel button {
  flex: 1;
}

@media (max-width: 600px) {

  .botones-panel {
    flex-direction: column;
  }
}

/* =========================
   UTILIDADES GENERALES
========================= */

.text-center {
  text-align: center;
}

.texto-gris {
  color: #666;
}

.texto-verde {
  color: #2e7d32;
}

.texto-rojo {
  color: #c62828;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.mt-30 {
  margin-top: 30px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-20 {
  margin-bottom: 20px;
}

.p-10 {
  padding: 10px;
}

.p-20 {
  padding: 20px;
}


/* =========================
   TARJETAS Y BLOQUES
========================= */

.box {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px;
  margin-top: 18px;
  background: white;
}

.box-warning {
  background: #fff3cd;
  color: #856404;
  border-radius: 8px;
  padding: 12px;
  margin-top: 15px;
  font-weight: bold;
}


/* =========================
   FLEX
========================= */

.flex {
  display: flex;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gap-10 {
  gap: 10px;
}


/* =========================
   ALERTAS
========================= */

.alerta-error {
  background: #f8d7da;
  color: #721c24;
  padding: 12px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  font-weight: bold;
}


/* =========================
   INPUTS
========================= */

input:focus,
select:focus {
  outline: none;
  border-color: #3b78e7;
  box-shadow: 0 0 4px rgba(59,120,231,0.3);
}


/* =========================
   LINKS
========================= */

a {
  transition: 0.2s;
}

a:hover {
  opacity: 0.9;
}


/* =========================
   PAGOSPSE
========================= */
.pse-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 14px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.pse-card:hover {
    background: #f7f7f7;
}

.pse-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pse-info img {
    width: 40px;
    height: auto;
}

.pse-info span {
    font-weight: bold;
}

.flecha {
    color: #999;
    font-size: 22px;
    font-weight: bold;
}

/* =========================
   PAGOSPSE
========================= */
.doc-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px 18px;
    margin-top: 14px;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.doc-card:hover {
    background: #f7f7f7;
}

.doc-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.doc-info img {
    width: 26px;
}

.doc-info span {
    font-weight: bold;
}

.flecha {
    color: #999;
    font-size: 22px;
    font-weight: bold;
}

