/* ============================================================
   BARRA DE CONTACTO MÓVIL — CIBERAULA
   Sticky bottom bar, solo visible en pantallas ≤768px
   Versión: 1.1 (03/03/2026) — Reducido padding
   ============================================================ */

/* --- Oculta por defecto (escritorio) --- */
.cib-mobile-bar {
  display: none;
}

@media (max-width: 768px) {
  .cib-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1B2A4A;
    border-top: 2px solid rgba(224, 122, 95, 0.3);
    padding: 0;
    margin: 0;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.35);
    justify-content: stretch;
    align-items: stretch;
    height: 44px;
  }

  .cib-mobile-bar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #ffffff;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 2px;
    transition: background 0.2s;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    gap: 2px;
  }

  .cib-mobile-bar a:last-child {
    border-right: none;
  }

  .cib-mobile-bar a:active {
    background: rgba(224, 122, 95, 0.15);
  }

  .cib-mobile-bar a svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }

  .cib-mobile-bar .cib-bar-whatsapp {
    background: #25D366;
    color: #fff;
    border-right-color: rgba(255, 255, 255, 0.15);
  }

  .cib-mobile-bar .cib-bar-whatsapp:active {
    background: #1EBE57;
  }

  body {
    padding-bottom: 48px !important;
  }
}

/* === FAB WHATSAPP ESCRITORIO === */
@media (min-width: 769px) {
  .cib-wa-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9998;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.25));
  }
  .cib-wa-fab a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    font-family: "Outfit","Plus Jakarta Sans",sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 13px 22px 13px 16px;
    border-radius: 50px;
    transition: background .2s, transform .2s, box-shadow .2s;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    white-space: nowrap;
  }
  .cib-wa-fab a:hover {
    background: #1EBE57;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  }
  .cib-wa-fab a svg { width:26px; height:26px; flex-shrink:0; }
  .cib-wa-fab .cib-wa-label { display:flex; flex-direction:column; line-height:1.2; }
  .cib-wa-fab .cib-wa-label span:first-child { font-size:13px; font-weight:700; }
  .cib-wa-fab .cib-wa-label span:last-child  { font-size:10px; font-weight:400; opacity:.85; }
}
@media (max-width: 768px) { .cib-wa-fab { display:none; } }
