#container-redes {
    padding: 0;
    margin: 0;
    position: fixed;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#container-redes ul {
    min-height: 80vh;
    margin: 0 auto;
    padding: 10px 0;
    list-style: none;
    display: grid;
   
}

#container-redes ul li {
    display: flex;
    align-items: center;
    justify-content: start;
}

#container-redes ul li:hover,
#container-redes-navbar a {
    cursor: pointer;
}

.redes-items {
    color: rgb(0, 162, 255);
    font-size: xx-large;
}

.redes-items .bi:hover,
#container-redes-navbar .bi:hover {
    color: rgb(255, 69, 0);
}



#container-redes-navbar {
    display: flex;
    justify-content: start;
    margin-top: 2em;
}

#container-redes-navbar .bi {
    font-size: large;
}



/* Estilos del Icono de WhatsApp */
#contenedor-whatsapp-icon {
    position: fixed;
    right: 15px;
    top: 60px;
    z-index: 999;
    margin-right: 5px;
    padding: 10px 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width:860px) {
    #content {
        width: 760px;
    }

    #iconoPadre {
        position: relative;
        margin-left: -10px;
    }

    #content {
        position: static;
    }
}

@media (max-width:860px) {
    #contenedor-whatsapp-icon {
        right: 0px;
        bottom: 0px;
        align-items: flex-end;
    }

    #content {
        width: auto;
        position: relative;
        left: 18px;
        z-index: -1;
    }

    .iconos a {
        font-size: 8px;
        text-align: center;
        padding: 0px 2px;
    }

}

#content {
    border-left: solid 4px;
    border-left-color: rgb(0, 162, 255);
    background-color: #6e6d6d;
    box-shadow: 2px 2px 5px rgba(59, 59, 59, 0.553);
    padding: 5px 2px 5px 6px;
    margin-bottom: 6px;
}

.iconos {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.aparecer {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(4, 1fr);
    opacity: 1;
    pointer-events: auto;
}


.iconos a {
    color: white;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-right: solid 2px white;
    height: 100%;
}

#iconoPadre .bi-whatsapp {
    background-color: rgb(0, 162, 255);
    color: white;
    border-radius: 50%;
    display: flex;
    font-size: 30px;
    width: 50px;
    height: 50px;
    justify-content: center;
    align-items: center;
}


.iconos a:hover span {
    color: orangered;
}

.iconos a:hover .bi-whatsapp,
#iconoPadre .bi-whatsapp:hover {
    color: white;
    background-color: orangered;
    cursor: pointer;
}



/* @MEDIAS QUERY PARA LA REACTIVIDAD DEL SITIO EN LO RESPONSIVE */


@media (min-width: 1367px) and (max-width:1920px) {
    #container-redes ul {
        margin: 0 auto;
        padding: 5px 0;
    }

}




@media (max-width: 766px) {
    #container-redes {
        display: none;
    }
}

@media (min-width: 766px) {
    #container-redes {
        
        left: 0px;
        margin-left: 15px;
    }

    #container-redes ul li {
        margin: 1.5em 0em;
    }

    #container-redes-navbar {
        display: none;
    }
}

@media (max-width:480px) {

    #iconoPadre .bi-whatsapp {
        background-color: rgb(0, 162, 255);
        color: white;
        font-size: 25px;
    }

    .iconos .bi-whatsapp {
        padding: 7px;
    }
}


/* === CSS Popup === */
#popup-container {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  transition: bottom 0.5s ease-in-out, opacity 0.5s ease-in-out;
  opacity: 0;
  /* Tamaño base */
  width: fit-content;
}

#popup-container.show {
  bottom: 0px; /* un poco arriba del borde */
  opacity: 1;
}

.popup-content {
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform: scale(0.8);
  transition: transform 0.3s ease-out;
}

.popup-content.show {
  transform: scale(1);
}

#close-button {
  position: absolute;
  top: -10px;
  right: 5px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s ease;
}

#close-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* === Responsive === */

/* Teléfonos pequeños (hasta 480px) */
@media (max-width: 480px) {
  #popup-container {
    width: 100%;
    bottom: 5px;
  }
  .popup-content {
    transform: scale(1);
    font-size: 14px;
  }
  #close-button {
    font-size: 24px;
    top: -8px;
    right: 3px;
  }
}

/* Tablets (481px a 768px) */
@media (max-width: 768px) {
  .popup-content {
    font-size: 15px;
  }
}
