.ma-modalidades {
    --ma-navy: #20344d;
    --ma-orange: #ff8242;
    --ma-orange-dark: #eb6f31;
    --ma-soft: #fff8f4;
    --ma-border: rgba(32, 52, 77, .14);
    --ma-muted: #667085;
    width: 100%;
}

.ma-modalidades * {
    box-sizing: border-box;
}

.ma-modalidades-heading {
    margin: 0 0 18px;
    color: var(--ma-navy);
    font-size: 27px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.015em;
}

/* Tarjeta principal */
.ma-modalidad-principal {
    position: relative;
    overflow: hidden;
    padding: 36px;
    border: 1px solid rgba(32, 52, 77, .18);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(255,130,66,.16), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff9f6 100%);
    box-shadow: 0 18px 40px rgba(32, 52, 77, .10);
    transition: transform .38s cubic-bezier(.22,.61,.36,1), box-shadow .38s cubic-bezier(.22,.61,.36,1), border-color .38s ease;
    will-change: transform;
}

.ma-modalidad-principal::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--ma-orange), #ffc29e);
}

.ma-modalidad-principal__urgency {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    border: 1px solid rgba(255,130,66,.22);
    border-radius: 999px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(8px);
    color: #a54a1b;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
    box-shadow: 0 8px 22px rgba(32,52,77,.08);
}

.ma-modalidad-principal__top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 26px;
    align-items: end;
    padding-top: 18px;
    margin-bottom: 20px;
}

.ma-modalidad-principal__title {
    margin: 0 0 10px;
    color: var(--ma-navy);
    font-size: 36px;
    line-height: 1.05;
    font-weight: 850;
    letter-spacing: -.025em;
}

.ma-modalidad-principal__description {
    max-width: 430px;
    margin: 0;
    color: var(--ma-muted);
    font-size: 17px;
    line-height: 1.6;
}

.ma-modalidad-principal__price {
    display: inline-flex;
    align-items: baseline;
    color: var(--ma-navy);
    font-size: 46px;
    line-height: 1;
    font-weight: 850;
    white-space: nowrap;
    letter-spacing: -.03em;
}

.ma-modalidad-principal__price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
}

.ma-modalidad-principal__payment-note {
    max-width: 240px;
    color: #a54a1b;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 750;
    text-align: right;
}

.ma-modalidad-principal__price del,
.ma-complemento__price del {
    opacity: .45;
    font-size: .7em;
}

.ma-modalidad-principal__button {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 17px 20px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ff9458 0%, var(--ma-orange) 100%);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 17px;
    line-height: 1.2;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(255,130,66,.22);
    transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.ma-modalidad-principal__button:hover,
.ma-modalidad-principal__button:focus {
    opacity: .95;
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(255,130,66,.26);
}

/* Encabezado complementos */
.ma-complementos-header {
    margin: 30px 0 16px;
}

.ma-complementos-header__eyebrow {
    color: var(--ma-navy);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -.01em;
}

.ma-complementos-header__text,
.ma-complementos-header__meta {
    color: var(--ma-muted);
    font-size: 14px;
    line-height: 1.55;
}

.ma-complementos-header__text {
    margin-top: 5px;
}

.ma-complementos-header__meta {
    margin-top: 2px;
    font-weight: 650;
}

.ma-complementos-list {
    display: grid;
    gap: 14px;
}

.ma-complemento {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 19px 21px;
    border: 1px solid var(--ma-border);
    border-radius: 14px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 20px rgba(32, 52, 77, .05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ma-complemento--bundle {
    background: linear-gradient(135deg, rgba(255,130,66,.06), #fff);
    border-color: rgba(255,130,66,.28);
}

.ma-complemento__content {
    min-width: 0;
}

.ma-complemento__title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.ma-complemento__title {
    margin: 0;
    color: var(--ma-navy);
    font-size: 18px;
    line-height: 1.25;
    font-weight: 790;
}

.ma-complemento__badge {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255,130,66,.12);
    color: #a84616;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ma-complemento__description {
    margin: 6px 0 0;
    color: var(--ma-muted);
    font-size: 14px;
    line-height: 1.5;
}

.ma-complemento__action {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 158px;
}

.ma-complemento__price {
    color: var(--ma-navy);
    font-size: 27px;
    line-height: 1.05;
    font-weight: 850;
    white-space: nowrap;
    text-align: center;
    letter-spacing: -.02em;
}

.ma-price-period {
    display: inline-block;
    margin-left: 4px;
    color: var(--ma-muted);
    font-size: .5em;
    line-height: 1;
    font-weight: 700;
    vertical-align: baseline;
}

.ma-complemento__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 126px;
    padding: 12px 16px;
    border: 1px solid rgba(32,52,77,.7);
    border-radius: 10px;
    background: #fff;
    color: var(--ma-navy) !important;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 800;
    transition: background .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}

.ma-modalidades .ma-complemento__button:hover,
.ma-modalidades .ma-complemento__button:focus,
.ma-modalidades .ma-complemento__button:active {
    background: var(--ma-navy) !important;
    border-color: var(--ma-navy) !important;
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
    transform: translateY(-1px);
}

.ma-modalidades .ma-complemento__button:hover *,
.ma-modalidades .ma-complemento__button:focus * {
    color: #fff !important;
}

.ma-modalidades-activas .ma-bloque-compra-original {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .ma-modalidad-principal:hover {
        transform: translateY(-2px);
        box-shadow: 0 22px 46px rgba(32, 52, 77, .12);
    }

    .ma-complemento:hover {
        transform: translateY(-3px);
        border-color: rgba(32, 52, 77, .24);
        box-shadow: 0 14px 28px rgba(32, 52, 77, .09);
    }

    .ma-complemento--bundle:hover {
        border-color: rgba(255, 130, 66, .48);
    }
}

@media (max-width: 767px) {
    .ma-modalidades-heading {
        font-size: 24px;
    }

    .ma-modalidad-principal {
        padding: 25px 22px;
    }

    .ma-modalidad-principal__urgency {
        position: static;
        margin: 0 0 12px auto;
        width: fit-content;
    }

    .ma-modalidad-principal__top {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 0;
    }

    .ma-modalidad-principal__title {
        font-size: 29px;
    }

    .ma-modalidad-principal__price {
        font-size: 38px;
    }

    .ma-modalidad-principal__price-wrap {
        align-items: flex-start;
    }

    .ma-modalidad-principal__payment-note {
        max-width: none;
        font-size: 12.5px;
        text-align: left;
    }

    .ma-complemento {
        align-items: flex-start;
    }
}

@media (max-width: 520px) {
    .ma-complemento {
        display: block;
    }

    .ma-complemento__action {
        margin-top: 12px;
        min-width: 0;
    }

    .ma-complemento__price {
        text-align: left;
    }
}
