/**
 * Licensing Redesign CSS - Modelo de Licenciamiento Optimizado
 * Created: 2025-11-09
 * Purpose: Estilos para rediseño del modelo de licenciamiento (4 tabs + AWS section)
 */

/* ========================================
   FIX: ICONOS CON CHECKMARKS EN LISTAS
   ======================================== */

/* Garantizar espacio entre iconos y texto en todas las listas */
.garantia-benefits li,
.update-list li,
.benefits-list li,
.migration-benefits li,
.support-benefits li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

/* Iconos con margen derecho forzado */
.garantia-benefits li i,
.update-list li i,
.benefits-list li i,
.migration-benefits li i,
.support-benefits li i,
i.fa-check-circle {
    margin-right: 12px !important;
    flex-shrink: 0 !important;
    min-width: 20px !important;
    display: inline-block !important;
}

/* Asegurar que los checkmarks verdes se vean correctamente */
.garantia-benefits li i.fa-check-circle,
.benefits-list li i.fa-check-circle,
.migration-benefits li i.fa-check-circle,
.support-benefits li i.fa-check-circle {
    color: #4caf50 !important;
    font-size: 1.1rem !important;
}

/* ========================================
   TAB 4: PRECIOS Y PLANES - TABLA COMPARATIVA SIMPLE
   ======================================== */

.pricing-comparison-simple {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #0f1b39 0%, #1a2847 100%);
    border-radius: 20px;
    border: 2px solid rgba(5, 144, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.pricing-comparison-simple h4 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: #ffffff;
    font-weight: 700;
}

.pricing-comparison-simple h4 i {
    color: var(--general-color, #0590ff);
    margin-right: 15px;
}

.comparison-table {
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    background: #1a2847;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2.5fr 3fr 3fr;
    border-bottom: 1px solid rgba(5, 144, 255, 0.15);
    transition: all 0.3s ease;
    min-height: 70px;
}

.comparison-row:hover:not(.header-row) {
    background: rgba(5, 144, 255, 0.08);
    transform: translateX(5px);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row.header-row {
    background: linear-gradient(135deg, var(--general-color, #0590ff) 0%, #0070cc 100%);
    padding: 5px 0;
    min-height: 65px;
}

.comparison-cell {
    padding: 22px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-right: 1px solid rgba(5, 144, 255, 0.15);
    font-size: 0.98rem;
    line-height: 1.6;
    color: #b8c5db;
}

.comparison-cell:last-child {
    border-right: none;
}

.comparison-cell.feature-name {
    background: linear-gradient(135deg, rgba(5, 144, 255, 0.12) 0%, rgba(5, 144, 255, 0.05) 100%);
    font-weight: 700;
    color: #ffffff;
    justify-content: flex-start;
    text-align: left;
    font-size: 1.05rem;
    border-right: 2px solid rgba(5, 144, 255, 0.3);
}

.comparison-cell.other-systems-header {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.comparison-cell.medifolios-header {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
}

.comparison-cell.negative {
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5;
    font-weight: 500;
    border-left: 3px solid #ef4444;
}

.comparison-cell.positive {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    color: #86efac;
    font-weight: 600;
    border-left: 3px solid #10b981;
}

/* Pricing Summary Stats */
.pricing-summary-stats {
    margin: 50px 0;
    padding: 40px 30px;
    background: linear-gradient(135deg, #0f1b39 0%, #1a2847 100%);
    border-radius: 20px;
    border: 2px solid rgba(5, 144, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.summary-grid-simple {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.stat-box {
    background: linear-gradient(135deg, rgba(5, 144, 255, 0.15) 0%, rgba(5, 144, 255, 0.08) 100%);
    color: #fff;
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(5, 144, 255, 0.3);
    box-shadow: 0 8px 25px rgba(5, 144, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(5, 144, 255, 0.2) 0%, rgba(5, 144, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 15px 40px rgba(5, 144, 255, 0.4);
    border-color: rgba(5, 144, 255, 0.5);
    background: linear-gradient(135deg, rgba(5, 144, 255, 0.25) 0%, rgba(5, 144, 255, 0.15) 100%);
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box .stat-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    display: block;
    color: var(--general-color, #0590ff);
}

.stat-box .stat-number {
    font-size: 3rem;
    font-weight: 800;
    display: block;
    margin: 15px 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #ffffff;
}

.stat-box .stat-label {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
    line-height: 1.4;
    color: #b8c5db;
}

/* Pricing CTA */
.pricing-cta {
    background: linear-gradient(135deg, var(--general-color, #0590ff) 0%, #0070cc 100%);
    color: #fff;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 15px 50px rgba(5, 144, 255, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.pricing-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.pricing-cta p {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
}

.pricing-cta p:first-of-type {
    font-size: 1.4rem;
    font-weight: 700;
}

.pricing-cta .btn {
    margin-top: 25px;
    padding: 18px 45px;
    font-size: 1.15rem;
    background: #fff;
    color: var(--general-color, #0590ff);
    border: none;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.pricing-cta .btn:hover {
    background: #f8f9fc;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.3);
    color: #0070cc;
}

.pricing-cta .btn i {
    margin-right: 10px;
}

/* ========================================
   AWS INFRASTRUCTURE SECTION
   ======================================== */

.aws-infrastructure-section {
    background: linear-gradient(135deg, #232F3E 0%, #3c4e63 100%);
    padding: 80px 0;
}

.aws-feature-card {
    padding: 20px;
    transition: transform 0.3s ease;
}

.aws-feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon-aws {
    margin-bottom: 15px;
}

.metric-box-aws {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 153, 0, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.metric-box-aws:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #FF9900;
    transform: scale(1.05);
}

.metric-icon-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 153, 0, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    color: #FF9900;
    font-size: 1.8rem;
}

.metric-value-aws {
    color: #FF9900;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 15px 0;
}

.metric-label-aws {
    color: #fff;
    font-size: 1rem;
}

.security-layer-badge {
    display: inline-block;
}

.layer-number-badge {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF9900 0%, #ffb84d 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #232F3E;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .pricing-comparison-simple {
        padding: 20px;
    }

    .comparison-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .comparison-cell {
        border-right: none;
        border-bottom: 1px solid rgba(5, 144, 255, 0.15);
        justify-content: flex-start;
        text-align: left;
        padding: 15px 18px;
    }

    .comparison-row.header-row .comparison-cell:first-child {
        display: none;
    }

    .comparison-cell.feature-name {
        font-weight: bold;
        background: rgba(5, 144, 255, 0.15);
        font-size: 1rem;
        border-right: none;
        border-bottom: 2px solid rgba(5, 144, 255, 0.3);
    }

    .comparison-cell.other-systems-header,
    .comparison-cell.medifolios-header {
        font-size: 1.1rem;
        padding: 18px;
    }

    .comparison-row:hover:not(.header-row) {
        transform: translateX(0);
    }

    .summary-grid-simple {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .pricing-comparison-simple h4 {
        font-size: 1.4rem;
    }

    .comparison-cell {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .stat-box .stat-number {
        font-size: 2rem;
    }

    .stat-box .stat-label {
        font-size: 0.85rem;
    }

    .pricing-cta {
        padding: 25px 20px;
    }

    .pricing-cta p {
        font-size: 1rem;
    }

    .pricing-cta .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .metric-value-aws {
        font-size: 2rem;
    }

    .summary-grid-simple {
        grid-template-columns: 1fr;
    }
}
