/* Club Pizza Express Murcia Styles v1.1 */
.pec-dashboard-wrapper {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    max-width: 850px;
    margin: 20px auto;
    color: #2c3e50;
    background: #fdfbf7;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.pec-header-banner {
    text-align: center;
    margin-bottom: 25px;
}

.pec-logo-badge {
    display: inline-block;
    background: #e74c3c;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pec-slogan {
    font-style: italic;
    color: #7f8c8d;
    margin-top: 8px;
    font-size: 15px;
}

.pec-card-container {
    perspective: 1000px;
    margin-bottom: 30px;
}

.pec-digital-card {
    background: linear-gradient(135deg, #1e272e 0%, #0f171e 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    position: relative;
    border: 2px solid #d4af37;
    overflow: hidden;
}

.pec-digital-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.pec-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.pec-card-brand {
    font-weight: 900;
    font-size: 16px;
    color: #d4af37;
    letter-spacing: 1.5px;
}

.pec-status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.pec-badge-nuevo { background: #3498db; color: #fff; }
.pec-badge-activo { background: #2ecc71; color: #fff; }
.pec-badge-dormido { background: #e67e22; color: #fff; }
.pec-badge-inactivo { background: #95a5a6; color: #fff; }
.pec-badge-vip { background: #f1c40f; color: #000; box-shadow: 0 0 10px #f1c40f; }

.pec-card-member {
    margin-bottom: 25px;
}

.pec-member-name {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.pec-member-num {
    font-size: 14px;
    color: #bdc3c7;
}

.pec-card-meta-grid.pec-grid-clean {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    background: rgba(255,255,255,0.07);
    padding: 18px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.pec-card-meta-grid .pec-label {
    display: block;
    font-size: 11px;
    color: #95a5a6;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.pec-card-meta-grid .pec-value {
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
}

.pec-points-val {
    color: #2ecc71 !important;
}

.pec-level-highlight {
    color: #f39c12 !important;
}

.pec-card-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #bdc3c7;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
}

.pec-section {
    background: #ffffff;
    padding: 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    border: 1px solid #eef2f5;
}

.pec-section h3 {
    margin-top: 0;
    font-size: 18px;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 8px;
    display: inline-block;
    margin-bottom: 15px;
}

.pec-objective-box {
    background: linear-gradient(135deg, #fffcf5 0%, #fff8e7 100%);
    border: 1px solid #f39c12;
}

.pec-progress-bar-container {
    width: 100%;
    height: 18px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin: 15px 0;
}

.pec-progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

.pec-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s, background 0.2s;
}

.pec-btn:hover {
    transform: translateY(-2px);
}

.pec-btn-primary { background: #e74c3c; color: #fff; }
.pec-btn-gold { background: #f1c40f; color: #000; box-shadow: 0 4px 15px rgba(241,196,15,0.4); }
.pec-btn-secondary { background: #34495e; color: #fff; }
.pec-btn-whatsapp { background: #25D366; color: #fff; }

.pec-promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.pec-promo-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #e74c3c;
}

.pec-promo-icon {
    font-size: 28px;
}

.pec-promo-body h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
}

.pec-promo-body p {
    margin: 0;
    font-size: 13px;
    color: #666;
}

.pec-ref-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.pec-ref-input-group input {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.pec-ref-code-display {
    font-size: 14px;
    color: #e74c3c;
}

.pec-history-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pec-history-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.pec-his-date {
    color: #95a5a6;
    font-weight: bold;
    margin-right: 15px;
}

@media (max-width: 600px) {
    .pec-card-meta-grid.pec-grid-clean {
        grid-template-columns: 1fr;
    }
    .pec-ref-input-group {
        flex-direction: column;
    }
}