:root {
    --ink: #25211e;
    --muted: #746861;
    --paper: #fffaf5;
    --paper-soft: #f5ece4;
    --sage: #6c7f65;
    --wine: #873f4a;
    --wine-dark: #5e2932;
    --gold: #b08d57;
    --line: rgba(55, 44, 38, 0.16);
    --shadow: 0 24px 70px rgba(33, 27, 22, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--paper);
}

body {
    min-height: 100%;
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--paper);
}

button,
input,
textarea {
    font: inherit;
}

.page-shell {
    min-height: calc(100vh - 56px);
}

.hero {
    position: relative;
    min-height: calc(100vh - 56px);
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 250, 245, 0.74), rgba(255, 250, 245, 0.22) 48%, rgba(28, 35, 40, 0.22)),
        url("sara-juanma-bg-v5.png") center / cover no-repeat;
}

.hero__shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 72%, rgba(176, 141, 87, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(255, 250, 245, 0), rgba(255, 250, 245, 0.16));
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 36px;
    align-items: center;
    padding: 42px 0;
}

.intro {
    max-width: 650px;
    padding: 24px 0;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--wine-dark);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1 {
    margin: 0;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.25rem, 9vw, 7.6rem);
    line-height: 0.95;
    letter-spacing: 0;
    text-wrap: balance;
}

.subtitle {
    max-width: 560px;
    margin: 22px 0 0;
    color: #413832;
    font-size: 1.2rem;
    line-height: 1.65;
}

.mobile-upload-link {
    display: none;
}

.upload-panel {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 8px;
    padding: 24px;
    background: linear-gradient(135deg, rgba(255, 250, 245, 0.38), rgba(255, 250, 245, 0.22));
    box-shadow: 0 18px 56px rgba(33, 27, 22, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.38);
    -webkit-backdrop-filter: blur(9px) saturate(1.08);
    backdrop-filter: blur(9px) saturate(1.08);
}

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

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.field span {
    color: var(--wine-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #746861;
    opacity: 1;
}

.field textarea {
    resize: vertical;
    min-height: 92px;
}

.field input:focus,
.field textarea:focus {
    border-color: rgba(135, 63, 74, 0.72);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 0 0 4px rgba(135, 63, 74, 0.12);
}

.drop-zone {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    min-height: 168px;
    margin-bottom: 14px;
    border: 1.5px dashed rgba(108, 127, 101, 0.68);
    border-radius: 8px;
    padding: 24px 18px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--wine);
    background: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
}

.drop-zone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.drop-zone__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    color: #fff;
    background: rgba(108, 127, 101, 0.86);
    font-size: 2rem;
    line-height: 1;
}

.drop-zone__title {
    color: #1f1a17;
    font-weight: 800;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

.drop-zone__meta {
    color: #4d4540;
    font-size: 0.92rem;
    text-align: center;
}

.file-list {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.file-list:empty {
    display: none;
}

.file-list__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 2px;
    color: var(--wine-dark);
    font-size: 0.88rem;
    font-weight: 700;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

.file-list__clear {
    border: 0;
    padding: 0;
    color: var(--wine);
    background: transparent;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
}

.file-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    border: 1px solid rgba(108, 127, 101, 0.22);
    border-radius: 8px;
    padding: 8px 10px;
    color: #3f3833;
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

.file-pill__details {
    flex: 1 1 auto;
    min-width: 0;
    display: grid;
    gap: 2px;
}

.file-pill span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-pill__size {
    flex: 0 0 auto;
    color: var(--muted);
}

.file-pill--blocked {
    border-color: rgba(157, 35, 54, 0.28);
    background: rgba(255, 238, 240, 0.7);
}

.file-pill--blocked .file-pill__size {
    color: #9d2336;
    font-weight: 700;
}

.file-pill__remove {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(135, 63, 74, 0.24);
    border-radius: 999px;
    color: var(--wine-dark);
    background: rgba(255, 255, 255, 0.76);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.file-pill__remove:hover {
    border-color: rgba(135, 63, 74, 0.54);
    background: #fff;
}

.progress {
    height: 10px;
    margin: 6px 0 14px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(108, 127, 101, 0.18);
}

.progress__bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sage), var(--gold));
    transition: width 140ms ease;
}

.status {
    min-height: 22px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.45;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.82);
}

.status.is-error {
    color: #9d2336;
}

.status.is-success {
    color: #3f7046;
}

.status.is-warning {
    color: #8a5b18;
}

.submit-button {
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    padding: 13px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--wine), var(--wine-dark));
    box-shadow: 0 12px 24px rgba(94, 41, 50, 0.24);
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.submit-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(94, 41, 50, 0.3);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.privacy-note {
    margin: 14px 0 0;
    color: #4d4540;
    font-size: 0.84rem;
    line-height: 1.45;
    text-align: center;
    text-shadow: 0 1px 10px rgba(255, 255, 255, 0.86);
}

.footer {
    min-height: 56px;
    display: grid;
    place-items: center;
    padding: 16px;
    color: var(--muted);
    background: var(--paper);
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 880px) {
    .page-shell,
    .hero {
        min-height: auto;
    }

    .hero {
        align-items: start;
        background-position: center top;
    }

    .hero__content {
        width: min(100% - 28px, 560px);
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 0 22px;
    }

    .intro {
        padding: 18px 0 0;
    }

    h1 {
        font-size: clamp(3rem, 17vw, 5.5rem);
    }

    .subtitle {
        margin-top: 18px;
        font-size: 1.04rem;
        line-height: 1.55;
    }

    .upload-panel {
        padding: 18px;
    }

    .drop-zone {
        min-height: 146px;
    }
}

@media (max-width: 420px) {
    .hero__content {
        width: calc(100% - 20px);
    }

    .upload-panel {
        padding: 14px;
    }

    .file-pill {
        align-items: center;
        gap: 8px;
    }

    .file-pill span:first-child {
        width: 100%;
    }

    .file-list__summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 700px) {
    html {
        scroll-behavior: smooth;
    }

    .page-shell,
    .hero {
        min-height: auto;
    }

    .hero {
        display: block;
        overflow: visible;
        background: var(--paper);
    }

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 100vh;
        height: 100svh;
        background:
            linear-gradient(180deg, rgba(255, 250, 245, 0.16), rgba(255, 250, 245, 0.38) 54%, rgba(255, 250, 245, 0.78)),
            url("sara-juanma-bg-v5.png") center top / cover no-repeat;
    }

    .hero__shade {
        display: none;
    }

    .hero__content {
        width: 100%;
        display: block;
        padding: 0;
    }

    .intro {
        position: relative;
        z-index: 1;
        min-height: 100vh;
        min-height: 100svh;
        max-width: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 42px 24px 116px;
    }

    .eyebrow {
        color: var(--wine-dark);
        text-shadow: 0 1px 18px rgba(255, 255, 255, 0.9);
    }

    h1 {
        max-width: 10ch;
        color: #211b18;
        font-size: clamp(4.4rem, 23vw, 7.2rem);
        text-shadow: 0 2px 24px rgba(255, 255, 255, 0.55);
    }

    .subtitle {
        max-width: 92%;
        color: #312924;
        font-size: clamp(1.2rem, 5vw, 1.55rem);
        line-height: 1.45;
        text-shadow: 0 1px 18px rgba(255, 255, 255, 0.86);
    }

    .mobile-upload-link {
        position: absolute;
        right: 24px;
        bottom: 30px;
        left: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 46px;
        border: 1px solid rgba(255, 255, 255, 0.56);
        border-radius: 999px;
        color: #fff;
        background: rgba(94, 41, 50, 0.84);
        box-shadow: 0 12px 34px rgba(33, 27, 22, 0.22);
        font-weight: 850;
        text-decoration: none;
    }

    .mobile-upload-link span {
        font-size: 1.25rem;
        line-height: 1;
    }

    .upload-panel {
        position: relative;
        z-index: 2;
        width: 100%;
        scroll-margin-top: 12px;
        border: 0;
        border-radius: 0;
        padding: 28px 24px 32px;
        background: var(--paper);
        box-shadow: 0 -14px 38px rgba(33, 27, 22, 0.08);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .field input,
    .field textarea,
    .drop-zone,
    .file-pill {
        background: rgba(255, 255, 255, 0.86);
    }

    .privacy-note {
        margin-bottom: 0;
    }
}
