* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
}


/* CABECERA */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 1000;
}


/* MENÚ */

.menu {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 30px;
}


.logo {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}


.menu-enlaces a {
    color: white;
    text-decoration: none;
    margin-left: 30px;
    font-size: 16px;
    transition: 0.3s;
}


    .menu-enlaces a:hover {
        opacity: 0.6;
    }


/* PORTADA */

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient( rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7) ), url("images/portada.jpg");
    background-size: cover;
    background-position: center;
}


/* CONTENIDO PORTADA */

.hero-contenido {
    max-width: 900px;
    padding: 20px;
    transform: translateY(60px);
}


.hero h1 {
    font-size: 64px;
    margin-bottom: 20px;
    line-height: 1.1;
}


.hero p {
    font-size: 22px;
    margin-bottom: 40px;
    color: #dddddd;
}


/* BOTÓN */

.boton {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 16px 32px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}


    .boton:hover {
        transform: scale(1.05);
    }


/* SECCIÓN SERVICIOS */

.seccion-servicios {
    background-color: #111;
    padding: 110px 30px;
}

.contenedor {
    max-width: 1200px;
    margin: auto;
}

.seccion-servicios h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 15px;
}

.subtitulo-seccion {
    text-align: center;
    color: #aaaaaa;
    font-size: 19px;
    margin-bottom: 60px;
}

.grid-servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.tarjeta-servicio {
    background-color: #1b1b1b;

    border-radius: 12px;

    overflow: hidden;

    transition: 0.3s;
}

    .tarjeta-servicio img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        display: block;
    }

.contenido-tarjeta {
    padding: 30px;
}

.tarjeta-servicio h3 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    color: white;
}

.tarjeta-servicio p {
    font-family: Arial, sans-serif;
    color: #bdbdbd;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 400;
}

    .tarjeta-servicio:hover {
        transform: translateY(-8px);
        background-color: #242424;
    }


/* SECCIÓN POR QUÉ ELEGIRME */

.seccion-porque {
    background-color: #0d0d0d;
    padding: 110px 30px;
}

    .seccion-porque h2 {
        text-align: center;
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 15px;
    }

.grid-porque {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 55px;
}

.porque-item {
    background-color: #1b1b1b;
    padding: 35px 28px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
}

    .porque-item:hover {
        transform: translateY(-7px);
        background-color: #242424;
    }

.porque-icono {
    width: 60px;
    height: 60px;
    margin: 0 auto 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 26px;
    font-weight: bold;
}

.porque-item h3 {
    font-family: "Montserrat", sans-serif;
    font-size: 21px;
    margin-bottom: 15px;
}

.porque-item p {
    color: #bdbdbd;
    font-size: 15px;
    line-height: 1.6;
}

/* SECCIÓN PORTFOLIO */

.seccion-portfolio {
    background-color: #0d0d0d;
    padding: 110px 30px;
}

    .seccion-portfolio h2 {
        text-align: center;
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 15px;
    }


/* GALERÍA */

.grid-portfolio {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}


/* CADA IMAGEN */

.item-portfolio {
    overflow: hidden;
    border-radius: 12px;
    height: 300px;
    cursor: pointer;
}


    /* IMAGEN */

    .item-portfolio img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s ease;
    }


    /* EFECTO AL PASAR EL RATÓN */

    .item-portfolio:hover img {
        transform: scale(1.08);
    }

/* LIGHTBOX PORTFOLIO */

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 5000;
    justify-content: center;
    align-items: center;
}


/* IMAGEN AMPLIADA */

.imagen-lightbox {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}


/* BOTÓN CERRAR */

.cerrar-lightbox {
    position: absolute;
    top: 25px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
}


    .cerrar-lightbox:hover {
        opacity: 0.6;
    }

/* SECCIÓN CONTACTO */

.seccion-contacto {
    background-color: #111;
    padding: 110px 30px;
}


    .seccion-contacto h2 {
        text-align: center;
        font-family: "Montserrat", sans-serif;
        font-size: 48px;
        font-weight: 700;
        margin-bottom: 15px;
    }


.contacto-contenido {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.contacto-datos {
    display: flex;
    justify-content: center;
    margin-top: 55px;
}


.contacto-item {
    max-width: 550px;
    width: 100%;
    text-align: center;
}



    .contacto-item:hover {
        transform: translateY(-6px);
        background-color: #222;
    }


    .contacto-item h3 {
        font-family: "Montserrat", sans-serif;
        font-size: 24px;
        margin-bottom: 18px;
    }


    .contacto-item p {
        color: #bdbdbd;
        font-size: 17px;
        line-height: 1.6;
        margin-bottom: 30px;
    }


.boton-contacto {
    display: inline-block;
    background-color: white;
    color: black;
    padding: 15px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}


    .boton-contacto:hover {
        transform: scale(1.05);
        background-color: #dddddd;
    }

/* MARCA DE AGUA FINAL */

.marca-agua-final {
    margin-top: 5px;
    text-align: center;
}

    .marca-agua-final img {
        width: 300px;
        max-width: 70%;
        height: auto;
        opacity: 0.85;
    }

/* ADAPTACIÓN A MÓVIL */

@media (max-width: 800px) {

    .hero h1 {
        font-size: 42px;
    }

    .hero p {
        font-size: 18px;
    }

    .menu-enlaces {
        display: none;
    }

    .grid-servicios {
        grid-template-columns: 1fr;
    }

    .seccion-servicios h2 {
        font-size: 36px;
    }

    .grid-portfolio {
        grid-template-columns: 1fr;
    }

    .item-portfolio {
        height: 250px;
    }

    .seccion-portfolio h2 {
        font-size: 36px;
    }

    .contacto-datos {
        grid-template-columns: 1fr;
    }

    .seccion-contacto h2 {
        font-size: 36px;
    }

    .grid-porque {
        grid-template-columns: 1fr;
    }

    .seccion-porque h2 {
        font-size: 36px;
    }
}
