:root {
    color-scheme:light;
    --cream:#fff8ef;
    --navy:#1e3554;
    --muted:#78869a;
    --orange:#fa7c1b;
    --line:#ecdfd0;
}
* {
    box-sizing:border-box;
}
[hidden] {
    display:none!important;
}
body {
    margin:0;
    background:var(--cream);
    color:var(--navy);
    font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height:1.5;
}
button,input {
    font:inherit;
}
button,a,input {
    touch-action:manipulation;
}
button {
    cursor:pointer;
}
button:disabled {
    cursor:wait;
    opacity:.6;
}
button:focus-visible,a:focus-visible,input:focus-visible {
    outline:3px solid #3272ac;
    outline-offset:4px;
}
button {
    border:0;
}
h1,h2,p {
    margin-top:0;
}
h1 {
    font-size:clamp(25px,5.8vw,34px);
    line-height:1.15;
    letter-spacing:.01em;
}
h1[tabindex],h2[tabindex] {
    outline:0;
}
.page {
    max-width:620px;
    margin:auto;
    min-height:100svh;
    padding:26px 24px 24px;
}
.page>h1,.subtitle {
    text-align:center;
}
.subtitle {
    color:var(--muted);
    font-size:14px;
    line-height:1.7;
    margin-bottom:32px;
}
header {
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    min-height:40px;
    margin-bottom:32px;
}
.back {
    position:absolute;
    left:0;
    background:transparent;
    color:var(--navy);
    font-size:40px;
    line-height:1;
    min-width:44px;
    min-height:44px;
}
.primary,.secondary {
    display:block;
    text-align:center;
    width:100%;
    padding:17px 18px;
    border-radius:36px;
    font-weight:750;
    font-size:17px;
    line-height:1.35;
    box-shadow:0 8px 20px #4c35151c;
}
.primary {
    background:var(--orange);
    color:#fff;
}
.secondary {
    background:#fff;
    border:1px solid var(--line);
    color:var(--navy);
}
.actions {
    display:grid;
    gap:14px;
    margin-top:28px;
}
.home {
    min-height:100svh;
    color:#fff;
    background:linear-gradient(180deg,#0005 0%,#0001 36%,#0000 60%,#000b 100%),url('fondo.png') center 48%/cover no-repeat;
    background-color:#231608;
}
.home-content {
    max-width:620px;
    min-height:100svh;
    margin:auto;
    display:flex;
    flex-direction:column;
    padding:24px 26px 28px;
}
.home-heading {
    text-align:center;
    margin-top:32px;
    text-shadow:0 2px 7px #000b;
}
.home h1 {
    font-size:clamp(28px,7.4vw,46px);
    font-weight:850;
    margin-bottom:12px;
}
.home h1 em {
    display:block;
    font:italic 1.25em Georgia,serif;
    letter-spacing:-.02em;
}
.home-heading p {
    font-size:clamp(16px,3.8vw,21px);
    line-height:1.35;
}
.home-actions {
    margin-top:auto;
    padding-top:300px;
    text-align:center;
}
.home-actions p {
    font-size:19px;
    font-weight:650;
    margin-bottom:12px;
    text-shadow:0 2px 5px #000;
}
.home-actions small {
    display:block;
    margin-top:14px;
    color:#eee;
}
.field {
    display:block;
    font-size:14px;
    font-weight:750;
    margin-bottom:24px;
}
.field input {
    display:block;
    width:100%;
    min-width:0;
    margin-top:8px;
    padding:18px;
    border:1px solid var(--line);
    border-radius:15px;
    background:#fff;
    color:var(--navy);
    font-weight:400;
    font-size:15px;
}
.field input::placeholder {
    color:#9ca6b5;
}
fieldset {
    border:0;
    padding:0;
    margin:28px 0 22px;
    min-width:0;
}
legend {
    font-weight:750;
    font-size:16px;
    padding:0;
}
.hint {
    font-size:11px;
    color:var(--muted);
    margin:6px 0 16px;
}
.centered {
    text-align:center;
}
.messengers {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}
.messenger {
    background:#fff;
    border:2px solid var(--line);
    border-radius:18px;
    padding:5px;
    overflow:hidden;
    box-shadow:0 7px 20px #4c35151a;
    cursor:pointer;
}
.messenger:has(input:checked) {
    border-color:var(--orange);
}
.messenger:focus-within {
    outline:3px solid #3272ac;
    outline-offset:3px;
}
.messenger img {
    display:block;
    width:100%;
    height:auto;
    aspect-ratio:400/296;
    object-fit:cover;
    border-radius:12px;
}
.messenger span {
    display:flex;
    align-items:center;
    gap:7px;
    padding:14px 5px;
    font-size:14px;
    font-weight:750;
}
.messenger input {
    accent-color:var(--orange);
    width:19px;
    height:19px;
    margin:0;
    flex-shrink:0;
}
footer {
    margin-top:44px;
    padding-top:24px;
    text-align:center;
    color:var(--muted);
    font-size:10px;
}
footer:before {
    content:"";
    display:block;
    width:160px;
    height:1px;
    background:var(--line);
    margin:0 auto 22px;
}
.error {
    color:#a33421;
    font-size:14px;
    overflow-wrap:anywhere;
}
.error:empty {
    display:none;
}
.record-panel {
    padding:28px 18px;
    border:1px solid var(--line);
    border-radius:22px;
    background:#fff;
    text-align:center;
}
.sparkle {
    display:block;
    font-size:52px;
    color:var(--orange);
    margin-bottom:14px;
}
audio,video {
    display:block;
    width:100%;
    max-height:65svh;
    border-radius:15px;
}
audio {
    margin:18px auto;
}
video {
    background:#171717;
}
video[hidden],audio[hidden] {
    display:none;
}
.thanks-image {
    display:block;
    width:100%;
    aspect-ratio:1.65;
    object-fit:cover;
    object-position:center 46%;
    border-radius:22px;
    box-shadow:0 8px 24px #4c351530;
}
.check {
    display:grid;
    place-items:center;
    width:58px;
    height:58px;
    background:#e6f1e8;
    color:#5d8870;
    border-radius:50%;
    font-size:44px;
    margin:12px auto 22px;
    line-height:1;
}
.thanks .actions {
    margin-top:42px;
}
a {
    color:var(--navy);
    overflow-wrap:anywhere;
}
#share-status {
    text-align:center;
    font-size:14px;
    margin-top:18px;
}
dialog {
    width:min(650px,calc(100% - 20px));
    height:90svh;
    padding:0;
    border:1px solid var(--line);
    border-radius:20px;
    background:var(--cream);
    color:var(--navy);
}
dialog::backdrop {
    background:#142333b8;
}
.dialog-header {
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px;
    gap:12px;
}
.dialog-header button {
    width:auto;
    padding:10px 18px;
    font-size:14px;
}
iframe {
    border:0;
    width:100%;
    height:calc(100% - 75px);
}
.messenger-poster {
    display:block;
    width:100%;
    height:auto;
    border-radius:20px;
}
.intro-caption {
    text-align:center;
}
.recipient .primary,.recipient .secondary {
    margin-top:24px;
}
.recipient h2 {
    text-align:center;
}
.recipient footer {
    margin-top:36px;
}
.recipient-invitation {
    margin-top:48px;
    text-align:center;
    color:#000;
}
.recipient-invitation h3 {
    margin:0 0 10px;
    color:#4b4b4b;
    font-size:16px;
    font-weight:800;
    line-height:1.35;
}
.recipient-invitation p {
    margin:0 0 10px;
    font-size:13px;
    line-height:1.3;
}
.recipient-download {
    display:inline-block;
    max-width:100%;
    padding:8px 36px;
    border-radius:5px;
    background:var(--orange);
    color:#fff;
    font-size:12px;
    font-weight:700;
    line-height:1.35;
    text-decoration:none;
}
@media(min-width:700px) {
    .home {
        background-size:auto 100%;
        background-color:#24190f;
    }
    .home-content {
        background:linear-gradient(180deg,#0003,#0000 50%,#0006);
    }
    .page {
        padding-left:32px;
        padding-right:32px;
    }
}
@media(max-width:360px) {
    .page {
        padding-left:16px;
        padding-right:16px;
    }
    .messengers {
        gap:10px;
    }
    .messenger span {
        font-size:12px;
        gap:5px;
    }
    .home-content {
        padding-left:18px;
        padding-right:18px;
    }
    .home-actions {
        padding-top:260px;
    }
    .primary,.secondary {
        font-size:15px;
    }
}
@media(prefers-reduced-motion:no-preference) {
    button {
        transition:background-color .15s,opacity .15s;
    }
    button:hover {
        filter:brightness(.97);
    }
}

#upload-progress, #compression-progress {
    display: block;
    width: 100%;
    height: 16px;
    margin: 20px 0;
    accent-color: var(--orange);
}
