/* Estilos EXACTOS para replicar la sección de suscripciones de Andy Stop Loss - VERSIÓN MOBILE AGREGADA */

.suscripciones-section {
    background: #f6f7fb;
    padding: 120px 0;
    font-family: 'Arial', sans-serif;
    color: #023a51;
    scroll-margin-top: 80px;
}

.suscripciones-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 600;
    color: #023a51;
    margin-bottom: 10px;
}

.section-header p {
    font-size: 1.5rem;
    color: #023a51;
    font-weight: 400;
}

/* Tabla de comparación EXACTA como en la web original */
.desktop-table-plans {
    margin-bottom: 60px;
    overflow-x: auto;
    overflow-y: visible;
    padding-top: 20px;
    position: relative;
}

.plans-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 25px;
    overflow: visible;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.plans-table thead {
    background: #f8f9fa;
}

/* Border-radius para las esquinas de la tabla */
.plans-table thead tr:first-child th:first-child {
    border-top-left-radius: 25px;
}

.plans-table thead tr:first-child th:last-child {
    border-top-right-radius: 25px;
}

.plans-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 25px;
}

.plans-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 25px;
}

.plans-table th {
    padding: 20px 15px;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 2px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.plans-table th:last-child {
    border-right: none;
}

.feature-header {
    background: #f8f9fa;
    text-align: left;
    color: #023a51;
}

.plan-header {
    color: #fff;
    font-weight: 700;
}

.plan-header.free {
    background: #f3f1f1;
    color: #023a51;
}

.plan-header.silver {
    background: #c1c1c1;
    color: #023a51;
}

.plan-header.gold {
    background: #d0c3b3;
    color: #023a51;
    position: relative;
}

/* Etiqueta "EL MÁS ELEGIDO" para el plan GOLD */
.plan-header.gold::before {
    content: "EL MÁS ELEGIDO";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #2cbc63;
    color: #fff;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* Asegurar que la etiqueta no se corte */
.desktop-table-plans {
    overflow: visible !important;
}

/* Reborde verde para toda la columna GOLD */
.plans-table th.plan-header.gold,
.plans-table td.gold-column {
    border-left: 3px solid #2cbc63 !important;
    border-right: 3px solid #2cbc63 !important;
}

/* Reborde superior e inferior para la columna GOLD */
.plans-table th.plan-header.gold {
    border-top: 3px solid #2cbc63 !important;
}

.plans-table tbody tr:last-child td.gold-column {
    border-bottom: 3px solid #2cbc63 !important;
}

.plan-header.cashflow {
    background: #07192d;
}

.plan-header.platinum {
    background: #5c5b5b;
}

.plans-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.plans-table td:last-child {
    border-right: none;
}

.plans-table tbody tr:last-child td {
    border-bottom: none;
}

.feature-name {
    text-align: left !important;
    background: #f8f9fa;
    font-weight: 500;
    color: #023a51;
    position: relative;
    cursor: help;
}

/* Estilos para enlaces dentro de feature-name */
.feature-name a {
    color: #023a51;
    text-decoration: none;
    transition: color 0.3s ease;
}

.feature-name a:hover {
    color: #2cbc63;
    text-decoration: none;
}


/* Estilos para tooltips */
.feature-name[data-tooltip] {
    position: relative;
}

.feature-name[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    margin-bottom: 5px;
    max-width: 300px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.feature-name[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000;
}

.feature-value {
    font-weight: 500;
    color: #023a51;
}

/* Estilos para precios y botones dentro de la tabla */
.price-cell {
    text-align: center;
    padding: 20px 15px !important;
}

.price-cell .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #043a51;
    line-height: 1.4;
}

.action-cell {
    text-align: center;
    padding: 20px 15px !important;
}

.action-cell .btn-subscribe {
    width: 100%;
    max-width: 150px;
    padding: 0;
}

.btn-subscribe {
    background: #2cbc63;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 100%;
}

.btn-subscribe:hover {
    background: #25a555;
}

.payment-info {
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    color: #666;
}

.payment-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #023a51;
    margin-bottom: 20px;
    text-transform: lowercase;
}

.payment-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #023a51;
}

.payment-info p:last-child {
    margin-bottom: 0;
    font-weight: 600;
    color: #023a51;
}

/* Ocultar versión mobile en desktop */
.mobile-table-plans {
    display: none;
}

/* ===== VERSIÓN MOBILE ===== */
@media (max-width: 768px) {
    .suscripciones-section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .section-header p {
        font-size: 1.2rem;
    }
    
    /* Ocultar tabla en mobile */
    .plans-table {
        display: none;
    }
    
    /* Mostrar versión mobile */
    .mobile-table-plans {
        display: block;
    }
    
    .plan-card {
        background: #fff;
        border-radius: 15px;
        margin-bottom: 20px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        overflow: hidden;
        position: relative;
    }
    
    .plan-card.gold {
        border: 3px solid #2cbc63;
        transform: scale(1.02);
    }
    
    .plan-card.gold::before {
        content: "EL MÁS ELEGIDO";
        position: absolute;
        top: 15px;
        right: 15px;
        background: #2cbc63;
        color: #fff;
        padding: 5px 12px;
        border-radius: 15px;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 10;
        white-space: nowrap;
    }
    
    .plan-header-mobile {
        padding: 20px;
        text-align: center;
        color: #fff;
        font-weight: 700;
        font-size: 1.3rem;
    }
    
    .plan-header-mobile.free {
        background: #f3f1f1;
        color: #023a51;
    }
    
    .plan-header-mobile.silver {
        background: #c1c1c1;
        color: #023a51;
    }
    
    .plan-header-mobile.gold {
        background: #d0c3b3;
        color: #023a51;
    }
    
    .plan-header-mobile.cashflow {
        background: #07192d;
    }
    
    .plan-header-mobile.platinum {
        background: #5c5b5b;
    }
    
    .plan-price-mobile {
        padding: 15px 20px;
        text-align: center;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
    }
    
    .plan-price-mobile .price {
        font-size: 1.2rem;
        font-weight: 700;
        color: #043a51;
        line-height: 1.4;
    }
    
    .plan-features-mobile {
        padding: 20px;
    }
    
    .feature-item-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        position: relative;
    }
    
    .feature-item-mobile:last-child {
        border-bottom: none;
    }
    
    .feature-name-mobile {
        font-weight: 500;
        color: #023a51;
        flex: 1;
        cursor: help;
        position: relative;
    }
    
    /* Hover para links en mobile */
    .feature-name-mobile a {
        color: #023a51;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .feature-name-mobile a:hover {
        color: #2cbc63;
        text-decoration: none;
    }
    
    /* Tooltips para mobile */
    .feature-name-mobile[data-tooltip]:hover::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
        background: #333;
        color: #fff;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        z-index: 1000;
        box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        margin-bottom: 5px;
        max-width: 250px;
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
    
    .feature-name-mobile[data-tooltip]:hover::before {
        content: '';
        position: absolute;
        left: 50%;
        bottom: 100%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-top-color: #333;
        margin-bottom: -5px;
        z-index: 1000;
    }
    
    .feature-value-mobile {
        font-weight: 600;
        color: #023a51;
        min-width: 40px;
        text-align: center;
    }
    
    .plan-action-mobile {
        padding: 20px;
        text-align: center;
        background: #f8f9fa;
    }
    
    .btn-subscribe-mobile {
        background: #2cbc63;
        color: #fff;
        border: none;
        padding: 15px 30px;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.3s ease;
        width: 100%;
        max-width: 200px;
    }
    
    .btn-subscribe-mobile:hover {
        background: #25a555;
    }
    
    .payment-info {
        margin-top: 30px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .payment-info h4 {
        font-size: 1.1rem;
    }
    
    .payment-info p {
        font-size: 0.9rem;
    }
}


/* Responsive para tablets */
@media (max-width: 1200px) and (min-width: 769px) {
    .plans-table {
        font-size: 0.9rem;
    }
    
    .plans-table th,
    .plans-table td {
        padding: 12px 8px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

