﻿.creditCardForm {
    max-width: 700px;
    background-color: #fff;
    margin-top: 0rem;
    margin-right: auto;
    margin-bottom: 1rem;
    margin-left: auto;
    overflow: hidden;
    color: #4c4e56;
    border-bottom-left-radius: 25px;
    border-bottom-right-radius: 25px;
    box-shadow: 0px 0px 5px rgba(100, 100, 100, 0.8);
    padding-bottom: 2em;
}

/* MAS Internet & TV - responsive brand refresh */
@font-face {
    font-family: "Ubuntu";
    src: url("../fonts/Ubuntu-Light.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Ubuntu";
    src: url("../fonts/Ubuntu-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --mas-primary: #0B77F9;
    --mas-primary-dark: #0039e4;
    --mas-secondary: #00c3ff;
    --mas-accent: #2BDCCE;
    --mas-danger: #d71920;
    --mas-text: #1a1b1e;
    --mas-muted: #606060;
    --mas-border: #dce6f2;
    --mas-surface: #ffffff;
    --mas-page: #f5f8fc;
    --mas-shadow: 0 12px 30px rgba(42, 67, 113, 0.12);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--mas-page);
    color: var(--mas-text);
    font-family: "Ubuntu", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.45;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--mas-primary);
}

.container-fluid {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px;
}

.creditCardForm {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 18px;
    padding: 24px;
    overflow: visible;
    color: var(--mas-text);
    background: var(--mas-surface);
    border: 1px solid rgba(11, 119, 249, 0.12);
    border-radius: 10px;
    box-shadow: var(--mas-shadow);
}

.heading {
    padding: 0;
    margin-bottom: 18px;
    text-align: center;
}

.logo img,
.heading img {
    max-width: 230px;
    height: auto;
}

h1,
h2,
h3,
h4,
label,
span,
tbody,
input,
select,
textarea,
button,
.btn {
    font-family: "Ubuntu", Arial, sans-serif;
}

h1,
h2 {
    margin: 0 0 16px;
    color: var(--mas-text);
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
}

h3 {
    font-size: 22px;
    line-height: 1.25;
}

h4 {
    color: var(--mas-text);
}

.creditCardForm .payment {
    display: block;
    padding: 0;
    font-size: 16px;
}

.creditCardForm .payment .form-group,
.creditCardForm .owner,
.creditCardForm .CVV,
.creditCardForm .DNI,
.creditCardForm #expiration-date,
.creditCardForm #expiration-date2,
.creditCardForm #credit_cards {
    float: none;
    width: 100%;
    margin-right: 0;
}

.creditCardForm .payment .form-group {
    margin-bottom: 16px;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    min-height: 44px;
    width: 100%;
    border: 1px solid var(--mas-border);
    border-radius: 6px;
    background: #fff;
    color: var(--mas-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
    box-shadow: none;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus {
    border-color: var(--mas-primary);
    outline: 3px solid rgba(11, 119, 249, 0.18);
    box-shadow: none;
}

.btn,
input[type="submit"],
input[type="button"],
.btn-primary {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--mas-primary);
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    white-space: normal;
    box-shadow: 0 8px 18px rgba(11, 119, 249, 0.22);
    cursor: pointer;
}

.btn:hover,
.btn:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-primary:hover,
.btn-primary:focus {
    background: var(--mas-primary-dark);
    color: #fff;
}

table {
    max-width: 100%;
}

.table-responsive,
.gvclass {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table > thead > tr > th,
.table > tbody > tr > td,
.width200 th,
.rwd_auto th,
.width200 td,
.rwd_auto td {
    vertical-align: middle;
    border-color: var(--mas-border);
}

.table > thead > tr > th,
.width200 th,
.rwd_auto th {
    background: #eef6ff;
    color: var(--mas-text);
    font-weight: 700;
}

#imgMasRegion {
    max-width: 100%;
    height: auto;
}

.condiciones {
    color: var(--mas-muted);
}

@media (min-width: 700px) {
    .creditCardForm .owner {
        float: left;
        width: calc(65% - 10px);
        margin-right: 10px;
    }

    .creditCardForm .CVV,
    .creditCardForm #expiration-date,
    .creditCardForm #expiration-date2 {
        float: left;
        width: 35%;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 14px 10px;
    }

    .creditCardForm {
        max-width: 100%;
        margin: 0 auto 14px;
        padding: 18px 14px;
        border-radius: 8px;
    }

    .logo img,
    .heading img {
        max-width: 190px;
    }

    h1,
    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4,
    form label,
    .leyenda,
    .condiciones,
    span {
        font-size: 16px !important;
    }

    .btn,
    input,
    select,
    textarea,
    input[type="submit"],
    input[type="button"],
    input[type="text"],
    input[type="email"],
    .form-control {
        font-size: 16px !important;
    }

    .btn,
    input[type="submit"],
    input[type="button"] {
        width: 100%;
        padding: 12px 14px;
    }

    .lblCodSeguridad,
    .codigocontrol {
        width: 100%;
    }
}

/* Full-site mobile alignment and legibility audit */
body > form,
form#form1,
form#Form1 {
    width: 100%;
}

body > form > div,
.container-fluid,
.container-form,
.mm-sistema,
.payment,
.heading,
.logo,
.logo-container,
.condiciones,
#lblDescripcionMarca,
[id$="lblDescripcionMarca"] {
    margin-left: auto;
    margin-right: auto;
}

.container-form,
.creditCardForm,
.wrapper,
.mm-col2 {
    max-width: min(100%, 960px);
}

.payment,
.wrapper,
.container-form {
    width: 100%;
}

.payment::after,
.creditCardForm::after,
.wrapper::after {
    content: "";
    display: table;
    clear: both;
}

.logo img,
.logo-container img,
.heading img,
.mm-logo img {
    display: inline-block;
    max-width: min(240px, 72vw);
}

#imgMasRegion,
.factura-img {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
}

.condiciones,
#lblDescripcionMarca,
[id$="lblDescripcionMarca"],
h3[style*="text-align: center"],
h4[style*="text-align: center"] {
    display: block;
    width: 100%;
    text-align: center !important;
}

@media (max-width: 768px) {
    body {
        min-width: 0;
    }

    body > form > div,
    .container-fluid,
    .container-form,
    .mm-sistema {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .creditCardForm,
    .container-form,
    .wrapper,
    .mm-col2 {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .payment,
    .heading,
    .logo,
    .logo-container {
        text-align: center !important;
    }

    .payment .form-group,
    .creditCardForm .payment .form-group,
    .owner,
    .CVV,
    .DNI,
    #expiration-date,
    #expiration-date2,
    #credit_cards {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: left;
    }

    label {
        display: block;
        text-align: left;
    }

    input,
    select,
    textarea,
    .form-control,
    .ddlServicios,
    .ddlCantidadDias,
    .ddlFechaVto,
    .ddlDNI,
    .ddlCuotas {
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
    }

    .btn,
    button,
    input[type="submit"],
    input[type="button"],
    .btn-primary,
    .btn-lg,
    .btn-block,
    a.btn {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-height: 48px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }

    table,
    .table,
    .gvclass,
    .rwd,
    .debt-table {
        width: 100% !important;
        max-width: 100% !important;
    }

    .gvclass,
    .rwd,
    .debt-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table > thead > tr > th,
    .table > tbody > tr > td,
    .width200 th,
    .width200 td,
    .rwd_auto th,
    .rwd_auto td {
        font-size: 14px !important;
        line-height: 1.35 !important;
        text-align: center !important;
        vertical-align: middle !important;
    }

    [style*="padding-left:2em"],
    [style*="padding-left: 2em"],
    [style*="padding-left:1em"],
    [style*="padding-left: 1em"],
    [style*="padding-right:1em"],
    [style*="padding-right: 1em"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .comboServiciosCable,
    .comboServiciosInternet,
    .divCantidadDias,
    .divSubTotal,
    .divTotal {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }

    .chkPacks input {
        width: auto !important;
        min-height: auto !important;
        transform: scale(1.25) !important;
        margin-right: 8px !important;
    }

    .chkPacks label {
        display: inline !important;
        padding-left: 6px !important;
        text-align: left;
    }

    p,
    .leyenda,
    .advertencia,
    .condiciones {
        line-height: 1.45 !important;
    }
}

@media (max-width: 480px) {
    .container-fluid {
        padding: 10px 8px;
    }

    .creditCardForm {
        padding: 16px 12px;
        box-shadow: 0 8px 20px rgba(42, 67, 113, 0.1);
    }

    .table > thead > tr > th,
    .table > tbody > tr > td {
        padding: 8px 6px;
        font-size: 14px;
    }
}

.logo {
    text-align: center;
}

.creditCardForm label {
    width: 100%;
    margin-bottom: 10px;
}

.creditCardForm .heading h1 {
    text-align: center;
    font-family: "Ubuntu", sans-serif;
    color: #4c4e56;
}

.creditCardForm .payment {
    font-size: 18px;
    padding: 1em;
    position: relative;
}

    .creditCardForm .payment .form-group {
        float: left;
        margin-bottom: 15px;
    }

    .creditCardForm .payment .form-control {
        line-height: 40px;
        height: auto;
        padding: 0 16px;
    }

.creditCardForm .owner {
    width: 63%;
    margin-right: 10px;
}

.creditCardForm .CVV {
    width: 30%;
    float: left;
}

.creditCardForm CUOTAS {
    width: 100%;
    float: left;
}

.cuotas {
    width: 100%;
    float: left;
}

.codigocontrol {
    line-height: 40px;
    float: left;
    height: auto;
    width: 7rem;
    padding: 0 16px;
}

.creditCardForm .DNI {
    width: 51%;
}

.creditCardForm .card-number-field {
    width: 100%;
}

.creditCardForm #expiration-date {
    width: 49%;
}

.creditCardForm #expiration-date2 {
    width: 38%;
}

.creditCardForm #credit_cards {
    width: 50%;
    margin-top: 25px;
    text-align: right;
}

.creditCardForm #pay-now {
    width: 100%;
    margin-top: 25px;
}

.creditCardForm .payment select {
    padding: 10px;
    margin-right: 15px;
}

.heading {
    padding-left: 1em;
    padding-top: 1em;
    align-content: center;
}

.transparent {
    opacity: 0.2;
}

/* Tablas */

.mm-grilla {
    padding: 0%;
}

.mm-grilla2 {
    padding: 0%;
    margin-left: 50%;
}

.btn {
    font-size: 20px;
}

h2 {
    font-size: 36px;
    margin: 0 0 10px 0
}

h4 {
    font-family: "Ubuntu", sans-serif;
    text-align: center;
    font-weight: 700;
}

body {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
}

h1, h2 {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-size: 35px;
    font-style: normal;
}

h4 {
    font-weight: 700;
}

input[type="submit"] {
    font-family: "Ubuntu", sans-serif;
    font-weight: 600;
    font-size: 20px;
    font-style: normal;
}

input[type="text"] {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    font-size: 16px;
    font-weight: 600;
}

span {
    font-family: "Ubuntu", sans-serif;
    font-weight: 700;
    font-style: normal;
}


tbody {
    font-family: "Ubuntu", sans-serif;
    font-style: normal;
    margin: 0px;
}

p {
    margin: 0 0 10px 0
}

table.width200, table.rwd_auto {
    border: 1px solid #ccc;
    width: 100%;
    margin: 0 0 0px 0
}

.width200 th, .rwd_auto th {
    background: #ccc;
    padding: 5px;
    text-align: center;
}

.width200 td, .rwd_auto td {
    border-bottom: 1px solid #ccc;
    padding: 5px;
    text-align: center
}

.width200 tr:last-child td, .rwd_auto tr:last-child td {
    border: 0
}

.rwd {
    width: 100%;
    overflow: auto;
}

    .rwd table.rwd_auto {
        width: auto;
        min-width: 100%
    }

.rwd_auto th, .rwd_auto td {
    white-space: nowrap;
}

.lblCodSeguridad {
    width: 80px;
}

@media (max-width: 650px) {
    .creditCardForm .owner,
    .creditCardForm .CVV,
    .creditCardForm #expiration-date,
    .creditCardForm #credit_cards {
        width: 100%;
    }

    .creditCardForm #credit_cards {
        text-align: left;
    }
}

@media (max-width: 1000px) {
    .btn {
        font-size: 50px;
    }

    form label {
        font-size: 30px;
    }

    h1 {
        font-size: 50px;
    }

    h2 {
        font-size: 50px;
    }

    .test {
        font-size: 50px;
    }

    .mm-col1 {
        width: 2%;
    }

    .mm-col2 {
        width: 96%;
    }

    .mm-col3 {
        width: 2%;
    }

    table.width200, .width200 thead, .width200 tbody, .width200 th, .width200 td, .width200 tr {
        display: block;
    }

        .width200 thead tr {
            position: absolute;
            top: -9999px;
            left: -9999px;
        }

    .width200 tr {
        border: 1px solid #ccc;
    }

    .width200 td {
        border: none;
        border-bottom: 1px solid #ccc;
        position: relative;
        padding-left: 50%;
        text-align: left
    }

        .width200 td:before {
            position: absolute;
            top: 6px;
            left: 6px;
            width: 45%;
            padding-right: 10px;
            white-space: nowrap;
        }

        .width200 td:nth-of-type(1):before {
            content: "Nombre";
        }

        .width200 td:nth-of-type(2):before {
            content: "Apellidos";
        }

        .width200 td:nth-of-type(3):before {
            content: "Cargo";
        }

        .width200 td:nth-of-type(4):before {
            content: "Twitter";
        }

        .width200 td:nth-of-type(5):before {
            content: "ID";
        }

    .descarto {
        display: none;
    }

    .fontsize {
        font-size: 10px
    }

    .btn {
        font-size: 40px;
    }

    input[type="submit"] {
        font-family: "Ubuntu", sans-serif;
        font-weight: 600;
        font-size: 40px !important;
        font-style: normal;
    }

    input[type="text"] {
        font-family: "Ubuntu", sans-serif;
        font-style: normal;
        font-size: 35px !important;
        font-weight: 600;
    }

    input {
        font-size: 35px !important;
    }

    h3 {
        font-size: 50px;
    }

    .lblCodSeguridad {
        width: 150px;
    }

    .creditCardForm {
        max-width: 99%;
        margin-left: 1em;
    }
}

/* Final mobile overrides keep legacy rules from enlarging controls on phones/tablets. */
@media (max-width: 1000px) {
    .btn,
    input,
    select,
    textarea,
    input[type="submit"],
    input[type="button"],
    input[type="text"],
    input[type="email"],
    .form-control {
        font-size: 16px !important;
    }

    .btn,
    input[type="submit"],
    input[type="button"] {
        min-height: 46px;
        padding: 12px 14px;
    }

    h1,
    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    h4,
    form label,
    .leyenda,
    .condiciones,
    span {
        font-size: 16px !important;
    }

    .creditCardForm {
        width: auto;
        max-width: none;
        margin: 0 10px 14px;
        padding: 18px 14px;
        border-radius: 8px;
    }

    .lblCodSeguridad,
    .codigocontrol {
        width: 100%;
    }
}

/* Modern MAS UI layer */
:root {
    --mas-radius-xs: 6px;
    --mas-radius-sm: 8px;
    --mas-radius-md: 10px;
    --mas-control-height: 48px;
    --mas-ease: 180ms ease;
}

body {
    min-height: 100vh;
    background:
        linear-gradient(180deg, rgba(11, 119, 249, 0.06), rgba(43, 220, 206, 0.04) 42%, rgba(245, 248, 252, 0) 100%),
        var(--mas-page);
    letter-spacing: 0;
}

.container-fluid {
    max-width: 1040px;
    padding-block: 28px;
}

.creditCardForm,
.wrapper,
.service {
    border: 1px solid rgba(11, 119, 249, 0.14) !important;
    border-top: 3px solid rgba(11, 119, 249, 0.28) !important;
    border-radius: var(--mas-radius-md) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 16px 36px rgba(42, 67, 113, 0.14) !important;
}

.creditCardForm {
    position: relative;
    overflow: hidden;
}

.heading,
.logo,
.logo-container {
    text-align: center;
}

.logo img,
.logo-container img,
.heading img {
    filter: drop-shadow(0 8px 16px rgba(42, 67, 113, 0.12));
}

h1,
h2,
h3 {
    color: var(--mas-text);
}

h1,
h2 {
    font-size: 30px !important;
}

h3 {
    font-size: 22px !important;
}

h4 {
    color: var(--mas-muted);
}

label {
    margin-bottom: 7px;
    color: var(--mas-text);
    font-weight: 700;
}

.form-group {
    margin-bottom: 18px !important;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
select,
textarea {
    min-height: var(--mas-control-height) !important;
    padding: 11px 14px !important;
    border: 1px solid var(--mas-border) !important;
    border-radius: var(--mas-radius-xs) !important;
    background-color: #fff !important;
    color: var(--mas-text) !important;
    transition: border-color var(--mas-ease), box-shadow var(--mas-ease), background-color var(--mas-ease);
}

.form-control:hover,
input:hover,
select:hover,
textarea:hover {
    border-color: rgba(11, 119, 249, 0.42) !important;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
    border-color: var(--mas-primary) !important;
    box-shadow: 0 0 0 4px rgba(11, 119, 249, 0.16) !important;
    outline: 0 !important;
}

.btn,
input[type="submit"],
input[type="button"],
.btn-primary {
    min-height: var(--mas-control-height) !important;
    padding: 12px 18px !important;
    border: 0 !important;
    border-radius: var(--mas-radius-xs) !important;
    background: linear-gradient(135deg, var(--mas-primary), var(--mas-primary-dark)) !important;
    color: #fff !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    transform: translateY(0);
    transition: transform var(--mas-ease), box-shadow var(--mas-ease), filter var(--mas-ease);
    box-shadow: 0 12px 24px rgba(11, 119, 249, 0.24) !important;
}

.btn:hover,
.btn:focus,
input[type="submit"]:hover,
input[type="button"]:hover,
.btn-primary:hover,
.btn-primary:focus {
    color: #fff !important;
    filter: brightness(1.03);
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(11, 119, 249, 0.28) !important;
}

.btn:active,
input[type="submit"]:active,
input[type="button"]:active {
    transform: translateY(0);
}

.gvclass,
.rwd {
    border: 1px solid var(--mas-border);
    border-radius: var(--mas-radius-sm);
    background: #fff;
}

.table,
table.width200,
table.rwd_auto {
    margin-bottom: 0;
    border: 0 !important;
}

.table > thead > tr > th,
.table > tbody > tr > td,
.width200 th,
.rwd_auto th,
.width200 td,
.rwd_auto td {
    padding: 12px 10px !important;
    border-color: var(--mas-border) !important;
}

.table > thead > tr > th,
.width200 th,
.rwd_auto th {
    background: #eef6ff !important;
    color: var(--mas-text) !important;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(11, 119, 249, 0.035) !important;
}

#divTotal,
.divTotal {
    margin-top: 18px;
    padding: 14px 16px !important;
    border-radius: var(--mas-radius-sm);
    background: rgba(11, 119, 249, 0.08);
    color: var(--mas-primary-dark) !important;
    text-align: center !important;
}

.leyenda,
.advertencia {
    padding: 10px 12px;
    border-radius: var(--mas-radius-xs);
    background: rgba(215, 25, 32, 0.08);
    color: var(--mas-danger) !important;
}

.field-validation-error {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(215, 25, 32, 0.24);
    border-radius: var(--mas-radius-xs);
    background: rgba(215, 25, 32, 0.08);
    color: var(--mas-danger) !important;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.field-validation-error::before {
    content: "!";
    display: inline-grid;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: var(--mas-danger);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.input-validation-error {
    border-color: rgba(215, 25, 32, 0.7) !important;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12) !important;
}

.condiciones {
    margin-top: 18px;
    color: var(--mas-muted);
}

.condiciones a,
.btn-imprimir {
    color: var(--mas-primary) !important;
    font-weight: 700;
    text-decoration: none !important;
}

.condiciones a:hover,
.btn-imprimir:hover {
    text-decoration: underline !important;
}

.prepago-form {
    max-width: 760px;
}

.prepago-wide {
    max-width: 1120px;
}

.prepago-panel {
    display: grid;
    gap: 18px;
    width: 100%;
}

.prepago-section {
    padding: 16px;
    border: 1px solid var(--mas-border);
    border-radius: var(--mas-radius-sm);
    background: #fff;
}

.prepago-section h4 {
    margin: 0 0 12px;
    color: var(--mas-text);
    font-size: 18px;
    font-weight: 800;
}

.prepago-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.prepago-option {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    align-items: center;
    min-height: 64px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--mas-border);
    border-radius: var(--mas-radius-xs);
    background: #f8fbff;
    cursor: pointer;
}

.prepago-option input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--mas-primary);
}

.prepago-option span {
    color: var(--mas-text);
    font-weight: 700;
}

.prepago-option strong {
    grid-column: 2;
    color: var(--mas-primary-dark);
    font-size: 14px;
}

.prepago-totals {
    display: grid;
    gap: 10px;
    justify-self: end;
    width: min(100%, 460px);
    padding: 14px;
    border-radius: var(--mas-radius-sm);
    background: rgba(11, 119, 249, 0.08);
}

.prepago-totals div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: var(--mas-text);
    font-size: 17px;
}

.prepago-totals strong,
.prepago-subtotal strong {
    color: var(--mas-primary-dark);
}

.prepago-total {
    padding-top: 10px;
    border-top: 1px solid rgba(11, 119, 249, 0.18);
    font-size: 22px !important;
    font-weight: 800;
}

.prepago-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 20px;
}

.prepago-list li {
    color: var(--mas-text);
    font-size: 17px;
}

.prepago-subtotal {
    margin-top: 12px;
    color: var(--mas-text);
    font-size: 17px;
    font-weight: 700;
}

.post-download-panel {
    display: grid;
    justify-items: center;
    gap: 16px;
    text-align: center;
}

.sorteo-card {
    max-width: 760px;
}

.sorteo-form {
    display: grid !important;
    gap: 18px;
}

.sorteo-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sorteo-choice {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin: 0;
    padding: 16px;
    border: 1px solid var(--mas-border);
    border-radius: var(--mas-radius-sm);
    background: #f8fbff;
    color: var(--mas-text);
    cursor: pointer;
}

.sorteo-choice input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--mas-primary);
}

.sorteo-choice span {
    font-size: 18px;
    font-weight: 800;
}

.sorteo-choice-link {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    text-decoration: none !important;
}

.sorteo-choice-link:hover,
.sorteo-choice-link:focus {
    color: var(--mas-text);
    text-decoration: none !important;
}

.sorteo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(11, 119, 249, 0.1);
    color: var(--mas-primary-dark);
    font-weight: 800;
}

.sorteo-success {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(11, 119, 249, 0.18);
    border-radius: var(--mas-radius-sm);
    background: rgba(11, 119, 249, 0.08);
    color: var(--mas-text);
    text-align: center;
}

.sorteo-success strong {
    color: var(--mas-primary-dark);
    font-size: 24px;
}

.sorteo-promo {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 20px;
    border: 1px solid rgba(11, 119, 249, 0.28);
    border-radius: 8px;
    background: rgba(232, 243, 255, 0.94);
    color: var(--mas-black);
    text-align: center;
}

.sorteo-promo-hidden {
    display: none;
}

.sorteo-promo strong {
    color: var(--mas-primary-dark);
    font-size: clamp(22px, 3vw, 30px);
}

.sorteo-promo span {
    font-size: clamp(17px, 2.2vw, 21px);
    line-height: 1.4;
}

.sorteo-promo .btn {
    justify-self: center;
    min-width: min(100%, 260px);
}

.sorteo-info {
    padding: 12px 14px;
    border: 1px solid rgba(11, 119, 249, 0.18);
    border-radius: var(--mas-radius-xs);
    background: rgba(11, 119, 249, 0.08);
    color: var(--mas-primary-dark);
    font-weight: 800;
    text-align: center;
}

.sorteo-hp,
.sorteo-hidden {
    display: none !important;
}

.sorteo-world-page {
    width: 100vw;
    min-height: min(760px, calc(100vh - 92px));
    margin: -28px calc(50% - 50vw) 0;
    padding: clamp(28px, 6vw, 72px) 16px;
    background-size: cover;
    background:
        linear-gradient(90deg, rgba(0, 34, 120, 0.08), rgba(11, 119, 249, 0) 38%),
        url("../Images/SorteoMundial/bg.png?v=20260429-9") center / var(--sorteo-bg-size, cover) no-repeat,
        var(--mas-primary);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.sorteo-world-shell {
    position: relative;
    width: min(100%, 960px);
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.sorteo-world-card {
    position: relative;
    z-index: 2;
    width: min(100%, 650px) !important;
    max-width: 650px !important;
    margin: 0 !important;
    padding: clamp(28px, 4vw, 46px) clamp(22px, 4vw, 40px) !important;
    border: 0 !important;
    border-radius: var(--mas-radius-md) !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 26px 52px rgba(0, 26, 83, 0.28) !important;
}

.sorteo-world-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.sorteo-world-card .heading {
    gap: 12px;
    margin-bottom: 26px !important;
}

.sorteo-world-card .logo img {
    max-width: min(330px, 76vw);
}

.sorteo-world-card h2 {
    font-size: clamp(30px, 4vw, 38px) !important;
}

.sorteo-world-card .sorteo-form {
    gap: 28px;
}

.sorteo-world-card .sorteo-choice-grid {
    gap: 10px;
}

.sorteo-world-card .sorteo-choice {
    min-height: 88px;
    padding: 18px 20px;
    border-color: rgba(11, 119, 249, 0.24);
    background: #f8fbff;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.82);
    transition: border-color var(--mas-ease), box-shadow var(--mas-ease), transform var(--mas-ease);
}

.sorteo-world-card .sorteo-choice:hover,
.sorteo-world-card .sorteo-choice:focus-within {
    border-color: var(--mas-primary);
    box-shadow: 0 12px 24px rgba(11, 119, 249, 0.14);
    transform: translateY(-1px);
}

.sorteo-world-card .sorteo-choice span {
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 800;
    white-space: nowrap;
}

.sorteo-world-card .btn-block,
.sorteo-world-card .payment > input[type="submit"] {
    min-height: 62px !important;
    font-size: clamp(20px, 2.4vw, 26px) !important;
}

.sorteo-world-shell-registro {
    width: min(100%, 1080px);
    min-height: 620px;
}

.sorteo-world-shell-registro .sorteo-world-card {
    width: min(100%, 720px) !important;
    max-width: 720px !important;
}

.sorteo-terms-check {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid rgba(11, 119, 249, 0.18);
    border-radius: var(--mas-radius-xs);
    background: rgba(11, 119, 249, 0.06);
}

.sorteo-terms-check label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    cursor: pointer;
}

.sorteo-terms-check input[type="checkbox"] {
    width: 20px !important;
    min-height: 20px !important;
    height: 20px !important;
    margin: 2px 0 0;
    accent-color: var(--mas-primary);
}

.sorteo-terms-check span {
    color: var(--mas-text);
    font-size: 16px !important;
    font-weight: 700;
    line-height: 1.35;
}

.sorteo-terms-check a {
    color: var(--mas-primary-dark);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sorteo-terms-page {
    place-items: start center;
}

.sorteo-terms-shell {
    width: min(100%, 980px);
    min-height: auto;
}

.sorteo-terms-card {
    width: 100% !important;
    max-width: 980px !important;
}

.sorteo-terms-section {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(11, 119, 249, 0.14);
}

.sorteo-terms-section:first-of-type {
    margin-top: 0;
}

.sorteo-terms-section h3,
.sorteo-terms-section h4,
.sorteo-terms-section p {
    margin: 0 !important;
}

.sorteo-terms-section h3 {
    color: var(--mas-primary-dark);
    font-size: 22px !important;
    font-weight: 800;
}

.sorteo-terms-section h4 {
    margin-top: 8px !important;
    color: var(--mas-text);
    font-size: 18px !important;
    font-weight: 800;
    text-align: left;
}

.sorteo-terms-section p {
    color: var(--mas-text);
    font-size: 16px;
    line-height: 1.55;
}

.sorteo-terms-note {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(11, 119, 249, 0.18);
    border-radius: var(--mas-radius-xs);
    background: rgba(11, 119, 249, 0.08);
}

.sorteo-terms-note strong {
    color: var(--mas-primary-dark);
    font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 12px 8px;
    }

    .creditCardForm,
    .wrapper {
        margin-inline: 0 !important;
        padding: 16px 12px !important;
    }

    h1,
    h2 {
        font-size: 24px !important;
    }

    h3 {
        font-size: 20px !important;
    }

    .form-control,
    input,
    select,
    textarea,
    .btn,
    input[type="submit"],
    input[type="button"] {
        font-size: 16px !important;
    }

    .prepago-totals {
        justify-self: stretch;
    }

    .prepago-totals div {
        display: grid;
        gap: 4px;
    }
}

/* Final readability pass: spacing, hierarchy and key payment emphasis. */
.mvc-shell {
    display: grid;
    gap: 18px;
}

.creditCardForm {
    padding: clamp(20px, 4vw, 34px) !important;
}

.creditCardForm .heading {
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-bottom: clamp(24px, 4vw, 36px) !important;
    padding: 0 !important;
}

.creditCardForm .heading .logo,
.creditCardForm .heading .logo-container {
    margin: 0 !important;
}

.creditCardForm .heading h1,
.creditCardForm .heading h2,
.creditCardForm .heading h3 {
    max-width: 900px;
    margin: 0 !important;
    color: var(--mas-text) !important;
    font-weight: 800 !important;
    text-align: center !important;
}

.creditCardForm .payment {
    display: grid !important;
    gap: 22px;
    padding: 0 !important;
}

.creditCardForm .payment .form-group {
    margin-bottom: 0 !important;
}

.debt-table,
.gvclass {
    margin-bottom: 0 !important;
}

#divTotal,
.divTotal,
.prepago-total {
    margin-top: 6px !important;
    color: var(--mas-primary-dark) !important;
    font-size: clamp(22px, 4vw, 30px) !important;
    font-weight: 800 !important;
}

#divTotal strong,
.divTotal strong,
.prepago-total strong {
    font-weight: 800 !important;
}

.debt-actions {
    display: flex !important;
    justify-content: center;
    margin-top: 10px !important;
}

.debt-actions .btn,
.debt-actions input[type="submit"] {
    width: min(100%, 320px) !important;
}

.btn-block,
.payment > input[type="submit"] {
    margin-top: 4px !important;
}

.advertencia,
.leyenda,
.condiciones {
    font-weight: 700;
    text-align: center;
}

#imgMasRegion,
.factura-img {
    margin-top: 24px !important;
}

.consulta-card {
    max-width: 760px !important;
}

.consulta-form {
    width: min(100%, 560px) !important;
    margin-inline: auto !important;
}

.consulta-card .heading {
    margin-bottom: 26px !important;
}

.consulta-card .logo img {
    max-width: min(300px, 76vw);
}

.consulta-card .factura-img {
    width: min(100%, 560px) !important;
    max-height: 360px;
    object-fit: contain;
}

.consulta-card .advertencia,
.consulta-card .condiciones {
    width: min(100%, 620px);
    margin-inline: auto;
}

.mercado-pago-login-card {
    width: min(100%, 640px) !important;
    max-width: 640px !important;
}

.mercado-pago-login-card .heading {
    gap: 12px !important;
    margin-bottom: 20px !important;
}

.mercado-pago-login-card .logo img {
    max-width: min(250px, 70vw);
}

.mercado-pago-login-card .heading h2 {
    font-size: clamp(24px, 5vw, 32px) !important;
}

.mercado-pago-login-card .consulta-form {
    width: min(100%, 480px) !important;
    gap: 16px !important;
}

.mercado-pago-login-card .factura-img {
    width: min(100%, 460px) !important;
    max-height: 260px;
}

.autogestion-card {
    width: min(100%, 760px) !important;
    max-width: 760px !important;
}

.autogestion-card .heading {
    gap: 12px !important;
    margin-bottom: 22px !important;
}

.autogestion-cliente {
    display: grid;
    gap: 3px;
    color: var(--mas-blue-700);
    font-size: 18px;
    font-weight: 700;
    margin: -4px 0 0;
}

.autogestion-cliente strong {
    color: var(--mas-black);
    font-size: 20px;
    font-weight: 800;
}

.autogestion-actions {
    display: grid;
    gap: 16px;
    width: min(100%, 560px);
    margin: 0 auto;
}

.autogestion-action {
    align-items: flex-start;
    background: rgba(232, 243, 255, 0.88);
    border: 1px solid rgba(0, 126, 255, 0.28);
    border-radius: 8px;
    color: var(--mas-black);
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    text-align: left;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.autogestion-action:hover,
.autogestion-action:focus {
    border-color: var(--mas-blue);
    box-shadow: 0 16px 34px rgba(0, 126, 255, 0.16);
    color: var(--mas-black);
    text-decoration: none;
    transform: translateY(-1px);
}

.autogestion-action strong {
    color: var(--mas-blue-700);
    font-size: 22px;
}

.autogestion-action span {
    color: #334155;
    font-size: 16px;
    line-height: 1.35;
}

.autogestion-salir {
    display: inline-block;
    margin-top: 22px;
}

.leyenda-ok {
    background: rgba(0, 126, 255, 0.10);
    border-color: rgba(0, 126, 255, 0.22);
    color: var(--mas-blue-700);
}

.consulta-embedded-mobile,
.consulta-embedded-mobile body {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    overflow-x: hidden !important;
}

.consulta-embedded-mobile .mvc-shell {
    width: 100vw !important;
    max-width: none !important;
    margin: 0 auto !important;
    padding: clamp(12px, 3vw, 28px) !important;
    justify-items: center;
}

.consulta-embedded-mobile .consulta-card {
    width: min(100%, 860px) !important;
    max-width: 860px !important;
    margin: 0 auto 18px !important;
    padding: clamp(20px, 4vw, 42px) clamp(18px, 5vw, 56px) !important;
}

.consulta-embedded-mobile .consulta-card .logo img {
    max-width: min(360px, 76vw) !important;
}

.consulta-embedded-mobile .consulta-card .heading h2 {
    font-size: clamp(32px, 6vw, 42px) !important;
}

.consulta-embedded-mobile .consulta-card label {
    font-size: clamp(20px, 3.8vw, 26px) !important;
}

.consulta-embedded-mobile .consulta-card .form-control,
.consulta-embedded-mobile .consulta-card input[type="text"] {
    min-height: clamp(58px, 9vw, 80px) !important;
    font-size: clamp(20px, 4vw, 26px) !important;
}

.consulta-embedded-mobile .consulta-card .btn-block,
.consulta-embedded-mobile .consulta-card .payment > input[type="submit"] {
    min-height: clamp(60px, 9vw, 76px) !important;
    font-size: clamp(21px, 4vw, 28px) !important;
}

.consulta-embedded-mobile .consulta-card .factura-img {
    width: min(100%, 650px) !important;
    max-height: 360px;
}

.consulta-embedded-mobile .consulta-card .advertencia,
.consulta-embedded-mobile .consulta-card .condiciones,
.consulta-embedded-mobile .mvc-footer {
    font-size: clamp(18px, 3.4vw, 22px) !important;
    line-height: 1.45 !important;
}

.consulta-embedded-mobile .autogestion-actions {
    width: 100%;
    gap: clamp(14px, 3vw, 20px);
}

.consulta-embedded-mobile .autogestion-action {
    padding: clamp(18px, 4vw, 26px);
}

.consulta-embedded-mobile .autogestion-action strong {
    font-size: clamp(24px, 4.4vw, 30px);
}

.consulta-embedded-mobile .autogestion-action span,
.consulta-embedded-mobile .autogestion-cliente {
    font-size: clamp(18px, 3.4vw, 22px);
}

.consulta-embedded-mobile .autogestion-cliente strong {
    font-size: clamp(20px, 3.8vw, 24px);
}

@media (max-width: 768px) {
    .creditCardForm .heading {
        gap: 14px;
        margin-bottom: 24px !important;
    }

    .creditCardForm .payment {
        gap: 18px;
    }

    .debt-actions .btn,
    .debt-actions input[type="submit"] {
        width: 100% !important;
    }

    .consulta-card {
        padding: 18px 12px !important;
    }

    .consulta-card .heading {
        gap: 12px;
        margin-bottom: 20px !important;
    }

    .consulta-card .logo img {
        max-width: min(240px, 74vw);
    }

    .consulta-card .heading h2 {
        font-size: 24px !important;
    }

    .consulta-form {
        gap: 14px !important;
        width: 100% !important;
    }

    .consulta-card .factura-img {
        margin-top: 18px !important;
        max-height: 300px;
    }

    .consulta-card .advertencia,
    .consulta-card .condiciones {
        font-size: 15px !important;
        line-height: 1.45 !important;
    }

    .mercado-pago-login-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 14px 10px !important;
    }

    .mercado-pago-login-card .heading {
        margin-bottom: 16px !important;
    }

    .mercado-pago-login-card .logo img {
        max-width: min(210px, 68vw);
    }

    .mercado-pago-login-card .heading h2 {
        font-size: 22px !important;
    }

    .mercado-pago-login-card .factura-img {
        width: min(100%, 340px) !important;
        max-height: 220px;
    }

    .mercado-pago-login-card .form-control,
    .mercado-pago-login-card input,
    .mercado-pago-login-card .btn {
        min-height: 46px !important;
    }

    .mercado-pago-login-card .advertencia,
    .mercado-pago-login-card .condiciones {
        margin-top: 12px !important;
    }

    .mercado-pago-login-card .btn-block,
    .mercado-pago-login-card .payment > input[type="submit"] {
        min-height: 48px !important;
        font-size: 17px !important;
    }

    .sorteo-choice-grid {
        grid-template-columns: 1fr;
    }

    .sorteo-world-page {
        --sorteo-bg-size: max(100vw, 1350px) auto;
        min-height: auto;
        margin-top: -12px;
        padding: 22px 10px;
        background-position: 62% top;
        place-items: start center;
    }

    .sorteo-world-shell,
    .sorteo-world-shell-registro {
        width: 100%;
        min-height: auto;
        display: block;
    }

    .sorteo-world-card,
    .sorteo-world-shell-registro .sorteo-world-card {
        width: 100% !important;
        max-width: 100% !important;
        padding: 22px 14px !important;
        border-radius: var(--mas-radius-sm) !important;
    }

    .sorteo-world-card .logo img {
        max-width: min(260px, 78vw);
    }

    .sorteo-world-card h2 {
        font-size: 28px !important;
    }

    .sorteo-world-card .sorteo-form {
        gap: 18px;
    }

    .sorteo-world-card .sorteo-choice {
        min-height: 68px;
        padding: 14px;
    }

    .sorteo-world-card .sorteo-choice span {
        font-size: 20px !important;
    }

    .sorteo-world-card .btn-block,
    .sorteo-world-card .payment > input[type="submit"] {
        min-height: 52px !important;
        font-size: 18px !important;
    }

    .sorteo-terms-check {
        padding: 12px;
    }

    .sorteo-terms-section h3 {
        font-size: 20px !important;
    }

}
