/* Migora - Botones de contacto. Todo con prefijo mgc- para no chocar con el tema. */

/* Teléfono en la cabecera */
.mgc-tel{display:inline-flex;align-items:center;gap:8px;background:#c63d3d;color:#fff!important;font-family:Raleway,"Source Sans Pro",sans-serif;font-weight:700;font-size:17px;line-height:1;letter-spacing:.3px;padding:11px 18px;border-radius:999px;text-decoration:none!important;box-shadow:0 4px 14px rgba(0,0,0,.35);white-space:nowrap;transition:background .2s,transform .2s}
.mgc-tel:hover,.mgc-tel:focus-visible{background:#a92f2f;color:#fff!important;transform:translateY(-1px)}
.mgc-tel:focus-visible{outline:3px solid #fff;outline-offset:2px}
.mgc-tel svg{width:18px;height:18px;flex:0 0 18px;fill:currentColor}
.mgc-tel .mgc-tel-txt small{display:block;font-size:11px;font-weight:600;opacity:.9;letter-spacing:.5px;text-transform:uppercase;margin-bottom:3px}
.mgc-tel-slot{display:flex;justify-content:flex-end;align-items:center}
#masthead .mgc-tel-slot{float:right;margin-left:20px}
#masthead.float-header .mgc-tel{padding:8px 16px;font-size:16px}
#masthead.float-header .mgc-tel .mgc-tel-txt small{display:none}
.mgc-tel-fallback{position:fixed;top:12px;right:12px;z-index:100000}

/* WhatsApp flotante (ordenador y tableta) */
.mgc-wa{position:fixed;right:18px;bottom:18px;z-index:99990;width:60px;height:60px;border-radius:50%;background:#25d366;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 18px rgba(0,0,0,.3);text-decoration:none!important;transition:transform .2s}
.mgc-wa:hover,.mgc-wa:focus-visible{transform:scale(1.07)}
.mgc-wa:focus-visible{outline:3px solid #fff;outline-offset:3px}
.mgc-wa svg{width:34px;height:34px;fill:#fff}
.mgc-wa .mgc-wa-tip{position:absolute;right:72px;background:#fff;color:#222;font:600 14px/1.2 "Source Sans Pro",sans-serif;padding:8px 12px;border-radius:8px;box-shadow:0 3px 12px rgba(0,0,0,.2);white-space:nowrap;pointer-events:none}

/* Botón «volver arriba» del tema: encima del WhatsApp, sin taparlo */
.go-top{right:25px!important}
.go-top.show{bottom:92px!important}

/* Barra fija abajo: solo móvil */
.mgc-bar{display:none}

@media (max-width:1024px){
 #masthead .header-wrap .row > div:last-child{display:flex;justify-content:center;align-items:center;gap:18px}
 #masthead .mgc-tel-slot{order:2;float:none;margin:0}
 #masthead .btn-menu{order:1;margin:0!important}
 .mgc-tel{font-size:16px;padding:9px 16px}
 .mgc-tel .mgc-tel-txt small{display:none}
}

@media (max-width:767px){
 .mgc-wa{display:none}
 .mgc-bar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:99990;box-shadow:0 -3px 14px rgba(0,0,0,.25);padding-bottom:env(safe-area-inset-bottom)}
 .mgc-bar a{flex:1 1 50%;display:flex;align-items:center;justify-content:center;gap:9px;height:56px;color:#fff!important;font:700 17px/1 Raleway,"Source Sans Pro",sans-serif;text-decoration:none!important;letter-spacing:.3px}
 .mgc-bar a svg{width:22px;height:22px;fill:currentColor}
 .mgc-bar-tel{background:#c63d3d}
 .mgc-bar-wa{background:#168a45}
 .mgc-bar a:active{filter:brightness(.9)}
 body{padding-bottom:calc(56px + env(safe-area-inset-bottom))}
 .go-top.show{bottom:72px!important}
 .cky-btn-revisit-wrapper{bottom:72px!important}
}

@media (prefers-reduced-motion:reduce){.mgc-tel,.mgc-wa{transition:none}}
