@font-face {
    font-family: 'Montserrat';
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Fraunces';
    src: url('fonts/Fraunces-VariableFont_wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --azul-base: #484660;
    --blanco-roto: #f2eee9;
    --lila-1: #aaa8ff;
    --naranja-1: #fabe72;
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden; /* Evita que la pantalla se mueva hacia los lados */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--azul-base);
    line-height: 1.6;
    background-color: #fafafa;
    background-position: center 650px;
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 20%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    list-style: none;

}

.navbar ul {
    display: flex;
    gap: 2rem;
    text-decoration: none;
    list-style: none;
}

.navbar a {
    text-decoration: none;
    color: var(--azul-base);
    transition: color 0.2s;
}

.navbar a:hover {
    color: #000;
}

.logo {
    font-weight: 550;
    font-size: 16pt;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--azul-base);
    text-align: center;
    align-items: center;
}

.logo-img {
    width: 28px;  /* Ajusta este valor al tamaño que más te guste */
    height: 28px;
    object-fit: contain;
}

.logo .dot {
    width: 12px;
    height: 12px;
    background-color: var(--azul-base);
    border-radius: 50%;
}

.hero {
    position: relative;
    width: 100%;
    background-image: url('../img/portada.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding-top: 100px;
    padding-bottom: 40vw;
    padding-left: 5%;
    padding-right: 5%;
}

.hero h1 {
    font-family: 'Fraunces', serif;
    font-size: 52pt;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 13pt;
    color: var(--azul-base);
    margin-bottom: 2rem;
    line-height: 1.4;
}

.hero-buttons {
    align-items: left;
    text-align: left;
}

.btn-pill {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border: 1px solid var(--azul-base);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    margin: 0 0.3rem;
    transition: all 0.2s ease;
}

.btn-pill:hover {
    background-color: var(--lila-1);
    color: var(--blanco-roto);
    border: 0px;
}

/* SECCIÓN 2: ME PRESENTO (SOBRE MÍ) */
.sobre-mi {
    position: relative;
    z-index: 5;
    margin-top: 2rem;
    width: 100%;
    padding: 2rem 8% 6rem 8%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    scroll-margin-top: 180px; /* Ajustado para dejar aire al hacer click en el enlace */
}

.sobre-mi-container {
    max-width: 1050px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.sobre-mi-texto h2 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--azul-base);
    margin-bottom: 1.5rem;
    padding-left: 8rem;
}

.sobre-mi-texto p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--azul-base);
    margin-bottom: 1.3rem;
     padding-left: 8rem;
}

.sobre-mi-texto strong {
    font-weight: 600;
}

.btn-sobre-mi {
    padding: 0.5rem 1.2rem;
    color: var(--azul-base);
    text-decoration: none;
    border: 2px solid var(--azul-base);
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    width: fit-content;
    margin: 3rem auto 0 auto;
}

.btn-sobre-mi:hover {
    background-color: var(--lila-1);
    color: var(--azul-base);
    transform: translateY(-2px);
    border: 2px solid transparent;
}

.sobre-mi-imagen {
    display: flex;
    justify-content: center;
}

.sobre-mi-imagen img {
    width: 100%;
    max-width: 320px;
    height: auto;
}

/* SECCIÓN ALGUNOS TRABAJOS */
.trabajos {
    position: relative;
    z-index: 1;
    width: 100%;
    background-image: url('../img/index_trabajos_fondo.png');
    background-size: 100% auto;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: var(--blanco-fondo);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 8%;
    padding-right: 8%;
    padding-bottom: 30vw;
}

.trabajos h2 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--azul-base);
    margin-bottom: 4rem;
    text-align: center;
    padding-top: 22rem; /* Permite bajar el texto y el grid respecto al fondo */
}

.trabajos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1050px;
    width: 100%;
    align-items: center;
    margin-bottom: 4rem;
}

.trabajo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--azul-base);
    transition: transform 0.3s ease;
}

.trabajo-card:hover {
    transform: translateY(-6px);
}

.trabajo-label {
    font-size: 16pt;
    font-weight: 400;
    color: var(--azul-base);
}

.linea-vertical {
    width: 1px;
    height: 45px;
    background-color: rgba(72, 70, 96, 0.3);
    margin: 1.5rem 0;
}

.trabajo-img {
    width: 100%;
    max-width: 260px;
    height: 180px;
    border-radius: 100px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.trabajo-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.btn-ver-mas {
    display: inline-block;
    padding: 0.5rem 1.8rem;
    border: 1px solid var(--azul-base);
    border-radius: 25px;
    text-decoration: none;
    color: var(--azul-base);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.btn-ver-mas:hover {
    background-color: var(--azul-base);
    color: var(--blanco-roto);
    border-color: transparent;
}

/* SECCIÓN CONTACTO */
.contacto {
    position: relative;
    z-index: 5;
    margin-top: -15vw;
    width: 100%;
    padding: 2rem 8% 8rem 8%;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8rem;
    margin-top: 0; /* Ajuste para que no se superponga con la sección anterior */
}

.contacto-container {
    max-width: 900px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* Separación reducida entre la imagen y el texto */
    align-items: center;
}

.contacto-imagen {
    display: flex;
    justify-content: center;
}

.contacto-imagen img {
    width: 100%;
    max-width: 400px;
    height: auto;
}

.contacto-texto {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(-25px); /* Sube solo el bloque de texto */
}

.contacto-texto h2 {
    font-family: 'Fraunces', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: var(--azul-base);
    margin-bottom: 1.5rem;
}

.contacto-texto p {
    font-size: 1rem;
    color: var(--azul-base);
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 360px;
}

.btn-email {
    display: inline-block;
    padding: 0.6rem 2.2rem;
    border: 1.5px solid var(--lila-1);
    border-radius: 30px;
    text-decoration: none;
    color: var(--azul-base);
    font-size: 1.05rem;
    transition: all 0.2s ease;
}

.btn-email:hover {
    background-color: var(--lila-1);
    color: #ffffff;
    transform: translateY(-2px);
}

footer {
    padding: 3rem 8%;
    color: #888;
    font-size: 0.9rem;
    border-top: 1px solid #eaeaea;
    text-align: center;
}



/* SECCIÓN PORTFOLIO PDF **********************************************************************************************/
.portfolio-pdf {
    width: 100%;
    padding: 4rem 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.portfolio-pdf-container {
    max-width: 1000px;
    width: 100%;
    text-align: center;
}

.portfolio-pdf h2 {
    font-family: 'Fraunces', serif;
    font-size: 3.2rem;
    font-weight: 500;
    color: var(--azul-base);
    margin-bottom: 1rem;
}

.portfolio-pdf p {
    font-size: 1.05rem;
    color: var(--azul-base);
    margin-bottom: 2rem;
}

/* Botones de acción superiores */
.pdf-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn-pdf {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border: 1.5px solid var(--azul-base);
    border-radius: 30px;
    text-decoration: none;
    color: var(--azul-base);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-pdf:hover {
    background-color: var(--lila-1);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-pdf-descargar {
    background-color: var(--azul-base);
    color: #ffffff;
}

.btn-pdf-descargar:hover {
    background-color: var(--lila-1);
    color: var(--azul-base);
}

/* Visor iframe */
.pdf-viewer {
    width: 100%;
    height: 700px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
}



/* ==========================================================================
   ADAPTACIÓN PARA PANTALLAS MÓVILES (MENORES A 768PX)
   ========================================================================== */
@media (max-width: 768px) {

    /* Navegación móvil */
    .navbar {
        flex-direction: column;
        padding: 1rem 5%;
        gap: 0.8rem;
    }

    .navbar ul {
        gap: 1.2rem;
    }

    .TEMPORAL {
        margin-top: 95px;
    }

    /* Hero */
    .hero {
        padding-top: 140px;
        padding-bottom: 25vw;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        text-align: center;
        line-height: 2.2;
    }

    /* Sobre Mí */
    .sobre-mi {
        padding: 2rem 5% 4rem 5%;
        scroll-margin-top: 100px;
    }

    .sobre-mi-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .sobre-mi-texto h2 {
        font-size: 2.3rem;
    }

    /* Trabajos */
    .trabajos {
        padding-left: 5%;
        padding-right: 5%;
    }

    .trabajos h2 {
        font-size: 2.3rem;
        padding-top: 6rem; /* Reducido para no dejar huecos excesivos en móvil */
    }

    .trabajos-grid {
        grid-template-columns: 1fr; /* Coloca las tarjetas una debajo de otra */
        gap: 3.5rem;
    }

    /* Contacto */
    .contacto {
        margin-top: 0;
        padding: 4rem 5%;
        margin-bottom: 3rem;
    }

    .contacto-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contacto-texto {
        transform: none; /* Elimina la elevación para mantener la coherencia centrada en móvil */
    }

    .contacto-texto h2 {
        font-size: 2.3rem;
    }

    .btn-email {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
        word-break: break-all; /* Evita que la dirección de email larga desborde el ancho móvil */
    }
}

