* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden; /* 🔥 Bloquea el scroll horizontal */
}

#sobre-mi {
    color: #ffffff; /* Texto blanco */
    padding: 120px 20px;
    text-align: center;
}

#sobre-mi .container {
    max-width: 1400px;
    margin: 0 auto;
}

#sobre-mi h1 {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
}

#sobre-mi h2 {
    font-size: 30px;
    font-weight: 500;
    margin-top: 40px;
    text-align: center;
    color: #dddddd;
}

#sobre-mi h3 {
    font-size: 24px;
    font-weight: 500;
    margin-left: -1250px;
    text-align: center;
    margin-top: 10px; /* Reducir margen superior */
    margin-bottom: 5px; /* Evitar separación con el siguiente elemento */
}

@media (max-width: 1456px) {
    #sobre-mi h3 {
        margin-left: 0px;
        text-align: left;
    }
}

#sobre-mi h4 {
    font-size: 24px;
    font-weight: 500;
    text-align: left;
    margin-top: 10px;
    margin-bottom: 5px;
}

#sobre-mi p {
    font-size: 16px;
    line-height: 1.6; /* Reducir espaciado entre líneas */
    margin-top: 5px; /* Evitar separación grande */
    margin-bottom: 10px;
    text-align: justify;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#sobre-mi ul {
    list-style-type: none;
    padding: 0;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

#sobre-mi ul li {
    font-size: 16px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    text-align: left;
}

#sobre-mi ul li::before {
    content: "•"; /* Punto estilo viñeta */
    position: absolute;
    left: 0;
    font-size: 18px;
    font-weight: bold;
}

#sobre-mi a {
    text-decoration: none;
    font-weight: bold;
    color: #287b8a;
    transition: color 0.3s ease;
}

#sobre-mi strong {
    color: #ffffff;
}

#sobre-mi em {
    font-style: italic;
    color: #cccccc;
}

/* Estilos base */
.sobre-mi-item {
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: border 0.3s ease-in-out;
    border-radius: 10px;
    padding: 20px;
}

/* Estilo de la cruz */
.close-button {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.grid-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    gap: 8px;
    width: 100%;
    max-width: 950px;
    aspect-ratio: 4 / 3;
    margin: auto;
}

.grid-item {
    position: relative;
    background-color: rgba(24, 24, 24, 0.6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
}

/* Ajustamos la distribución del grid */
.item-1 { grid-column: 1 / 3; grid-row: 1 / 3; }
.item-2 { grid-column: 3 / 5; grid-row: 1 / 2; }
.item-3 { grid-column: 3 / 4; grid-row: 2 / 3; }
.item-4 { grid-column: 4 / 5; grid-row: 2 / 4; }
.item-5 { grid-column: 1 / 3; grid-row: 3 / 4; }
.item-6 { grid-column: 3 / 4; grid-row: 3 / 4; }


.areas-trabajo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: left;
}

.icons-items-1 {
    position: absolute; /* Cambiar de absolute a relative */
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px !important;
    margin-top: 20px; /* Espaciado después del texto */
}

/* Tamaño de iconos más grande */
.icons-items-1 img {
    width: calc(100px + 5vw); /* Base de 30px + 5% del ancho de la pantalla */
    height: auto;
}

/* Si la pantalla es menor a 650px, los iconos van debajo del texto */
@media (max-width: 650px) {
    .icons-items-1 {
        position: relative; 
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px; /* Espacio entre el texto y los iconos */
    }

}

/* Si la pantalla es mayor a 650px, los iconos estarán al final del overlay */
@media (min-width: 651px) {
    .icons-items-1 {
        position: absolute;
        bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

/* Contenedor del overlay dentro del grid */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
    z-index: 100;
    overflow: hidden;
    display: none; /* Se muestra cuando se activa el overlay */
    transition: all 0.5s ease-in-out;
}

#overlay-content-item-1,
#overlay-content-item-2,
#overlay-content-item-5  {
    display: none; /* Ocultar los overlays al inicio */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* Contenedor del contenido desplazable */
#overlay-content-item-1 {
    /* Ocupa todo el espacio del overlay, excepto donde se dejan márgenes para los elementos fijos */
    position: relative;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto; /* Barra de desplazamiento vertical si es necesario */
    padding-bottom: 80px;
}

/* Estilos para el contenido */
#overlay-content-item-1 h2 {
    font-size: 30px;
    margin: 0 0 10px 0;
    text-align: left;
}

/* Estilos para el contenido */
#overlay-content-item-2 h2 {
    font-size: 30px;
    margin: 20px 0 10px 0;
    text-align: left;
}

#overlay-content-item-1 p {
    font-size: 20px;
    margin: 10px 0;
}

#overlay-content-item-1 h2,
#overlay-content-item-1 p {
    transition: font-size 0.3s ease-in-out;
}

#overlay-content-item-1 .icons-items-1 img {
    width: 160px;  /* 🔥 Aumenta el tamaño base de los íconos */
    height: auto;
    transition: transform 0.2s ease-in-out;
}

/* 🔥 Efecto hover para que los íconos resalten */
#overlay-content-item-1 .icons-items-1 img:hover {
    transform: scale(1.1);
}

@media (max-width: 1000px) {
    #overlay-content-item-1 .icons-items-1 img {
        width: 100px; /* 🔥 Reducir un poco el tamaño en pantallas más chicas */
    }
}

@media (max-width: 768px) {
    #overlay-content-item-1 .icons-items-1 img {
        width: 48px; /* 🔥 Reducir un poco el tamaño en pantallas más chicas */
    }
}

/* Personalización de la barra de desplazamiento del contenido */
#overlay-content::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-::-webkit-scrollbar-thumb {
    background-color: #3498db;
    border-radius: 10px;
}

#overlay-content::-webkit-scrollbar-track {
    background-color: #2c3e50;
    border-radius: 10px;
}

#overlay-content-item-2 {
    position: relative;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 0px;
}

/* Personalizar la barra de desplazamiento */
#overlay-content-item-2::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-item-2::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#overlay-content-item-2::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#overlay-content-item-2::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}


/* BOTÓN DE CERRAR FIJO EN LA ESQUINA SUPERIOR DERECHA DEL OVERLAY */
.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 101;
    transition: transform 0.3s ease;
}

.close-button:hover {
    transform: scale(1.2);
}


/* ICONOS FIJOS EN LA PARTE INFERIOR DEL OVERLAY */
.icons-items-1 {
    position: absolute;
    margin: auto auto;
    left: 0;
    width: 100%; /* Ocupan todo el ancho del overlay (es decir, del grid) */
    display: flex;
    justify-content: center; /* Centra los iconos horizontalmente */
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    z-index: 101;
}

.icons-items-1 img {
    width: 40px;
    height: auto;
    transition: transform 0.3s ease;
}

.icons-items-1 img:hover {
    transform: scale(1.2);
}


/* Ejemplo de media queries para ajustar el tamaño del texto (opcional) */
@media (max-width: 1020px) {
    #overlay-content-item-1 h2 { font-size: 26px; }
    #overlay-content-item-1 p { font-size: 18px; }
}

@media (max-width: 858px) {
    #overlay-content-item-1 h2 { font-size: 24px; }
    #overlay-content-item-1 p { font-size: 16px; }
}

@media (max-width: 711px) {
    #overlay-content-item-1 h2 { font-size: 22px; }
    #overlay-content-item-1 p { font-size: 14px; }
}

@media (max-width: 480px) {
    #overlay-content-item-1 h2 { font-size: 20px; }
    #overlay-content-item-1 p { font-size: 12px; }
    #overlay-content-item-1 { padding: 10px; padding-bottom: 80px; }
}

#overlay-content-item-2 h2 {
    font-size: clamp(18px, 2vw, 24px); /* Ajuste de tamaño responsivo */
    margin-top: -5px; /* Eliminamos el margen extra */
    margin-bottom: 10px; /* Espacio entre h2 y el párrafo */
}

#overlay-content-item-2 p {
    font-size: clamp(12px, 1.8vw, 16px);
    line-height: 1.5;
    margin-bottom: 40px; /* Espacio entre el texto y los íconos */
    padding-right: 15px; /* Espacio extra en el lado derecho */
}

.icons-items-2 {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(50px, 1fr)) !important; /* 4 columnas flexibles */
    grid-template-rows: repeat(2, auto) !important; /* 2 filas */
    gap: 8px !important; /* Reducimos el espacio entre íconos */
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Evitar que los íconos se salgan del contenedor */
    margin: 50px auto;
}

.icons-items-2 img {
    max-width: 80px; /* Evita que los íconos sean demasiado grandes */
    height: auto;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.icons-items-2 img[alt="GitHub"],
.icons-items-2 img[alt="Discord"] {
    filter: invert(1); /* Cambia los colores oscuros a claros */
}

.icons-items-2 img:hover {
    transform: scale(1.2);
}

/* Si la pantalla es menor a 650px, los íconos se colocan después del texto */
@media (max-width: 650px) {
    .icons-items-2 {
        position: relative;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 20px;
    }
}

/* Si la pantalla es mayor a 650px, los íconos se quedan fijos en la parte inferior */
@media (min-width: 651px) {
    .icons-items-2 {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        display: flex;
        justify-content: center;
    }
}

#overlay-content-item-5 p {
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.6;
    margin: 20px 10px 20px -10px; /* Reducimos el margen izquierdo */
    padding: 10px; /* Espaciado interno */
    text-align: justify; /* Justifica el texto para mejor legibilidad */
}

#overlay-content-item-5 {
    position: relative;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    max-height: 70vh;
    overflow: hidden; /* 🔥 Ocultar scroll por defecto */
    padding-right: 0px;
}

@media (max-width: 950px) {
    #overlay-content-item-5 {
        overflow-y: auto; /* 🔥 Solo aparece el scroll cuando la pantalla es menor a 950px */
    }
}

/* Personalizar la barra de desplazamiento igual a item-2 */
#overlay-content-item-5::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-item-5::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#overlay-content-item-5::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#overlay-content-item-5::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: auto; /* Empuja los iconos hacia abajo */
    padding-bottom: 20px;
    width: 100%;
}

/* Estilos para los botones de los iconos */
.contact-btn {
    text-decoration: none;
    color: white; /* Mantener los iconos blancos */
    transition: transform 0.2s ease-in-out;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 Ahora el ícono FA se agranda correctamente */
.contact-btn i {
    font-size: 64px; /* Aumenta el tamaño del icono */
    transition: transform 0.2s ease-in-out;
}

/* Aumentar tamaño al pasar el mouse */
.contact-btn:hover i {
    transform: scale(1.2);
}

/* Animación mejorada del tooltip */
.contact-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Aparece desde abajo */
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 16px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
}

/* Aparece con efecto de desplazamiento */
.contact-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Se mueve suavemente arriba */
}

/* Contenedor de los botones */
#overlay-content-item-5 .contact-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    justify-items: center;
    align-items: center; /* 🔥 Asegura que los íconos de abajo estén alineados */
    gap: 10px; /* Espacio entre los iconos */
    width: 100%;
    padding-bottom: 20px;
}

/* Asegurar que los dos iconos de abajo estén nivelados */
#overlay-content-item-5 .contact-btn:nth-child(4),
#overlay-content-item-5 .contact-btn:nth-child(5) {
    grid-row: 2; /* 🔥 Ambos iconos estarán en la segunda fila */
    align-self: center; /* 🔥 Se alinean al centro de su fila */
}

/* Asegurar que el tooltip siempre se vea */
#overlay-content-item-5 .contact-btn {
    position: relative;
    overflow: visible; /* Evita que el tooltip se corte */
}

/* Estilos del tooltip */
#overlay-content-item-5 .contact-btn::after {
    content: attr(title);
    position: absolute;
    bottom: 120%; /* Lo subimos un poco más */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* Hacer que el tooltip aparezca suavemente */
#overlay-content-item-5 .contact-btn:hover::after {
    opacity: 1;
}

.contact-btn {
    font-size: 18px; /* Aumentar tamaño de la fuente */
    padding: 15px 25px; /* Aumentar padding */
    border-radius: 8px; /* Bordes más suaves */
}

/* 🔹 Configuración del scroll: en pantallas grandes, sin barra de desplazamiento */
#overlay-content-item-3 {
    position: relative;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    padding-right: 15px;
    display: none;
    flex-direction: column;
    gap: 15px;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#overlay-content-item-3 h2 {
    position: relative;
    top: -30px; /* Ajusta este valor según lo necesites */
    font-size: 24px;
}

/* 🔹 Mostrar con una animación más fluida */
#overlay-content-item-3.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

/* 🔹 Mostrar scroll solo en pantallas menores a 930px */
@media (max-width: 930px) {
    #overlay-content-item-3 {
        max-height: 70vh; /* 🔥 Permitimos el scroll */
        overflow-y: auto;
    }

    /* 🔥 Barra de desplazamiento personalizada */
    #overlay-content-item-3::-webkit-scrollbar {
        width: 8px;
    }

    #overlay-content-item-3::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 10px;
    }

    #overlay-content-item-3::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 10px;
    }

    #overlay-content-item-3::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.8);
    }
}

/* 🔹 Personalizar la barra de desplazamiento igual a item-2 y item-5 */
#overlay-content-item-3::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-item-3::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#overlay-content-item-3::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#overlay-content-item-3::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}
/* 🔹 Alinear el título "Mis Procesos de Trabajo" */
#overlay-content-item-3 h2 {
    text-align: left;
    margin-left: 20px;
    font-size: 24px;
}

/* 🔹 Diseño de los cuadrados */
.process-step {
    display: flex; /* 🔥 Asegurar que sean visibles */
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: transform 0.2s ease-in-out, background 0.3s ease-in-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 🔥 Efecto hover */
.process-step:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.15);
}

/* 🔹 Ajustes para los íconos */
.process-step i {
    font-size: 28px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔹 Diseño del texto dentro de los cuadros */
.process-step p {
    font-size: 16px;
    margin: 0;
    flex: 1;
}

/* 🔹 Ajuste responsivo - Mantener íconos al lado del texto */
@media (max-width: 768px) {
    #overlay-content-item-3 {
        max-height: 60vh;
        padding-right: 10px;
    }

    .process-step {
        flex-direction: row; /* 🔥 Se mantiene en línea, no se pone en columna */
        align-items: center;
        padding: 12px;
    }

    .process-step i {
        font-size: 24px;
        width: 36px;
        height: 36px;
    }

    .process-step p {
        font-size: 14px;
    }
}

#overlay-content-item-6 {
    position: relative;
    padding: 20px;
    color: white;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto; /* Añade scroll vertical si el contenido excede la altura */
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

#overlay-content-item-6 h2 {
    text-align: left;
    margin-top: -5px;
    font-size: 24px;
}

#overlay-content-item-6 p {
    margin-left: 0px;
}

#overlay-content-item-6.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#component-list {
    list-style: none; /* Elimina el estilo de lista por defecto */
    padding: 0; /* Elimina el padding por defecto */
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Dos columnas verticales */
    gap: 20px;
}

.component-item {
    display: flex;
    align-items: center; /* Alinea verticalmente los elementos */
    gap: 10px; /* Espacio entre el ícono y el texto */
    margin-bottom: 20px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: background-color 0.3s;
}

.gpu-icon {
    width: 30px;
    height: auto;
    color: white !important;
    filter: invert(100000%); /* Invierte los colores para que sea blanco */
}

.component-item i {
    font-size: 24px; /* Tamaño del ícono */
    color: white;
}

.component-info h3 {
    margin: 0;
    font-size: 18px; /* Tamaño del título */
    font-weight: bold;
    color: white;
}

.component-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: white;
}

/* Personalizar la barra de desplazamiento */
#overlay-content-item-6::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-item-6::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#overlay-content-item-6::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#overlay-content-item-6::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    #component-list {
        grid-template-columns: 1fr; /* Una sola columna en pantallas pequeñas */
    }

    .component-item {
        flex-direction: row; /* Asegura que los elementos estén en fila */
        align-items: center; /* Alinea verticalmente los elementos */
    }

    .component-item i {
        margin-bottom: 0; /* Elimina el margen adicional */
    }
}

#overlay-content-item-4 {
    text-align: left;
    color: white;
    padding: 20px;
    display: none;
    flex-direction: column; /* 🔹 Asegura que los elementos se acomoden en columna */
    overflow-y: auto; /* 🔹 Habilita el scroll vertical */
    width: 100%;
    height: 100%;
    width: 100%; /* 🔹 Asegura que use todo el espacio disponible */
    box-sizing: border-box;
}

#overlay-content-item-4.active {
    display: flex;
    opacity: 1;
}

/* 🔹 Ajuste del título */
#overlay-content-item-4 h2 {
    font-size: 24px;
    font-weight: 700;
    text-align: left; /* 🔹 Si lo quieres centrado, sino usa left */
    margin-top: 10px;
}
  
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 10px; /* 🔹 Reducimos el padding para subirlo más */
    flex-grow: 1; /* 🔹 Se expande automáticamente para ocupar el espacio disponible */
}

/* 🔹 Línea gris */
.timeline::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 40px; /* 🔹 Ajustamos la posición para subirlo */
    width: 4px;
    height: calc(100% - 50px); /* 🔹 Asegura que llegue hasta el final sin cortar */
    background: #bbbbbb;
    opacity: 40%;
}

/* 🔹 Personalizar la barra de desplazamiento */
#overlay-content-item-4::-webkit-scrollbar {
    width: 8px;
}

#overlay-content-item-4::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

#overlay-content-item-4::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

#overlay-content-item-4::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    margin-left: 20px;
}



/* 🔹 Puntos violetas */
.dot {
    width: 16px;
    height: 16px;
    background: #7d149d;
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 40%;
    transform: translateY(-50%);
}

/* 🔹 Título alineado con el punto */
.title {
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 100px;
    padding-top: 60px; /* 🔹 Lo baja un poco más */
}

/* 🔹 Título alineado con el punto */
.title1 {
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 100px;
    padding-top: 75px; /* 🔹 Lo baja un poco más */
}

.title2 {
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    margin: 100px;
    padding-top: 90px; /* 🔹 Lo baja un poco más */
}


/* 🔹 Fecha con margen izquierdo de 10px */
.date {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    text-align: left;
    margin-left: 10px;
}

/* 🔹 Nueva descripción con diseño más limpio */
.description {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    max-width: 450px;
    top: 100px;
    margin-left: 60px; /* Más margen para separarla */
    padding: 12px 18px;
    background: rgba(125, 20, 157, 0.15); /* Color más sutil */
    border-radius: 6px;
    border-left: 5px solid #7d149d; /* Borde lateral más grueso */
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2); /* Sombra más suave */
    transition: all 0.3s ease-in-out;
}

/* 🔹 Efecto hover más sutil */
.description:hover {
    background: rgba(125, 20, 157, 0.25);
    transform: translateX(5px);
    box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}

/* 🔹 Asegurar que el scroll sea responsive */
@media (max-width: 768px) {
    #overlay-content-item-4 {
        max-height: 65vh; /* 🔹 Reduce altura en pantallas pequeñas */
        padding: 15px; /* 🔹 Ajusta el padding */
    }

    .timeline {
        padding: 5px;
    }
}

/* 🔹 Reducir tamaño de la timeline cuando el ancho sea menor a 468px */
@media (max-width: 468px) {
    .timeline {
        max-width: 95%; /* 🔹 Reduce el tamaño a un 95% */
        margin-left: 5px; /* 🔹 Ajusta el margen a la izquierda */
    }

    #overlay-content-item-4 {
        padding: 10px; /* 🔹 Menos padding para pantallas pequeñas */
    }

    #overlay-content-item-4 h2 {
        font-size: 15px; /* 🔹 Reduce el tamaño del título */
    }
}
