:root {
    --bg: #fbfaf6;
    --bg-soft: #f4efe7;
    --surface: #fffdf7;
    --ink: #2f2a24;
    --muted: #6f665b;
    --line: rgba(66, 55, 43, 0.14);
    --green: #24352a;
    --sage: #526f4f;
    --earth: #9b6335;
    --gold: #d6b06d;
    --shadow: 0 22px 70px rgba(42, 33, 24, 0.12);
    --serif: "Libre Caslon Display", Georgia, serif;
    --sans: "Manrope", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* La confirmación de la encuesta tiene un título más largo que los demás avisos. */
.feedback-page .notice-panel {
    width: min(100%, 780px);
}

.feedback-page h1 {
    max-width: none;
    font-size: clamp(1.45rem, 2.35vw, 1.8rem);
    line-height: 1.15;
    text-wrap: balance;
}

.feedback-page .thanks {
    max-width: none;
}

@media (max-width: 640px) {
    .feedback-page h1 {
        max-width: none;
        font-size: clamp(1.28rem, 5vw, 1.48rem);
        line-height: 1.16;
    }
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 20%, rgba(214, 176, 109, 0.13), transparent 26%),
        radial-gradient(circle at 82% 78%, rgba(82, 111, 79, 0.13), transparent 28%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1 {
    margin: 0;
}

.registration-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2rem);
}

.notice-panel {
    position: relative;
    width: min(100%, 720px);
    overflow: hidden;
    padding: clamp(1.35rem, 4vw, 2.4rem);
    border: 1px solid var(--line);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(250, 245, 236, 0.94)),
        var(--surface);
    box-shadow: var(--shadow);
}

.notice-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    border-top: 3px solid rgba(214, 176, 109, 0.62);
    pointer-events: none;
}

.notice-panel::after {
    content: "";
    position: absolute;
    right: -5.5rem;
    bottom: -5.75rem;
    width: 15rem;
    height: 15rem;
    border: 1px solid rgba(82, 111, 79, 0.18);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(214, 176, 109, 0.16), transparent 42%),
        transparent;
    pointer-events: none;
}

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--green);
    font-family: var(--serif);
    font-size: clamp(1.18rem, 2.6vw, 1.45rem);
    line-height: 1;
}

.brand-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: clamp(5.25rem, 12vw, 6.6rem);
    height: auto;
    margin: clamp(1.6rem, 4vw, 2.5rem) 0 1.15rem;
    object-fit: contain;
}

.eyebrow {
    position: relative;
    z-index: 1;
    margin-bottom: 0.7rem;
    color: var(--earth);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.2;
    text-transform: uppercase;
}

h1 {
    position: relative;
    z-index: 1;
    max-width: 22ch;
    color: var(--green);
    font-family: var(--serif);
    font-size: clamp(1.48rem, 2.8vw, 1.98rem);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.12;
}

.thanks {
    position: relative;
    z-index: 1;
    max-width: 32rem;
    margin-top: 1rem;
    color: var(--muted);
    font-size: clamp(1rem, 2.2vw, 1.16rem);
}

.notice-action {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    margin-top: 1.25rem;
    padding: 0.7rem 1.15rem;
    border-radius: 999px;
    color: #fffdf7;
    background: var(--green);
    font-size: 0.9rem;
    font-weight: 800;
    transition: background 180ms ease, transform 180ms ease;
}

.notice-action:hover {
    background: #17251d;
    transform: translateY(-1px);
}

.notice-action:focus-visible {
    outline: 3px solid rgba(161, 104, 66, 0.22);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .registration-page {
        place-items: stretch;
        padding: 0.85rem;
    }

    .notice-panel {
        align-self: center;
        padding: 1.15rem;
        border-radius: 8px;
    }

    .brand-logo {
        width: 5.7rem;
        margin-top: 1.55rem;
    }

    h1 {
        max-width: 22ch;
        font-size: clamp(1.42rem, 5.8vw, 1.68rem);
    }
}

/* Visual refinement pass: presentation only. */
:root {
    --bg: #fcfaf5;
    --bg-soft: #f3ede3;
    --surface: #fffdf8;
    --ink: #302b24;
    --muted: #6b6258;
    --line: rgba(63, 53, 42, 0.15);
    --green: #233629;
    --sage: #74856d;
    --earth: #a16842;
    --gold: #c8a464;
    --shadow: 0 16px 42px rgba(42, 33, 24, 0.09);
}

body {
    background:
        linear-gradient(180deg, rgba(252, 250, 245, 0.98), rgba(243, 237, 227, 0.88)),
        var(--bg);
}

.registration-page {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.notice-panel {
    width: min(100%, 680px);
    border-radius: 8px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: var(--shadow);
}

.notice-panel::after {
    display: none;
}

.brand {
    color: var(--green);
}

h1 {
    font-size: clamp(1.55rem, 2.6vw, 1.9rem);
    line-height: 1.12;
}

.thanks {
    max-width: 34rem;
    line-height: 1.58;
}

@media (max-width: 640px) {
    .registration-page {
        align-items: center;
        padding: 0.85rem;
    }

    .notice-panel {
        padding: 1rem;
    }

    .brand-logo {
        margin-top: 1.25rem;
    }

    h1 {
        font-size: clamp(1.36rem, 5.2vw, 1.58rem);
    }
}
