/* ===== ESTILOS HOMOGÉNEOS PARA PLANES / SERVICIOS ===== */

.pricing-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.pricing-section h2 {
    color: #0d6efd;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-section .text-center p {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Contenedor de tarjetas */
.pricing-section .row {
    margin-top: 3rem;
}

/* Tarjeta de plan - Base homogénea */
.plan-card {
    background-color: #ffffff !important;
    border-radius: 20px !important;
    border: 2px solid #e9ecef !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    padding: 2rem 1.75rem !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    position: relative;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    width: 100% !important;
}

/* Efecto de borde superior animado */
.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #0d6efd, #0b5ed7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

/* Zona de contenido */
.plan-body {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Cabecera del plan */
.plan-header {
    margin-bottom: 1.5rem !important;
    text-align: center;
}

/* Etiqueta del plan - HOMOGÉNEA */
.plan-name {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #1a1a2e !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    position: relative;
}

/* Subtítulo del plan */
.plan-tagline {
    font-size: 1rem !important;
    color: #6c757d !important;
    margin-bottom: 0 !important;
    font-weight: 500;
    line-height: 1.4;
}

/* Lista de características - HOMOGÉNEA */
.plan-features {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5rem 0 !important;
    flex: 1;
    min-height: 200px !important;
}

.plan-features li {
    margin-bottom: 1rem !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    line-height: 1.6 !important;
    position: relative;
    padding-left: 1.5rem;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #0d6efd;
    font-weight: 700;
    font-size: 1rem;
}

/* Botón - HOMOGÉNEO */
.btn-start {
    border-radius: 12px !important;
    padding: 0.875rem 1.5rem !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    border: 2px solid transparent !important;
    text-decoration: none !important;
    text-align: center;
    margin-top: auto;
    opacity: 1 !important;
    transform: translateY(0) !important;
    pointer-events: auto !important;
}

/* Estados hover para todas las tarjetas */
.plan-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    border-color: #0d6efd !important;
}

.plan-card:hover::before {
    transform: scaleX(1);
}

.plan-card:hover .plan-name {
    color: #0d6efd !important;
}

/* ESTILOS ESPECÍFICOS POR PLAN - ESQUEMA AZUL HOMOGÉNEO */

/* Plan Lite - Mismo estilo que Pro */
.plan-card:nth-child(1) {
    border: 2px solid #0d6efd !important;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    color: #ffffff !important;
}

.plan-card:nth-child(1) .plan-name {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.plan-card:nth-child(1) .plan-tagline {
    color: #e9ecef !important;
}

.plan-card:nth-child(1) .plan-features {
    color: #f8f9fa !important;
}

.plan-card:nth-child(1) .plan-features li {
    color: #f8f9fa !important;
}

.plan-card:nth-child(1) .plan-features li::before {
    color: #ffffff !important;
}

.plan-card:nth-child(1) .btn-start {
    background: #ffffff !important;
    color: #0d6efd !important;
    border: 2px solid #ffffff !important;
}

.plan-card:nth-child(1) .btn-start:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2) !important;
}

.plan-card:nth-child(1):hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 60px rgba(13, 110, 253, 0.25) !important;
}

.plan-card:nth-child(1):hover .plan-name {
    color: #ffffff !important;
}

/* Plan Básico */
.plan-card:nth-child(2) .plan-name {
    color: #0d6efd !important;
}

.plan-card:nth-child(2) .btn-start {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.plan-card:nth-child(2) .btn-start:hover {
    background: #0b5ed7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.plan-card:nth-child(2):hover .plan-name {
    color: #0d6efd !important;
}

/* Plan Pro (Destacado) */
.plan-card.featured {
    border: 2px solid #0d6efd !important;
    background: linear-gradient(135deg, #0d6efd 0%, #6610f2 100%) !important;
    color: #ffffff !important;
    transform: scale(1.02) !important;
}

.plan-card.featured::before {
    background: linear-gradient(90deg, #ffffff, #f8f9fa) !important;
    transform: scaleX(1) !important;
}

.plan-card.featured .badge-popular {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
    color: #ffffff !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 0.4rem 1rem !important;
    border-radius: 0 0 15px 15px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.plan-card.featured .plan-name {
    color: #ffffff !important;
}

.plan-card.featured .plan-tagline {
    color: #e9ecef !important;
}

.plan-card.featured .plan-features {
    color: #f8f9fa !important;
}

.plan-card.featured .plan-features li {
    color: #f8f9fa !important;
}

.plan-card.featured .plan-features li::before {
    color: #ffffff !important;
}

.plan-card.featured .btn-start {
    background: #ffffff !important;
    color: #0d6efd !important;
    border: 2px solid #ffffff !important;
}

.plan-card.featured .btn-start:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2) !important;
}

.plan-card.featured:hover {
    transform: scale(1.02) translateY(-12px) !important;
    box-shadow: 0 25px 60px rgba(13, 110, 253, 0.25) !important;
}

/* Plan Premium */
.plan-card:nth-child(4) .plan-name {
    color: #0d6efd !important;
}

.plan-card:nth-child(4) .btn-start {
    background: #0d6efd !important;
    color: #ffffff !important;
}

.plan-card:nth-child(4) .btn-start:hover {
    background: #0b5ed7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.plan-card:nth-child(4):hover .plan-name {
    color: #0d6efd !important;
}

/* Plan A la medida */
.plan-card:nth-child(5) .plan-name {
    color: #0d6efd !important;
}

.plan-card:nth-child(5) .btn-start {
    background: transparent !important;
    color: #0d6efd !important;
    border: 2px solid #0d6efd !important;
}

.plan-card:nth-child(5) .btn-start:hover {
    background: #0d6efd !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3) !important;
}

.plan-card:nth-child(5):hover .plan-name {
    color: #0d6efd !important;
}

/* RESPONSIVE DESIGN */

/* Tablets */
@media (max-width: 991px) {
    .pricing-section {
        padding: 60px 0;
    }
    
    .pricing-section h2 {
        font-size: 2.2rem;
    }
    
    .plan-card {
        height: 480px !important;
        min-height: 480px !important;
        max-height: 480px !important;
        padding: 1.75rem 1.5rem !important;
    }
    
    .plan-features {
        min-height: 180px !important;
    }
    
    .plan-name {
        font-size: 1.3rem !important;
    }
    
    .plan-tagline {
        font-size: 0.95rem !important;
    }
    
    .plan-features li {
        font-size: 0.9rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .btn-start {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.95rem !important;
    }
}

/* Móviles */
@media (max-width: 767px) {
    .pricing-section {
        padding: 50px 0;
    }
    
    .pricing-section h2 {
        font-size: 1.9rem;
        margin-bottom: 0.75rem;
    }
    
    .pricing-section .text-center p {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .pricing-section .row {
        margin-top: 2rem;
    }
    
    .plan-card {
        height: 450px !important;
        min-height: 450px !important;
        max-height: 450px !important;
        padding: 1.5rem 1.25rem !important;
        margin-bottom: 1.5rem;
    }
    
    .plan-features {
        min-height: 160px !important;
    }
    
    .plan-features li {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    .plan-name {
        font-size: 1.2rem !important;
    }
    
    .plan-tagline {
        font-size: 0.9rem !important;
    }
    
    .plan-features {
        margin: 1.25rem 0 !important;
    }
    
    .plan-features li {
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
        padding-left: 1.25rem;
    }
    
    .btn-start {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .plan-card.featured {
        transform: scale(1) !important;
    }
    
    .plan-card.featured:hover {
        transform: translateY(-8px) !important;
    }
    
    .plan-card:hover {
        transform: translateY(-8px) !important;
    }
}

/* Móviles pequeños */
@media (max-width: 575px) {
    .pricing-section h2 {
        font-size: 1.7rem;
    }
    
    .plan-card {
        height: 420px !important;
        min-height: 420px !important;
        max-height: 420px !important;
        padding: 1.25rem 1rem !important;
    }
    
    .plan-features {
        min-height: 140px !important;
    }
    
    .plan-features li {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .plan-name {
        font-size: 1.1rem !important;
    }
    
    .plan-tagline {
        font-size: 0.85rem !important;
    }
    
    .plan-features li {
        font-size: 0.8rem !important;
    }
    
    .btn-start {
        padding: 0.6rem 0.875rem !important;
        font-size: 0.85rem !important;
    }
}