/* ==========================================================================
   Paquetes de patrocinio 2026: Diamante, Oro, Plata y Bronce.
   Colores de nivel tomados de la matriz del brochure; los botones siguen
   en azul (patrocinio) para no confundirse con el dorado del registro.
   ========================================================================== */
.tier-diamante { --tier: #8f7dff; --tier-bg: #2f2a8f; }
.tier-oro      { --tier: #f5b335; --tier-bg: #b8790c; }
.tier-plata    { --tier: #c9ced6; --tier-bg: #6f7782; }
.tier-bronce   { --tier: #e0814f; --tier-bg: #9c3d14; }

/* Tarjetas resumen -------------------------------------------------------- */
.m45-tier {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 36px 28px 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--m45-line);
    border-top: 4px solid var(--tier);
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.m45-tier:hover {
    transform: translateY(-4px);
    border-color: var(--tier);
}

.m45-tier.is-featured {
    background: linear-gradient(180deg, rgba(143, 125, 255, 0.18), rgba(31, 122, 255, 0.05));
    box-shadow: 0 30px 80px rgba(80, 90, 255, 0.25);
}

.m45-tier-badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--tier-bg);
    color: #fff;
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.m45-tier-price {
    margin: 18px 0 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: clamp(2.2rem, 1.6rem + 1.4vw, 2.9rem);
    line-height: 1;
    letter-spacing: -1px;
    color: #fff;
}

.m45-tier ul {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.m45-tier li {
    position: relative;
    padding-left: 26px;
    color: #e6efff;
    font-size: 15px;
    line-height: 1.4;
}

.m45-tier li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(41, 196, 255, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2329c4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.m45-tier.is-featured .m45-pkg-btn {
    background: var(--m45-blue);
}

/* Tabla comparativa ------------------------------------------------------- */
.m45-compare-wrap {
    margin-top: 70px;
}

.m45-compare-title {
    color: #fff;
    text-align: center;
    font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
    font-weight: 700;
    margin-bottom: 24px;
}

.m45-compare-hint {
    color: #8aa3cf;
    font-size: 14px;
    text-align: center;
    margin-bottom: 12px;
}

.m45-compare-scroll {
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--m45-line);
    background: rgba(5, 13, 36, 0.7);
    -webkit-overflow-scrolling: touch;
}

.m45-compare {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.m45-compare thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 12px;
    background: var(--tier-bg, #0a1838);
    color: #fff;
    font-family: var(--heading-font);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: 14%;
}

.m45-compare thead th span {
    display: block;
    margin-top: 4px;
    font-size: 15px;
    letter-spacing: 0;
    opacity: 0.9;
}

.m45-compare thead th.m45-compare-benefit {
    width: 44%;
    text-align: left;
    background: #0a1838;
}

.m45-compare tbody th,
.m45-compare tbody td {
    padding: 12px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.m45-compare tbody th[scope="row"] {
    color: #e6efff;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    text-align: left;
}

.m45-compare tbody th small {
    color: #8aa3cf;
    font-size: 13px;
}

.m45-compare tbody td {
    text-align: center;
    color: #fff;
    font-weight: 700;
    font-size: 15px;
}

.m45-compare tbody tr:not(.m45-compare-phase):hover {
    background: rgba(31, 122, 255, 0.07);
}

.m45-compare td.y::before {
    content: "";
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(41, 196, 255, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2329c4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
    vertical-align: middle;
}

.m45-compare td.n::before {
    content: "—";
    color: rgba(255, 255, 255, 0.2);
    font-weight: 400;
}

.m45-compare-phase th {
    padding: 14px !important;
    background: rgba(31, 122, 255, 0.14);
    color: var(--m45-cyan);
    font-family: var(--heading-font);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: left;
}

.m45-compare-phase th i {
    font-size: 18px;
    vertical-align: -3px;
    margin-right: 6px;
}

/* En móvil, la columna de beneficio queda fija al deslizar */
@media (max-width: 991px) {
    .m45-compare tbody th[scope="row"],
    .m45-compare thead th.m45-compare-benefit {
        position: sticky;
        left: 0;
        z-index: 1;
        background: #08132f;
        min-width: 220px;
    }

    .m45-compare thead th.m45-compare-benefit {
        z-index: 3;
        background: #0a1838;
    }
}

@media (max-width: 767px) {
    .m45-compare {
        table-layout: fixed;
        width: 486px;
        min-width: 486px;
    }

    .m45-compare thead th {
        width: 84px;
    }

    .m45-compare tbody th[scope="row"],
    .m45-compare thead th.m45-compare-benefit {
        min-width: 0;
        width: 150px;
        max-width: 150px;
        font-size: 13px;
        padding: 10px;
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.35);
    }

    .m45-compare tbody th small {
        font-size: 11px;
    }

    .m45-compare thead th {
        padding: 12px 6px;
        font-size: 12px;
    }

    .m45-compare thead th span {
        font-size: 11px;
    }

    .m45-compare tbody td {
        padding: 10px 6px;
        font-size: 13px;
    }
}
