/* ===================================
   SECCION DE PLANES - DISEÑO REFACTORIZADO
   Carga dinámica desde planes.json
   =================================== */

.planes-section {
    padding: 100px 5%;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f0f4f8 100%);
    position: relative;
    overflow: hidden;
}

/* Loading state */
.planes-loading {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.planes-grid .plan-card {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

.planes-grid .plan-card:nth-child(1) { animation-delay: 0.1s; }
.planes-grid .plan-card:nth-child(2) { animation-delay: 0.2s; }
.planes-grid .plan-card:nth-child(3) { animation-delay: 0.3s; }
.planes-grid .plan-card:nth-child(4) { animation-delay: 0.4s; }
.planes-grid .plan-card:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elementos decorativos sutiles */
.planes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.planes-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.planes-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.planes-header {
    text-align: center;
    margin-bottom: 25px;
}

.planes-header h2 {
    font-size: 42px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.planes-header p {
    font-size: 19px;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* Grid de planes - Layout elegante y ordenado */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

/* En pantallas grandes, forzar máximo 3 columnas para mejor legibilidad */
@media (min-width: 1200px) {
    .planes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* Cards con diseño glass morphism elegante */
.plan-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 32px 28px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.plan-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.plan-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 4px 20px rgba(37, 99, 235, 0.12),
        0 20px 60px rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.3);
}

.plan-card:hover::before {
    opacity: 1;
}

/* Plan destacado con diseño premium */
.plan-card.destacado {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.plan-card.destacado::before {
    height: 4px;
    background: linear-gradient(90deg, #fbbf24, #f59e0b, #fbbf24);
    opacity: 1;
}

.plan-card.destacado::after {
    content: 'MÁS POPULAR';
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    padding: 6px 40px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.plan-card.destacado:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 8px 30px rgba(37, 99, 235, 0.3),
        0 30px 80px rgba(37, 99, 235, 0.2);
}

/* Toggle de Facturación (Mensual/Anual) */
.billing-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    padding: 0 20px;
    gap: 12px;
}

.billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.billing-option {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.billing-option.active {
    color: #2563eb;
    font-weight: 600;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.4);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.discount-badge {
    display: inline-block;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.billing-message {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #10b981;
    font-weight: 500;
    padding: 8px 20px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-top: 4px;
}

.billing-message i {
    font-size: 16px;
    color: #10b981;
}

/* Badge con diseño minimalista */
.plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 16px;
    width: fit-content;
    border: 1px solid #bfdbfe;
}

.plan-card.destacado .plan-badge {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Tipografía refinada */
.plan-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
    letter-spacing: -0.5px;
}

.plan-card.destacado .plan-name {
    color: white;
    font-size: 26px;
}

/* Contenedor de precios con transición */
.plan-price-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-bottom: 4px;
}

.plan-price {
    font-size: 40px;
    font-weight: 800;
    color: #1e40af;
    margin-bottom: 4px;
    line-height: 1;
    letter-spacing: -1px;
}

.plan-card.destacado .plan-price {
    color: #fbbf24;
}

/* Comparación de precios (plan anual) */
.price-comparison {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.old-price {
    font-size: 24px;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    opacity: 0.7;
    display: flex;
    align-items: center;
    gap: 4px;
}

.plan-card.destacado .old-price {
    color: rgba(255, 255, 255, 0.6);
}

.currency-small {
    font-size: 14px;
    margin-left: 4px;
    font-weight: 500;
}

.new-price {
    font-size: 40px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    position: relative;
}

.plan-card.destacado .new-price {
    color: #fbbf24;
}

.new-price::before {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #059669);
    border-radius: 2px;
    animation: expandWidth 0.6s ease-out;
}

.plan-card.destacado .new-price::before {
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.plan-price-period {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 20px;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.plan-card.destacado .plan-price-period {
    color: rgba(255, 255, 255, 0.85);
}

.plan-description {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 0;
    min-height: 40px;
}

.plan-card.destacado .plan-description {
    color: rgba(255, 255, 255, 0.95);
}

/* Features con espaciado elegante */
.plan-features {
    list-style: none;
    margin-bottom: 28px;
    flex-grow: 1;
    padding: 0;
}

.plan-features li {
    padding: 11px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.plan-features li:hover {
    padding-left: 5px;
    color: #1e293b;
}

.plan-card.destacado .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.plan-card.destacado .plan-features li:hover {
    color: white;
}

.plan-features li:last-child {
    border-bottom: none;
}

/* Iconos refinados con gradiente */
.plan-features li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 5px;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
    margin-top: 2px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.plan-card.destacado .plan-features li::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

/* CTA con diseño moderno y llamativo */
.plan-cta {
    display: block;
    padding: 14px 28px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    width: 100%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

.plan-cta::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 ease;
}

.plan-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.plan-cta:hover::before {
    left: 100%;
}

.plan-cta:active {
    transform: translateY(-1px);
}

/* CTA del plan destacado */
.plan-card.destacado .plan-cta {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #78350f;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}

.plan-card.destacado .plan-cta:hover {
    background: linear-gradient(135deg, #fcd34d, #fbbf24);
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5);
}

/* Footer refinado con llamada a la acción */
.planes-footer {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(10px);
    padding: 40px 35px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.planes-footer h3 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.planes-footer p {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.planes-footer .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, #16a34a, #15803d);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

.planes-footer .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(22, 163, 74, 0.4);
    background: linear-gradient(135deg, #15803d, #14532d);
}

/* ===============================================
   RESPONSIVE DESIGN - OPTIMIZADO PARA TODOS LOS DISPOSITIVOS
   =============================================== */

/* Tablets grandes y pantallas medianas (1024px - 768px) */
@media (max-width: 1024px) {
    .planes-section {
        padding: 70px 5%;
    }

    .planes-header {
        margin-bottom: 50px;
    }

    .planes-header h2 {
        font-size: 38px;
        line-height: 1.3;
    }

    .planes-header p {
        font-size: 17px;
        max-width: 650px;
    }

    .planes-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 0 10px;
        max-width: 900px;
    }

    .plan-card {
        padding: 32px 26px;
    }

    .plan-badge {
        font-size: 9px;
        padding: 5px 12px;
        margin-bottom: 14px;
    }

    .plan-name {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .plan-card.destacado .plan-name {
        font-size: 24px;
    }

    .plan-price {
        font-size: 36px;
    }

    .plan-price-period {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .plan-description {
        font-size: 13px;
        margin-bottom: 20px;
        min-height: 38px;
    }

    .plan-features {
        margin-bottom: 24px;
    }

    .plan-features li {
        padding: 10px 0;
        font-size: 13px;
    }

    .plan-features li::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .plan-cta {
        padding: 13px 26px;
        font-size: 14px;
        border-radius: 9px;
    }

    .plan-card.destacado::after {
        top: 15px;
        right: -32px;
        font-size: 10px;
        padding: 5px 35px;
    }

    .planes-footer {
        padding: 38px 32px;
    }

    .planes-footer h3 {
        font-size: 26px;
    }

    .planes-footer p {
        font-size: 15px;
        margin-bottom: 22px;
    }

    .planes-footer .cta-button {
        padding: 16px 40px;
        font-size: 16px;
    }
}

/* Tablets en modo portrait y móviles grandes (768px - 640px) */
@media (max-width: 768px) {
    .planes-section {
        padding: 60px 5%;
    }

    .planes-header {
        margin-bottom: 40px;
    }

    .planes-header h2 {
        font-size: 32px;
        line-height: 1.3;
    }

    .planes-header p {
        font-size: 16px;
        line-height: 1.6;
        max-width: 100%;
    }

    .planes-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 0;
        max-width: 500px;
        margin: 0 auto 45px auto;
    }

    .plan-card {
        padding: 30px 26px;
        max-width: 100%;
    }

    /* Eliminar efectos hover en tablets/móviles para mejor rendimiento */
    .plan-card:hover {
        transform: none;
        box-shadow: 
            0 1px 3px rgba(0, 0, 0, 0.05),
            0 10px 40px rgba(0, 0, 0, 0.03);
    }

    .plan-card:hover::before {
        opacity: 0;
    }

    .plan-card.destacado {
        margin: 0;
        transform: none;
    }

    .plan-card.destacado:hover {
        transform: none;
        box-shadow: 
            0 8px 30px rgba(37, 99, 235, 0.3),
            0 30px 80px rgba(37, 99, 235, 0.2);
    }

    .plan-card.destacado::after {
        display: none;
    }

    .plan-badge {
        font-size: 9px;
        padding: 5px 12px;
        margin-bottom: 12px;
    }

    .plan-name {
        font-size: 23px;
        margin-bottom: 8px;
    }

    .plan-card.destacado .plan-name {
        font-size: 25px;
    }

    .plan-price {
        font-size: 38px;
    }

    .old-price {
        font-size: 22px;
    }

    .currency-small {
        font-size: 13px;
    }

    .new-price {
        font-size: 38px;
    }

    .plan-price-period {
        font-size: 13px;
        margin-bottom: 18px;
    }

    .plan-description {
        font-size: 14px;
        margin-bottom: 20px;
        min-height: auto;
        line-height: 1.6;
    }

    .plan-features {
        margin-bottom: 22px;
    }

    .plan-features li {
        padding: 10px 0;
        font-size: 13px;
        gap: 10px;
    }

    .plan-features li:hover {
        padding-left: 0;
    }

    .plan-features li::before {
        width: 18px;
        height: 18px;
        font-size: 11px;
    }

    .plan-cta {
        padding: 14px 28px;
        font-size: 15px;
    }

    .plan-cta:hover {
        transform: none;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    }

    .plan-card.destacado .plan-cta:hover {
        box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
    }

    .planes-footer {
        padding: 35px 28px;
        border-radius: 14px;
    }

    .planes-footer h3 {
        font-size: 25px;
        margin-bottom: 10px;
    }

    .planes-footer p {
        font-size: 15px;
        margin-bottom: 20px;
        line-height: 1.6;
    }

    .planes-footer .cta-button {
        padding: 15px 36px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }
}

/* Móviles medianos (640px - 480px) */
@media (max-width: 640px) {
    .planes-section {
        padding: 50px 5%;
    }

    .planes-header h2 {
        font-size: 28px;
    }

    .planes-header p {
        font-size: 15px;
    }

    .planes-grid {
        gap: 20px;
        margin-bottom: 40px;
    }

    .plan-card {
        padding: 28px 24px;
        border-radius: 14px;
    }

    .plan-name {
        font-size: 21px;
    }

    .plan-card.destacado .plan-name {
        font-size: 23px;
    }

    .plan-price {
        font-size: 34px;
    }

    .old-price {
        font-size: 20px;
    }

    .currency-small {
        font-size: 12px;
    }

    .new-price {
        font-size: 34px;
    }

    .plan-cta {
        padding: 13px 24px;
        font-size: 14px;
    }

    .planes-footer {
        padding: 32px 24px;
    }

    .planes-footer h3 {
        font-size: 23px;
    }
}

/* Móviles pequeños (480px y menor) */
@media (max-width: 480px) {
    .planes-section {
        padding: 45px 4%;
    }

    .planes-section::before,
    .planes-section::after {
        display: none;
    }

    .planes-header {
        margin-bottom: 35px;
    }

    .planes-header h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    .planes-header p {
        font-size: 14px;
        line-height: 1.5;
    }

    .planes-grid {
        gap: 18px;
        margin-bottom: 35px;
        max-width: 100%;
    }

    .plan-card {
        padding: 26px 22px;
        border-radius: 12px;
    }

    .plan-card::before {
        height: 2px;
    }

    .plan-badge {
        font-size: 8px;
        padding: 4px 10px;
        margin-bottom: 10px;
        border-radius: 15px;
    }

    .plan-name {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .plan-card.destacado .plan-name {
        font-size: 22px;
    }

    .plan-price {
        font-size: 32px;
    }

    .old-price {
        font-size: 18px;
    }

    .currency-small {
        font-size: 11px;
    }

    .new-price {
        font-size: 32px;
    }

    .plan-price-period {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .plan-description {
        font-size: 13px;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .plan-features {
        margin-bottom: 20px;
    }

    .plan-features li {
        padding: 9px 0;
        font-size: 12px;
        gap: 8px;
        line-height: 1.5;
    }

    .plan-features li::before {
        width: 16px;
        height: 16px;
        font-size: 10px;
        border-radius: 4px;
    }

    .plan-cta {
        padding: 12px 22px;
        font-size: 14px;
        border-radius: 8px;
    }

    .planes-footer {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .planes-footer h3 {
        font-size: 21px;
        margin-bottom: 8px;
    }

    .planes-footer p {
        font-size: 14px;
        margin-bottom: 18px;
        line-height: 1.5;
    }

    .planes-footer .cta-button {
        padding: 14px 30px;
        font-size: 14px;
        gap: 8px;
        width: 100%;
    }
}

/* Optimización para dispositivos muy pequeños */
@media (max-width: 360px) {
    .planes-section {
        padding: 40px 4%;
    }

    .planes-header h2 {
        font-size: 24px;
    }

    .plan-card {
        padding: 24px 18px;
    }

    .plan-name {
        font-size: 19px;
    }

    .plan-price {
        font-size: 30px;
    }

    .old-price {
        font-size: 16px;
    }

    .currency-small {
        font-size: 10px;
    }

    .new-price {
        font-size: 30px;
    }

    .price-comparison {
        gap: 6px;
    }

    .plan-features li {
        font-size: 11px;
        padding: 8px 0;
    }

    .plan-cta {
        padding: 11px 20px;
        font-size: 13px;
    }
}

/* =================================================================
   TOGGLE Y TABLA DE COMPARACIÓN
   ================================================================= */

/* Botón de Comparación */
.comparison-toggle {
    display: flex;
    justify-content: center;
    margin: 50px auto 30px;
    padding: 0 20px;
}

.comparison-button {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px solid #cbd5e1;
    color: #475569;
    padding: 14px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.comparison-button:hover {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.comparison-button i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.comparison-button:hover i {
    transform: scale(1.1);
}

/* Contenedor de la Tabla de Comparación */
.comparison-table-container {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    margin: 30px auto 50px;
    padding: 0 20px;
    max-width: 1400px;
}

.comparison-table-container.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.comparison-table-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Tabla de Comparación */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.comparison-table thead {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.comparison-table thead th {
    padding: 18px 16px;
    font-weight: 600;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.comparison-table thead th:first-child {
    text-align: left;
    min-width: 200px;
}

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

.comparison-table tbody tr {
    transition: background 0.2s ease;
}

.comparison-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.6);
}

.comparison-table tbody tr:hover {
    background: rgba(219, 234, 254, 0.4);
}

.comparison-table tbody td {
    padding: 14px 16px;
    text-align: center;
    border-right: 1px solid rgba(226, 232, 240, 0.6);
    border-bottom: 1px solid rgba(226, 232, 240, 0.4);
    color: #334155;
}

.comparison-table tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #1e293b;
}

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

/* Columna Destacada (Standard) */
.comparison-table .highlight-column {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(59, 130, 246, 0.06));
    border-left: 2px solid #2563eb;
    border-right: 2px solid #2563eb;
    position: relative;
}

.comparison-table thead .highlight-column {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.comparison-table tbody tr:hover .highlight-column {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.08));
}

/* Iconos en tabla */
.comparison-table i {
    font-size: 18px;
}

/* Responsive - Tabla de Comparación */
@media (max-width: 1024px) {
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 800px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 12px 10px;
        font-size: 13px;
    }

    .comparison-table thead th:first-child {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .comparison-button {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }

    .comparison-table {
        min-width: 700px;
        font-size: 12px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 10px 8px;
    }

    .comparison-table i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .comparison-toggle {
        margin: 40px auto 20px;
    }

    .comparison-table-container {
        padding: 0 10px;
        margin: 20px auto 40px;
    }

    .comparison-table {
        min-width: 600px;
        font-size: 11px;
    }

    .comparison-table thead th:first-child {
        min-width: 120px;
    }

    .comparison-table thead th,
    .comparison-table tbody td {
        padding: 8px 6px;
    }
}