/* CONFIGURACIÓN BÁSICA PARA UN ARCHIVO CSS */

/* 1. TIPOGRAFÍAS */
@import url('[https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap](https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap)');

/* 2. ICONOS */
@import url("[https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css](https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css)");

/* ESTILOS GENERALES */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Lato", sans-serif;
}

p,
a,
button,
li,
label,
input,
select,
textarea,
span {
    font-family: "Lato", sans-serif;
}

/* 4. VARIABLES */
:root {
    --primary-color: #00B4D8;
    --secundary-color: #0A192F;
    --tertiary-color: #112240;
    --text-color: #fff;
    --constrast-color: #8892B0;
    --text-size: 16px;
    --title-1: 20px;
    --title-2: 40px;
}

/* 5. DESKTOP */
header {
    width: 100%;
    position: relative;
}

header .nav-edit {
    background: var(--tertiary-color) !important;
    position: fixed;
    width: 100%;
    z-index: 999;
}

header .nav-edit img {
    width: 150px;
}

#navbarNav {
    margin-left: auto;
    /* hace que se pegue a la derecha */
}

#navbarNav a {
    color: var(--text-color);
    margin-left: 20px;
    /* separación entre items */
}

#navbarNav a:hover {
    color: var(--primary-color);
    transition: 0.3s ease;
}

/* HERO */
#hero {
    padding-top: 7rem;
    width: 100%;
    background: var(--secundary-color);
}

#hero .cont-info {
    padding: 170px 0 0 0;
}

#hero .cont-info h3 {
    font-size: var(--title-1);
    color: var(--primary-color);
    font-weight: 700;
}

#hero .cont-info h1 {
    font-size: var(--title-2);
    color: var(--text-color);
    font-weight: 700;
}

#hero .cont-info span {
    color: var(--primary-color);
}

#hero .cont-info h2 {
    font-size: 32px;
    color: var(--text-color);
    font-weight: 700;
}

#hero .cont-info p {
    padding-right: 220px;
    color: var(--text-color);
    font-size: var(--text-size);
}

/* BOTÓN CONTACTO */
#hero .cont-contact .contact {
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
}

#hero .cont-contact .contact:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: scale(1.05);
}

/* ICONOS SOCIALES */
.cont-as ul {
    display: flex;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.cont-as ul li a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tertiary-color);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
    transition: 0.3s ease;
}

.cont-as ul li a:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
    transform: scale(1.1);
}

/* IMAGEN Y MARCO */
#hero .cont-img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#hero .cont-img::before {
    content: "";
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border: 2px solid var(--primary-color);
    z-index: 0;
}

#hero .cont-img img {
    width: 400px;
    padding: 40px 0 60px 0;
    position: relative;
    z-index: 1;
}

/* MAIN  */

/* SECTION PROFILE */
#profile {
    width: 100%;
    position: relative;
    background: var(--tertiary-color);
}

#profile .cont-foto::before {
    content: "";
    position: absolute;
    top: 165px;
    left: 23%;
    transform: translateX(-50%);
    width: 320px;
    height: 320px;
    border: 2px solid var(--primary-color);
    z-index: 0;
}

#profile .cont-foto .foto-cesar {
    width: 90%;
    position: relative;
    z-index: 1;
    padding-top: 20px;
    padding-bottom: 40px;
}

#profile .cont-info {
    padding-top: 200px;
    /* background: red; */
}

#profile .cont-info h2 {
    color: var(--text-color);
    font-size: var(--title-2);
    font-weight: 700;
    margin-bottom: 20px;
    padding: 0 150px 0 150px;
}

#profile .cont-info p {
    color: var(--text-color);
    font-size: 21px;
    padding: 0 150px 0 150px;
}

.cont-info p span {
    color: var(--primary-color);
}

/* SECTION SKILLS */

#skills {
    width: 100%;
    position: relative;
    background: var(--secundary-color);
}

#skills h2 {
    color: var(--text-color);
    text-align: center;
    padding-top: 70px;
    font-weight: 700;
}

#skills .habilidades-slider {
    display: flex;
}

#skills .habilidades-slider .habilidad {
    text-align: center;
    padding: 50px 0 50px 0;
    position: relative;
}


.habilidades-slider .habilidad img {
    width: 100px;
    margin: 0 auto;
}

.habilidades-slider .habilidad .nivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #00b4d8ad;
    color: var(--secundary-color);
    border-radius: 50%;
    position: absolute;
    top: 110px;
    right: 180px;
}

.habilidades-slider .habilidad .nivel-aparte {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #00b4d8ad;
    color: var(--secundary-color);
    border-radius: 50%;
    position: absolute;
    top: 110px;
    right: 170px;
}

.habilidades-slider .habilidad p {
    color: var(--text-color);
    padding-top: 20px;
    font-size: 22px;
}

/* SECTION PORTAFOLIO */

#portafolio {
    width: 100%;
    position: relative;
    text-align: center;
    background: var(--tertiary-color);
    padding: 120px;
}

#portafolio h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 20px;
}

#portafolio h2 {
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 20px;
}

#parrafoDeArriba {
    color: var(--text-color);
    font-size: 20px;
}

#portafolio hr {
    border: 2px solid var(--primary-color);
    opacity: 0.7;
    margin: 0.8rem auto;
    width: 20%;
}

#portafolio .slider-proyectos {
    padding: 0 20px;
}

#portafolio .slider-proyectos .tarjeta {
    margin: 0 12px;
}

.slider-proyectos .tarjeta .cont-foto {
    width: 100%;
    height: 220px;
    border-radius: 0.375rem;
}

.tarjeta .cont-foto img {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: 100%;
    border-radius: 0.375rem;
    object-fit: contain;
}

.slider-proyectos .tarjeta .cont-info {
    background: var(--constrast-color);
    text-align: start;
}

.tarjeta .cont-info h5 {
    color: var(--secundary-color);
    font-weight: 700;
}

.tarjeta .cont-info p {
    color: var(--secundary-color);
}

.tarjeta .cont-info .button {
    background-color: var(--primary-color);
    color: var(--secundary-color);
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
    transition: transform 0.2s ease;
}

.tarjeta .cont-info .button:hover {
    background-color: var(--secundary-color);
    transform: scale(1.05);
    color: var(--primary-color);
}

/* SECTION EDUCACIÓN */

#educacion {
    width: 100%;
    position: relative;
    background: var(--secundary-color);
    padding: 120px;
}

#educacion .titulo {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    font-size: var(--title-1);
}

#educacion h2 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 40px;
}

#educacion .experiencia h3 {
    color: var(--text-color);
    font-size: 20px;
}

#educacion .experiencia hr {
    border: 1px solid var(--text-color);
}


.cont-experiencia .info h4 {
    color: var(--constrast-color);
    font-size: 20px;
}

.cont-experiencia .info h5 {
    color: var(--text-color);
    font-size: 20px;
}

.cont-experiencia span {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

#educacion .educacion h3 {
    color: var(--text-color);
    font-size: 20px;
}

#educacion .educacion hr {
    border: 1px solid var(--text-color);
}

.cont-educacion .info h4 {
    color: var(--constrast-color);
    font-size: 20px;
}

.cont-educacion .info h5 {
    color: var(--text-color);
    font-size: 20px;
}

.cont-educacion span {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 40px;
    border: 1px solid var(--primary-color);
    color: var(--text-color);
}

#hobbies {
    width: 100%;
    position: relative;
    background: var(--tertiary-color);
    padding: 120px;
    text-align: center;
}

#hobbies .img-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--tertiary-color);
    color: var(--secundary-color);
    box-shadow: -2px 5px 0 0 var(--secundary-color);
}

#hobbies .about-me {
    color: var(--text-color);
    margin-top: 20px;
    font-weight: 700;
}

#hobbies .custom-hr {
    width: 15%;
    margin: 0.6rem auto;
    border: 1px solid var(--primary-color);
    opacity: 0.7;
}

#hobbies .custom-hr-2 {
    width: 9%;
    margin: 0.6rem auto;
    border: 1px solid var(--primary-color);
    opacity: 0.7;
}

#hobbies .parrafo {
    color: var(--text-color);
    text-align: start;
    font-size: 20px;
    margin-bottom: 60px;
    margin-top: 20px;
}

#hobbies .parrafo .cesar {
    color: var(--primary-color);
}

#hobbies .cont-personal h2 {
    color: var(--text-color);
    text-align: start;
    margin-bottom: 60px;
    font-size: 30px;
}

.cont-personal .cont-info-personal .claves {
    text-align: start;
}

.cont-personal .cont-info-personal-2 .claves {
    display: none;
}

.cont-info-personal .claves h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.cont-personal .cont-info-personal .valores {
    text-align: start;
}

.cont-info-personal .valores p {
    font-size: 20px;
    color: var(--text-color);
}

#hobbies .cont-hobbies {
    text-align: start;
}

#hobbies .cont-hobbies h2 {
    font-size: 30px;
    color: var(--text-color);
    margin-bottom: 60px;
}

.cont-hobbies .cont-img span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    background: var(--secundary-color);
    transition: 0.5s;
    transform: 0.5s;
}

.cont-hobbies .cont-img span:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* 6. ESTILOS RESPONSIVE TABLET */

/* 📱 Tablets verticales (iPad Mini, Galaxy Tab en vertical) */
@media screen and (min-width: 768px) and (max-width: 899px) {

    .navbar-toggler {
        background-color: #fff;
    }

    #hero {
        padding-bottom: 5vh;
        /* antes 70px */
    }

    #hero .cont-info h1,
    #hero .cont-info h2 {
        font-size: 1.875rem;
        /* antes 30px */
    }

    #hero .cont-info p {
        padding-right: 12vw;
        /* antes 129px */
        margin-bottom: 3vh;
        /* antes 30px */
    }

    #hero .fila-botones {
        display: block;
    }

    #hero .cont-as {
        padding-top: 3vh;
        /* antes 30px */
    }

    #hero .cont-img::before {
        height: 20vh;
        top: 15vh;
        /* antes 184px */
        width: 25vw;
        /* antes 198px */
    }

    #hero .cont-img img {
        width: 100%;
        height: auto;
    }

    #profile .cont-foto .foto-cesar {
        width: 100%;
        top: 12vh !important;
        /* antes 123px */
    }

    #profile .cont-foto::before {
        top: 21vh !important;
        height: 19vh;
        left: 24%;
    }

    #profile .cont-info h2 {
        font-size: 1.875rem;
        /* antes 30px */
    }

    .habilidades-slider .habilidad .nivel {
        right: 12vh !important;
    }

    .habilidades-slider .habilidad .nivel-aparte {
        right: 11vh !important;
    }

    .cont-hobbies .cont-img {
        justify-content: center;
    }

    /*  Personal info alterna */
    .cont-personal .cont-info-personal {
        display: none !important;
    }

    .cont-personal .cont-info-personal-2 {
        display: block !important;
    }

    .cont-personal .cont-info-personal-2 .claves {
        display: block !important;
    }

    .cont-personal .cont-info-personal-2 .claves h4 {
        font-size: 1.25rem;
        /* antes 20px */
        color: var(--primary-color);
    }

    .cont-personal .cont-info-personal-2 .claves p {
        font-size: 1.25rem;
        /* antes 20px */
        color: var(--text-color);
    }

    .cont-hobbies .cont-img span {
        width: 8vh !important;
        height: 8vh !important;
    }

}



@media screen and (min-width:768px) and (max-width:1080px) {
    #hero .cont-info {
        padding: 9vh 0 0 2vw;
    }

    #navbarNav a {
        font-size: 12px;
    }

    #profile .cont-foto .foto-cesar {
        width: 100%;
        top: 0;
    }

    #profile .cont-foto::before {
        width: 25vw;
        top: 9vh;
    }

    #profile .cont-info {
        padding-top: 12vh;
    }

    #profile .cont-info h2 {
        padding: 0 3vw;
    }

    #profile .cont-info p {
        padding: 0 3vw 5vh 3vw;
    }

    .habilidades-slider .habilidad .nivel {
        right: 10vw;
    }

    .habilidades-slider .habilidad .nivel-aparte {
        right: 9vw;
    }

    #portafolio {
        padding: 10vh 8vw;
    }

    #educacion {
        padding: 10vh 8vw;
    }

    #educacion h2 {
        margin-bottom: 7vh;
    }

    #hobbies {
        padding: 10vh 8vw;
    }

    #hobbies .parrafo {
        text-align: center;
    }

    #hobbies .cont-personal h2 {
        text-align: center;
    }

    /*  Personal info alterna */
    .cont-personal .cont-info-personal {
        display: none !important;
    }

    .cont-personal .cont-info-personal-2 {
        display: block !important;
    }

    .cont-personal .cont-info-personal-2 .claves {
        display: block !important;
    }

    .cont-personal .cont-info-personal-2 .claves h4 {
        font-size: 1.25rem;
        /* antes 20px */
        color: var(--primary-color);
    }

    .cont-personal .cont-info-personal-2 .claves p {
        font-size: 1.25rem;
        /* antes 20px */
        color: var(--text-color);
    }

    #hobbies .cont-hobbies h2 {
        text-align: center;
    }

    .cont-hobbies .cont-img {
        justify-content: center;
    }

    .cont-hobbies .cont-img span {
        width: 8vw;
        height: 8vw;
    }
}


/* 7. ESTILOS RESPONSIVE SMARTPHONE */

@media screen and (min-width: 320px) and (max-width: 767px) {

    html,
    body {
        overflow-x: hidden;
    }



    /* === NAVBAR === */
    .navbar-toggler {
        background-color: #fff;
    }

    /* === SECCIÓN HERO === */
    #hero .cont-info {
        padding: 8rem 5% 0 5%;
        /* 130px → 8rem (más escalable en móviles) */
    }

    #hero .cont-info h3,
    #hero .cont-info h1,
    #hero .cont-info h2 {
        text-align: center;
        margin-bottom: 2.5rem;
        /* 40px → 2.5rem */
    }

    #hero .cont-info p {
        padding: 0 5%;
        /* 20px → 5% */
        text-align: center;
        margin-bottom: 2.5rem;
        /* 40px → 2.5rem */
    }

    #hero .cont-contact .contact {
        position: relative;
        left: 32%;
        /* 125px → relativo al ancho del contenedor */
        /* 👈 Esto centra mejor en pantallas pequeñas */
    }

    .cont-as ul {
        padding-left: 14%;
        /* 70px → relativo */
        margin-top: 2.5rem;
        /* 40px → 2.5rem */
    }

    #hero .cont-img img {
        width: 100%;
        height: auto;
        /* Asegura proporción */
    }

    /* === PERFIL === */
    #profile .cont-foto .foto-cesar {
        width: 100%;
        top: 0;
    }

    #profile .cont-foto::before {
        width: 60%;
        /* 236px → 60% del contenedor */
        top: 20vh;
        /* 140px → 20% de la altura visible */
        left: 50%;
        transform: translateX(-50%);
        /* Centrado horizontal */
    }

    #profile .cont-info {
        padding-top: 7.5rem;
        /* 120px → 7.5rem */
    }

    #profile .cont-info h2 {
        padding: 0 5%;
        /* 20px → 5% */
        text-align: center;
    }

    #profile .cont-info p {
        padding: 0 5% 2rem 5%;
        /* 20px → 5% */
        text-align: center;
    }

    /* === HABILIDADES === */
    .habilidades-slider .habilidad .nivel {
        right: 35%;
        /* 140px → relativo al contenedor */
    }

    .habilidades-slider .habilidad .nivel-aparte {
        right: 32%;
        /* 128px → relativo */
    }

    /* === PORTAFOLIO === */
    #portafolio {
        padding: 2.5rem;
        /* 40px → 2.5rem */
    }

    /* === EDUCACIÓN === */
    #educacion {
        padding: 2.5rem;
        /* 40px → 2.5rem */
    }

    #educacion h2 {
        margin-bottom: 4.5rem;
        /* 70px → 4.5rem */
    }

    #educacion .educacion h3 {
        margin-top: 3.75rem;
        /* 60px → 3.75rem */
    }

    /* === HOBBIES === */
    #hobbies {
        padding: 1.25rem 0 3.125rem 0;
        /* 20px → 1.25rem */
    }

    .cont-personal .cont-info-personal {
        display: none !important;
    }

    .cont-personal .cont-info-personal .claves {
        padding-bottom: 2.5rem;
    }

    .cont-personal .cont-info-personal-2 {
        justify-content: center !important;
    }

    .cont-personal .cont-info-personal-2 .claves {
        display: block;
    }

    .cont-personal .cont-info-personal-2 .claves h4 {
        font-size: 20px;
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .cont-personal .cont-info-personal-2 .claves p {
        font-size: 20px;
        color: var(--text-color);
    }

    #hobbies .parrafo,
    #hobbies .cont-personal h2,
    .cont-personal .cont-info-personal .claves,
    .cont-personal .cont-info-personal .valores {
        text-align: center;
    }

    .cont-personal .cont-info-personal .claves h4 {
        font-size: 14px;
    }

    .cont-personal .cont-info-personal .valores p {
        font-size: 14px;
    }

    #hobbies .cont-hobbies h2 {
        text-align: center;
        margin-top: 6.25rem;
        /* 100px → 6.25rem */
    }

    .cont-hobbies .cont-img {
        justify-content: center;
    }

    .cont-hobbies .cont-img span {
        width: 32vw;
        height: 20vw;
    }
}