/* General Styles */
a {
    color: #ffcc00; /* Amarillo azafrán */
    text-decoration: none; /* Sin subrayado por defecto */
    transition: color 0.3s ease, text-decoration 0.3s ease; /* Transición suave */
}

a:hover {
    text-decoration: underline; /* Subrayado solo en hover */
    color: #ffcc00; /* Mantener el color en hover */
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6; /* Ajusta el valor según prefieras */
    background-color: #1b1b1b;
    color: #eaeaea;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

p {
    margin-bottom: 1.5em; /* Ajusta el valor según prefieras */
}

.container {
    width: 80%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.resumen {
    text-align: justify;

    
}

.container.narrow {
    max-width: 800px; /* Making sections narrower */
}

.main-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #2a2a2a;
    color: #eaeaea;
}

.main-header .profile-pic {
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 0px;
}

nav ul {
    display: flex;
    justify-content: center;
    padding: 0;
    list-style: none;
    background-color: #333;
    margin: 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #eaeaea;
    font-weight: 700;
    padding: 15px 0;
    display: block;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #ffcc00;
}

.section {
    padding: 60px 20px;
    text-align: center;
}

h1 {
    font-family: 'Julius Sans One', sans-serif;
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 3rem;
    text-align:center;
}


h2 {
    font-family: 'Julius Sans One', sans-serif;
    color: #ffcc00;
    margin-bottom: 20px;
    font-size: 3rem;
    text-align:center;
}

/* Adjusting bullet points to use arrows */
ul li {
    text-align: left;
    list-style: none;
    padding-left: 1.5em;
    position: relative;
}

ul li::before {
    content: "\f061"; /* Font Awesome arrow right */
    font-family: "FontAwesome";
    position: absolute;
    left: 0;
    color: #ffcc00;
}

/* Estilo para la grilla del blog */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Grilla más compacta */
    gap: 20px;
}

/* Estilo para las cajas del blog */
.blog-post.box {
    background-color: #2a2a2a; /* Fondo de la caja */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra ligera */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post.box:hover {
    transform: translateY(-5px); /* Efecto de hover */
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.5); /* Más sombra al hacer hover */
}

/* Contenedor de la imagen destacada */
.featured-image-container {
    width: 100%;
    padding-top: 100%; /* Esto hace que la altura sea proporcional al ancho, cuadrada */
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.featured-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ajustar la imagen para que siempre sea cuadrada */
    border-radius: 10px;
}

/* Estilo del botón Leer más */
.btn-read-more {
    display: inline-block;
    background-color: #ffcc00;
    color: #1b1b1b;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}

.btn-read-more:hover {
    background-color: #eaeaea;
    color: #1b1b1b;
}

/* Form styles */
form input, form textarea {
    width: 70%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

form button {
    background-color: #ffcc00;
    color: #1b1b1b;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #eaeaea;
    color: #1b1b1b;
}

/* Footer and theme toggle */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #2a2a2a;
    color: #eaeaea;
}

#toggle-theme {
    background-color: #ffcc00;
    color: #1b1b1b;
    padding: 10px 20px;
    border: none;
    cursor: hand;
    border-radius: 5px;
}

/* Light mode styles - elegant, grays and off-white */
.light-mode {
    background-color: #f5f5f5; /* Off-white background */
    color: #333333; /* Dark gray text */
}

.light-mode nav ul li a {
    color: #333333;
}

.light-mode nav ul li a:hover {
    color: #666666;
}

.light-mode .main-header {
    background-color: #eaeaea;
    color: #333333;
}

.light-mode footer {
    background-color: #eaeaea;
    color: #333333;
}

.light-mode resumen {
    background-color: #eaeaea;
    color: #333333;
}

/* Corrección de la alineación en la línea de tiempo */
.timeline-container {
    position: relative;
    margin: 0 auto;
    padding: 20px 0;
    width: 80%;
    max-width: 1000px;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 80px; /* Aumentar para ajustar mejor la distancia con la línea */
    transition: transform 0.3s ease-in-out;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 150px; /* Ajuste del alineamiento de la línea */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #ccc; /* Línea vertical */
}

.timeline-date {
    position: absolute;
    left: 0;
    top: 0;
    color: #ffcc00;
    font-family: 'Julius Sans One', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em; /* Mayor separación entre letras */
    margin-right: 20px; /* Ajuste de espacio para las fechas */
}

.timeline-content {
    padding-left: 80px; /* Ajuste de espacio del contenido */
}

.timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; /* Tamaño adecuado para resaltar el título */
    margin-bottom: 0px!important;
}

.certs {
    text-align: justify;
    color: #ffcc00;
    font-family: 'Julius Sans One', sans-serif; 
    font-size: 1.2rem; /* Tamaño adecuado para resaltar el título */
    margin-bottom: 0px!important;
}

.timeline-content p {
    margin-bottom: 1px;
    font-size: 1rem;
    line-height: 1.5; /* Mejorar la legibilidad con mayor interlineado */
}

/* Efectos de "fade-in" */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* Resaltado cuando se hace scroll */
.timeline-item.active {
    transform: scale(1.05);
}

.timeline-item.active::before {
    background-color: #ffcc00; /* Cambia el color de la línea cuando esté activa */
}
/* Estilo general para los iconos sociales */
.social-icons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 15px; /* Espacio entre los iconos */
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background-color: #2a2a2a; /* Fondo circular en modo oscuro */
    color: #ffcc00; /* Color amarillo azafrán */
    text-align: center;
    font-size: 1.2rem;
    transition: background-color 0.3s, color 0.3s;
}

.social-icons a:hover {
    background-color: #ffcc00; /* Fondo amarillo en hover */
    color: #1b1b1b; /* Texto oscuro en hover */
}

/* Modo claro para los iconos sociales */
.light-mode .social-icons a {
    background-color: #eaeaea; /* Fondo claro en modo light */
    color: #333; /* Color oscuro en modo light */
}

.light-mode .social-icons a:hover {
    background-color: #333; /* Fondo oscuro en hover en modo light */
    color: #ffcc00; /* Texto amarillo en hover */
}
/* Estilo para los mensajes */
#form-messages {
    margin-bottom: 20px;
    padding: 15px;
    font-size: 1.2rem;
    color: #1b1b1b;
    background-color: #ffcc00; /* Color azafrán */
    border-radius: 5px;
    display: none; /* Oculto por defecto */
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

#form-messages.success {
    color: #1b1b1b;
}

#form-messages.error {
    background-color: #ff6666; /* Color de error */
    color: white;
}

/* Para el desvanecimiento */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}
/* General Styles for the Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Grilla 3x3 en escritorio */
    gap: 20px;
    margin-top: 20px;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr; /* Una columna en móviles */
    }
}

.project-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.project-item.hidden {
    display: none;
}

.project-item:hover {
    transform: scale(1.05); /* Animación hover */
}

.project-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.project-year {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 204, 0, 0.9);
    color: #1b1b1b;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
}

.project-details {
    text-align: center;
    margin-top: 10px;
}

.project-details h3 {
    font-size: 1.2rem;
}

.project-details p {
    font-size: 0.8rem;
    color: #777;
}

/* Botón Cargar Más */

.btn-ver-mas {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.btn-ver-mas:hover {
    background-color: #e0b800;
}

.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.btn-load-more {
    padding: 10px 20px;
    background-color: #ffcc00;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.btn-load-more:hover {
    background-color: #e0b800;
}

/* Lightbox */
.lightbox {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    margin-bottom: 20px;
    border-radius: 10px;
}

#lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Flechas de navegación */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    color: white;
    font-size: 60px;
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
    padding: 10px;
}

#prev {
    left: 30px;
}

#next {
    right: 30px;
}

.lightbox-arrow:hover {
    color: #ffcc00;
}

/* Descripción del proyecto en Lightbox */
.lightbox-caption {
    color: #fff;
    font-size: 18px;
    text-align: center;
    padding: 10px;
}

