.etc-checkout {
    --etc-accent: #952767;
    --etc-primary: #5A2053;
    --etc-text: #333333;
    --etc-muted: #777777;
    --etc-bg: #f5f5f5;
    --etc-card: #ffffff;
    --etc-border: #e4e4e4;
    box-sizing: border-box;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 72px max(24px, calc((100vw - 1222px) / 2)) 64px;
    background: var(--etc-bg);
    color: var(--etc-text);
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0 !important;
}

.etc-checkout *,
.etc-checkout *::before,
.etc-checkout *::after {
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif !important;
    letter-spacing: 0 !important;
}

.etc-step {
    width: 100%;
    max-width: 1222px;
    margin: 0 auto;
}

.etc-step[hidden],
.etc-alert[hidden],
.etc-workers[hidden] {
    display: none !important;
}

.etc-step__header {
    margin-bottom: 48px;
    text-align: center;
}

.etc-step__header h2,
.etc-step__header h2 span {
    text-transform: none !important;
}

.etc-step__header h2 {
    margin: 0 0 20px;
    color: var(--etc-text);
    font-size: clamp(36px, 3.2vw, 48px);
    font-weight: 600;
    line-height: 1.2;
}

.etc-step__header h2 span {
    color: var(--etc-accent);
}

.etc-step__header p {
    margin: 0;
    color: var(--etc-text);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.etc-alert {
    width: 100%;
    max-width: 1222px;
    margin: 0 auto 28px;
    padding: 14px 18px;
    border: 1px solid var(--etc-accent);
    border-radius: 12px;
    background: #fff;
    color: var(--etc-primary);
    font-size: 14px;
    line-height: 1.4;
}

/* =========================================================
   PLANES
   ========================================================= */
.etc-plans-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 386px));
    justify-content: center;
    gap: 32px;
}

.etc-plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 386px;
    min-height: 421px;
    gap: 24px;
    padding: 48px 32px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--etc-card);
    color: var(--etc-text);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.etc-plan-card:hover {
    border-color: rgba(149, 39, 103, .45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.etc-plan-card.is-selected {
    border-color: var(--etc-accent);
    box-shadow: 0 10px 28px rgba(90, 32, 83, .10);
}

.etc-plan-card--featured {
    background: var(--etc-primary);
    color: #fff;
}

.etc-plan-card--featured:hover,
.etc-plan-card--featured.is-selected {
    border-color: var(--etc-accent);
}

.etc-plan-card__badge {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: -8px;
    padding: 8px 14px;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    text-transform: uppercase;
}

.etc-plan-card h3 {
    margin: 0;
    color: var(--etc-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.etc-plan-card__description {
    display: none !important;
    margin: -20px 0 0;
    color: var(--etc-text);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
}

.etc-plan-card__worker-rule {
    margin: -18px 0 0;
    color: var(--etc-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.etc-plan-card--featured h3,
.etc-plan-card--featured .etc-plan-card__description,
.etc-plan-card--featured .etc-plan-card__worker-rule,
.etc-plan-card--featured .etc-plan-card__benefits,
.etc-plan-card--featured .etc-plan-card__benefits li,
.etc-plan-card--featured .etc-plan-select {
    color: #fff !important;
}

.etc-plan-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: -8px;
}

.etc-plan-card__price strong {
    color: var(--etc-accent);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.etc-plan-card__price span {
    color: var(--etc-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.etc-plan-card--featured .etc-plan-card__price strong,
.etc-plan-card--featured .etc-plan-card__price span {
    color: #fff;
}

.etc-plan-card__benefits {
    display: grid;
    gap: 16px;
    margin: -8px 0 0;
    padding: 0 !important;
    padding-left: 0 !important;
    list-style: none;
}

.etc-plan-card__benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    color: var(--etc-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.etc-plan-card__benefit-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.etc-plan-card--featured .etc-plan-card__benefit-icon {
    filter: brightness(0) invert(1);
}

.etc-plan-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--etc-accent);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
    cursor: pointer;
}

.etc-plan-select input,
.etc-modality-card input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #333333;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.etc-plan-select input::before,
.etc-modality-card input::before {
    content: '';
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform .12s ease-in-out;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 22%, 80% 5%, 38% 70%);
}

.etc-plan-select input:checked,
.etc-modality-card input:checked {
    border-color: var(--etc-accent);
    background: var(--etc-accent);
}

.etc-plan-select input:checked::before,
.etc-modality-card input:checked::before {
    transform: scale(1);
}

.etc-plan-card--featured .etc-plan-select input:not(:checked) {
    border-color: #fff;
    background: transparent;
}

.etc-workers {
    margin-top: -12px;
    padding: 16px;
    border-radius: 10px;
    background: rgba(149, 39, 103, .06);
    cursor: default;
}

.etc-plan-card--featured .etc-workers {
    background: rgba(255, 255, 255, .12);
}

.etc-workers label {
    display: grid;
    gap: 8px;
    color: inherit;
    font-size: 14px;
    font-weight: 600;
}

.etc-workers__counter {
    display: inline-grid;
    grid-template-columns: 40px 84px 40px;
    align-items: stretch;
    width: max-content;
    overflow: hidden;
    border: 1px solid #333333;
    border-radius: 8px;
    background: #fff;
}

.etc-workers__button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: #fff;
    color: #333333;
    font-size: 24px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

.etc-workers__button:first-child {
    border-right: 1px solid #333333;
}

.etc-workers__button:last-child {
    border-left: 1px solid #333333;
}

.etc-workers__button:hover:not(:disabled) {
    background: var(--etc-accent);
    color: #fff;
}

.etc-workers__button:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.etc-workers input {
    width: 84px;
    height: 40px;
    padding: 8px;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: var(--etc-text);
    text-align: center;
    -moz-appearance: textfield;
}

.etc-workers input::-webkit-outer-spin-button,
.etc-workers input::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.etc-workers p {
    margin: 8px 0 0 !important;
    color: inherit;
    font-size: 13px;
    line-height: 1.4;
}

/* =========================================================
   CTA SELECCION
   ========================================================= */
.etc-selection-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    margin-top: 52px;
    padding: 0;
    border: 0;
    background: transparent;
}

.etc-selection-bar > strong {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--etc-accent);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.2;
}

.etc-selection-bar > strong::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background: url('https://espaciotributario.cl/wp-content/uploads/2026/09/library_books.svg') center / contain no-repeat;
}

/* El precio se mantiene calculado internamente y se mostrará en la siguiente vista. */
.etc-selection-bar__pricing {
    display: none;
}

.etc-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    background: var(--etc-primary);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, opacity .2s ease;
}

.etc-button:hover:not(:disabled) {
    background: var(--etc-accent);
}

.etc-button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.etc-button__icon {
    display: block;
    width: 15px;
    height: 15px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.etc-button__icon--forward {
    /* Flecha en su orientación original según diseño. */
}

.etc-button--secondary {
    background: #999;
}

/* La flecha del botón Volver apunta hacia atrás. La flecha forward conserva su orientación original. */
.etc-button--secondary .etc-button__icon {
    transform: rotate(180deg);
}

/* =========================================================
   FLUJO / STEPPER
   ========================================================= */
.etc-flow-header {
    width: 100%;
    text-transform: none !important;
    max-width: 900px;
    margin: 0 auto 52px;
    text-align: center;
}

.etc-flow-header h2 {
    margin: 0 0 44px;
    color: var(--etc-text);
    font-size: clamp(34px, 3vw, 44px);
    font-weight: 600;
    line-height: 1.2;
}

.etc-flow-header h2 span {
    color: var(--etc-accent);
}

.etc-progress {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
}

.etc-progress li {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 12px;
    color: var(--etc-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

.etc-progress li::before,
.etc-progress li::after {
    content: '';
    position: absolute;
    top: 18px;
    height: 2px;
    background: #8f8f8f;
    z-index: 0;
}

.etc-progress li::before {
    left: 0;
    right: 50%;
}

.etc-progress li::after {
    left: 50%;
    right: 0;
}

.etc-progress li:first-child::before,
.etc-progress li:last-child::after {
    display: none;
}

.etc-progress li.is-active::before,
.etc-progress li.is-complete::before,
.etc-progress li.is-complete::after,
.etc-progress li.is-complete + li.is-active::before {
    background: var(--etc-accent);
}

.etc-progress__marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 2px solid #8f8f8f;
    border-radius: 50%;
    background: var(--etc-bg);
}

.etc-progress li.is-active .etc-progress__marker {
    border-color: var(--etc-accent);
}

.etc-progress li.is-active .etc-progress__marker::after {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--etc-accent);
}

.etc-progress li.is-complete .etc-progress__marker {
    border-color: var(--etc-accent);
    background: var(--etc-accent);
}

.etc-progress li.is-complete .etc-progress__marker::after {
    content: '';
    display: block;
    width: 18px;
    height: 18px;
    background-image: url('https://espaciotributario.cl/wp-content/uploads/2026/09/check.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.etc-progress__label {
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.etc-section-heading {
    margin: 0 0 44px;
    text-transform: none !important;
    text-align: center;
}

.etc-section-heading h3 {
    margin: 0 0 8px;
    color: var(--etc-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
}

.etc-section-heading p {
    margin: 0;
    color: var(--etc-text);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}

/* =========================================================
   MODALIDAD
   ========================================================= */
.etc-modalities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.etc-modality-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 232px;
    gap: 20px;
    padding: 42px 32px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    color: var(--etc-text);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.etc-modality-card:hover {
    border-color: rgba(149, 39, 103, .45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
}

.etc-modality-card.is-selected {
    border-color: var(--etc-accent);
    box-shadow: 0 10px 28px rgba(90, 32, 83, .10);
}

.etc-modality-card__title {
    color: var(--etc-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.2;
}

.etc-modality-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
}

.etc-modality-card__price strong {
    color: var(--etc-accent);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

.etc-modality-card__price > span {
    color: var(--etc-muted);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
}

.etc-modality-card__badge {
    margin-top: -10px;
    color: var(--etc-accent);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.etc-modality-select {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--etc-accent);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.etc-modality-select input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 20px;
    height: 20px;
    margin: 0;
    border: 1.5px solid #333333;
    border-radius: 2px;
    background: #fff;
    cursor: pointer;
}

.etc-modality-select input::before {
    content: '';
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: transform .12s ease-in-out;
    background: #fff;
    clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 22%, 80% 5%, 38% 70%);
}

.etc-modality-select input:checked {
    border-color: var(--etc-accent);
    background: var(--etc-accent);
}

.etc-modality-select input:checked::before {
    transform: scale(1);
}

/* =========================================================
   RESUMEN
   ========================================================= */
.etc-summary {
    margin-top: 0;
}

.etc-summary > h3,
.etc-summary-title,
#etc-summary-title {
    margin: 0 0 32px;
    text-transform: none !important;
    color: var(--etc-text);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.etc-summary__box {
    overflow: hidden;
    background: #fff;
}

.etc-summary__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 50px;
    padding: 12px 32px;
    color: var(--etc-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.etc-summary__row strong {
    flex: 0 0 auto;
    font-weight: 500;
}

.etc-summary__row--monthly {
    margin-top: 4px;
    border-top: 1px solid #bdbdbd;
    font-weight: 500;
}

.etc-summary__row--monthly strong {
    font-weight: 600;
}

.etc-summary__row--grand-total {
    border-top: 1px solid #bdbdbd;
    background: rgba(149, 39, 103, .04);
    font-size: 17px;
    font-weight: 600;
}

.etc-summary__row--grand-total strong {
    color: var(--etc-accent);
    font-size: 20px;
    font-weight: 600;
}

.etc-summary__row[hidden] {
    display: none !important;
}

.etc-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
}

.etc-actions--modality {
    margin-top: 44px;
}


.etc-placeholder {
    padding: 38px;
    border-radius: 16px;
    background: #fff;
}


/* =========================================================
   ACCIONES STICKY MOBILE
   ========================================================= */
.etc-mobile-action {
    display: none;
}

@media (max-width: 1269px) {
    .etc-checkout {
        padding-inline: 24px;
    }

    .etc-plans-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .etc-plans-grid,
    .etc-modalities-grid {
        grid-template-columns: repeat(2, minmax(0, 386px));
        justify-content: center;
    }

    .etc-modalities-grid .etc-modality-card:last-child {
        grid-column: 1 / -1;
        width: min(100%, 386px);
        justify-self: center;
    }
}

@media (max-width: 767px) {
    .etc-checkout {
        padding: 48px 16px 40px;
    }

    .etc-step[data-step="modality"],
    .etc-step[data-step="company"],
    .etc-step[data-step="confirmation"] {
        padding-bottom: 112px;
    }

    .etc-mobile-action {
        position: fixed;
        z-index: 999;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border: 1px solid rgba(149, 39, 103, .15);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    }

    .etc-mobile-action--single {
        justify-content: flex-end;
    }

    .etc-mobile-action__summary {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: column;
        gap: 2px;
    }

    .etc-mobile-action__summary > span {
        overflow: hidden;
        color: #666;
        font-size: 12px;
        font-weight: 500;
        line-height: 1.2;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .etc-mobile-action__summary > strong {
        color: var(--etc-accent);
        font-size: 17px;
        font-weight: 600;
        line-height: 1.2;
        white-space: nowrap;
    }

    .etc-mobile-action .etc-button {
        flex: 0 0 auto;
        width: auto !important;
        min-height: 42px;
        padding: 11px 16px;
        font-size: 15px;
        white-space: nowrap;
    }

    .etc-mobile-action--single .etc-button {
        width: 100% !important;
        justify-content: center;
    }

    /* En mobile el CTA principal vive en la barra persistente.
       Las acciones secundarias (Volver) permanecen dentro del contenido. */
    .etc-actions--modality [data-go-company],
    .etc-actions--company [data-go-confirmation],
    .etc-actions--confirmation [data-start-payment] {
        display: none !important;
    }

    .etc-actions--modality,
    .etc-actions--company,
    .etc-actions--confirmation {
        align-items: flex-start;
    }

    .etc-actions--modality .etc-button--secondary,
    .etc-actions--company .etc-button--secondary,
    .etc-actions--confirmation .etc-button--secondary {
        width: auto !important;
    }

    /* En la selección de planes mantenemos el CTA visible en mobile para que
       el usuario no tenga que recorrer nuevamente toda la lista para continuar. */
    .etc-step[data-step="plans"] {
        padding-bottom: 104px;
    }

    .etc-step[data-step="plans"] .etc-selection-bar {
        position: fixed;
        z-index: 999;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
        margin: 0;
        padding: 12px 14px;
        border: 1px solid rgba(149, 39, 103, .15);
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    }

    .etc-step[data-step="plans"] .etc-selection-bar > strong {
        flex: 1 1 auto;
        gap: 8px;
        min-width: 0;
        font-size: 15px;
        line-height: 1.25;
    }

    .etc-step[data-step="plans"] .etc-selection-bar > strong::before {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    .etc-step[data-step="plans"] .etc-selection-bar .etc-button {
        flex: 0 0 auto;
        min-height: 42px;
        padding: 11px 16px;
        font-size: 16px;
    }

    .etc-step__header {
        margin-bottom: 32px;
    }

    .etc-step__header h2 {
        margin-bottom: 14px;
        font-size: 34px;
    }

    .etc-step__header p {
        font-size: 17px;
        line-height: 1.4;
    }

    .etc-plans-grid,
    .etc-modalities-grid {
        grid-template-columns: 1fr;
    }

    .etc-plan-card {
        max-width: none;
        min-height: 0;
        gap: 24px;
        padding: 32px 24px;
    }

    .etc-plan-card h3 {
        font-size: 26px;
    }

    .etc-plan-card__description {
        margin-top: -12px;
        font-size: 18px;
    }

    .etc-plan-card__price strong {
        font-size: 32px;
    }

    .etc-plan-card__price span,
    .etc-plan-card__benefits li,
    .etc-plan-select {
        font-size: 17px;
    }

    .etc-selection-bar {
        margin-top: 40px;
    }

    .etc-selection-bar > strong {
        font-size: 20px;
    }

    .etc-flow-header {
        margin-bottom: 40px;
    }

    .etc-flow-header h2 {
        margin-bottom: 32px;
        font-size: 32px;
    }

    .etc-progress {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .etc-progress li {
        grid-template-columns: 38px 1fr;
        justify-items: start;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .etc-progress li::before,
    .etc-progress li::after {
        display: none;
    }

    .etc-progress__label {
        white-space: normal;
    }

    .etc-section-heading {
        margin-bottom: 30px;
    }

    .etc-modalities-grid .etc-modality-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .etc-modality-card {
        min-height: 0;
        padding: 32px 24px;
    }

    .etc-modality-card__title {
        font-size: 26px;
    }

    .etc-modality-card__price strong {
        font-size: 32px;
    }

    .etc-summary__row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 14px 20px;
    }

    .etc-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .etc-actions .etc-button {
        width: 100%;
    }
}

/* =========================================================
   DATOS DE EMPRESA
   ========================================================= */
.etc-company-form {
    width: 100%;
    margin: 0;
}

.etc-company-form__panel {
    width: 100%;
    padding: 48px 44px;
    border-radius: 16px;
    background: #fff;
}

.etc-company-form__panel > h3 {
    margin: 0 0 28px;
    color: var(--etc-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none !important;
}

.etc-form-field {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.etc-form-field:last-child {
    margin-bottom: 0;
}

.etc-form-field label {
    margin: 0;
    color: var(--etc-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
}

.etc-form-field label span {
    margin-left: 2px;
}

.etc-form-field input {
    appearance: none;
    width: 100%;
    min-height: 54px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #8f8f8f !important;
    border-radius: 6px !important;
    outline: none;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--etc-text) !important;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.etc-form-field input::placeholder {
    color: #9a9a9a;
    opacity: 1;
}

.etc-form-field input:focus {
    border-color: var(--etc-accent) !important;
    box-shadow: 0 0 0 2px rgba(149, 39, 103, .08) !important;
}

.etc-form-field input.is-invalid {
    border-color: #b42318 !important;
}

.etc-form-error {
    min-height: 0;
    color: #b42318;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.35;
}

.etc-form-error:empty {
    display: none;
}

.etc-actions--company {
    margin-top: 44px;
}

@media (max-width: 767px) {
    .etc-company-form__panel {
        padding: 32px 24px;
    }

    .etc-company-form__panel > h3 {
        font-size: 19px;
    }

    .etc-form-field {
        margin-bottom: 18px;
    }

    .etc-form-field input {
        min-height: 52px;
        font-size: 16px;
    }
}

/* =========================================================
   AJUSTES V0.6.0
   ========================================================= */
.etc-flow-header,
.etc-flow-header *,
.etc-section-heading,
.etc-section-heading *,
.etc-button span {
    text-transform: none !important;
}

/* =========================================================
   CONFIRMACION Y PAGO
   ========================================================= */
.etc-confirmation {
    display: grid;
    gap: 40px;
}

.etc-confirmation-block {
    overflow: hidden;
    background: #fff;
}

.etc-confirmation-block__title {
    margin: 0;
    padding: 16px 24px;
    background: #929292;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase !important;
}

.etc-confirmation-block__content {
    padding: 12px 24px;
}

.etc-confirmation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 48px;
    color: var(--etc-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
}

.etc-confirmation-row strong {
    font-weight: 500;
    text-align: right;
}

.etc-confirmation-row--emphasis {
    margin-top: 4px;
    border-top: 1px solid #d2d2d2;
    font-weight: 500;
}

.etc-confirmation-row--total {
    margin-top: 4px;
    border-top: 1px solid #b9b9b9;
    font-size: 18px;
    font-weight: 600;
}

.etc-confirmation-row--total strong {
    color: var(--etc-accent);
    font-size: 20px;
    font-weight: 600;
}

.etc-confirmation-row--pending {
    color: #8a8a8a;
}

.etc-confirmation-company {
    display: block;
}

.etc-confirmation-block__actions {
    display: flex;
    justify-content: flex-end;
    padding: 0 24px 16px;
}

.etc-confirmation-company > div {
    display: grid;
    gap: 8px;
}

.etc-confirmation-company strong {
    font-size: 17px;
    font-weight: 600;
}

.etc-confirmation-company span {
    font-size: 15px;
    line-height: 1.35;
}

.etc-link-button {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--etc-accent);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.etc-link-button:hover {
    color: #952767;
    background: transparent;
    text-decoration: underline;
}

.etc-quote-status {
    min-height: 20px;
    color: var(--etc-muted);
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

.etc-quote-status.is-success {
    color: #2f7d4c;
}

.etc-quote-status.is-error {
    color: #b42318;
}

.etc-terms {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: max-content;
    max-width: 100%;
    color: var(--etc-text);
    font-size: 15px;
}

.etc-terms > span {
    display: inline;
    line-height: 1.45;
}

.etc-terms label {
    cursor: pointer;
}

.etc-terms a {
    color: var(--etc-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.etc-terms a:hover,
.etc-terms a:focus {
    color: var(--etc-primary);
    background: transparent;
}

.etc-terms input {
    appearance: none;
    -webkit-appearance: none;
    display: inline-grid;
    place-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1.5px solid #8f8f8f;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.etc-terms input::before {
    content: '';
    width: 10px;
    height: 10px;
    transform: scale(0);
    border-radius: 50%;
    background: var(--etc-accent);
    transition: transform .12s ease-in-out;
}

.etc-terms input:checked {
    border-color: var(--etc-accent);
}

.etc-terms input:checked::before {
    transform: scale(1);
}

.etc-actions--confirmation {
    justify-content: space-between;
}

.etc-payment-helper {
    margin: -22px 0 0;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 767px) {
    .etc-confirmation-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 10px 0;
    }

    .etc-confirmation-row strong {
        text-align: left;
    }

    .etc-confirmation-company {
        align-items: flex-start;
        flex-direction: column;
    }

    .etc-actions--confirmation {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .etc-actions--confirmation .etc-button {
        width: 100%;
    }
}

/* =========================================================
   RESULTADO DE PAGO V0.8.0
   ========================================================= */
.etc-payment-result {
    max-width: 920px;
    margin: 0 auto;
    padding: 72px 24px 80px;
    font-family: 'Poppins', sans-serif !important;
    color: #333333;
    text-align: center;
}

.etc-payment-result h2 {
    margin: 0 0 18px;
    color: #952767;
    font-family: 'Poppins', sans-serif !important;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none !important;
}

.etc-payment-result > p {
    margin: 0 auto 14px;
    max-width: 760px;
    font-size: 20px;
    line-height: 1.45;
}

.etc-payment-result__lead {
    font-size: 25px !important;
    font-weight: 500;
}

.etc-payment-result__card {
    width: min(100%, 520px);
    margin: 48px auto 34px;
    padding: 36px 44px;
    border-radius: 16px;
    background: #fff;
    text-align: left;
}

.etc-payment-result__card p {
    margin: 0 0 14px;
    font-size: 18px;
    line-height: 1.4;
}

.etc-payment-result__card p:last-child {
    margin-bottom: 0;
}

.etc-payment-result__email {
    margin-top: 40px !important;
}

.etc-payment-result__actions {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.etc-payment-result__actions .etc-button {
    text-decoration: none;
}

.etc-payment-result--rejected h2,
.etc-payment-result--cancelled h2,
.etc-payment-result--payment_mismatch h2,
.etc-payment-result--result_error h2 {
    color: #b42318;
}

@media (max-width: 767px) {
    .etc-payment-result {
        padding: 48px 20px 60px;
    }

    .etc-payment-result h2 {
        font-size: 32px;
    }

    .etc-payment-result > p {
        font-size: 17px;
    }

    .etc-payment-result__lead {
        font-size: 21px !important;
    }

    .etc-payment-result__card {
        padding: 28px 24px;
    }
}

/* =========================================================
   RESULTADO DE PAGO V0.10.0
   ========================================================= */
.etc-payment-result {
    max-width: 1100px;
    min-height: 720px;
    margin: 0 auto;
    padding: 84px 24px 88px;
    font-family: 'Poppins', sans-serif !important;
    color: #333333;
    text-align: center;
}

.etc-payment-result__header {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.etc-payment-result h2 {
    margin: 0 0 20px;
    color: #952767;
    font-family: 'Poppins', sans-serif !important;
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none !important;
}

.etc-payment-result__lead,
.etc-payment-result__message,
.etc-payment-result__email {
    font-family: 'Poppins', sans-serif !important;
    text-transform: none !important;
}

.etc-payment-result__lead {
    margin: 0 0 14px !important;
    max-width: 780px;
    font-size: 24px !important;
    font-weight: 400;
    line-height: 1.4;
}

.etc-payment-result__message {
    margin: 0 !important;
    max-width: 880px;
    font-size: 20px !important;
    font-weight: 400;
    line-height: 1.45;
}

.etc-payment-result__card {
    width: min(100%, 500px);
    margin: 52px auto 42px;
    padding: 42px 48px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
    text-align: left;
}

.etc-payment-result__card p {
    margin: 0 0 14px;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
    text-transform: none !important;
}

.etc-payment-result__card strong {
    font-weight: 600;
}

.etc-payment-result__card p:last-child {
    margin-bottom: 0;
}

.etc-payment-result__uf {
    color: #666666;
}

.etc-payment-result__email {
    margin: 0 auto !important;
    max-width: 820px;
    font-size: 18px !important;
    line-height: 1.45;
}

.etc-payment-result__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 42px;
}

.etc-payment-result__actions .etc-button {
    padding: 12px 24px;
    border: 0;
    border-radius: 16px;
    background: #5A2053 !important;
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none !important;
}

.etc-payment-result__actions .etc-button:hover,
.etc-payment-result__actions .etc-button:focus,
.etc-payment-result__actions .etc-button:visited {
    color: #ffffff !important;
}

.etc-payment-result__actions .etc-button:hover {
    background: #952767 !important;
}

.etc-payment-result__actions .etc-button--secondary {
    border: 1px solid #5A2053;
    background: transparent !important;
    color: #5A2053 !important;
}

.etc-payment-result__actions .etc-button--secondary:hover {
    border-color: #952767;
    background: transparent !important;
    color: #952767 !important;
}

.etc-payment-result--pending_payment h2 {
    color: #5A2053;
}

/* Vista refinada cuando Flow mantiene status=1, pero el retorno no trae
   pending_info: el intento no se completó (por ejemplo, cancelar en Webpay). */
.etc-payment-result--pending_payment .etc-payment-result__actions .etc-button--secondary {
    background: transparent !important;
}

/* Pago no completado: acciones separadas */
.etc-payment-result__actions--split {
    width: min(100%, 760px);
    margin: 42px auto 0;
    justify-content: space-between;
    align-items: center;
}

.etc-payment-result__home-button,
.etc-payment-result__home-button span,
.etc-payment-result__home-button:visited,
.etc-payment-result__home-button:visited span,
.etc-payment-result__home-button:focus,
.etc-payment-result__home-button:focus span {
    color: #5A2053 !important;
}

.etc-payment-result__home-button:hover,
.etc-payment-result__home-button:hover span {
    color: #952767 !important;
}

.etc-payment-result--rejected h2,
.etc-payment-result--cancelled h2,
.etc-payment-result--payment_mismatch h2,
.etc-payment-result--result_error h2 {
    color: #b42318;
}

.etc-payment-result__preview {
    display: inline-block;
    margin-top: 48px !important;
    padding: 8px 12px;
    border-radius: 8px;
    background: #fff4dc;
    color: #6c4a00;
    font-size: 13px !important;
}

@media (max-width: 767px) {
    .etc-payment-result {
        min-height: auto;
        padding: 52px 20px 64px;
    }

    .etc-payment-result h2 {
        font-size: 32px;
    }

    .etc-payment-result__lead {
        font-size: 20px !important;
    }

    .etc-payment-result__message,
    .etc-payment-result__email {
        font-size: 16px !important;
    }

    .etc-payment-result__card {
        margin: 36px auto 32px;
        padding: 28px 24px;
    }

    .etc-payment-result__card p {
        font-size: 16px;
    }

    .etc-payment-result__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .etc-payment-result__actions .etc-button {
        width: 100%;
    }
}


/* =========================================================
   RESULTADO DE PAGO - ROUTE V0.10.1
   Evita que el theme muestre el contenido normal de la página
   (blog/home) cuando se abre una vista de resultado.
   ========================================================= */
.etc-payment-result-route {
    width: 100%;
    min-height: 720px;
    margin: 0;
    padding: 0;
    background: #f6f6f6;
}

.etc-payment-result-route .etc-payment-result {
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .etc-payment-result__actions--split {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        gap: 12px;
    }

    .etc-payment-result__actions--split .etc-button {
        width: auto;
        flex: 0 1 auto;
    }
}
