/* ========================= */
/* RESET Y BASE              */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin-top: 65px;
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
    color: #333;
}

section[id] {
    scroll-margin-top: 70px;
}

a {
    text-decoration: none;
}

/* ========================= */
/* HEADER Y NAVEGACIÓN       */
/* ========================= */
.topheader {
    box-shadow: 0 4px 5px rgb(77, 24, 65);
    position: fixed;
    background-color: lightpink;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.topnav {
    display: flex;
    justify-content: center;
    padding: 10px;
    max-width: 980px;
    margin: 0 auto;
}

.logo {
    position: absolute;
    left: 20px;
    top: 8px;
    z-index: 1001;
}

.logo img {
    height: 45px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.menu {
    display: flex;
    list-style: none;
}

.menu li {
    padding: 0 15px;
}

.menu a {
    color: rgb(87, 2, 87);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 50px;
    text-transform: uppercase;
    font-family: 'Roboto', sans-serif;
}

.menu a:hover {
    color: white;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

/* Responsive menú */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 0;
        width: 100%;
        align-items: center;
        background-color: rgb(146, 106, 129);
        height: 100%;
        overflow-y: auto;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
        z-index: 1001;
    }

    .menu li {
        padding: 0;
    }

    .menu a {
        color: rgb(87, 2, 87);
        line-height: 70px;
        font-size: 1.5625rem;
    }

    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: none;
        background: none;
        cursor: pointer;
        font-size: 1.25rem;
        color: rgb(87, 2, 87);
    }

    .menu_abierto {
        opacity: 1;
        pointer-events: all;
    }
}

/* ========================= */
/* SOBRE MÍ                  */
/* ========================= */
.sobre-mi {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.perfil-info h1 {
    font-size: 2.5rem;
    font-family: 'Roboto', sans-serif;
    color: #333;
    margin-bottom: 10px;
}

.perfil-info h3 {
    font-size: 1.4375rem;
    font-family: 'Roboto', sans-serif;
    color: #555;
    margin-bottom: 20px;
}

.foto-img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    display: block;
    transition: transform 0.3s ease;
}

.foto-img:hover {
    transform: scale(1.05);
}

.perfil-detalles p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.6;
    color: #333;
    max-width: 700px;
    margin: 20px auto 0;
    text-align: center;
}

/* ========================= */
/* TARJETAS / PROYECTOS      */
/* ========================= */
.tarjetas {
    max-width: 980px;
    margin: 60px auto;
    padding: 20px;
}

.tarjetas h2 {
    font-size: 2.1875rem;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.contenedor-tarjetas {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.tarjeta {
    background-color: rgb(163, 144, 182);
    border-radius: 15px;
    overflow: hidden;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.tarjeta img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.tarjeta h3 {
    font-size: 1.375rem;
    font-family: 'Roboto', sans-serif;
    padding: 15px 15px 5px;
    color: #fff;
}

.tarjeta p {
    font-family: 'Roboto', sans-serif;
    padding: 0 15px 20px;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #fff;
}

/* ========================= */
/* HABILIDADES               */
/* ========================= */
.habilidades {
    max-width: 980px;
    margin: 40px auto;
    background-color: rgb(163, 144, 182);
    border-radius: 10px;
    padding: 20px;
}

.habilidades h2 {
    font-size: 1.875rem;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
}

.listado-habilidades {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.categoria {
    flex: 1;
    min-width: 200px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
}

.categoria h3 {
    font-size: 1.25rem;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 15px;
    color: #fff;
}

.categoria li {
    font-size: 1.125rem;
    font-family: 'Roboto', sans-serif;
    background-color: rgba(87, 2, 87, 0.4);
    border-radius: 30px;
    padding: 10px;
    margin: 10px;
    text-align: center;
    color: #fff;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.categoria li:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

/* ========================= */
/* PELÍCULAS                 */
/* ========================= */
.peliculas {
    max-width: 980px;
    margin: 60px auto;
    padding: 20px;
}

.peliculas h2 {
    font-size: 2.1875rem;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 40px;
    color: #333;
}

.contenedor-peliculas {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.pelicula {
    background-color: rgb(163, 144, 182);
    border-radius: 15px;
    overflow: hidden;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pelicula:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.pelicula img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.pelicula h3, .pelicula p {
    font-family: 'Roboto', sans-serif;
    color: #fff;
    padding: 15px;
}

/* ========================= */
/* CONTACTO                  */
/* ========================= */
.contacto {
    background-color: lightpink;
    color: black;
    border-radius: 15px;
    padding: 40px 30px;
    max-width: 980px;
    margin: 60px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cont-body {
    font-size: 2.1875rem;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin-bottom: 30px;
    color: rgb(87, 2, 87);
}

/* Grid principal de contacto */
.contenido-contacto {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

/* Columna izquierda - Información */
.info-contacto {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
}

.info-contacto h3 {
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    color: rgb(87, 2, 87);
    text-align: center;
}

.cont-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cont-info-det {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.cont-info-det i {
    font-size: 1.5rem;
    color: rgb(87, 2, 87);
    width: 35px;
    text-align: center;
}

.cont-etiq {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 1rem;
    color: rgb(87, 2, 87);
    min-width: 80px;
}

.cont-etiq-text {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #333;
    margin: 0;
}

/* Columna derecha - Formulario */
.formulario-contacto {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 25px;
}

.formulario-contacto h3 {
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    margin-bottom: 20px;
    color: rgb(87, 2, 87);
    text-align: center;
}

.form-cont {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-cont-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-cont-info label {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    font-size: 0.875rem;
    color: rgb(87, 2, 87);
}

.form-cont-info input,
.form-cont-info textarea {
    border-radius: 8px;
    border: none;
    padding: 12px 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
    background-color: white;
    transition: all 0.3s ease;
}

.form-cont-info input:hover,
.form-cont-info textarea:hover {
    background-color: #f9f9f9;
}

.form-cont-info input:focus,
.form-cont-info textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgb(163, 144, 182);
}

.form-cont-info textarea {
    height: auto;
    resize: vertical;
    min-height: 100px;
}

.form-cont-submit {
    border: none;
    border-radius: 8px;
    background-color: rgb(163, 144, 182);
    width: 100%;
    height: 45px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.form-cont-submit:hover {
    background-color: rgb(87, 2, 87);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Redes sociales */
.red-social {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 0;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid rgba(87, 2, 87, 0.2);
}

.red-social a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(87, 2, 87);
    font-family: 'Roboto', sans-serif;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 8px;
}

.red-social a:hover {
    color: white;
    background-color: rgb(87, 2, 87);
    transform: translateY(-2px);
}

.red-social i {
    font-size: 1.375rem;
    transition: transform 0.3s ease;
}

.red-social a:hover i {
    transform: scale(1.2);
}

/* Responsive para contacto */
@media (max-width: 768px) {
    .contacto {
        padding: 30px 20px;
        margin: 40px 15px;
    }

    .cont-body {
        font-size: 1.75rem;
        margin-bottom: 25px;
    }

    .contenido-contacto {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cont-info-det {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .red-social {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .red-social a {
        justify-content: center;
        min-width: 150px;
    }
}

/* ========================= */
/* FOOTER                    */
/* ========================= */
footer {
    margin-top: 40px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    background-color: lightpink;
    color: rgb(87, 2, 87);
}

.redes-sociales {
    display: flex;
    gap: 25px;
}

.redes-sociales a {
    color: rgb(87, 2, 87);
    font-size: 1.125rem;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.redes-sociales a:hover {
    color: white;
    background-color: rgb(87, 2, 87);
    padding: 5px 10px;
    border-radius: 6px;
}

.redes-sociales i {
    transition: transform 0.3s ease;
}

.redes-sociales a:hover i {
    transform: scale(1.2);
}

.copyright {
    font-family: 'Roboto', sans-serif;
    font-size: 0.875rem;
}