* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Georgia;
}

body {
    background: linear-gradient(141deg, #CECC4C 50%, #2E784D 99%);
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: #C53A29;
}
/*Fondos*/

#medicamentos_fondo {
    position: relative;
}

#medicamentos_fondo::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://inversionesrosela.github.io/Inversiones-Rosela/img/imgcarrusel3.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

#equipoquirurgico_fondo {
    position: relative;
}

#equipoquirurgico_fondo::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://inversionesrosela.github.io/Inversiones-Rosela/img/imgcarrusel1.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}

#acercadenosotros_fondo {
    position: relative;
}

#acercadenosotros_fondo::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(https://inversionesrosela.github.io/Inversiones-Rosela/img/imgcarrusel5.jpg);
    background-size: cover;
    background-position: center;
    filter: blur(10px);
    z-index: -1;
}


/*Fondo de imagenes*/

.ventasCards:before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/imgcarrusel1.jpg');
    background-size: cover;
    filter: blur(10px) grayscale(50%);
    z-index: -1;
}

/*Logo del Header*/

header .info {
    display: flex;
    align-items: center;
}

header .info img {
    width: 100px;
    height: 100px;
    filter: brightness(0) invert(1);
}

header .texto {
    margin-left: 10px;
    text-align: center;
    color: white;
}

header .texto h1 {
    margin-bottom: 0.5rem;
    font-size: 2rem;
    color: white;
    letter-spacing: 2px;
}

header .texto h2 {
    margin-top: 0;
    font-size: 2rem;
    letter-spacing: 2px;
}

/*Animaciones del header*/

.nav-list li:hover>a {
    background-color: white;
    color: #C53A29;
    transform: rotate(0deg) translateY(0) scale(1.2);
    z-index: 999;
    padding: 10px;
}


/*Menu hamburguesa*/

.logo {
    max-width: 5rem;
}

.nav-list {
    list-style-type: none;
    display: flex;
    gap: 5rem;
    font-size: 1rem;
}

.nav-list li {
    position: relative;
}

.nav-list li a {
    color: white;
    text-decoration: none;
    padding: 8px 10px;
}

.abrir-menu,
.cerrar-menu {
    display: none;
}

/*Submenu*/
.submenu {
    display: none;
    position: absolute;
    background-color: white;
    padding: 10px 0;
    z-index: 10;
    border-top: 2px solid #C53A29;
    margin-top: 10px;
    list-style-type: none;
}

.nav-list li:hover .submenu {
    display: block;
}

.submenu li a {
    color: #C53A29;
    text-decoration: none;
    padding: 8px 20px;
    display: block;
    margin-bottom: 10px;
    font-size: 1.2rem;
    text-align: center;
    transition: background-color 0.3s, transform 0.3s;
}

.nav-list li:hover .submenu li a:hover {
    background-color: #C53A29;
    color: white;
    transform: scale(1.1);
}

/*El contenedor del index*/

.contenedor {
    display: flex;
    justify-content: left;
    align-items: left;
    left: 0;
    right: 0;
    margin-top: 25px;
    margin-bottom: 25px;
}

.contenedor h1 {
    background-color: #C53A29;
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 50px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 2rem;
    animation-duration: 1s;
    animation-name: slidein;
}

.contenedor p {
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 2rem;
    animation-duration: 1s;
    animation-name: slidein;
    font-weight: bold;
    text-shadow: 2px 2px 4px #75251a;
}

.contenedor ul {
    list-style-type: none;
    margin: 50px auto;
    padding: 0;
    display: flex;
    align-items: center;
    letter-spacing: 2px;
    gap: 5rem;
    animation-duration: 1s;
    animation-name: slidein;
}

.contenedor li {
    background-color: #C53A29;
    border-radius: 50px;
    padding: 25px;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.contenedor li:hover {
    background-color: white;
    color: #C53A29;
}

.contenedor img {
    width: 350px;
    margin: 25px 50px 25px 50px;
    animation: aparecerizq 1s forwards;
}


.container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 25px;
}

/*Acerca de nosotros*/

.acerca {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin-top: 25px;
    margin-bottom: 25px;
    animation-duration: 1s;
    animation-name: slidein;
}

.acerca>* {
    margin: 20px 0;
}

.acerca div {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation-duration: 1s;
    animation-name: slidein;
}

.acerca h1 {
    background-color: #C53A29;
    color: white;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 15px;
    padding: 20px;
    margin: 0 auto;
    margin-top: 50px;
    font-size: 4rem;
    animation-duration: 1s;
    animation-name: slidein;
    width: fit-content;
}

.acerca h2,
.acerca h3,
.acerca a {
    color: white;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    font-size: 3rem;
    animation-duration: 1s;
    animation-name: slidein;
    font-weight: bold;
    text-shadow: 2px 2px 4px black;
    text-decoration: none;
}

.acerca h2 {
    background-color: lightblue;
}

.acerca h4 {
    font-size: 2rem;
    color: black;
    text-shadow: 2px 2px 4px white;
    padding: 10px;
    margin: 30px;
    background-color: rgba(255, 255, 255, 0.692);
    text-align: center;
    line-height: 2;
    font-weight: normal;
}

.acerca img {
    width: 450px;
    height: 675px;
    margin: 25px 0;
    animation: aparecerizq 1s forwards;
    background-color: lightblue;
    border-radius: 50%;
}

/*Apartado de productos*/

.ventasCards {
    display: flex;
    flex-wrap: wrap;
    margin: 20px auto;
    max-width: 90vw;
    justify-content: center;
    gap: 30px;
}

/* Estilos para el contenedor del título de ventas */

.ventastitulo {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transition: all 0.3s ease;
}

.ventastitulo h1 {
    font-size: 2.5rem;
    color: #C53A29;
    letter-spacing: 2px;
    margin: 0;
}

.ventassubtitulo {
    color: white;
    text-align: center;
    background-color: #C53A29;
    padding: 20px;
    font-size: 1rem;
}


.card {
    background-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.2);
}

.card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.card h3 {
    font-size: 28px;
    color: white;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 5px rgba(0, 0, 0);
    background-color: rgba(197, 59, 41, 0.6);
    margin: 0;
    padding: 10px;
}

/*Contactanos*/
.contenedor-info {
    background-color: lightblue;
    padding: 50px;
    text-align: center;
}

.contenedor-info h1{
    color: white;
    margin: 10px 10px 20px 10px;
    font-size: 35px;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.contactoinfo {
    color: black;
    margin: 10px;
}

.contactoinfo h2 {
    margin: 20px;
    color: black;
    text-shadow: 2px 2px 5px white;
}

.contactoinfo a {
    text-decoration: none;
    color: white;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.contenedor-ubicacion {
    background-image: linear-gradient(to bottom right, #4CAF50, #FFC107, #DB4437, #4285F4);
    color: white;
    
}

.contenedor-ubicacion h1{
    color: white;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
    text-align: center;
    padding: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
}

.ubicacion iframe {
    width: 100%;
    border-radius: 10px;
}

.contenedor-formulario {
    padding-top: 20px;
    border-bottom: 10px solid #fff;
}

.contenedor-formulario h1 {
    text-align: center;
    padding: 20px 0;
    color: white;
    text-shadow: 2px 2px 5px rgb(0, 0, 0);
}

.formulario {
    margin: 0 250px 0 250px;
    padding-bottom: 40px;
    padding-top: 40px;
}

form {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5em;
    border-radius: 50px;
}

form:hover {
    transition: 0.3s all;
    transform: scale(1);
    border: 5px solid lightblue;
}

form label {
    color: #C53A29;
    text-align: center;
    margin: 10px;
    font-size: 25px;
    font-weight: bold;
}

form select {
    font-size: 20px;
    display: block;
    margin: 0 0 20px;
    padding: 25px 25px;
    width: 50%;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid lightblue;
}

form textarea {
    font-size: 20px;
    display: block;
    margin: 0 0 20px;
    padding: 25px 25px;
    width: 50%;
    border-radius: 10px;
    border: 3px solid lightblue;
    cursor: pointer;
}

form input {
    display: block;
    margin: 0 0 20px;
    padding: 25px 25px;
    width: 50%;
    font-size: 20px;
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid lightblue;
}

form #btnenviar:hover {
    transition: 2s all;
    border: 3px solid lightblue;
    color: white;
    background-color: #C53A29;
}

/*Botón del contacto*/
.roundbtn {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 4rem;
    height: 4rem;
    background-color: #4caf4f;
    color: white;
    text-align: center;
    line-height: 4rem;
    border-radius: 50%;
    box-shadow: 3px 3px 5px #000;
    cursor: pointer;
    border: 2px solid #4caf4f;
    transition: 0.5s all ease-in-out;
    z-index: 1;
}

.roundbtn:hover {
    background-color: white;
    color: #4caf4f;
}

.roundbtn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.5s ease-in-out;
}

.roundbtn:hover img {
    filter: brightness(0.6);
}

.roundbtn:hover .btn-text {
    display: block;
}

.btn-text {
    display: none;
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-110%);
    color: white;
    font-weight: bold;
    font-size: 2rem;
    text-shadow: 2px 2px 2px black;
    letter-spacing: 2px;
    padding: 0.5rem;
    border-radius: 5rem;
    background-color: #3b853dd3;
}

.roundbtn:hover .btn-text {
    display: block;
}

.texto-animado {
    overflow: hidden;
    white-space: nowrap;
}

.texto-animado span {
    display: inline-block;
    opacity: 0;
    animation: aparecer 1s forwards;
}

.contactos {
    display: none;
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    transform: translateX(-20%);
    background-color: #3b853e;
    border: 3px solid white;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
    width: 400%;
}

.contactos a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-bottom: 2px solid rgb(255, 255, 255);
}

.contactos a:last-child {
    border-bottom: none;
}

.contactos a:hover {
    background-color: white;
    color: #3b853e;
}

.roundbtn.open .contactos {
    display: block;
}

/*Botón de medicamentos*/
.medicamento {
    position: fixed;
    bottom: 70px;
    left: 20px;
    width: 4rem;
    height: 4rem;
    background-color: lightblue;
    color: white;
    text-align: center;
    line-height: 4rem;
    border-radius: 50%;
    box-shadow: 3px 3px 5px #000;
    cursor: pointer;
    border: 2px solid black;
    transition: 0.5s all ease-in-out;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.medicamento:hover {
    background-color: white;
    color: #4caf4f;
}

.medicamento img {
    width: 60%;
    height: 60%;
    object-fit: contain;
    transition: filter 0.5s ease-in-out;
}

/*Botón de home*/
.home {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background-color: black;
    color: white;
    text-align: center;
    line-height: 4rem;
    border-radius: 50%;
    box-shadow: 3px 3px 5px #000;
    cursor: pointer;
    border: 2px solid white;
    transition: 0.5s all ease-in-out;
    z-index: -1;
    opacity: 0;
}

.home:hover {
    background-color: white;
    color: black;
}

.arrow {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.arrow:hover{
    filter: brightness(0.6);
    color: black;
}

/*Botón de búsqueda*/
.search-container {
    position: relative;
    width: 300px;
    margin: 10px auto;
}

#search {
    width: calc(100% - 40px);
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 5px;
}

#search:focus {
    border-color: #007bff;
    outline: none;
}

.search-button {
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 100%;
    background-color: #007bff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
}

.search-button:focus {
    outline: none;
}

.search-button i {
    color: white;
    font-size: 18px;
    line-height: 40px; 
}


/*Animaciones*/
@keyframes slidein {
    from {
        transform: translateX(5%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes aparecer {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.texto-animado span:nth-child(1) {
    animation-delay: 0s;
}

.texto-animado span:nth-child(2) {
    animation-delay: 0s;
}

.texto-animado span:nth-child(3) {
    animation-delay: 0.1s;
}

.texto-animado span:nth-child(4) {
    animation-delay: 0.1s;
}

.texto-animado span:nth-child(5) {
    animation-delay: 0.2s;
}

.texto-animado span:nth-child(6) {
    animation-delay: 0.2s;
}

.texto-animado span:nth-child(7) {
    animation-delay: 0.3s;
}

.texto-animado span:nth-child(8) {
    animation-delay: 0.3s;
}

.texto-animado span:nth-child(9) {
    animation-delay: 0.4s;
}

.texto-animado span:nth-child(10) {
    animation-delay: 0.4s;
}

.texto-animado span:nth-child(11) {
    animation-delay: 0.5s;
}

.texto-animado span:nth-child(12) {
    animation-delay: 0.5s;
}


/*Pie de la página*/
footer {
    background-color: #C53A29;
    color: white;
    text-align: center;
    position: relative;
    width: 100%;
    left: 0;
    right: 0;
    height: 60px;
    bottom: -60px;
    text-align: center;
    line-height: 60px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/*Tamaño de celular*/
@media screen and (max-width: 1500px) {
    header .info {
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .abrir-menu,
    .cerrar-menu {
        display: block;
        border: 0;
        font-size: 3rem;
        background-color: transparent;
        cursor: pointer;
        color: #fff;
    }

    .abrir-menu:hover,
    .cerrar-menu:hover {
        color: transparent;
    }

    .nav-list li:hover .submenu {
        display: none;
    }

    .nav {
        opacity: 0;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        align-items: end;
        gap: 1rem;
        position: absolute;
        top: 0;
        position: fixed;
        right: 0;
        bottom: 0;
        background-color: #75251a;
        padding: 1rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .5);
        z-index: 5;
        position: fixed;
        top: 0;
        bottom: 0;
        height: 100%;
        transition: transform 0.3s ease;
        transform: translateX(100%);
    }

    .nav.visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 4;
    }

    .nav-list {
        flex-direction: column;
        align-items: end;
        list-style-type: none;
    }

    .nav-list li a {
        color: #ecececec;
        font-weight: bold;
        line-height: 3rem;
    }

    .nav-list li {
        position: relative;
    }

    body.nav-open {
        overflow: hidden;
    }

    main .contenedor {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 15px;
    }

    main .contenedor h1 {
        font-size: 1.5rem;
        padding: 8px;
        border-radius: 8px;
        margin-bottom: 10px;
        text-align: center;
        background-color: white;
        color: #C53A29;
    }

    main .contenedor img {
        width: 200px;
        margin: 10px;
    }

    main .contenedor p {
        font-size: 1.5rem;
        margin-bottom: 10px;
        text-align: center;
        margin: 50px auto;
    }

    main .contenedor ul {
        margin: 50px auto;
        padding: 0;
        display: block;
        text-align: center;
        list-style-type: none;
    }

    main .contenedor li {
        font-size: 1rem;
        margin-bottom: 10px;
        text-align: center;
        margin: 30px auto;
    }

    .acerca {
        flex-direction: column;
        text-align: center;
    }

    .acerca h1 {
        margin: 20px auto 10px;
        font-size: 1.5rem;
    }

    .acerca h2 {
        font-size: 2.5rem;
    }

    .acerca h3 {
        font-size: 1.5rem;
    }

    .acerca h4 {
        font-size: 1rem;
    }

    .acerca a {
        font-size: 1.5rem;
    }


    .acerca img {
        width: 250px;
        height: auto;
        margin: 15px auto;
    }

    .container {
        flex-direction: column;
    }

    .acerca {
        margin: 0 auto;
    }

    /*Ventas @media*/

    .ventastitulo h1 {
        font-size: 2rem;
        text-align: center;
    }

    /*Productos*/
    .card {
        width: 220px;
    }

    .ventasCards {
        gap: 15px; 
    }

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

    .card img {
        height: 250px;
    }

    .card h3 {
        font-size: 15px;
        padding: 8px;
    }

    /*Contacto botón @media*/

    main .roundbtn {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        z-index: 2;
    }

    main .roundbtn img {
        width: 100%;
        height: 100%;
    }

    main .medicamento {
        width: 3rem;
        height: 3rem;
        line-height: 3rem;
        z-index: 2;
    }

    main .medicamento img {
        width: 60%;
        height: 60%;
    }

    main .btn-text {
        font-size: 1rem;
        padding: 0.25rem;
        border-radius: 2.5rem;
        background-color: #4caf4f;
    }

    main .btn-text {
        font-size: 1rem;
        padding: 0.25rem;
        border-radius: 2.5rem;
        background-color: #4caf4f;
    }

    main .contactos {
        bottom: calc(100% + 10px);
        transform: translateX(20%);
        width: 500%;
    }

    /*media del contactanos*/
    .contenedor-info {
        padding: 30px;
    }

    .contenedor-info h1 {
        font-size: 30px;
    }

    .contactoinfo {
        margin: 5px;
    }

    .contactoinfo h2 {
        margin: 10px;
        font-size: 20px;
    }

    .contenedor-ubicacion h1 {
        padding: 20px;
    }

    .formulario {
        margin: 0 20px;
    }

    form select,
    form textarea,
    form input {
        width: 100%;
    }
}