* {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Arial', sans-serif;
      /* background: radial-gradient(circle at center, #1a1a2e, #16213e, #0f0f23); */
      min-height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      cursor: grab;
    }

    body:active {
      cursor: grabbing;
    }

    .scene {
      perspective: 2000px;
      perspective-origin: center center;
      width: 100vw;
      height: 100vh;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .card-container {
      transform-style: preserve-3d;
      transition: transform 0.1s ease-out;
      width: 320px;
      height: 480px;
      position: relative;
    }

    .card-face {
      position: absolute;
      width: 100%;
      height: 100%;
      border-radius: 20px;
      overflow: hidden;
      box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
      transition: opacity 0.3s ease;
    }

    .card-front {
      background: linear-gradient(135deg, #1f1444, #0b0b0b);
      transform: rotateY(0deg);
      opacity: 1;
    }

    .card-back {
      background: linear-gradient(135deg, #0f0f23, #2d1b69);
      transform: rotateY(180deg);
      opacity: 0;
    }

    .full-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      position: absolute;
      top: 0;
      left: 0;
      z-index: 1;
    }

    .front-title {
  position: absolute;
  left: 50%;
  bottom: 24px;         /* Ajusta este valor según lo cerca que quieras el título del borde inferior */
  transform: translateX(-50%);
  width: 80%;           /* Ajusta el ancho según tu preferencia */
  max-width: 260px;     /* Limita el tamaño máximo */
  z-index: 2;           /* Asegura que esté por encima de la imagen principal */
  pointer-events: none; /* Evita que interfiera con el mouse */
}

    .card-content {
      position: relative;
      z-index: 2;
      padding: 20px;
      height: 100%;
      background: linear-gradient(
        to bottom,
        rgba(15, 15, 35, 0.7) 0%,
        rgba(45, 27, 105, 0.9) 50%,
        rgba(15, 15, 35, 0.95) 100%
      );
      color: white;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .glow {
      font-size: 2.5rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 10px;
      text-shadow: 
        0 0 10px #ff6b6b,
        0 0 20px #ff6b6b,
        0 0 30px #ff6b6b,
        0 0 40px #ff6b6b;
      animation: pulse 2s ease-in-out infinite alternate;
    }

    @keyframes pulse {
      from {
        text-shadow: 
          0 0 10px #ff6b6b,
          0 0 20px #ff6b6b,
          0 0 30px #ff6b6b,
          0 0 40px #ff6b6b;
      }
      to {
        text-shadow: 
          0 0 15px #ff6b6b,
          0 0 25px #ff6b6b,
          0 0 35px #ff6b6b,
          0 0 50px #ff6b6b;
      }
    }

    .subtitle {
      text-align: center;
      color: #ffd700;
      font-size: 1rem;
      margin-bottom: 20px;
      text-transform: uppercase;
      letter-spacing: 2px;
    }

    .label {
      color: #ffd700;
      font-weight: bold;
    }

    .stat {
      color: #ff6b6b;
      font-weight: bold;
      font-size: 1.2em;
    }

    h3 {
      color: #ffd700;
      margin: 15px 0 10px 0;
      font-size: 1.1rem;
      text-transform: uppercase;
      letter-spacing: 1px;
      border-bottom: 1px solid rgba(255, 215, 0, 0.3);
      padding-bottom: 5px;
    }

    .stats, .skills, .equipment {
      list-style: none;
      padding: 0;
      margin: 0 0 15px 0;
    }

    .stats li, .skills li, .equipment li {
      margin: 8px 0;
      padding: 5px 10px;
      background: rgba(255, 255, 255, 0.1);
      border-radius: 5px;
      border-left: 3px solid #ff6b6b;
      font-size: 0.9rem;
      transition: all 0.3s ease;
    }

    .stats li:hover, .skills li:hover, .equipment li:hover {
      background: rgba(255, 255, 255, 0.2);
      transform: translateX(5px);
    }

    .character-info {
      font-size: 0.95rem;
      line-height: 1.4;
      margin-bottom: 15px;
    }

    .floating-particles {
      position: absolute;
      width: 100%;
      height: 100%;
      pointer-events: none;
      z-index: 3;
    }

    .particle {
      position: absolute;
      width: 4px;
      height: 4px;
      background: #ffd700;
      border-radius: 50%;
      opacity: 0.6;
      animation: float 6s ease-in-out infinite;
    }

    @keyframes float {
      0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
      }
      50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
      }
    }

    .instructions {
      position: fixed;
      top: 20px;
      left: 20px;
      color: rgba(255, 255, 255, 0.7);
      font-size: 14px;
      z-index: 1000;
      background: rgba(0, 0, 0, 0.5);
      padding: 10px 15px;
      border-radius: 10px;
      backdrop-filter: blur(10px);
    }

    @media (max-width: 768px) {
      .card-container {
        width: 280px;
        height: 420px;
      }
      
      .glow {
        font-size: 2rem;
      }
      
      .instructions {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        top: auto;
        text-align: center;
      }
      
    }