/* --- 1. CONFIGURACIÓN BASE (MOBILE FIRST) --- */
.lp-container { 
    max-width: 450px; 
    margin: 20px auto; 
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif; 
    background: #fff; 
    padding: 30px 25px; /* Más espacio interno */
    border-radius: 24px; /* Bordes más suaves */
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); 
    border: 1px solid #f1f5f9;
}

/* --- 2. ENCABEZADO --- */
.lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
}

.lp-title {
    margin: 0;
    font-size: 22px; /* Título más grande */
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.lp-logout {
    font-size: 14px; /* Texto más legible */
    font-weight: 600;
    color: #ef4444;
    text-decoration: none;
    border: 1px solid #fee2e2;
    padding: 8px 15px; /* Botón más fácil de tocar */
    border-radius: 20px;
    transition: all 0.2s ease;
    background: #fff;
}

.lp-logout:hover {
    background: #fee2e2;
    transform: translateY(-1px);
}

/* --- 3. ELEMENTOS DE FORMULARIO (OPTIMIZADO DEDO GORDO) --- */
label {
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
}

.lp-input { 
    width: 100%; 
    padding: 15px; /* Área de toque mayor */
    margin: 0 0 20px; 
    border: 1px solid #cbd5e1; 
    border-radius: 12px; 
    box-sizing: border-box; 
    font-size: 16px; /* EVITA ZOOM EN IPHONE */
    background: #f8fafc; 
    transition: all 0.2s;
}

.lp-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.lp-btn { 
    width: 100%; 
    padding: 16px; /* Botón más alto */
    background: #2563eb; 
    color: white; 
    border: none; 
    border-radius: 12px; 
    font-weight: 800; 
    cursor: pointer; 
    display: block; 
    text-decoration: none; 
    margin-top: 15px; 
    text-align: center; 
    font-size: 18px; /* Texto botón más grande */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); 
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2); 
}

.lp-btn:hover { 
    background: #1d4ed8; 
    transform: translateY(-2px); 
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); 
    color: white;
}

.lp-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    box-shadow: none;
    font-size: 16px;
}

.lp-btn-secondary:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

/* --- 4. TARJETA DE CRÉDITO 3D --- */
.lp-credit-card {
    background: linear-gradient(135deg, var(--card-c1, #1e293b) 0%, var(--card-c2, #0f172a) 100%);
    border-radius: 20px;
    padding: 25px;
    color: white;
    box-shadow: 
        0 20px 40px -10px rgba(0,0,0,0.4),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    margin-bottom: 25px;
    transform: perspective(1000px) rotateX(2deg);
    transition: transform 0.3s ease;
}

.lp-credit-card:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
}

.lp-credit-card::before {
    content: ""; 
    position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.lp-card-header { 
    display: flex; justify-content: space-between; align-items: flex-start; 
    margin-bottom: 20px; position: relative; z-index: 2; 
}

.lp-card-chip { 
    width: 50px; height: 36px; 
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%); 
    border-radius: 8px; 
    border: 1px solid #92400e; 
    position: relative; overflow: hidden;
}

.lp-card-chip::after {
    content: ""; position: absolute; top:0; left: 50%; width: 1px; height: 100%;
    border-left: 1px solid rgba(255,255,255,0.3); border-right: 1px solid rgba(0,0,0,0.1);
}

.lp-card-meta { 
    font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; 
    color: rgba(255,255,255,0.7); margin-bottom: 4px; font-weight: 700;
}

.lp-card-number { 
    font-family: 'Courier New', monospace; font-size: 22px; letter-spacing: 3px; 
    margin-bottom: 20px; text-shadow: 0 2px 2px rgba(0,0,0,0.3); font-weight: bold;
}

/* --- 5. GRID DE SELLOS --- */
.lp-card-grid { 
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; 
    margin: 15px 0; position: relative; z-index: 2; 
}

.lp-slot { 
    aspect-ratio: 1; border-radius: 50%; 
    background: rgba(255,255,255,0.15); 
    display: flex; align-items: center; justify-content: center; 
    font-size: 11px; color: rgba(255,255,255,0.5); 
    border: 1px dashed rgba(255,255,255,0.3); 
    transition: all 0.3s;
}

.lp-slot.filled { 
    background: #fff; 
    border: 2px solid #fff; 
    box-shadow: 0 0 15px rgba(255,255,255,0.4); 
    transform: scale(1.15);
}

.lp-slot img { width: 65%; height: 65%; object-fit: contain; }

/* Barra Progreso */
.lp-progress-bar { 
    width: 100%; height: 8px; background: rgba(255,255,255,0.15); 
    border-radius: 4px; margin-top: 25px; overflow: hidden; 
}
.lp-progress-fill { 
    height: 100%; background: #4ade80; 
    box-shadow: 0 0 15px #4ade80; transition: width 0.6s ease-out; 
}

/* --- 6. TARJETA REFERIDOS (GOLD) --- */
.lp-share-card { 
    background: #fff; border-radius: 20px; overflow: hidden; 
    box-shadow: 0 15px 30px rgba(217, 119, 6, 0.15); 
    margin-top: 30px; border: 1px solid #fcd34d;
    text-align: center;
}

.lp-share-header {
    background: linear-gradient(90deg, #f59e0b, #d97706);
    padding: 15px; color: white; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-size: 15px;
}

.lp-share-body { padding: 25px; }
.lp-share-body p { margin: 0 0 20px; color: #475569; font-size: 14px; line-height: 1.6; }

.lp-share-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: #d97706; color: white;
    padding: 14px 30px; border-radius: 50px;
    font-weight: 800; text-decoration: none; font-size: 16px;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s;
}
.lp-share-btn:hover { transform: scale(1.05); color: white; }

/* --- 7. MENSAJES Y TABLAS --- */
.lp-msg { padding: 15px; border-radius: 12px; margin-bottom: 25px; text-align: center; font-size: 15px; font-weight: 500; }
.lp-success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.lp-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Tablas Gerencia */
.lp-stat-card { background: #f8fafc; padding: 20px; border-radius: 12px; text-align: center; flex: 1; border: 1px solid #e2e8f0; }
.lp-stat-num { display: block; font-size: 28px; font-weight: 800; color: #0f172a; }
.lp-stat-label { font-size: 11px; text-transform: uppercase; color: #64748b; font-weight: 600; letter-spacing: 1px; }

.lp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 10px; font-size: 14px; }
.lp-table th { text-align: left; padding: 12px; background: #f1f5f9; color: #475569; font-size: 11px; text-transform: uppercase; font-weight: 700; border-bottom: 2px solid #e2e8f0; }
.lp-table td { padding: 12px; border-bottom: 1px solid #f1f5f9; color: #334155; }

/* --- 8. FIX RESPONSIVE TARJETA (NUEVO) --- */
/* Arregla el texto de "Premio" apilado a la derecha en móviles */
@media (max-width: 450px) {
    .lp-credit-card > div:nth-of-type(4) {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .lp-credit-card > div:nth-of-type(4) > div {
        text-align: left !important;
        width: 100%;
    }
    .lp-card-meta {
        color: rgba(255,255,255,0.8);
        margin-bottom: 4px;
    }
}

/* Animación Pop */
@keyframes pop { 
    0% { transform: scale(0.5); opacity: 0; } 
    70% { transform: scale(1.2); }
    100% { transform: scale(1.1); opacity: 1; } 
}