@import url("https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;500;700&display=swap");


.controls {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 100;
  display: none;
}

.control-btn {
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 25px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  font-size: 14px;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.speed-indicator {
  position: absolute;
  top: 20px;
  right: 20px;
  color: white;
  font-size: 16px;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 100;
  display: none;
}

.info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px 25px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
  z-index: 100;
  line-height: 1.4;
}

.cont_rotate {
  position: relative;
  width: 100%;
  max-width: 1200px;      /* 🔥 límite de 1200px */
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;       /* 🔥 todo lo que sobresalga se oculta */
  margin-top: 7rem;
  margin-bottom: 3rem;
}

.card-stream {
  position: absolute;
  inset: 0;          /* top:0; right:0; bottom:0; left:0; */
  width: 100%;       /* 🔥 ocupa el 100% del contenedor, no del viewport */
  height: 380px;
  display: flex;
  align-items: center;
  overflow: visible; /* no pasa nada: cont_rotate ya recorta */
}


.card-line {
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
  cursor: grab;
  user-select: none;
  will-change: transform;
  width: 1200px !important;
}

.card-line:active {
  cursor: grabbing;
}

.card-line.dragging {
  cursor: grabbing;
}

.card-line.css-animated {
  animation: scrollCards 40s linear infinite;
}

@keyframes scrollCards {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.card-wrapper {
  position: relative;
  width: 400px;
  height: 250px;
  flex-shrink: 0;
}

.card {
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

.card-normal {
  background: transparent;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  color: white;
  z-index: 2;
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

.card-image:hover {
  filter: brightness(1.2) contrast(1.2);
}

.card-ascii {
  background: transparent;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  width: 400px;
  height: 250px;
  border-radius: 15px;
  overflow: hidden;
}

.card-chip {
  width: 40px;
  height: 30px;
  background: linear-gradient(45deg, #ffd700, #ffed4e);
  border-radius: 5px;
  position: relative;
  margin-bottom: 20px;
}

.card-chip::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  bottom: 3px;
  background: linear-gradient(45deg, #e6c200, #f4d03f);
  border-radius: 2px;
}

.contactless {
  position: absolute;
  top: 60px;
  left: 20px;
  width: 25px;
  height: 25px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
}

.contactless::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
}

.card-number {
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 3px;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.card-holder {
  color: white;
  font-size: 14px;
  text-transform: uppercase;
}

.card-expiry {
  color: white;
  font-size: 14px;
}

.card-logo {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 18px;
  font-weight: bold;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ascii-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: rgba(220, 210, 255, 0.6);
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 13px;
  overflow: hidden;
  white-space: pre;
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
  animation: glitch 0.1s infinite linear alternate-reverse;
  margin: 0;
  padding: 0;
  text-align: left;
  vertical-align: top;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
  mask-image: linear-gradient(
    to right,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.8) 30%,
    rgba(0, 0, 0, 0.6) 50%,
    rgba(0, 0, 0, 0.4) 80%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@keyframes glitch {
  0% {
    opacity: 1;
  }
  15% {
    opacity: 0.9;
  }
  16% {
    opacity: 1;
  }
  49% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
  99% {
    opacity: 0.9;
  }
  100% {
    opacity: 1;
  }
}

.scanner {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 300px;
  border-radius: 30px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(0, 255, 255, 0.8),
    rgba(0, 255, 255, 1),
    rgba(0, 255, 255, 0.8),
    transparent
  );
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 40px rgba(0, 255, 255, 0.4);
  animation: scanPulse 2s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes scanPulse {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scaleY(1);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scaleY(1.1);
  }
}

.scanner-label {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(0, 255, 255, 0.9);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.card-normal {
  clip-path: inset(0 0 0 var(--clip-right, 0%));
}

.card-ascii {
  clip-path: inset(0 calc(100% - var(--clip-left, 0%)) 0 0);
}

.scan-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 255, 255, 0.4),
    transparent
  );
  animation: scanEffect 0.6s ease-out;
  pointer-events: none;
  z-index: 5;
}

@keyframes scanEffect {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.instructions {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  max-width: 200px;
  text-align: right;
  z-index: 5;
}

#particleCanvas {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100vw;
  height: 250px;
  z-index: 0;
  pointer-events: none;
}

#scannerCanvas {
  position: absolute;
  top: 50%;
  left: -3px;
  transform: translateY(-50%);
  width: 100vw;
  height: 300px;
  z-index: 15;
  pointer-events: none;
}

/* ------------------------------------------- */
/*     FULL IMAGE FUTURISTIC CARD EFFECT       */
/* ------------------------------------------- */

.full-image-card {
  position: relative;
  width: 400px;
  height: 250px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;

  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.full-image-card img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition: opacity 0.3s ease, transform 0.3s ease;
  filter: brightness(1.15) contrast(1.1);
}

/* Título arriba */
.full-image-card h3 {
    position: absolute;
    top: 15px;
    left: 18px;
    background-color: #464544bd;
    background: radial-gradient(circle at 0% 0%, rgba(83, 83, 81, 0.726), rgba(97, 86, 59, 0.658) 70%, rgba(150, 129, 13, 0.651) 100%);
    border-radius: 10px;
    padding: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);

    margin: 0;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.08em;

    color: #e9bf06;
    text-shadow: 0 3px 12px rgb(0, 0, 0);
    z-index: 5;

    display: inline-block;   /* 🔥 permite auto width */
    max-width: calc(100% - 36px); /* 🔥 no se sale */
    white-space: normal;     /* 🔥 permite saltos */
    word-wrap: break-word;   /* 🔥 corta palabras largas */
}



/* Overlay descriptivo (oculto al inicio) */
.fic-overlay {
  position: absolute;
  inset: 0;

  background: rgba(0, 0, 0, 0.6);
  padding: 20px;

  opacity: 0;
  transition: opacity 0.35s ease;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  z-index: 10;
}

.fic-overlay p {
  color: #eaffff;
  font-size: 14px;
  line-height: 1.4em;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(0,255,255,0.5);
  margin: 0;
  max-width: 80%;
   /* 👇 Hace que el texto continúe en la siguiente línea */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Efecto hover */
.full-image-card:hover img {
  opacity: 0.35;
  transform: scale(1.06);
}

.full-image-card:hover .fic-overlay {
  opacity: 1;
}

.rotate-title {
  font-size: 58px;
  text-transform: uppercase;
  padding-bottom: 3rem;
  background: linear-gradient(90deg, var(--gold), var(--silver));
  background-clip: text;
  color: transparent;
  font-family: "Racing Sans One", sans-serif;
}

.cards-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;        /* centra el bloque */
  overflow: hidden;      /* oculta todo lo que se salga */
  position: relative;    /* permite posicionar .card-stream dentro */
}

.drag-hint-wrapper {
  width: 100%;
  display: flex;
  justify-content: end;
  padding: 26px 0 10px;
  opacity: 1;
  transition: opacity .4s ease;
  padding-top: 22%;
}

.drag-hint-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 999px;

  /* negro mate + leve degradado */
  background: radial-gradient(circle at 0% 0%, #2b2411 0%, #0a0a0a 55%, #050505 100%);
  border: 1px solid rgba(245, 199, 82, 0.42);   /* línea dorada fina */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03),
              0 10px 25px rgba(0, 0, 0, 0.6);
}

/* pequeña línea dorada decorativa a la izquierda */
.drag-hint-content::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(245, 199, 82, 0.1), #f5c752, rgba(245, 199, 82, 0.05));
  opacity: 0.9;
}

/* texto dorado suave */
.drag-hint-content span {
  color: #f5e2a8;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* manito */
.drag-hand {
  width: 52px;
  height: 42px;
  margin-left: 12px;
  background-image: url("/assets/img/mano.png");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.8));
  animation: handMove 1.6s ease-in-out infinite;
  opacity: 0.9;
}

/* animación “arrastro hacia la derecha” */
@keyframes handMove {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(18px); }
  100% { transform: translateX(0); }
}

@media (max-width: 600px) {
  .drag-hint-content {
    padding: 8px 16px;
    gap: 8px;
  }

  .drag-hint-content span {
    font-size: 11px;
    letter-spacing: 0.12em;
  }

  .drag-hand {
    width: 18px;
    height: 18px;
    margin-left: 8px;
  }


/* ---------- CONTENEDOR ROTATE/CARDS ---------- */
  .cont_rotate{
    height: 320px;      /* antes 400px :contentReference[oaicite:2]{index=2} */
    margin-top: 4.5rem; /* antes 7rem :contentReference[oaicite:3]{index=3} */
    margin-bottom: 2rem;
  }

  .card-stream{
    height: 300px;      /* antes 380px :contentReference[oaicite:4]{index=4} */
  }

  /* CLAVE: quita anchos fijos para mobile */
  .card-line{
    gap: 18px;          /* antes 60px :contentReference[oaicite:5]{index=5} */
    width: auto !important;  /* antes 1200px !important :contentReference[oaicite:6]{index=6} */
    padding-inline: 12px;
  }

  /* Tarjetas: que entren en el ancho del teléfono */
  .card-wrapper{
    width: 320px;       /* antes 400 :contentReference[oaicite:7]{index=7} */
    height: 205px;      /* antes 250 :contentReference[oaicite:8]{index=8} */
  }

  .card,
  .card-ascii{
    width: 320px;       /* antes 400 :contentReference[oaicite:9]{index=9} */
    height: 205px;      /* antes 250 :contentReference[oaicite:10]{index=10} */
    border-radius: 14px;
  }

  /* Full image card (otra variante de tarjeta) */
  .full-image-card{
    width: 320px;       /* antes 400 :contentReference[oaicite:11]{index=11} */
    height: 205px;      /* antes 250 :contentReference[oaicite:12]{index=12} */
    border-radius: 16px;
  }

  .full-image-card h3{
    font-size: 20px;    /* antes 30 :contentReference[oaicite:13]{index=13} */
    padding: 6px 10px;
    top: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
  }

  .fic-overlay{
    padding: 14px;
  }

  .fic-overlay p{
    font-size: 13px;
    max-width: 92%;
  }

  /* ASCII: reduce densidad para que no “ensucie” en móvil */
  .ascii-content{
    font-size: 9px;     /* antes 11 :contentReference[oaicite:14]{index=14} */
    line-height: 11px;  /* antes 13 :contentReference[oaicite:15]{index=15} */
  }

  /* ---------- Drag hint ---------- */
  .drag-hint-wrapper{
    padding-top: 18%;   /* antes 22% :contentReference[oaicite:16]{index=16} */
    justify-content: center;
  }

  .drag-hint-content span{
    font-size: 11px;
  }

  /* ---------- Canvas / overlays que usan 100vw ---------- */
  #particleCanvas,
  #scannerCanvas{
    width: 100%;
    left: 0;
  }

  /* Si en mobile molesta la “instructions” a la derecha, escóndela */
  .instructions{
    display: none;
  }
}
