@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;700;900&display=swap');

* {
  margin: 0;
  padding: 0;
}

body {
  width: 100%;
  height: 100vh;
  font-family: Arial, sans-serif;
  background: url('img/background.png');
  background-size: 100% 100%;
  /* Ajusta la imagen completa sin recortarla */
  background-attachment: fixed;
  /* Mantiene la imagen fija al hacer scroll */
  display: grid;
  grid-template-rows: 1fr 6fr .8fr;
  gap: 20px;
}

header {
  display: grid;
  grid-template-columns: 1fr 4fr 1fr;
  grid-template-rows: 1fr;
  gap: 20px;
}

header>.logo {
  display: flex;
  justify-content: center;
}

header>.logo>a {
  width: 120px;
  height: 120px;
  background-color: #fff;
  border: 2px solid #f1f1f1;
  border-radius: 0 0 20% 20%;
  box-shadow: 0 5px 15px 5px rgba(178, 178, 178, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo>a>img {
  width: 100px;
}

header>.title-main {
  place-self: center;
  background: rgb(226, 19, 19);
  color: white;
  border-radius: 20px;
  /* Bordes redondeados */
  width: 80%;
  /* Controla el ancho del header */
  padding: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Agrega sombra */
  text-align: center;
}


main {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

main>section {
  place-self: center;
  background: rgb(255, 255, 255);
  padding: 20px;
  /* Espaciado interno */
  border-radius: 25px;
  /* Bordes redondeados */
  width: calc(90% - 40px);
  /* Ancho ajustable */
  height: calc(100% - 40px);
  box-shadow: 9px 15px 8px rgba(0, 0, 0, 0.7);
  /* Sombra */
  text-align: left;
  /* Alinea el texto dentro */
  /* opacity: 0.8; TODO ELIMINAR*/
  /* Hace toda la sección más transparente */
}

main>.filters {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 20px;
}

.filter-group {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 3fr;
  grid-template-rows: 1fr;
  gap: 20px;
}

.filter-group>label {
  place-self: center;
  width: 100%;
  font-weight: 600;
  /* Máximo grosor disponible */
  font-size: 18px;
  /* Tamaño del texto */
  color: rgb(0, 0, 0);
  /* Color negro puro */
  font-family: 'Poppins', sans-serif;
  /* Tipo de letra */
  letter-spacing: 1px;
  /* Espaciado entre letras */
  text-align: left;
  /* Alinea el texto */
}

/* Contenedor padre (puedes ajustarlo a tus necesidades) */
.dropdown-container {
  width: 100%;
  /* Ejemplo: 80% del ancho de la ventana */
  margin: 50px auto;
  border: 1px solid #ccc;
  padding: 20px;
  box-sizing: border-box;
}

/* Contenedor del dropdown */
.dropdown {
  place-self: center;
  position: relative;
  width: 100%;
}

/* Botón del dropdown */
.dropdown button {
  width: 100%;
  background-color: #3498db;
  color: #fff;
  padding: 10px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

/* Contenedor desplegable en grid */
.dropdown-content {
  display: none;
  position: absolute;
  width: 100%;
  /* Se adapta al 100% del contenedor padre */
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  padding: 10px;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  z-index: 1;
  /* Se han removido max-height y overflow-y de aquí */
}

/* Mostrar el dropdown al hacer hover sobre el contenedor */
.dropdown-content.active {
  display: grid;
}

/* Estilos para cada columna */
.column .items {
  display: flex;
  flex-direction: column;
}

.column h3 {
  margin: 0 0 10px;
  font-size: 18px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

/* Aquí se encapsulan solo los links (objetos) */
.items {
  /* Se aplica el scroll solo a este contenedor, dejando fijo el título */
  max-height: 200px;
  /* Ajusta este valor según la altura deseada */
  overflow-y: auto;
}

.dropdown-item {
  cursor: pointer;
}

/* Puedes personalizar el estilo */
.dropdown-item.selected {
  cursor: default;
  background-color: #e0e0e0; /* Color claro para mostrar que está seleccionado */
  font-weight: bold;
}

.column a {
  text-decoration: none;
  color: #333;
  padding: 5px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.column a:hover {
  background-color: #eaeaea;
}


.selected-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
  gap: 20px;
  width: 100%;
}

/* Hacer que cada botón sea independiente */
.filter-btn {
  /* Tamaño ajustado al texto */
  padding: 10px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: 0.3s;
  font-weight: bold;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  /* margin: 2% 5%; */
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.7);
}

/* Opcional: Cuando el mouse pasa sobre los botones */
.filter-btn:hover {
  background: #ddd;
}

.filter-btn:active {
  background: #a8a8a8;
}

.filter-btn.selected {
    background-color: #007bff; /* Azul o el color que prefieras */
    color: white;
    font-weight: bold;
}

.recommendations {
  height: 250px;
  /* Ajusta el valor según necesites */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 10fr;
  gap: 5px;
}

.recommendations>h2 {
  color: rgb(226, 19, 19);
}

.recommendations>#results {
  padding-left: 10px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 10px;
  overflow-y: auto;
  height: 100%;
}

.card {
  margin-left: 10px;
  display: grid;
  grid-template-columns: 5fr 1fr;
}

.network {
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

/* From Uiverse.io by MrBishtji */ 
#SocialIcons {
  min-width: 350px;
  position: absolute;
  transform: translate(0);
  display: flex;
  justify-content: space-around;
}
.icons {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  border: none;
  z-index: -1;
  text-align: center;
}
.iconName {
  position: absolute;
  top: -40px;
  font-size: 12px;
  color: #fff;
  transform: scale(0);
  border-radius: 3px;
  text-align: center;
  padding: 3px;
  transition: transform 0.3s ease;
}

.icons.instagram:hover .iconName {
  transform: scale(1);
  left: 15px;
  background: linear-gradient(30deg, #0000ff, #f56040);
}

.icons.facebook:hover .iconName {
  transform: scale(1);
  left: 106px;
  background: #0274b3;
}
.icons.whatsapp:hover .iconName {
  transform: scale(1);
  right: 100px;
  background: #25d366;
}
.icons.youtube:hover .iconName {
  transform: scale(1);
  right: 15px;
  background: #ff0000;
}
.icon {
  z-index: 1;
  display: inline-block;
  width: 100%;
  height: 100%;
  text-align: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: none;
  outline: none;
  transition: color 0.3s ease;
  color: #0c0c0c;
}
.icon:hover {
  color: #fff;
}
.icon::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  border-radius: 50%;
  transform: rotateX(360deg);
  transition: height 0.3s ease;
  z-index: -1;
}

.icon:hover::before {
  height: 100%;
  z-index: 1;
}
.icon:hover {
  box-shadow: 5px 5px 10px #181717ce;
}

.icon.tube::before {
  z-index: -1;
  background: red;
}

.icon.insta::before {
  z-index: -1;
  background: linear-gradient(40deg, #0000ff, #f56040);
}

.icon.faceb::before {
  z-index: -1;
  background: #0274b3;
}

.icon.whats::before {
  z-index: -1;
  background: #25d366;
}

.products .card p strong,
.migrations .card p strong {
    font-weight: normal !important;
}

    