/* ARCHIVO EN RAIZ */
:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #2a2530;
    background: #f8f5f7;
    font-synthesis: none;
    --brand: #42a7ad;
    --brand-dark: #2f7f84;
    --brand-soft: #e8f6f7;
    --text: #2a2530;
    --muted: #726a75;
    --border: #ded6dc;
    --surface: #ffffff;
    --success: #16794d;
    --danger: #a52a2a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    background:
        radial-gradient(circle at 5% 0%, rgba(66, 167, 173, .12), transparent 26rem),
        #f5f9f9;
    color: var(--text);
}

a {
    color: var(--brand);
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    min-height: 76px;
    padding: 14px max(22px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text);
}

.site-brand strong,
.site-brand small {
    display: block;
}

.site-brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.site-logo {
    width: 104px;
    height: 48px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--brand);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-size: 14px;
    font-weight: 650;
}

.site-main {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
    padding: 34px 0 56px;
    flex: 1;
}

.site-footer {
    padding: 26px max(22px, calc((100vw - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    gap: 24px;
    background: var(--brand-dark);
    color: #fff;
}

.site-footer > div {
    display: flex;
    gap: 16px;
}

.site-footer a {
    color: #fff;
}

.hero {
    min-height: 217px;
    margin-bottom: 24px;
    padding: clamp(22px, 4.2vw, 46px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--hero-background, var(--brand));
    color: #fff;
    box-shadow: 0 17px 45px rgba(47, 127, 132, .20);
}

.hero-content {
    max-width: 720px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero h1,
.page-intro h1 {
    margin: 0;
    font-size: clamp(32px, 5.2vw, 52px);
    line-height: .98;
    letter-spacing: -.045em;
}

.hero p {
    max-width: 640px;
    margin: 14px 0 0;
    color: rgba(255,255,255,.91);
    font-size: 16px;
    line-height: 1.5;
}

.hero-badge {
    width: 133px;
    height: 133px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    align-content: center;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}

.hero-badge span {
    font-size: 15px;
    letter-spacing: .14em;
}

.hero-badge strong {
    font-size: 34px;
}

.form-card,
.state-card {
    margin-bottom: 22px;
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 24px rgba(57, 39, 50, .05);
}

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

.section-heading > span {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
}

.section-heading h2,
.participant-header h3,
.payment-summary h3,
.state-card h1,
.state-card h2 {
    margin: 0;
}

.section-heading p,
.state-card p,
.page-intro p {
    margin: 6px 0 0;
    color: var(--muted);
    line-height: 1.6;
}

.section-heading-actions {
    align-items: center;
}

.section-heading-actions > .button {
    margin-left: auto;
}

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

.field {
    min-width: 0;
}

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

.field label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 720;
}

.field small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfc4cb;
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    outline: none;
}

.input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(66, 167, 173, .14);
}

.validation-message {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.participants-list {
    display: grid;
    gap: 18px;
}

.participant-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fcfafb;
}

.participant-header {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.participant-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.participant-index {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 800;
}

.text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--brand);
    font-weight: 720;
}

.text-button.danger {
    color: var(--danger);
}

.modality-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.modality-option {
    min-height: 78px;
    padding: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}

.modality-option.selected {
    border-color: var(--brand);
    background: var(--brand-soft);
    box-shadow: 0 0 0 2px rgba(66, 167, 173, .10);
}

.modality-option input {
    accent-color: var(--brand);
}

.modality-option strong,
.modality-option small {
    display: block;
}

.modality-option small {
    margin-top: 3px;
    color: var(--muted);
}

.participants-limit {
    margin: 16px 0 0;
    color: var(--muted);
    text-align: right;
    font-size: 13px;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 30px;
    align-items: start;
}

.money-input {
    position: relative;
}

.money-input .input {
    padding-right: 42px;
    font-size: 19px;
    font-weight: 750;
}

.money-input > span {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    color: var(--muted);
    font-weight: 700;
}

.consents {
    margin-top: 22px;
    display: grid;
    gap: 13px;
}

.consent-option {
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: #514953;
    font-size: 13px;
    line-height: 1.55;
}

.consent-option input {
    margin-top: 3px;
    accent-color: var(--brand);
}

.turnstile-wrap {
    margin-top: 20px;
    min-height: 66px;
}

.payment-summary {
    position: sticky;
    top: 18px;
    padding: 22px;
    border-radius: 14px;
    background: #302631;
    color: #fff;
}

.summary-row,
.summary-total,
.result-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.summary-row {
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,.11);
    color: #e2d8de;
}

.summary-total {
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,.24);
    font-size: 18px;
}

.secure-note {
    display: block;
    margin-top: 12px;
    color: #cfc1c9;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.button {
    min-height: 44px;
    padding: 10px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 10px;
    font-weight: 750;
    transition: transform .15s ease, opacity .15s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled {
    cursor: default;
    opacity: .58;
    transform: none;
}

.button-primary {
    background: var(--brand);
    color: #fff;
}

.button-primary:hover {
    background: var(--brand-dark);
}

.button-secondary {
    border-color: var(--border);
    background: #fff;
    color: var(--text);
}

.button-block {
    width: 100%;
}

.alert {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 11px;
}

.alert-error {
    border-color: #ebbbb7;
    background: #fff1ef;
    color: #8c241e;
}

.alert-success {
    border-color: #acd8c2;
    background: #edf8f2;
    color: #17603a;
}

.loading-block {
    min-height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    color: var(--muted);
}

.spinner {
    width: 22px;
    height: 22px;
    border: 2px solid #d9cfd5;
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

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

.compact-page {
    width: min(860px, 100%);
    margin: 30px auto;
}

.page-intro {
    margin-bottom: 24px;
    text-align: center;
}

.page-intro h1 {
    font-size: clamp(38px, 7vw, 64px);
}

.state-card {
    text-align: center;
}

.state-card-wide {
    width: min(920px, 100%);
}

.state-icon {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 29px;
    font-weight: 800;
}

.state-icon.success {
    background: #e6f5ed;
    color: var(--success);
}

.state-card .button,
.center-actions {
    margin-top: 20px;
}

.center-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    flex-wrap: wrap;
}

.recovery-card {
    width: min(560px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.recovery-card .field {
    margin-bottom: 18px;
}

.result-summary {
    margin: 24px 0;
    padding: 16px;
    border-radius: 12px;
    background: #f5f1f3;
}

.result-summary > div {
    text-align: left;
}

.result-summary span,
.result-summary strong {
    display: block;
}

.result-summary span {
    color: var(--muted);
    font-size: 12px;
}

.public-dorsal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
    gap: 14px;
}

.public-dorsal-card {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: #fff;
    text-align: center;
}

.dorsal-number {
    color: var(--brand);
    font-size: 62px;
    font-weight: 850;
    line-height: 1;
}

.public-dorsal-card span,
.public-dorsal-card small {
    color: var(--muted);
}

@media (max-width: 880px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary {
        position: static;
    }

    .modality-options {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .site-header,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        width: 100%;
        gap: 14px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .site-main {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .hero {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        border-radius: 17px;
    }

    .hero-badge {
        width: 120px;
        height: 120px;
    }

    .hero-badge strong {
        font-size: 33px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-full {
        grid-column: auto;
    }

    .section-heading-actions {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .section-heading-actions > .button {
        width: 100%;
        margin-left: 50px;
    }

    .participant-card {
        padding: 16px;
    }

    .result-summary {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer > div {
        flex-direction: column;
        gap: 8px;
    }
}
