
/* =========================================
   ESTILOS GENERALES
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
}

body {
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
    color: #222;
}

.seccion-oscura {
    background-color: #1b1b32;
    color: #fff;
    padding: 70px 20px;
}

.seccion-publicidad {
    background-color: #2424a6;
    color: #857a7a;
    padding: 70px 20px;
}
.seccion-clara {
    background-color: #f5f5f7;
    color: #222;
}

.seccion-titulo {
    font-size: 2rem;
    padding: 15px 0;
    text-align: center;
    font-family: "Rubik Dirt", system-ui;
}

.seccion-descripcion {
    font-size: 1rem;
    color: #615151;
    line-height: 1.7;
    text-align: center;
    margin-bottom: 30px;
}

.seccion-etiqueta {
    display: block;
    color: #7faee0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 10px;
}

.texto-negro {
    color: #111;
}

.texto-blanco {
    color: #fff;
}


/* =========================================
   BARRA DE NAVEGACIÓN
========================================= */

.navbar {
    background-color: #f5f5f7;
    font-size: 15px;
    padding: 0.8rem 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand img {
    object-fit: contain;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #333;
    margin: 0 7px;
    transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover {
    color: #2a5e99;
}


/* =========================================
   SECCIÓN HERO
========================================= */

.hero {
    background-color: #cadef3;
    min-height: 450px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    text-align: center;
    padding: 2rem 1rem;
}

.hero-principal {
    width: 100%;
    padding: 2rem 1rem;
}

.imagen-principal {
    width: 150px;
    height: 150px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 1rem;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-principal h1 {
    font-size: 1.7rem;
    color: #333;
    margin-bottom: 1rem;
    font-family: "Rubik Dirt", system-ui;
}

.hero-principal h2 {
    font-size: 1.1rem;
    color: #615151;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.btn-conocer {
    display: inline-block;
    background-color: #2a5e99;
    color: white;
    text-decoration: none;
    padding: 11px 23px;
    border-radius: 7px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-conocer:hover {
    color: white;
    background-color: #1b1b32;
    transform: translateY(-3px);
}


/* =========================================
   IMAGEN INFERIOR
========================================= */

.hero-inferior {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.imagen-inferior {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
}


/* =========================================
   PRESENTACIÓN PROFESIONAL
========================================= */

.sobre-mi .contenedor {
    max-width: 850px;
    text-align: justify;
    margin: 0 auto;
}

.sobre-mi .seccion-etiqueta {
    text-align: center;
}

.seccion-texto {
    font-size: 1rem;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 20px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}


/* =========================================
   ÁREAS DE ESPECIALIDAD
========================================= */

.experiencia {
    padding: 60px 30px;
    text-align: center;
}

.experiencia-titulo {
    font-size: 20px;
    font-weight: bold;
    margin: 15px 0;
    font-family: "Roboto", Arial, sans-serif;
}

.experiencia img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin: 10px auto;
}

.experiencia .columna {
    padding: 25px 20px;
    border: 1px solid #dedede;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;

    font-size: 14px;
    line-height: 1.7;

    background-color: white;

    transition: all 0.3s ease;
}

.experiencia .columna:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #2a5e99;
    background-color: #2a5e99;
    color: white;
}

.experiencia .badge {
    margin-top: 10px;
}


/* =========================================
   GALERÍA DE PROYECTOS
========================================= */

.proyectos-recientes {
    padding: 60px 25px;
    text-align: center;
}

.proyectos-contenedor {
    padding-top: 25px;
}

.proyecto {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 10px;
    background-color: #1b1b32;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.proyecto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0;
    margin: 0;

    transition: transform 0.4s ease,
                opacity 0.4s ease;
}

.proyecto-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    background-color: rgba(27, 27, 50, 0.88);
    color: white;

    opacity: 0;
    transition: opacity 0.3s ease;
}

.proyecto-overlay p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
    font-family: "Roboto", Arial, sans-serif;
}

.proyecto:hover img {
    transform: scale(1.08);
}

.proyecto:hover .proyecto-overlay {
    opacity: 1;
}


/* =========================================
   BOTÓN CURRÍCULUM
========================================= */

.contenedor-cv {
    margin-top: 40px;
    text-align: center;
}

.btn-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    padding: 14px 25px;

    background-color: #2a5e99;
    color: white;

    border-radius: 8px;
    text-decoration: none;

    font-size: 16px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.btn-cv:hover {
    background-color: #1b1b32;
    color: white;
    transform: translateY(-3px);
}


/* =========================================
   PUBLICACIONES TÉCNICAS
========================================= */

.publicaciones-tecnicas {
    padding: 70px 20px;
    background-color: #ffffff;
}

.publicaciones-encabezado {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 45px;
}

.publicaciones-etiqueta {
    display: inline-block;
    color: #2a5e99;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.publicaciones-tecnicas .seccion-titulo {
    color: #1b1b32;
    margin-bottom: 12px;
}

.publicaciones-descripcion {
    font-size: 16px;
    line-height: 1.7;
    color: #626262;
}


/* TARJETAS */

.articulo-card {
    display: flex;
    flex-direction: column;

    height: 100%;

    background-color: #ffffff;
    border: 1px solid #e5e8ed;
    border-radius: 12px;
    overflow: hidden;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);

    transition: transform 0.3s ease,
                box-shadow 0.3s ease;
}

.articulo-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.13);
}


/* IMÁGENES DE ARTÍCULOS */

.articulo-imagen {
    width: 100%;
    height: 210px;
    overflow: hidden;
    background-color: #e9edf2;
}

.articulo-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    transition: transform 0.4s ease;
}

.articulo-card:hover .articulo-imagen img {
    transform: scale(1.06);
}


/* CONTENIDO DE TARJETAS */

.articulo-contenido {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 25px;
}

.articulo-categoria {
    color: #2a5e99;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.articulo-contenido h3 {
    color: #1b1b32;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 14px;
}

.articulo-contenido p {
    color: #626262;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
}


/* BOTONES DE ARTÍCULOS */

.btn-articulo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: fit-content;

    margin-top: auto;

    padding: 11px 20px;

    color: white;
    background-color: #2a5e99;

    border-radius: 7px;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    transition: background-color 0.25s ease,
                transform 0.25s ease;
}

.btn-articulo:hover {
    color: white;
    background-color: #1b1b32;
    transform: translateX(3px);
}


/* FIRMA PROFESIONAL */

.publicaciones-firma {
    text-align: center;
    margin-top: 45px;
    padding-top: 25px;
    border-top: 1px solid #e5e8ed;
}

.publicaciones-firma p {
    margin-bottom: 60px;
    ;
    color: #333;
    font-size: 15px;
}

.publicaciones-firma span {
    color: #777;
    font-size: 13px;
}


/* =========================================
   CONTACTO
========================================= */

.contacto {
    text-align: center;
    padding-top: 15;
}

.contacto .seccion-texto {
    max-width: 750px;
    margin: 20px auto;
    text-align: center;
}

.contacto p {
    line-height: 1.7;
}


/* =========================================
   PIE DE PÁGINA
========================================= */

.footer {
    background-color: #111122;
    color: #d4d4d4;
    text-align: center;
    padding: 25px 15px;
    font-size: 13px;
}

.footer p {
    margin: 5px 0;
}


/* =========================================
   TABLETS
========================================= */

@media screen and (max-width: 768px) {

    .navbar {
        padding: 0.7rem 1rem;
    }

    .hero {
        padding: 1rem;
    }

    .hero-principal {
        padding: 2rem 0.5rem;
    }

    .sobre-mi.seccion-oscura {
        padding: 50px 25px;
    }

    .proyecto {
        height: 250px;
    }

    .articulo-imagen {
        height: 200px;
    }

}


/* =========================================
   TELÉFONOS CELULARES
========================================= */

@media screen and (max-width: 576px) {

    .seccion-titulo {
        font-size: 1.6rem;
    }

    .imagen-principal {
        width: 130px;
        height: 130px;
    }

    .hero-principal h1 {
        font-size: 1.3rem;
    }

    .hero-principal h2 {
        font-size: 1rem;
    }

    .imagen-inferior {
        max-width: 400px;
    }

    .hero-inferior {
        padding: 0.5rem;
    }

    .sobre-mi.seccion-oscura {
        padding: 45px 20px;
    }

    .experiencia {
        padding: 45px 15px;
    }

    .proyectos-recientes {
        padding: 45px 15px;
    }

    .proyecto {
        height: 230px;
    }

    .publicaciones-tecnicas {
        padding: 50px 15px;
    }

    .articulo-imagen {
        height: 220px;
    }

    .articulo-contenido {
        padding: 20px;
    }

    .btn-cv {
        font-size: 14px;
    }

}

/* =========================================
   BOTONES DE CONTACTO
========================================= */

.contacto-botones {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 35px;
}

.btn-contacto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-width: 250px;
    padding: 15px 22px;

    color: white;
    text-decoration: none;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 600;

    transition: all 0.3s ease;
}

.btn-contacto i {
    font-size: 23px;
}

/* Correo electrónico */

.btn-email {
    background-color: #2a5e99;
}

.btn-email:hover {
    background-color: #17416f;
    color: white;
    transform: translateY(-4px);
}

/* WhatsApp */

.btn-whatsapp {
    background-color: #25D366;
    color: #ffffff;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    color: white;
    transform: translateY(-4px);
}

/* Adaptación a celulares */

@media screen and (max-width: 576px) {

    .contacto-botones {
        flex-direction: column;
        gap: 15px;
    }

    .btn-contacto {
        width: 100%;
        max-width: 320px;
    }

}

.rectangulo{
    width: 60%;
    border-radius: 15px;
    margin-bottom: 5rem;
    margin-top: -7em;
    padding-top: 15px;

    background-color: #2a5e99;
}