/* Farmacia Gomila - farmacias.com platform theme - purple */
*, *:before, *:after { box-sizing: border-box; }
body { font-family: Raleway, Arial, sans-serif; color: #333; background: #fff; margin: 0; padding: 0; }
a { color: #5e35b1; text-decoration: none; transition: color .2s; }
a:hover { color: #4527a0; text-decoration: none; }
img { max-width: 100%; height: auto; }
p { margin: 0 0 15px; line-height: 1.7; }
h1,h2,h3,h4,h5 { font-family: Raleway, sans-serif; font-weight: 700; margin: 0 0 15px; }

/* ---- LOADER ---- */
.loader-wrap { position: fixed; top:0; left:0; width:100%; height:100%; background:#fff; z-index:9999; display:flex; align-items:center; justify-content:center; }
.loader { border: 1.1em solid #ede7f6; border-top-color: #5e35b1; border-radius: 50%; width: 60px; height: 60px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LAYOUT ---- */
#boxed-wrap { width: 100%; overflow: hidden; }
#main { min-height: 400px; }

/* ---- HEADER ---- */
#header { position: relative; z-index: 100; background: #fff; }
.header-2 { box-shadow: 0px 1px 10px rgba(94,53,177,.18); }
#menu-superior { padding: 0; }
#logo-menu { display: flex; align-items: center; padding: 12px 15px; }
#logo a { display: block; }
#logo img { max-height: 64px; width: auto; }

/* ---- NAV ---- */
#menu-color { display: flex; align-items: center; justify-content: flex-end; }
.mainnav { display: inline-block; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; }
.menu li { position: relative; }
.menu li a {
  display: block;
  padding: 22px 16px;
  font-family: Raleway, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s, background .2s;
}
.menu li a:hover,
.menu li a.active,
.menu li.active > a { color: #5e35b1; }
.menu li a.active::after,
.activo::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #5e35b1;
  border-radius: 2px 2px 0 0;
}

/* cl-effect-2 hover underline */
.cl-effect-2 a span { position: relative; display: inline-block; }
.cl-effect-2 a span:before {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: #5e35b1;
  transition: width .3s;
}
.cl-effect-2 a:hover span:before { width: 100%; }

/* Mobile menu button */
.btn-menu {
  display: none;
  font-size: 22px;
  cursor: pointer;
  padding: 12px 15px;
  color: #5e35b1;
}
.btn-menu i { color: #5e35b1; }

/* ---- BUTTONS ---- */
.btn-default, .label-default {
  background-color: #5e35b1 !important;
  border-color: #5e35b1 !important;
  color: #fff !important;
}
.btn-default:hover, .label-default:hover {
  background-color: #4527a0 !important;
  border-color: #4527a0 !important;
}
.btn { border-radius: 3px; font-family: Raleway, sans-serif; font-weight: 600; }

/* ---- SLIDER / FLEXSLIDER ---- */
.roll-slider { position: relative; overflow: hidden; }
.roll-slider .main-slider { margin: 0; padding: 0; }
.roll-slider .main-slider .flex-control-paging { bottom: 12px; }
.roll-slider .main-slider .flex-control-paging li a {
  border: 1px solid #5e35b1;
  background: rgba(94,53,177,.3);
}
.roll-slider .main-slider .flex-control-paging li a.flex-active {
  background: #5e35b1;
  border: 2px solid #5e35b1;
}

/* ---- CONTENT BOXES ---- */
.roll-content-box1, .roll-content-box2 {
  position: relative;
  padding: 30px 20px;
  text-align: center;
  transition: all .3s;
  overflow: hidden;
}
.roll-content-box1 .intro-icon {
  font-size: 40px;
  color: #5e35b1;
  margin-bottom: 15px;
  transition: box-shadow .3s;
}
.roll-content-box1:hover .intro-icon {
  box-shadow: 0 0 0 8px rgba(94,53,177,.12);
}
.roll-content-box1:hover .hi-icon-wrap::before,
.roll-content-box1:hover .hi-icon-wrap::after,
.roll-content-box1:hover p::before,
.roll-content-box1:hover p::after {
  background-color: rgba(94,53,177,.07);
}
.roll-content-box2 .title { font-size: 18px; color: #333; margin-bottom: 10px; }
.roll-content-box2 .title .icon-servicio { color: #5e35b1; }
.roll-content-box2:hover .title::before,
.roll-content-box2:hover .title::after,
.roll-content-box2:hover p::before,
.roll-content-box2:hover p::after {
  background-color: rgba(94,53,177,.07);
}

/* ---- SERVICES / DIR ---- */
.dir { text-align: center; }
.dir i { color: #5e35b1; border: 2px dashed #5e35b1; padding: 12px; border-radius: 50%; font-size: 28px; margin-bottom: 12px; }

/* ---- RECENT WORK ---- */
.roll-recent-work .recent-work-item { position: relative; overflow: hidden; }
.roll-recent-work .recent-work-item .overlay {
  position: absolute; top:0; left:0; width:100%; height:100%;
  background-color: rgba(94,53,177,.75);
  opacity: 0;
  transition: opacity .3s;
  display: flex; align-items: center; justify-content: center;
}
.roll-recent-work .recent-work-item:hover .overlay { opacity: 1; }

/* ---- CONTACT FORM ---- */
.roll-contact-form label.error { color: #5e35b1; font-size: 12px; }
.roll-contact-form input.error,
.roll-contact-form textarea.error { border: 1px solid #5e35b1; }
.roll-contact-form input, .roll-contact-form textarea {
  width: 100%; padding: 10px 14px;
  border: 1px solid #ddd; border-radius: 3px;
  font-family: Raleway, sans-serif;
  margin-bottom: 15px;
}
.roll-contact-form input:focus, .roll-contact-form textarea:focus {
  border-color: #5e35b1; outline: none;
}

/* ---- BRANDS / CLIENTS ---- */
ul.clients {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
}
ul.clients li {
  padding: 10px 18px;
  margin: 6px;
  border: 2px solid #ede7f6;
  border-radius: 4px;
  transition: border-color .2s;
}
ul.clients li:hover { border-color: #5e35b1; }
ul.clients li img { max-height: 50px; width: auto; }

/* ---- TITLES / SECTION HEADINGS ---- */
.title-post { background-color: #5e35b1; color: #fff; padding: 10px 20px; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 28px; color: #333; }
.section-title h2 span { color: #5e35b1; }

/* ---- INFO / ADDRESS BLOCK ---- */
.elem_content_info img, .elem_content_text { border-color: #ede7f6; }
.elem_content_info img { border: 2px solid #ede7f6; border-radius: 4px; }

/* ---- SECONDARY SIDEBAR ---- */
#secondary .widget a { color: #5e35b1 !important; }

/* ---- FOOTER ---- */
.footer {
  background: #f5f0f8;
  padding: 30px 0 20px;
  border-top: 3px solid #5e35b1;
}
.footer h4 { color: #5e35b1; }

/* ---- BOTTOM BAR ---- */
.caja-enlaces {
  background: #4527a0;
  padding: 8px 0;
  text-align: center;
}
.caja-enlaces .enlaces { font-size: 12px; color: rgba(255,255,255,.7); }
.caja-enlaces .enlaces a { color: #fff; text-decoration: underline; }

.bottom {
  background: #3b1f8c;
  padding: 20px 0;
  color: #fff;
}
.bottom .wrap { display: flex; flex-wrap: wrap; align-items: center; }
.bottom-left img { max-height: 48px; filter: brightness(0) invert(1); }
.bottom-links { display: flex; flex-wrap: wrap; gap: 10px; }
.bottom-links a {
  color: rgba(255,255,255,.8);
  font-size: 13px;
  font-family: Raleway, sans-serif;
  transition: color .2s;
}
.bottom-links a:hover { color: #fff; }
.address { color: rgba(255,255,255,.7); font-size: 13px; }

/* ---- COOKIES ---- */
.cookies {
  position: fixed; bottom: 0; left: 0; width: 100%;
  background: rgba(40,20,80,.96);
  color: #fff;
  padding: 14px 20px;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.cookies p { margin: 0; font-size: 13px; }
.cookies a { color: #b39ddb; }
.cookies button {
  background: #5e35b1; color: #fff;
  border: none; padding: 6px 14px;
  border-radius: 3px; cursor: pointer; font-size: 13px;
}
.cookies button:hover { background: #4527a0; }

/* ---- OWL CAROUSEL overrides ---- */
.owl-theme .owl-controls .owl-buttons div {
  background: #5e35b1;
  border-radius: 3px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .btn-menu { display: block; }
  .menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.1); z-index: 200; }
  .menu.open { display: flex; }
  .menu li a { padding: 14px 20px; border-bottom: 1px solid #f0e8ff; }
  #logo-menu { padding: 10px 15px; }
}
@media (max-width: 767px) {
  .bottom-links { justify-content: center; }
  .bottom .wrap { text-align: center; }
  .bottom-right, .bottom-left { width: 100%; text-align: center; margin-bottom: 10px; }
  .address { text-align: center !important; width: 100%; }
}
