* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #F2F2F2;
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}
 /* NAVBAR*/

 .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #0476D9;
    color: white;
    position: relative;
    z-index: 1000;
}

.navbar-logo img {
    height: 80px;
    border-radius: 50%;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.navbar-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: 0.3s;
}

.navbar-menu {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}

.navbar-menu ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    margin-right: -75px;
}

.navbar-menu li {
    margin: 0 10px;
}

.navbar-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar-menu a:hover {
    color: #ddd;
}

.navbar-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.navbar-menu a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-menu a:hover {
    color: #5CBF41;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        position: absolute; /* Cambiar a 'fixed' para que ocupe toda la pantalla */
        top: 0;
        right: 0;
        background-color: #0476D9;
        border-radius: 0;
        flex-direction: column;
        width: 100vw; 
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        padding-top: 70px; 
        border-top: 1px solid #444;
    }

    .navbar-menu.active {
        display: flex;
        
    }

    .navbar-toggle {
        display: flex;
        
    }
    .navbar-menu li {
        margin: 10px 0; 
        text-align: center; 
    }
}


/*Bienvenida*/
#bienvenida {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #f8fafc, #0476D9, #5CBF41, #61A64E);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    color: #F2F2F2;
    font-family: 'Times New Roman', Times, serif;
}



@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.container1 {
    text-align: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.animated-text {
    font-size: 50px;
    font-weight: bold;
    animation: textAnimation 3s infinite alternate;
}



@keyframes textAnimation  {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-30px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .animated-text {
        font-size: 24px;
    }
}



/* Introducion*/
.intro-content {
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.intro-content .text  {
    flex: 1;
    padding-right: 20px;
    text-align: left;

}

#psicologia1 h2{
    flex: 1;
    padding-top: 0.5em;
    padding-bottom: 1em;
    font-size: 2.5em;
    text-align: center;
    color: #5bbf40; 
}

.intro-content .text p {
    flex: 1;
    padding-right: 20px;
    text-align: left;
    padding-left: 140px;
    font-size: 2.5em;
    color: #000000;
}

.intro-content .image {
    flex: 1;
    display: flex;
    justify-content: center;
    padding-bottom: 1em;
    
}

.intro-content .image img {
    max-width: 300px;
    height: auto;
    box-shadow: 0 10px 20px rgba(56, 163, 56, 0.562);
    border-radius: 50%;
}

.section img {
    max-width: 1300px;
    height: auto;
}



/* Media Queries para pantallas más pequeñas */
@media (max-width: 768px) {
    .intro-content {
        flex-direction: column; /* Cambia a dirección columna en dispositivos pequeños */
        align-items: center;
        text-align: center; /* Centra todo el contenido en dispositivos pequeños */
    }

    .intro-content .text {
        width: 100%; /* Asegura que ocupen todo el ancho disponible */
        margin-top: -20px;
        margin-left: -150px;
        font-size: 14px;
       
    }

    .intro-content .image {
        width: 100%; /* Asegura que ocupen todo el ancho disponible */
        margin-top: 20px;
        
        
    }

    .intro-content .text h2 {
        text-align: center;
        font-size: 10px; /* Reduce el tamaño del título */
    }
}



/* Sección de Ubicación */

 #ubicacion .container h1 {
    color: #5CBF41;
    padding-top: 0.5em;
    font-size: 3.0em;
    text-align: center; 
}

#ubicacion p {
    color: #000000; 
    font-size: 18px; 
    text-align: center; 
}

.map-and-image-container {
    display: flex;
    flex-wrap: wrap;
}

.map-container {
    width: 70%; 
    height: 600px; 
    overflow: hidden; 
}

.image-container {
    width: 30%; 
    height: 600px; 
    overflow: hidden; 
}


.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.image-container img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
}

/* responsive*/
@media (max-width: 768px) {
    .map-and-image-container {
        display: block; 
    }

    .map-container {
        width: 100%; 
        height: 300px; 
    }

    .image-container {
        display: none; 
    }
}


/* Estilos para la Sección de Horario */
#horario {
    padding: 60px 0;
    display: flex;
    flex-wrap: wrap;
}

.imagen-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 40%; 
    text-align: center; 
    margin: 0 auto;
}

.horario-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.horario-container h1 {
    padding: 0;
    font-size: 2.5em;
    color: #5CBF41;
}

.horario {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    background-color: #61A64E;
    border-radius: 50%;
    width: 500px;
    height: 350px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.horario h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #F2F2F2;
}

.horario p {
    font-size: 18px;
    color: #f8f8f8;

}

.horario-imagen {
    width: 400px;
    max-height: 400px; 
    border-radius: 50px;
    margin: 0 auto; 
    box-shadow: 0 10px 20px rgba(56, 163, 56, 0.562);
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    #horario {
        flex-direction: column; 
        align-items: center; 
    }

    .horario-container {
        order: 1;
        max-width: 100%;
        margin-top: -80px;
    }

    .imagen-container {
        order: 2;
        max-width: 100%;
    }

    .horario-container h1 {
        padding: 20px;
        padding-top: 1.5em;
        font-size: 2em;
        color: #5CBF41;
        text-align: center;
    }

    .horario {
        width: 250px;
        height: 250px;
        padding: 40px;
    }

    .horario h2 {
        font-size: 20px;
    }

    .horario p {
        font-size: 16px;
    }

    .horario-imagen {
        margin-top: 20px;
        width: 300px;
        max-height: 300px; 
    }
}



/* Estilos de la Sección de Contacto */
/* Estilos de la Sección de Contacto */
.contacto-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 1em;
}

.contacto-imagen {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 30%; 
    text-align: center; 
    margin: 0 auto;
    padding-left: 100px;
}

.contacto-imagen img {
    box-shadow: 0 10px 20px rgba(56, 163, 56, 0.562);
    border-radius: 50%;
}

.contacto-info {
    flex: 1;
    padding: 0 60px;
    text-align: left;
}

.contacto-info h2 {
    color: #5CBF41;
    font-size: 2.0em;
    margin-bottom: 20px;
    padding-left: 100px;
}

.contacto-info p {
    color: #000000;
    font-size: 18px;
    margin-bottom: 10px;
    padding-left: 100px;
    padding-right: 80px;
}

.contacto-info p i {
    margin-right: 10px;
    color: #cc7676;
    font-size: 30px;
}

.contacto-info .fa-facebook-f {
    color: #1052d4;
    margin-right: 10px;
    
}

.contacto-info .fa-whatsapp {
    color: #25D366;
    margin-right: 10px;
}

.contacto-info .fa-map-marker-alt {
    color: #db4437; 
    margin-right: 10px;
}

/* Estilos Responsivos */
@media (max-width: 768px) {
    .contacto-content {
        flex-direction: column;
        align-items: center;
    }

    .contacto-imagen {
        max-width: 80%;
        padding-left: 0;
        
    }

    .contacto-info {
        padding: 0 20px;
        text-align: center;
        
        
    }

    

    .contacto-info h2 {
        padding-left: 0;
    }

    .contacto-info p {
        padding-left: 0;
        padding-right: 0;
        text-align: justify;
    }

    .contacto-titulo {
        width: 100%;
        text-align: center;
        
    }

    .contacto-info h2 {
        font-size: 2.5em;
        color: #5CBF41;
        margin-bottom: 15px;
        margin-top: 20px;
        
    }
}


/* Botón flotante */
.floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #5CBF41;
    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: #4CA934;
    
}

.navbar.scrolled + .floating-btn {
    opacity: 1;
}


.navbar.scrolled + .floating-btn {
    opacity: 1;
}

/* Estilos responsive */
@media (max-width: 768px) {
    .floating-btn {
        width: 60px;
        height: 60px;
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .floating-btn {
        width: 50px;
        height: 50px;
        bottom: 10px;
        right: 10px;
    }
}




/* Footer */

.footer {
    background-color: #0476D9;
    color: #F2F2F2;
    padding: 20px 0;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer .footer-logo img {
    max-width: 100px;
    border-radius: 50px;
}

.footer-social ul {
    list-style: none;
    display: flex;
}

.footer-social li {
    margin: 0 10px;
}

/* Cambiar colores específicos de los íconos */
.footer-social a[href*="facebook.com"] i {
    color: #10327a; /* Color azul de Facebook */
}

.footer-social a[href*="wa.me"] i {
    color: #25D366; /* Color verde de WhatsApp */
}

.footer-social a {
    color: #EA4335;
    text-decoration: none;
    font-size: 24px;
    display: flex;
    justify-content: center;
    margin-left: 55px;
}

.footer-contact p {
    margin: 5px 0;
}

/* Media Queries */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar-links {
        display: none;
        width: 100%;
    }

    .navbar-links.active {
        display: block;
    }

    .navbar-links ul {
        flex-direction: column;
        width: 100%;
    }

    .navbar-links li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }

    .footer .container {
        flex-direction: column;
        align-items: center;
    }

    .footer-logo, .footer-social, .footer-contact {
        margin-bottom: 20px;
        text-align: center;
        
    }
}
