@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
body{
    background: white;
    background-clip: text;
    margin: 0;
    padding: 0;

}
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}
/* Sidebar */
#sidebar {
    width: 250px;
    height: 100vh; /* Asegura que el sidebar ocupe toda la altura de la ventana */
    background-color: #d4d6d7;
    color: rgb(0, 0, 0);
    transition: transform 0.3s ease;
    transform: translateX(-250px);
    position: fixed; /* Cambia a fixed para que el sidebar permanezca fijo al desplazarse */
    top: 0;
    left: 0;
    padding-top: 3cm;
    padding-left: 1cm;
    z-index: 1001;
    & #darkModeToggle {
        margin-left: .5cm;
        position: relative;
        cursor: pointer;
        border-radius: 10%;
        border: none;
        padding: 10px 15px;
    }
}
#sidebar.active {
    transform: translateX(0);
    & #toggleButton {
        transform: translateX(250px);
        transition: transform 0.3s ease;
    }
}
#sidebar.dark-mode {
    background-color: #1e1e1e;
    color: rgb(202, 205, 205);
}
#sidebar.dark-mode ul li a {
    color: #ffffff;
}

#sidebar.dark-mode ul li button {
    background-color: #333333;
    color: #dbd4d4;
}

#sidebar ul {
    list-style-type: none;
    padding: 20px;
    margin: 0;
}
#sidebar ul li {
    margin: 10px 0;
    &:hover {
        & a {
            color: rgb(16, 135, 168);
        }
        & button {
            color: rgb(16, 135, 168);
        }
    }
}

#sidebar ul li a {
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 18px;
}

/* Botón para abrir/cerrar el sidebar */
#toggleButton {
    position: sticky;
    background-color: #868484;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1000;
}
#toggleButton:hover{
    color: rgb(11, 11, 11);
}
#toggleButton.dark-mode {
    background-color: #282626;
    color: #ffffff;
}
/* Contenido principal */
#content {
    align-items: center;
    justify-content: center;
    margin-top: 3cm;
    margin-left: 20px;
    padding: 10px;
    transition: margin-left 0.3s ease;
    width: 100%;
    position: relative;
    height: 100vh;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
#content.active {
    margin-left: 250px;
}
header{
    position: fixed; /* Fija el header en la parte superior */
    top: 0; /* Asegura que esté en la parte superior de la ventana */
    width: 100%; /* Ocupa todo el ancho de la ventana */
    height: 3cm; /* Mantén la altura definida */
    padding-left: 1cm;
    background-color: #ffffff; /* Color de fondo del header */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    margin-left: -30px;
    z-index: 1000; /* Asegura que el header esté por encima de otros elementos */
    &.active {
        position: relative;
        margin-left: 250px; /* Desplaza el contenido hacia la derecha cuando el sidebar está activo */
    }
}
header.dark-mode {
    background-color: #131212;
    color: #ffffff;
    border: 5px solid transparent; /* Borde inicial transparente */
    border-top: none; /* Elimina el borde superior */
    z-index: 1000;
    border-width: 1px;
    animation: borderAnimation 3s linear infinite; /* Aplica la animación al borde */
}

@keyframes borderAnimation {
    0% {
        border-color: #0000ff;
        box-shadow: 0 0 5px #0000ff;
    }
    25% {
        border-color: #0044ff;
        box-shadow: 0 0 10px #0044ff;
    }
    50% {
        border-color: #0088ff;
        box-shadow: 0 0 15px #0088ff;
    }
    75% {
        border-color: #0044ff;
        box-shadow: 0 0 10px #0044ff;
    }
    100% {
        border-color: #0000ff;
        box-shadow: 0 0 5px #0000ff;
    }
}
#welcome{
    margin: auto;
    font-size: auto;
}

img{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    position: relative;
    height: 1.75cm;
    
}
#COLAB{
    height: 2cm;
    margin-right: auto;
}
#Redes_Sociales{
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: auto;
    position: relative;
    width: 50%;
    & img:hover{
        transform: scale(1.05);
        transition: transform 0.3s ease;
    }
}
.image-fader {
    position: relative;
    left: 1.5cm;
    width: 90%;
    height: 75%;
    aspect-ratio: 16 / 9; 
    object-fit: cover;
}

.image-fader img {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;  /* Duración del fade: 1 segundo */
    width: 90%;
    height: 100%;
    object-fit: contain;
}

.image-fader img.active {
    opacity: 1;
}
#TSG-Cuerpo{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    height: 300px;
    width: 100%;
    margin: auto;


}
#TSG-Cuerpo img{
    position:static;
    transition: opacity 1s ease-in-out;  /* Duración del fade: 1 segundo */
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 1cm;
}
#TSG-Cuerpo img:hover{
    transform: scale(1.1);
    transition: transform 0.3s ease;
}
#Texto{
    left: 1cm;
    transition: opacity 1s ease-in-out;  /* Duración del fade: 1 segundo */
    width: 90%;
    height: 100%;
    object-fit: cover;
    margin: 1cm;
    padding: 1cm;

}

/* Estilo del interruptor deslizante */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #a9a5a5;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #429bfa; /* Fondo azul cuando está activo */
}

input:checked + .slider:before {
    transform: translateX(25px);
}
