
/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    line-height: 1.6;
}

header {
    display: flex;
    justify-content: space-around; /* Distribuye los elementos uniformemente */
    border-bottom: 2px solid #ddd;
    gap: 20px; /* Espacio entre los elementos */
    padding: 6px 0;
    margin-bottom: 20px;
    position: fixed;
    top: 0px;
    left: 0; /* Ajusta la posición a la izquierda */
    right: 0; /* Ajusta la posición a la derecha */
    background-color: #fff;
    z-index: 1500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto; /* Permite desplazamiento horizontal si es necesario */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

header nav ul li  {
    margin: 0 1.5rem;
}

header nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    display: block;
    transition: color 0.3s ease;   
}

header nav ul li a:hover {
    color: #800080;
}

.button {
    color: #333;
    font-size: 1rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 0.3s ease;
    position: absolute;
    height: 45px;
    width: 8%;
    margin-top: 6.5px;
    padding: 1px 1px;
    right: 5%;
    background: transparent;
    border-radius: 5px 5px 5px 5px;
    cursor: pointer;
    border: 2px solid #800080;
    background-color: #fff;
    
}

.button:hover{
    color: #800080;
}

.button:active {
    transform: scale(0.98);
}


.logo img {
    width: 150px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: #333333;
    text-decoration: none;
    padding: 2rem 1rem;
}

.hero {
    text-align: center;
    padding: 2rem 1rem;
    background-color: f4f4f4;
}

.hero p {
    font-size: 1.3rem; /* Aumenta el tamaño del texto */
    font-weight: normal; /* Hace el texto más grueso */
    padding: 8rem; /* Agrega un padding */
    margin-bottom: -120px;
}

.hero h1 {
    font-family: 'Cursive', sans-serif;
    font-size: 3.1em;
    font-weight: bold;
    color:  #800080;
    padding-top: 100px;
    margin-bottom: -120px;

}

.hero h2 {
    font-size: 3rem;
    
}

.services {
    padding: 2rem;
    text-align: center;
}

.services h2 {
    margin-bottom: -1rem;
}

.service-card {
   
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.card {
    background: #f4f4f4;
    margin: 1rem;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 250px;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 150px;
    height: 150px;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    object-fit: cover; /* Ajusta la imagen para que se vea bien dentro del contenedor */
}

.card h3 {
    margin-top: 1rem;
    font-size: 1.5rem;
}

.card p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

.card button {
    background-color: #800080;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
}

.card button:hover {
    background-color: #5e005e;
}

footer {
    text-align: center;
    padding: 1rem 2rem;
    background: #333;
    color: white;
}

.steps {
    
    padding: 2rem;
    display: flex;
    align-items: flex-start;
    justify-content: center; /* Centra horizontalmente */
    background-color: #f9f9f9;
}

.steps h2 {
    width: 100%;
    margin-bottom: 2rem;
    font-size: 1.8rem; /* Tamaño del título ajustado */
}

.steps img {
    max-width: 385px; /* Tamaño máximo de la imagen ajustado */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-right: 5rem; /* Separación de la imagen respecto a los pasos */
   margin-top: 143px;

}

.steps-content {
    max-width: 600px;
    text-align: left;
    flex: 1; /* Para que ocupe el espacio restante */
}

.step {
    display: flex;
    align-items: flex-start;
    margin: 1.5rem 0; /* Margen ajustado */
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    max-width: 500px; /* Ancho máximo de los pasos ajustado */
}

.step:hover {
    transform: translateY(-5px);
}

.step .counter {
    background-color: #800080;
    color: white;
    border-radius: 50%;
    width: 40px; /* Tamaño del contador ajustado */
    height: 40px; /* Tamaño del contador ajustado */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem; /* Tamaño del contador ajustado */
    margin-right: 1rem;
}

.step .content {
    flex: 1;
}

.step .content h3 {
    font-size: 1rem; /* Tamaño del título de paso ajustado */
    margin-bottom: 0.5rem;
}

.step .content p {
    font-size: 0.95rem; /* Tamaño del texto de paso ajustado */
    color: #666;
}

.steps-content button {
    background-color: #800080;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1rem;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
    
}

.steps-content button:hover {
    background-color: #5e005e;
}

.psychologists {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
}

.psychologists h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #4b4b4b;
}

.psychologists p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #666;
}

.psychologist-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.psychologist-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 10px;
    padding: 0.9rem;
    width: 320px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.3s;
}

.psychologist-card:hover {
    transform: translateY(-10px);
}

.psychologist-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.psychologist-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.psychologist-info {
    flex: 1;
}

.psychologist-info h3 {
    font-size: 1.3rem;
    margin: 0;
    
}

.psychologist-info p {
    font-size: 0.9rem;
    margin: 0.2rem 0;
    color: #333;
}

.psychologist-card .description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: -0.6rem;
    text-align: justify;
    
}

.psychologist-card .services {
    font-size: 0.9rem;
    font-weight: bold;
    color: #4b4b4b;
    margin-bottom: -0.9rem;
    text-align: center;
}

.psychologist-card button {
    background-color: #800080;
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    display: block;
    margin: 0 auto;
    transition: background-color 0.3s ease-in-out;
}

.psychologist-card button:hover {
    background-color: #5e005e;
}

.more-specialists {
    background-color: #800080;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 2rem;
    display: inline-block;
    transition: background-color 0.3s ease-in-out;
}

.more-specialists:hover {
    background-color: #5e005e;
}

.psychologist-card i {
    margin-right: 5px;
    color: #800080;
}



.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle i {
    font-size: 1.5rem;
    color: #333;
}
.menu-close {
    display: none; /* Oculta la "X" por defecto */
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
}

/* Media Queries para Responsividad */
@media (max-width: 1024px) {
    .card, .psychologist-card, .program-card {
        width: 45%;
    }

    .steps {
        flex-direction: column;
    }

    .steps img {
        max-width: 50%;
    }
}

@media (max-width: 768px) {

    .psychologist-card img {
        width: 120px; /* Aumenta el tamaño para pantallas más grandes */
        height: 120px;
    }
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        left: 190px;
    }
    nav ul {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        z-index: 1000;
        padding: 20px;
    }

    nav ul.show {
        opacity: 1;
        visibility: visible;
    }


    .menu-close {
        display: none; /* Oculta la "X" por defecto */
        position: absolute;
        top: 20px;
        right: 20px;
        cursor: pointer;
    }

    nav ul.show .menu-close {
        display: block; /* Muestra la "X" solo cuando el menú está abierto */
    }

    
    nav ul li {
        align-items: center;
        text-align: center;
        margin: 20px 0;
        font-size: 2rem;
    
    }

    nav ul li a {
        width: 100%;
        padding: 1rem;
        color: #333;
        text-decoration: none;
        font-size: 8rem;
    }

   

    .hero h1 {
        font-family: Arial, sans-serif;
    
    }

    header nav ul li a {
        padding: 15px 20px;
        margin-left: 0;
        font-size: 1rem;
    }

    .button{
        font-size: 0.9rem; /* Ajuste el tamaño de la fuente en pantallas más pequeñas */
        padding: 10px 40px;
        display: flex;
        text-align: center;
        justify-content: center;
        margin-right: -10px;
        top: 62%;
        left: 180px;
    }

    .button:hover {
        background-color: #5e005e;
    }
    
    .card, .psychologist-card, .program-card {
        width: 90%;
    }

    .steps img {
        margin-top: -2px;
        max-width: 100%;
    }
}

@media (max-width: 400px) {

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
        right: 168px;
    }


    nav ul.show {
        opacity: 1;
        visibility: visible;
    }

    nav ul li {
        align-items: center;
        text-align: center;
        margin: 0;
        padding: 0.5rem;
        border-bottom: 1px  solid #ddd;

    }

    nav ul li a {
        width: 150%;
        display: flex;
        padding: 1rem;
        color: #333;
        text-decoration: none;
    }

    .button{
        font-size: 0.9rem; /* Ajuste el tamaño de la fuente en pantallas más pequeñas */
        padding: 10px 40px;
        display: flex;
        text-align: center;
        justify-content: center;
        margin-right: -10px;
        top: 84%;
        left: 58px;
    }
    .button:hover {
        background-color: #5e005e;
    }
    .hero {
        
        flex-wrap: wrap; /* Permite que los elementos se envuelvan */
        justify-content: center; /* Centra los elementos horizontalmente */
        padding: 10px 0; /* Ajusta el padding */
        overflow-x: auto; /* Permite desplazamiento horizontal si es necesario */
        width: 100%; /* Ocupa todo el ancho disponible */

    }

 

    .card, .psychologist-card, .program-card {
        width: 100%;
    }

    .steps img {
        max-width: 100%;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .step .counter {
        margin-bottom: 1rem;
    }

    .step .content {
        text-align: center;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }
}