@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&display=swap');


/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #f7f3f1;
    color: #111111;
    font-family: "DM Sans", Arial, Helvetica, sans-serif;
}

img {
    width: 100%;
    display: block;
}

a {
    color: inherit;
}


/* =========================
   MENÚ
========================= */

.header {
    width: 100%;
    padding: 25px 5%;
    background-color: #111111;
    color: white;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
}

.menu {
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu a:hover {
    color: #f28bb5;
}


/* =========================
   PORTADA
========================= */

.portada {
    width: 92%;
    margin: 35px auto;

    min-height: 650px;

    background-color: #f28bb5;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    position: relative;
    overflow: hidden;
}


/* círculo decorativo */

.portada::before {
    content: "";

    position: absolute;

    width: 320px;
    height: 320px;

    border: 2px solid rgba(255,255,255,0.55);
    border-radius: 50%;

    left: -130px;
    bottom: -130px;
}


/* segundo círculo */

.portada::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border: 2px solid #111111;
    border-radius: 50%;

    left: 48%;
    top: 50px;
}


.portada-texto {
    padding: 70px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    position: relative;
    z-index: 2;
}


.mini-titulo {
    color: white;

    letter-spacing: 3px;
    font-size: 12px;

    text-transform: uppercase;
}


.portada h1 {
    margin: 20px 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 105px;
    font-weight: 400;
    line-height: 0.85;
}


.portada h1 span {
    display: block;

    font-style: italic;

    font-size: 120px;
}


.intro {
    max-width: 500px;

    font-size: 17px;
    line-height: 1.7;
}


.portada-foto {
    position: relative;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    padding: 50px 50px 0;
}


.portada-foto img {
    height: 560px;

    object-fit: cover;
    object-position: center top;

    filter: grayscale(100%);

    border: 8px solid #111111;
}


.sello {
    width: 105px;
    height: 105px;

    position: absolute;
    right: 20px;
    top: 30px;

    background-color: #111111;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    font-size: 11px;
    letter-spacing: 2px;
}


/* =========================
   BOTONES
========================= */

.boton {
    width: fit-content;

    margin-top: 30px;
    padding: 15px 25px;

    border: 2px solid #111111;

    background-color: #f7f3f1;

    text-decoration: none;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1.5px;

    transition: 0.25s;
}

.boton:hover {
    background-color: #111111;
    color: white;
}


/* =========================
   SOBRE MÍ EN INICIO
========================= */

.franja-sobre {
    width: 92%;
    margin: 20px auto;

    display: grid;
    grid-template-columns: 35% 65%;

    border: 2px solid #111111;
}


.franja-titulo {
    background-color: #111111;
    color: white;

    padding: 45px;
}


.franja-titulo p {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;

    font-size: 38px;
}


.franja-contenido {
    padding: 45px;

    background-color: #ffd3e3;
}


.texto-destacado {
    max-width: 850px;

    margin-top: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 32px;
    line-height: 1.35;
}


.franja-contenido > p:not(.texto-destacado) {
    max-width: 750px;
    line-height: 1.7;
}


.franja-contenido a {
    display: inline-block;

    margin-top: 15px;

    font-weight: bold;
}


/* =========================
   PROYECTOS DEL INICIO
========================= */

.seleccion {
    width: 92%;

    margin: 60px auto;
    padding: 50px;

    background-color: #111111;
    color: white;
}


.titulo-seccion {
    margin-bottom: 40px;
}


.titulo-seccion > p {
    color: #f28bb5;

    letter-spacing: 3px;
    font-size: 12px;
}


.titulo-seccion h2 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 80px;
    font-weight: 400;
}


.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.preview {
    background-color: #f28bb5;
    color: #111111;

    border: 5px solid #f7f3f1;
}


.preview-grande {
    grid-row: span 2;
}


.preview img {
    height: 300px;

    object-fit: cover;

    filter: grayscale(15%);
}


.preview-grande img {
    height: 650px;
}


.preview-info {
    padding: 25px;
}


.preview-info p {
    font-size: 11px;

    letter-spacing: 2px;
}


.preview-info h3 {
    margin: 8px 0 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 32px;
    font-weight: 400;
}


.boton-centro {
    margin: 40px auto 0;

    display: block;
}


/* =========================
   FOOTER
========================= */

footer {
    padding: 40px 5%;

    background-color: #f28bb5;

    display: flex;
    justify-content: space-between;

    gap: 40px;

    font-size: 12px;
}


.ia {
    max-width: 600px;

    line-height: 1.6;
}


/* =========================
   TÍTULO PÁGINA PROYECTOS
========================= */

.titulo-pagina {
    width: 92%;

    margin: 40px auto;

    padding: 60px;

    background-color: #f28bb5;

    position: relative;

    overflow: hidden;
}


.titulo-pagina::after {
    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    border: 2px solid #111111;

    right: 7%;
    top: -70px;
}


.titulo-pagina p {
    letter-spacing: 3px;

    font-size: 12px;
}


.titulo-pagina h1 {
    margin: 0;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 100px;
    font-weight: 400;

    font-style: italic;
}


/* =========================
   PÁGINA DE PROYECTOS
========================= */

.proyectos {
    width: 92%;

    margin: auto;
}


.proyecto {
    margin-bottom: 45px;

    padding: 50px;

    border: 2px solid #111111;

    background-color: #ffd3e3;

    position: relative;

    overflow: hidden;
}


/* CÍRCULO DECORATIVO */

.proyecto::after {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    border: 2px solid rgba(17,17,17,0.25);

    border-radius: 50%;

    right: -60px;
    top: 90px;

    pointer-events: none;
}


.numero {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 80px;

    font-style: italic;

    margin: 0;

    line-height: 1;
}


.categoria {
    font-size: 11px;

    letter-spacing: 3px;

    text-transform: uppercase;
}


.proyecto h2 {
    margin: 15px 0 35px;

    max-width: 1100px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 55px;
    line-height: 1.05;

    font-weight: 400;
}


/* =========================
   IMÁGENES PROYECTOS
========================= */

.galeria-doble {
    margin: 35px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 20px;
}


.galeria-doble img {
    height: 450px;

    object-fit: cover;
}


.galeria-simple {
    margin: 35px 0;
}


.galeria-simple img {
    width: 100%;

    max-height: 700px;

    object-fit: cover;
}


/* =========================
   TEXTO PROYECTOS
========================= */

/* ESTE ES EL CAMBIO QUE EVITA QUE
   EL TEXTO QUEDE SOLO A MEDIA PÁGINA */

.proyecto-texto {
    width: 100%;

    max-width: 1250px;

    margin-top: 35px;

    font-size: 17px;
    line-height: 1.8;

    position: relative;

    z-index: 2;
}


.proyecto-texto p {
    margin-bottom: 20px;
}


/* primer párrafo un poco más editorial */

.proyecto-texto p:first-child {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 24px;
    line-height: 1.55;
}


/* enlace */

.link-proyecto {
    display: inline-block;

    margin-top: 25px;

    padding-bottom: 6px;

    border-bottom: 2px solid #111111;

    text-decoration: none;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}


/* proyecto negro */

.proyecto-negro {
    background-color: #111111;

    color: white;
}


.proyecto-negro::after {
    border-color: rgba(242,139,181,0.7);
}


.proyecto-negro .link-proyecto {
    border-color: white;
}


/* =========================
   PÁGINA SOBRE MÍ
========================= */

.sobre {
    width: 92%;

    margin: 40px auto;

    display: grid;
    grid-template-columns: 0.85fr 1.15fr;

    gap: 25px;
}


/* FOTO */

.sobre-foto {
    background-color: #f28bb5;

    padding: 35px;

    position: relative;

    overflow: hidden;
}


.sobre-foto img {
    height: 680px;

    object-fit: cover;
    object-position: center top;

    filter: grayscale(100%);

    border: 5px solid #111111;

    position: relative;

    z-index: 2;
}


/* círculo grande detrás de la foto */

.circulo-foto {
    position: absolute;

    width: 330px;
    height: 330px;

    border: 2px solid white;

    border-radius: 50%;

    right: -100px;
    top: -70px;

    z-index: 1;
}


.foto-texto {
    position: relative;

    margin: 25px 0 0;

    font-size: 12px;

    letter-spacing: 4px;

    font-weight: 700;

    z-index: 3;
}


/* INFORMACIÓN */

.sobre-info {
    background-color: #ffd3e3;

    padding: 60px;

    position: relative;
}


.sobre-info .mini-titulo {
    color: #111111;
}


.sobre-info h1 {
    margin: 5px 0 35px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 90px;

    line-height: 0.85;

    font-weight: 400;
}


.sobre-info h1 em {
    font-weight: 400;
}


.sobre-info .grande {
    font-family: "Playfair Display", Georgia, serif;

    font-size: 30px;

    line-height: 1.4;
}


.sobre-info p {
    line-height: 1.8;

    max-width: 850px;
}


.sobre-info h2 {
    margin-top: 45px;

    font-family: "Playfair Display", Georgia, serif;

    font-size: 27px;

    font-weight: 600;
}


.sobre-info a {
    font-weight: 600;
}


.linea-decorativa {
    width: 100%;
    height: 2px;

    margin: 40px 0 20px;

    background-color: #111111;
}


/* =========================
   CELULAR
========================= */

@media (max-width: 800px) {

    .header {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
    }


    .menu {
        gap: 15px;
    }


    .portada {
        grid-template-columns: 1fr;
    }


    .portada-texto {
        padding: 40px;
    }


    .portada h1 {
        font-size: 65px;
    }


    .portada h1 span {
        font-size: 75px;
    }


    .portada-foto img {
        height: 450px;
    }


    .franja-sobre {
        grid-template-columns: 1fr;
    }


    .preview-grid {
        grid-template-columns: 1fr;
    }


    .preview-grande {
        grid-row: auto;
    }


    .preview-grande img {
        height: 350px;
    }


    .titulo-pagina {
        padding: 35px;
    }


    .titulo-pagina h1 {
        font-size: 55px;
    }


    .proyecto {
        padding: 28px;
    }


    .galeria-doble {
        grid-template-columns: 1fr;
    }


    .galeria-doble img {
        height: 350px;
    }


    .proyecto h2 {
        font-size: 38px;
    }


    .proyecto-texto {
        font-size: 16px;
    }


    .proyecto-texto p:first-child {
        font-size: 20px;
    }


    .sobre {
        grid-template-columns: 1fr;
    }


    .sobre-foto img {
        height: 500px;
    }


    .sobre-info {
        padding: 40px;
    }


    .sobre-info h1 {
        font-size: 60px;
    }


    footer {
        flex-direction: column;
    }

}