/* Estilos para la integración de Mercado Pago */

/* Cards de planes */
.plan-card {
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2rem;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.plan-card.current-plan {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.05) 0%, rgba(25, 135, 84, 0.02) 100%);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.plan-header h5 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-price .currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-muted);
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
}

.plan-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.plan-features .feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.plan-features .feature i {
    font-size: 1.2rem;
}

.plan-action {
    margin-top: auto;
}

/* Subscription stats */
.subscription-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

.subscription-stat .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Cash summary */
.cash-summary {
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.summary-row:last-child {
    border-bottom: none;
}

.closing-difference {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.closing-difference.positive {
    background: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.closing-difference.negative {
    background: rgba(220, 38, 38, 0.1);
    color: var(--danger);
}

/* Input con icono */
.input-with-icon-modern {
    position: relative;
}

.input-with-icon-modern i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.input-with-icon-modern input {
    padding-left: 2.5rem;
}

/* Form groups modernos */
.form-group-modern {
    margin-bottom: 1.5rem;
}

.form-group-modern label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.select-modern {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s;
}

.select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modales modernos */
.modal-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.modal-body-modern {
    padding: 1.5rem;
}

.modal-footer-modern {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.btn-cancel-modern {
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(0,0,0,0.1);
    background: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel-modern:hover {
    background: rgba(0,0,0,0.05);
}

.btn-confirm-modern {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm-modern:hover {
    background: var(--primary-dark);
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s;
}

.btn-close-modal:hover {
    color: var(--text-color);
}

.modal-content-modern {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .plan-card {
        margin-bottom: 1rem;
    }
    
    .subscription-stat {
        flex-direction: column;
        text-align: center;
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
}
