/* Fixed Contact Bar - Optimized */
:root {
  --contact-bar-height: 70px;
  --contact-bar-height-mobile: 120px;
  --contact-bar-red: #dc2626;
  --contact-bar-whatsapp: #25D366;
  --contact-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  --contact-gradient: linear-gradient(to right, #7f1d1d, #991b1b);
}

html {
  padding-bottom: var(--contact-bar-height);
}

.fixed-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--contact-gradient);
  box-shadow: var(--contact-shadow);
  z-index: 1000;
  height: var(--contact-bar-height);
  display: flex;
  align-items: center;
}

.fixed-bottom .row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%;
  padding: 0 8px;
  margin: 0;
}

.fixed-bottom .col-6 {
  padding: 0;
}

.ctmobile, .ctwhatsapp {
  display: grid;
  grid-template-rows: auto auto;
  place-items: center;
  padding: 8px 4px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: transform 0.2s ease, filter 0.2s ease;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ctmobile {
  background-color: var(--contact-bar-red);
}

.ctwhatsapp {
  background-color: var(--contact-bar-whatsapp);
}

.ctmobile:hover, .ctwhatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.ctmobile:active, .ctwhatsapp:active {
  transform: translateY(0);
  filter: brightness(0.95);
}

.ctmobile i, .ctwhatsapp i {
  font-size: 24px;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  html {
    padding-bottom: var(--contact-bar-height-mobile);
  }

  .fixed-bottom {
    height: var(--contact-bar-height-mobile);
  }

  .fixed-bottom .row {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
  }

  .ctmobile, .ctwhatsapp {
    padding: 4px;
    font-size: 13px;
  }

  .ctmobile i, .ctwhatsapp i {
    font-size: 20px;
  }
}