/* =========================
   RESET GENERAL
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    overflow-x:hidden;
}

/* =========================
   HEADER
========================= */

header{
    width:100%;
    height:90px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
    position:fixed;
    top:0;
    left:0;
    z-index:1000;
    box-shadow:0 2px 10px rgba(0,0,0,.1);
}

.logo img{
    width:170px;
    max-width:100%;
}

/* BOTÓN HAMBURGUESA */

.menu-toggle{
    width:50px;
    height:50px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:6px;
    cursor:pointer;
}

.menu-toggle span{
    width:30px;
    height:4px;
    background:#1f2f67;
    border-radius:5px;
    transition:.3s;
}

/* MENÚ CELULAR */

nav{
    position:absolute;
    top:90px;
    left:0;
    width:100%;
    background:#fff;
    display:none;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
}

nav.active{
    display:block;
}

nav ul{
    list-style:none;
}

nav ul li{
    border-bottom:1px solid #eee;
}

nav ul li a{
    display:block;
    padding:15px 20px;
    text-decoration:none;
    color:#1f2f67;
    font-weight:bold;
    transition:.3s;
}

nav ul li a:hover{
    background:#57d3b4;
    color:#fff;
}

/* =========================
   HERO
========================= */

.hero{
    width:100%;
    min-height:100vh;
    background:url("imagenes/Inicio-portada/portada.png");
    background-size:cover;
    background-position:center;
    display:flex;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 20px 50px;
}

.contenido-hero{
    max-width:600px;
}

.logo-hero{
    width:100%;
    max-width:400px;
}

.btn-whatsapp{
    display:inline-block;
    margin-top:30px;
    background:#57d3b4;
    color:#1f2f67;
    padding:15px 25px;
    text-decoration:none;
    font-weight:bold;
    border-radius:10px;
    transition:.3s;
}

.btn-whatsapp:hover{
    transform:translateY(-3px);
}

/* =========================
   REDES
========================= */

.redes{
    position:fixed;
    top:50%;
    right:-165px;
    transform:translateY(-50%);
    z-index:999;
}

.redes a{
    width:220px;
    height: 50px;
    display:flex;
    align-items:center;
    gap:25px;
    padding-left:20px;
    text-decoration:none;
    color:#fff;
    transition:.4s;
}

.redes a:hover{
    transform:translateX(-160px);
}

.facebook,
.whatsapp{
    background:#57d3b4;
}

.instagram,
.correo{
    background:#1f2f67;
}

/* =========================
   SERVICIOS
========================= */

.servicios{
    padding:80px 5%;
    background:#f5f5f5;
}

.servicios h2{
    text-align:center;
    font-size:clamp(2rem,4vw,3.5rem);
    color:#1f2f67;
    margin-bottom:50px;
}

.contenedor-servicios{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(350px,1fr));
    gap:30px;
}

.card{
    background:#fff;
    padding:60px;
    text-align:center;
    border-radius:10px;
    box-shadow:0 5px 15px rgba(0,0,0,.1);
    transition:.3s;
}

.card:hover{
     background:#57d3b4;
    transform:translateY(-10px);
}
.card:hover img{
    filter:brightness(0) invert(1);
}

.card:hover h3,
.card:hover p{
    color:#fff;
}
.card img{
    width:80px;
    margin-bottom:20px;
}

.card h3{
    color:#1f2f67;
    margin-bottom:15px;
}

.card p{
    line-height:1.6;
}

/* =========================
   ESPECIALIDADES
========================= */

.especialidades{
    padding:80px 5%;
    background:#63c7ac;
}

.especialidades h2{
    text-align:center;
    color:#1f2f67;
    font-size:clamp(2rem,4vw,3rem);
    margin-bottom:40px;
}

.card-especialidad{
    max-width:900px;
    margin:auto;
    background:#fff;
    border-radius:10px;
    padding:30px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
}

.img-box{
    width:220px;
}

.img-box img{
    width:100%;
}

.contenido h3{
    color:#1f2f67;
    font-size:2rem;
}

.flecha{
    border:none;
    background:none;
    font-size:40px;
    cursor:pointer;
    color:#57d3b4;
}

/* =========================
   CALIDAD
========================= */

.calidad{
    background:#1f2f67;
    padding:80px 5%;
}

.calidad h2{
    text-align:center;
    color:#fff;
    font-size:clamp(2rem,4vw,3.5rem);
    margin-bottom:50px;
}

.barra{
    margin-bottom:30px;
}

.progreso{
    width: 80%;
    height: 25px;
    background: rgba(255,255,255,.15);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    margin: auto;
}

.progreso .relleno{
    width: 0%;
    height: 100%;
    background: #35c59b;
    border-radius: 50px;
}


.contador{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
    color:#fff;
    font-weight:bold;
}

.barra h3{
    text-align:center;
    color:#fff;
    margin-top:10px;
}

/* =========================
   FOOTER
========================= */

footer{
    background:#f5f5f5;
    border-top:5px solid #1f2f67;
    padding:25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:15px;
}

footer p{
    color:#1f2f67;
    font-weight:bold;
}

/* =========================
   TABLET Y COMPUTADORA
========================= */

@media(min-width:768px){

    .menu-toggle{
        display:none;
    }

    nav{
        position:static;
        display:block !important;
        width:auto;
        box-shadow:none;
    }

    nav ul{
        display:flex;
        align-items:center;
        gap:30px;
    }

    nav ul li{
        border:none;
    }

    nav ul li a{
        padding:0;
    }

    .hero{
        justify-content:flex-end;
        padding-right:10%;
    }
}

/* =========================
   CELULARES
========================= */

@media(max-width:767px){

    .hero{
        min-height:90vh;
        padding:120px 20px 50px;
    }

    .logo-hero{
        max-width:280px;
    }

    .card{
        padding:30px;
    }

    .contenedor-servicios{
        grid-template-columns:1fr;
    }

    .card-especialidad{
        flex-direction:column;
        text-align:center;
    }

    .img-box{
        width:180px;
    }

    .contenido h3{
        font-size:1.5rem;
    }

    .progreso{
        width:95%;
    }

    footer{
        flex-direction:column;
        text-align:center;
    }

    /* Redes sociales */

    .redes{
        right:-170px;
    }

    .redes a{
        width:220px;
    }

    .redes a:hover{
        transform:translateX(-160px);
    }
}