.btn-compartir-dpia {
  --dpia-share-bg: linear-gradient(135deg, #d4521a 0%, #ee6a2e 100%);
  --dpia-share-color: #ffffff;
  --dpia-share-shadow: 0 14px 28px rgba(212, 82, 26, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--dpia-share-bg);
  color: var(--dpia-share-color);
  font: 600 0.95rem/1 'DM Sans', sans-serif;
  text-decoration: none;
  box-shadow: var(--dpia-share-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-compartir-dpia:hover,
.btn-compartir-dpia:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 34px rgba(212, 82, 26, 0.28);
}

.btn-compartir-dpia:focus-visible {
  outline: 3px solid rgba(212, 82, 26, 0.22);
  outline-offset: 3px;
}

.btn-compartir-dpia--soft {
  --dpia-share-bg: #fff3ed;
  --dpia-share-color: #b94717;
  --dpia-share-shadow: none;
  border: 1px solid rgba(212, 82, 26, 0.18);
}

.btn-compartir-dpia--soft:hover,
.btn-compartir-dpia--soft:focus-visible {
  color: #9f3810;
  box-shadow: 0 10px 22px rgba(212, 82, 26, 0.1);
}

.btn-compartir-dpia--ghost {
  --dpia-share-bg: rgba(255, 255, 255, 0.08);
  --dpia-share-color: #ffffff;
  --dpia-share-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-compartir-dpia__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.95rem;
}

.dpia-share-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.dpia-share-toast {
  min-width: 240px;
  max-width: 360px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(17, 17, 24, 0.96);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
}

.dpia-share-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.dpia-share-toast__message {
  font-size: 0.92rem;
  line-height: 1.35;
}

.dpia-share-toast__action {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: 600 0.82rem/1 'DM Sans', sans-serif;
}

.dpia-share-modal {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 15, 20, 0.18);
}

.dpia-share-modal__header {
  border-bottom: 1px solid rgba(15, 15, 20, 0.08);
  padding: 1.4rem 1.4rem 1rem;
}

.dpia-share-modal__title {
  font: 700 1.2rem/1.1 'Syne', sans-serif;
  margin: 0;
  color: #111118;
}

.dpia-share-modal__subtitle {
  margin: 0.45rem 0 0;
  color: #5d6170;
  font-size: 0.94rem;
}

.dpia-share-modal__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.dpia-share-modal__channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.dpia-share-channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 17, 24, 0.08);
  border-radius: 18px;
  color: #111118;
  background: #f7f7fa;
  text-decoration: none;
  font: 600 0.95rem/1 'DM Sans', sans-serif;
}

.dpia-share-channel:hover,
.dpia-share-channel:focus-visible {
  color: #111118;
  background: #efeff5;
}

.dpia-share-channel__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.dpia-share-channel--whatsapp .dpia-share-channel__icon { background: #25d366; }
.dpia-share-channel--telegram .dpia-share-channel__icon { background: #229ed9; }
.dpia-share-channel--messenger .dpia-share-channel__icon { background: #0a7cff; }
.dpia-share-channel--copy .dpia-share-channel__icon { background: #111118; }

.dpia-share-modal__url {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #111118;
  color: #f4f4f8;
  font: 500 0.84rem/1.45 'DM Sans', sans-serif;
  word-break: break-all;
}

.dpia-share-modal__qr {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
  border: 1px solid rgba(212, 82, 26, 0.08);
  text-align: center;
}

.dpia-share-modal__qr.is-hidden {
  display: none;
}

.dpia-share-modal__qr-title {
  margin-bottom: 0.8rem;
  font: 700 0.92rem/1 'DM Sans', sans-serif;
  color: #b94717;
}

.dpia-share-modal__qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(212, 82, 26, 0.08);
}

@media (max-width: 767px) {
  .btn-compartir-dpia {
    width: 100%;
  }

  .dpia-share-toast-container {
    left: 1rem;
    right: 1rem;
  }

  .dpia-share-toast {
    min-width: 100%;
    max-width: none;
  }

  .dpia-share-modal__channels {
    grid-template-columns: minmax(0, 1fr);
  }
}.btn-compartir-dpia {
  --dpia-share-bg: linear-gradient(135deg, #d4521a 0%, #ee6a2e 100%);
  --dpia-share-color: #ffffff;
  --dpia-share-shadow: 0 14px 28px rgba(212, 82, 26, 0.24);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.72rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--dpia-share-bg);
  color: var(--dpia-share-color);
  font: 600 0.95rem/1 'DM Sans', sans-serif;
  text-decoration: none;
  box-shadow: var(--dpia-share-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn-compartir-dpia:hover,
.btn-compartir-dpia:focus-visible {
  color: #ffffff;
  transform: translateY(-1px);
  filter: saturate(1.05);
  box-shadow: 0 18px 34px rgba(212, 82, 26, 0.28);
}

.btn-compartir-dpia:focus-visible {
  outline: 3px solid rgba(212, 82, 26, 0.22);
  outline-offset: 3px;
}

.btn-compartir-dpia--soft {
  --dpia-share-bg: #fff3ed;
  --dpia-share-color: #b94717;
  --dpia-share-shadow: none;
  border: 1px solid rgba(212, 82, 26, 0.18);
}

.btn-compartir-dpia--soft:hover,
.btn-compartir-dpia--soft:focus-visible {
  color: #9f3810;
  box-shadow: 0 10px 22px rgba(212, 82, 26, 0.1);
}

.btn-compartir-dpia--ghost {
  --dpia-share-bg: rgba(255, 255, 255, 0.08);
  --dpia-share-color: #ffffff;
  --dpia-share-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.btn-compartir-dpia__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  font-size: 0.95rem;
}

.dpia-share-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.dpia-share-toast {
  min-width: 240px;
  max-width: 360px;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(17, 17, 24, 0.96);
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: auto;
}

.dpia-share-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.dpia-share-toast__message {
  font-size: 0.92rem;
  line-height: 1.35;
}

.dpia-share-toast__action {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font: 600 0.82rem/1 'DM Sans', sans-serif;
}

.dpia-share-modal {
  border: 0;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 26px 60px rgba(15, 15, 20, 0.18);
}

.dpia-share-modal__header {
  border-bottom: 1px solid rgba(15, 15, 20, 0.08);
  padding: 1.4rem 1.4rem 1rem;
}

.dpia-share-modal__title {
  font: 700 1.2rem/1.1 'Syne', sans-serif;
  margin: 0;
  color: #111118;
}

.dpia-share-modal__subtitle {
  margin: 0.45rem 0 0;
  color: #5d6170;
  font-size: 0.94rem;
}

.dpia-share-modal__body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.dpia-share-modal__channels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.dpia-share-channel {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: flex-start;
  width: 100%;
  min-height: 54px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(17, 17, 24, 0.08);
  border-radius: 18px;
  color: #111118;
  background: #f7f7fa;
  text-decoration: none;
  font: 600 0.95rem/1 'DM Sans', sans-serif;
}

.dpia-share-channel:hover,
.dpia-share-channel:focus-visible {
  color: #111118;
  background: #efeff5;
}

.dpia-share-channel__icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
}

.dpia-share-channel--whatsapp .dpia-share-channel__icon { background: #25d366; }
.dpia-share-channel--telegram .dpia-share-channel__icon { background: #229ed9; }
.dpia-share-channel--messenger .dpia-share-channel__icon { background: #0a7cff; }
.dpia-share-channel--copy .dpia-share-channel__icon { background: #111118; }

.dpia-share-modal__url {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: #111118;
  color: #f4f4f8;
  font: 500 0.84rem/1.45 'DM Sans', sans-serif;
  word-break: break-all;
}

.dpia-share-modal__qr {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #fff7f2 0%, #ffffff 100%);
  border: 1px solid rgba(212, 82, 26, 0.08);
  text-align: center;
}

.dpia-share-modal__qr.is-hidden {
  display: none;
}

.dpia-share-modal__qr-title {
  margin-bottom: 0.8rem;
  font: 700 0.92rem/1 'DM Sans', sans-serif;
  color: #b94717;
}

.dpia-share-modal__qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(212, 82, 26, 0.08);
}

@media (max-width: 767px) {
  .btn-compartir-dpia {
    width: 100%;
  }

  .dpia-share-toast-container {
    left: 1rem;
    right: 1rem;
  }

  .dpia-share-toast {
    min-width: 100%;
    max-width: none;
  }

  .dpia-share-modal__channels {
    grid-template-columns: minmax(0, 1fr);
  }
}