:root {
    --deep: #36616A;
    --teal: #5E8898;
    --sand: #f0f0ec;
    --paper: #ffffff;
    --border: #e5e5e0;
    --ink: #2a2a2a;
    --muted: #65706f;
    --soft: #f7f7f3;
    --danger: #a33131;
    --danger-soft: #fbeceb;
    --success: #276348;
    --success-soft: #eaf5ef;
    --warning: #8a5a16;
    --warning-soft: #fbf2e2;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 50px rgba(30, 48, 51, 0.08);
    --shadow-soft: 0 8px 24px rgba(30, 48, 51, 0.06);
    --font: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sand);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.is-locked {
    overflow: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--deep);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--teal);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--deep);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.1rem, 4.5vw, 4.15rem);
}

h2 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
}

h3 {
    font-size: 1.08rem;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    top: -80px;
    left: 16px;
    z-index: 100;
    padding: 12px 18px;
    border-radius: 999px;
    background: var(--paper);
    color: var(--deep);
    font-weight: 700;
    box-shadow: var(--shadow);
    transition: top 160ms ease;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: relative;
    z-index: 20;
    background: var(--deep);
    color: var(--paper);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
    padding-block: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: inherit;
    text-decoration: none;
}

.brand:hover {
    color: inherit;
}

.brand__mark {
    display: inline-grid;
    place-items: center;
    width: 68px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__text strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.brand__text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-header__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header__badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b9dfc9;
    box-shadow: 0 0 0 4px rgba(185, 223, 201, 0.16);
}

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: clamp(54px, 8vw, 92px) 0 clamp(46px, 7vw, 78px);
    background-color: var(--deep);
    background-image:
        linear-gradient(115deg, rgba(54, 97, 106, 0.97) 0%, rgba(62, 107, 116, 0.9) 45%, rgba(94, 136, 152, 0.74) 100%),
        url("../images/hero-inscripcion.jpg");
    background-position: center;
    background-size: cover;
    color: var(--paper);
}

.hero::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -220px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    box-shadow:
        0 0 0 70px rgba(255, 255, 255, 0.03),
        0 0 0 150px rgba(255, 255, 255, 0.025);
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 830px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero__eyebrow::before {
    content: "";
    width: 34px;
    height: 1px;
    background: rgba(255, 255, 255, 0.62);
}

.hero h1 {
    max-width: 820px;
    margin-bottom: 20px;
    color: var(--paper);
    font-size: clamp(2.35rem, 5vw, 4.4rem);
    font-weight: 700;
}

.hero__lead {
    max-width: 650px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero__meta-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.content-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 28px;
    align-items: start;
    margin-bottom: 70px;
}

.form-card,
.summary-card,
.page-card,
.result-card,
.fatal-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.form-card {
    overflow: hidden;
}

.form-header {
    padding: clamp(24px, 4vw, 38px);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfbf8 0%, #ffffff 100%);
}

.form-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--teal);
}

.form-header h2 {
    margin-bottom: 8px;
}

.form-header p {
    max-width: 680px;
    color: var(--muted);
    font-size: 0.95rem;
}

.form-header .notice {
    margin-top: 20px;
}

.form-section {
    padding: clamp(26px, 4vw, 40px);
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 24px;
}

.form-section:last-of-type {
    border-bottom: 0;
}

.section-heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.section-number {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--deep);
    color: var(--paper);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.section-heading h2 {
    margin-bottom: 4px;
    font-size: 1.28rem;
}

.section-heading p {
    color: var(--muted);
    font-size: 0.9rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field {
    min-width: 0;
}

.field--full {
    grid-column: 1 / -1;
}

.field > label,
.field > .field-label {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.required {
    color: var(--danger);
}

.control {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #cfd4d1;
    border-radius: var(--radius-sm);
    background: var(--paper);
    color: var(--ink);
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea.control {
    min-height: 112px;
    resize: vertical;
}

select.control {
    appearance: none;
    padding-right: 42px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--deep) 50%),
        linear-gradient(135deg, var(--deep) 50%, transparent 50%);
    background-position:
        calc(100% - 19px) calc(50% - 2px),
        calc(100% - 14px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
}

.control:hover {
    border-color: #aeb8b3;
}

.control:focus {
    outline: 0;
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(94, 136, 152, 0.16);
}

.control:disabled {
    background: var(--soft);
    color: var(--muted);
    cursor: not-allowed;
}

.control.is-invalid,
.is-invalid .control {
    border-color: var(--danger);
    background: #fffafa;
}

.control.is-invalid:focus,
.is-invalid .control:focus {
    box-shadow: 0 0 0 4px rgba(163, 49, 49, 0.12);
}

.hint {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.field-error {
    margin-top: 6px;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 700;
}

.field-error:empty {
    display: none;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

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

.choice-card {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.choice-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice-card__body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 100%;
    padding: 16px;
    border: 1px solid #d5d9d6;
    border-radius: 14px;
    background: var(--paper);
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-card:hover .choice-card__body {
    border-color: #aab9b4;
    box-shadow: var(--shadow-soft);
}

.choice-card input:checked + .choice-card__body {
    border-color: var(--deep);
    background: #f5f9f8;
    box-shadow: inset 0 0 0 1px var(--deep);
}

.choice-card input:focus-visible + .choice-card__body {
    outline: 3px solid rgba(94, 136, 152, 0.34);
    outline-offset: 2px;
}

.is-invalid .choice-card__body {
    border-color: var(--danger);
    background: #fffafa;
}

.choice-card__indicator {
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    border: 1.5px solid #9caaa5;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: inset 0 0 0 4px var(--paper);
}

.choice-card input:checked + .choice-card__body .choice-card__indicator {
    border-color: var(--deep);
    background: var(--deep);
}

.choice-card__content {
    min-width: 0;
}

.choice-card__title {
    display: block;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.choice-card__meta {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.77rem;
    line-height: 1.4;
}

.choice-card__price {
    display: inline-block;
    margin-top: 8px;
    color: var(--deep);
    font-size: 0.78rem;
    font-weight: 800;
}

.document-panel,
.billing-panel {
    margin-top: 18px;
    padding: 18px;
    border: 1px dashed #bcc8c3;
    border-radius: 14px;
    background: var(--soft);
}

.document-panel[hidden],
.billing-panel[hidden],
[hidden] {
    display: none !important;
}

.document-panel.is-invalid,
.billing-panel.is-invalid {
    border-color: var(--danger);
    background: #fffafa;
}

.document-panel h3,
.billing-panel h3 {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.document-panel .hint,
.billing-panel .hint {
    margin-bottom: 12px;
}

.file-control {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #cfd4d1;
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.file-control input[type="file"] {
    width: 100%;
    min-width: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.file-control input[type="file"]::file-selector-button {
    margin-right: 12px;
    padding: 9px 13px;
    border: 0;
    border-radius: 8px;
    background: var(--deep);
    color: var(--paper);
    font-weight: 700;
    cursor: pointer;
}

.file-name {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.78rem;
}

.checkbox-list {
    display: grid;
    gap: 12px;
}

.checkbox-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.5;
}

.checkbox-field .field-error {
    flex: 1 0 100%;
    margin-left: 28px;
}

.checkbox-field input[type="checkbox"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--deep);
}

.checkbox-field.is-invalid {
    color: var(--danger);
}

.legal-links {
    color: var(--muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(24px, 4vw, 36px);
    background: var(--soft);
}

.form-actions__note {
    max-width: 430px;
    color: var(--muted);
    font-size: 0.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--deep);
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
    background: #2d535b;
    color: var(--paper);
    box-shadow: 0 10px 22px rgba(54, 97, 106, 0.2);
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 3px solid rgba(94, 136, 152, 0.45);
    outline-offset: 3px;
}

.btn:disabled,
.btn.is-loading {
    opacity: 0.7;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.btn--large {
    min-height: 58px;
    padding-inline: 30px;
    font-size: 0.96rem;
}

.btn--secondary {
    border-color: var(--deep);
    background: transparent;
    color: var(--deep);
}

.btn--secondary:hover {
    background: var(--deep);
    color: var(--paper);
}

.btn--ghost {
    border-color: #cfd4d1;
    background: var(--paper);
    color: var(--deep);
}

.btn--ghost:hover {
    background: var(--soft);
    color: var(--deep);
    box-shadow: none;
}

.summary-panel {
    position: sticky;
    top: 24px;
}

.summary-card {
    overflow: hidden;
    color: var(--paper);
    background: var(--deep);
}

.summary-card__header {
    padding: 24px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-card__header .eyebrow {
    display: block;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.summary-card__header h2 {
    margin-bottom: 0;
    color: var(--paper);
    font-size: 1.32rem;
}

.summary-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 8px 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    font-size: 0.85rem;
}

.summary-row:last-child {
    border-bottom: 0;
}

.summary-row dt {
    color: rgba(255, 255, 255, 0.7);
}

.summary-row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.summary-total {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 0 24px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.summary-total span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.summary-total strong {
    color: var(--paper);
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.summary-note {
    margin: 0;
    padding: 0 24px 24px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.75rem;
    line-height: 1.5;
}

.summary-help {
    margin-top: 16px;
    padding: 18px 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 0.82rem;
}

.summary-help strong {
    color: var(--deep);
}

.summary-help a {
    font-weight: 700;
}

.alert {
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 0.86rem;
}

.alert h3 {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.alert ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.alert--error {
    border-color: #e7bcb8;
    background: var(--danger-soft);
    color: var(--danger);
}

.alert--error h3 {
    color: var(--danger);
}

.alert--success {
    border-color: #b9d9c7;
    background: var(--success-soft);
    color: var(--success);
}

.alert--warning {
    border-color: #edd6ad;
    background: var(--warning-soft);
    color: var(--warning);
}

.alert--info {
    border-color: #c6d8dd;
    background: #eef5f7;
    color: var(--deep);
}

.notice {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #eef5f7;
    color: var(--deep);
    font-size: 0.82rem;
    line-height: 1.5;
}

.notice::before {
    content: "i";
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--deep);
    color: var(--paper);
    font-size: 0.7rem;
    font-weight: 800;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-status {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    max-width: 360px;
    padding: 14px 18px;
    border-radius: 12px;
    background: var(--ink);
    color: var(--paper);
    font-size: 0.84rem;
    box-shadow: var(--shadow);
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.form-status.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.page-main {
    padding-bottom: 70px;
}

.page-main--narrow {
    width: min(820px, calc(100% - 40px));
    margin-inline: auto;
}

.page-card {
    overflow: hidden;
    padding: clamp(26px, 5vw, 46px);
}

.page-card > h1,
.page-card > h2 {
    margin-bottom: 12px;
}

.page-lead {
    max-width: 700px;
    color: var(--muted);
}

.payment-card {
    width: min(760px, calc(100% - 40px));
    margin: 42px auto 70px;
}

.payment-card__head {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.payment-card__head h1 {
    margin-bottom: 8px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.payment-card__head p {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill--success {
    background: var(--success-soft);
    color: var(--success);
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 24px 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.detail-row:last-child {
    border-bottom: 0;
}

.detail-row dt {
    color: var(--muted);
}

.detail-row dd {
    margin: 0;
    font-weight: 700;
    text-align: right;
}

.detail-row--total {
    margin-top: 6px;
    padding-top: 18px;
    border-top: 2px solid var(--deep);
    border-bottom: 0;
    font-size: 1.05rem;
}

.detail-row--total dt,
.detail-row--total dd {
    color: var(--deep);
    font-weight: 800;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.secure-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.secure-note::before {
    content: "";
    flex: 0 0 auto;
    width: 16px;
    height: 20px;
    border: 2px solid var(--teal);
    border-radius: 3px;
    background:
        linear-gradient(var(--teal), var(--teal)) 50% 0 / 2px 8px no-repeat,
        linear-gradient(var(--paper), var(--paper)) 50% 12px / 8px 6px no-repeat;
}

.redirect-card {
    width: min(560px, calc(100% - 40px));
    margin: 60px auto;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--paper);
    text-align: center;
    box-shadow: var(--shadow);
}

.redirect-card h1 {
    margin-bottom: 10px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.redirect-card p {
    color: var(--muted);
}

.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 20px;
    border: 3px solid #dce5e2;
    border-top-color: var(--deep);
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

.redirect-card .btn {
    margin-top: 20px;
}

.result-card {
    width: min(820px, calc(100% - 40px));
    margin: 42px auto 70px;
    overflow: hidden;
}

.result-card__top {
    padding: clamp(28px, 5vw, 48px);
    color: var(--paper);
    background: var(--deep);
}

.result-card__top--error {
    background: #7b3434;
}

.result-card__icon {
    display: inline-grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 1.45rem;
    font-weight: 800;
}

.result-card__top h1 {
    margin-bottom: 10px;
    color: var(--paper);
    font-size: clamp(1.9rem, 4vw, 3rem);
}

.result-card__top p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.82);
}

.result-card__body {
    padding: clamp(24px, 5vw, 42px);
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.fatal-card {
    width: min(680px, calc(100% - 40px));
    margin: 60px auto;
    padding: clamp(28px, 5vw, 46px);
}

.fatal-card h1 {
    margin-bottom: 12px;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.fatal-card p {
    color: var(--muted);
}

.fatal-card .btn {
    margin-top: 18px;
}

.site-footer {
    padding: 34px 0;
    background: #243f45;
    color: rgba(255, 255, 255, 0.74);
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.site-footer__title {
    margin-bottom: 4px;
    color: var(--paper);
    font-size: 0.9rem;
    font-weight: 800;
}

.site-footer__text {
    margin-bottom: 4px;
    font-size: 0.78rem;
}

.site-footer__contact {
    text-align: right;
}

.site-footer a {
    color: var(--paper);
    font-size: 0.82rem;
    font-weight: 700;
}

.muted {
    color: var(--muted);
}

.text-small {
    font-size: 0.8rem;
}

.mt-0 {
    margin-top: 0;
}

.mt-24 {
    margin-top: 24px;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-12 {
    margin-bottom: 12px;
}

.mb-24 {
    margin-bottom: 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 980px) {
    .content-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-panel {
        position: static;
        order: -1;
    }

    .summary-card {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
    }

    .summary-card__header {
        border-right: 1px solid rgba(255, 255, 255, 0.14);
        border-bottom: 0;
    }

    .summary-list {
        padding-top: 16px;
        padding-bottom: 8px;
    }

    .summary-total {
        grid-column: 1 / -1;
        margin-top: 0;
    }

    .summary-note {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .site-header__inner {
        min-height: 70px;
    }

    .brand__mark {
        width: 58px;
        height: 38px;
    }

    .brand__text strong {
        font-size: 0.82rem;
    }

    .brand__text small {
        font-size: 0.64rem;
    }

    .site-header__badge {
        display: none;
    }

    .hero {
        margin-bottom: 22px;
        background-image:
            linear-gradient(115deg, rgba(54, 97, 106, 0.97) 0%, rgba(62, 107, 116, 0.92) 55%, rgba(94, 136, 152, 0.82) 100%),
            url("../images/hero-inscripcion-movil.jpg");
    }

    .hero__meta-item {
        font-size: 0.74rem;
    }

    .form-grid,
    .choice-grid,
    .choice-grid--three {
        grid-template-columns: minmax(0, 1fr);
    }

    .summary-card {
        display: block;
    }

    .summary-card__header {
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .summary-total {
        margin-top: 0;
    }

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

    .form-actions .btn {
        width: 100%;
    }

    .payment-card__head {
        flex-direction: column;
    }

    .detail-row {
        gap: 16px;
    }

    .site-footer__inner {
        flex-direction: column;
    }

    .site-footer__contact {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .container {
        width: min(100% - 22px, 1180px);
    }

    .form-card,
    .summary-card,
    .page-card,
    .result-card,
    .fatal-card {
        border-radius: 20px;
    }

    .form-header,
    .form-section,
    .form-actions {
        padding-inline: 18px;
    }

    .hero__meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .result-card__top,
    .result-card__body {
        padding-inline: 20px;
    }

    .redirect-card {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
