@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
    color-scheme: light;
    font-family: 'DM Sans', Arial, sans-serif;
    color: #161616;
    background: #fff;
    --red: #c8102e;
    --red-dark: #9e0b23;
    --black: #121212;
    --line: #e8e8e8;
    --soft-red: #fff3f5;
    --shadow: 0 22px 60px rgba(18, 18, 18, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    background: #fff;
}

a { color: inherit; }

button,
input,
select { font: inherit; }

button,
a,
input,
select { outline-offset: 4px; }

button { cursor: pointer; }

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

[hidden] { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.top {
    min-height: 88px;
    max-width: 1440px;
    margin: auto;
    padding: 18px clamp(20px, 5vw, 72px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #fff;
}

.wordmark {
    font-family: Arial, sans-serif;
    font-weight: 900;
    font-size: 42px;
    line-height: 1;
    letter-spacing: -4px;
    text-decoration: none;
    color: var(--red);
}

.wordmark span {
    font-size: 11px;
    vertical-align: top;
    letter-spacing: 0;
}

.top > span,
.quiet {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.quiet {
    color: var(--red);
    text-decoration: none;
}

.hero {
    width: 100%;
    height: auto;
    background: #0c0c0f;
}

.banner {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.banner img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.catalog-section {
    padding: clamp(32px, 4.5vw, 52px) 20px;
    text-align: center;
    background: #fff6f7;
    border-bottom: 1px solid #f3dfe3;
}

.catalog-content {
    width: min(100%, 680px);
    margin: 0 auto;
}

.catalog-content h2 {
    margin-bottom: 12px;
    font-size: clamp(26px, 4vw, 36px);
}

.catalog-content > p:not(.eyebrow) {
    margin: 0 auto 22px;
    color: #505050;
    line-height: 1.65;
}

.catalog-button { width: auto; }

.registration {
    padding: clamp(48px, 7vw, 96px) 20px;
    background: linear-gradient(180deg, #fff 0%, #fff 68%, #fff6f7 100%);
}

.form-card {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 52px);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 5px solid var(--red);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
}

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

h1,
h2,
h3 {
    font-family: Manrope, Arial, sans-serif;
    color: var(--black);
}

.form-heading h1,
h2 {
    margin: 0;
    font-size: clamp(28px, 5vw, 42px);
    line-height: 1.15;
    letter-spacing: -1.5px;
}

h3 {
    margin: 0;
    font-size: 22px;
}

.form-heading > span {
    margin-top: 4px;
    padding: 7px 10px;
    border: 1px solid #f1c6cd;
    border-radius: 999px;
    color: var(--red);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.muted {
    color: #656565;
    font-size: 12px;
    line-height: 1.6;
}

.fields {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

label,
legend {
    color: #202020;
    font-size: 12px;
    font-weight: 700;
}

input:not([type=checkbox]),
select {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    margin-top: 8px;
    padding: 13px 14px;
    color: #181818;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    transition: border-color .2s, box-shadow .2s;
}

input::placeholder { color: #898989; }

input:focus,
select:focus {
    border-color: var(--red);
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 16, 46, .12);
}

.phone-field {
    margin: 0;
    padding: 0;
    border: 0;
}

.phone-control {
    display: grid;
    grid-template-columns: minmax(118px, .34fr) minmax(0, 1fr);
    gap: 10px;
}

.phone-control label { min-width: 0; }

.phone-control input { margin-top: 8px; }

hr {
    margin: 34px 0 30px;
    border: 0;
    border-top: 1px solid var(--line);
}

.questions {
    margin-top: 0;
    counter-reset: question;
}

.questions label {
    position: relative;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.questions label::before {
    counter-increment: question;
    content: counter(question, decimal-leading-zero);
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    color: #fff;
    background: var(--red);
    border-radius: 50%;
    font-size: 10px;
}

.questions select { background-color: #fff; }

.consent {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 26px 0;
    padding: 16px;
    background: var(--soft-red);
    border-radius: 9px;
    font-weight: 500;
    line-height: 1.55;
}

.consent input {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin: 1px 0 0;
    accent-color: var(--red);
}

.consent a {
    color: var(--red);
    font-weight: 700;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 50px;
    padding: 14px 20px;
    color: #fff;
    background: var(--red);
    border: 0;
    border-radius: 8px;
    box-shadow: 0 9px 20px rgba(200, 16, 46, .2);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s, transform .2s;
}

.button:hover:not(:disabled) {
    background: var(--red-dark);
    transform: translateY(-1px);
}

.form-card .button { width: 100%; }

#status,
#message,
.notice {
    font-size: 12px;
    line-height: 1.6;
    color: var(--red-dark);
}

.notice {
    margin: 20px 0;
    padding: 13px 15px;
    background: var(--soft-red);
    border-left: 3px solid var(--red);
    border-radius: 6px;
}

.success-icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 28px;
    color: #fff;
    background: var(--red);
    border-radius: 50%;
    font-size: 28px;
}

#success { padding: 12px 0; }

#success p { line-height: 1.7; }

#restart { margin-top: 14px; }

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 28px clamp(20px, 5vw, 72px);
    color: #fff;
    background: var(--black);
}

footer p,
footer > span:last-child {
    margin: 0;
    color: #c9c9c9;
    font-size: 11px;
}

/* Franja de marca del landing público */
.brand-strip {
    display: block;
    width: 100%;
    height: auto;
    padding: 0;
    background: #faf9f7;
    line-height: 0;
}

.brand-strip__link,
.brand-strip__picture {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.brand-strip__picture img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* Administración */
.admin-body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background: #fff;
}

.admin-body main { flex: 1; }

.admin-shell {
    width: min(100%, 1400px);
    margin: 0 auto;
    padding: clamp(38px, 6vw, 76px) clamp(20px, 4vw, 56px);
}

.admin-shell.login-shell {
    display: grid;
    place-items: center;
}

.login-card { max-width: 460px; }

.login-card form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.admin-kicker {
    display: inline-block;
    margin-bottom: 18px;
    padding: 6px 10px;
    color: var(--red);
    background: var(--soft-red);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.admin-heading,
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.toolbar { margin: 28px 0 22px; }

.toolbar input {
    width: min(100%, 390px);
    margin: 0;
}

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

.toolbar .button,
.admin-heading .button { width: auto; }

.secondary {
    color: var(--black);
    background: #fff;
    border: 1px solid #d7d7d7;
    box-shadow: none;
}

.secondary:hover:not(:disabled) { background: #f7f7f7; }

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

.summary-card {
    padding: 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--red);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(18, 18, 18, .06);
}

.summary-card span {
    display: block;
    margin-bottom: 12px;
    color: #666;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.summary-card strong {
    color: var(--black);
    font-family: Manrope, Arial, sans-serif;
    font-size: 34px;
}

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(18, 18, 18, .05);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    white-space: nowrap;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}

th {
    color: #fff;
    background: var(--black);
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

tbody tr:last-child td { border-bottom: 0; }

td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.empty-row td {
    padding: 42px 20px;
    color: #666;
    text-align: center;
}

.connection-note { margin-top: 22px; }

@media (max-width: 700px) {
    .top {
        min-height: 74px;
        padding-block: 14px;
    }

    .top > span { display: none; }

    .wordmark { font-size: 37px; }

    .registration { padding-inline: 14px; }

    .form-card {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .form-heading > span { display: none; }

    .phone-control { grid-template-columns: minmax(106px, .36fr) minmax(0, 1fr); }

    .questions label { padding: 14px; }

    footer { flex-wrap: wrap; }

    footer p { display: none; }

    .admin-heading { align-items: flex-start; }

    .admin-heading .button { width: 100%; }

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

    .toolbar,
    .toolbar-actions { align-items: stretch; }

    .toolbar input,
    .toolbar-actions,
    .toolbar .button { width: 100%; }

    .toolbar-actions { display: grid; }
}

@media (max-width: 430px) {
    .quiet { font-size: 9px; }

    .phone-control {
        grid-template-columns: minmax(98px, .34fr) minmax(0, 1fr);
        gap: 8px;
    }

    .consent { padding: 14px; }
}

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

    * { transition: none !important; }
}
