/* ===========================
   FRONTEND ESTILOS
   =========================== */

.ha-wrapper {
  width: 100%;
  font-family: Arial, sans-serif;
  text-align: center;
}

/* Selector móvil */
.ha-mobile-select {
  display: none;
  margin-bottom: 20px;
}
.ha-mobile-select .ha-select {
  width: 100%;
  max-width: 260px;
  padding: 10px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  font-size: 14px;
}

/* Tabs desktop */
.ha-tabs {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 25px;
}

.ha-tab {
  background: none;
  border: none;
  padding: 10px 0;
  font-size: 13px;
  letter-spacing: .02em;
  opacity: 0.6;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ha-tab.active {
  opacity: 1;
  font-weight: bold;
  border-bottom: 2px solid #000;
}

/* Contenido */
.ha-content { 
  display: none; 
}

.ha-content.active { 
  display: block; 
}

.ha-title {
  margin-bottom: 6px;
  font-size: 18px;
}

.ha-phone {
  margin-bottom: 30px;
  font-size: 12px;
}

.ha-phone a {
  color: #000;
  text-decoration: none;
}

/* Grids */
.ha-grid {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ha-grid.big {
  max-width: 900px;
  margin: 0 auto 40px;
  gap: 70px 90px;
}

.ha-item {
  width: 150px;
}

.ha-item img {
  height: 40px;
  margin-bottom: 8px;
}

.ha-item p {
  font-size: 13px;
  margin: 0;
  position: relative;
}

/* Botón info */
.ha-info-btn {
  margin-left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #8aa4c0;
  background: #fff;
  color: #8aa4c0;
  font-size: 11px;
  line-height: 14px;
  cursor: pointer;
  padding: 0;
}

/* Fondo oscuro modal */
.ha-tooltip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Modal */
.ha-tooltip-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 40px;
  max-width: 820px;
  width: 92%;
  position: relative;
  box-shadow: 0px 8px 32px rgba(0,0,0,0.25);
  text-align: left;
  animation: haFadeIn 0.2s ease-out;
}

/* Título */
.ha-tooltip-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  color: #3A4750;
}

/* Texto */
.ha-tooltip-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #596273;
}

/* Botón cerrar */
.ha-tooltip-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: #000000;
  color: #ffffff;
  font-size: 20px;
  line-height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes haFadeIn {
  from { opacity: 0; transform: scale(.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .ha-tabs {
    display: none;
  }
  .ha-mobile-select {
    display: block;
  }
  .ha-grid {
    gap: 35px;
  }
  .ha-grid.big {
    gap: 35px;
  }
  .ha-item {
    width: 130px;
  }
  .ha-tooltip-modal {
    padding: 24px 18px;
  }
}
