@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ========== ENLACES ========== */
.link-none {
    text-decoration: none;
    color: #000;
}
.link-none:hover {
    color: #ff5080;
}

/* ========== SECCIÓN INICIO ========== */
#inicio {
    background: linear-gradient(rgba(0, 0, 0, .7), rgba(0, 0, 0, .7)), url("img/fondo-inicio.jpg");
    background-size: cover;
    background-position: center center;
    height: 100vh;
}

#inicio .contenido header {
    background-color: rgba(0, 0, 0, .8);
    position: fixed;
    width: 100%;
    z-index: 100;
    top: 0;
}

#inicio .contenido header .contenido-header {
    max-width: 1100px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

#inicio .contenido header .contenido-header h1 {
    text-align: center;
    color: #ff5080;
}

#inicio .contenido header .contenido-header nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

#inicio .contenido header .contenido-header nav ul li a {
    text-decoration: none;
    color: #fff;
    margin: 0 12px;
    font-weight: 400;
    transition: .5s;
}
#inicio .contenido header .contenido-header nav ul li a:hover,
#inicio .contenido header .contenido-header .seleccionado {
    color: #ff5080;
}

#inicio .contenido header .contenido-header .redes a {
    text-decoration: none;
    color: #fff;
    margin-left: 10px;
    transition: .5s;
}
#inicio .contenido header .contenido-header .redes a:hover {
    color: #ff5080;
}

#inicio .contenido .presentacion {
    max-width: 1100px;
    height: 100vh;
    margin: auto;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
}
#inicio .contenido .presentacion .bienvenida {
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 5px;
}
#inicio .contenido .presentacion h2 {
    font-size: 55px;
    margin-bottom: 25px;
    text-align: center;
}
#inicio .contenido .presentacion span {
    color: #ff5080;
}
#inicio .contenido .presentacion .descripcion {
    max-width: 700px;
    margin: 25px auto;
    font-size: 18px;
    text-align: center;
}
#inicio .contenido .presentacion a {
    text-decoration: none;
    display: inline-block;
    margin: 25px;
    padding: 20px 25px;
    border: 2px solid #fff;
    border-radius: 50px;
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: .5s;
}
#inicio .contenido .presentacion a:hover {
    background-color: #ff5080;
}

#icono-nav {
    color: #fff;
    display: none;
}

/* ========== SECCIÓN SOBRE MÍ ========== */
#sobremi {
    margin: auto;
    max-width: 1300px;
    padding: 100px 15px;
    color: #111135;
}
#container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
#sobremi .sobremi {
    flex: 1 1 340px;
    order: 1;
    margin: 0 40px 0 0;
}
#sobremi .contenedor-foto {
    flex: 0 0 340px;
    max-width: 340px;
    order: 2;
    display: grid;
    margin: 0;
}
#sobremi .contenedor-foto img {
    padding: 20px;
    width: 100%;
    border-radius: 40px;
    background-color: #f3f3f3;
    display: block;
}
#sobremi .sobremi .titulo-seccion {
    font-size: 22px;
    text-transform: uppercase;
    color: #111135;
    text-decoration: underline;
    text-decoration-color: #d3d3d3;
    text-decoration-thickness: 5px;
}
#sobremi .sobremi h2 {
    font-size: 34px;
    font-weight: bold;
    margin: 20px 0;
    letter-spacing: 2px;
}
#sobremi .sobremi h2 span {
    color: #ff5080;
    font-size: 35px;
}
#sobremi .sobremi h3 {
    font-size: 18px;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}
#sobremi .sobremi p {
    font-size: 14px;
    line-height: 25px;
    color: #565656;
    margin-bottom: 12px;
}
#sobremi .sobremi a {
    font-weight: bolder;
    text-decoration: none;
    color: #000;
    transition: .5s;
}
#sobremi .sobremi a:hover {
    color: #ff5080;
}

/* ========== SECCIÓN SERVICIOS ========== */
#servicios {
    padding: 100px 15px;
    text-align: center;
    background-color: #f3f3f3;
}
#servicios .titulo-seccion {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #111135;
    text-decoration: underline;
    text-decoration-color: #d3d3d3;
    text-decoration-thickness: 5px;
}
#servicios .fila {
    display: flex;
    justify-content: space-between;
    max-width: 1150px;
    margin: 30px auto;
    gap: 20px;
    flex-wrap: wrap;
}
#servicios .fila .servicio {
    max-width: 350px;
    background-color: #fff;
    padding: 30px;
    margin: 0 5px 20px 5px;
    border-radius: 5px;
    transition: .5s;
    flex: 1 1 250px;
    min-width: 220px;
}
#servicios .fila .servicio:hover {
    box-shadow: 5px 5px 10px #565656, -5px -5px 10px #8a8a8a;
}
#servicios .fila .servicio .icono {
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #d3d3d3;
    padding: 20px;
    margin-bottom: 25px;
}
#servicios .fila .servicio h4 {
    font-size: 22px;
    margin-bottom: 25px;
}
#servicios .fila .servicio hr {
    width: 30%;
    margin: auto;
    color: #000;
    margin-bottom: 25px;
}
#servicios .fila .servicio ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
#servicios .fila .servicio p {
    font-size: 14px;
    line-height: 22px;
}

/* ========== SECCIÓN HABILIDADES (SKILLS) ========== */
.contenedor-skills {
    background: linear-gradient( #eb5a5acc, rgba(33, 16, 16, 0.8)), url("img/fondo-skills.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    color: #fff;
    background-position: center center;
    padding: 100px 0;
    text-align: center;
}
.contenedor-skills .skill {
    max-width: 600px;
    margin: 30px auto;
}
.contenedor-skills .skill .info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}
.contenedor-skills .skill .lista {
    display: inline-block;
    margin-right: 20px;
    height: 10px;
    width: 10px;
    background-color: #fff;
}
.contenedor-skills .skill .barra {
    background-color: #919191;
    width: 100%;
    height: 6px;
    margin: 10px 0px;
    border-radius: 3px;
}
.contenedor-skills .skill .barra div {
    background-color: #fff;
    height: 6px;
    border-radius: 3px;
    transition: width 2s;
}
/* ========== BARRAS DE PROGRESO HABILIDADES ========== */
.contenedor-skills .skill .barra {
    background-color: #919191;
    width: 100%;
    height: 6px;
    margin: 10px 0px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.barra-progreso1, .barra-progreso2, .barra-progreso3,
.barra-progreso4, .barra-progreso5, .barra-progreso6 {
    background-color: #fff;
    height: 100%;
    border-radius: 3px;
    animation-duration: 2s;
    animation-fill-mode: forwards;
}

.barra-progreso1 { animation-name: progreso1; }
.barra-progreso2 { animation-name: progreso2; }
.barra-progreso3 { animation-name: progreso3; }
.barra-progreso4 { animation-name: progreso4; }
.barra-progreso5 { animation-name: progreso5; }
.barra-progreso6 { animation-name: progreso6; }

@keyframes progreso1 { from { width: 0; } to { width: 70%; } }
@keyframes progreso2 { from { width: 0; } to { width: 70%; } }
@keyframes progreso3 { from { width: 0; } to { width: 55%; } }
@keyframes progreso4 { from { width: 0; } to { width: 65%; } }
@keyframes progreso5 { from { width: 0; } to { width: 85%; } }
@keyframes progreso6 { from { width: 0; } to { width: 85%; } }

/* Responsive: barras más gruesas en móvil */
@media (max-width: 600px) {
    .contenedor-skills .skill .barra,
    .barra-progreso1, .barra-progreso2, .barra-progreso3,
    .barra-progreso4, .barra-progreso5, .barra-progreso6 {
        height: 12px;
    }
}

/* ========== SECCIÓN PORTFOLIO (PROYECTOS) ========== */
#portfolio {
    max-width: 1100px;
    padding: 100px 0;
    margin: auto;
}
#portfolio .titulo-seccion {
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #111135;
    text-decoration: underline;
    text-decoration-color: #d3d3d3;
    text-decoration-thickness: 5px;
}
#portfolio .fila {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    gap: 20px;
    flex-wrap: wrap;
}
#portfolio .fila .proyecto {
    max-width: 450px;
    border: 1px solid #000;
    margin: 0 10px 20px 10px;
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    min-width: 240px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0001;
}
#portfolio .fila .proyecto img {
    width: 100%;
    height: 200px;
    filter: grayscale(1);
    object-fit: cover;
    transition: .5s;
    display: block;
}
#portfolio .fila .proyecto:hover img {
    filter: grayscale(0);
}
#portfolio .fila .proyecto .info {
    position: absolute;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ff5080;
    width: 100%;
    padding: 10px;
    opacity: 0;
    bottom: -40px;
    transition: .5s;
    border-radius: 0 0 10px 10px;
}
#portfolio .fila .proyecto:hover .info {
    opacity: 1;
    bottom: 0;
}
/* Enfasis en Foto3.jpg para móviles */
@media (max-width: 600px) {
    #portfolio .fila .proyecto.foto3 .info {
        opacity: 1 !important;
        bottom: 0 !important;
        color: #fff;
        font-weight: bold;
        background-color: rgba(0,0,0,0.8);
        font-size: 1.3rem;
        padding: 30px 10px;
        text-shadow: 0 2px 8px #000, 0 0 4px #ff5080;
        border-radius: 0 0 12px 12px;
        letter-spacing: 0.5px;
    }
    #portfolio .fila .proyecto.foto3 img {
        filter: grayscale(0);
        opacity: 0.6;
    }
}

/* ========== SECCIÓN CONTACTO FORMULARIO ========== */
#contacto {
    padding: 100px 15px;
    background-color: #f3f3f3;
}
#contacto .titulo-seccion {
    margin-bottom: 20px;
    text-align: center;
    font-size: 22px;
    text-transform: uppercase;
    color: #111135;
    text-decoration: underline;
    text-decoration-color: #d3d3d3;
    text-decoration-thickness: 5px;
    width: 100%;
    font-weight: bold;
    display: block;
}
#contacto .contenedor-form {
    max-width: 1100px;
    margin: auto;
}
#contacto .contenedor-form .fila {
    margin-bottom: 15px;
}
#contacto .contenedor-form .mitad {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#contacto .contenedor-form input,
#contacto .contenedor-form textarea {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid #919191;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}
#contacto .contenedor-form .mitad input {
    width: 48%;
}
#contacto .contenedor-form .input-full {
    width: 100%;
}
#contacto .botones {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}
#contacto .btn-enviar,
#contacto .btn-cv {
    display: inline-block;
    cursor: pointer;
    transition: .5s;
    padding: 10px 15px;
    border-radius: 20px;
    border: none;
    font-weight: bold;
    background: #ff5080;
    color: #fff;
    text-transform: uppercase;
    width: 48%;
}
#contacto .btn-enviar:hover,
#contacto .btn-cv:hover {
    background-color: #c2315c;
    color: #fff;
}

/* ========== FOOTER ========== */
footer {
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 30px 0;
}
footer a {
    text-decoration: none;
    color: #fff;
    display: inline-block;
    margin: 5px;
    font-size: 26px;
}

/* ========== LENGUAJES ========== */
#lenguajes {
    margin-left: 50px;
    list-style-image: url(img/comprobado.png);
}

/* ========== RESPONSIVE GENERAL ========== */
@media screen and (max-width: 1100px) {
    #inicio .contenido header .contenido-header {
        max-width: 95vw;
        padding: 10px 10px;
    }
    #inicio .contenido .presentacion {
        max-width: 95vw;
    }
    #portfolio, #sobremi, #servicios, #contacto .contenedor-form {
        max-width: 98vw;
        padding-left: 1vw;
        padding-right: 1vw;
    }
}

/* TABLET & DESKTOP < 900px */
@media screen and (max-width: 900px) {
    #container {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }
    #sobremi .sobremi {
        margin: 0 0 20px 0;
    }
    #sobremi .contenedor-foto {
        margin: 0 auto;
        max-width: 220px;
    }
    #servicios .fila,
    #portfolio .fila {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    #servicios .fila .servicio,
    #portfolio .fila .proyecto {
        max-width: 100%;
        width: 100%;
        margin: 0 0 20px 0;
    }
    .contenedor-skills {
        padding: 50px 10px;
    }
    .contenedor-skills .skill {
        max-width: 98vw;
    }
    #contacto .contenedor-form .mitad {
        flex-direction: column;
        gap: 10px;
    }
    #contacto .contenedor-form .mitad input {
        width: 100%;
        margin-bottom: 10px;
    }
    #contacto .botones {
        flex-direction: column;
        gap: 10px;
    }
    #contacto .btn-enviar,
    #contacto .btn-cv {
        width: 100%;
        font-size: 1rem;
        padding: 12px 0;
        border-radius: 18px;
    }
}

/* SMARTPHONES */
@media screen and (max-width: 600px) {
    #inicio .contenido header .contenido-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 2vw;
    }
    #inicio .contenido header .contenido-header nav ul {
        flex-direction: column;
        gap: 8px;
        margin: 10px 0;
    }
    #inicio .contenido .presentacion {
        padding: 90px 2vw 30px 2vw;
    }
    #inicio .contenido .presentacion h2 {
        font-size: 1.25rem;
    }
    #inicio .contenido .presentacion .descripcion {
        font-size: 1rem;
        padding: 0 1vw;
    }
    #container {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    #sobremi .sobremi {
        order: 1;
        margin: 0 0 12px 0;
        text-align: center;
    }
    #sobremi .contenedor-foto {
        order: 2;
        margin: 0 auto 12px auto;
        max-width: 260px;
    }
    #servicios {
        padding: 30px 4vw;
    }
    #portfolio {
        padding: 25px 0;
    }
    .contenedor-skills {
        padding: 25px 4vw;
    }
    #contacto {
        padding: 30px 2vw;
    }
    #contacto .titulo-seccion {
        font-size: 1rem;
        padding: 0 4px;
    }
    #contacto .botones {
        flex-direction: column;
        gap: 10px;
    }
    #contacto .btn-enviar,
    #contacto .btn-cv {
        width: 100%;
    }
}

/* MENÚ RESPONSIVE */
@media screen and (max-width: 800px) {
    .redes {
        display: none;
    }
    nav {
        display: none;
    }
    nav.responsive {
        display: block;
        background-color: rgba(0, 0, 0, .8);
        width: 100%;
        position: absolute;
        top: 48px;
        left: 0;
        padding: 10px 0;
    }
    nav.responsive ul {
        display: block !important;
        text-align: center;
    }
    nav.responsive ul li {
        margin: 5px 0;
    }
    #icono-nav {
        display: block;
    }
    #inicio .contenido .presentacion h2 {
        font-size: 40px;
    }
}
