*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: #f2f2f2;
    color: #333;
}

/* HEADER */

header{
    width: 100%;
    background: #59d9e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

.logo img{
    width: 45px;
}

nav ul{
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a{
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover{
    color: #006b75;
}

/* HERO */

.hero{
    width: 100%;
    height: 350px;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* ondas decorativas */

.hero::before{
    content: "";
    position: absolute;
    width: 120%;
    height: 150px;
    bottom: -80px;
    border-radius: 50%;
}

.hero-logo img{
    width: 320px;
    z-index: 2;
    position: relative;
}

/* TRABAJOS */

.trabajos{
    padding: 60px 10%;
    text-align: center;
}

.trabajos h2{
    margin-bottom: 40px;
    color: #59d9e6;
}

.galeria{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
}

.card{
    background: #ddd;
    border-radius: 10px;
    overflow: hidden;
    height: 180px;
}

.card img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ESPECIALIDADES */

.especialidades{
    padding: 60px 10%;
    background: white;
    text-align: center;
}

.especialidades h2{
    margin-bottom: 40px;
    color: #59d9e6;
}

.especialidades-grid{
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 70px;
}

.especialidad{
    background: #ffffff;
    padding: 35px;
    border-radius: 15px;
    transition: 0.3s;
}

.especialidad:hover{
    transform: translateY(-5px);
}

.especialidad img{
    width: 70px;
    margin-bottom: 15px;
}

/* CONTACTO */

.contacto{
    padding: 80px 10%;
    display: flex;
    justify-content: center;
}

.contact-box{
    background: #59d9e6;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    color: white;
    width: 500px;
}

.contact-box h2{
    margin-bottom: 15px;
}

.contact-box p{
    margin-bottom: 30px;
}

.btn{
    background: white;
    color: #59d9e6;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover{
    background: #006b75;
    color: white;
}

/* REDES */

.redes{
    padding: 60px 10%;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
    text-align: center;
    background: white;
}

.red-item i{
    font-size: 40px;
    color: #006bff;
    margin-bottom: 10px;
    text-decoration: none;
    color: inherit;

}

.red-item{
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.red-item:hover{
    transform: scale(1.1);
}

.red-item{
    text-decoration: none;
    color: inherit;
}

.red-item p{
    font-size: 14px;
}

.red-item i:hover{
    color: #59d9e6;
}

/* RESPONSIVE */

@media(max-width: 900px){

    .galeria{
        grid-template-columns: repeat(2,1fr);
    }

    .especialidades-grid{
        grid-template-columns: repeat(2,1fr);
    }

    .redes{
        grid-template-columns: repeat(2,1fr);
    }

}

@media(max-width: 600px){

    header{
        flex-direction: column;
        gap: 15px;
    }

    nav ul{
        gap: 15px;
    }

    .galeria{
        grid-template-columns: 1fr;
    }

    .especialidades-grid{
        grid-template-columns: 1fr;
    }

    .redes{
        grid-template-columns: 1fr;
    }

}

/* GALERÍA */

.galeria{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 40px;
}

.proyecto{
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    transition: 0.3s;
}

.proyecto img{
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.proyecto:hover{
    transform: scale(1.05);
}

/* MODAL */

.modal{
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);

    justify-content: center;
    align-items: center;
}

.modal-contenido{
    background: white;
    width: 80%;
    max-width: 700px;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
}

.modal-contenido img{
    width: 50%;
    border-radius: 15px;
    margin-bottom: 20px;
}

.modal-contenido h3{
    margin-bottom: 10px;
    color: #59d9e6;
}

.cerrar{
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 35px;
    cursor: pointer;
}

/* RESPONSIVE */

@media(max-width:900px){

    .galeria{
        grid-template-columns: repeat(2,1fr);
    }

}

@media(max-width:600px){

    .galeria{
        grid-template-columns: 1fr;
    }

}

#modal-media iframe{

    width: 100%;
    height: 500px;

    border-radius: 15px;
}

/* =========================
   CARRUSEL
========================= */

.carrusel-container{

    position: relative;

    width: 100%;
}

.carrusel-container img{

    width: 50%;

    max-height: 600px;

    object-fit: contain;

    border-radius: 15px;
}

/* BOTONES */

.prev,
.next{

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    background: rgba(0,0,0,0.5);

    color: white;

    border: none;

    padding: 15px;

    cursor: pointer;

    font-size: 30px;

    border-radius: 50%;

    z-index: 10;
}

.prev{

    left: 10px;
}

.next{

    right: 10px;
}

.prev:hover,
.next:hover{

    background: rgba(0,0,0,0.8);
}

.conoceme h1{ 
        color: #59d9e6;

}

.conoceme{
 
    
    position: relative;

    background: #f2f2f2;

    padding: 100px 10%;

    overflow: hidden;
}

.conoceme-container{

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 80px;

    position: relative;

    z-index: 2;
}

.conoceme-img img{

    width: 350px;
}

.conoceme-texto{

    max-width: 500px;
}



.onda-top{

    position: absolute;

    left: -100px;

    top: 250px;

    width: 500px;

    height: 80px;

    background: #59d9e6;

    border-radius: 100px;
}



.habilidades{

    padding: 50px 10%;
        background: #59d9e6;

}

.habilidades h2{

    font-size: 40px;
    color: white;
    margin-bottom: 40px;
}

/* GRID ICONOS */

.skills-grid{

    display: flex;

    flex-wrap: wrap;

    gap: 50px;
}

.skills-grid img{

    width: 80px;

    transition: 0.3s;
}

.skills-grid img:hover{

    transform: scale(1.1);
}

@media(max-width:1000px){

    .conoceme-container{

        flex-direction: column;
    }

    .conoceme-texto{

        text-align: center;
    }

    .conoceme-texto h1{

        font-size: 40px;
    }

    .conoceme-texto p{

        font-size: 22px;
    }

    .conoceme-img img{

        width: 280px;
    }

    .habilidades h2{

        font-size: 40px;
    }

}