/* =====================
   CoreRO Pricing & Modules
   ===================== */

.pricing-section {
    margin-bottom: 2rem;
}

.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    justify-content: center;
    margin: 2.7rem 0;
}

.pricing-card {
    background: #191c20;
    border-radius: 16px;
    padding: 2.2rem 1.6rem 2.3rem 1.6rem;
    text-align: center;
    border: 1.5px solid #23272a;
    box-shadow: 0 2px 16px 0 rgba(0,0,0,0.10);
    margin-bottom: 1.4em;
    min-width: 290px;
    max-width: 340px;
    flex: 1 1 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.22s, transform 0.22s, border 0.18s;
}
.pricing-card.popular {
    border: 2.5px solid #FB9600;
    box-shadow: 0 8px 32px 0 rgba(251,150,0,0.13), 0 2px 12px 0 rgba(0,0,0,0.10);
    position: relative;
    z-index: 2;
}
.pricing-card:hover {
    box-shadow: 0 8px 32px 0 rgba(251,150,0,0.13), 0 4px 18px 0 rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.025);
    border-color: #FB9600;
    z-index: 3;
}

.badge-popular {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: #FB9600;
    color: #fff;
    padding: 7px 34px;
    border-radius: 18px;
    font-size: 1em;
    font-weight: bold;
    box-shadow: 0 2px 10px 0 rgba(251,150,0,0.14);
    letter-spacing: 0.02em;
    z-index: 3;
    border: 2.5px solid #fff1;
    text-shadow: 0 1px 2px #0008;
}

.pricing-header i {
    font-size: 2.1em;
    color: #FB9600;
    margin-bottom: 0.25em;
}
.pricing-header h3 {
    font-size: 1.25em;
    color: #FB9600;
    font-weight: 800;
    margin: 0.2em 0 0.7em 0;
    text-align: center;
    letter-spacing: 0.01em;
}

.pricing-price {
    font-size: 2.1em;
    color: #FB9600;
    font-weight: 800;
    margin: 1.2rem 0 0.5rem 0;
    text-align: center;
    letter-spacing: 0.01em;
}
.pricing-price span {
    font-size: 0.35em;
    color: #bbb;
    font-weight: 400;
    margin-left: 0.2em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0.7rem 0;
    width: 100%;
}
.pricing-features li {
    color: #e0e0e0;
    padding: 1em 0 1em 0.1em;
    border-bottom: 1px solid #353535;
    font-size: 1.06em;
    display: flex;
    align-items: center;
    gap: 0.7em;
    justify-content: flex-start;
}
.pricing-features li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.pricing-features li i {
    color: #FB9600;
    margin-right: 0.3em;
    font-size: 1.1em;
}

.pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #23272a;
    color: #FB9600;
    border: 2px solid #FB9600;
    padding: 1em 2.2em;
    border-radius: 22px;
    font-size: 1.12em;
    font-weight: 700;
    margin-top: 1.7em;
    transition: background 0.2s, color 0.2s, border 0.2s, transform 0.16s;
    box-shadow: 0 2px 8px 0 rgba(251,150,0,0.08);
    text-decoration: none;
}
.pricing-button:hover {
    background: #FB9600;
    color: #fff;
    border-color: #FB9600;
    transform: translateY(-2px) scale(1.04);
}

@media (max-width: 900px) {
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        gap: 1.4rem;
    }
    .pricing-card {
        margin-bottom: 2.2em;
        min-width: 90vw;
        max-width: 100vw;
    }
}
/* Module Cards Styling */
.module-card {
    background: #2f3136;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid #3a3e45;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-color: #4a4f57;
}

.module-card.selected {
    border: 2px solid #FB9600;
    background: linear-gradient(145deg, #2a2e35 0%, #1f2226 100%);
    box-shadow: 0 0 0 2px rgba(251, 150, 0, 0.3);
}

/* Module Header */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    gap: 1rem;
    position: relative;
    min-height: 42px; /* Altura del icono */
}

.module-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex: 1;
}

.module-icon {
    background: rgba(251, 150, 0, 0.1);
    min-width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FB9600;
    font-size: 1.3rem;
    flex-shrink: 0;
    position: relative;
}

.module-icon i {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.module-card.required .module-icon {
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

.module-card.required .module-icon i {
    color: #2ecc71;
}

.module-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.3;
}

/* Price and Toggle Wrapper */
.module-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Price Tag */
.module-price {
    background: linear-gradient(135deg, #FB9600, #f5a742);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    order: 1;
    white-space: nowrap;
}

.module-price.required-price {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    padding-right: 30px;
    position: relative;
}

.module-price.required-price:after {
    content: '/mes';
    position: absolute;
    right: 8px;
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Module Description */
.module-description {
    color: #a0a0a0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    min-height: 50px;
}

/* Features List */
.module-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    border-top: 1px solid #2a2e35;
    padding-top: 1rem;
}

.module-features li {
    color: #b0b0b0;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.5;
}

.module-features li:before {
    content: '•';
    color: #FB9600;
    font-size: 1.2rem;
    line-height: 1;
    margin-top: 0.1rem;
}

/* Toggle Switch */
.module-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: #2a2e35;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    border: 2px solid #3a3e45;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    order: 2;
}

.module-toggle:before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    height: 18px;
    border-radius: 50%;
    background: #5d6065;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.module-toggle.active {
    background: rgba(251, 150, 0, 0.3);
    border-color: #FB9600;
}

.module-toggle.active:before {
    background: #FB9600;
    left: 26px;
    transform: scale(1.1);
}

.module-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #2a2e35 !important;
    border-color: #3a3e45 !important;
}

.module-toggle.disabled:before {
    background: #5d6065 !important;
}

/* Required Badge */
.required-badge {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

/* Total Section */
.total-section {
    background: #1f2226;
    border-radius: 14px;
    padding: 2rem;
    margin-top: 2.5rem;
    border: 1.5px solid #2a2e35;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.total-section h2 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    font-weight: 700;
}

.selected-modules {
    margin-bottom: 1.5rem;
    min-height: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.selected-module-tag {
    display: inline-flex;
    align-items: center;
    background: rgba(251, 150, 0, 0.1);
    color: #FB9600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(251, 150, 0, 0.2);
}

.selected-module-tag.required {
    background: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.2);
}

.total-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #FB9600;
    margin: 1.5rem 0;
    text-align: center;
}

/* Purchase Button */
.purchase-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FB9600;
    color: #fff;
    padding: 1.1rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 1rem;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(251, 150, 0, 0.3);
}

.purchase-button:hover {
    background: #e68a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 150, 0, 0.4);
}

.purchase-button i {
    margin-right: 0.7rem;
    font-size: 1.2em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .module-card {
        padding: 1.5rem;
    }
    
    .module-name {
        font-size: 1.15rem;
    }
    
    .module-description {
        font-size: 0.9rem;
    }
    
    .total-section {
        padding: 1.5rem;
    }
    
    .total-price {
        font-size: 2rem;
    }
    
    .purchase-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Required Module Card */
.module-card.required {
    border: 2px solid #2ecc71;
    background: linear-gradient(145deg, #1a2a21 0%, #0f1913 100%);
}

.module-card.required .module-price.required-price {
    background: rgba(46, 204, 113, 0.9);
    color: #fff;
    font-weight: bold;
}

.module-card.required .module-toggle.disabled {
    background: rgba(46, 204, 113, 0.2) !important;
    border-color: rgba(46, 204, 113, 0.3) !important;
}

@media (max-width: 500px) {
    .pricing-button {
        padding: 0.9em 1.3em;
        font-size: 1em;
    }
}
