.pricing-header {
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.header-title {
    color: #167073;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
}

.header-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 0;
}

.alert-renovacion {
    background: linear-gradient(45deg, #ff6b6b, #ffa726);
    border: none;
    border-radius: 25px;
    color: white;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3); }
    50% { transform: scale(1.02); box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4); }
}

.pricing-card {
    border: 2px solid #e9ecef;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    background: white;
    border-color: #167073;
}

.pricing-card:hover {
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.pricing-card.featured {
    border: 2px solid #167073;
    position: relative;
    box-shadow: 0 10px 30px rgba(22, 112, 115, 0.15);
}

.pricing-card.featured::before {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #167073;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(22, 112, 115, 0.3);
}

.card-header-custom {
    padding: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.card-header-free {
    background: #f8f9fa;
    color: #495057;
}

.card-header-premium {
    background: #167073;
    color: white;
    border-bottom: 1px solid #167073;
}

.pricing-list-enhanced {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-list-enhanced li {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 55px;
    text-align: center;
}

.pricing-list-enhanced li:last-child {
    border-bottom: none;
    padding: 1.5rem;
}

.feature-icon {
    color: #28a745;
    font-size: 1.1rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.feature-icon.disabled {
    color: #dc3545;
}

.btn-enhanced {
    border-radius: 20px;
    padding: 12px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid;
    position: relative;
    overflow: hidden;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

.btn-primary-enhanced {
    background: #167073;
    border-color: #167073;
    color: white;
}

.btn-primary-enhanced:hover {
    background: #125c5d;
    border-color: #125c5d;
    color: white;
}

.btn-outline-primary {
    background: transparent;
    border-color: #167073;
    color: #167073;
}

.btn-outline-primary:hover {
    background: #167073;
    border-color: #167073;
    color: white;
    box-shadow: 0 5px 15px rgba(22, 112, 115, 0.3);
}

.credits-section {
    border: 2px solid #167073;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(22, 112, 115, 0.1);
}

.credits-input {
    border-radius: 12px;
    border: 2px solid #e9ecef;
    padding: 15px 20px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.credits-input:focus {
    border-color: #167073;
    box-shadow: 0 0 0 0.2rem rgba(22, 112, 115, 0.25);
}

.pricing-features {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.feature-title {
    color: #167073;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.modal-enhanced .modal-content {
    border-radius: 20px;
    border: none;
    overflow: hidden;
}

.modal-enhanced .modal-header {
    background: #167073;
    color: white;
    border: none;
}

.text-primary {
    color: #167073 !important;
}

.bg-primary {
    background-color: #167073 !important;
}

@media (max-width: 768px) {
    .header-title { font-size: 2rem; }
    .pricing-card.featured { 
        transform: none;
        border: 2px solid #167073;
    }
    .pricing-card.featured::before {
        top: -10px;
        font-size: 0.7rem;
        padding: 4px 15px;
    }
    .credits-section { margin-top: 1rem; }
}

@media (max-width: 1210px) {
    .header-title { font-size: 2rem; }
    .pricing-card.featured { 
        transform: none;
        border: 2px solid #167073;
    }
    .pricing-card.featured::before {
        top: -10px;
        font-size: 0.7rem;
        padding: 4px 15px;
    }
    .credits-section { margin-top: 1rem; }
}

@media (max-width: 992px) {
    .pricing-features {
        margin-bottom: 1rem;
    }
    
    #tarifas_default {
        display: none;
    }
    
    #tarifas_mobile {
        display: block !important;
    }
}

@media (max-width: 1210px) and (min-width: 769px) {
    .row.justify-content-center {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .col-lg-3 {
        flex: 0 0 48%;
        max-width: 48%;
        margin-bottom: 2rem;
    }
    
    .col-lg-3:nth-child(odd) {
        margin-right: 2%;
    }
    
    .col-lg-3:nth-child(even) {
        margin-left: 2%;
    }
    
    /* Para la primera columna (features), que ocupe todo el ancho */
    .col-lg-3:first-child {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
        margin-right: 0;
        margin-left: 0;
    }
    
    /* Los otros 3 bloques se distribuyen en 2 filas */
    .col-lg-3:nth-child(2),
    .col-lg-3:nth-child(3) {
        flex: 0 0 48%;
        max-width: 48%;
    }
    
    .col-lg-3:nth-child(4) {
        flex: 0 0 48%;
        max-width: 48%;
        margin: 0 auto;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
        margin-right: 0;
        margin-left: 0;
    }
}

@media (max-width: 1210px) and (min-width: 993px) {
    .row.justify-content-center {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .col-lg-4, .col-xl-3 {
        flex: 0 0 48% !important;
        max-width: 48% !important;
        margin-bottom: 2rem !important;
        display: block !important;
    }
    .col-lg-4:first-child, .col-xl-3:first-child {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
}