@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');
*{box-sizing: border-box;}
body,html{
    height: 100%;
}
body{
    background:#dddddd;
    font-family: Poppins, Arial, Helvetica, sans-serif;
    margin:0;
    padding:0;
}
h1{
    color:#bf3f57;
    font-size:45px;
    font-weight: 400;
}

.header {
    height: 100px;
    width: 100%;
    background-color: #0a0d1f90;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position:absolute;
    z-index: 200;
    top:0;
    position:fixed;
    transition:all 1s;
}
.header_compacto{
    height:50px;
}
.header_compacto img{
    height:30px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Align items to the left and right edges of the container */
    align-items: center;
}


.menu {
    display: flex;
    align-items: center;
}

.menu a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    transition:all 1s;
}
.menu a:hover{
    color:#bf3f57;
}
.openMenu{cursor:pointer; display:none;}
.openMenu img{
    height:40px;
}

.intro {
    z-index: 10;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.intro_bg{
    background: url('img/bg-top.png') center top;
    background-size: cover;
    position:absolute;
    width: 100%;
    height:130%;
    z-index: 10;
}
.intro_logo{
    position: relative;
    z-index: 20;
    max-width: 80%;
}

#about{
    width:100%;
    max-width: 1200px;
    background:#fefefe;
    margin: 0 auto;
    display: flex;
    justify-content: space-between; /* Align items to the left and right edges of the container */
    align-items: center;
    padding:5% 7%;
    z-index: 30;
    position: relative;
    flex-direction: column;
}
#about .logo{
    width:33%;
    text-align: center;
    margin-bottom:50px;
}
#about .logo img{
    max-width:100%;
}
#about .info{
    width:90%;
}
#about a{
    color:#bf3f57;
    font-size:14px;
    font-weight: 600;
    transition: all .5s;
    cursor: pointer;
}
#about a:hover{
    color:#3b4db7;
}
.title{
    background:#0a0d1f;
    color:#ffffff;
    text-align: center;
    padding:100px 0 90px 0;
    z-index: 20;
    top:-10px;
    position:relative;
}
.title h1{
    margin:0;
}

.box_container{
    width:100%;
    margin-top:-10px;
}
.box{
    height:400px;
    background-position: center center;
    background-size:cover;
    width:33.333%;
    display: flex;
    float:left;
    justify-content: center;
    align-items: center;
    position:relative;
    z-index: 10;
    font-size: 30px;
    color:#0a0d1f;
    text-align: center;
    line-height:30px;
    font-weight: 600;
}
.box_shade{
    position: absolute;
    top:0; 
    left:0;
    width:100%;
    height:100%;
    background:rgba(225, 227, 240, 0.73);
    z-index: 20;
    display: block;
}
.box p{
    z-index: 30;
    position:absolute;
    cursor:pointer;
    padding:10px;
    transition:all 1s;
}
.box p:hover{
    color:#bf3f57;
}
#consultapsicologia{background-image: url(img/bg_psicologia.png);}
#programastard{background-image: url(img/bg_stard.png);}
#terapiaallison{background-image: url(img/bg_allison.png); background-position:center right;}
#farmacianeurociencias{background-image: url(img/bg_farmacia.png);}
#consultapsiquiatria{background-image: url(img/bg_psiquiatria.png); background-position:center right;}
#neurolab{background-image: url(img/encefalograma.jpg);}

#neurolab img{max-height: 250px;}

#programastard img{height: 40px;}

#ubicacion{
    width: 100%;
    height:450px;
    display: flex;
    flex-direction: row;
}
#ubicacion .mapa{
    width: 50%;
    height: 100%;
}
#ubicacion .info{
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background:#0a0d1f;
    color:#d5d5d5;
}
#ubicacion h1{
    margin-top:0;
}

#ubicacion .info p{
    width:50%;
    text-align: center;
}

#contacto{
    width: 100%;
    text-align: center;
    font-size:30px;
    color:#0a0d1f;
    padding:70px;
}
.contacto_cel{margin-right:50px;}
#contacto img{
    vertical-align: middle;
    margin-right:10px;
}
#contacto a,  #contacto a:visited{
    color:#0a0d1f; 
    text-decoration: none;
    font-weight: 600;
}

.arrow_top{
    position:fixed;
    z-index: 200;
    bottom:10px;
    right:10px;
    width:50px;
    height:50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    background:#bf3f57;
    color:#fff;
    cursor:pointer;
    transition:all 1s;

    display:none;   
}
.arrow_top:hover{
    background:#565656;
}

#lightbox{
    height: 100%;
    width: 100%;
    top:0; right:0; bottom:0; left:0;
    margin:auto;
    position:fixed;
    z-index:300;
    background:rgba(255, 255, 255, .9);
    display:none;
}
.lightbox_inside{
    position:absolute;
    width:70%;  
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.lightbox_close{
    position:absolute;
    top:-5px;
    right:-5px;
    width:30px;
    height:30px;
    border-radius:50%;
    background:#565656;
    text-align: center;
    line-height: 30px;
    color:#fff;
    cursor:pointer;
    transition:all 1s;
}
.lightbox_close:hover{
    background:#000;
}
.servicio_content{
    width:100%;
    max-height: 80vh;  
    overflow-y:auto;
    padding:40px 50px;
    border-radius:5px;
    background:#fff;
    border:#565656 1px solid;
    display: none;

}
.servicio_content h1{
    margin:0;
}
.capital{font-size:20px; color:#bf3f57;}
.center{text-align: center;}
.btn_cita{
    background:#232e6d;
    color:#fff;
    display: inline-block;
    border-radius:0 0 10px 10px;
    padding:10px 20px;
    text-decoration: none;
    transition:all .5s;
}
.btn:hover{
    background:#3b4db7;
}
.video{
    text-align: center;
    margin:auto;
    background:#0a0d1f;
    padding:5px;
    border-radius:3px;

  }
  .video_container{
    position: relative;
    width: 60%;
    padding-bottom: 33.75%; /* 16:9 */
    height: 0;
    margin:auto;
  }
  .video_container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }
.consulta_header{
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    background:#f4f4f4;
    padding:20px;
    border-radius:110px 10px 110px 110px;
    position:relative;}
.consulta_header h1{
    line-height: 45px;
    margin-bottom:10px;
    position: relative;
    z-index: 200;
}
.foto_dr{
    height: 200px;
    width:200px;
    overflow: hidden;
    border-radius:100px;
    float:left;
    position: relative;
    border:#3b4db7 2px solid;
    margin-right:20px;
}
.foto_dr img{
    height: 100%;
    width: 100%;
    margin:auto;
    left:0; top:0; right:0; bottom:0;
}
.servicio_content h1 span{
    display: block;
    color:#232e6d;
    font-size:30px;
}

#neurolab_content .consulta_header{
    background: url(img/encefalograma.jpg) center center;
    background-size: cover;
    height:250px;
    border-radius: 50px 10px 50px 50px;
}
#neurolab_content .consulta_header:before{
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color:rgba(10, 13, 31, 0.8);
    content: ' ';
    z-index: 10;
    border-radius: inherit;
}

#about_content .consulta_header{
    background: url(img/bg_aboutus.png) center center;
    background-size: cover;
    height:250px;
    border-radius: 50px 10px 50px 50px;
}
#about_content .consulta_header:before{
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background-color:rgba(10, 13, 31, 0.8);
    content: ' ';
    z-index: 10;
    border-radius: inherit;
}

  
.parent {
    position: relative;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.cell {
    width: calc(33.333% - 10px); /* Adjust as needed */
    height: 300px; /* Adjust as needed */
    background: #f4f4f4; /* Just for visualization */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px 5px 10px 5px;
    overflow: hidden;
    margin-bottom: 10px; /* Adjust as needed */
}
  .cell img{
    max-height: 100%;
    max-width: 100%;
    top: 50%;
    left: 50%;
  }

@media (max-width: 800px) {
    .openMenu{display:inline-block;}
    .menu_inside{
        display:none;
        position:absolute;
        top:100px;
        right:0;
        text-align: center;
        background-color: #0a0d1f90;
        transition:all 1s;
    }
    .menu_inside a{
        display: block;
        padding:10px 30px;
        margin-left:0;
    }

    #about .logo{
        width:70%;
        text-align: center;
        margin-bottom:30px;
    }
    #about .info{
        width:90%;
    }

    h1{
        font-size: 40px;
    }
    .title{
        padding:50px 0 40px 0;
    }
    .box{
        font-size:25px;
        width:50%;
        height:250px;
    }
    #ubicacion {
        flex-direction: column-reverse;
      }
      #ubicacion .info{
        padding:20px 0px;
      }
      #ubicacion .info p{
        width:80%;
      }
      #ubicacion .mapa, #ubicacion .info{
        width:100%;
      }
      #ubicacion h1{margin-bottom:0;}

    #contacto{
        font-size:20px;
    }

    #contacto img{height: 40px;}
    #contacto span{display: block; margin-bottom:20px;}
    #contacto span img{
        height:30px;
    }
    .contacto_cel{margin-right:0;}

    .lightbox_inside{
        width:85%;  

    }
    .servicio_content{
        padding:30px;
    }
    .servicio_content h1{
        line-height: 37px;
    }

    .consulta_header{
        flex-direction: column;
        align-items: center;
        border-radius:30px 10px 30px 30px;

    }
    #neurolab img{max-height: 150px;}
    #neurolab_content .consulta_header{
        flex-direction: row;
        align-items:  flex-end;
    }
    #neurolab_content .consulta_header img{
        max-width: 100%;
    }


    .video {
        margin-top:10px !important;
      }
    .video_container{
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 */
      }

      .galeria .gal_item{
        height:150px;
        max-width: 40%;
    }

    .cell {
        width: calc(50% - 10px); 
        height: 200px; 
    }

    

  }
  
  @media (max-width: 450px) {
    .title h1 {
        line-height: 40px;
      }
    .box p{
        font-size: 20px;
    }
    .servicio_content h1 {
       font-size:35px;
      }
  }


