:root{
    --color-blanco: #f4f4f4;
    --color-negro: #333333;
    --color-dorado: #c0a964;
    --color-naranja:#fb0605;
    --color-naranjaf:#c12928;

}

/* Reset y fuentes */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  }
  
  body {
    background: linear-gradient(to right, #000, #000, #000); /* estilo deportivo */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }
  
  /* Contenedor del login */
  .login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
  }
  
  .login-box {
    background-color: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  
  .login-box h1 {
    text-align: center;
    margin-bottom: 24px;
    color: var(--color-negro);
  }
  
  /* Inputs y botón */
  form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
  }
  
  form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: border 0.3s;
  }
  
  form input:focus {
    border-color: #2c5364;
    outline: none;
  }
  
  button {
    width: 100%;
    background-color: var(--color-naranja);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  button:hover {
    background-color: var(--color-dorado);
  }
  
  /* Enlace de olvidar contraseña */
  .forgot-password {
    margin-top: 12px;
    text-align: center;
  }
  
  .forgot-password a {
    text-decoration: none;
    color: #2c5364;
    font-size: 14px;
    transition: color 0.3s;
  }
  
  .forgot-password a:hover {
    color: #1b374b;
  }
  /* ========================
   RESET Y FUENTES
======================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f3f4f6;
  color: #1f2937;
}

/* ========================
   LAYOUT PRINCIPAL
======================== */
.dashboard {
  display: flex;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

/* ========================
   MENÚ LATERAL (ASIDE)
======================== */
.sidebar {
  background-color: #1f2937;
  color: white;
  width: 250px;
  min-width: 250px;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px 10px;
}

.sidebar .usuario {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.sidebar .usuario img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar .usuario .nombre {
  font-size: 16px;
  font-weight: bold;
  white-space: nowrap;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.3s;
}

.sidebar nav li:hover {
  background-color: #374151;
}

.sidebar nav li i {
  font-size: 18px;
}

/* Botón menú abajo */
.toggle-menu {
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
}

.toggle-menu i {
  font-size: 20px;
}

/* Colapsado */
body.colapsado .sidebar {
  width: 60px;
  min-width: 60px;
}

body.colapsado .sidebar .nombre,
body.colapsado .sidebar nav li span {
  display: none;
}

body.colapsado .sidebar .usuario img {
  width: 40px;
  height: 40px;
}

body.colapsado .sidebar nav li {
  justify-content: center;
  position: relative;
}

body.colapsado .sidebar nav li:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 70px;
  background-color: #111827;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 12px;
  z-index: 10;
}

/* ========================
   CONTENIDO PRINCIPAL
======================== */
.contenido {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Tarjetas de módulos */
.modulos-dashboard {
  display: grid;
  gap: 20px;
  padding: 20px;
}

/* Responsive: columnas según ancho de pantalla */
@media (min-width: 640px) {
  .modulos-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .modulos-dashboard {
    grid-template-columns: repeat(3, 1fr);
    padding: 30px;
  }
}

@media (min-width: 1440px) {
  .modulos-dashboard {
    grid-template-columns: repeat(4, 1fr);
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* Estilo de cada módulo */
.modulo {
  background-color: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.2s;
}

.modulo:hover {
  transform: translateY(-5px);
}

.modulo i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #3ab6d2;
}

.modulo h3 {
  font-size: 18px;
  color: #111827;
  margin-top: 10px;
}
