﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Righteous";
    line-height: 1.6;
}

/*MENU*/

header {
    background-color: #1e2326;
    color: #fff;
    text-decoration:none;
    font-weight:bold;
    font-size: 18px;
}

nav {
    background: #444;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
}

    nav h1 {
        margin: 0;
        font-size: 24px;
        font-weight: bold;
        color: #fff;
        margin-left: 10px;

    }

nav ul {
    list-style: none;
    display: flex;
    justify-content: right;
    margin: 0;
    padding: 0;
}


nav ul :hover {
    color: #ce7a31;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

/*SECCION INICIO*/

.inicio {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/pjjDmmW/istockphoto-1419766496-612x612.jpg");
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
}

.inicio .contenedor-banner {
    padding: 20px;
    background-color: #1e2326;
    max-width: 350px;
    margin: auto;
    text-align: center;
    border-radius: 40px;
}

.inicio .contenedor-banner img {
    margin-top: 40px;
    border: 10px solid#1CB698;
    display: block;
    width: 80%;
    margin: auto;
    border-radius: 100%;
}

.inicio .contenedor-banner h1 {
    margin-top: 40px;
    font-size: 42px;
    font-family: "Righteous";
}

.inicio .contenedor-banner h2 {
    font-size: 30px;
    font-weight: normal;
}

.inicio .contenedor-banner .redes a {
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 3px solid #ce7a31;
    border-radius: 100%;
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}

.inicio .contenedor-banner .redes a:hover {
    background-color: #ce7a31;
}

/* SOBRE MI */
.sobremi {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/pPWXNDD/fondo.jpg");
    background-size: cover;
    height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contenedor-sobremi {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
    font-size: 20px;
    font-family: "Righteous";
}

.sobremi .contenedor-sobremi .redes a {
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 3px solid #ce7a31;
    border-radius: 100%;
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}

    .sobremi .contenedor-sobremi .redes a:hover {
        background-color: #ce7a31;
    }

/*APTITUDES*/

.aptitudes {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/WtbGL46/fondo5.webp");
    background-size: cover;
    height: 100vh;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
}

    .aptitudes .contenido-aptitudes {
        width: 100%;
        max-width: 1200px;
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 15px;
        font-weight: bold;
    }

.lista-aptitudes {
    display: flex;
    justify-content: center;
    padding-top: 50px;
    padding: auto;
}

.logo1 {
    width: 100px;
    padding-top: 20px;
    margin: 15px 100px;
}

.logo2 {
    width: 100px;
    padding-top: 20px;
    margin: 15px 100px;
}

/*CURSOS*/

.cursos {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/5Lbsw0f/fondo6.jpg");
    background-size: cover;
    height: 100vh;
    color: #fff;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    font-size: 30px;
    padding: 50px 20px;
}

.contenido-cursos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 0;
    align-items: flex-start; 
    max-width: 1200px;
}

.contenido-cursos > div {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    height: 500px; 
    text-align: center;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    padding: 15px;
}
.contenido-cursos .titulo-curso {
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
    .contenido-cursos h3 {
        font-size: 20px;
        font-weight: bold;
        line-height: 1.2;
        margin: 0;
    }

.contenido-cursos .imagen-curso {
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.cursoImg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 4px solid #ce7a31;
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}

.contenido-cursos .descripcion-curso {
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
}
.contenido-cursos p {
    font-size: 20px;
    font-family: "Righteous";
    font-weight: normal;
    line-height: 1.3;
    margin: 0;
}
a img:hover {
    transform: scale(1.05);
}

a img:focus, a img:active {
    border-color: #ce7a31;
}

@media (max-width: 1200px) {
    .contenido-cursos {
        gap: 15px;
    }

    .contenido-cursos > div {
        min-width: 250px;
        font-size: 16px;
    }

    .contenido-cursos h3 {
        font-size: 15px;
    }

    .contenido-cursos p {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .contenido-cursos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenido-cursos > div {
        flex: none;
        width: 300px;
    }
}



/*PROYECTOS*/
.proyectos {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/TwC7dJ8/fondo7.webp");
    background-size: cover;
    height: 100vh;
    color: #fff;
    text-align: center;
    display: flex; 
    flex-direction: column; 
    align-items: center;
    justify-content: center; 
    font-size: 30px;
    font-weight: bold;
    padding: 50px 20px;
}

.contenido-projectos {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    margin: 20px auto 0;
    align-items: flex-start; 
    max-width: 1200px;
}

.contenido-projectos > div {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    height: 500px; 
    text-align: center;
    font-size: 20px;
    display: flex;
    flex-direction: column;
    padding: 15px;
   
}

/* CAMBIO: Contenedor del título con altura fija */
.contenido-projectos .titulo-proyecto {
    height: 60px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.contenido-projectos h3 {
    font-size: 20px;
    line-height: 1.2;
    margin: 0;
}

/* CAMBIO: Contenedor de imagen con altura fija */
.contenido-projectos .imagen-proyecto {
    height: 200px; 
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.proyectoImg {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 4px solid #ce7a31;
    border-radius: 10px;
    transition: transform 0.2s, border-color 0.2s;
}


.contenido-projectos .descripcion-proyecto {
    height: 80px; 
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; 
}

.contenido-projectos p {
    font-size: 20px;
    font-family: "Righteous";
    line-height: 1.3;
    margin: 0;
}

a img:hover {
    transform: scale(1.05);
}

a img:focus, a img:active {
    border-color: #ce7a31;
}

@media (max-width: 1200px) {
    .contenido-projectos {
        gap: 15px;
    }

    .contenido-projectos > div {
        min-width: 250px;
        font-size: 16px;
    }

    .contenido-projectos h3 {
        font-size: 15px;
    }

    .contenido-projectos p {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .contenido-projectos {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contenido-projectos > div {
        flex: none;
        width: 300px;
    }
}

/*CONTACTO*/

.contacto {
    background: linear-gradient(to top,rgba(30,35,38,.8),rgba(30,35,38,1)), url("https://i.ibb.co/KmKMXJG/contacto.jpg");
    background-size: cover;
    height: 100vh;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; 
    padding: 30px 0; 
    text-align: center;
    font-size: 30px;
}
    .contacto h1 {
        margin-top: 20px;
        margin-bottom: 20px;
    }

.contenido-contacto {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.contacto p {
    font-size: 20px;
    text-align: center;
}

.contacto input, .contacto textarea {
    width: 70%;
    padding: 10px;
    margin: 1px auto;
    border: 2px solid #ce7a31;
    display: block;
}

.txtCuadro {
    resize: none;
    border: 2px solid #ce7a31;
    font-size: 16px;
    height: 150px;
}

.contacto button,
.contacto .btnEnviar {
    cursor: pointer;
    background-color: transparent;
    border: 2px solid #ce7a31;
    width: fit-content;
    display: inline-block;
    margin: -10px auto 10px auto;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    position: relative;
    z-index: 10;
    overflow: hidden;
    text-decoration: none;
}
.contacto .mensaje-validaciones {
    text-align: center;
    color: #ff5555;
    font-size: 16px;
    margin: -10px auto 0 auto;
    width: 90%;
    line-height: 1.5;
}
.mensaje-validaciones span {
    display: block !important;
    margin-bottom: 2px;
}
.contacto #lblMensaje,
.contacto .lblMensaje {
    display: block;
    margin: 1px auto;
    font-size: 20px;
    font-weight: bold;
    color: #4CAF50;
}


.contacto button .overlay,
.contacto .btnEnviar .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #ce7a31;
    z-index: -1;
    transition: width 1s ease;
}

.contacto button:hover .overlay,
.contacto .btnEnviar:hover .overlay {
    width: 100%;
}

.contacto .btnEnviar i,
.contacto .btnEnviar {
    position: relative;
    z-index: 2;
}
#spinner {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
    color: #ce7a31;
}



/*FOOSTER*/

footer {
    text-align: center;
    padding: 1rem 0;
    background: #333;
    color: #fff;
}

footer a {
    color: #fff;
    display: inline-block;
    text-decoration: none;
    border: 3px solid #ce7a31;
    border-radius: 100%;
    width: 52px;
    height: 52px;
    line-height: 52px;
    margin: 40px 5px;
    font-size: 20px;
    transition: .3s;
}

footer a:hover {
    background-color: #ce7a31;
}

/* Media query para pantallas 1080p y menores */
@media (max-height: 1080px) {
    .contacto {
        justify-content: flex-start;
        padding: 30px 0;
    }

    .contacto h1 {
        margin-top: 1px;
        margin-bottom: 20px;
    }
}

/* Media query para pantallas 2K (1440p) y mayores */
@media (min-height: 1081px) {
    .contacto {
        justify-content: center;
        padding: 50px 0;
    }

    .contacto h1 {
        margin-top: 30px;
        margin-bottom: 30px;
    }
}

/* Media query para pantallas 4K y ultra anchas */
@media (min-height: 1800px) {
    .contacto {
        padding: 100px 0;
    }
}

/* Media Queries para Responsividad */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }
    .contenedor-sobremi {
        padding: 100px 0;
    }
    .aptitudes, .cursos, .proyectos, .contacto {
        height: auto;
        padding: 20px;
    }

    .contenido-aptitudes {
        font-size: 20px;
        padding: 10px;
    }

    .lista-aptitudes {
        flex-direction: column;
        align-items: center;
    }

    .logo1, .logo2 {
        width: 80px;
        margin: 10px 0;
    }

    .contenido-contacto {
        width: 90%;
    }

    .cursoImg, .proyectoImg {
        width: 100%;
        margin: 15px 0;
    }

    .contacto input, .contacto textarea {
        width: 100%;
    }
}
/* Media Queries para Dispositivos Móviles */

/* Tablets y pantallas medianas */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    .contenedor-sobremi {
        padding: 100px 0;
    }

    .aptitudes, .cursos, .proyectos, .contacto {
        height: auto;
        padding: 20px;
    }

    .contenido-aptitudes {
        font-size: 20px;
        padding: 10px;
    }

    .lista-aptitudes {
        flex-direction: column;
        align-items: center;
    }

    .logo1, .logo2 {
        width: 80px;
        margin: 10px 0;
    }

    .contenido-contacto {
        width: 90%;
    }

    .cursoImg, .proyectoImg {
        width: 100%;
        margin: 15px 0;
    }

    .contacto input, .contacto textarea {
        width: 100%;
    }
}
/* Móviles específicamente */
@media (max-width: 480px) {
    /* Ajustes generales */
    body {
        font-size: 14px;
    }

    /* INICIO */
    .inicio {
        padding: 20px 5px;
    }

    .inicio .contenedor-banner {
        max-width: 90%;
        width: 90%;
        padding: 25px 20px;
        margin: 0 auto;
    }

    .inicio .contenedor-banner img {
        width: 60%;
    }

    .inicio .contenedor-banner h1 {
        font-size: 32px;
        margin-top: 25px;
    }

    .inicio .contenedor-banner h2 {
        font-size: 22px;
    }

    .inicio .contenedor-banner .redes a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin: 25px 5px;
        font-size: 20px;
    }

    /* SOBRE MI */
    .sobremi {
        height: auto;
        min-height: 100vh;
        padding: 60px 5px;
    }

    .contenedor-sobremi {
        font-size: 18px;
        padding: 30px 20px;
        width: 90%;
        max-width: 90%;
        text-align: center;
        line-height: 1.8;
    }

    .sobremi h1 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .sobremi .contenedor-sobremi .redes a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin: 30px 5px;
        font-size: 20px;
    }

    /* APTITUDES */
    .aptitudes {
        height: auto;
        min-height: 100vh;
        padding: 60px 5px;
        font-size: 28px;
    }

    .aptitudes h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .aptitudes .contenido-aptitudes {
        width: 90%;
        max-width: 90%;
        padding: 20px;
    }

    .lista-aptitudes {
        padding-top: 30px;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        gap: 20px;
    }

    .lista-aptitudes > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 40%;
        min-width: 120px;
    }

    .lista-aptitudes h3 {
        font-size: 18px;
        margin-bottom: 10px;
        text-align: center;
    }

    .logo1, .logo2 {
        width: 80px;
        margin: 10px auto;
    }

    /* CURSOS */
    .cursos {
        height: auto;
        padding: 60px 5px;
        font-size: 28px;
    }

    .cursos h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .contenido-cursos {
        flex-direction: column;
        gap: 30px;
        width: 90%;
        max-width: 90%;
        padding: 0;
    }

    .contenido-cursos > div {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        padding: 25px 20px;
    }

    .contenido-cursos .titulo-curso {
        height: auto;
        min-height: 60px;
        margin-bottom: 20px;
    }

    .contenido-cursos h3 {
        font-size: 20px;
    }

    .contenido-cursos .imagen-curso {
        height: auto;
        margin-bottom: 20px;
    }

    .cursoImg {
        height: 200px;
        width: 100%;
    }

    .contenido-cursos .descripcion-curso {
        height: auto;
        min-height: 70px;
    }

    .contenido-cursos p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* PROYECTOS */
    .proyectos {
        height: auto;
        padding: 60px 5px;
        font-size: 28px;
    }

    .proyectos h1 {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .contenido-projectos {
        flex-direction: column;
        gap: 30px;
        width: 90%;
        max-width: 90%;
        padding: 0;
    }

    .contenido-projectos > div {
        min-width: 100%;
        max-width: 100%;
        height: auto;
        padding: 25px 20px;
    }

    .contenido-projectos .titulo-proyecto {
        height: auto;
        min-height: 60px;
        margin-bottom: 20px;
    }

    .contenido-projectos h3 {
        font-size: 20px;
    }

    .contenido-projectos .imagen-proyecto {
        height: auto;
        margin-bottom: 20px;
    }

    .proyectoImg {
        height: 200px;
        width: 100%;
    }

    .contenido-projectos .descripcion-proyecto {
        height: auto;
        min-height: 70px;
    }

    .contenido-projectos p {
        font-size: 18px;
        line-height: 1.5;
    }

    /* CONTACTO */
    .contacto {
        height: auto;
        padding: 60px 5px;
        font-size: 28px;
        justify-content: flex-start;
    }

    .contacto h1 {
        font-size: 32px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .contacto p {
        font-size: 18px;
        padding: 0 15px;
        line-height: 1.6;
    }

    .contenido-contacto {
        width: 90%;
        max-width: 90%;
        gap: 10px;
    }

    .contacto input, .contacto textarea {
        width: 100%;
        font-size: 16px;
        padding: 12px;
    }

    .txtCuadro {
        height: 140px;
    }

    .contacto .btnEnviar {
        font-size: 16px;
        padding: 12px 24px;
        margin: 10px auto;
    }

    .contacto .mensaje-validaciones {
        font-size: 15px;
        margin: 10px auto 0 auto;
        width: 100%;
    }

    .contacto #lblMensaje {
        font-size: 18px;
    }

    /* FOOTER */
    footer {
        padding: 40px 5px;
    }

    footer a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        margin: 25px 5px;
        font-size: 20px;
    }

    /* NAVEGACIÓN MÓVIL */
    nav {
        flex-direction: column;
        padding: 15px 0;
    }

    nav h1 {
        font-size: 22px;
        margin: 10px auto;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    nav ul li {
        margin: 10px 0;
    }

    nav ul li a {
        font-size: 16px;
    }
}


/* Móviles muy pequeños */
@media (max-width: 320px) {
    .inicio .contenedor-banner h1 {
        font-size: 24px;
    }

    .inicio .contenedor-banner h2 {
        font-size: 18px;
    }

    .contacto h1, .cursos h1, .proyectos h1, .aptitudes h1, .sobremi h1 {
        font-size: 24px;
    }

    .logo1, .logo2 {
        width: 60px;
        margin: 10px 20px;
    }
}
