/* Modal compartir · módulo reutilizable (EliteCard / MascotBook) */

.ec-share-host .ec-qr-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}

.ec-share-host .ec-qr-overlay.hidden {
  display: none !important;
}

.ec-share-host .ec-share-sheet {
  width: 100%;
  max-width: 28rem;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.1rem 1rem 1.35rem;
  background: var(--ec-share-sheet-bg, #e8e8e8);
  color: var(--ec-share-sheet-text, #111827);
  box-shadow: 0 -12px 35px rgba(0, 0, 0, 0.35);
}

.ec-share-host .ec-share-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.95rem;
}

.ec-share-host .ec-share-profile {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.ec-share-host .ec-share-profile-avatar-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: #111827;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ec-share-host .ec-share-profile-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ec-share-host .ec-share-profile-meta {
  min-width: 0;
}

.ec-share-host .ec-share-profile-name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ec-share-host .ec-share-profile-subtitle {
  margin: 0.05rem 0 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.ec-share-host .ec-share-close {
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #1f2937;
  font-size: 1.9rem;
  line-height: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ec-share-host .ec-share-qr-box {
  background: var(--ec-share-qr-bg, #f4f4f4);
  border-radius: 0.75rem;
  padding: 1rem 0.85rem 0.7rem;
  text-align: center;
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.ec-share-host .ec-share-qr-box.ec-share-qr-box--offline {
  border-color: var(--ec-share-accent, #31d0cf);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ec-share-accent, #31d0cf) 20%, transparent);
}

.ec-share-host .ec-share-qr-title {
  margin: 0 0 0.8rem;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ec-share-host .ec-share-qr-img {
  width: 220px;
  max-width: calc(100% - 1rem);
  aspect-ratio: 1;
  height: auto;
  border-radius: 0.35rem;
  border: 8px solid #0a0a0a;
}

.ec-share-host .ec-share-offline-row {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.5rem 0.65rem;
  border-top: 1px solid rgba(17, 24, 39, 0.12);
}

.ec-share-host .ec-share-offline-row.hidden {
  display: none !important;
}

.ec-share-host .ec-share-offline-icon {
  font-size: 1.4rem;
  color: #1f2937;
  width: 1.7rem;
  text-align: center;
}

.ec-share-host .ec-share-offline-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 700;
}

.ec-share-host .ec-share-switch {
  position: relative;
  width: 2.7rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.ec-share-host .ec-share-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ec-share-host .ec-share-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.ec-share-host .ec-share-switch-slider::before {
  content: "";
  position: absolute;
  top: 0.13rem;
  left: 0.14rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.ec-share-host .ec-share-switch input:checked + .ec-share-switch-slider {
  background: var(--ec-share-accent, #31d0cf);
}

.ec-share-host .ec-share-switch input:checked + .ec-share-switch-slider::before {
  transform: translateX(1.1rem);
}

.ec-share-host .ec-share-actions {
  margin-top: 0.15rem;
}

.ec-share-host .ec-share-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  margin-top: 0.55rem;
  min-height: 3rem;
  padding: 0.72rem 1rem;
  border-radius: 0.55rem;
  border: 1px solid rgba(17, 24, 39, 0.18);
  background: #fff;
  color: #111827;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ec-share-host .ec-share-action-icon {
  width: 1.8rem;
  text-align: center;
  font-size: 1.35rem;
  line-height: 1;
}

.ec-share-host .ec-share-action .fa-whatsapp {
  color: #25d366;
}

.ec-share-host .ec-share-action .fa-envelope {
  color: #0ea5e9;
}

.ec-share-host .ec-share-action .fa-linkedin-in {
  color: #0a66c2;
}

.ec-share-host .ec-share-action .fa-ellipsis {
  color: #111827;
}

.ec-share-toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  z-index: 120;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.95);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}

@media (max-width: 420px) {
  .ec-share-host .ec-share-profile-subtitle {
    font-size: 1.35rem;
  }

  .ec-share-host .ec-share-qr-title {
    font-size: 1rem;
  }
}
