/* Portal de envio de documentos · HostGator Afiliados */
:root { --blue: #1f5ff0; --blue-d: #0b3ad0; --navy: #0b1a3f; --ink: #111827; --muted: #5b6577; --line: #dde3ed; --bg: #f3f6fb; --ok: #12a150; --bad: #dc2626; --yellow: #ffc21a; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); background-image: radial-gradient(1200px 500px at 85% -10%, #cfe0ff 0, transparent 60%), radial-gradient(900px 400px at -10% 110%, #dbe8ff 0, transparent 60%); min-height: 100vh; }
.wrap { max-width: 760px; margin: 0 auto; padding: 1.2rem 1rem 2rem; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.15)); }
.brand strong { display: block; font-size: 1.25rem; color: var(--navy); letter-spacing: -.01em; }
.brand span { display: block; font-size: .82rem; color: var(--muted); }
.lang { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #e6ebf3; }
.lang a { padding: .3rem .7rem; border-radius: 8px; font-weight: 700; font-size: .82rem; color: var(--muted); text-decoration: none; }
.lang a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.hero { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: 1rem; border-radius: 18px; color: #fff; background: linear-gradient(120deg, var(--navy), var(--blue-d) 60%, var(--blue)); box-shadow: 0 14px 30px rgba(11,58,208,.25); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 10px; border-top: 2px dashed var(--yellow); opacity: .7; }
.hero h1 { margin: 0 0 .3rem; font-size: clamp(1.3rem, 1rem + 1.4vw, 1.75rem); line-height: 1.2; }
.hero p { margin: 0; opacity: .9; }
.snap-hero { flex: none; width: 130px; height: 130px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0,0,0,.3)); animation: float 3.2s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px) rotate(2deg); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.3rem 1.4rem; box-shadow: 0 8px 24px rgba(15,23,42,.06); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; }
.grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 650; font-size: .9rem; margin: .6rem 0 .3rem; }
label small { font-weight: 500; color: var(--muted); }
input, select, textarea { width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,95,240,.2); border-color: var(--blue); }
fieldset.kinds { border: 0; padding: 0; margin: .8rem 0 0; }
fieldset.kinds legend { font-weight: 650; font-size: .9rem; margin-bottom: .4rem; padding: 0; }
.kind { display: inline-flex; align-items: center; gap: .45rem; margin: 0 .4rem .4rem 0; padding: .55rem .85rem; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.kind input { width: auto; margin: 0; accent-color: var(--blue); }
.kind:has(input:checked) { border-color: var(--blue); background: #eef4ff; }
.drop { position: relative; display: flex; align-items: center; gap: .7rem; margin: 0; padding: .6rem .8rem; border: 1.5px dashed #b9c6da; border-radius: 12px; cursor: pointer; font-weight: 500; background: #fafcff; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { padding: .35rem .7rem; border-radius: 8px; background: var(--blue); color: #fff; font-size: .85rem; white-space: nowrap; }
.drop span { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drop.has span { color: var(--ink); font-weight: 600; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 500; margin: 1rem 0; }
.check input { width: auto; margin-top: .25rem; accent-color: var(--blue); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; padding: .85rem 1.2rem; border: 0; border-radius: 12px; background: var(--ok); color: #fff; font: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; text-decoration: none; box-shadow: 0 8px 18px rgba(18,161,80,.25); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn.ghost { width: auto; background: #fff; color: var(--blue); border: 1.5px solid var(--blue); box-shadow: none; }
.btn.loading { opacity: .6; pointer-events: none; }
.alert { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 12px; background: #fdecec; color: #8a1c1c; border: 1px solid #f5b5b5; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .82rem; text-align: center; margin: .8rem 0 0; }
.small a { color: var(--blue); }
.hp { position: absolute; left: -9999px; }
.done { text-align: center; }
.snap-big { width: 170px; height: 170px; object-fit: contain; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both, float 3.2s .6s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.5) rotate(-8deg); } to { opacity: 1; transform: none; } }
.done h1 { margin: .4rem 0; color: var(--ok); }
.proto { display: inline-block; padding: .5rem 1rem; border-radius: 10px; background: #eef4ff; color: var(--navy); font: 700 1.2rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.foot { margin-top: 1.2rem; text-align: center; font-size: .8rem; color: var(--muted); }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } .snap-hero { width: 90px; height: 90px; } .hero { padding: 1rem; } .card { padding: 1rem; } }
@media (prefers-reduced-motion: reduce) { .snap-hero, .snap-big { animation: none; } }
