/* Reset de márgenes y padding para todos los elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
  }
  
  .lang-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    padding: 5px 10px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
  }
  
  .lang-btn.active {
    background: #7737e5;
    font-weight: bold;
  }
  .line-break {
    display: block;
    line-height: 1.2;
  }
/*Animaciones*/
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/*@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 458px; /* Asegúrate de que coincida con el ancho del texto
    }
}*/

/*@keyframes cursor {
    30% {
        border-color: transparent;
    }
}
*/
@keyframes brillo {
    0% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.5);
    }
    100% {
        filter: brightness(1);
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
    }

    100% {
        transform: scale(1);
    }
}


:root {
    --color-primario: #D3CCE3;
    --color-secundario: #E9E4F0;
    --fondo-transparente: rgba(20, 30, 48, 0.6);
    --sombra: 0 4px 8px rgba(0, 0, 0, 0.2);
    --borde: 2px solid #781ff4;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay oscuro */
    z-index: -1;
}

/* Estilos generales del body */
body {
    background-image: url(img/fondo_aboutme.jpg);  
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    font-family: "Darumadrop One", serif;
    font-weight: 400;
    font-style: normal;
    min-height: 100vh;
    line-height: 1.6;
    animation: fadeIn 0.5s ease-in-out;
    z-index: 1;
    font-display: swap;
    position: relative;
    padding-bottom: 50px; /* Espaciado al final de la página */
}

/* Estilo para el encabezado */
/*.header_text {
    font-family: "DotGothic16", sans-serif;
    font-weight: 400;
    font-size: 50px;
    text-align: center;
    font-style: normal;
  }
*/

.header-container {
    display: flex;
    position: relative;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    /* Espacio entre los elementos */
    max-width: 1100px;
    padding-top: 20px;
    margin: auto;
}

.welcome-center{
    max-width: 400px;
    z-index: 1;
    margin: 0 20px;   
    filter: drop-shadow(0 0 10px #c77dff)
    drop-shadow(0 0 30px #9b5de5);
}

.left-lantern{
    left: 0;
}
.right-lantern{
    right: 0;
}

.left-lantern,
.right-lantern {
    width: 300px;
    height: auto;
    z-index: 2;
    top: 0;
    position : absolute;
}

.left-lantern,
.right-lantern {
    animation: brillo 2s infinite alternate ease-in-out;
}

/* Títulos principales */
h1,
h2 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: "Darumadrop One", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--color-primario);
}

p{
    color: var(--color-secundario);
    font-size: medium;
    
}

.button-53 {
    background-color: #7348b0;
    border: 0 solid #E5E7EB;
    box-sizing: border-box;
    color: #ffffff;
    display: flex;
    font-family: ui-sans-serif,system-ui,-apple-system,system-ui,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    line-height: 1.75rem;
    padding: .75rem 1.65rem;
    text-align: center;
    text-decoration: none #000000 solid;
    text-decoration-thickness: auto;
    width: 100%;
    max-width: 460px;
    position: relative;
    cursor: pointer;
    transform: rotate(-2deg);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    animation: pulse 3s infinite ease-in-out;
  }
  
  .button-53:focus {
    outline: var(--borde);
  }
  
  .button-53:after {
    content: '';
    position: absolute;
    border: 1px solid #000000;
    bottom: 4px;
    left: 4px;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
  }
  .button-53:hover {
    filter: brightness(1.2);
    transform: rotate(0deg) scale(1.03);
}
  .button-53:hover:after {
    bottom: 2px;
    left: 2px;
  }

/* Estilo de la navegación */
#navigator {
    background: var(--fondo-transparente); /* Fondo oscuro con opacidad */
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: 100%;
    min-height: 200px;
    display: flex;
    overflow: hidden;
    flex-direction: column;  /* Ajustar el ancho del menú */
    max-width: 200px;
    overflow-y: auto;
    outline: var(--borde);
}

#navigator h2 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--color-primario);

}

#navigator ul {
    list-style-type: none;
}

#navigator ul li {
    margin-bottom: 8px;
}

#navigator a {
    text-decoration: none;
    color: var(--color-secundario);
    font-weight: bold;
    font-size: 1rem;
    text-decoration: underline; /* Subrayado por defecto */
    transition: color 0.3s ease;
}

#navigator a:hover {
    color: #8e57f6b1;
    background-color: #2f2128;
    text-decoration: underline;
    border-radius: 5px;
    padding: 5px 10px;
}

#navigator a:focus {
    outline: 2px solid #fff;
    background-color: #45335b;
}

/* Estilos para el contenedor principal */
#container {
    width: 100%;
    max-width: 900px; /* Más ancho en pantallas grandes */
    min-width: 10%; /* Se ajusta en móviles */
    margin: 20px auto; /* Centrar */
    display: flex;
    flex-wrap: wrap; /* Permite mejor adaptación */
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    gap: clamp(5px, 2vw, 20px); /* Espaciado dinámico */
}


/* Contenido principal */
main {
    background: var(--fondo-transparente); /* Fondo oscuro con opacidad */
    border-radius: 10px;
    box-shadow: var(--sombra);
    flex: 3; /* Permite que el main tenga más espacio que la sidebar */
    padding: 15px;
    color: var(--color-primario);
    outline: var(--borde);

}

#introduccion{
    margin-bottom: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f48fb1;
}

/* Estilo para los posts */
#posts {
    width: 100%;
    max-width: 200px; /* Ajusta según necesites */
    margin: 15px auto;
    text-align: center;
}

#posts img {
    width: 100%; /* Hace que la imagen se ajuste al contenedor */
    max-width: 600px; /* Ajusta el tamaño máximo */
    height: auto; /* Mantiene la proporción */
    display: block; /* Evita espacios adicionales debajo de la imagen */
    border-radius: 10px; /* Opcional: si quieres bordes redondeados */
}

/* Barra lateral */
#sidebar {
    background: var(--fondo-transparente); /* Fondo oscuro con opacidad */
    border-radius: 12px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    flex: 1; /* La sidebar será más pequeña */
    width: 100%;
    max-width: 250px;
    min-width: 200px;
    padding: 10px;
    outline: var(--borde);

}

#sidebar section {
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f48fb1;
    color: var(--color-primario);
}

.contact-list {
    display: grid; /* Usa CSS Grid para organizar en columnas */
    grid-template-columns: repeat(2, 1fr); /* Dos columnas del mismo tamaño */
    gap: 20px; /* Espaciado entre elementos */
}

.contact {
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px; /* Espaciado entre icono y texto */
    white-space: nowrap; /* Evita que el texto se corte en dos líneas */ 
}

.boton {
    display: flex;
    margin-bottom: 10px; /* Separa los botones 10px en la parte inferior */
    align-items: center;
    width: 100%; /* Permite que se ajuste dentro de la grid */
    padding: 10px 15px;
    background-color: aliceblue;
    border-radius: 50px;
    text-decoration: none;
    color: #2f2128;
    font-size: 15px;
    font-weight: bold;
    position: relative;
    box-shadow: var(--sombra);
    transition: transform 0.2s ease-in-out;
}

.boton:hover {
    transform: scale(1.05);
}

.boton img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}


/* Footer (si lo necesitas) */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
  }
  
  footer a {
    color: #ff6b6b;
    text-decoration: none;
  }
  
  .dev-credit {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
  }

  /* Pantallas pequeñas (móviles) */
  @media (max-width: 600px) {
    .header_text {
        font-size: 2rem;
    }
    
    .header-right{
        display: none;
    }
    .header-container {
        flex-direction: column; /* Cambiar a columna en pantallas pequeñas */
        align-items: center; /* Centrar los elementos */
    }
    .button-53 {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
        width: 100%;
        max-width: 100%;
    }
    #navigator {
        max-width: 100%; /* Ancho completo en móviles */
        padding: 10px; /* Espaciado reducido */
        margin-bottom: 10px; /* Espacio entre el menú y el contenido */
    }
    #navigator.active {
        display: block;
    }

    .menu-toggle {
        display: block;
        background-color: transparent;
        border: none;
        cursor: pointer;
    }
    #container {
        flex-direction: column; /* Cambiar la disposición de los elementos */
        align-items: center; /* Centrar los elementos */
    }
    #sidebar {
        max-width: 100%; /* Hacer que la barra lateral ocupe el 100% */
        min-width: 100%; /* Eliminar el ancho mínimo */
    }
    #posts-image {
        width: 100%;
        max-width: 100%;
        height: auto;
    }
    footer {
        padding: 10px;
        font-size: 0.8rem;
    }
}

/* Pantallas medianas (tablets) */
@media (max-width: 768px) {
    .header_text {
        font-size: 2.5rem;
    }
    .button-53 {
        font-size: 1rem;
    }
    #navigator {
        max-width: 250px; /* Ancho más pequeño para tabletas */
    }
    #container {
        flex-direction: column;
    }
    #container > * {
        flex: 1 1 100%;
      }
    #sidebar {
        max-width: 100%;
        padding: 15px;
    }
}

