/* Domenica Fidelización v2.0 - Frontend Styles */

:root {
    --primary-color: #667eea;
    --primary-dark: #764ba2;
    --accent-color: #4caf50;
    --danger-color: #f44336;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
    --text-dark: #333;
    --text-light: #666;
}

/* Customer Card Styles */
.domenica-customer-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.customer-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 20px;
}

.customer-card-logo {
    max-width: 80px;
    height: auto;
}

.customer-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.customer-info p {
    margin: 2px 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Points Display */
.points-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.points-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

.points-label {
    font-size: 12px;
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.points-value {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.points-subtitle {
    font-size: 12px;
    opacity: 0.7;
}

/* Level Display */
.level-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.level-badge {
    display: inline-block;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    margin: 10px 0;
}

.level-progress {
    margin-top: 15px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    height: 8px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    background: rgba(255, 255, 255, 0.9);
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.level-text {
    font-size: 12px;
    opacity: 0.9;
    margin-top: 10px;
}

/* Redemption Options */
.redemption-options {
    margin: 30px 0;
}

.redemption-options h3 {
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.redemption-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.redemption-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
}

.redemption-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.redemption-card.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.redemption-title {
    font-size: 16px;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 10px 0;
}

.redemption-description {
    font-size: 13px;
    color: var(--text-light);
    margin: 10px 0;
    line-height: 1.5;
}

.redemption-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.redemption-points {
    text-align: center;
}

.redemption-points-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

.redemption-points-value {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.redemption-benefit {
    text-align: center;
}

.redemption-benefit-label {
    font-size: 11px;
    color: var(--text-light);
    text-transform: uppercase;
}

.redemption-benefit-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--accent-color);
}

.redemption-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.redemption-button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.redemption-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

/* Activity Feed */
.activity-section {
    margin: 30px 0;
    background: var(--light-bg);
    border-radius: 8px;
    padding: 20px;
}

.activity-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-dark);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    background: white;
    padding: 15px;
    border-left: 4px solid var(--primary-color);
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-content {
    flex: 1;
}

.activity-type {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.activity-date {
    font-size: 12px;
    color: var(--text-light);
}

.activity-amount {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.activity-amount.negative {
    color: var(--danger-color);
}

/* Badges */
.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Responsive Design */
@media (max-width: 768px) {
    .domenica-customer-card {
        padding: 20px;
    }

    .customer-card-header {
        flex-direction: column;
        text-align: center;
    }

    .points-section {
        grid-template-columns: 1fr;
    }

    .redemption-grid {
        grid-template-columns: 1fr;
    }

    .redemption-info {
        flex-direction: column;
        gap: 15px;
    }

    .activity-item {
        flex-direction: column;
        gap: 10px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}
