:root { --landing-primary: #0d6efd; --landing-bg: #eef4ff; --landing-text: #12203a; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: radial-gradient(circle at top left, #f9fcff, var(--landing-bg)); color: var(--landing-text); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.public-landing-shell { width: min(100%, 1080px); margin: 0 auto; padding: 28px 18px; }
.public-landing-card { overflow: hidden; border: 1px solid rgba(13,110,253,.12); border-radius: 20px; background: #fff; box-shadow: 0 28px 70px rgba(34,73,132,.15); }
.public-landing-banner { position: relative; min-height: 330px; padding: 44px; background-position: center; background-size: cover; color: #fff; }
.public-landing-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,16,52,.95), rgba(1,31,86,.55), rgba(0,0,0,.18)); }
.public-landing-header-content { position: relative; z-index: 1; max-width: 760px; }
.public-landing-country { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .35rem .65rem; border: 1px solid rgba(255,255,255,.5); border-radius: 999px; background: rgba(255,255,255,.12); font-size: .85rem; }
.public-landing-country img { width: 26px; height: 18px; object-fit: cover; border-radius: 3px; }
.public-landing-event-code { display: block; margin-bottom: .45rem; color: #b8d8ff; font-weight: 700; letter-spacing: .11em; }
.public-landing-header-content h1 { max-width: 800px; margin: 0 0 .8rem; font-size: clamp(2rem, 5vw, 3.7rem); font-weight: 850; line-height: 1.02; }
.public-landing-description { max-width: 720px; color: rgba(255,255,255,.82); font-size: 1.02rem; }
.public-landing-meta { display: flex; flex-wrap: wrap; gap: .9rem 1.3rem; margin-top: 1.35rem; color: rgba(255,255,255,.9); }
.public-landing-body { padding: 34px 42px 42px; }
.public-landing-title { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.5rem; }
.public-landing-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(13,110,253,.12); color: var(--landing-primary); font-size: 1.35rem; }
.public-landing-title h2 { margin: 0 0 .15rem; font-size: 1.35rem; font-weight: 800; }
.public-landing-title p { margin: 0; color: #66738a; }
.form-label { font-weight: 700; color: #273650; }
.required-label::after { content: " *"; color: #dc3545; }
.form-control, .form-select { min-height: 44px; border-color: #d9e2f1; }
.form-control:focus, .form-select:focus { border-color: #86b7fe; box-shadow: 0 0 0 .22rem rgba(13,110,253,.13); }
.public-landing-consents { display: grid; gap: .7rem; padding: 1rem; border-radius: 12px; background: #f7f9fd; }
.public-landing-submit { display: block; min-width: 220px; margin: 1.5rem auto 0; padding: .75rem 1.4rem; font-weight: 700; }
.public-registration-success { padding: 2.5rem 1rem; text-align: center; }
.public-registration-success > i { color: #198754; font-size: 4rem; }
.public-registration-success h3 { margin-top: .8rem; font-weight: 800; }
.public-registration-success code { display: inline-block; padding: .55rem .8rem; border-radius: .5rem; background: #eef2f7; color: #0d3f8f; overflow-wrap: anywhere; }
.public-unavailable-shell { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 1.5rem; }
.public-unavailable-card { max-width: 560px; padding: 3rem; border-radius: 20px; background: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.12); text-align: center; }
.public-unavailable-card > i { font-size: 4rem; color: #6c757d; }
.public-unavailable-card h1 { margin-top: 1rem; font-weight: 800; }
.public-unavailable-card p { color: #6c757d; }

.country-native-select-ready { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.country-combobox { position: relative; width: 100%; }
.country-combobox-toggle { display: flex; align-items: center; width: 100%; min-height: 44px; padding: .375rem .75rem; border: 1px solid #d9e2f1; border-radius: .375rem; background: #fff; color: #212529; text-align: left; }
.country-combobox-toggle:focus { border-color: #86b7fe; outline: 0; box-shadow: 0 0 0 .22rem rgba(13,110,253,.13); }
.country-combobox-toggle.is-invalid { border-color: #dc3545; }
.country-combobox-flag, .country-combobox-option-flag { width: 25px; height: 18px; flex: 0 0 25px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }
.country-combobox-selected { flex: 1 1 auto; min-width: 0; margin-left: .55rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country-combobox-caret { margin-left: .5rem; }
.country-combobox-panel { position: absolute; z-index: 1000; left: 0; right: 0; top: calc(100% + .35rem); padding: .55rem; border: 1px solid #d9e2f1; border-radius: .55rem; background: #fff; box-shadow: 0 14px 34px rgba(0,0,0,.16); }
.country-combobox-list { max-height: 260px; margin-top: .45rem; overflow-y: auto; }
.country-combobox-option { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .58rem .6rem; border: 0; border-radius: .4rem; background: transparent; text-align: left; }
.country-combobox-option:hover, .country-combobox-option.is-selected { background: #eef4ff; }
.country-combobox-empty { padding: .75rem; color: #6c757d; text-align: center; }

@media (max-width: 767.98px) {
    .public-landing-shell { padding: 0; }
    .public-landing-card { border-radius: 0; }
    .public-landing-banner { min-height: 300px; padding: 30px 22px; }
    .public-landing-body { padding: 26px 20px 32px; }
    .public-landing-title { align-items: flex-start; }
}

/* Landing por tipo de participante */
.public-participant-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: .45rem 0 .25rem;
    padding: .38rem .7rem;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    font-weight: 700;
}
.participant-public-grid {
    display: grid;
    gap: .85rem;
}
.participant-public-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: .8rem;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.participant-public-card:hover {
    transform: translateY(-1px);
    border-color: var(--bs-primary);
    box-shadow: 0 .5rem 1.25rem rgba(0, 0, 0, .08);
}
.participant-public-card > span:nth-child(2) {
    flex: 1 1 auto;
}
.participant-public-card strong,
.participant-public-card small {
    display: block;
}
.participant-public-card small {
    color: var(--bs-secondary-color);
}
.participant-public-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: .7rem;
    background: rgba(13, 110, 253, .1);
    color: var(--bs-primary);
    font-size: 1.2rem;
}


/* Formulario público limpio y consentimientos legales */
.public-landing-body .form-text { display: none !important; }
.legal-consent-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: .7rem;
}
.legal-consent-row > .invalid-feedback { grid-column: 2; }
.legal-consent-copy { line-height: 1.45; }
.legal-consent-copy small {
    display: block;
    margin-top: .15rem;
    color: #6c757d;
}
.legal-open-button {
    display: inline;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--landing-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-open-button:hover { color: #084298; }
.legal-modal-copy {
    color: #273650;
    line-height: 1.75;
    white-space: normal;
}
.legal-modal .modal-content { border: 0; border-radius: 1rem; }
.legal-modal .modal-header,
.legal-modal .modal-footer { border-color: #e8edf5; }


/* Consentimientos legales: presentación limpia */
.public-landing-consents {
    gap: .85rem;
    padding: 1rem 1.05rem;
    border: 1px solid #e3eaf5;
    background: #f8faff;
}
.legal-consent-row {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: .75rem;
    padding: .75rem;
    border: 1px solid transparent;
    border-radius: .75rem;
    background: #fff;
}
.legal-consent-row:focus-within { border-color: rgba(13, 110, 253, .35); }
.legal-consent-row .form-check-input {
    width: 1.12rem;
    height: 1.12rem;
    margin: .25rem 0 0;
}
.legal-consent-copy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    color: #273650;
    line-height: 1.5;
}
.legal-consent-copy small { display: none !important; }
.legal-open-button {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    padding: .34rem .62rem;
    border: 1px solid rgba(13, 110, 253, .28);
    border-radius: 999px;
    background: rgba(13, 110, 253, .07);
    color: #0d6efd;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.legal-open-button:hover,
.legal-open-button:focus {
    border-color: rgba(13, 110, 253, .5);
    background: rgba(13, 110, 253, .13);
    color: #084298;
    outline: 0;
    transform: translateY(-1px);
}
.legal-consent-row > .invalid-feedback {
    grid-column: 2;
    margin-top: 0;
}
@media (max-width: 575.98px) {
    .legal-consent-copy { align-items: flex-start; flex-direction: column; }
}
