/* =============================================
   tiers.css — Pagina de planes y precios
   minohub · Business Manager
   Estilo Stripe/Linear pricing — tabla unica
   ============================================= */

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f8fafc;
    color: #0f172a;
    -webkit-font-smoothing: antialiased;
}

/* ── Header ──────────────────────────────────── */
.tiers-header {
    background: linear-gradient(135deg, #0c1f3d 0%, #0a4a6e 50%, #0d9488 100%);
    padding: .6rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tiers-header-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.tiers-header-icon {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, .18);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.tiers-header-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.4px;
}

.btn-back-login {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem 1rem;
    background: rgba(255, 255, 255, .12);
    border: 1.5px solid rgba(255, 255, 255, .3);
    border-radius: 40px;
    font-size: .82rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.btn-back-login:hover {
    background: rgba(255, 255, 255, .22);
    border-color: rgba(255, 255, 255, .55);
    color: #fff;
}

/* ── Hero (compacto, una sola fila) ──────────── */
.tiers-hero {
    text-align: center;
    padding: 1.25rem 1rem .75rem;
}

.tiers-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: #e0f2fe;
    color: #0369a1;
    border-radius: 40px;
    padding: .25rem .75rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: .5rem;
}

.tiers-hero h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.4px;
    margin: 0 0 .3rem;
    line-height: 1.3;
}

.tiers-hero h1 span {
    background: linear-gradient(135deg, #0a6ebd, #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tiers-hero p {
    font-size: .84rem;
    color: #64748b;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.45;
}

/* ── Tabla comparativa ───────────────────────── */
.comparison-section {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.comparison-table-wrap {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
}

/* Encabezado sticky */
.comparison-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.comparison-table thead tr {
    background: #fff;
    border-bottom: 2px solid #e2e8f0;
}

.comparison-table th {
    padding: 1rem .75rem .85rem;
    text-align: center;
    vertical-align: bottom;
    font-weight: 400;
}

.comparison-feature-col {
    width: 220px;
    min-width: 170px;
}

.comparison-plan-col {
    width: auto;
    min-width: 128px;
}

.comparison-plan-name {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .2rem;
}

.comparison-plan-price {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.5px;
    margin-bottom: .1rem;
    white-space: nowrap;
}

/* Nota de moneda bajo el precio */
.comparison-plan-note {
    font-size: .62rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: .5rem;
    white-space: nowrap;
}

/* Prefijo opcional del precio ("Desde"), en linea para no agregar altura */
.comparison-plan-price .comparison-plan-prefix {
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: 0;
    color: #64748b;
    margin-right: .25rem;
    vertical-align: middle;
}

/* Nota opcional bajo el precio ("+ $199 por sucursal adicional").
   Se renderiza en todas las columnas (vacia si el plan no tiene nota)
   para conservar la alineacion de precios y CTAs. */
.comparison-plan-extra {
    font-size: .64rem;
    font-weight: 600;
    line-height: 1.3;
    min-height: 1.3em;
    color: #0a6ebd;
    margin-bottom: .1rem;
    white-space: nowrap;
}

.comparison-plan-price span:last-child {
    font-size: .75rem;
    font-weight: 500;
    color: #94a3b8;
}

/* Columna del plan destacado */
.comparison-plan-featured {
    background: #f0f9ff;
    position: relative;
}

.comparison-plan-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0a6ebd, #0d9488);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .18rem .55rem;
    border-radius: 40px;
    margin-bottom: .3rem;
}

/* Botones CTA en encabezado */
.btn-cta {
    display: inline-block;
    padding: .35rem .85rem;
    border-radius: 7px;
    font-size: .72rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .18s, transform .15s, box-shadow .18s;
    cursor: pointer;
    border: none;
    white-space: nowrap;
}

.btn-cta:hover {
    opacity: .88;
    transform: translateY(-1px);
}

.btn-cta-outline {
    background: transparent;
    border: 1.5px solid #e2e8f0;
    color: #374151;
}

.btn-cta-outline:hover {
    border-color: #94a3b8;
    color: #0f172a;
    background: #f8fafc;
    opacity: 1;
}

.btn-cta-primary {
    background: linear-gradient(135deg, #0a6ebd, #0d9488);
    color: #fff;
    box-shadow: 0 2px 8px rgba(10, 110, 189, .2);
}

.btn-cta-primary:hover {
    color: #fff;
    box-shadow: 0 4px 14px rgba(10, 110, 189, .3);
}

.btn-cta-business {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124, 58, 237, .2);
}

.btn-cta-business:hover {
    color: #fff;
    box-shadow: 0 4px 14px rgba(124, 58, 237, .3);
}

/* Cuerpo de la tabla — compacto */
.comparison-table td {
    padding: .55rem .75rem;
    text-align: center;
    font-size: .84rem;
    color: #374151;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
    line-height: 1.3;
}

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

.comparison-feature-cell {
    text-align: left !important;
    font-weight: 500;
    color: #334155;
    display: flex;
    align-items: center;
    gap: .35rem;
}

.comparison-ml-icon {
    vertical-align: -2px;
}

/* Fondo de la columna destacada en body */
.comparison-col-featured {
    background: #f0f9ff;
}

/* Fila de grupo/categoria — compacta */
.comparison-group-row td {
    background: #f8fafc;
    text-align: left !important;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
    padding: .45rem .75rem;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-group-row td i {
    margin-right: .3rem;
    font-size: .78rem;
    color: #94a3b8;
}

/* Iconos check / x — compactos */
.comparison-yes {
    color: #059669;
    font-size: .9rem;
}

.comparison-no {
    color: #e2e8f0;
    font-size: .8rem;
}

/* ── Footer ──────────────────────────────────── */
.tiers-footer {
    text-align: center;
    padding: 1.5rem 1rem 2.5rem;
    border-top: 1px solid #e2e8f0;
}

.tiers-footer p {
    font-size: .82rem;
    color: #94a3b8;
    margin: 0;
}

/* ── Responsive ──────────────────────────────── */

/* Mobile */
@media (max-width: 768px) {
    .tiers-header {
        padding: 1rem 1.25rem;
    }

    .btn-back-login span {
        display: none;
    }

    .tiers-hero {
        padding: 1.75rem 1rem 1.25rem;
    }

    .tiers-hero h1 {
        font-size: 1.6rem;
    }

    .comparison-section {
        padding: 0 .75rem 2.5rem;
    }

    .comparison-table-wrap {
        border-radius: 12px;
    }

    /* Feature col sticky en mobile */
    .comparison-feature-col,
    .comparison-feature-cell {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #fff;
    }

    .comparison-group-row td {
        position: sticky;
        left: 0;
        z-index: 1;
    }

    .comparison-feature-col {
        min-width: 145px;
        width: 145px;
    }

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

    .comparison-plan-col {
        min-width: 110px;
    }

    .comparison-plan-price {
        font-size: 1.65rem;
    }

    .comparison-table td,
    .comparison-table th {
        padding: .45rem .55rem;
    }

    .comparison-table td {
        font-size: .8rem;
    }

    .comparison-group-row td {
        font-size: .68rem;
    }

    .btn-cta {
        font-size: .65rem;
        padding: .28rem .6rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .tiers-hero h1 {
        font-size: 1.4rem;
    }

    .tiers-hero p {
        font-size: .85rem;
    }

    .comparison-feature-col {
        min-width: 125px;
        width: 125px;
    }

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

    .comparison-plan-col {
        min-width: 95px;
    }

    .comparison-table td {
        font-size: .78rem;
        padding: .4rem .45rem;
    }

    .comparison-group-row td {
        font-size: .66rem;
        padding: .38rem .45rem;
    }

    .comparison-plan-name {
        font-size: .65rem;
    }

    .comparison-plan-price {
        font-size: 1.4rem;
    }

    .comparison-plan-extra {
        font-size: .58rem;
    }

    .comparison-plan-note {
        font-size: .56rem;
        margin-bottom: .35rem;
    }

    .btn-cta {
        font-size: .6rem;
        padding: .22rem .5rem;
    }
}
