/* =========================================
   MODAL SHARE PREMIUM - DONLY
========================================= */

.modal-share{
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  z-index: 999999;

  opacity: 0;
  pointer-events: none;

  transition: .28s ease;
}

.modal-share.activo{
  opacity: 1;
  pointer-events: all;
}

/* =========================================
   CARD
========================================= */

.share-card{
  width: 100%;
  max-width: 410px;

  background: #ffffff;

  border-radius: 34px;

  padding: 28px;

  position: relative;

  overflow: hidden;

  animation: modalShare .28s ease;

  box-shadow:
  0 30px 70px rgba(33,150,243,.16),
  0 10px 25px rgba(0,0,0,.08);

  border: 1px solid rgba(33,150,243,.08);
}

/* EFECTO SUPERIOR */
.share-card::before{
  content: "";

  position: absolute;

  top: 0;
  left: 0;

  width: 100%;
  height: 130px;

  background:
  linear-gradient(
    180deg,
    rgba(33,150,243,.10),
    rgba(33,150,243,0)
  );

  pointer-events: none;
}

@keyframes modalShare{

  from{
    transform: translateY(20px) scale(.95);
    opacity: 0;
  }

  to{
    transform: translateY(0) scale(1);
    opacity: 1;
  }

}

/* =========================================
   BOTON CERRAR
========================================= */

.cerrar-share{
  position: absolute;

  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  border: none;

  border-radius: 50%;

  background: #f3f8fd;

  color: #2196f3;

  font-size: 22px;

  cursor: pointer;

  transition: .22s ease;

  display: flex;
  align-items: center;
  justify-content: center;
}

.cerrar-share:hover{
  background: #2196f3;
  color: white;
  transform: rotate(90deg);
}

/* =========================================
   TITULO
========================================= */

.share-title{
  text-align: center;
  margin-bottom: 22px;
}

.share-title h2{
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #111827;
}

.share-title p{
  margin-top: 8px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

/* =========================================
   QR
========================================= */

.qr-box{
  width: 100%;

  display: flex;
  justify-content: center;

  margin-bottom: 28px;
}

#qrCanvas{
  width: 250px !important;
  height: 250px !important;

  background: #fff;

  padding: 16px;

  border-radius: 28px;

  border: 1px solid #eef4fb;

  box-shadow:
  0 15px 35px rgba(33,150,243,.08);

  transition: .25s ease;
}

#qrCanvas:hover{
  transform: scale(1.02);
}

/* =========================================
   LINK BOX
========================================= */

.share-link-box{
  width: 100%;

  display: flex;
  align-items: center;

  gap: 12px;

  margin-bottom: 24px;
}

.share-link-box input{
  flex: 1;

  height: 56px;

  border-radius: 18px;

  border: 1.5px solid #e7eef7;

  background: #f8fbff;

  padding: 0 18px;

  font-size: 14px;
  font-weight: 500;

  color: #374151;

  outline: none;

  transition: .25s ease;
}

.share-link-box input:focus{
  border-color: #2196f3;
  background: #fff;
}

.share-link-box button{
  min-width: 120px;
  height: 56px;

  border: none;

  border-radius: 18px;

  background: linear-gradient(
    135deg,
    #2196f3,
    #42a5f5
  );

  color: white;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  transition: .25s ease;

  box-shadow:
  0 10px 25px rgba(33,150,243,.25);
}

.share-link-box button:hover{
  transform: translateY(-2px);

  box-shadow:
  0 16px 30px rgba(33,150,243,.30);
}

/* =========================================
   FOOTER
========================================= */

.share-footer{
  width: 100%;

  display: flex;
  align-items: center;

  gap: 16px;

  padding: 18px;

  border-radius: 24px;

  background:
  linear-gradient(
    180deg,
    #fafdff,
    #f4f9ff
  );

  border: 1px solid #eaf3fb;
}

.share-footer img{
  width: 68px;
  height: 68px;

  border-radius: 50%;

  object-fit: cover;

  border: 3px solid #fff;

  box-shadow:
  0 10px 20px rgba(33,150,243,.12);
}

.share-footer-info{
  display: flex;
  flex-direction: column;
}

.share-footer-info h3{
  margin: 0;

  font-size: 18px;
  font-weight: 700;

  color: #111827;
}

.share-footer-info span{
  margin-top: 4px;

  font-size: 13px;

  color: #6b7280;
}

/* =========================================
   BOTON DESCARGAR
========================================= */

.btn-descargar-share{
  width: 100%;
  height: 58px;

  margin-top: 24px;

  border: none;

  border-radius: 20px;

  background:
  linear-gradient(
    135deg,
    #111827,
    #1f2937
  );

  color: white;

  font-size: 15px;
  font-weight: 600;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 10px;

  transition: .25s ease;

  box-shadow:
  0 14px 30px rgba(17,24,39,.18);
}

.btn-descargar-share:hover{
  transform: translateY(-2px);

  background:
  linear-gradient(
    135deg,
    #2196f3,
    #42a5f5
  );

  box-shadow:
  0 18px 35px rgba(33,150,243,.28);
}

/* =========================================
   RESPONSIVE
========================================= */

@media(max-width: 480px){

  .share-card{
    padding: 22px;
    border-radius: 28px;
  }

  #qrCanvas{
    width: 220px !important;
    height: 220px !important;
  }

  .share-link-box{
    flex-direction: column;
  }

  .share-link-box button{
    width: 100%;
  }

}