@import url('https://fonts.googleapis.com/css2?family=MuseoModerno:ital,wght@400;700;900&display=swap');
@import url('https://fonts.cdnfonts.com/css/new-walt-disney-font');


*{
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'MuseoModerno', cursive;
    
   
}

body{
    background: #fffe92;
    
   
}




/* Navbar */
.header {
    box-sizing: border-box;
    background-color: #03588C;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 95px;
    padding: 5px 5%;
    position: relative;
    overflow: hidden; /* Prevents content from overflowing */
}

.header .logo {
    cursor: pointer;
}

.header .logo img {
    height: 75px;
    width: auto;
    transition: all 0.3s;
}

.header .logo img:hover {
    transform: scale(1.2);
}

.header nav {
    position: relative;
    display: flex;
    align-items: center;
}

/* Adjust position of the nav toggle button */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: absolute;
    left: 0; /* Move button to the far left */
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle .hamburger {
    width: 30px;
    height: 3px;
    background: #eceff1;
    position: relative;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after {
    content: '';
    width: 30px;
    height: 3px;
    background: #eceff1;
    position: absolute;
    left: -50px;
    transition: all 0.3s ease;
}

.nav-toggle .hamburger::before {
    top: -8px;
}

.nav-toggle .hamburger::after {
    top: 8px;
}

/* Menu styles */
.header .nav-links {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.header .nav-links li {
    padding: 0 20px;
}

.header .nav-links a {
    font-weight: 700;
    color: #eceff1;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.header .nav-links a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #F2B705;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.header .nav-links a:hover::before {
    visibility: visible;
    width: 100%;
}

.header .nav-links a:hover {
    color: #F2B705;
    transform: scale(1.1);
}

/* Responsive menu */
@media (max-width: 768px) {
    .header .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #03588C;
        position: fixed;
        top: 95px; /* Positioned below the header */
        left: -10px;
        padding: 20px;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        overflow-y: auto; /* Allows scrolling if content overflows */
    }

    .header .nav-links.active {
        display: flex;
    }

    .header .nav-links li {
        padding: 10px 0;
        text-align: center;
    }

    .header .nav-links a {
        font-size: 18px;
    }

    .nav-toggle {
        display: block;
    }
}




/* Parallax Portada */

.container{
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

#portada img{
    width: 100%;
    height: 100vh;
    display: block;
    justify-content: center;
    align-items: center;
    position: absolute;
    object-fit: cover;
}

#titulo {
    position: absolute;
    top: 40%;
    left: 10%;
    font-size: 45px;
    font-weight: 900;
    color: aliceblue;
    filter: drop-shadow(0px 5px 4px rgba(0, 0, 0, 0.521));
}

#izquierda{
    z-index: 1;
}

/* Pantallas medianas (tabletas en orientación vertical) */
@media (max-width: 1024px) and (min-width: 768px) {
    #titulo {
        font-size: 40px;
        top: 35%;
        left: 10%;
    }

    #portada img {
        height: 100vh; 
    }
}

/* Pantallas pequeñas (tabletas en orientación horizontal y móviles) */
@media (max-width: 768px) {
    #titulo {
        font-size: 30px;
        top: 30%;
        left: 10%;
    }

    #portada img {
        height: 100vh; /* Ajusta la altura de las imágenes */
        
    }

    
}

/* Pantallas muy pequeñas (móviles en orientación vertical) */
@media (max-width: 480px) {
    #titulo {
        font-size: 24px;
        top: 25%;
        left: 10%;
    }

    #portada img {
        height: 100vh; 
    left: 0px;
    
    }

    #persona {
        margin-left: 50px; 
        overflow: visible; 
        
    }
    
}





/* Ajusta el tamaño y la posición de las imágenes y del título en pantallas mayores */
@media (min-width: 1025px) {
    #portada img {
        height: 100vh; /* Mantén la altura completa en pantallas grandes */
    }
    
}




/* horario */

.horario-container {
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 15px;
    background-color: #6ab4cf;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: white;
    

    
}

.horario-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.horario-titulo {
    font-size: 2em;
    font-weight: bold;
    color: #F2F2F2;
    margin-right: 10px;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.horario-titulo i {
    margin-right: 10px;
    color: #F27405;
}

.horario-imagen {
    width: 64px;
    height: 64px;
}

.horario-tabla {
    width: 100%;
    border-collapse: collapse;
    border-radius: 15px;
    overflow: hidden;
}

.horario-tabla th,
.horario-tabla td {
    padding: 15px;
    text-align: center;
    border: 1px solid #ddd;
    font-size: 1.2em;
    font-family: 'Comic Sans MS', 'Comic Sans', cursive;
}

.horario-tabla th {
    background-color: #03588C;
    color: #F2F2F2;
}

.horario-tabla tr:nth-child(even) {
    background-color: #f9f9f9;
}

.horario-tabla tr:hover {
    background-color: #f1f1f1;
}

.horario-tabla tr td:first-child {
    font-weight: bold;
    color: #03588C;
}

.horario-tabla thead tr {
    background-color: #e6e1e0;
    color: white;
}

.horario-tabla tbody tr {
    background-color: rgb(172, 192, 204); 
}

.horario-tabla tbody tr:nth-child(even) {
    background-color: rgb(172, 192, 204); 
}

.horario-tabla tbody tr:hover {
    background-color: #8cc4d9;
}





/* Portada */

.cover-image {
    width: 100%;
    height: auto;
    display: block;
}



/* */


.section1 {
    padding: 60px 20px; /* Aumenta el padding para darle más espacio vertical a la sección */
    min-height: 100vh; /* Asegura que la sección tenga al menos la altura de la ventana */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    text-align: center;
    
}

.section1 .container {
    max-width: 1200px;
    
    text-align: center;
    color: #03588C;
}

.text-center {
    text-align: center;
}

.text-center h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #03588C;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.text-center p {
    font-size: 18px;
    color: #03588C;
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background-color: #F27405;
    color: #fff;
    text-decoration: none;
    border-radius: 50px; 
    border: 3px solid #F27405; 
    transition: all 0.3s ease;
}

.btn-primary:hover {
    color: #fff;
    background-color: #03588C;
    border-color: #03588C;
}


.image {
    margin-top: 10px;
    
}

.image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Media Queries */

@media (max-width: 768px) {
    .section1 {
        padding: 40px 10px ; /* Reduce el padding en pantallas más pequeñas */
        margin-bottom: -400px; /* ESTAS ES PARA EL ESPACIO FEO */
    }

    .text-center h2 {
        font-size: 32px;
        margin-bottom: 15px; /* Ajusta el margen inferior del título */
    }

    .text-center p {
        font-size: 16px;
        margin-bottom: 15px; /* Ajusta el margen inferior del párrafo */
    }

    .btn-primary {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 10px; /* Ajusta el margen inferior del botón */
    }

    .image {
        margin-top: 20px; /* Ajusta el margen superior de la imagen */
    }
}

/* Ajustes adicionales para pantallas muy pequeñas (móviles en orientación vertical) */
@media (max-width: 480px) {
    .section1 {
        padding: 10px 5px; /* Reduce aún más el padding en pantallas muy pequeñas */
    }

    .text-center h2 {
        font-size: 28px;
        margin-bottom: 10px; /* Ajusta el margen inferior del título */
    }

    .text-center p {
        font-size: 14px;
        margin-bottom: 10px; /* Ajusta el margen inferior del párrafo */
    }

    .btn-primary {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 5px; /* Ajusta el margen inferior del botón */
    }

    .image {
        margin-top: 15px; /* Ajusta el margen superior de la imagen */
    }
}


.diagnosticos-tratamientos {
    padding: 20px;
    padding-left: 150px;
    padding-right: 150px;
    max-width: 1200px;
    margin: 0 auto;
}

.titulo-principal {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #03588C;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.texto-general {
    text-align: center;
    margin-bottom: 40px;
    color: #032d47;
    font-size:  20px;
}

/* Estilos para las secciones de consulta */
.consulta-seccion {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.consulta-texto {
    flex: 1;
    margin-right: 10px; /* Espacio entre el texto y la imagen */
    color: #03588C;
    font-size:  20px;
}

.consulta-imagen {
    flex: 0 0 300px; /* Ancho fijo para la imagen */
    margin-left: 10px; /* Espacio entre el texto y la imagen */
    margin-top:  10px;
}

.consulta-imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Estilos específicos para cada tipo de consulta */
.infantil-imagen img {
    border: 2px solid #4CAF50; /* Borde verde para la imagen infantil */
}

.juvenil-imagen img {
    border: 2px solid #FF5722; /* Borde naranja para la imagen juvenil */
    margin-top: 50px;

}

/* Estilos para las listas */
.lista-infantil,
.lista-juvenil {
    list-style-type: disc;
    padding-left: 20px;
}

.lista-infantil li,
.lista-juvenil li {
    margin-bottom: 10px;
}

.motivos-infantil,
.motivos-juvenil {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #032d47;
}

/* Responsive */

@media (max-width: 1200px) {
    .diagnosticos-tratamientos {
        padding-left: 100px;
        padding-right: 100px;
    }
}

@media (max-width: 992px) {
    .diagnosticos-tratamientos {
        padding-left: 50px;
        padding-right: 50px;
    }
    
    .consulta-seccion {
        flex-direction: column;
        align-items: center;
    }

    .consulta-texto {
        margin-right: 0;
        margin-bottom: 20px; /* Espacio entre el texto y la imagen */
    }

    .consulta-imagen {
        margin-left: 0;
    }

    .juvenil-imagen img {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .titulo-principal {
        font-size: 30px;
    }

    .texto-general {
        font-size: 16px;
    }

    .consulta-texto {
        font-size: 18px;
    }

    .consulta-imagen {
        flex: 1 0 auto;
        margin-top: 20px;
    }

    .consulta-imagen img {
        width: 100%; /* Asegura que la imagen se ajuste al ancho del contenedor */
        height: auto;
    }
}

@media (max-width: 576px) {
    .titulo-principal {
        font-size: 30px;
    }

    .texto-general {
        font-size: 18px;
    }

    .consulta-texto {
        font-size: 18px;
    }

    .consulta-imagen img {
        width: 100%; /* Asegura que la imagen se ajuste al ancho del contenedor */
        height: auto;
    }

    .motivos-infantil,
    .motivos-juvenil {
        font-size: 18px;
    }

    .lista-infantil,
    .lista-juvenil {
        padding-left: 10px;
    }
}






/* frase general*/

.general {
    max-width: 600px; 
    margin: 50px auto; 
    padding: 20px; 
    background: linear-gradient(to bottom right, rgba(3, 88, 140, 0.8), rgba(4, 196, 217, 0.8), rgba(242, 183, 5, 0.8), rgba(242, 116, 5, 0.8));
    
    box-shadow: 0 0 10px rgba(0,0,0,0.1); 
    border-radius: 8px; 
    text-align: center; 
}

.general p {
    font-size: 3em; 
    margin-bottom: 20px; 
    font-family: 'New Walt Disney Font', sans-serif;
    color: #F2F2F2; 
}

.general a {
    font-size: 1.0em; 
    color: #e6e1e0; 
    font-style: italic; 
    margin-top: 20px; 
    text-align: center; 
    font-family: 'Comic Sans MS', cursive;
}

/* Botón flotante */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #F27405;
    color: #fff;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.floating-btn:hover {
    background-color: #f7de00;
    
}

.navbar.scrolled + .floating-btn {
    opacity: 1;
}


/* Responsive*/

@media (max-width: 1200px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 992px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 768px) {
    .floating-btn {
        width: 45px;
        height: 45px;
        bottom: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        width: 40px;
        height: 40px;
        bottom: 5px;
        right: 35px;
    }
}





/*Pie de Pagina*/
.pie-pagina{
    width: 100%;
    background-color: #03588C;
}
.pie-pagina .grupo-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap:50px;
    padding: 45px 0px;
}

.pie-pagina .box {
     /* Opcional: para centrar el contenido */
    padding-top: 20px; 
}

.pie-pagina .box h2, 
.pie-pagina .box2 h2 {
    margin-top: 20px; 
    margin-bottom: 10px; 
}

.pie-pagina .box .red-social {
    margin-top: 20px; 
}
.pie-pagina .grupo-1 .box figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-pagina .grupo-1 .box figure img{
    width: 250px;
}
.pie-pagina .grupo-1 .box h2{
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}
.pie-pagina .grupo-1 .box p{
    color: #efefef;
    margin-bottom: 10px;
}

.pie-pagina .box2 {
    font-family: 'Comic Sans MS', cursive;
    color: #F2F2F2;
    font-size: 16px;
    width: 300px; 
    padding: 20px;
    
}

.pie-pagina .box2 h2 {
    font-size: 24px;
    color: #F2F2F2;
    margin-bottom: 10px;
}

.pie-pagina .box2 .contact-info {
    font-size: 14px;
    color: #F2F2F2;
    display: flex;
    flex-direction: column;
}

.pie-pagina .box2 .contact-info div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.pie-pagina .box2 .contact-info i {
    margin-right: 10px; 
    font-size: 18px; 
    color: #F27405; 
}

.pie-pagina .grupo-1 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    color: #fff;
    margin-right: 10px;
    background-color: #F2B705;
    text-align: center;
    transition: all 300ms ease;
}
.pie-pagina .grupo-1 .red-social a:hover{
    color: #03588C;
}
.pie-pagina .grupo-2{
    background-color: #F2B705;
    padding: 15px 10px;
    text-align: center;
    color: #fff;
}
.pie-pagina .grupo-2 small{
    font-size: 15px;
}

@media (max-width: 480px) {
    .pie-pagina .grupo-1 .box figure img {
        width: 150px;
    }

    .pie-pagina .grupo-1 .box h2 {
        font-size: 16px;
    }

    .pie-pagina .box2 h2 {
        font-size: 18px;
    }

    .pie-pagina .box2 .contact-info {
        font-size: 10px;
    }

    .pie-pagina .grupo-2 small {
        font-size: 13px;
    }
}
@media screen and (max-width: 800px) {
    .pie-pagina .grupo-1 {
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 30px;
        padding: 40px 0px;
        text-align: center;
    }

    .pie-pagina .box {
        /* Ajustes para centrar el contenido en dispositivos móviles */
        text-align: center;
        padding-top: 0; /* Ajuste para dispositivos móviles */
    }

    .pie-pagina .box2 {
        width: 100%; /* Ajuste para ocupar todo el ancho en dispositivos móviles */
    }

    .pie-pagina .contact-info{
        text-align: center;
        padding-top: 0;
    }
    
    
        .pie-pagina .box2 .contact-info {
            align-items: center; /* Centrar elementos en dispositivos móviles */
        }
    }