
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Rajdhani:wght@500;600;700&display=swap");

@font-face {
  font-family: "Klein Headline";
  src: url("./fonts/KleinHeadline-BoldOblique.ttf") format("truetype");
  font-weight: 700;
  font-style: oblique;
  font-display: swap;
}

/* =========================================
   ERASMUS LEAGUE · IDENTIDAD VISUAL
   ========================================= */

:root {
  color-scheme: dark;

  --fondo: #0f1625;
  --fondo-profundo: #0b1220;
  --superficie: #1b2637;
  --superficie-alta: #263449;
  --superficie-hover: #34475f;

  --verde: #b7f34b;
  --verde-brillo: #caff72;
  --verde-tenue: rgba(183, 243, 75, 0.12);

  --oro: #f5cf79;
  --rojo: #ff596b;

  --texto: #f5f8ff;
  --texto-secundario: #aab6c8;
  --borde: #3b4b61;

  --radio: 16px;
  --radio-pequeno: 10px;
  --sombra: 0 12px 34px rgba(0, 0, 0, 0.20);

  --fuente-logo: "Klein Headline", "Rajdhani", sans-serif;
  --fuente-titulos: "Rajdhani", sans-serif;
  --fuente-textos: "Inter", Arial, sans-serif;
}

/* =========================================
   BASE
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 30px 20px 60px;

  background:
    radial-gradient(
      ellipse 70% 380px at 50% -80px,
      rgba(95, 128, 150, 0.15),
      transparent 75%
    ),
    var(--fondo);

  color: var(--texto);
  font-family: var(--fuente-textos);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

main {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 5px 0 12px;
  color: var(--verde);
  font-family: var(--fuente-logo);
  font-style: oblique;
  font-size: clamp(35px, 8vw, 58px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.5px;
  text-shadow: 0 5px 26px rgba(183, 243, 75, 0.17);
}

h2,
h3,
h4 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  letter-spacing: 0.35px;
  line-height: 1.2;
}

h2 {
  font-size: 27px;
}

h3 {
  font-size: 21px;
}

p {
  line-height: 1.65;
}

small {
  line-height: 1.45;
}

::selection {
  background: var(--verde);
  color: var(--fondo);
}

:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

/* =========================================
   TARJETAS
   ========================================= */

.tarjeta {
  position: relative;
  width: 100%;
  margin-top: 20px;
  padding: 24px;

  background: linear-gradient(
    155deg,
    #202e41 0%,
    var(--superficie) 70%
  );

  border: 1px solid rgba(135, 157, 180, 0.15);
  border-radius: var(--radio);
  box-shadow: var(--sombra);
}

.tarjeta > h2:first-child {
  margin-top: 0;
}

.tarjeta h2 {
  color: var(--texto);
}

.tarjeta h3 {
  color: var(--texto);
}

/* =========================================
   BOTONES
   ========================================= */

button {
  font-family: var(--fuente-textos);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;

  background: var(--verde);
  color: #15200b;

  border: 1px solid transparent;
  border-radius: var(--radio-pequeno);
  padding: 12px 17px;

  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

button:hover:not(:disabled) {
  background: var(--verde-brillo);
  box-shadow: 0 4px 16px rgba(183, 243, 75, 0.13);
}

button:active:not(:disabled) {
  transform: scale(0.98);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

/* =========================================
   FORMULARIOS
   ========================================= */

input,
textarea,
select {
  max-width: 100%;
  font-family: var(--fuente-textos);
  font-size: 15px;
  color: var(--texto);
  accent-color: var(--verde);
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
select {
  background: #192536;
  border: 1px solid var(--borde);
  border-radius: var(--radio-pequeno);
  padding: 12px 13px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: #8090a4;
}

input:not([type="checkbox"]):not([type="radio"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--verde);
  box-shadow: 0 0 0 3px rgba(183, 243, 75, 0.12);
}

textarea {
  resize: vertical;
  min-height: 85px;
}

select {
  margin: 10px 10px 10px 0;
  cursor: pointer;
}

label {
  display: block;
  margin-top: 15px;
  color: var(--verde);
  font-weight: 600;
  font-size: 13px;
}

/* =========================================
   NAVEGACIÓN PRINCIPAL
   ========================================= */

.navegacion-principal {
  display: flex;
  gap: 10px;
  width: 100%;
  margin: 25px 0;
  padding: 5px;

  background: rgba(26, 38, 55, 0.75);
  border: 1px solid rgba(135, 157, 180, 0.10);
  border-radius: 16px;
}

.tab-principal {
  flex: 1;
  min-width: 0;

  background: transparent;
  color: var(--texto-secundario);

  border: 1px solid transparent;
  border-radius: 11px;

  padding: 14px 9px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.tab-principal:hover:not(.activo) {
  background: var(--superficie-hover);
  color: white;
  box-shadow: none;
}

.tab-principal.activo {
  background: var(--verde);
  color: #14200a;
  border-color: var(--verde);
  box-shadow: 0 3px 15px rgba(183, 243, 75, 0.12);
}

.pagina-oculta {
  display: none !important;
}

#pagina-clasificacion,
#pagina-tienda,
#pagina-perfiles {
  width: 100%;
  min-width: 0;
}

/* =========================================
   RANKING
   ========================================= */

#ranking {
  width: 100%;
}

.jugador {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 15px 10px;
  border-bottom: 1px solid rgba(150, 175, 198, 0.12);

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.jugador:hover {
  background: rgba(255, 255, 255, 0.025);
}

.jugador:last-child {
  border-bottom: none;
}

#ranking .jugador {
  position: relative;
  will-change: transform;
}

#ranking .jugador:has(.flecha-subida) {
  z-index: 2;
}

#ranking .jugador:has(.flecha-bajada) {
  z-index: 1;
}

.posicion,
.puntos,
.monedas {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  font-size: 19px;
  line-height: 1;
}

.puntos {
  color: var(--verde);
}

.monedas {
  color: var(--oro);
}

.selector-ranking {
  display: flex;
  gap: 9px;
  margin: 20px 0;
}

.boton-periodo {
  flex: 1;
  min-width: 0;
  padding: 12px 8px;

  background: var(--superficie-alta);
  color: var(--texto-secundario);

  border: 1px solid var(--borde);
  border-radius: var(--radio-pequeno);
  font-size: 12px;
  font-weight: 700;
}

.boton-periodo:hover:not(.activo) {
  background: var(--superficie-hover);
  color: white;
}

.boton-periodo.activo {
  background: var(--verde);
  color: #14200a;
  border-color: var(--verde);
}

.acciones-ranking {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 19px;
}

.acciones-ranking button {
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.zona-historial,
.zona-gestion-jugadores {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0;
}

#abrir-historial {
  background: var(--superficie-alta);
  color: var(--verde);
  border: 1px solid var(--verde);
  border-radius: var(--radio-pequeno);
  padding: 11px 18px;
}

#abrir-historial:hover {
  background: #34465f;
  color: var(--verde-brillo);
}

/* =========================================
   ANIMACIONES DE PUNTOS
   ========================================= */

#animacion-puntos {
  position: fixed;
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1000;
}

.numero-animado {
  font-family: var(--fuente-titulos);
  font-size: clamp(75px, 15vw, 115px);
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-shadow: 0 0 30px currentColor;
  animation: subirPuntos 1.3s ease-out forwards;
}

.positivo,
.puntos-positivos {
  color: var(--verde);
}

.negativo,
.puntos-negativos {
  color: var(--rojo);
}

.puntos-positivos {
  text-shadow: 0 0 12px var(--verde);
}

.puntos-negativos {
  text-shadow: 0 0 12px var(--rojo);
}

.flecha-subida,
.flecha-bajada {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--fuente-titulos);
  font-size: 23px;
  font-weight: 700;
}

.flecha-subida {
  color: var(--verde);
  text-shadow: 0 0 12px var(--verde);
}

.flecha-bajada {
  color: var(--rojo);
  text-shadow: 0 0 12px var(--rojo);
}

@keyframes subirPuntos {
  0% {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
  }

  25% {
    opacity: 1;
    transform: translateY(0) scale(1.3);
  }

  70% {
    opacity: 1;
    transform: translateY(-20px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-90px) scale(0.8);
  }
}

/* =========================================
   VENTANAS EMERGENTES
   ========================================= */

#modal-historial,
#modal-jugadores,
#modal-actividad,
#modal-gestion-actividades,
#modal-tienda,
#modal-gestion-productos,
#modal-perfil-completo,
#modal-mapa-logros,
#modal-gestion-logros,
#modal-editores,
.overlay-foto-perfil,
.overlay-editar-perfil {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;

  padding: 16px;
  background: rgba(5, 10, 19, 0.88);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

#modal-jugadores,
#modal-actividad {
  z-index: 1000;
}

#modal-gestion-actividades {
  z-index: 1001;
}

#modal-tienda {
  z-index: 1002;
}

#modal-gestion-productos {
  z-index: 1003;
}

#modal-historial,
.overlay-foto-perfil {
  z-index: 2000;
}

.overlay-editar-perfil {
  z-index: 2100;
}

#modal-perfil-completo {
  z-index: 3000;
}

#modal-mapa-logros {
  z-index: 4000;
}

#modal-editores {
  z-index: 5000;
}

#modal-gestion-logros {
  z-index: 6000;
}

/* Mantener todos los mecanismos de ocultación */

#modal-historial.modal-oculto,
#modal-jugadores.modal-oculto,
#modal-actividad.modal-oculto,
#modal-gestion-actividades.modal-oculto,
#modal-tienda.modal-oculto,
#modal-gestion-productos.modal-oculto {
  display: none !important;
}

#modal-perfil-completo[hidden],
#modal-mapa-logros[hidden],
#modal-gestion-logros[hidden],
#modal-editores[hidden],
.overlay-foto-perfil[hidden],
.overlay-editar-perfil[hidden] {
  display: none !important;
}

/* Las ventanas conservan sus clases originales */

.ventana-historial,
.ventana-perfil-completo,
.ventana-mapa-logros,
.ventana-gestion-logros,
.ventana-editor,
.panel-editar-perfil,
.panel-menu-foto {
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;

  padding: 24px;
  background: linear-gradient(160deg, #223044, #1a2638);
  border: 1px solid #42546b;
  border-radius: 18px;

  color: var(--texto);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.48);

  animation: aparecerVentana 0.25s ease-out;
}

.ventana-perfil-completo,
.panel-editar-perfil,
.ventana-editor {
  max-width: 500px;
}

.panel-menu-foto {
  max-width: 350px;
}

.ventana-mapa-logros {
  max-width: 1100px;
  max-height: 94vh;
  background: #101827;
}

.cabecera-historial,
.cabecera-editar-perfil,
.cabecera-editor-perfil,
.cabecera-editor,
.cabecera-mapa-logros,
.cabecera-gestion-logros {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.cabecera-historial h2,
.cabecera-editar-perfil h2,
.cabecera-editor-perfil h2,
.cabecera-editor h2,
.cabecera-mapa-logros h2,
.cabecera-gestion-logros h2 {
  margin: 0;
  color: var(--texto);
  font-family: var(--fuente-titulos);
  font-size: 25px;
}

/* Botones de cerrar */

#cerrar-historial,
#cerrar-editar-perfil,
#cerrar-editor-perfil,
#cerrar-editor-erasmus,
#cerrar-mapa-logros,
#cerrar-gestion-logros {
  flex-shrink: 0;
  padding: 6px 10px;

  background: transparent;
  color: var(--texto-secundario);

  border: 0;
  border-radius: 8px;

  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
}

#cerrar-historial:hover,
#cerrar-editar-perfil:hover,
#cerrar-editor-perfil:hover,
#cerrar-editor-erasmus:hover,
#cerrar-mapa-logros:hover,
#cerrar-gestion-logros:hover {
  background: rgba(255, 89, 107, 0.13);
  color: #ff8290;
  box-shadow: none;
}

@keyframes aparecerVentana {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes aparecerHistorial {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================
   HISTORIAL
   ========================================= */

.registro-actividad {
  margin-top: 12px;
  padding: 15px 16px;

  background: var(--superficie-alta);
  border: 1px solid rgba(150, 175, 198, 0.1);
  border-left: 3px solid var(--verde);
  border-radius: 11px;
}

.registro-actividad strong {
  display: block;
  color: white;
  font-weight: 700;
}

.registro-actividad p {
  color: #d2deeb;
  margin: 8px 0;
}

.registro-actividad small {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--texto-secundario);
}

.rp-positivo {
  color: var(--verde);
  font-weight: 700;
}

.rp-negativo {
  color: var(--rojo);
  font-weight: 700;
}

.monedas-historial {
  color: var(--oro);
  font-weight: 700;
}

/* =========================================
   GESTIÓN DE JUGADORES
   ========================================= */

#nuevo-jugador {
  display: block;
  width: 100%;
  margin: 12px 0 15px;
  padding: 12px;
}

#lista-gestion-jugadores,
#lista-gestion-actividades,
#lista-gestion-productos {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0 23px;
}

.titulo-lista-jugadores {
  margin: 20px 0 12px;
  color: var(--texto-secundario);
  font-size: 13px;
}

.fila-gestion-jugador,
.fila-gestion-actividad,
.fila-gestion-producto,
.fila-gestion-logro {
  display: flex;
  align-items: center;
  gap: 11px;

  padding: 12px;
  background: #28394d;
  border: 1px solid rgba(150, 175, 198, 0.08);
  border-radius: 11px;
}

.fila-gestion-jugador span,
.informacion-actividad,
.info-gestion-producto,
.info-gestion-logro {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fila-gestion-jugador span {
  color: white;
  font-weight: 600;
}

.informacion-actividad,
.info-gestion-producto,
.info-gestion-logro {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.informacion-actividad strong,
.info-gestion-producto strong,
.info-gestion-logro strong {
  color: white;
}

.recompensas-actividad {
  color: var(--verde);
  font-size: 12px;
}

.recompensa-negativa {
  color: #ff9090;
}

.boton-editar-jugador,
.boton-eliminar-jugador,
.boton-editar-actividad,
.boton-eliminar-actividad,
.boton-editar-producto,
.fila-gestion-producto .eliminar-producto {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 36px;
  height: 36px;
  padding: 0;

  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 16px;
}

.boton-editar-jugador,
.boton-editar-actividad,
.boton-editar-producto {
  background: #364b63;
  color: white;
}

.boton-editar-jugador:hover,
.boton-editar-actividad:hover,
.boton-editar-producto:hover {
  background: #49647e;
  color: white;
}

.boton-eliminar-jugador,
.boton-eliminar-actividad,
.eliminar-producto,
.fila-gestion-producto .eliminar-producto {
  background: #512a35;
  color: #ff9090;
}

.boton-eliminar-jugador:hover,
.boton-eliminar-actividad:hover,
.eliminar-producto:hover,
.fila-gestion-producto .eliminar-producto:hover {
  background: #793747;
  color: white;
}

/* =========================================
   GESTIÓN DE ACTIVIDADES
   ========================================= */

.zona-gestionar-actividades {
  display: flex;
  justify-content: center;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
}

#abrir-gestion-actividades {
  font-size: 13px;
}

#modal-gestion-actividades .ventana-historial {
  max-height: 85vh;
}

#modal-gestion-actividades input,
#modal-gestion-actividades select,
#modal-gestion-productos input,
#modal-tienda input,
#modal-tienda select {
  display: block;
  width: 100%;
  margin: 8px 0 14px;
}

/* Categorías generadas por JS */

.selector-categoria-erasmus {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 8px 0 12px;
  background: #29394c;
  color: white;
  border: 1px solid var(--borde);
  border-radius: 10px;
}

.vista-previa-categoria {
  margin: 2px 0 16px;
  color: var(--verde);
  font-size: 12px;
  font-weight: 600;
}

.etiqueta-categoria-actividad {
  display: block;
  margin-top: 5px;
  color: var(--verde);
  font-size: 12px;
}

#abrir-categorias-historial {
  width: 100%;
  padding: 12px;
  margin: 12px 0;
}

#panel-categorias-historial[hidden] {
  display: none !important;
}

#panel-categorias-historial {
  max-height: 360px;
  overflow-y: auto;
  margin: 15px 0;
  padding: 14px;

  background: #1d2a3b;
  border: 1px solid var(--borde);
  border-radius: 12px;
}

.fila-categoria-historial {
  display: flex;
  flex-direction: column;
  gap: 7px;

  margin: 8px 0;
  padding: 12px;

  background: #28394d;
  border-radius: 10px;
}

.fila-categoria-historial strong {
  font-size: 13px;
}

.fila-categoria-historial small {
  color: var(--texto-secundario);
}

/* =========================================
   ERASMUS SHOP
   ========================================= */

#pagina-tienda .tarjeta {
  width: 100%;
}

.descripcion-tienda {
  color: var(--texto-secundario);
  margin-bottom: 20px;
}

#pagina-tienda input,
#pagina-tienda select {
  display: block;
  width: 100%;
  margin: 8px 0 14px;
}

#pagina-tienda h3 {
  margin: 25px 0 12px;
}

#saldo-tienda {
  display: inline-block;
  margin: 14px 0;
  color: var(--verde);
  font-family: var(--fuente-titulos);
  font-size: 23px;
  font-weight: 700;
}

#productos-tienda,
#historial-compras {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 15px 0 20px;
}

.producto-tienda {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 15px;

  background: #28394d;
  border: 1px solid rgba(150, 175, 198, 0.10);
  border-radius: 12px;

  transition: border-color 0.2s ease;
}

.producto-tienda:hover {
  border-color: rgba(183, 243, 75, 0.3);
}

.producto-tienda > div:first-child {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.producto-tienda strong {
  color: white;
  overflow-wrap: anywhere;
}

.producto-tienda span,
.info-gestion-producto span {
  color: var(--oro);
  font-size: 13px;
  font-weight: 600;
}

.acciones-producto {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 8px;
}

.acciones-producto button {
  padding: 9px 10px;
  font-size: 12px;
}

.compra-tienda {
  padding: 12px;
  background: #253449;
  color: #d4deeb;
  border-radius: 10px;
  border-left: 3px solid var(--oro);
  font-size: 13px;
  overflow-wrap: anywhere;
}

#mensaje-tienda {
  color: var(--verde);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* =========================================
   GESTIÓN DE PRODUCTOS
   ========================================= */

.zona-gestionar-productos {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--borde);
}

#modal-gestion-productos .ventana-historial,
#modal-tienda .ventana-historial {
  max-width: 520px;
  max-height: 85vh;
}

/* =========================================
   PERFILES
   ========================================= */

#selector-perfil {
  display: block;
  width: 100%;
  margin: 10px 0 20px;
}

.cabecera-perfil {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 24px;
}

.avatar-perfil {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  width: 82px;
  height: 82px;
  min-width: 82px;

  overflow: hidden;

  background: #354c60;
  color: var(--verde);

  border: 2px solid var(--verde);
  border-radius: 50%;

  font-family: var(--fuente-titulos);
  font-size: 34px;
  font-weight: 700;
}

.foto-perfil {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-pulsable {
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 18px currentColor;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.avatar-pulsable:hover {
  transform: scale(1.06);
}

.avatar-pulsable:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 4px;
}

.info-perfil {
  flex: 1;
  min-width: 0;
}

.info-perfil h3,
.cabecera-perfil h3 {
  margin: 0 0 6px;
  color: white;
  font-family: var(--fuente-titulos);
  font-size: 28px;
}

.info-perfil p {
  margin: 5px 0;
  color: var(--texto-secundario);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.personalizacion-perfil {
  margin-bottom: 26px;
}

.acciones-perfil {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.acciones-perfil button {
  padding: 10px 14px;
  font-size: 12px;
}

.personalizacion-perfil .colores-perfil {
  display: none !important;
}

/* Estadísticas */

.estadisticas-perfil {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 28px;
}

.estadistica-perfil {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-height: 95px;
  padding: 16px 11px;

  text-align: center;
  background: #28394d;
  border: 1px solid rgba(150, 175, 198, 0.10);
  border-radius: 13px;
}

.estadistica-perfil strong {
  color: var(--verde);
  font-family: var(--fuente-titulos);
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.estadistica-perfil span {
  color: var(--texto-secundario);
  font-size: 11px;
  font-weight: 500;
}

.actividad-perfil {
  margin-bottom: 9px;
  padding: 13px;
  background: #28394d;
  border-radius: 11px;
  color: #d6e4f3;
  overflow-wrap: anywhere;
}

/* Redes sociales */

.redes-perfil {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 9px 0 19px;
}

.redes-perfil a {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;

  background: var(--superficie-alta);
  border: 1px solid var(--borde);
  border-radius: 10px;

  color: var(--verde);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;

  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.redes-perfil a:hover {
  background: var(--superficie-hover);
  border-color: var(--verde);
}

/* =========================================
   MENÚ Y VISOR DE FOTO
   ========================================= */

.panel-menu-foto {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.panel-menu-foto h3 {
  margin: 0 0 12px;
  color: white;
  text-align: center;
}

.panel-menu-foto button {
  width: 100%;
  padding: 14px;

  background: #29394c;
  border: 1px solid var(--borde);
  color: white;
}

.panel-menu-foto button:hover {
  background: #3c526b;
  color: white;
}

.panel-menu-foto .opcion-eliminar-foto {
  background: #512a35;
  color: #ff9090;
}

.panel-menu-foto .opcion-cancelar-foto {
  background: transparent;
  color: var(--texto-secundario);
}

.panel-visor-foto {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 580px;
}

.foto-perfil-grande {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
}

.panel-visor-foto button {
  padding: 12px 25px;
  background: #29394c;
  color: white;
}

/* =========================================
   EDITOR DE PERFIL
   ========================================= */

#form-editar-perfil,
#formulario-perfil-completo,
#form-editor-erasmus {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#form-editar-perfil input,
#form-editar-perfil textarea,
#formulario-perfil-completo input,
#formulario-perfil-completo textarea,
#form-editor-erasmus input {
  width: 100%;
}

#formulario-perfil-completo h3 {
  margin: 15px 0 0;
}

.ayuda-redes {
  margin: 0 0 8px;
  color: var(--texto-secundario);
  font-size: 12px;
}

#error-perfil,
#error-editor-erasmus,
#error-gestion-logros {
  color: #ff9090;
  font-size: 12px;
  margin: 4px 0;
}

.acciones-editar-perfil,
.acciones-editor-perfil,
.acciones-editor-erasmus {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.acciones-editar-perfil button,
.acciones-editor-perfil button,
.acciones-editor-erasmus button {
  flex: 1;
  min-width: 0;
  padding: 12px;
}

.guardar-editar-perfil,
.boton-guardar-perfil,
#guardar-editor-erasmus {
  background: var(--verde);
  color: #14200a;
}

/* Colores del avatar */

.grupo-colores-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0;
}

.colores-editor-perfil {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.color-editor-perfil {
  width: 38px;
  height: 38px;
  padding: 0;

  border: 3px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.color-editor-perfil.seleccionado {
  border-color: white;
  outline: 2px solid var(--verde);
  outline-offset: 3px;
}

/* Compatibilidad con clases antiguas */

.colores-perfil {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-avatar {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.color-avatar:hover {
  transform: scale(1.12);
}

/* =========================================
   BOTÓN MAPA DE LOGROS
   ========================================= */

#abrir-mapa-logros {
  display: block;
  width: 100%;
  margin: 15px 0 22px;
  padding: 15px;

  background: rgba(183, 243, 75, 0.07);
  color: var(--verde);

  border: 1px solid var(--verde);
  border-radius: 12px;

  font-family: var(--fuente-titulos);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

#abrir-mapa-logros:hover {
  background: rgba(183, 243, 75, 0.14);
  color: var(--verde-brillo);
}

/* =========================================
   MAPA DE HABILIDADES
   ========================================= */

.cabecera-mapa-logros {
  align-items: flex-start;
  margin-bottom: 10px;
}

.cabecera-mapa-logros h2 {
  font-size: 29px;
}

#subtitulo-mapa-logros {
  margin: 5px 0 0;
  color: var(--texto-secundario);
  font-size: 12px;
}

.barra-mapa-logros {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
}

#contador-mapa-logros {
  color: var(--verde);
  font-family: var(--fuente-titulos);
  font-size: 17px;
  font-weight: 700;
}

.controles-mapa-logros {
  display: flex;
  gap: 8px;
}

.controles-mapa-logros button {
  padding: 8px 14px;
  background: #29394c;
  color: white;
  border: 1px solid #50647b;
}

.controles-mapa-logros button:hover {
  background: #3b5069;
  color: white;
}

/* Mapa desplazable */

.scroll-mapa-logros {
  position: relative;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 52vh;

  border: 1px solid #35465d;
  border-radius: 13px;

  background-color: #0b1422;
  background-image:
    radial-gradient(
      circle at 50% 50%,
      rgba(40, 65, 80, 0.5),
      transparent 65%
    ),
    linear-gradient(
      rgba(100, 135, 160, 0.055) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(100, 135, 160, 0.055) 1px,
      transparent 1px
    );

  background-size:
    100% 100%,
    32px 32px,
    32px 32px;

  scrollbar-color: var(--verde) #1c2b3a;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.lienzo-mapa-logros {
  position: relative;
}

.lineas-mapa-logros {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

.linea-logro-activa {
  filter: drop-shadow(0 0 5px currentColor);
}

/* Áreas */

.zona-mapa-logros {
  position: absolute;
  top: 20px;
  height: 385px;

  border-right: 1px dashed #35465d;

  background: linear-gradient(
    180deg,
    color-mix(
      in srgb,
      var(--color-area) 9%,
      transparent
    ),
    transparent 65%
  );
}

.zona-mapa-logros h3 {
  margin: 8px 0 0;
  text-align: center;
  color: var(--color-area);

  font-family: var(--fuente-titulos);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* Nodos */

.nodo-logro {
  position: absolute;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  width: 78px;
  height: 78px;
  padding: 6px;

  transform: translate(-50%, -50%);

  background: #1d2a3b;
  color: white;

  border: 3px solid #526276;
  border-radius: 50%;
  box-shadow: none;

  cursor: pointer;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.nodo-logro:hover {
  transform: translate(-50%, -50%) scale(1.11);
  background: #2b3d53;
}

.icono-nodo-logro {
  font-size: 23px;
  line-height: 1;
}

.nombre-nodo-logro {
  max-width: 70px;

  font-family: var(--fuente-titulos);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  overflow-wrap: anywhere;
}

.nodo-logro-bloqueado {
  background: #202a3a;
  border-color: #526276;
  opacity: 0.75;
  filter: grayscale(0.5);
}

.nodo-logro-desbloqueado {
  background: #263845;
  border-color: var(--color-logro);

  box-shadow: 0 0 14px
    color-mix(
      in srgb,
      var(--color-logro) 55%,
      transparent
    );
}

.nodo-logro-seleccionado {
  outline: 3px solid white;
  outline-offset: 4px;
  opacity: 1;
}

.nodo-logro:focus-visible {
  outline: 3px solid white;
  outline-offset: 5px;
}

/* Panel de detalles */

.detalle-mapa-logros {
  min-height: 105px;
  margin-top: 15px;
  padding: 18px;

  background: #1d2a3b;
  color: #d6e4f3;

  border: 1px solid var(--borde);
  border-radius: 12px;
}

.detalle-logro-cabecera {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detalle-logro-icono {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 54px;
  height: 54px;

  background: #263845;
  border: 2px solid var(--verde);
  border-radius: 50%;

  font-size: 25px;
}

.detalle-logro-cabecera h3 {
  margin: 0 0 4px;
  color: white;
  font-family: var(--fuente-titulos);
  font-size: 23px;
}

.detalle-logro-categoria {
  color: var(--texto-secundario);
  font-size: 12px;
}

.detalle-mapa-logros > p {
  margin: 12px 0;
  font-size: 13px;
}

.estado-detalle-logro {
  font-size: 12px !important;
  font-weight: 700;
}

.barra-fondo-logro {
  width: 100%;
  height: 9px;
  overflow: hidden;

  background: #45536b;
  border-radius: 20px;
}

.barra-progreso-logro {
  height: 100%;
  width: 0;
  border-radius: 20px;
  transition: width 0.3s ease;
}

.contador-detalle-logro {
  color: var(--texto-secundario);
  text-align: right;
  font-size: 12px !important;
}

.ayuda-mapa-logros {
  margin: 10px 0 0;
  color: #8293a7;
  text-align: center;
  font-size: 12px;
}

/* =========================================
   GESTIÓN DE LOGROS
   ========================================= */

.zona-administracion-logros {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0;
}

#abrir-gestion-logros {
  padding: 10px 14px;

  background: #29394c;
  color: white;

  border: 1px solid #50647b;
  border-radius: 10px;

  font-size: 12px;
}

#abrir-gestion-logros:hover {
  background: #3b5069;
  color: white;
}

#form-gestion-logros {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

#form-gestion-logros input,
#form-gestion-logros textarea,
#form-gestion-logros select {
  display: block;
  width: 100%;
  margin: 2px 0 8px;
}

#form-gestion-logros label {
  color: var(--verde);
  font-size: 12px;
  font-weight: 600;
}

.acciones-gestion-logros {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.acciones-gestion-logros button {
  flex: 1;
  min-width: 0;
  padding: 12px;
}

#guardar-nuevo-logro {
  background: var(--verde);
  color: #14200a;
  font-weight: 700;
}

#cancelar-edicion-logro[hidden] {
  display: none !important;
}

#lista-logros-personalizados {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 25px;
}

.info-gestion-logro small {
  color: var(--texto-secundario);
}

.acciones-lista-logros {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.acciones-lista-logros button {
  padding: 8px;
}

.acciones-lista-logros .eliminar-logro {
  background: #512a35;
  color: #ff9090;
}

/* =========================================
   RESPONSIVE · MÓVILES
   ========================================= */

@media (max-width: 600px) {
  body {
    padding: 18px 12px 40px;
  }

  main {
    max-width: 100%;
  }

  .tarjeta {
    padding: 18px;
    margin-top: 15px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 47px);
  }

  h2 {
    font-size: 24px;
  }

  .navegacion-principal {
    gap: 5px;
    padding: 4px;
    margin: 20px 0;
  }

  .tab-principal {
    padding: 12px 5px;
    font-size: 11px;
  }

  .selector-ranking {
    gap: 7px;
  }

  .boton-periodo {
    font-size: 11px;
    padding: 11px 5px;
  }

  .acciones-ranking {
    gap: 8px;
  }

  .acciones-ranking button {
    font-size: 11px;
    padding: 11px 6px;
  }

  .jugador {
    gap: 8px;
    padding: 13px 5px;
  }

  .producto-tienda {
    flex-wrap: wrap;
  }

  .acciones-producto {
    width: 100%;
    justify-content: flex-end;
  }

  .cabecera-perfil {
    gap: 12px;
  }

  .avatar-perfil {
    width: 70px;
    height: 70px;
    min-width: 70px;
    font-size: 29px;
  }

  .info-perfil h3 {
    font-size: 24px;
  }

  .estadisticas-perfil {
    gap: 9px;
  }

  .estadistica-perfil {
    min-height: 85px;
    padding: 13px 8px;
  }

  .estadistica-perfil strong {
    font-size: 25px;
  }

  .estadistica-perfil span {
    font-size: 10px;
  }

  .acciones-perfil button {
    flex: 1;
  }

  #modal-mapa-logros {
    padding: 7px;
  }

  .ventana-mapa-logros {
    padding: 13px;
    max-height: 96vh;
  }

  .cabecera-mapa-logros h2 {
    font-size: 23px;
  }

  .detalle-mapa-logros {
    padding: 14px;
  }

  .scroll-mapa-logros {
    max-height: 48vh;
  }

  .ventana-perfil-completo,
  .ventana-gestion-logros,
  .ventana-editor,
  .ventana-historial {
    padding: 18px;
  }
}

@media (max-width: 390px) {
  body {
    padding-left: 9px;
    padding-right: 9px;
  }

  .tarjeta {
    padding: 14px;
  }

  .tab-principal {
    font-size: 10px;
    padding: 11px 4px;
  }

  .acciones-ranking button {
    font-size: 10px;
  }

  .estadistica-perfil strong {
    font-size: 22px;
  }
}

/* =========================================
   ACCESIBILIDAD
   ========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }

  #ranking .jugador {
    transition: none !important;
  }
}

/* =========================================
   ERASMUS LEAGUE - APP LAYOUT 2.0
   ========================================= */

/* CABECERA PRINCIPAL */

.cabecera-principal-erasmus {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: 100%;
  margin-bottom: 27px;
  padding: 12px 0 19px;

  border-bottom: 1px solid #344358;
}

.marca-erasmus {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  gap: 4px;
}

.cabecera-principal-erasmus h1 {
  margin: 0;

  font-family: "Klein Headline", "Rajdhani", sans-serif;
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 700;
  font-style: oblique;
  line-height: 1.05;
}

.enlace-logo-erasmus {
  display: inline-block;
  color: #b7f34b;
  text-decoration: none;

  transition:
    color 0.2s ease,
    text-shadow 0.2s ease;
}

.enlace-logo-erasmus:hover {
  color: #caff72;
  text-shadow: 0 0 18px rgba(183, 243, 75, 0.3);
}

.marca-subtitulo {
  color: #8296a9;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* MENÚ DE ESCRITORIO */

.cabecera-principal-erasmus .navegacion-principal {
  width: auto;
  display: flex;
  align-items: center;
  gap: 6px;

  margin: 0;
  padding: 5px;

  background: #1d2a3b;
  border: 1px solid #35465d;
  border-radius: 13px;
}

.cabecera-principal-erasmus .tab-principal {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;

  min-width: 0;
  padding: 11px 13px;

  border-radius: 9px;
  font-size: 12px;
}

.icono-tab-erasmus {
  font-size: 18px;
  line-height: 1;
}

.texto-tab-erasmus {
  white-space: nowrap;
}

.cabecera-principal-erasmus .tab-principal.activo {
  background: #b7f34b;
  color: #14200a;
}

/* =========================================
   PORTADA: NOTICIAS
   ========================================= */

.noticias-erasmus {
  margin-top: 24px;
}

.cabecera-noticias {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;

  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #35465d;
}

.etiqueta-seccion-erasmus {
  display: block;
  margin-bottom: 7px;

  color: #b7f34b;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.cabecera-noticias h2 {
  margin: 0 0 8px;

  color: #ffffff;
  font-family: "Rajdhani", sans-serif;
  font-size: 29px;
}

.cabecera-noticias p {
  margin: 0;
  color: #aab6c8;
  font-size: 12px;
}

.indicador-noticias {
  flex-shrink: 0;
  margin-top: 6px;
  padding: 5px 9px;

  background: rgba(183, 243, 75, 0.09);
  color: #b7f34b;

  border: 1px solid rgba(183, 243, 75, 0.24);
  border-radius: 30px;

  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

/* LISTADO DE NOTICIAS */

.lista-noticias-erasmus {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.noticia-erasmus {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  padding: 16px;

  background: #263449;
  border: 1px solid rgba(135, 157, 180, 0.12);
  border-radius: 12px;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.noticia-erasmus:hover {
  background: #2c3d52;
  border-color: rgba(183, 243, 75, 0.27);
  transform: translateY(-1px);
}

.noticia-icono-erasmus {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  background: #35475c;
  border: 1px solid #475d70;
  border-radius: 12px;

  font-size: 22px;
}

.noticia-contenido-erasmus {
  flex: 1;
  min-width: 0;
}

.noticia-categoria-erasmus {
  display: block;
  margin-bottom: 5px;

  color: #b7f34b;
  font-family: "Rajdhani", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.noticia-contenido-erasmus h3 {
  margin: 0 0 6px;

  font-family: "Rajdhani", sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: white;
  line-height: 1.15;
}

.noticia-contenido-erasmus p {
  margin: 0 0 10px;

  color: #cad6e6;
  font-size: 12px;
  line-height: 1.5;
}

.noticia-fecha-erasmus {
  color: #8899ad;
  font-size: 11px;
}

/* SIN NOTICIAS */

.noticias-vacias-erasmus {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  padding: 30px 16px;

  background: #263449;
  border: 1px dashed #43566c;
  border-radius: 12px;

  text-align: center;
}

.noticias-vacias-erasmus > span {
  font-size: 32px;
}

.noticias-vacias-erasmus strong {
  color: white;
  font-size: 14px;
}

.noticias-vacias-erasmus p {
  max-width: 340px;
  margin: 0;
  color: #aab6c8;
  font-size: 12px;
}

/* =========================================
   RETOS Y APUESTAS - PRÓXIMAMENTE
   ========================================= */

.proximamente-erasmus {
  margin-top: 23px;
  padding-top: 20px;
  border-top: 1px solid #35465d;
}

.proximamente-erasmus h3 {
  margin: 0 0 15px;
  color: white;

  font-family: "Rajdhani", sans-serif;
  font-size: 22px;
}

.proximas-funciones-erasmus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.funcion-proxima {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;

  background: rgba(31, 45, 64, 0.85);
  border: 1px solid #35465d;
  border-radius: 12px;
}

.funcion-proxima > span {
  flex-shrink: 0;
  font-size: 23px;
}

.funcion-proxima strong {
  display: block;
  margin-bottom: 5px;
  color: white;
  font-size: 12px;
}

.funcion-proxima p {
  margin: 0;
  color: #aab6c8;
  font-size: 11px;
  line-height: 1.5;
}

/* =========================================
   MÓVIL - NAVEGACIÓN INFERIOR
   ========================================= */

@media (max-width: 700px) {

  body {
    padding-bottom: calc(
      110px + env(safe-area-inset-bottom, 0px)
    );
  }

  .cabecera-principal-erasmus {
    justify-content: center;
    margin-bottom: 21px;
    padding: 10px 0 16px;
  }

  .marca-erasmus {
    align-items: center;
    text-align: center;
  }

  .cabecera-principal-erasmus h1 {
    font-size: clamp(32px, 8vw, 42px);
  }

  .marca-subtitulo {
    font-size: 11px;
  }

  /* MENÚ INFERIOR FIJO */

  .cabecera-principal-erasmus .navegacion-principal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 900;

    width: 100%;
    margin: 0;
    padding:
      8px
      10px
      calc(8px + env(safe-area-inset-bottom, 0px));

    display: flex;
    align-items: stretch;
    justify-content: space-around;
    gap: 7px;

    background: rgba(18, 28, 43, 0.97);
    border: 0;
    border-top: 1px solid #40516b;
    border-radius: 0;

    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  .cabecera-principal-erasmus .tab-principal {
    flex: 1;
    min-width: 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;

    padding: 10px 4px;
    border-radius: 12px;

    background: transparent;
    color: #aab6c8;

    box-shadow: none;
  }

  .cabecera-principal-erasmus .tab-principal:hover {
    box-shadow: none;
  }

  .cabecera-principal-erasmus .tab-principal.activo {
    background: rgba(183, 243, 75, 0.11);
    color: #b7f34b;
    border-color: rgba(183, 243, 75, 0.22);
    box-shadow: none;
  }

  .icono-tab-erasmus {
    font-size: 23px;
  }

  .texto-tab-erasmus {
    font-size: 10px;
    font-weight: 600;
  }

  .cabecera-noticias {
    gap: 10px;
  }

  .cabecera-noticias h2 {
    font-size: 25px;
  }

  .proximas-funciones-erasmus {
    grid-template-columns: 1fr;
  }

  .noticia-erasmus {
    padding: 13px;
    gap: 11px;
  }

  .noticia-icono-erasmus {
    width: 41px;
    height: 41px;
    font-size: 20px;
  }
}

@media (max-width: 380px) {
  .indicador-noticias {
    font-size: 10px;
    padding: 5px 7px;
  }

  .noticia-contenido-erasmus h3 {
    font-size: 18px;
  }

  .texto-tab-erasmus {
    font-size: 9px;
  }
}

/* =====================================
   DASHBOARD - NOTICIAS, RETOS Y APUESTAS
   ===================================== */

/* Damos más anchura a la web en escritorio
   para que las dos columnas respiren. */

@media (min-width: 900px) {
  main {
    max-width: 1180px;
  }
}

/* DISTRIBUCIÓN DE COLUMNAS */

#dashboard-erasmus {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  width: 100%;
  margin-top: 24px;
}

/* NOTICIAS A LA IZQUIERDA */

#dashboard-erasmus .noticias-erasmus {
  min-width: 0;
  margin-top: 0;
}

/* RETOS Y APUESTAS A LA DERECHA */

.dashboard-derecha {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.dashboard-panel {
  margin: 0;
  min-width: 0;
  padding: 22px;
}

.dashboard-panel-cabecera {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.dashboard-panel-cabecera > span {
  font-size: 25px;
}

.dashboard-panel-cabecera h2 {
  margin: 0;
  color: #fff;
  font-family: "Rajdhani", sans-serif;
  font-size: 27px;
}

.dashboard-panel-descripcion {
  margin: 0 0 18px;
  color: #aab6c8;
  font-size: 13px;
  line-height: 1.6;
}

.dashboard-estado {
  padding: 12px;
  background: #263449;
  border: 1px solid #35465d;
  border-radius: 10px;
  color: #b7f34b;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

/* ADAPTACIÓN A MÓVILES */

@media (max-width: 700px) {
  #dashboard-erasmus {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 16px;
  }

  .dashboard-derecha {
    gap: 14px;
  }

  .dashboard-panel {
    padding: 18px;
  }
}
