/* Estilos generales */ 
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto Mono', monospace; /* Tipografía moderna */
}

body {
    background-color: #0e0f13;
    color: #d1d5db;
    line-height: 1.6;
    margin-left: 80px; /* Espacio para la barra lateral */

    padding-bottom: 2rem;
    overflow-x: hidden; /* Elimina el scroll horizontal innecesario */
}

/* Cabecera y navegación */
header {
    background-color: #16171b;
    padding: 1rem 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.6);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: center; /* Centrar la barra de navegación */

    align-items: center;
    flex-wrap: wrap; /* Permite ajustar en móviles */
}

.logo {
    font-size: 2rem;
    color: #00d9ff;
    margin-left: 2rem;
    font-weight: bold;
}

.logo span {
    color: #ffa400;
}

nav {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 0.5rem;
}

.nav-links li a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links li a:hover {
    color: #00d9ff;
}

/* Sección de contenido */
section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 2rem auto;
}

h2 {
    color: #00d9ff;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2.2rem;
}

/* Sobre mí */
.about-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.profile-image {
    width: 500px;
    height: 140px;
    border-radius: 50%;
    background: url('/img/foto/logo.jpg') center center/cover;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

/* Habilidades */
.skill {
    margin-bottom: 1.5rem;
}

.skills-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
gap:20px;
margin-top:30px;
}

.skill-card{
background:#0d1117;
border:1px solid #00ffff30;
padding:20px;
border-radius:10px;
transition:0.3s;
}

.skill-card:hover{
border-color:#00ffff;
transform:translateY(-5px);
box-shadow:0 0 15px #00ffff40;
}

.skill-card h3{
color:#00ffff;
margin-bottom:10px;
}

/* Proyectos */
/* Contenedor */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Cards estilo skills */
.project-card {
    background: transparent;
    padding: 1.5rem;
    border-left: 3px solid #00d9ff;
    border-radius: 4px;
    transition: all 0.25s ease;
}

/* Título */
.project-card h3 {
    color: #00d9ff;
    margin-bottom: 0.6rem;
}

/* Texto */
.project-card p {
    color: #cfd8dc;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Hover limpio */
.project-card:hover {
    background: rgba(0, 217, 255, 0.05);
    transform: translateX(6px);
}

/* Redes Sociales en el Footer */
footer {
    background-color: #16171b;
    padding: 1.5rem 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a img {
    width: 30px;
    transition: transform 0.3s ease;
}

.social-links a img:hover {
    transform: scale(1.2);
}

/* Barra Lateral */
.sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #16171b;
    padding: 1rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.6);
    z-index: 1000;
    width: 60px;
}

.sidebar a {
    display: block;
    margin: 1rem 0;
    text-align: center;
}

.sidebar img {
    width: 30px;
    transition: transform 0.3s ease;
}

.sidebar img:hover {
    transform: scale(1.2);
}

/* Carrusel de Cursos y Certificaciones */
.certifications-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto; /* Permite deslizar horizontalmente */
    scroll-snap-type: x mandatory; /* Mejora la experiencia de deslizamiento */
    padding: 1rem;
}
.certifications-carousel::-webkit-scrollbar {
    display: none; /* Oculta el scrollbar */
}

.course {
    flex: 0 0 auto; /* Mantiene un tamaño fijo en horizontal */
    scroll-snap-align: center; /* Centra el elemento en scroll */
    text-align: center;
    max-width: 250px;
    margin: 0 auto;
}

.certification {
    flex: 0 0 auto; /* Mantiene un tamaño fijo en horizontal */
    scroll-snap-align: center; /* Centra el elemento en scroll */
    text-align: center;
    max-width: 250px;
    margin: 0 auto;
}

.course img {
    width: 120px;
    height: 170px;
    object-fit: contain; /* mantiene la imagen completa */
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}

/* Ajuste de tamaño estándar para las imágenes de certificaciones */
.certification img {
    width: 150px; /* Tamaño estándar para certificaciones */
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: block;
    margin: 0 auto;
}


/* Botón de Cursos */
.certification button {
    background-color: #292b33;
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.certification button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 217, 255, 0.6);
    color: #00d9ff;
}

.course button {
    background-color: #292b33;
    color: #d1d5db;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.course button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 217, 255, 0.6);
    color: #00d9ff;
}

/* Indicadores de Carrusel */
.carousel-indicators {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #444;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    background-color: #00d9ff;
}

 /* Estilo del contenedor de pantalla completa */
 .fullscreen-overlay {
    display: none;
    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;
}

.fullscreen-overlay img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #d1d5db;
    color: #292b33;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}
/* Media Query para dispositivos móviles */
@media (max-width: 768px) {
    body {
        margin-left: 0; /* Elimina la barra lateral fija */
    }

    header {
        flex-direction: column; /* Apila la cabecera en móvil */
        align-items: center;
    }

    .profile-image {
        width: 100px;
        height: 100px;
    }

    .certifications-carousel {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .course, .certification {
        flex: 0 0 80%; /* Ocupa más espacio en móviles */
    }
}