  body {
      background-color: #121212;
      color: #eaeaea;
      font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      }
    

 .hero {
      background: linear-gradient(135deg, #1f1f1f, #2b2b2b);
      color: #fff;
      padding: 100px 0;
      text-align: center;
    }
    .btn-primary {
      background-color: #6c63ff;
      border: none;
    }
    .btn-primary:hover {
      background-color: #574fd6;
    }
    .benefit-icon {
      font-size: 2.5rem;
      color: #6c63ff;
    }
    .card-custom {
      background-color: #1f1f1f;
      border: 1px solid #2d2d2d;
      transition: transform .2s;
    }
    .card-custom:hover {
      transform: translateY(-5px);
    }
    
    footer {
      background-color: #121212;
      padding: 50px;
      margin: 0;
    }

    p {
      color: #fff;
    }

    .card-text {
      color: #121212;
    }



    .search-box {
            background-color: #eaeaea;
            border: 1px solid #444;
            color: #eaeaea;
            max-width: 400px;
        }
       

        .search-box:focus {
            background-color: #1e1e1e;
            border-color: #007bff;
            color: #eaeaea;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

        .table-dark {
            background-color: #1a1a1a;
        }

        .table-dark th {
            border-color: #444;
            background-color: #2d2d2d;
        }

        .table-dark td {
            border-color: #444;
            vertical-align: middle;
        }

        .table-hover tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.075);
        }

        .btn-action {
            margin: 2px;
            font-size: 0.75rem;
        }

        .badge-tarjetas {
            background: linear-gradient(135deg, #007bff, #0056b3);
        }

        .badge-inactivo {
            background-color: #6c757d;
        }

        .empty-state {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }

        .stats-card {
            background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
            border: 1px solid #444;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
        }

        .stats-number {
            font-size: 2rem;
            font-weight: bold;
            color: #007bff;
        }

        @media (max-width: 768px) {
            .btn-action {
                display: block;
                width: 100%;
                margin-bottom: 5px;
            }
            
            .table-responsive {
                font-size: 0.875rem;
            }
        }
        .card-virtual {
            color: #fff;
            border-radius: 1rem;
            padding: 1.5rem;
            height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(0,0,0,.4);
            transition: transform 0.3s ease;
        }

        .card-virtual:hover {
            transform: translateY(-5px);
        }

        /* Colores por tipo de tarjeta */
        .card-negra { 
            background: linear-gradient(135deg, #111, #333); 
            border: 1px solid #444;
        }
        .card-azul { 
            background: linear-gradient(135deg, #007bff, #003366); 
            border: 1px solid #0056b3;
        }
        .card-dorada { 
            background: linear-gradient(135deg, #FFD700, #b8860b); 
            color: #333;
            border: 1px solid #daa520;
        }

        /* Flip card para QR */
         .flip-card {
        background-color: transparent;
        width: 100%;
        height: 450px; /* Un poco más alto */
        perspective: 1000px;
        margin: 0 auto;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        transform-style: preserve-3d;
    }

    .flip-card.flipped .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front, .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
        border-radius: 1rem;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    }

    .flip-card-front {
        background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
        color: white;
        border: 2px solid #555;
    }

    .flip-card-back {
        background: linear-gradient(135deg, #2d2d2d, #1a1a1a);
        color: white;
        transform: rotateY(180deg);
        text-align: center;
        border: 2px solid #666;
    }

    .flip-card-back img {
        max-width: 200px;
        margin: 10px auto;
        border-radius: 10px;
        border: 3px solid #777;
        background: white;
        padding: 5px;
    }

    /* Indicador visual del flip */
    .flip-indicator {
        position: absolute;
        top: 10px;
        right: 10px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    .qr-container {
            background: white;
            padding: 15px;
            border-radius: 10px;
            display: inline-block;
            margin: 10px auto;
        }
        
    .config-btn {
            font-size: 1.3rem;
            text-decoration: none;
            display: inline-block;
            color: #aaa;
            transition: color 0.3s ease;
        }

        .config-btn:hover { 
            color: #fff; 
        }
        .card-type-negra {
            background: linear-gradient(135deg, #333, #111);
        }

        .card-type-azul {
            background: linear-gradient(135deg, #007bff, #0056b3);
        }

        .card-type-dorada {
            background: linear-gradient(135deg, #FFD700, #b8860b);
            color: #333;
        }
        .card-type-badge {
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 1rem;
            font-size: 0.75rem;
            font-weight: 500;
        }
        .empty-state {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }

        .empty-state i {
            font-size: 4rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
      .benefit-card {
            background: #1e1e1e;
            border: 1px solid #2d2d2d;
            border-radius: .75rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,.4);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .benefit-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 15px rgba(0,0,0,.6);
            border-color: #007bff;
        }

        .badge-vigente {
            background-color: #28a745;
        }

        .badge-proximo {
            background-color: #ffc107;
            color: #000;
        }

        .badge-vencido {
            background-color: #dc3545;
        }
      

        

/* ===== ESTILOS PARA GIFTCARDS CON IMAGEN DE FONDO ===== */

.giftcard-container {
            color: #fff;
            border-radius: 1rem;
            padding: 1.5rem;
            height: 200px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(0,0,0,.4);
            transition: transform 0.3s ease;
            background: url('../img/giftcard-bg.png') center/cover no-repeat;
}

/* Giftcard con imagen de fondo pura */
.card-giftcard {
    
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    color: #fff;
    max-width: 350px;       /* Igual que las normales */
    height: 200px;   
}

/* Cintas decorativas */

/* Overlay con brillo sutil */
.giftcard-shine {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,255,255,0));
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Contenido encima del fondo */
.giftcard-content {
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.giftcard-content h5 {
    font-weight: bold;
    margin-bottom: .5rem;
}
.giftcard-content p, 
.giftcard-content small {
    font-size: .9rem;
}



.scanner-container {
            max-width: 500px;
            margin: 0 auto;
            background: #1a1a1a;
            border-radius: 15px;
            padding: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        
        #qr-scanner {
            width: 100%;
            height: 300px;
            background: #2d2d2d;
            border-radius: 10px;
            margin-bottom: 1.5rem;
            border: 2px solid #444;
            position: relative;
            overflow: hidden;
        }
        
        .scanner-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background: rgba(0,0,0,0.7);
            z-index: 10;
        }
        
        .scanner-frame {
            width: 250px;
            height: 250px;
            border: 3px solid #6c63ff;
            border-radius: 15px;
            position: relative;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { border-color: #6c63ff; }
            50% { border-color: #8a84ff; }
        }
        
        .scanner-line {
            position: absolute;
            width: 100%;
            height: 3px;
            background: #6c63ff;
            top: 50%;
            animation: scan 2s linear infinite;
        }
        
        @keyframes scan {
            0% { top: 10%; }
            50% { top: 90%; }
            100% { top: 10%; }
        }
        
        .result-card {
            background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
            border-radius: 10px;
            padding: 1.5rem;
            margin-top: 1.5rem;
            border-left: 4px solid #6c63ff;
            display: none;
        }
        
        .loading-spinner {
            display: none;
            text-align: center;
            padding: 2rem;
        }
        
        .success-alert {
            display: none;
            background: linear-gradient(135deg, #155724, #28a745);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
        }
        
        .error-alert {
            display: none;
            background: linear-gradient(135deg, #721c24, #dc3545);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin-top: 1rem;
        }
        .search-container {
            background: linear-gradient(135deg, #1f1f1f, #2d2d2d);
            border-radius: 15px;
            padding: 2rem;
            margin-bottom: 2rem;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        
        .card-info {
            background: linear-gradient(135deg, #2d2d2d, #1f1f1f);
            border-radius: 15px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            border-left: 4px solid #6c63ff;
        }
        
        .benefits-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1rem;
            margin-top: 1.5rem;
        }
        
        .benefit-card {
            background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
            border-radius: 10px;
            padding: 1.5rem;
            border: 1px solid #444;
            transition: all 0.3s ease;
            position: relative;
        }
        
        .benefit-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.3);
            border-color: #6c63ff;
        }
        
        .benefit-type {
            position: absolute;
            top: 10px;
            right: 10px;
            font-size: 0.8rem;
        }
        
        .empty-benefits {
            text-align: center;
            padding: 3rem;
            color: #6c757d;
        }
        
        .empty-benefits i {
            font-size: 3rem;
            margin-bottom: 1rem;
            opacity: 0.5;
        }
        
        .cobro-success {
            background: linear-gradient(135deg, #155724, #28a745);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            display: none;
        }
        
        .cobro-error {
            background: linear-gradient(135deg, #721c24, #dc3545);
            color: white;
            padding: 1rem;
            border-radius: 10px;
            margin-bottom: 1rem;
            display: none;
        }
small {
  color: white;
}



         