/* -------------------------------
   ESTILOS GENERALES
--------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --azul: #0b1d38;
  --azul-oscuro: #07101f;
  --azul-claro: #1d3557;
  --gris: #f3f4f6;
  --blanco: #ffffff;
  --verde: #00b894;
  --rojo: #e74c3c;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--gris);
  color: #111;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* -------------------------------
   TARJETAS Y CONTENEDORES
--------------------------------*/
.container {
  max-width: 600px;
  margin: 3rem auto;
  background-color: var(--blanco);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

header img {
  max-height: 50px;
  display: block;
  margin: 0 auto 1rem;
}

h1, h2, h3 {
  color: var(--azul);
  text-align: center;
  margin-bottom: 1rem;
}

/* -------------------------------
   FORMULARIOS
--------------------------------*/
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

label {
  font-weight: 600;
  color: var(--azul);
  font-size: 0.9rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
  padding: 0.6rem 0.8rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  width: 100%;
  transition: border 0.2s ease-in-out;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--azul);
  box-shadow: 0 0 4px rgba(11, 29, 56, 0.3);
}

button {
  background-color: var(--azul);
  color: var(--blanco);
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease-in-out, transform 0.1s ease-in-out;
}

button:hover {
  background-color: var(--azul-claro);
  transform: scale(1.02);
}

button:disabled {
  background-color: #999;
  cursor: not-allowed;
}

/* -------------------------------
   TABLAS (para dashboard/admin)
--------------------------------*/
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

thead {
  background-color: var(--azul);
  color: var(--blanco);
}

th, td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

tr:hover {
  background-color: #f9fafb;
}

.status-activo {
  color: var(--verde);
  font-weight: 600;
}

.status-inactivo {
  color: var(--rojo);
  font-weight: 600;
}

/* -------------------------------
   MENSAJES
--------------------------------*/
.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.2rem;
  text-align: center;
}

.alert-success {
  background-color: #e8f8f2;
  color: var(--verde);
  border: 1px solid var(--verde);
}

.alert-error {
  background-color: #fdecea;
  color: var(--rojo);
  border: 1px solid var(--rojo);
}

/* -------------------------------
   FOOTER
--------------------------------*/
footer {
  text-align: center;
  font-size: 0.8rem;
  color: #555;
  margin-top: 2rem;
}

/* -------------------------------
   RESPONSIVE
--------------------------------*/
@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
    margin: 1.5rem;
  }

  button {
    font-size: 0.9rem;
  }
}
