/* Planos Page Specific Styles */

/* Hero Section for Plans */
.hero-section-plans {
    background: linear-gradient(135deg, var(--light-bg) 0%, #E9ECEF 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section-plans::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(40, 167, 69, 0.1) 50%, transparent 100%);
    transform: rotate(-15deg);
    z-index: 1;
}

.hero-section-plans .hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

.hero-section-plans .hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* Criteria Card */
.criteria-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #E9ECEF;
    margin-bottom: 3rem;
}

.criteria-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.criteria-list {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F8F9FA;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.criteria-list li:last-child {
    border-bottom: none;
}

.criteria-list li i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 1rem;
    font-size: 1.1rem;
}

/* Plan Cards */
.plan-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-light);
    border: 2px solid #E9ECEF;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
}

.plan-badge {
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--gradient-secondary);
    color: white;
    padding: 0.5rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
}

.plan-header {
    padding: 2rem 1.5rem 1.5rem;
    text-align: center;
    position: relative;
}

.plan-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.plan-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.plan-price {
    margin-bottom: 1rem;
}

.plan-price .currency {
    font-size: 1rem;
    font-weight: 500;
    vertical-align: top;
}

.plan-price .amount {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.plan-price .period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Plan Specific Colors */
.plan-basic .plan-icon {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.plan-basic .plan-name {
    color: #007bff;
}

.plan-basic:hover {
    border-color: #007bff;
}

.plan-essential .plan-icon {
    background: var(--gradient-secondary);
}

.plan-essential .plan-name {
    color: var(--secondary-color);
}

.plan-essential:hover {
    border-color: var(--secondary-color);
}

.plan-professional .plan-icon {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
}

.plan-professional .plan-name {
    color: #6f42c1;
}

.plan-professional:hover {
    border-color: #6f42c1;
}

.plan-corporate .plan-icon {
    background: var(--gradient-primary);
}

.plan-corporate .plan-name {
    color: var(--primary-color);
}

.plan-corporate:hover {
    border-color: var(--primary-color);
}

/* Plan Features */
.plan-features {
    padding: 0 1.5rem;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F8F9FA;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    color: var(--secondary-color);
    margin-right: 0.75rem;
    font-size: 0.9rem;
    width: 16px;
}

.plan-footer {
    padding: 1.5rem;
    margin-top: auto;
}

/* Plan Buttons */
.btn-plan {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
}

.btn-plan-basic {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
}

.btn-plan-basic:hover {
    background: linear-gradient(135deg, #0056b3, #007bff);
    transform: translateY(-2px);
    color: white;
}

.btn-plan-essential {
    background: var(--gradient-secondary);
    color: white;
}

.btn-plan-essential:hover {
    background: linear-gradient(135deg, #20C997, #28A745);
    transform: translateY(-2px);
    color: white;
}

.btn-plan-professional {
    background: linear-gradient(135deg, #6f42c1, #5a2d91);
    color: white;
}

.btn-plan-professional:hover {
    background: linear-gradient(135deg, #5a2d91, #6f42c1);
    transform: translateY(-2px);
    color: white;
}

.btn-plan-corporate {
    background: var(--gradient-primary);
    color: white;
}

.btn-plan-corporate:hover {
    background: linear-gradient(135deg, #2C4A6B, #1A2C42);
    transform: translateY(-2px);
    color: white;
}

/* Comparison Table */
.comparison-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #E9ECEF;
}

.comparison-table {
    margin-bottom: 0;
}

.comparison-table th {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1.25rem 1rem;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table th:first-child {
    border-radius: 12px 0 0 0;
}

.comparison-table th:last-child {
    border-radius: 0 12px 0 0;
}

.comparison-table td {
    padding: 1rem;
    border-bottom: 1px solid #E9ECEF;
    vertical-align: middle;
}

.comparison-table td i {
    color: var(--secondary-color);
}

.comparison-table .price-row {
    background: var(--light-bg);
    font-weight: 600;
}

.comparison-table .price-row td {
    border-bottom: none;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
    border: 1px solid #E9ECEF;
}

.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #F8F9FA;
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h5 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.faq-item h5 i {
    color: var(--secondary-color);
}

.faq-item p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}

/* Active Navigation Link */
.nav-link.active {
    color: var(--secondary-color) !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-section-plans .hero-title {
        font-size: 2.5rem;
    }
    
    .criteria-card {
        padding: 2rem;
    }
    
    .comparison-section {
        padding: 2rem;
    }
    
    .faq-section {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section-plans {
        padding: 100px 0 60px;
    }
    
    .hero-section-plans .hero-title {
        font-size: 2rem;
    }
    
    .hero-section-plans .hero-description {
        font-size: 1.1rem;
    }
    
    .criteria-card {
        padding: 1.5rem;
    }
    
    .criteria-title {
        font-size: 1.5rem;
    }
    
    .plan-card {
        margin-bottom: 2rem;
    }
    
    .comparison-section {
        padding: 1.5rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
    
    .plan-price .amount {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section-plans .hero-title {
        font-size: 1.8rem;
    }
    
    .criteria-list li {
        font-size: 0.9rem;
    }
    
    .plan-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .plan-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .plan-name {
        font-size: 1.3rem;
    }
    
    .plan-price .amount {
        font-size: 2rem;
    }
    
    .comparison-table {
        font-size: 0.8rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Animation for plan cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.plan-card {
    animation: fadeInUp 0.6s ease forwards;
}

.plan-card:nth-child(1) { animation-delay: 0.1s; }
.plan-card:nth-child(2) { animation-delay: 0.2s; }
.plan-card:nth-child(3) { animation-delay: 0.3s; }
.plan-card:nth-child(4) { animation-delay: 0.4s; }

/* Hover effects for plan cards */
.plan-card:hover .plan-icon {
    transform: scale(1.1);
}

/* Loading state for buttons */
.btn-plan:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-plan .loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}