html {
  height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  /*background:#f9ba2f;
  background: linear-gradient(0deg, rgba(253,151,12,1) 0%, rgba(219,103,0,1) 35%, rgba(254,147,10,1) 100%);*/
}

.imagen {
  width: 60<%;
}

.efarmacia {
  margin: 30px 1%;
  padding: 0.5%;
  text-align: center;
  width: 30%; 
  box-sizing: border-box;
  z-index: 99;
}

.efarma {
  border: 2px solid #fff;
  border-radius: 10px;
  padding: 5px;
  margin: 0 0 30px;
}

.contenedor {
  padding: 2%;
  max-width: 85%;
  margin: 0 auto 40px;
  padding: 2%;
  border: 2px solid #FFF;
  border-radius: 30px;
  -moz-border-radius: 30px;
  -webkit-border-radius: 30px;
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center;
  position: relative;
  background-size:cover;
}

.logo {
  width: 18%;  
  position: absolute;
  top: -50px;
  left: -30px;
  border: solid 2px #4158d0;
  background: #FFF;
  border-radius: 50%;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  z-index: 99;
  overflow: hidden;
  max-width: 140px;
  padding: 10px;
}

.logo-xp {
  width: 100%;
  border-radius: 50%; 
  display: block;
  margin-top: -20px;
  padding: 10px 0;
}

.farmacias {
  width: 85%; 
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
}

.bselecciona {
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border: 2px solid #0b1c74;
  padding: 10px 20px;
  text-decoration: none;
  background: #4158d0;
  background: -moz-linear-gradient(top, #4158d0 0%, #021d5e 100%);
  background: -webkit-gradient(left top, left bottom, color-stop(0%, #4158d0), color-stop(100%, #021d5e));
  background: -webkit-linear-gradient(top, #4158d0 0%, #021d5e 100%);
  background: -o-linear-gradient(top, #4158d0 0%, #021d5e 100%);
  background: -ms-linear-gradient(top, #4158d0 0%, #021d5e 100%);
  background: linear-gradient(to bottom, #4158d0 0%, #021d5e 100%);
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4158d0', endColorstr='#021d5e', GradientType=0 );
  color: #fff;
  font-family: Helvetica, Arial, San Serif;
  /*transition: all 0.3s ease;*/
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.bselecciona:hover {
  background: linear-gradient(to bottom, rgb(1 124 255) 20%, rgb(0 39 183) 80%);
  box-shadow: 0 0 15px #2893f0;
}

.bselecciona {
  position: relative;
  overflow: hidden; 
  display: inline-block;
}

.bselecciona:hover::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: burbujas 2s linear infinite;
  opacity: 0;
}

.bselecciona:hover::before {
  animation-delay: -0.5s;
}

.bselecciona:hover::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  bottom: -15px;
  left: 40px;
  animation: burbujas 2.5s linear infinite;
  opacity: 0;
}

.bselecciona:hover::after {
  animation-delay: -1s;
}

.bselecciona:hover::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  bottom: -5px;
  left: 70px;
  animation: burbujas 3s linear infinite;
  opacity: 0;
}

.bselecciona:hover::before {
  animation-delay: -1.5s; 
}

.bselecciona:hover::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  bottom: -10px;
  left: 90px;
  animation: burbujas 2.8s linear infinite;
  opacity: 0;
}

.bselecciona:hover::after {
  animation-delay: -2s; 
}


.btn-content {
  display: block;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  /*border: 2px solid #a30000;
  padding: 10px 20px; 
  background: rgba(201, 0, 0, 1);
  background: -moz-linear-gradient(top, rgba(201, 0, 0, 1) 0%, rgba(245, 32, 32, 1) 100%);*/
  color: #fff;
  font-family: Helvetica, Arial, San Serif;
  /*box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);*/
  transition: box-shadow 0.3s ease;
}

/*.bselecciona:hover .btn-content {
  background: linear-gradient(to bottom, rgb(255 118 118) 20%, rgb(247 0 0) 80%);
  box-shadow: 0 0 15px rgb(255 59 0 / 80%);
}*/

.burbujas {
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%; 
  height: 50px;
  display: flex;
  justify-content: space-around;
}

.burbuja {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: burbujas 2s linear infinite;
  opacity: 0;
}

@keyframes burbujas {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-30px) scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: translateY(-50px) scale(1);
    opacity: 0;
  }
}

.capa-cburbujas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.burbuja-contenedor::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
}

.burbuja-contenedor {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  animation: tintineo 2s ease-in-out infinite alternate;
}

@keyframes tintineo {
  0% { transform: scale(1); }
  100% { transform: scale(1.7); }
}

.txtdescr, .txtprecio {
  font-size: 16px;
  color: #ffc000;
  text-shadow: 0px -1px 6px #f1e60e;
  font-family: Helvetica, Arial, San Serif;
}

.txtprecio {
  font-size: 18px;
  font-weight: bold;
}

.regresabtn {
  width: 100%;
  margin-top: -5px;
  text-align: right;
  z-index: 99;
}

.regrbtn {
  border: 2px solid #ffe200;
  background: -webkit-linear-gradient(top, #fcbd01 0%, #d16a00 100%);
  background: -o-linear-gradient(top, #fcbd01 0%, #d16a00 100%);
  background: -ms-linear-gradient(top, #fcbd01 0%, #d16a00 100%);
  background: linear-gradient(to bottom, #fcbd01 0%, #d16a00 100%);
  background: -moz-linear-gradient(top, #fcbd01 0%, #d16a00 100%);
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: #fff;
  font-family: Helvetica, Arial, San Serif;
  /*transition: all 0.3s ease;*/
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease; 
}

.regrbtn:hover {
  background: -webkit-linear-gradient(top, rgb(255 190 67) 0%, rgb(255 52 52) 100%);
  background: -o-linear-gradient(top, rgba(255, 190, 67, 1) 0%, rgba(255, 52, 52, 1) 100%);
  background: -ms-linear-gradient(top, rgba(255, 190, 67, 1) 0%, rgba(255, 52, 52, 1) 100%);
  background: linear-gradient(to bottom, rgb(255 190 67) 0%, rgb(255 52 52) 100%);
  background: -moz-linear-gradient(top, rgba(255, 190, 67, 1) 0%, rgba(255, 52, 52, 1) 100%);  
  box-shadow: 0 0 15px rgba(255, 190, 67, 0.8);
}

.medicina {
  width: 70%
}

.contenedorp {
  text-align: center;
  /*padding: 2%;
  max-width: 96%;
  margin: 0 auto 40px;
  padding: 2%;
  border: 2px solid #166bc1;
  border-radius: 30px;
  background: #aee6ee;
  overflow: hidden;*/
}

.efarmaciap {
  background: #FFF;
  margin: 1%;
  padding: 0.5%;
  text-align: center;
  border-radius: 10px;
  width: 17%;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease, box-shadow 0.3s ease; /* Agrega transición para la sombra y el escalado */
}

.efarmaciap:hover {
  /*box-shadow: 0 0 15px rgba(2, 3, 129, 0.8);*/
  transform: scale(1.05); /* Un ligero aumento de tamaño al hacer hover */
}

.efarmaciap:hover .logo-xpp {
  filter: grayscale(0%); /* Aplica el color al logo cuando el ratón está sobre .efarmaciap */
}

.btnfarmacias {
  margin-top: -20px;
  z-index: 99;
  position: relative;
  background: #4d4d4d !important;
  transition: background-color 0.3s ease-in-out; /* Agrega transición al color de fondo del botón */
  border:1px solid #999 !important;
  border-radius: 100px !important;
  padding: 5px 30px 5px 30px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-transform: uppercase;
}

.btnfarmacias:hover {
  background: #255199 !important;
  border:1px solid #203ed3 !important;
}

.logo-xpp {
  width: 80%;
  filter: grayscale(100%);
  transition: filter 0.3s ease-in-out;
}

.logo-xpp:hover {
  filter: grayscale(0%);
}

.pharmaheader{background: #4158d0 !important;}

.contimg {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.imgcab {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  padding: 10px 5px;
}

header {
  background-color: #FFF;
  /*background-image: linear-gradient(170deg, #35c9ed 7%, #044b85 58%);*/
  margin-bottom: 30px
}

footer {
  background-color: #FFF;
}

.titliomont {
  text-align: center;
  font-family: Helvetica, Arial, San Serif;
  color: #FFF;
}

.ppie {
  font-size: 12px;
  font-family: Roboto, Sans-serif;
  color: #7A7A7A;
  /*padding: 65px 0*/
}

.apie {
  font-size: 12px;
  font-family: Roboto, Sans-serif;
  color: #7A7A7A;
  text-decoration: none;
  padding:30px 20px 0 0;
}

.apie:hover {
  color: #c3c3c3;
}

div.cabecera {
  max-width: 1140px;
  margin: auto
}

img.imgcab {
  width: 18%;
  padding: 22px 10px;
}

.ipie {
  color: #FFF
}

.ipie:hover {
  color: #00dafc;
}

.pdata1 {
  width: 70%;
  padding: 53px 0;
}

.pdata2 {
  width: 30%;
  padding: 53px 0;
}

footer .pie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: auto;
}

footer .pie>div {
  width: auto;
}

@media (max-width: 768px) {
  .farmacias {
    width: 100%;
  }

  .efarmacia {
    width: 47%;
  }

  .bselecciona {
    font-size: 15px
  }

  /*.txtdescr {
    font-size: 12px
  }*/

  .txtprecio {
    font-size: 14px;
  }

  .logo {
    /*width: 20%;*/
    top: -70px;
    left: -35px;
    width: 15%;
  }

  .efarmaciap {
    width: 30%;
  }

  .regresabtn {
    margin-top: 30px;
    margin-bottom: 30px
  }

  .logo-xp {
    margin-top: -12px;
    padding: 5px 0;
  }

  img.imgcab {
    width: 30%;
  }

  footer .pie {
    display: block
  }

  .ppie {
    padding: 40px 15px 0;
  }

  .pdata2 {
    padding-bottom: 40px;
    padding-left: 15px;
  }
}

/* Estilos del Carrousel */

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.carrousel{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.crrimg{
  width: 150px;
  margin: 0 20px;
  transition: filter 0.3s ease-in-out, transform 0.2s ease;
  cursor: pointer;
}

.crrimg:not(:hover){
  filter: grayscale(100%);
  /*filter: opacity(70%);*/
}

.crrimg:hover{
  transform: scale(1.2); /* Agrega esta línea para el efecto de crecimiento */
  transition: transform 0.2s ease; /* Agrega una transición suave */
  filter: grayscale(0%);
}

.scroll{
  position: relative;
  display: flex;
  width: 95%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 20%, #fff 80%, transparent);
}

.scroll div{
  white-space: nowrap;
  animation: animate 60s linear infinite;
}


@keyframes animate {
  0%{
      transform: translateX(0);
  }

  100%{
      transform: translateX(-100%);
  }
}

.scroll:hover div{  
  animation-play-state: paused;
}


/* Fin de Estilos del Carrousel */

@media (max-width: 576px) {
  .efarmaciap {
    width: 47%;
  }

  .efarmacia {
    width: 100%;
  }

  .logo-xp {
    margin-top: -12px;
    padding: 5px 0;
  }

  .logo {
    width: 23%;
    top: -56px;
    left: -20px;
  }

  .titliomont{
    font-size: 20px;
  }
}