.pain-management-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10rem;
    padding: 20px 120px;
    background-color: #ffffff;
}

/* Contenedor del texto */
.text-container h1 {
    font-size: 3rem;
    margin-left: 0rem;
    font-weight: bold;
    color: #1e3a7b; /* Color azul similar al de la imagen */
    max-width: 70%;
}

/* Botón de contacto */
.contact-button-container {
    margin-left: auto;
}

.contact-button-container{
    display: flex;
    align-items: center;

}
.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #1e3a7b; /* Color azul del botón */
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.contact-button:hover {
    background-color: #163056; /* Color más oscuro en hover */
}

/* Icono de flecha al lado del texto del botón */
.arrow-icon {
    width: 40px;
    height: 40px;
    margin-left: 1rem; /* Espacio entre el texto y la imagen */
}

.unique-interactive-section {
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 10px;
    overflow-x: auto;
}

/* Estilos generales para las tarjetas */
.unique-card {
    width: 120px;
    height: 300px;
    padding: 20px;
    color: white;
    border-radius: 10px;
    transition: 1s all;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: all 0.3s ease;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

/* Estilo de fondo específico para cada tarjeta */
#unique-card-01 {
    background-color: #163056;
}

#unique-card-02 {
    background-color: #1E3A7B;
}

#unique-card-03 {
    background-color: #4972B8;
}

#unique-card-04 {
    background-color: #4972B8;
}

#unique-card-05 {
    background-color: #1E3A7B;
}

#unique-card-06 {
    background-color: #4972B8;
}

#unique-card-07 {
    background-color: #1E3A7B;
}

#unique-card-08 {
    background-color: #4972B8;
}

/* Texto rotado (vista cerrada) */
.unique-card h3 {
    transform: rotate(-90deg);
    font-size: 1.2em;
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ocultar el contenido cuando está cerrado */
.unique-card-content {
    display: none;
    text-align: center;
}

.unique-card-number {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 1.5em;
    font-weight: bold;
}

/* Estilo cuando la tarjeta está expandida */
.active-card {
    width: 500px;
    height: auto;
    padding: 20px;
    flex-direction: column;
    background-color: #1E3A7B;
    overflow: hidden;
}

.active-card h3 {
    display: none; /* Ocultar el texto rotado cuando esté expandido */
}

.active-card .unique-card-content {
    display: block; /* Mostrar el contenido centrado */
}

.active-card h2 {
    margin: 0;
    padding: 0;
    color: white;
    text-align: center;
    font-size: 2em;
}
nav a {
    color: #1e3a7b;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: color 0.3s;
}

.team-section {
    text-align: center;
    padding: 50px;
}

.team-section h1 {
    font-size: 3rem;
    color: #1E3A7B;
    margin-bottom: 40px;
}

/* Contenedor del carrusel */
.carousel-container {
    position: relative;
    height: 85vh;
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Tarjetas de equipo con transición */
.team-card {
    min-width: 100%; /* Ocupa toda el área visible */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 40px;
    background-color: #eeeeee;
    border-radius: 10px;
    transition: transform 0.5s ease-in-out; /* Transición suave */
    position: absolute; /* Permitir que las tarjetas se superpongan */
    top: 0;
    left: 0;
}

.team-image img {
    width: 400px;
    margin-right: 2rem;
    height: auto;
    border-radius: 10px;
}

/* Información del doctor/a */
.team-info {
    text-align: left;
    
}

.team-info h2 {
    font-size: 2em;
    color: #1E3A7B;
}

.team-info .highlight {
    color: #58A6FF;
}

.team-info h3 {
    font-size: 1.5em;
    color: #1E3A7B;
    margin-bottom: 20px;
}

.team-info ul {
    list-style: none;
    padding: 0;
}

.team-info ul li {
    font-family: "Poppins",sans-serif;
    color: #000;
    font-size: 1em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.team-info ul li strong {
    font-size: 1.1em;
    color: #000;
}

/* Flechas y puntos de navegación */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.carousel-controls .prev, .carousel-controls .next {
    cursor: pointer;
    font-size: 45px;
    padding: 10px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 50%;
    user-select: none;
    margin: 0 10px;
}



/* Indicadores de carrusel */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-indicators .indicator {
    width: 50px;
    height: 20px;
    background-color: #c4c4c4;
    border-radius: 7px;
    margin: 0 5px;
    cursor: pointer;
}

.carousel-indicators .indicator.active {
    background-color: #1E3A7B;
}

ul.listongo {
    list-style: disc;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .text-container h1 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        margin-left: 0rem;
        font-weight: bold;
        color: #1e3a7b;
        max-width: 100%;
    }
    
  
    .pain-management-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-top: 10rem;
        padding: 26px 19px;
        background-color: #ffffff;
    }
    .contact-button-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

     }
     @media (max-width: 768px) {
        /* Ajustar la sección del equipo */
        .team-section {
            padding: 20px;
        }
    
        .team-section h1 {
            font-size: 2rem; /* Reducir el tamaño del título */
        }
    
        /* Ajustes para el contenedor del carrusel */
        .carousel-container {
            height: 140vh;

        }
    
        /* Ajustes para las tarjetas del equipo */
        .team-card {
            flex-direction: column; /* Colocar la imagen arriba y el texto abajo */
            padding: 20px; /* Reducir el padding para móviles */
            gap: 10px; /* Reducir el espacio entre elementos */
            min-width: 100%; /* Mantener el ancho completo */
        }
    
        /* Ajustes para las imágenes dentro de las tarjetas */
        .team-image img {
            width: 100%; /* Hacer que la imagen ocupe todo el ancho disponible */
            height: auto; /* Mantener la proporción de la imagen */
            margin-right: 0; /* Eliminar el margen a la derecha */
            border-radius: 10px; /* Mantener el borde redondeado */
        }
    
        /* Ajustes para la información del doctor/a */
        .team-info h2 {
            font-size: 1.5rem; /* Reducir el tamaño del nombre del doctor/a */
        }
    
        .team-info h3 {
            font-size: 1.2rem; /* Reducir el subtítulo */
        }
    
        .team-info ul li {
            font-size: 0.9rem; /* Reducir el tamaño de las listas */
        }
    
        /* Flechas de navegación */
        .carousel-controls .prev, .carousel-controls .next {
            font-size: 35px; /* Reducir el tamaño de las flechas */
            padding: 5px; /* Reducir el padding */
        }
    
        /* Indicadores de carrusel */
        .carousel-indicators {
            margin-top: 10px; /* Reducir el margen superior */
        }
    
        .carousel-indicators .indicator {
            width: 30px; /* Reducir el ancho de los indicadores */
            height: 10px; /* Reducir la altura de los indicadores */
        }
        .unique-interactive-section {
            display: flex;
            justify-content: center;
            padding: 20px;
            gap: 10px;
            flex-direction: column;
            overflow-x: auto;
        }
        .active-card {
            width: 346px;
            height: auto;
            padding: 20px;
            flex-direction: column;
            background-color: #1E3A7B;
            overflow: hidden;
        }
        .active-card .unique-card-content  p{
            padding: 10px;
        }
        .unique-card {
            width: 100%;
            height: 400px;
            padding: 20px;
            color: white;
            border-radius: 10px;
            cursor: pointer;
            position: relative;
            text-align: center;
            transition: all 0.3s ease;
            background-size: cover;
            background-position: center;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            overflow: hidden;
        }
        .unique-card h3 {
            
            font-size: 2.2em;
            transform: none;
            
        }
    }