* {
    box-sizing: border-box;
    font-family: "Segoe UI";
    scroll-behavior: smooth;
    margin: 0;
}

:root {
    --bg2-color:#0026ff;
}

body {
    width: 100vw;
    overflow-x: hidden;
}

/* 1. Estilos para la barra superior (Header) */
.navbar {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0; /* Una línea sutil para separar */
    z-index: 10;
}

.nav-links a {
    margin-left: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.nav-links {
    list-style-type: none;
    display: flex;
}

.btn-download {
    background-color: var(--bg2-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 4px;
}

/* 2. Estilos para el cuerpo (Hero Section) */
.hero-container {
    height: calc(100vh - 80px); /* Ocupa el resto de la pantalla */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 10%;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #1a1a1a;
}

.hero-text p {
    font-size: 1.2rem;
    color: #777;
    line-height: 1.6;
}

/* 3. Espacio para el gráfico (donde irán tus rectángulos azules) */
.hero-graphic {
    width: 40%;
    background-image: url("./Imagenes/descarga.png");
    background-size: cover;
    background-position: center;
    background-repeat:no-repeat ;
    z-index: -10;
}

.hero-graphic img {
    z-index: -10;
    width: 100%;
    height: 90vh;
}

.sobre-mi {
    color: #222;
    font-weight: 600;
    max-width:450px ;
    padding: 10px 0;
}

/*MAIN SECTION*/

.main {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.proyectos-section, .section {
    border-top: 1px solid var(--bg2-color);
    width: 90%;
    padding: 20px 0px;
}

.proyectos-section {
    border-bottom: 1px solid var(--bg2-color);
}

.experiencia-titulo, .titulos {
    color: var(--bg2-color);
    font-size: 1.4em;
    margin: 0;
    padding: 10px;
    font-weight: 500;
}

.lista-proyectos {
    list-style-type: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.proyecto-titulo {
    padding: 10px 0;
    font-weight: 900;
    font-size: 1.3em;
    color: var(--bg2-color);
}

.servicios-section {
    width: 100%;
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.titulo-seccion {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--bg2-color);
}

.contenedor-servicios {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; 
    max-width: 1200px;
    margin: 0 auto;
}

.servicio-card {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.servicio-card:hover {
    transform: translateY(-10px);
}

.icono {
    font-size: 3rem;
    margin-bottom: 15px;
}

.servicio-card h3 {
    margin-bottom: 15px;
    color: var(--bg2-color);
}

.servicio-card p {
    color: #666;
    line-height: 1.6;
}

.education-list {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.education-list li {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 12px;
    position: relative;
    padding-left: 20px; 
}

/* El punto azul para que combine con el resto de tu portafolio */
.education-list li::before {
    content: "•";
    color: #0026ff;
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -1em;
}

/* Sección de certificado*/
.certificado-container {
    display: flex;  /* Esto pone el texto y la imagen en línea */
    gap: 2rem;      /* Espacio entre el texto y la imagen */
    align-items: center;  /* Centra verticalmente el contenido */
    margin: 2rem 0;
    flex-wrap: wrap;      /* Para que en móvil se pongan uno debajo del otro */
}

.container-certificado__texto {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 2;  /* El texto ocupa 2 partes del espacio */
    min-width: 250px;
}

.container-certificado__img {
    flex: 1;  /* La imagen ocupa 1 parte del espacio */
    text-align: center;
    min-width: 200px;
}

.img-certificado {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
}

.p-certificado {
    color: #4a4a4a;
    font-size: 1.1rem;
}

.strong-certificado {
    color: #000;
}

.img-certificado:hover {
    transform: scale(1.02);  /* Efecto sutil al pasar el ratón */
}

.formacion-btn{
    color: var(--bg2-color);
    font-size: 1.225em;
    font-weight: 500;
}

.skills-lista {
    margin-bottom: 30px 
}

.listas-skills h3 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.listas-skills ul {
    list-style: none; 
    padding-left: 0;
}

.listas-skills ul li {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: #4a4a4a;
    display: flex;
    align-items: center;
}

.listas-skills ul li::before {
    content: "";
    width: 8px;
    height: 8px;
    background-color: var(--bg2-color);
    border-radius: 50%;
    margin-right: 15px;
    display: inline-block;
}

.skill-item {
    font-weight: 500;
}

.contacto-section {
    border-bottom: 1px solid var(--bg2-color);
}

.contacto-container {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.subtitulo {
    font-size: 2em;
    padding: 10px 0;
    font-weight: 400;
}

.numero, .correo {
    font-size: 1.2em;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #0026ff; /* Tu azul característico */
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 38, 255, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #001ecc; /* Un azul un poco más oscuro al pasar el mouse */
}

.confidencial {
    background-color: var(--bg2-color);
    color: white;
    border-radius: 50px;
    padding: 2.5px;
}

/*FOOTER SECTION*/

.footer {
    padding: 50px 40px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p-footer {
    font-size: 1.5em;
}

.link-footer {
    font-size: 1.5em;
    color: #333;
}

/*MEDIAS QUERIES*/

@media (max-width: 768px) {
    .hero-graphic, .navbar, .link-footer {
        display: none;
    }

    .titulos {
        font-size: 1.5em;
    }

    .tecnologia {
        display: none;
    }
}

@media (max-width: 768px) {
    .certificado-container {
        flex-direction: column;
    }
    
    .container-certificado__img {
        order: 2;  /* En móvil la imagen se pone debajo */
    }
    
    .container-certificado__texto {
        order: 1;  /* El texto se pone arriba */
    }
}