

body{
    background-color: #ffffff;
    font-family: poppins, sans-serif;
    margin: 0;
}

html{
    scroll-behavior: smooth;
}

#terapias, #actividades, #terapeutas, #quienes-somos{
    scroll-margin-top: 100px
    
}

.overlay{
    display:none;
}

.logo{
    width: 55px;
    height: 55px;
    border-radius: 50%;
    margin-left: 15px;
}

.logo:hover{
    transform: scale(1.3);
    transition: 0.3s;
}

.badge-actividad{
    background:#78d3a6;
    color:white;
    padding:6px 12px;
    border-radius:20px;
    margin-top: 10px;
}

h2{
    text-align: center;
    color: #333;
    margin-top: 60px 
}

.parrafos{
    text-align: center;
    color: #555;
    font-size: 18px;
    margin: 20px;
}

.menu{
    display: flex;
    gap: 20px;
    align-items: center;
}

.ventana-carrusel{
    width:1030px;
    overflow:hidden;
    padding:15px;
}

.terapeutas{
    display:flex;
    gap:20px;
    flex-wrap:nowrap;
    transition: transform 1.5s ease-in-out;
    width: max-content
}

.carrusel-terapeutas{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:25px;
    margin:40px auto;
}

.anterior,
.siguiente{

    width:60px;
    height:60px;

    border-radius:50%;

    background:#fdd01e;

    border:2px solid #fd9e3d;

    font-size:28px;

    font-weight:bold;

    box-shadow:0 8px 20px rgba(0,0,0,.18);

    transition:.25s;
}

.menu a {
    background-color: #fdd01e;
    color: rgb(15, 12, 12);
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    margin: 0 10px; 
    display: flex;
    align-items: center;
    gap: 2px;
    
}

.menu a:hover, .anterior:hover,
.siguiente:hover {
    background-color: #fd9e3d;
    transform: scale(1.10);
    transition: all 0.3s ease;
}

.barra-de-navegacion{
    background-color: #78d3a6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    margin-top: 10px;
    top: 0; 
    position: sticky;
    z-index: 1000;
}

.actividades, .terapias, .testimonios-contenido {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
    flex-wrap: wrap;
}

.fonoaudiologo, .kinesiologo, .terapeuta-ocupacional, .psicologo, .testimonio {
    background-color: #fdd01e;
    width: 220px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0px 16px 40px rgba(0,0,0,0.2);
}

.fonoaudiologo:hover, .kinesiologo:hover, .terapeuta-ocupacional:hover,
.kinesiologia:hover, .terapia-ocupacional:hover, .psicologia:hover, .psicologo:hover, .fonoaudiologia:hover, 
.ados:hover, .hero-contenido a:hover, .actividad-card:hover, .testimonio:hover {   
    background-color: #fd9e3d;
    transition: 0.3s;
    transform: scale(1.05);
    cursor: pointer;
}

.fonoaudiologia, .kinesiologia, .terapia-ocupacional, .psicologia, .ados, .testimonio {
    background-color: #fdd01e;
    width: 220px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.texto-actividad{
    margin-top: 15px;
}

.titulo-especialidad{
    text-align: center;
    color: #333;
    margin-top: 20px;
}

.fotos{
    width: 90%;
    height: 350px;
    object-fit: cover;
    margin: 0 auto;
}

.footer-redes a, .footer-contacto a{
    color: white;
    text-decoration: none;
    display: block;
    margin-bottom: 15px;
}

.footer-redes a:hover, .footer-contacto a:hover{
    color: #fdd01e;
    transition: 0.3s;
}

.terapeuta{
    background-color: #fdd01e;
    width: 220px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0px 16px 40px rgba(0,0,0,0.2);
    flex:0 0 220px;
}

.terapeuta:hover{
    background-color:#fd9e3d;
    transition:0.3s;
    transform:scale(1.05);
    cursor:pointer;
}

.footer-logo img{
    width:150px;
    border-radius:50%;
}

footer h3{
    color:#fdd01e;
}

footer{
    background:#333;
    color:white;
    padding:40px;
}

.footer-superior{
    display:flex;
    justify-content:space-around;
    align-items:flex-start;
    flex-wrap:wrap;
}

.footer-copy{
    width: 100%;
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero{
    background-size: cover;
    background-position: 70% 30%;
    position: relative;
    height: 620px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;
    margin-left: 10px;
    margin-right: 10px;
}

.slide{
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide.activo{
    opacity: 1;
}

.hero-contenido{
    background-color: rgba(0,0,0,0.5);
    height: 90%;
    width: 400px;
    padding: 30px;
    border-radius: 10px;
    color: white;
    animation: aparecer 1s ease;
    text-align: left top;
    position: relative;
    z-index: 10;
}

.terapias a{
    text-decoration: none;
    color: inherit;
}

.boton-activo{
    background-color:#fd9e3d !important;
    transform:scale(1.05);
    border:2px solid rgb(255, 255, 255);
}

.hero-contenido a{
    background-color: #fdd01e;
    color: #333;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.hero-contenido h1{
    color: white;
    text-shadow: 2px 20px 40px rgba(0, 0, 0, 0.5);
    font-size: 30px;
}

.card-quienes{
    width: 90%;
    margin: 40px auto;
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.card-quienes.invertida{
    flex-direction: row-reverse;
}

.areas-fono{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:20px;
}

.areas-fono span{
    background:#78d3a6;
    color:white;
    padding:8px 15px;
    border-radius:20px;
}

.foto-quienes{
    width: 40%;
    border-radius: 10px;
    object-fit: cover;
}

.texto-quienes{
    width: 60%;
}

.texto-quienes-inv{
    width: 60%;
    margin-left: 20px;
}

.cta{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 10px 22px;
    border: 2px solid #222;
    border-radius: 999px;
    background: #d7c993;
    color: #222;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all .25s ease;
}


.actividad-destacada{
    width: 90%;
    margin: 30px auto;
    display: flex;
    gap: 30px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
}

.actividad-destacada img{
    width: 50%;
    height: 450px;
    border-radius: 10px;
    object-fit: cover;
}

#actividades h3{
    text-align: center;
    margin-top: 50px;
}

.actividades-anteriores{
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.actividad-card{
    background-color: #fdd01e;
    width: 250px;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

.actividad-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

.hamburguesa{
    display: none;
    font-size: 35px;
    cursor: pointer;
}

.cerrar{
    display: none;
}

.boton-principal{
    background-color: #fdd01e;
    color: #333;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
}

.contenedor-boton{
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
}

.boton-principal:hover{
    background-color: #fd9e3d;
    transition: 0.3s;
    transform: scale(1.05);
}

@media (max-width:768px), (orientation: landscape) and (max-height: 500px) {

    .barra-de-navegacion{
        display:flex;
        justify-content:space-between;
        align-items:center;
        flex-wrap:wrap;
        padding:20px;
    }

    .hamburguesa{
        display:block;
        font-size:40px;
        cursor:pointer;
    }

    .menu{
    position: fixed;
    top:0;
    right:-300px;
    width:300px;
    height:100vh;
    transition:0.3s;
    }

    .menu.activo{
    
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1000;

    width: 250px;
    height: 100vh;

    display: flex;
    flex-direction: column;
    gap: 20px;

    background: #78d3a6;
    padding: 80px 20px;
    }

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

    .actividad-destacada{
        flex-direction: column;
    }
    .actividad-destacada img{
        width: 100%;
    }
.cerrar{
    display: block;
    font-size: 35px;
    cursor: pointer;
    align-self: flex-end;
}

    body{
        overflow-x:hidden;
    }

.hero{

    height: 500px;
}

.slide{

    object-position: center;
}

.hero-contenido{

    width: 60%;

    margin:20px;

    padding:20px;
}
.hero-contenido h1{

    font-size:32px;
}
.hero-contenido p{

    font-size:18px;
}
.hero-contenido a{

    width:100%;

    text-align:center;

    box-sizing:border-box;
}
.card-quienes{
    flex-direction: column;
    align-items: center;
    width: 90%;
    padding: 20px;
}

.foto-quienes{
    width: 108%;
    height: 250px;
}

.texto-quienes{
    width: 100%;
    margin-top: 20px;
}

.texto-quienes h2{
    text-align: center;
}

.texto-quienes p{
    text-align: left;
}


.fotos{
    height: 280px;
}

.actividad-destacada img{
    height: 300px;
}

.badge-actividad{
    display:block;
    width:max-content;
    margin:15px auto;
}

.footer-superior{
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-contacto,
.footer-redes{
    text-align: center;
}

.footer-contacto a,
.footer-redes a,
.footer-contacto p,
.footer-redes p{
    text-align: center;
}

.texto-quienes h1{
    text-align: center;
}

.texto-quienes .boton-principal{
    display: block;
    width: fit-content;
    margin: 30px auto 0;
}

.card-quienes{
    flex-direction: column;
    align-items: center;
}

.card-quienes.invertida{
    flex-direction: column;
}

.areas-fono{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:12px;
}

.areas-fono span{
    min-width:180px;
    text-align:center;
    flex:1 1 180px;
}
}

.overlay.activo{
    display:block;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100vh;

    background-color:rgba(0,0,0,0.5);

    z-index:999;
}