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

:root {
    --orange: #f4721e;
    --orange-light: #ff9a45;
    --yellow: #ffd60a;
    --blue: #1d4ed8;
    --blue-light: #3b6ef0;
    --black: #111111;
    --white: #ffffff;
    --bg: #fafafa;
    --card-bg: #ffffff;
    --text-main: #111111;
    --text-muted: #666666;
    --border: #e5e5e5;
    --error: #dc2626;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Inter', Verdana, sans-serif;
}

body {
    background: var(--bg);
    background-image:
        radial-gradient(ellipse at 10% 0%, rgba(244, 114, 30, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 100%, rgba(255, 214, 10, 0.1) 0%, transparent 50%);
    color: var(--text-main);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100dvh;
    line-height: 1.5;
}

/* ── Card ── */
.container {
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 20px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 50px rgba(0, 0, 0, 0.08);
    padding: 40px 36px;
    width: 100%;
    max-width: 480px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* acento naranja en el top de la card */
.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange-light));
}

/* ── Heading ── */
h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--black);
    margin-bottom: 8px;
}

h1 span {
    background: linear-gradient(135deg, var(--orange), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 28px;
}

/* ── Input ── */
.input-group {
    margin-bottom: 16px;
    position: relative;
}

input {
    width: 100%;
    padding: 14px 16px;
    background: #f5f5f5;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder {
    color: #aaaaaa;
}

input:focus {
    border-color: var(--orange);
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(244, 114, 30, 0.15);
}

/* ── Button ── */
button {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: all 0.25s;
    width: 100%;
    margin-bottom: 8px;
    box-shadow: 0 4px 16px rgba(244, 114, 30, 0.35);
}

button:hover {
    background: var(--orange-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(244, 114, 30, 0.45);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(244, 114, 30, 0.3);
}

/* ── Error ── */
.error {
    color: var(--error);
    margin-top: 10px;
    font-size: 0.88rem;
    min-height: 20px;
}

/* ── QR Card ── */
.qr-container {
    margin: 24px 0 8px;
    padding: 24px;
    border-radius: 14px;
    background: #f9f9f9;
    border: 1.5px solid var(--border);
    display: none;
}

#qr-image {
    max-width: 100%;
    height: auto;
    border: 8px solid var(--white);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ── Download button ── */
.download-button {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    text-decoration: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 16px;
    transition: all 0.25s;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.download-button:hover {
    background: var(--blue-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.4);
}

/* ── Instructions ── */
.instructions {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ── Footer ── */
footer {
    margin-top: 28px;
    font-size: 0.82rem;
    color: var(--text-muted);
    letter-spacing: 0.2px;
}

footer a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

footer a:hover {
    color: var(--blue);
}
