/* ============================================================
   Baroxon — floating customer-service bar (.sideBar + .m-foot)
   Ported from baroxongate.com kefu.css, themed for Baroxon red.
   Used on barrerasede.es (ES) and barrerasede.es/en (EN).
   ============================================================ */
:root { --ztcolor: #c30d23; }

.sideBar { position: fixed; right: 0; top: 40%; transform: translateY(-50%); z-index: 998; }

.side1 { width: 50px; height: 150px; background: #333333; text-align: center; transition: all .5s; display: flex; align-items: center; justify-content: center; }
.side1 a, .side1 img, .side1 i, .side1 span { display: block; }
.side1 img { margin: 0 auto; }
.side1 i { margin: 10px auto; width: 1px; height: 0; background: #fff; transition: all .5s ease; }
.side1 span { color: #fff; font-size: 14px; writing-mode: vertical-lr; margin: 0 auto; letter-spacing: 2px; }
.side1:hover { background: var(--ztcolor); }
.sideBar .icon { font-size: 16px; width: 25px; height: 25px; margin-right: 3px; font-style: normal; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; vertical-align: middle; margin-top: -3px; fill: #ffffff; }

.side { height: 50px; position: absolute; transition: all .5s; }
.side a { display: block; height: 50px; font-size: 0; }
.side i, .side span { display: inline-block; vertical-align: middle; height: 100%; line-height: 50px; }
.side i { width: 50px; text-align: center; background: var(--ztcolor); transition: all .3s; }
.side i img { vertical-align: middle; }
.side span { text-align: center; line-height: 50px; background: #333333; font-size: 13px; color: #fff; transition: all 1s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side:hover { right: 0 !important; }
.side:hover i { background: var(--ztcolor); }

.side2 { top: 151px; right: -140px; width: 190px; }
.side2 span { width: 140px; }
.side3 { right: -190px; width: 240px; top: 202px; }
.side3 span { width: 190px; }
.side4 { right: -140px; width: 190px; top: 253px; }
.side4 span { width: 140px; }
.side5 { right: -90px; width: 140px; top: 304px; cursor: pointer; }
.side5 span { width: 90px; font-size: 14px; }
.side6 { right: -90px; width: 140px; top: 355px; cursor: pointer; }
.side6 span { width: 90px; font-size: 14px; }
.side7 { right: -90px; width: 140px; top: 406px; cursor: pointer; }
.side7 span { width: 90px; font-size: 14px; }

/* hover QR panels — enlarged for legibility */
.qcodePic { position: absolute; top: 50px; left: 0; width: 100%; display: none; z-index: 99; text-align: center; background: #fff; border: 1px solid #e5e5e5; box-shadow: 0 8px 24px rgba(0,0,0,.18); border-radius: 10px; padding: 10px 10px 6px; }
.qcodePic img { width: 190px !important; height: 190px !important; object-fit: contain; display: block; margin: 0 auto; background: #fff; }
.qcodePic em { display: block; font-style: normal; font-size: 12px; color: #555; margin: 6px 0 4px; line-height: 1.4; }
.qcodePic a.btn-wa { display: block; margin: 4px 0 2px; padding: 6px 10px; background: #25d366; color: #fff !important; border-radius: 6px; font-size: 12px; }
.side5:hover .qcodePic, .side7:hover .qcodePic, .side5:focus-within .qcodePic, .side7:focus-within .qcodePic { display: block; }

/* mobile bottom bar */
.m-foot { position: fixed; bottom: 0; left: 0; z-index: 999; width: 100%; background: #f5f5f5; display: none; }
.m-foot ul { font-size: 0; text-align: center; height: 54px; }
.m-foot ul li { float: left; width: 25%; height: 54px; display: flex; flex-direction: column; justify-content: center; align-items: center; background: var(--ztcolor); border-left: 1px solid #dbdbdb; border-top: 1px solid #dbdbdb; }
.m-foot ul li:hover { background: var(--ztcolor); }
.m-foot ul li:nth-child(3) { border-left: 1px solid #ffffff; border-right: 1px solid #ffffff; }
.m-foot ul li:first-child, .m-foot ul li:nth-child(4) { border-left: none; }
.m-foot ul li span, .m-foot ul li img { display: block; margin: 0 auto; }
.m-foot ul li svg { color: #ffffff; fill: #ffffff; width: 22px; height: 22px; }
.m-foot ul li span { line-height: 14px; font-size: 12px; color: #ffffff; transition: all .4s; margin-top: 4px; }

@media only screen and (max-width: 768px) {
  .sideBar { display: none; }
  .m-foot { display: block; }
  body { padding-bottom: 54px; }
}
@media only screen and (max-width: 1000px) and (min-width: 769px) {
  .qcodePic img { width: 160px !important; height: 160px !important; }
}
