body{margin-top:20px;}


body {
    background: linear-gradient(-45deg, #050505, #0a0f1f, #071a07, #050505);
    background-size: 400% 400%;
    animation: backgroundAnimation 10s ease infinite;
    color: #ffffff;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Evita scroll horizontal innecesario */
}

@keyframes backgroundAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mantiene los bits en el fondo y no interfiere con el contenido */
#bitCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Se queda en el fondo */
    pointer-events: none; /* No bloquea interacciones */
}



.timeline {
    border-left: 3px solid #b6b909b2;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
    background: rgba(238, 235, 46, 0.705);
    margin: 0 auto;
    letter-spacing: 0.2px;
    position: relative;
    line-height: 1.4em;
    font-size: 1.03em;
    padding: 50px;
    list-style: none;
    text-align: left;
    max-width: 40%;
}

@media (max-width: 767px) {
    .timeline {
        max-width: 98%;
        padding: 25px;
    }
}

.timeline h1 {
    font-weight: 300;
    font-size: 1.4em;
}

.timeline h2,
.timeline h3 {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.timeline .event {
    border-bottom: 1px dashed #dfe791;
    padding-bottom: 25px;
    margin-bottom: 25px;
    position: relative;
}

@media (max-width: 767px) {
    .timeline .event {
        padding-top: 30px;
    }
}

.timeline .event:last-of-type {
    padding-bottom: 0;
    margin-bottom: 0;
    border: none;
}

.timeline .event:before,
.timeline .event:after {
    position: absolute;
    display: block;
    top: 0;
}

.timeline .event:before {
    left: -207px;
    content: attr(data-date);
    text-align: right;
    font-weight: 100;
    font-size: 0.9em;
    min-width: 120px;
}

@media (max-width: 767px) {
    .timeline .event:before {
        left: 0px;
        text-align: left;
    }
}

.timeline .event:after {
    -webkit-box-shadow: 0 0 0 3px #d8b806;
    box-shadow: 0 0 0 3px #c9ad13;
    left: -55.8px;
    border-radius: 50%;
    height: 9px;
    width: 9px;
    content: "";
    top: 5px;
}

@media (max-width: 767px) {
    .timeline .event:after {
        left: -31.8px;
    }
}

.rtl .timeline {
    border-left: 0;
    text-align: right;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    border-right: 3px solid #dfc800;
}

.rtl .timeline .event::before {
    left: 0;
    right: -170px;
}

.rtl .timeline .event::after {
    left: 0;
    right: -55.8px;
}
/* Personalizar el fondo y la apariencia del tooltip */
.tooltip-inner {
    background-color: rgb(255, 238, 0); /* Fondo blanco semitransparente */
    color: #000000; /* Color de texto más oscuro */
    border-radius: 5px; /* Bordes redondeados */
    padding: 8px 12px; /* Espaciado dentro del tooltip */
    font-size: 14px; /* Tamaño de la fuente */
}

/* Personalizar el triángulo que apunta al elemento */
.tooltip.bs-tooltip-top .tooltip-arrow {
    border-top-color: rgba(255, 255, 255, 0.9); /* Color del triángulo */
}

.tooltip {
    color: #ff7300d7 !important; /* Texto blanco */
    font-size: 14px; /* Tamaño del texto del tooltip */
    opacity: 1 !important; /* Asegúrate de que sea visible */
    display: inline; /* Asegura que el tooltip se mantenga en la misma línea */

}

.card {
    background-color: transparent !important; /* Fondo semi-transparente */
    color: #ffffff; /* Hace que el texto sea blanco */
    border-radius: 10px; /* Bordes redondeados para mejor estilo */
    padding: 15px; /* Espaciado interno */
}

.list-group {
    background: rgba(255, 255, 255, 0.1) !important; /* Fondo translúcido */
    backdrop-filter: blur(10px); /* Difumina el fondo */
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde tenue */
}

.list-group-item {
    background: rgba(255, 255, 255, 0.05) !important; /* Fondo leve */
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.timeline {
    background: rgba(255, 255, 255, 0.1); /* Fondo translúcido */
    backdrop-filter: blur(10px); /* Efecto de vidrio esmerilado */
    border-radius: 10px; /* Bordes redondeados */
    padding: 15px; /* Espaciado interno */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde tenue */
}

.timeline .event {
    background: rgba(255, 255, 255, 0.05); /* Un fondo sutil */
    backdrop-filter: blur(8px); /* Menos desenfoque que el contenedor principal */
    padding: 10px;
    border-radius: 8px;
    color: #ffffff; /* Asegura que el texto sea legible */
    border: 1px solid rgba(255, 255, 255, 0.2);
}



.timeline .event::before {
    transition: transform 0.3s ease-in-out;
}

.timeline .event:hover::before {
    transform: scale(1.3); /* Agranda el punto al pasar el mouse */
}




/* Estilo del contenedor con efecto Glassmorphism */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    margin: 50px auto;
    width: 85%;
    color: #ffffff;
}

/* Título con efecto binario */
.binary-title {
    font-size: 3rem;
    font-weight: bold;
    letter-spacing: 3px;
    color: #00ff00;
    text-shadow: 0px 0px 10px #00ff00;
    animation: flicker 1.5s infinite alternate;
}

/* Animación de parpadeo tipo Matrix */
@keyframes flicker {
    0% { opacity: 1; }
    100% { opacity: 0.8; }
}

/* Subtítulo */
.subtitle {
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0px 0px 5px rgba(255, 255, 255, 0.5);
}

/* Descripción de la sección */
.section-description {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Diseño de las cualidades en una cuadrícula */
.qualities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
    padding: 20px;
    justify-items: center;
}

/* Diseño de cada cualidad */
.quality {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
}

/* Animación al pasar el mouse */
.quality:hover {
    transform: translateY(-5px);
    box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.5);
}

/* Iconos futuristas */
.quality i {
    font-size: 2.5rem;
    color: #00ff00;
    margin-bottom: 10px;
}

/* Última cualidad "Resiliencia" centrada */
.resilience {
    grid-column: 1 / -1; /* Ocupa toda la fila */
    justify-self: center;
}





/* Botón flotante para volver arriba */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 255, 0, 0.8); /* Color verde Matrix */
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0px 0px 10px rgba(0, 255, 0, 0.5);
    display: none; /* Oculto por defecto */
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Efecto hover */
.scroll-top-btn:hover {
    background: rgba(0, 255, 0, 1);
    box-shadow: 0px 0px 15px rgba(0, 255, 0, 0.8);
}

/* Animación de entrada */
.scroll-top-btn.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}






/* Diseño de la sección sobre mí */
.about-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Imagen de perfil */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.5);
}

/* Texto */
.text-content {
    max-width: 700px;
    text-align: left;
}

/* Asegurar que el texto no se vea sobre los bits */
.text-content p {
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 8px;
}






/* Barra superior estilo ventana de Windows */
.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 10px;
    left: 15px;
}

/* Botones de la ventana */
.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

/* Colores de los botones */
.close { background: #ff5f57; } /* Rojo (cerrar) */
.minimize { background: #ffbd2e; } /* Amarillo (minimizar) */
.maximize { background: #28c940; } /* Verde (maximizar) */

/* Efecto hover para los botones */
.window-btn:hover {
    opacity: 0.8;
}












/* Botones de contacto */
.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Botón de LinkedIn */
.btn-linkedin, .btn-email {
    text-decoration: none;
    font-size: 1.2rem;
    padding: 12px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-linkedin {
    background: #0077b5;
    color: white;
    box-shadow: 0px 0px 10px rgba(0, 119, 181, 0.5);
}

.btn-email {
    background: #ffbd2e;
    color: black;
    box-shadow: 0px 0px 10px rgba(255, 189, 46, 0.5);
}

/* Efecto hover */
.btn-linkedin:hover {
    background: #005582;
    box-shadow: 0px 0px 15px rgba(0, 119, 181, 0.8);
}

.btn-email:hover {
    background: #e6a600;
    box-shadow: 0px 0px 15px rgba(255, 189, 46, 0.8);
}

/* Íconos dentro de los botones */
.contact-buttons i {
    font-size: 1.5rem;
}


/* Imágenes dentro del timeline en círculo */
.timeline-img {
    width: 40%; /* Tamaño más pequeño */
    border-radius: 30%; /* Hace que la imagen sea circular */
    object-fit: cover; /* Evita deformaciones */
    margin-top: 10px;
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hover en imágenes para un efecto sutil */
.timeline-img:hover {
    transform: scale(1.1);
    transition: 0.3s ease-in-out;
}

/* Ajustar las tarjetas de la línea de tiempo */
.timeline-card {
    text-align: center; /* Centra la imagen y el texto */
}


/* Animación inicial de los eventos */
.event {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

/* Activar animación al hacer scroll */
.event.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

