@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom right, #e9f5f6, #b3e5fc);
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Estructura */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Estilos mejorados para Sobre Nosotros - Versión con cuadros */
.contenido {
  flex: 1;
  padding: 2rem;
}

.sobre-nosotros {
  max-width: 1000px;
  margin: 0 auto;
}

.sobre-nosotros h1 {
  color: #2a6496;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.sobre-nosotros h1:after {
  content: "";
  display: block;
  width: 100px;
  height: 4px;
  background: #4fc3f7;
  margin: 15px auto;
}

/* Estilo para los cuadros de contenido */
.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.nosotros-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.nosotros-card:hover {
  transform: translateY(-5px);
}

.card-icon {
  font-size: 2.5rem;
  color: #2a6496;
  margin-bottom: 15px;
}

.nosotros-card h3 {
  color: #2a6496;
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Estilo para la sección de equipo */
.equipo-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


/* Responsive */
@media (max-width: 768px) {
  .nosotros-grid {
    grid-template-columns: 1fr;
  }

  .sobre-nosotros h1 {
    font-size: 2rem;
  }
}

/* Estructura */
.wrapper {
  display: flex;
  min-height: 100vh;
}

/* Menú lateral */
nav {
  width: 281px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  overflow-y: auto;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

nav::-webkit-scrollbar {
  width: 6px;
}

nav::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

nav .user-name {
  margin-bottom: 40px;
  font-size: 24px;
  /* Cambiar tamaño de fuente */
  font-weight: 700;
  text-align: center;
  width: 100%;
}

nav ul {
  list-style: none;
  width: 100%;
}

nav ul li {
  margin-bottom: 12px;
  width: 100%;
}

nav a {
  display: block;
  width: 100%;
  padding: 12px 20px;
  color: #444;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

nav a:hover,
nav a.activo {
  background-color: #e0f7fa;
  color: #007bff;
}

nav a.activo {
  font-weight: 600;
  box-shadow: inset 3px 0 0 #007bff;
}

nav a button {
  background-color: #fdd835;
  color: black;
  font-weight: 600;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

nav a button:hover {
  background-color: #ffd600;
}

nav .logout {
  color: #4d4c4c;
  font-weight: 500;
}

/* Contenido principal */
main.contenido {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Flashcard */
.flashcard {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 20px;
  margin-bottom: 30px;
  animation: fadeIn 0.5s ease;
}

/* Botones */
.botones {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.botones button {
  padding: 10px 22px;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  font-size: 15px;
  transition: transform 0.2s ease;
}

.botones button:hover {
  transform: scale(1.05);
}

.facil {
  background-color: #039be5;
}

.normal {
  background-color: #ffb300;
}

.dificil {
  background-color: #e53935;
}

.nose {
  background-color: #00acc1;
}

/* Estadísticas */
.estadisticas {
  margin: 20px auto;
  font-weight: bold;
  color: #555;
  text-align: center;
}

/* Sección de tarjetas */
.pendientes {
  margin-top: 40px;
}

.pendientes h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

.tarjetas {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 10px;
}

.tarjeta {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
  width: 250px;
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: translateY(-5px);
}

.tarjeta h5 {
  font-size: 16px;
  margin-bottom: 8px;
}

.tarjeta p {
  font-weight: bold;
  margin-bottom: 5px;
}

.tarjeta span {
  font-size: 14px;
  color: #777;
}

/* Sobre Nosotros */
.sobre-nosotros {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 16px;
  max-width: 800px;
  margin: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.sobre-nosotros h1 {
  color: #2a4d8f;
  margin-bottom: 1rem;
}

.sobre-nosotros p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }

  nav {
    width: 100%;
    flex-direction: row;
    height: auto;
    position: static;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  nav a {
    flex: 1;
    text-align: center;
    padding: 10px;
    font-size: 14px;
  }

  main.contenido {
    padding: 20px;
  }

  .tarjetas {
    flex-direction: column;
    align-items: center;
  }
}

/* Animación */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*.personaje-3d {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 140px;
  aspect-ratio: 1 / 1;
  background: url('imagenes/personaje.png') no-repeat center center;
  background-size: contain;
  z-index: 10;
  transform-style: preserve-3d;
  animation: rotarFlotar 6s infinite ease-in-out;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
  cursor: pointer;
}

@keyframes rotarFlotar {
  0%   { transform: rotateY(0deg) translateY(0); }
  25%  { transform: rotateY(10deg) translateY(-5px); }
  50%  { transform: rotateY(0deg) translateY(-10px); }
  75%  { transform: rotateY(-10deg) translateY(-5px); }
  100% { transform: rotateY(0deg) translateY(0); }
}

.sobre-nosotros {
  position: relative;
}