/* ---------------------- RESET Y ESTILOS GLOBALES ---------------------- */
body.page-profile-link-bio {
  margin: 0;
  padding: 0;
  background: #121212;
  font-family: 'Arial', sans-serif;
  color: #e0e0e0;
  min-height: 100vh;
  line-height: 1.5;
}

/* ---------------------- ELEMENTOS OCULTOS ---------------------- */
body.page-profile-link-bio header[role="banner"],
body.page-profile-link-bio footer[role="contentinfo"],
body.page-profile-link-bio .breadcrumb,
body.page-profile-link-bio h1.page-title,
body.page-profile-link-bio #block-bio-link-page-title {
  display: none !important;
}

/* ====================== ESTRUCTURA PRINCIPAL ====================== */
.layout-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* ---------------------- TARJETA DE PERFIL ---------------------- */
/* Asumiendo que el contenido principal está dentro de un <article>
   directamente dentro de la región de contenido de Layout Builder.
   O si no hay <article>, directamente en .layout__region--content */
.layout__region--content > article,
.layout__region--content { /* Si no hay un <article> wrapper directo para la tarjeta */
  background: #1a202c;
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px; /* Asegúrate que la tarjeta no sea más ancha que esto */
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  text-align: center; /* Centra el contenido de la tarjeta */
}

/* ====================== SECCIÓN TÍTULO ====================== */
/* Apunta al primer div hijo que contiene el título */
.layout__region--content > div:nth-child(1) > div {
  font-size: 2.2rem !important;
  color: #63b3ed !important;
  text-align: center !important;
  margin: 1rem 0 2rem 0 !important;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative; /* Para la línea decorativa ::after */
}

.layout__region--content > div:nth-child(1) > div::after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: #63b3ed;
  margin: 1rem auto 0; /* Centra la línea debajo del título */
}

/* ====================== IMAGEN DE PERFIL ====================== */
/* Apunta al segundo div hijo que contiene la imagen */
.layout__region--content > div:nth-child(2) img {
  width: 180px !important;
  height: 180px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  margin: 0 auto 2rem !important; /* Centra la imagen y añade margen inferior */
  border: 4px solid #2d3748 !important;
  box-shadow: 0 8px 15px rgba(0,0,0,0.3);
  display: block !important; /* Para asegurar que margin:auto funcione */
}

/* ====================== DESCRIPCIÓN ====================== */
/* Apunta al tercer div hijo que contiene el párrafo de descripción */
.layout__region--content > div:nth-child(3) p {
  font-size: 1.1rem !important;
  color: #a0aec0 !important;
  margin: 1.5rem 0 !important;
  line-height: 1.7 !important;
  padding: 0 1rem !important; /* Padding horizontal para que no toque los bordes si el texto es largo */
  text-align: center;
}

/* ====================== REDES SOCIALES ====================== */
.social-media-links--platforms.vertical {
  list-style: none !important;
  padding: 0 !important;
  margin: 3rem 0 !important; /* Mayor margen vertical */
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem !important; /* Espacio entre botones */
}

.social-media-links--platforms.vertical li {
  background: #2d3748 !important;
  border-radius: 10px !important;
  transition: all 0.3s ease !important;
  padding: 1rem !important; /* Padding para el botón completo */
  /* display: flex y align-items: center se mueven al <a> para mejor control del contenido interno */
}

.social-media-links--platforms.vertical li:hover {
  transform: translateY(-3px) !important;
  background: #374252 !important; /* Color de fondo en hover */
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-media-links--platforms.vertical li a {
  color: #e0e0e0 !important;
  text-decoration: none !important;
  display: flex !important; /* Para alinear icono y texto dentro del enlace */
  align-items: center !important;
  gap: 1.5rem !important; /* Espacio entre icono y texto */
  font-size: 1rem !important;
  width: 100%; /* Para que todo el botón sea clickeable */
}

/* Iconos de redes sociales */
.social-media-links--platforms.vertical .fab,
.social-media-links--platforms.vertical .fa {
  font-size: 1.8rem !important;
  min-width: 35px !important; /* Ancho mínimo para el icono */
  text-align: center; /* Centra el icono si tiene ancho fijo */
}

/* Colores específicos para los iconos de Font Awesome */
.fa-facebook { color: #1877f2 !important; }
.fa-youtube { color: #ff0000 !important; }
.fa-home { color: #7289da !important; }
.fa-envelope { color: #ea4335 !important; }
.fa-whatsapp { color: #25d366 !important; }
.fa-tiktok { color: #69c9d0 !important; }

/* ====================== SECCIÓN JUEGOS ====================== */
/* Título de la sección de juegos */
.layout__region--content > div:nth-child(5) > div:first-child {
  font-size: 1.4rem !important;
  color: #a0aec0 !important;
  text-align: center !important;
  margin: 3rem 0 1.5rem 0 !important;
  font-weight: bold !important;
  position: relative; /* Para la línea decorativa ::after */
}

/* Línea decorativa para el título de juegos */
.layout__region--content > div:nth-child(5) > div:first-child::after {
  content: "";
  display: block;
  width: 100px;
  height: 2px;
  background: #63b3ed;
  margin: 0.8rem auto 0; /* Centra la línea */
}

/* Contenedor de las etiquetas de juegos */
.layout__region--content > div:nth-child(5) > div:nth-child(2) {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.8rem !important; /* Espacio entre etiquetas */
  justify-content: center !important;
  padding: 0 10% !important; /* Padding para que no se peguen a los bordes en contenedores anchos */
  /* Este contenedor NO debe tener el fondo de etiqueta */
}

/* Etiquetas individuales de juegos */
/* Este selector asume que cada juego es un <div> hijo directo del contenedor anterior.
   Si Drupal genera otra estructura (ej. <span> o <li>), este selector necesitará ajuste. */
.layout__region--content > div:nth-child(5) > div:nth-child(2) > div {
  background: linear-gradient(145deg, #2d3748 0%, #1a202c 100%) !important;
  padding: 0.8rem 1.5rem !important;
  border-radius: 25px !important; /* Bordes muy redondeados para forma de pastilla */
  font-size: 0.9rem !important;
  color: #e0e0e0 !important;
  transition: all 0.3s ease !important;
  display: flex !important; /* Para alinear el pseudo-elemento del icono con el texto */
  align-items: center !important;
  position: relative; /* Para el pseudo-elemento */
}

/* Icono de juego añadido con pseudo-elemento ::before */
.layout__region--content > div:nth-child(5) > div:nth-child(2) > div::before {
  content: "🎮"; /* Emoji de control de videojuego */
  margin-right: 0.7rem; /* Espacio entre el icono y el texto del juego */
  font-size: 0.9em; /* Tamaño del icono relativo al texto de la etiqueta */
  line-height: 1; /* Para mejor alineación vertical */
}

/* Efecto hover para las etiquetas de juegos */
.layout__region--content > div:nth-child(5) > div:nth-child(2) > div:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

/* ====================== RESPONSIVE ====================== */
@media (max-width: 768px) {
  .layout-container {
    padding: 15px;
  }

  .layout__region--content > article,
  .layout__region--content { /* Ajuste para que la tarjeta principal también se afecte */
    padding: 1.5rem !important;
    margin: 1rem auto !important;
  }

  /* Título */
  .layout__region--content > div:nth-child(1) > div {
    font-size: 1.8rem !important;
  }

  /* Imagen */
  .layout__region--content > div:nth-child(2) img {
    width: 140px !important;
    height: 140px !important;
  }

  /* Juegos */
  .layout__region--content > div:nth-child(5) > div:nth-child(2) { /* Contenedor de etiquetas */
    padding: 0 5% !important; /* Menos padding en móvil */
  }

  .layout__region--content > div:nth-child(5) > div:nth-child(2) > div { /* Etiquetas individuales */
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .layout__region--content > div:nth-child(1) > div { /* Título */
    font-size: 1.5rem !important;
  }

  .layout__region--content > div:nth-child(2) img { /* Imagen */
    width: 120px !important;
    height: 120px !important;
  }

  .social-media-links--platforms.vertical li { /* Botones de redes sociales */
    padding: 0.8rem !important; /* Padding más pequeño para botones en móvil */
  }
  .social-media-links--platforms.vertical li a {
    gap: 1rem !important; /* Menos espacio entre icono y texto en móvil */
  }
  .social-media-links--platforms.vertical .fab,
  .social-media-links--platforms.vertical .fa {
    font-size: 1.5rem !important; /* Iconos más pequeños */
  }
}
