/* Variables CSS */
/* Variables CSS */
:root {
    --primary-color: #007bff;
    --secondary-color: #1100ff;
    --background-color: #f8f8f8;
    --text-color: #333;
    --highlight-color: rgb(52, 223, 46);
    --border-radius: 8px;
    --font-family: Arial, sans-serif;
}

/* Diseño general */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Navegación */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 30px;
    background-color: var(--background-color);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    max-height: 80px;
    width: auto;
}

.navigation {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin: 0 10px;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--secondary-color);
}

.highlighted-link {
    color: #fff;
    background-color: var(--primary-color);
    padding: 5px 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.highlighted-link:hover {
    background-color: var(--background-color);
    transform: scale(1.1);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 30px;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .logo {
        max-height: 90px;
    }

    .navigation {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--background-color);
        width: 100%;
        box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    }

    .navigation.active {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-list li {
        margin: 10px 0;
        padding: 0 20px;
    }

    .menu-toggle {
        display: block;
    }
}

/* Estilo para el enlace "Trabaja con nosotros" */
.trabaja-link {
    background-color: var(--highlight-color);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: var(--border-radius);
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.trabaja-link:hover {
    background-color: var(--primary-color);
}

/* Ajuste de márgenes para que los títulos no colisionen con la barra de navegación */
h1, h2 {
    margin-top: 5rem;
}


/* -------------------------------------------------------------------------- */


/* Estilo general de las secciones */
/* Sección de Información */
/* .section {
    padding: 30px 10px 10px 30px;
    background-color: rgb(255, 255, 255);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 8rem 0;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
} */

.texto-centrado h2, h3 {
    text-align: center;
}

.texto-centrado p {
    text-align: justify;
    align-items: center;
}

.contenido {
    text-align: center;
    align-items: center;
    margin: 1rem;
}

.sectionn h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1px;
    font-family: var(--font-family);
    transition: color 0.3s;
}

.sectionn h3 {
    color: var(--primary-color);
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 2rem;
    font-family: var(--font-family);
    transition: color 0.3s;
}



.sectionn p {
    color: var(--text-color);
    font-size: 1.1rem;
    font-family: var(--font-family);
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hover Effects */
 h2:hover, h3:hover {
    color: var(--highlight-color);
}

/* Responsividad */
@media (max-width: 768px) {
    .section {
        padding: 30px 10px 10px 30px;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 2rem;
    }
}


/* -------------------------------------------------------------------------- */


/* Sección de Servicios */
.sectionn {
    padding: 50px 20px;
    background-color: rgb(255, 255, 255);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 10rem 0;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.carousel-inner {
    position: relative;
    text-align: center;
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 10%;
}

.carousel-item img {
    width: 0%;
    height: auto;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.carousel-item img:hover {
    transform: scale(1.05);
}

.carousel-caption {
    top: 50%;
    left: 50%;
    transform: translate(-0%, -50%);
    padding: 1px 0;
    margin: 0; /* Elimina los márgenes laterales */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: var(--border-radius);
    max-width: 80%; /* Ajusta el ancho máximo */
    text-align: center; /* Centra el texto */
    transition: all 0.3s ease; /* Añade una transición suave para los cambios */
}

.carousel-caption h2 {
    color: var(--primary-color);
    font-size: 1rem;
    font-family: var(--font-family);
    
}

.carousel-caption p {
    color: #fff;
    font-size: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-family);
    text-align: center; /* Asegura que el texto esté centrado */
}

/* Indicadores del Carrusel */
.carousel-indicators button {
    color: var(--secondary-color);
    background-color: var(--primary-color);
}

.carousel-indicators .active {
    color: var(--secondary-color);
    background-color: var(--secondary-color);
}

/* Controles del Carrusel */
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(100%);
}

/* Responsividad */
@media (max-width: 768px) {
    .carousel-caption {
        top: 50%;
        left: 50%;
        transform: translate(-0%, -75%);
        padding: 40px;
        max-width: 90%;
    }

    .carousel-caption h2 {
        font-size: 1px;
        text-align: center;
    }

    .carousel-caption p {
        font-size: auto;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .carousel-caption {
        top: 45%;
        bottom: 100%;
        padding: 1%;
        max-width: 100%;
        margin: 5px;
        
        
    }

    .carousel-caption h2 {
        padding: 0px;
        margin-top: 0pc;
        font-size: 1rem;
        text-align: center;
        
    }

    .carousel-caption p {
        margin-top: 1px;
        font-size: 10px;
        text-align: center;
    }
}

/* Estilo de botones */
button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: background 0.3s;
}

button:hover {
    background: #e68900;
}


.carrusel {
    
        position: absolute;
        right: 15%;
        bottom: 1.25rem;
        left: 15%;
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
        color: #ffffff6c;
        text-align: center;
    }



/* -------------------------------------------------------------------------- */



/* Sección de contacto específica */
.section-contacto {
    background: #333;
    color: white;
}

.section-contacto h1 {
    color: var(--secondary-color);
}


/* -------------------------------------------------------------------------- */

.sectionn {
    padding: 20px;
    background-color: #f8f9fa;
}

.sectionn h2 {
    font-size: 2em;
    color: var(--secondary-color);
    font-family: var(--font-family);
    text-align: center;
    margin-bottom: 20px;
}

.contenido {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.texto {
    flex: 1 1 60%;
    padding: 20px;
}

.texto ul {
    list-style-type: none;
    padding: 0;
}

.texto li {
    font-size: 1.2em;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.texto li i {
    color: #28a745;
    margin-right: 10px;
}

.imagen {
    flex: 1 1 35%;
    text-align: center;
    padding: 20px;
}

.imagen img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .contenido {
        flex-direction: column;
    }
    .texto, .imagen {
        flex: 1 1 100%;
        text-align: center;
    }
    .texto {
        padding: 10px;
    }
}

/* -------------------------------------------------------------------------- */

/* Imagen Responsiva */
.rounded-imagee {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Hover Effects */
.sectionn h2:hover {
    color: var(--highlight-color);
}

/* Hover Effects */
.seccionx h2:hover {
    color: var(--highlight-color);
}

/* Responsividad para Sección */
@media (max-width: 768px) {
    .sectionn {
        padding: 30px 15px;
    }

    .sectionn h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .sectionn {
        padding: 20px 10px;
    }

    .sectionn h2 {
        font-size: 1rem;
        color: var(--primary-color);
    }
}


/* -------------------------------------------------------------------------- */
/*Imagenes de fondo*/

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    animation: slideBackground 9s infinite;
}
.content {
    position: relative;
    z-index: 1;
    padding: 20px;
}
@keyframes slideBackground {
    0%, 100% { background-image: url('imgs/01.jpg'); }
    33% { background-image: url('imgs/02.jpg'); }
    67% { background-image: url('imgs/03.jpg'); }
}

/* -------------------------------------------------------------------------- */

/* Sección de Servicios */
.sectionn {
    display: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    background-color: rgba(255, 255, 255, 0.774);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 5rem 0;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.card {
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    flex: 1 1 calc(33.333% - 40px);
    max-width: calc(33.333% - 40px);
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-family: var(--font-family);
}

.card p {
    color: var(--text-color);
    font-size: 1rem;
    font-family: var(--font-family);
    margin-bottom: 0;
}

/* Responsividad para Sección de Servicios */
@media (max-width: 768px) {
    .card {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.8rem;
    }
}




/* -------------------------------------------------------------------------- */

/* Fondo general de la sección */

  
  #equipo .profile-img {
    width: 550px;
    height: 110px;
    object-fit: cover;
    border-radius: 150%; /* Circular */
    border: 3px solid var(--primary-color); /* Borde violeta */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  #equipo .profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.6); /* Sombra morada */
  }
  
  #equipo .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff; /* Blanco */
  }
  
  #equipo .card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  }
  
  #equipo .card-title {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1e40af; /* Azul profundo */
  }
  
  #equipo .card-text {
    font-size: 0.95rem;
    color: #374151; /* Gris oscuro */
  }
  
  @media (max-width: 576px) {
    #equipo h2 {
      font-size: 2rem;
      
    }
  
    #equipo .card-text {
      font-size: 0.85rem;
    }
  }
  
  

/* -------------------------------------------------------------------------- */




/* -------------------------------------------------------------------------- */



/* Redes sociales */
.seccionx {
    background-color: rgba(255, 255, 255, 0.774);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 4rem 2rem;
    text-align: center;
}

.seccionx h2 {
    font-size: 2rem;
    color:var(--secondary-color);
    font-family: var(--font-family);
    margin-bottom: 2rem;
}

.card-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    text-align: center;
    max-width: 300px;
    flex: 1;
}

.card img {
    margin: auto;
    max-width: 80px;
    margin-bottom: 1rem;
}

.card h3 {
    font-family: var(--font-family);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.card p {
    font-family: var(--font-family);
    font-size: 1rem;
    color: #555;
    margin-bottom: 1rem;
}

.card .btn {
    display: inline-block;
    background: var(--secondary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: background 0.3s;
}

.card .btn:hover {
    background:var(--highlight-color);
}


/* -------------------------------------------------------------------------- */


/* Footer */
.footer {
    padding: 1px 20px ;
    background-color: rgba(255, 255, 255, 0.808);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
       }

@media (max-width: 600px) {
    .footer {
        padding: 0.5rem; /* Menor espaciado en pantallas pequeñas */
    }

    .footer p {
        font-size: 0.9rem; /* Tamaño de fuente más pequeño en dispositivos móviles */
    }
}



/* -------------------------------------------------------------------------- */



/* Responsividad */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav a {
        margin: 10px 0;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section h1 {
        font-size: 1.8rem;
    }

    .section p {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .servicios-clinicos {
        flex-direction: column;
    }

    .servicios-clinicos .texto {
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 2rem 1rem;
    }

    .section h1 {
        font-size: 1.5rem;
    }

    .section p {
        font-size: 0.8rem;
    }

    nav {
        padding: 0.5rem;
    }

    nav a {
        font-size: 0.9rem;
    }

    button {
        font-size: 0.8rem;
    }
}


