* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    color: #3bb3d9;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;

}

h3{
    font-size: 3rem;
}



.background-layer {
    position: fixed;
    top: 20px;     /* siempre 20px del top */
    left: 30px;
    right: 30px;
    height: 80vh; /* alto dinámico restando los márgenes */
    background-color: rgba(208, 208, 208, 0.264);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: -1;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.019);
    border-radius: 50px;
    border: 3px solid #ffffff;
}


/* Estilos del menú  */
.circular-menu {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    text-transform: uppercase;
}

.menu-toggle {
    width: 60px;
    height: 60px;
    background-color: #f9f9f9;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #3bb3d9;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 1002; /* Mayor z-index para que esté por encima */
    position: relative;
    overflow: hidden; /* Añadido para contener la imagen */
}

.menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* NUEVOS ESTILOS PARA CENTRAR LA IMAGEN */
.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.img-logo {
    max-width: 70%; /* Ajusta el tamaño de la imagen */
    max-height: 70%; /* Ajusta el tamaño de la imagen */
    object-fit: contain; /* Mantiene las proporciones */
}

.menu-items {
    position: absolute;
    top: 0;
    left: 0;
    height: 60px;
    background: #f9f9f9;
    border-radius: 35px;
    display: flex;
    align-items: center;
    padding: 0 0 0 80px; /* Espacio a la izquierda para el logo */
    transition: all 0.5s ease;
    width: 60px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1001; /* Menor z-index que el logo */
    opacity: 0; /* OCULTAR INICIALMENTE */
    transform: translateX(-20px); /* OCULTAR INICIALMENTE */
}

.circular-menu:hover .menu-items {
    width: 800px;
    opacity: 1; /* MOSTRAR AL HACER HOVER */
    transform: translateX(0); /* MOSTRAR AL HACER HOVER */
}

.menu-items ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
}

.circular-menu:hover .menu-items ul {
    opacity: 1;
}

.menu-items li {
    white-space: nowrap;
}

.menu-items a {
    color: #242424;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 20px;
}

.menu-items a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);

}


/*Posicion de logo completo*/

.img-logo-completo{
    position: relative;
    max-height: 60px;
   left: 130px;
   top: 30px;

}


/* Secciones de contenido */
section {
    padding: 100px 50px;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero{
    
    background-size: cover;
    min-height: 90vh; 
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra verticalmente el contenido */
    align-items: center; /* Centra horizontalmente el contenido */
    position: relative;
}

.titulo-principal {
    font-size: 5rem;
    margin-bottom: 40px;
    text-align: center;
    position: relative;
    text-wrap: balance;

}

.sub-titulo{
    font-weight: 450;
    font-size: 1.5rem;
    padding-bottom: 50px;
}

/* Seccion home*/



#landing{
background: url('./assets/Group+80.png') no-repeat center;
}

#logoDS-section{
    max-height: 43px;
}

/*Seccion nosotros*/

#nosotros{
display: flex;
flex-direction: row;
justify-content: space-around;
}


#texto-nosotros{
    padding-left: 50px;
    max-width: 60%;
    font-size: 1.5rem;
}

.texto-negro{
    color: #242424;
}

#texto-resaltado {
    font-size: 2.5rem;
    font-weight: 600;
    position: relative;
    display: inline-block; /* Para que la línea ocupe solo el ancho del texto */
}

#texto-resaltado:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #3bb3d9;
}

/* Sección de cuadros de iconos */

#icons{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    padding: 0;
   margin-top: 0;
   margin-bottom: 0;


}

.icons-elements{
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.5rem;
}

.icons-elements img,.icons-elements p {
    padding-bottom: 40px;
}

.icons-elements img{
    height: 200px;
}

.icons-elements p {
    font-size: 150px;
    font-weight: bolder;
    padding-bottom: 10px;
}

/* Sección de cuadros de texto */
#text-boxes-section{
    padding-top: 0;
}

.text-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
    color: white;
    font-size: 1.8rem;
    text-align: center;
    background: url('./assets/fondo+categorias.png') no-repeat;
    background-size: cover;
    padding: 40px;

}

.text-boxes h3, h4{
font-size: 2.5rem;
padding: 20px;

}



.secondary-boxes {
    display: flex;
    flex-wrap: wrap; /* Permite que los items pasen a nueva línea */
    gap: 20px;
    width: 100%;
    
}

.secondary-box {
    flex: 1 1 calc(50% - 20px);
    min-width: calc(50% - 20px);
    background-color: rgba(208, 208, 208, 0.264);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 40px;
    margin: 5px;
    border-radius: 30px;
    border: 2px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.secondary-box:hover {
    transform: translateY(-5px);
}

.secondary-box:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px;
    background: #3bb3d9;
    transition: width 0.5s ease-in-out;
}

.secondary-box:hover:after {
    width: 100%;
}

.productos{
    max-height: 43px;
}
/*Seccion equipamiento medico*/

#equipamiento-section{
background: url('./assets/fondo+equipamiento+medico.png') no-repeat center;
padding: 50px;
}

#background-layer-equipamiento{
    max-height: 70%;
    top: 120px;
    
}

.equipamiento-item-contenedor{
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;

}
.equipamiento-item-p{
    color: #242424;
    font-size: 1.2rem;
}

.item-description{
display: flex;
flex-direction: column;
text-align: left;
width: 50%;

}

#mindray-logo{
    max-width: 150px;
}

#hepatus6{
max-height: 500px;
align-self: flex-end;
}

.boton-equipamiento a{
    text-decoration: none;
}

.boton-equipamiento{
font-style: italic;
border-radius: 50px;
border: 1px solid #3bb3d9;
width: fit-content;
padding: 10px;
font-size: 1.2rem;
}

.boton-equipamiento:hover  {
    background-color: #3bb3d9;
    color: #f9f9f9;
}

.boton-equipamiento a:hover  {
    
    color: #f9f9f9;
}


/*seccion hepatus*/


.contenedor-principal {
    display: flex;
    position: relative;
    min-height: 600px; /* Ajusta según necesites */
    margin-bottom: 70px;
    
}

.contenido-izquierdo {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 40px;
}
.contenido-izquierdo h4 {
    width: 150%;
    padding: 0;
    margin-bottom: 20px;
}
.contenido-izquierdo p{
    color: #242424;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.contenido-izquierdo ul {
    background-color: #3bb3d9;
    border-radius: 50px;
    margin: 0;
    padding: 20px;
    width: 160%;
    color: #ffffff;
}

.contenido-izquierdo ul li {
  
    color: #ffffff;
    font-size: 2rem;
    margin-left: 40px;
}

.imagen-derecha {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    
    z-index: 2; /* Para que quede por encima del fondo de la lista */
}

.imagen-derecha img {
    
    
    object-fit: cover; /* Para que la imagen cubra todo el espacio */
}

/*Seccion medicamentos*/

#medicamentos-section{
background: url('./assets/fondo+medicamentos+e+insumos+descartables.png') no-repeat center;
padding: 50px;
}

/*Seccion suplementos*/

#suplementos-section{
background: url('./assets/fondo+suplementos+dietartios.png') no-repeat center;

}
 


 /* Sección de marcas y laboratorios */
        #marcas {
            
            margin: 0 auto;
            
            
        }

        #marcas h2 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            color: #3bb3d9;
        }

        #marcas p {
            font-size: 1.2rem;
            color: #242424;
            max-width: 800px;
            line-height: 1.6;
        }

        /* Slider de logos */
        #logos-slider-section {
            padding: 40px 0;
            min-height: auto;
        }

        .marcas-slider-container {
            position: relative;
            width: 100%;
            background-color: rgba(208, 208, 208, 0.264);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 40px 0;
            overflow: hidden;
            margin: auto;
            border-radius: 50px;
        }

        .marcas-slider {
            display: flex;
            transition: transform 0.5s ease;
        }

        .marcas-slide {
            display: flex;
            justify-content: space-around;
            align-items: center;
            min-width: 100%;
            padding: 0 20px;
            box-sizing: border-box;
        }

        .marca-item {
            flex: 0 0 auto;
            width: 200px;
            height: 180px;
            display: flex;
            align-items: center;
            justify-content: center;            
            margin: 0 15px;
            padding: 15px;
            transition: transform 0.3s ease;
        }


        .marca-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .marca-item {
                width: 150px;
                height: 100px;
            }
        }

        @media (max-width: 768px) {
            .marcas-slide {
                justify-content: center;
                flex-wrap: wrap;
            }
            
            .marca-item {
                width: 130px;
                height: 90px;
                margin: 10px;
            }
            
            #marcas h2 {
                font-size: 2rem;
                text-align: center;

            }
            
            #marcas p {
                font-size: 1.1rem;
                margin: 20px;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .marca-item {
                width: 110px;
                height: 80px;
            }
        }

/*Seccion Suplementos*/

#bariatricline-section{
    display: flex;
    flex-direction: row;
   
}


.bariatricline-columna-izquierda{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bariatricline-columna-izquierda img{
    max-width: 500px;
}

.bariatricline-columna-izquierda p {
    font-size: 1.2rem;
    color: #242424;
}

#bariatricline-texto-verde {
    font-style: italic;
    color: #00B189;
    font-weight: 500;

}

#bariatricline-texto-verde a{
    color: #00B189;
    font-style: none;
}
/* Sección de logos */

#logos-section{
height: 70vh;
}

#logos-section h2{
    font-size: 3rem;
    text-align: center;
    padding-bottom: 50px;
}


#background-layer-items{
    height: fit-content;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
   
}

.logo-item {
    
    border-radius: 50px;
    padding: 35px 25px;
    text-align: center;
    margin: 20px;
    padding: 10px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}



.logo-title {
    font-weight: 600;
    font-size: 30px;
    color: #242424;
    transition: all 0.4s ease;
    padding-top: 20px;
}

.logo-description {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    font-size: 20px;
    color: white;
    background-color: #3bb3d9;
    transition: all 0.4s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    
}

.logo-item:hover .logo-description {
    opacity: 1;
}

.logo-item:hover{
    border: 2px solid #ffffff;

}

.logo-item:hover .logo-title {
    color: white;
   
}



.logo-item:hover i {
    color: white;
    transform: scale(1.2);
}

/*Seccion proximamente*/

#proximamente-section{
    background: url('./assets/fondo+proximamente.png') no-repeat center;

}


/* Sección de unite */

#unite-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

}

.unite-botones{
display: flex;
flex-direction: row;
justify-content: space-evenly;
}


.boton-principal{
    background-color: #004186;
    padding: 20px 30px;
    border: 1px solid #004186;
    border-radius: 50px;
    color: #f9f9f9;
    font-size: 1.5rem;

}

.boton-principal:hover{
    background-color: #012b57;

}

.boton-principal i{
    background-color: white;
    color: #004186;
    padding: 9px;
    border-radius: 100%;
    margin-left: 10px;
}
.boton-principal:hover i {
    color: #012b57 ;
}


#unite-section p{
font-size: 2rem;
padding: 80px;

}


/* Footer */
footer {
    background-color: #3bb3d9;
    color: white;
    padding: 40px 20px;
    text-align: center;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
}

.footer-items {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 60px;
}

.footer-item {
    flex: 1;
    min-width: 250px;
    margin: 15px;
    padding: 20px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    
}

.footer-item {
    font-size: 1rem;
    padding-bottom: 0;
}

.footer-item-description{
    color: white;
}

.footer-info{
    display: flex;
    flex-direction: column;
    padding-left: 20%;
    font-size: 1.5rem;
    text-align: left;
    
}


.footer-logohh{
    height: 3rem;
}

.footer-titulo{
    font-size: 3rem;
    letter-spacing: 2px;
    color: #ffffff;
    margin-top: 20px;
    
}

.bold{
    font-weight: 700;
}

.footer-icon{
    margin-bottom: 20px;
}
/*Seccion Formulario*/

#form{
    background-color: rgba(208, 208, 208, 0.264);
    border-radius: 50px;
    margin: 30px;
    padding: 30px 100px;   /* espacio */
    overflow: hidden; /* Importante: contener elementos hijos */
    /* RESET de las propiedades problemáticas de la regla general */
    max-height: none !important;
    justify-content: flex-start !important;
    display: block !important;
}

#form h2{
    font-size: 3rem;
    padding: 20px 0; /* Cambiar padding lateral a 0 */
    text-align: center;
    margin-bottom: 10px; /* Usar margin en lugar de padding */
}

#form p{
    padding: 0; /* Eliminar padding */
    color: #242424;
    font-size: 1.1rem;
    margin: 0 0 40px 0; /* Usar margin en lugar de padding y margin-left */
    line-height: 1.5;
}

#form-contacto{
    padding: 0; /* Eliminar padding del form */
}

.form-group {
    margin: 30px 0; /* Cambiar margen lateral a 0 */
    align-items: center;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #242424;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #aaa;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3bb3d9;
    box-shadow: 0 0 5px rgba(59, 179, 217, 0.3);
}

.btn {
    display: inline-block;
    background-color: #3bb3d9;
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
    width: 100%;
    
}

.btn:hover {
    background-color: #242424;
}


/*   seccion partners    */



        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            position: relative;
            font-family: 'Montserrat', sans-serif;
        }

        #partners-boton-principal{
            align-self: flex-end;
            max-width: fit-content;
            position: absolute;   /* lo fijamos en relación al padre */
    top:50px;            /* separación desde arriba */
    right: 40px; 
        }
        
        
        .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto;
        }
        
        .carousel-container {
            position: relative;
            width: 100%;
            padding: 0 40px;
            margin-top: 80px;
        }
        
        .carousel {
            display: flex;
            gap: 15px;
            padding: 15px 0;
            overflow-x: auto;
            scroll-behavior: smooth;
            scrollbar-width: none; /* Firefox */
        }
        
        .carousel::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }
        
        .carousel-item {
            flex: 0 0 calc(100% / 6 - 13px);
            height: 500px;
            position: relative;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-radius: 50px;
            overflow: hidden;
            
        }
        
        .carousel-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: all 0.4s ease;
        }
        
        .carousel-title {
            position: absolute;
            right: 0;
            bottom: 20px;
            writing-mode: vertical-rl;
            transform: rotate(180deg);
            color: #fafafa;
            font-weight: 800;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
            padding: 10px 6px;
            z-index: 3;
            font-size: 1.3rem;
            letter-spacing: 2px;
            padding-left: 15px;
        }
        
        .carousel-item.expanded {
            flex: 0 0 calc((100% / 6) * 2 - 13px);
            z-index: 10;
        }
        

        .carousel-item.expanded .carousel-title{
            display: none;
        }
        .text-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: #f9f9f9cb;
            color: #004186;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.4s ease;
            z-index: 2;
            max-height: 70%;
            overflow-y: auto;
        }
        
        .carousel-item.expanded .text-content {
            transform: translateY(0);
        }
        
        .text-content h3 {
            margin-bottom: 12px;
            color: #004186;
            font-size: 1.4rem;
        }
        
        .text-content p {
            line-height: 1.6;
            font-size: 1rem;
            margin-bottom: 15px;
        }
        
       
        
        .nav-button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 50px;
            height: 50px;
            border-radius: 50%;
            border-color: #004186;
            backdrop-filter: blur(10px);
            border: none;
            color: #004186;
            font-size: 1.2rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            z-index: 20;
        }
        
        .nav-button:hover {
            background: rgba(255, 255, 255, 0.3);
        }
        
        .nav-button:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }
        
        .nav-button.prev {
            left: 0;
        }
        
        .nav-button.next {
            right: 0;
        }
        
        .item-counter {
            text-align: center;
            margin-top: 20px;
            font-size: 1.1rem;
            opacity: 0.8;
        }
        
        /* Efecto de overlay al expandir */
        .carousel-item::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(to bottom, transparent 0%, transparent 60%, rgba(0, 0, 0, 0.7) 100%);
            z-index: 1;
            opacity: 0.7;
            transition: opacity 0.4s ease;
        }
        
        .carousel-item.expanded::before {
            opacity: 0.9;
        }
        
        /* Responsive */
        @media (max-width: 1200px) {
            .carousel-item {
                flex: 0 0 calc(100% / 4 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 4) * 2 - 13px);
            }
        }
        
        @media (max-width: 900px) {
            .carousel-item {
                flex: 0 0 calc(100% / 3 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 3) * 2 - 13px);
            }
        }
        
        @media (max-width: 600px) {
            .carousel-item {
                flex: 0 0 calc(100% / 2 - 13px);
            }
            
            .carousel-item.expanded {
                flex: 0 0 calc((100% / 2) * 2 - 13px);
            }
            
            h1 {
                font-size: 2.2rem;
            }
            
            .subtitle {
                font-size: 1rem;
            }
            
            .carousel-title {
                font-size: 1.1rem;
            }
        }


/* Responsive */
@media (max-width: 992px) {
    .logos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .secondary-boxes {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    section {
        padding: 100px 20px;
    }
    
    .menu-items.open {
        width: 280px;
    }
    
    .menu-items.open li:nth-child(4) {
        left: 210px;
    }
    
    .footer-content {
        flex-direction: column;
    }

    .text-slider-container {
        padding: 40px 60px;
    }
    
    .text-slide p {
        font-size: 22px;
        max-width: 90%;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}



/* ===========================================
  ESTILOS RESPONSIVE 
   =========================================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  
  /* Ajustes generales de secciones */
  section {
    padding: 80px 30px;
  }
  
  /* Menú de navegación */
  .circular-menu:hover .menu-items {
    width: 600px;
  }
  
  .menu-items ul {
    gap: 20px;
  }
  
  /* Títulos principales */
  .titulo-principal {
    font-size: 3.5rem;
  }
  
  /* Sección Nosotros */
  #nosotros {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  #texto-nosotros {
    max-width: 90%;
    padding-left: 0;
    margin-top: 30px;
  }
  
  #texto-resaltado {
    font-size: 2rem;
    margin: 30px 0;
  }
  
  #texto-resaltado:after{
    bottom: -30px;
  }
  /* Sección Productos */
  .secondary-box {
    padding: 60px 30px;
  }
  
  /* Sección Equipamiento */
  .equipamiento-item-contenedor {
    flex-direction: column;
    text-align: center;
  }
  
  .item-description {
    width: 90%;
    margin-bottom: 40px;
  }
  
  
  /* Sección Hepatus */
  .contenedor-principal {
    flex-direction: column;
    margin: 60px 20px;
  }
  
  .contenido-izquierdo {
    width: 100%;
    margin-left: 0;
    margin-bottom: 40px;
  }
  
  .contenido-izquierdo h4 {
    width: 100%;
  }
  
  .contenido-izquierdo ul {
    width: 100%;
  }
  
  .imagen-derecha {
    position: relative;
    width: 100%;
   
  }

  .imagen-derecha img{
    max-height: 300px;
    display: block; /* para que funcione el margin auto */
    margin: 0 auto;
    max-width: none;
  }
  
  #background-layer-equipamiento{
    height: 100%;
    max-height: none;
    top: 0;
  }

  #hepatus6{
    align-self: center;
    
  }
  /* Sección Logos */
  .logos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo-item {
    height: 250px;
  }

  .logo-img{
    max-height: 100px;
  }

  /* Seccion Medicamentos */

  #medicamentos-section{
    margin-top: 100vh;
  }
  
  /* Sección Bariatricline */
  #bariatricline-section {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 100px;
  }
  
  .bariatricline-columna-izquierda {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
  }
.bariatricline-columna-izquierda p{
    margin-top:20px ;
}
  #logo-bariatricline{
    max-width: 250px;
    
  }
  #cajas-bariatricline{
    max-height: 250px;
  }
  
  /* Footer */
  .footer-info {
    padding-left: 0;
    text-align: center;
  }
  
  /* Formulario */
  #form {
    padding: 30px 50px;
  }
}

/* Móviles (hasta 767px) */
@media (max-width: 767px) {
  
  /* Ajustes generales */
  section {
    padding: 60px 20px;
  }
  
  h3 {
    font-size: 2rem;
  }
  
  /* Menú de navegación - convertir a hamburguesa */
  .circular-menu {
    top: 20px;
    left: 20px;
  }
  
  .circular-menu:hover .menu-items {
    width: 60px;
    opacity: 0;
  }
  
  .menu-toggle {
    width: 50px;
    height: 50px;
  }
  
  .menu-items {
    width: 60px;
    height: 50px;
    padding: 0;
  }
  
  .menu-items ul {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    flex-direction: column;
    background: #f9f9f9;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 200px;
    opacity: 1;
  }
  
  .menu-items.active ul {
    display: flex;
  }
  
  .menu-items li {
    margin: 10px 0;
  }
  
  /* Títulos principales */
  .titulo-principal {
    font-size: 2.2rem;
    margin-bottom: 20px;
  }
  
  /* Sección Nosotros */
  #texto-nosotros {
    font-size: 1.2rem;
    max-width: 100%;
  }
  
  #texto-resaltado {
    font-size: 1.5rem;
  }
  
  /* Sección Productos */
  .secondary-boxes {
    flex-direction: column;
  }
  
  .secondary-box {
    flex: 1 1 100%;
    min-width: 100%;
    padding: 30px 20px;
  }
  .productos{
    max-height: 30px;
  }
  
  /* Sección Equipamiento */
  #hepatus6 {
    max-height: 200px;
  }
  
  .equipamiento-item-p {
    font-size: 1rem;
    margin: 15px 0;
  }
  
  /* Sección Hepatus */
  .contenido-izquierdo ul li {
    font-size: 1.2rem;
    margin-left: 20px;
  }
  
  /* Sección Logos */
  .logos-grid {
    grid-template-columns: 1fr;
  }
  
  .logo-item {
    height: 200px;
    margin: 10px;
  }
  
  .logo-title {
    font-size: 24px;
  }
  
  .logo-description {
    font-size: 16px;
    padding: 10px;
  }
  
  /* Slider de marcas */
  .marcas-slide {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .marca-item {
    width: 130px;
    height: 90px;
    margin: 10px;
  }
   #medicamentos-section {
    margin-top: 50vh;
  }
  /* Footer */
  .footer-items {
    flex-direction: column;
    align-items: center;
  }
  
  .footer-item {
    min-width: 100%;
    text-align: center;
  }
  
  .footer-titulo {
    font-size: 2rem;
  }
  
  /* Formulario */
  #form {
    margin: 15px;
    padding: 20px;
  }
  
  #form h2 {
    font-size: 2rem;
  }
  
  /* Background layer ajuste para móviles */
  .background-layer {
    left: 15px;
    right: 15px;
    border-radius: 30px;
  }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
  
  /* Ajustes adicionales para pantallas muy pequeñas */
  .titulo-principal {
    font-size: 1.8rem;
  }
  
  #logoDS-section {
    max-height: 30px;
  }
  
  .contenido-izquierdo ul li {
    font-size: 1rem;
  }
  
  .marca-item {
    width: 110px;
    height: 80px;
  }
  
  /* Ajuste del menú hamburguesa para pantallas muy pequeñas */
  .menu-items ul {
    width: 180px;
  }

  .text-boxes{
    flex-direction: column;
  }

  #medicamentos-section {
    margin-top: 50vh;
  }
}