/* -------------------- TIPOGRAFÍA -------------------- */
@font-face {
  font-family: 'Helvetica';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/hnd-Light.ttf') format('ttf');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, 
                 U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* -------------------- RESETEO BÁSICO -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button,
img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* -------------------- BODY / HTML -------------------- */
body, html {
  margin: 0;
  padding: 0;
  background-color: #323232;
  font-family: "Helvetic", sans-serif;
}

/* -------------------- CONTENEDOR GENERAL -------------------- */
.background {
  display: flex;
  justify-content: center;
}

/* -------------------- UI ESTILO MÓVIL -------------------- */
.phone-ui {
  width: 100%;
  max-width: 500px;
  background-color: #fff;
  overflow: hidden;
  position: relative;
  text-align: center;
  background-image: url('img/background.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* -------------------- CURVAS SVG -------------------- */
.curve {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.curve svg {
  position: absolute;
  width: 180%;
  height: 200%;
  display: block;
  background: transparent;
}

.curve.top {
  top: 0;
}

.curve.bottom {
  bottom: 0;
}

.curve.top .logo {
  position: relative;
  z-index: 1;
  display: block;
  height: 45px;
  margin-inline: auto;
}

/* -------------------- BIENVENIDA -------------------- */
.welcome {
  margin: 30px;
  color: #000;
  width: 200px;
}

.welcome span {
  font-style: italic;
  font-weight: 400;
}

/* -------------------- TARJETAS -------------------- */
.cards {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-wrapper {
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
  overflow: hidden;
}

.card {
  width: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.4s ease;
  will-change: transform;
}

/*.card:hover,
/*.card:active {
/*  transform: rotate(-1deg) scale(1.01);
/*}*/

/* -------------------- BOTONES -------------------- */
.buttons {
  margin: 50px 40px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.btn {
  padding: 12px;
  font-size: 17px;
  font-weight: 700;
  width: 100%;
  border: none;
  border-radius: 10px;
  margin-inline: auto;
  cursor: pointer;
  transition: transform 0.4s ease;
}

.btn.light {
  background-color: #f2f2f2;
  color: #000;
}

.btn.light:active {
  background-color: #cfcfcf;
  transform: scale(1.03);
}

.btn.orange {
  background-color: #D96528;
  color: #fff;
}

.btn.orange:active {
  background-color: #b2501f;
  transform: scale(1.03);
}

.hide {
  display: none;
}

/* -------------------- REDES SOCIALES -------------------- */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 50px;
}

.socials img {
  width: 42px;
  padding: 4px;
  background-color: transparent;
  border: none;
  object-fit: contain; /* <-- mantiene la proporción de la imagen */
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.socials img:active {
  transform: scale(1.1);
  border-color: #888;
}

/* -------------------- LOGO INFERIOR -------------------- */
.dcn-footer {
  width: 50px;
  margin-bottom: 20px;
}

.popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.popup-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
img.secure-img {
  max-width: 400px;
  max-height: 400px;
}

/* Estilos SweetAlert QR */
.swal2-popup.no-padding {
  padding: 0;
  background: transparent;
  box-shadow: none;
  width: auto !important;
}

/* Contenedor */
.qr-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: 12px;
  background-color: #fff;
}

/* Imagen */
.qr-img {
  display: block;
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 0 0 12px 12px;
}

/* Barra de progreso */
.progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  background-color: #ffa726;
  animation-name: progress;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

@keyframes progress {
  from { width: 100%; }
  to { width: 0%; }
}

/* Botón de descarga */
.download-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  padding: 5px 8px;
  font-size: 18px;
  text-decoration: none;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.download-btn:hover {
  transform: scale(1.1);
  color: white;
}

.download-btn:active {
  transform: scale(1.1);
  color: white;
}