*{
    box-sizing: border-box;

}
html{
    scroll-behavior: smooth;
}


body{
    font-family: "Roboto", sans-serif;
    margin: 0;

    
    
}



header{
    position: absolute; /* Superpone el header sobre el contenido */
    top: 0;
    left: 0;
    width: 100%; /* Ocupa todo el ancho */
    background: transparent; /* Fondo transparente para fusionarse con el hero */
    z-index: 100; /* Asegura que el header esté por encima del hero */
    padding: 20px 0; /* Espaciado interno */
}

header .container{
    display: flex; /* Distribuye los elementos en línea */
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; /* Ajusta el ancho máximo del contenido */
    margin: 0 auto; /* Centra el contenido */
    padding: 0 20px; /* Espaciado lateral */
}


.imagen-boton {
    width: 198px; /* Ajusta el tamaño según tus necesidades */
    height: 55px;
    border: none; /* Quita cualquier borde predeterminado */
    cursor: pointer; /* Cambia el cursor al pasar sobre la imagen */
}

header .logo{
    margin: 0;
    padding: 10px;
    font-weight: bold;
    color: rgb(0, 0, 0);
    font-size: 1.45em;
}

header a {
    text-decoration: none; /* Quita el subrayado de los enlaces */
    color: #fff; /* Color del texto en blanco */
    font-size: 1.2em; /* Tamaño de fuente */
    font-weight: bold;
}

header nav a {
    margin: 0 10px; /* Espaciado entre los enlaces del menú */
}

header a:hover{
    color: rgb(253, 253, 255);
}

#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/clinica2.jpg");
    animation: hero 28s infinite linear;
}

.hero-content{

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.hero-content h1{

    margin: 0;
    padding: 0;
    padding-bottom: 30px;
    font-size: 40px;
    text-align: center;

}

.hero-content a{
    text-decoration: none;
    color: #fff;
    padding: 9px 20px;
    border: 1px solid #fff;
    text-transform: uppercase;
    transition: all .3s ease-in-out;

}

.hero-content a:hover{
    background-color: #fff;
    color: #333;
}
#productos h1{

    text-align: center; 
    color: #0d2470;
    

}

#productos .container{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1400px ;
    text-align: center;
    
}

.monoclonal-table {
    border-collapse: collapse; /* Elimina el espacio entre los bordes de las celdas */
    width: 80%; /* Ancho de la tabla */
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra ligera */
    background-color: white;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo del encabezado (Header) */
.monoclonal-table thead th {
    background-color: #0f3b6b; /* Color azul oscuro/morado similar a la imagen */
    color: white;
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    font-size: 1.1em;
}

/* Estilo de las filas del cuerpo (Body) */
.monoclonal-table tbody tr {
    /* Fondo ligeramente gris para las filas */
    background-color: #f9f9f9; 
}

/* Estilo para las celdas */
.monoclonal-table td {
    border: 1px solid #ddd; /* Borde gris claro */
    padding: 12px 10px;
    vertical-align: top; /* Alineación del texto en la parte superior */
    line-height: 1.4;
    text-align: left;
}

/* Estilo específico para la columna 'mAb' */
.monoclonal-table .mAb-name {
    font-weight: bold;
    width: 25%; /* Para darle un ancho relativo a la columna de los nombres */
    /* Podrías añadir un color de fondo para que se vea más como la imagen si lo deseas */
    /* background-color: #eceff1; */ 
}




.card{
    flex: 0 1 20%;
    margin: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0px 1px 10px rgba(5, 112, 242, 0);
    cursor: default;
    transition: all 400ms ease;
    

}




.card:hover{
    box-shadow: 5px, 5px, 20px, rgba(0, 0, 0, 0.187);
    transform:translateY(-3%);

}

.card h3 { 
    text-align: center; 
}


.card img{
    width: 100%;
    height: 210px;
    
}



#hero2 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/ins.jpg");
    animation: hero 28s infinite linear;
}

.hero-content2 {

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.hero-content2 h1{

    margin: 0;
    padding: 0;
    padding-bottom: 30px;
    font-size: 40px;
    text-align: center;

}

#hero5 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/contraste.webp");
    animation: hero 28s infinite linear;
}

.hero-content5 {

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.hero-content5 h1{

    margin: 0;
    padding: 0;
    padding-bottom: 30px;
    font-size: 40px;
    text-align: center;

}

#hero6 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/hero4.jpg");
    animation: hero 28s infinite linear;
}

.hero-content6 {

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.hero-content6 h1{

    margin: 0;
    padding: 0;
    padding-bottom: 30px;
    font-size: 40px;
    text-align: center;

}

#info {
    /* 1. Centra el contenedor principal (si deseas centrarlo verticalmente o darle espacio) */
    padding: 60px 20px; /* Añade espacio arriba y abajo */
    background-color: #f8f8f8; /* Un color de fondo suave */
}

.info-content {
    /* 2. Establece un ancho máximo para la lectura fácil */
    max-width: 800px; 
    
    /* 3. CENTRADO DEL BLOQUE: Usa margin auto para centrar un bloque con ancho fijo */
    margin-left: auto;
    margin-right: auto;
    
    /* 4. Estilos de tipografía para estética y legibilidad */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    padding: 20px;
    background-color: #ffffff; /* Fondo blanco para el contenido */
    border-radius: 10px; /* Esquinas redondeadas */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.info-content h1, .info-content h2 {
    color: #007bff; /* Color de título llamativo (azul) */
    text-align: center; /* Centra los títulos */
    border-bottom: 2px solid #007bff; /* Línea de separación bajo el título */
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-content ul {
    list-style-type: none; /* Quita los puntos de lista predeterminados */
    padding-left: 0;
}

.info-content ul li {
    margin-bottom: 10px;
    padding-left: 20px;
    /* Usa un icono como punto de lista para estética */
    position: relative; 
}

.info-content ul li::before {
    content: "⭐"; /* Icono estético para la lista principal */
    position: absolute;
    left: 0;
    top: 0;
}

.info-content ul ul li::before {
    content: "✅"; /* Icono estético para la sub-lista */
}

#hero3 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/biofoto.jpg");
    animation: hero 28s infinite linear;
}

#hero4 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #f5f5f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    transition: all .3s ease-in-out;
    background-image: url("imagen/nobio.jpg");
    animation: hero 28s infinite linear;
}

.hero-content3 {

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

.hero-content4 {

    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.658);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;


}

#searchBar {
    width: 50%; /* Ajusta el ancho al 50% del contenedor */
    padding: 15px; /* Agrega espacio interno para que el texto se vea cómodo */
    margin: 20px auto; /* Centra horizontalmente y da espacio superior e inferior */
    display: block; /* Asegura que la barra esté alineada correctamente */
    font-size: 18px; /* Haz el texto más grande */
    border: 2px solid #007BFF; /* Borde azul con grosor */
    border-radius: 10px; /* Bordes redondeados */
    outline: none; /* Elimina el borde al hacer clic */
    transition: all 0.3s ease-in-out; /* Suaviza las transiciones */
}

#searchBar:focus {
    border-color: #0056b3; /* Cambia el color del borde al enfocarse */
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.5); /* Agrega un efecto de sombra */
}


.piedepagina{
    width: 100%;
    background-color:rgb(3, 15, 42);
}

.piedepagina .grupo1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 50px;
    padding: 40px 0px;
}

.piedepagina .grupo1 .box figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.piedepagina .grupo1 .box figure img{
    width: 250px;
}

.piedepagina .grupo1 .box h2{
    color: #fff;
    margin-bottom: 25px;
    font-size: 20px;
}

.piedepagina .grupo1 .box p{
    color: #fff;
    margin-bottom: 10px;
}

.piedepagina .grupo2{
    color: #fff;
    padding: 15px 10px;
    background-color: #0d2033;
    text-align: center;
}

#whatsapp-button {
    position: fixed;
    bottom: 20px; /* Altura desde la parte inferior */
    right: 20px;  /* Distancia desde la derecha */
    z-index: 1000; /* Asegura que siempre esté encima */
}

#whatsapp-button img {
    width: 60px; /* Tamaño del botón */
    height: 60px;
    border-radius: 50%; /* Redondea el botón */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra para efecto flotante */
    transition: transform 0.2s ease-in-out; /* Animación suave */
}

#whatsapp-button img:hover {
    transform: scale(1.1); /* Aumenta ligeramente el botón al pasar el mouse */
}

.contenido a {
  margin-top: auto;
  display: inline-block;
  background-color: rgb(3, 15, 42); /* Un azul más suave y moderno */
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border: 2px solid transparent; /* Borde transparente para la transición */
  border-radius: 50px; /* Bordes muy redondeados para un estilo "pastilla" */
  font-weight: 600; /* Un grosor de fuente intermedio */
  letter-spacing: 0.5px; /* Pequeño espaciado entre letras */
  transition: all 0.3s ease; /* Transición para todos los cambios */
}

.contenido a:hover {
  background-color: transparent; /* Fondo transparente */
  color: #4a69bd; /* El color del texto cambia a azul */
  border-color: #4a69bd; /* El borde se vuelve azul */
  transform: translateY(-2px); /* Mueve el botón ligeramente hacia arriba */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

.contenido h3 {
  margin-bottom: 10px; /* Un pequeño margen para separar el título del botón */
}

.contenido {
  display: flex; /* Convierte el contenedor del contenido en un flex container */
  flex-direction: column; /* Apila el título y el botón */
  flex-grow: 1; /* Permite que este contenedor ocupe todo el espacio disponible */
  justify-content: flex-end; /* **Clave:** Alinea el contenido (el botón) al final */
  padding: 20px;
  text-align: center; /* Centra el texto y el botón horizontalmente */
}

/* El modal (por defecto oculto) */
.modal {
    display: none; /* Oculta el modal por defecto */
    position: fixed; /* Mantiene el modal en la misma posición al hacer scroll */
    z-index: 1; /* Coloca el modal encima de todo */
    left: 0;
    top: 0;
    width: 100%; /* Ocupa el ancho completo */
    height: 100%; /* Ocupa el alto completo */
    overflow: auto; /* Habilita el scroll si el contenido es muy largo */
    background-color: rgba(0, 0, 0, 0.4); /* Fondo semi-transparente */
}

/* Contenido del modal */
.modal-contenido {
    background-color: #fefefe;
    margin: 15% auto; /* Centra el modal vertical y horizontalmente */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Ancho del cuadro modal */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation-name: animatetop;
    animation-duration: 0.4s;
}

/* Botón para cerrar el modal */
.cerrar-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.cerrar-modal:hover,
.cerrar-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Animación de entrada */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}


@media (max-width: 768px) {
    /* Header */
    header .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    header nav {
        margin-top: 10px;
    }

    header nav a {
        display: block;
        margin: 5px 0;
    }

    /* Hero Sections */
    #hero, #hero2, #hero3, #hero4 {
        height: 50vh; /* Reduce la altura para que el contenido sea visible */
    }

    .hero-content, .hero-content2, .hero-content3, .hero-content4 {
        justify-content: center;
        padding: 0 20px;
    }

    .hero-content h1, .hero-content2 h1 {
        font-size: 28px;
    }

    /* Search Bar */
    #searchBar {
        width: 90%; /* Aumenta el ancho para que sea más fácil de usar */
        margin: 15px auto;
    }

    /* Productos Section */
    #productos .container {
        flex-direction: column; /* Apila las tarjetas verticalmente */
        align-items: center;
    }

    .card {
        flex: 1 1 90%; /* Cada tarjeta ocupa casi todo el ancho */
        margin: 15px 0;
    }

    /* Footer */
    .piedepagina .grupo1 {
        grid-template-columns: 1fr; /* Una sola columna para el pie de página */
        grid-gap: 20px;
        text-align: center;
    }
}