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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background-color: #ffffff;
    color: #171717;
    line-height: 1.6;
}


/* ==========================
   CABECERA
========================== */

header {
    width: 100%;
    padding: 25px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

header h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -1px;
}

header h1 a {
    color: #171717;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #555555;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #000000;
}

.menu-toggle {
    display: none;
}


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

#inicio {
    min-height: 80vh;
    padding: 120px 12%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background-color: #f7f7f7;
}

.subtitulo {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #777777;
    margin-bottom: 25px;
}

#inicio h2 {
    max-width: 850px;
    font-size: 64px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -3px;
    color: #171717;
    margin-bottom: 25px;
}

.texto-portada {
    max-width: 620px;
    font-size: 18px;
    line-height: 1.8;
    color: #666666;
    margin-bottom: 35px;
}


/* ==========================
   BOTONES DE PORTADA
========================== */

.acciones-portada {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.boton {
    display: inline-block;
    padding: 16px 30px;
    background-color: #171717;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.boton:hover {
    background-color: #444444;
}

.boton-secundario {
    background-color: transparent;
    color: #171717;
    border: 1px solid #171717;
}

.boton-secundario:hover {
    background-color: #171717;
    color: #ffffff;
}


/* ==========================
   ESTILOS GENERALES DE SECCIÓN
========================== */

.encabezado-seccion {
    max-width: 650px;
    margin-bottom: 60px;
}

.encabezado-seccion h2 {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.encabezado-seccion > p:last-child {
    font-size: 17px;
    color: #666666;
    line-height: 1.8;
}


/* ==========================
   SERVICIOS
========================== */

#servicios {
    padding: 110px 12%;
    background-color: #ffffff;
}

.contenedor-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tarjeta-servicio {
    padding: 35px 30px;
    border: 1px solid #e8e8e8;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tarjeta-servicio:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.numero-servicio {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #999999;
    margin-bottom: 30px;
}

.tarjeta-servicio h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.tarjeta-servicio p {
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}


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

#proyectos {
    padding: 110px 12%;
    background-color: #f7f7f7;
}

.contenedor-proyectos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.tarjeta-proyecto {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    overflow: hidden;
}

.imagen-proyecto {
    min-height: 350px;
    background-color: #e5e5e5;
}

.imagen-proyecto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-proyecto {
    padding: 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.categoria-proyecto {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #888888;
    margin-bottom: 20px;
}

.info-proyecto h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 20px;
}

.info-proyecto > p:not(.categoria-proyecto) {
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
    margin-bottom: 25px;
}

.info-proyecto a {
    color: #171717;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-bottom: 1px solid #171717;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.info-proyecto a:hover {
    color: #777777;
    border-color: #777777;
}


/* ==========================
   SOBRE MÍ
========================== */

#sobre-mi {
    padding: 110px 12%;
    background-color: #ffffff;
}

.contenido-sobre-mi {
    max-width: 850px;
}

.texto-sobre-mi h3 {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 30px;
}

.texto-sobre-mi p {
    font-size: 16px;
    color: #666666;
    line-height: 1.9;
    margin-bottom: 20px;
}


/* ==========================
   PROCESO
========================== */

#proceso {
    padding: 110px 12%;
    background-color: #f7f7f7;
}

.contenedor-proceso {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.paso-proceso {
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.paso-proceso:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.numero-proceso {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #999999;
    margin-bottom: 20px;
}

.paso-proceso h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.paso-proceso p {
    font-size: 15px;
    color: #666666;
    line-height: 1.8;
}


/* ==========================
   CONTACTO
========================== */

#contacto {
    padding: 110px 12%;
    background-color: #ffffff;
}

.contenedor-contacto {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.informacion-contacto h3 {
    font-size: 27px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 25px;
}

.informacion-contacto p {
    font-size: 15px;
    color: #666666;
    line-height: 1.9;
    margin-bottom: 20px;
}

#form-contacto {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.campo-formulario {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.campo-formulario label {
    font-size: 13px;
    font-weight: 700;
}

.campo-formulario input,
.campo-formulario select,
.campo-formulario textarea {
    width: 100%;
    padding: 15px;
    font-family: inherit;
    font-size: 14px;
    color: #171717;
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 0;
    outline: none;
    transition: border-color 0.3s ease;
}

.campo-formulario input:focus,
.campo-formulario select:focus,
.campo-formulario textarea:focus {
    border-color: #171717;
}

.campo-formulario textarea {
    resize: vertical;
    min-height: 150px;
}

.campo-formulario input::placeholder,
.campo-formulario textarea::placeholder {
    color: #999999;
}

.boton-enviar {
    align-self: flex-start;
    font-family: inherit;
}

.aviso-formulario {
    font-size: 12px;
    color: #888888;
    line-height: 1.6;
}



/* ==========================
   PIE DE PÁGINA FIJO
========================== */

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background-color: #171717;
    color: #ffffff;
    z-index: 1000;
}

footer p {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #aaaaaa;
}

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

.redes-sociales a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.redes-sociales a:hover {
    color: #aaaaaa;
}

/* Evitar que el footer tape el final de la página */
body {
    padding-bottom: 60px;
}

/* ==========================
   RESPONSIVE: TABLETS
========================== */

@media (max-width: 900px) {

    header {
        padding: 22px 5%;
    }

    nav {
        gap: 18px;
    }

    nav a {
        font-size: 11px;
    }

    #inicio {
        padding: 100px 8%;
    }

    #inicio h2 {
        font-size: 52px;
    }

    #servicios,
    #proyectos,
    #sobre-mi,
    #proceso,
    #contacto {
        padding: 90px 8%;
    }

    .contenedor-servicios {
        grid-template-columns: repeat(2, 1fr);
    }

    .contenedor-contacto {
        gap: 45px;
    }

}


/* ==========================
   RESPONSIVE: MÓVILES
========================== */

@media (max-width: 700px) {

    header {
        position: relative;
        padding: 20px 6%;
    }

    header h1 {
        font-size: 20px;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 28px;
        cursor: pointer;
        color: #171717;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 20px 6%;
        background-color: #ffffff;
        border-bottom: 1px solid #eeeeee;
        flex-direction: column;
        gap: 20px;
        z-index: 100;
    }

    nav.activo {
        display: flex;
    }

    nav a {
        font-size: 13px;
    }

    #inicio {
        min-height: 75vh;
        padding: 90px 7%;
    }

    #inicio h2 {
        font-size: 42px;
        letter-spacing: -2px;
    }

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

    .acciones-portada {
        flex-direction: column;
        width: 100%;
    }

    .boton {
        text-align: center;
        width: 100%;
    }

    #servicios,
    #proyectos,
    #sobre-mi,
    #proceso,
    #contacto {
        padding: 75px 7%;
    }

    .encabezado-seccion h2 {
        font-size: 38px;
    }

    .contenedor-servicios,
    .contenedor-proceso,
    .contenedor-contacto {
        grid-template-columns: 1fr;
    }

    .contenedor-contacto {
        gap: 40px;
    }

    .tarjeta-proyecto {
        grid-template-columns: 1fr;
    }

    .imagen-proyecto {
        min-height: 220px;
    }

    .info-proyecto {
        padding: 30px;
    }

    .texto-sobre-mi h3 {
        font-size: 23px;
    }

    .boton-enviar {
        width: 100%;
    }

    footer {
        padding: 30px 7%;
        flex-direction: column;
        text-align: center;
    }

    .redes-sociales {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

}
