/**
 * WPS Dynamic Pricing & Table Stylesheet
 * Supports dynamic CSS variables configured from WP-Admin
 */

:root {
    --wps-primary: #296bab;
    --wps-primary-dark: #1b4b79;
    --wps-accent: #ff9800;
    --wps-btn-featured: #25D366;
    --wps-btn-featured-hover: #128C7E;
    --wps-card-bg: #ffffff;
    --wps-badge-popular: #10b981;
    --wps-badge-recommended: #f59e0b;
    --wps-badge-best-value: #296bab;
    --wps-text: #1e293b;
    --wps-muted: #64748b;
    --wps-border: #e2e8f0;
    --wps-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    --wps-shadow-hover: 0 12px 32px rgba(41, 107, 171, 0.16);
}

.wps-pricing-wrapper {
    width: 100%;
    max-width: 1240px;
    margin: 30px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--wps-text);
    box-sizing: border-box;
}

.wps-pricing-wrapper *,
.wps-pricing-wrapper *::before,
.wps-pricing-wrapper *::after {
    box-sizing: border-box;
}

/* --- AVISO PARA EL ADMINISTRADOR --- */
.wps-admin-notice-bar {
    width: 100%;
    background: #eff6ff;
    border: 1px dashed #3b82f6;
    color: #1e40af;
    font-size: 12.5px;
    padding: 6px 14px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* --- CONTROLES SUPERIORES (SWITCHER Y DIVISAS) --- */
.wps-pricing-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 25px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 1px solid var(--wps-border);
}

.wps-toggle-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.wps-toggle-label {
    font-size: 13px;
    color: var(--wps-muted);
    font-weight: 500;
}

.wps-switch-pills {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 30px;
}

.wps-pill-btn {
    border: none;
    background: transparent;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--wps-muted);
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wps-pill-btn.active {
    background: var(--wps-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(41, 107, 171, 0.3);
}

.wps-local-currency-dropdown {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wps-currency-select-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--wps-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wps-select-currency {
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    background: #ffffff;
    color: var(--wps-primary-dark);
    outline: none;
    cursor: pointer;
    transition: border-color 0.2s;
}

.wps-select-currency:focus {
    border-color: var(--wps-primary);
}

/* --- SELECTOR DE HOSTING (CON HOSTING vs SIN HOSTING) --- */
.wps-hosting-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 10px auto 26px auto;
    width: 100%;
}

.wps-hosting-switch-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 6px;
    border-radius: 40px;
    gap: 6px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    max-width: 100%;
}

.wps-hosting-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 30px;
    border: none;
    background: transparent;
    color: #475569;
    font-size: 14.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    white-space: nowrap;
}

.wps-hosting-tab:hover {
    color: var(--wps-primary);
}

.wps-hosting-tab.active {
    background: linear-gradient(135deg, var(--wps-primary) 0%, var(--wps-primary-dark) 100%);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(41, 107, 171, 0.3);
}

.wps-hosting-tab .wps-tab-emoji {
    font-size: 17px;
}

.wps-hosting-tab .wps-tab-badge {
    background: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2.5px 8px;
    border-radius: 12px;
    margin-left: 2px;
}

.wps-hosting-tab.active .wps-tab-badge {
    background: #ffffff;
    color: #059669;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.wps-hosting-hint-box {
    margin-top: 10px;
    font-size: 13.5px;
    color: #475569;
    text-align: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

/* --- GRID DE TARJETAS --- */
.wps-table-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 10px 4px 20px 4px;
    -webkit-overflow-scrolling: touch;
}

/* --- TABLA MATRIZ COMPARATIVA (COMPACTA) --- */
.wps-matrix-container {
    display: flex;
    gap: 8px;
    align-items: stretch;
    min-width: 960px;
    width: 100%;
}

.wps-matrix-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Columna de Captions (Izquierda) */
.wps-caption-col {
    flex: 0 0 200px;
    max-width: 220px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.wps-caption-header {
    background: linear-gradient(180deg, var(--wps-primary) 0%, var(--wps-primary-dark) 100%);
    min-height: 125px;
    height: 125px;
    max-height: 125px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border-radius: 11px 11px 0 0;
    box-sizing: border-box;
}

.wps-pricing-wrapper .wps-matrix-heading,
.wps-pricing-wrapper .wps-caption-header h3,
.wps-caption-header h3.wps-matrix-heading,
.wps-matrix-heading {
    font-size: 30px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0 !important;
    text-align: center !important;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

.wps-cell-caption {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    padding-left: 14px !important;
    padding-right: 8px !important;
    line-height: 1.25 !important;
    background: transparent !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-sizing: border-box !important;
}

.wps-caption-footer {
    background: linear-gradient(180deg, var(--wps-primary) 0%, var(--wps-primary-dark) 100%);
    border-radius: 0 0 11px 11px;
    min-height: 68px;
    height: 68px;
    max-height: 68px;
    box-sizing: border-box;
}

/* Columnas de Paquetes */
.wps-matrix-pkg-col {
    flex: 1 1 0;
    min-width: 145px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wps-matrix-pkg-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(41, 107, 171, 0.16);
}

.wps-matrix-header {
    background: linear-gradient(180deg, var(--wps-primary) 0%, var(--wps-primary-dark) 100%);
    padding: 16px 8px 12px;
    text-align: center;
    border-radius: 11px 11px 0 0;
    min-height: 125px;
    height: 125px;
    max-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    box-sizing: border-box;
}

.wps-matrix-header .wps-plan-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px 0;
}

.wps-matrix-header .wps-price-box {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
}

.wps-matrix-header .wps-currency-sym {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.wps-matrix-header .wps-price-number {
    color: #ffffff;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.wps-matrix-rows {
    flex-grow: 0;
    flex-shrink: 0;
}

.wps-matrix-cell {
    min-height: 54px !important;
    height: 54px !important;
    max-height: 54px !important;
    padding: 6px 8px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
    border-bottom: 1px solid #f1f5f9;
    box-sizing: border-box !important;
    overflow: hidden;
}

.wps-matrix-pkg-col .wps-matrix-cell:nth-child(odd) {
    background-color: #ffffff;
}

.wps-matrix-pkg-col .wps-matrix-cell:nth-child(even) {
    background-color: #f1f3f5;
}

.wps-matrix-cell .wps-cell-val {
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
}

.wps-check-svg {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    min-height: 20px !important;
    stroke: #22c55e !important;
    stroke-width: 3.5 !important;
    fill: none !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.wps-info-icon {
    font-size: 13px;
    margin-left: 4px;
    opacity: 0.8;
}

.wps-matrix-footer {
    background: linear-gradient(180deg, var(--wps-primary) 0%, var(--wps-primary-dark) 100%);
    padding: 12px 8px;
    border-radius: 0 0 11px 11px;
    text-align: center;
    min-height: 68px;
    height: 68px;
    max-height: 68px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wps-matrix-buy-btn {
    background: linear-gradient(180deg, #6ee7b7 0%, #10b981 100%);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 8px;
    width: 90%;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.wps-matrix-buy-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    color: #ffffff !important;
}

/* --- GRID DE TARJETAS (DISEÑO ALTERNO) --- */
.wps-pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(215px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.wps-pricing-card {
    background: var(--wps-card-bg);
    border: 1px solid var(--wps-border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: var(--wps-shadow);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
}

.wps-pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--wps-shadow-hover);
    border-color: var(--wps-primary);
}

.wps-card-featured {
    border: 2px solid var(--wps-primary);
    box-shadow: 0 8px 26px rgba(41, 107, 171, 0.18);
}

/* Badges */
.wps-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3.5px 10px;
    border-radius: 20px;
    color: #ffffff;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.wps-badge-popular {
    background: var(--wps-badge-popular);
}

.wps-badge-recommended {
    background: var(--wps-badge-recommended);
}

.wps-badge-best_value {
    background: var(--wps-badge-best-value);
}

/* Header */
.wps-card-header {
    padding: 26px 16px 16px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.wps-plan-title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--wps-text);
}

.wps-price-box {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 3px;
}

.wps-currency-sym {
    font-size: 24px;
    font-weight: 700;
    color: var(--wps-primary);
}

.wps-price-number {
    font-size: 40px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    transition: color 0.3s ease;
}

.wps-currency-code {
    font-size: 13px;
    font-weight: 600;
    color: var(--wps-muted);
    margin-left: 2px;
}

.wps-ref-price-container {
    margin-top: 8px;
    font-size: 12px;
    color: #059669;
    font-weight: 600;
    min-height: 18px;
}

/* Feature List (Alineación uniforme de filas) */
.wps-card-body {
    padding: 16px 14px;
    flex-grow: 1;
}

.wps-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wps-feat-row {
    min-height: 40px;
    padding: 6px 4px;
    font-size: 12.5px;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 1.3;
}

.wps-feature-list li:nth-child(even) {
    background-color: #fafbfd;
}

.wps-feat-label {
    color: #475569;
    text-align: left;
    max-width: 65%;
}

.wps-feat-value {
    color: #0f172a;
    font-weight: 600;
    text-align: right;
}

.wps-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e6f9ed;
    color: #10b981;
    font-weight: bold;
    font-size: 12px;
}

/* Footer & WhatsApp Button */
.wps-card-footer {
    padding: 16px;
    text-align: center;
    background: #ffffff;
}

.wps-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 16px;
    background: var(--wps-primary);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(41, 107, 171, 0.25);
}

.wps-buy-btn:hover {
    background: var(--wps-primary-dark);
    box-shadow: 0 6px 18px rgba(41, 107, 171, 0.35);
    transform: translateY(-2px);
    color: #ffffff !important;
}

.wps-card-featured .wps-buy-btn {
    background: var(--wps-btn-featured);
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.wps-card-featured .wps-buy-btn:hover {
    background: var(--wps-btn-featured-hover);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

/* --- AVISOS DE PAGO AL PIE DE LA TABLA --- */
.wps-pricing-disclaimer-wrapper {
    margin-top: 24px;
    width: 100%;
}

.wps-disclaimer-box {
    text-align: center;
    padding: 16px 22px;
    border-radius: 14px;
    line-height: 1.5;
}

.wps-disclaimer-general {
    background: #f8fafc;
    border: 1px solid var(--wps-border);
    color: var(--wps-muted);
    font-size: 13px;
}

.wps-disclaimer-vzla {
    background: #f0fdf4;
    border: 2px solid #86efac;
    color: #14532d;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.14);
    animation: wpsFadeIn 0.3s ease-out;
}

.wps-vzla-badge-tag {
    display: inline-block;
    background: #16a34a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wps-disclaimer-vzla .wps-disclaimer-text {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #15803d;
}

/* --- MARQUESINA CONTINUA INFINITA (DISEÑO ESTÉTICO MODERNO) --- */
.wps-marquee-banner-container {
    width: 100%;
    background: #ffffff;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 6px 10px;
    margin: 15px auto;
    position: relative;
    box-sizing: border-box;
}

.wps-marquee-fixed-badge {
    background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    z-index: 3;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
}

.wps-badge-pulse {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    animation: wpsPulse 1.5s infinite;
}

@keyframes wpsPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.wps-marquee-viewport {
    width: 100%;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0%, black 25px, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25px, black 95%, transparent 100%);
}

.wps-marquee-track {
    display: flex;
    width: max-content;
    animation: wpsInfiniteTicker 32s linear infinite;
    will-change: transform;
}

.wps-marquee-track:hover {
    animation-play-state: paused;
}

.wps-marquee-item {
    white-space: nowrap;
    padding: 0 25px;
    font-size: 15.5px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wps-ticker-tag {
    background: #eff6ff;
    color: var(--wps-primary);
    border: 1px solid #bfdbfe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2.5px 9px;
    border-radius: 20px;
    text-transform: uppercase;
}

.wps-ticker-price {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%);
    color: #854d0e;
    font-size: 16.5px;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(234, 179, 8, 0.25);
    display: inline-block;
}

.wps-ticker-desc {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
}

.wps-ticker-sep {
    color: #cbd5e1;
    margin: 0 15px;
    font-size: 14px;
}

@keyframes wpsInfiniteTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* --- ENVOLTORIO DE LA MARQUESINA (SIN BOTÓN, 100% LIMPIA) --- */
.wps-marquee-section-wrapper {
    width: 100%;
    margin: 10px auto 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wps-ticker-title {
    font-weight: 700;
    color: #0f172a;
    margin: 0 3px;
}

/* --- BOTÓN GANCHO / PRECIO MÁS ECONÓMICO --- */
.wps-economy-cta-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 15px auto;
    width: 100%;
}

.wps-economy-cta-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--wps-eco-btn-bg, #0f172a);
    color: var(--wps-eco-text-color, #ffffff) !important;
    text-decoration: none !important;
    padding: 12px 26px;
    border-radius: 50px;
    border: 1px solid var(--wps-eco-btn-border, rgba(255, 255, 255, 0.16));
    box-shadow: 0 6px 22px rgba(15, 23, 42, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: inherit;
    overflow: hidden;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.wps-economy-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    animation: wpsEconomyShimmer 4s infinite ease-in-out;
}

@keyframes wpsEconomyShimmer {
    0% { left: -100%; }
    30% { left: 150%; }
    100% { left: 150%; }
}

.wps-economy-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(41, 107, 171, 0.45), 0 0 25px rgba(56, 189, 248, 0.35);
    border-color: rgba(56, 189, 248, 0.5);
    color: var(--wps-eco-text-color, #ffffff) !important;
}

.wps-economy-cta-btn:active {
    transform: translateY(0) scale(0.99);
}

.wps-economy-badge {
    background: var(--wps-eco-badge-bg, linear-gradient(135deg, #ef4444 0%, #f97316 100%));
    color: var(--wps-eco-badge-color, #ffffff) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.wps-economy-pulse {
    width: 6px;
    height: 6px;
    background: var(--wps-eco-badge-color, #ffffff);
    border-radius: 50%;
    animation: wpsPulse 1.5s infinite;
}

.wps-economy-text {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--wps-eco-text-color, #f1f5f9) !important;
    letter-spacing: 0.2px;
}

.wps-economy-price-wrap {
    display: inline-flex;
    align-items: center;
}

.wps-economy-price,
.wps-economy-price.wps-dynamic-price {
    background: var(--wps-eco-price-bg, #facc15) !important;
    color: var(--wps-eco-price-color, #0f172a) !important;
    font-size: 18px;
    font-weight: 900;
    padding: 3px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
    display: inline-block;
    letter-spacing: -0.3px;
    transition: transform 0.2s ease;
}

.wps-economy-cta-btn:hover .wps-economy-price,
.wps-economy-cta-btn:hover .wps-economy-price.wps-dynamic-price {
    transform: scale(1.06);
    color: var(--wps-eco-price-color, #0f172a) !important;
}

.wps-economy-subtext {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--wps-eco-subtext-color, #38bdf8) !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: transform 0.25s ease;
}

.wps-economy-cta-btn:hover .wps-economy-subtext {
    transform: translateX(3px);
    opacity: 0.9;
}

/* --- VARIANTES DE DISEÑO DEL BOTÓN --- */

/* Variante 2: Compacto (Texto + Precio) */
.wps-eco-style-compact {
    padding: 8px 20px;
    gap: 10px;
    border-radius: 40px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.wps-eco-style-compact .wps-economy-text {
    font-size: 14px;
}
.wps-eco-style-compact .wps-economy-price {
    font-size: 16px;
    padding: 2px 10px;
}

/* Variante 3: Botón de Acción Directo (CTA) */
.wps-eco-style-cta {
    padding: 12px 26px;
    gap: 10px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.wps-eco-style-cta .wps-economy-text {
    font-size: 15px;
    font-weight: 700;
}
.wps-eco-style-cta .wps-economy-price {
    font-size: 16px;
    padding: 2px 9px;
    border-radius: 6px;
}

/* Variante 4: Insignia Mínima (Badge) */
.wps-eco-style-badge {
    padding: 5px 14px;
    gap: 6px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: inline-flex;
}
.wps-eco-style-badge .wps-economy-text {
    font-size: 12.5px;
    font-weight: 600;
}
.wps-eco-style-badge .wps-economy-price {
    font-size: 13.5px;
    padding: 1px 7px;
    border-radius: 10px;
}

/* Responsive móvil para el botón gancho */
@media (max-width: 767px) {
    .wps-economy-cta-btn {
        flex-wrap: wrap;
        padding: 10px 16px;
        gap: 8px;
        border-radius: 20px;
        justify-content: center;
        text-align: center;
        max-width: 92%;
    }
    .wps-economy-text {
        font-size: 13.5px;
    }
    .wps-economy-price {
        font-size: 16.5px;
        padding: 2px 10px;
    }
    .wps-economy-subtext {
        width: 100%;
        justify-content: center;
        margin-top: 2px;
        font-size: 13px;
    }
    .wps-eco-style-compact {
        padding: 7px 16px;
        flex-wrap: nowrap;
    }
    .wps-eco-style-cta {
        padding: 11px 20px;
        width: 100%;
        border-radius: 10px;
    }
}

/* --- BOTÓN FLOTANTE --- */
.wps-floating-switcher {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 99999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.wps-floating-switcher.pos-bottom-right {
    left: auto;
    right: 25px;
}

.wps-floating-btn {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
}

.wps-floating-btn:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
    border-color: var(--wps-primary);
    transform: translateY(-2px);
}

.wps-floating-modal {
    display: none;
    position: absolute;
    bottom: 50px;
    left: 0;
    width: 290px;
    background: #ffffff;
    border: 1px solid var(--wps-border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
    padding: 16px;
    z-index: 100000;
}

.wps-floating-switcher.pos-bottom-right .wps-floating-modal {
    left: auto;
    right: 0;
}

.wps-floating-modal.open {
    display: block;
    animation: wpsFadeIn 0.2s ease-out;
}

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

.wps-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.wps-modal-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--wps-primary-dark);
}

.wps-modal-close {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.wps-country-options {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 260px;
    overflow-y: auto;
}

.wps-country-options li button {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}

.wps-country-options li button:hover {
    background: #f1f5f9;
    color: var(--wps-primary);
}

.wps-country-options li button.selected {
    background: #eff6ff;
    color: var(--wps-primary);
    font-weight: 700;
}

/* Elementos dinámicos en línea */
.wps-dynamic-price {
    transition: all 0.25s ease;
    font-weight: inherit;
    color: inherit;
}

/* Ocultar elementos móviles en pantallas de escritorio */
.wps-mobile-pkg-tabs {
    display: none !important;
}
.wps-mobile-feature-label {
    display: none !important;
}

/* ======================================================= */
/* 📱 OPTIMIZACIÓN RESPONSIVE AVANZADA PARA CELULARES      */
/* ======================================================= */
@media (max-width: 768px) {
    /* Wrapper de pestañas móviles */
    .wps-mobile-pkg-tabs-wrapper {
        position: relative;
        width: 100%;
        margin: 10px 0 16px 0;
        overflow: hidden;
    }

    /* Pestañas con scroll suave y padding amplio a los lados para permitir que CUALQUIER pestaña quede exactamente en el centro */
    .wps-mobile-pkg-tabs {
        display: flex !important;
        gap: 8px;
        overflow-x: auto;
        padding: 6px calc(50vw - 50px) 12px calc(50vw - 50px) !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
        margin: 0;
        justify-content: flex-start;
    }
    .wps-mobile-pkg-tabs::-webkit-scrollbar {
        display: none;
    }
    .wps-mobile-tab-btn {
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        color: #475569;
        font-size: 13px;
        font-weight: 700;
        padding: 7px 14px;
        border-radius: 20px;
        cursor: pointer;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 5px;
        flex-shrink: 0;
        transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    }
    .wps-mobile-tab-btn.active {
        background: var(--wps-primary);
        border-color: var(--wps-primary);
        color: #ffffff;
        box-shadow: 0 3px 12px rgba(41, 107, 171, 0.35);
        transform: scale(1.05);
    }
    .wps-mobile-tab-btn .wps-tab-star {
        font-size: 12px;
    }

    /* Ocultar la columna fija de características en móviles (cada tarjeta ya tiene su descripción) */
    .wps-matrix-col.wps-caption-col {
        display: none !important;
    }

    /* Contenedor deslizable suave con snap-scrolling */
    .wps-table-scroll-container {
        padding: 4px 6px 20px 6px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .wps-matrix-container {
        min-width: unset !important;
        width: max-content;
        display: flex;
        gap: 16px;
        padding-right: 16px;
        align-items: stretch;
    }

    /* Tarjeta individual en móvil: amplia, visual y no contenida */
    .wps-matrix-pkg-col {
        width: 86vw !important;
        max-width: 380px !important;
        min-width: 290px !important;
        flex: 0 0 86vw !important;
        scroll-snap-align: center;
        border-radius: 18px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden;
    }

    /* Cabecera idéntica al screenshot de referencia */
    .wps-matrix-header {
        padding: 24px 16px 18px !important;
        min-height: unset !important;
        border-radius: 17px 17px 0 0 !important;
    }
    .wps-matrix-header .wps-plan-title {
        font-size: 26px !important;
        font-weight: 800 !important;
        margin: 0 0 8px 0 !important;
    }
    .wps-matrix-header .wps-price-number {
        font-size: 52px !important;
        font-weight: 800 !important;
    }
    .wps-matrix-header .wps-currency-sym {
        font-size: 28px !important;
        margin-top: 6px !important;
    }

    /* Celdas con texto descriptivo y check verde integrado */
    .wps-matrix-cell {
        min-height: 52px !important;
        padding: 12px 16px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 8px;
        font-size: 14.5px !important;
    }
    .wps-mobile-feature-label {
        display: inline !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        line-height: 1.35;
    }
    .wps-matrix-cell .wps-cell-val {
        font-size: 14.5px !important;
        font-weight: 700 !important;
        color: #1e293b !important;
    }

    /* Botón Comprar en móvil */
    .wps-matrix-footer {
        padding: 16px !important;
        min-height: 72px !important;
        border-radius: 0 0 17px 17px !important;
    }
    .wps-matrix-buy-btn {
        width: 100% !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        letter-spacing: 0.8px !important;
        box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4) !important;
    }

    /* Switcher de hosting en móvil */
    .wps-hosting-switch-tabs {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }
    .wps-hosting-tab {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 13.5px;
    }
}
