* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f4f4;
    color: #111;
}

.app {
    width: min(1100px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 0 0 32px;
}

.panel {
    display: grid;
    gap: 20px;
}

.card,
.total-card {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field label {
    font-weight: 700;
    font-size: 14px;
}

.field input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 14px;
    padding: 14px 15px;
    font-size: 16px;
    outline: none;
}

.field input:focus {
    border-color: #111;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-head h2 {
    margin-bottom: 0;
}

button {
    border: none;
    cursor: pointer;
    font-weight: 800;
    border-radius: 14px;
    padding: 13px 18px;
    background: #111;
    color: #fff;
    transition: 0.2s;
}

button:hover {
    transform: translateY(-2px);
}

.productos {
    display: grid;
    gap: 14px;
}

.producto-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
    background: #f7f7f7;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    padding: 16px;
}

.producto-item .field input {
    background: #fff;
}

.remove-btn {
    background: #000000;
    height: 48px;
    padding: 0 16px;
}

.total-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: #111;
    color: #fff;
}

.total-card span {
    display: block;
    color: #cfcfcf;
    font-size: 15px;
    margin-bottom: 5px;
}

.total-card strong {
    font-size: 34px;
}

.pdf-btn {
    background: #fff;
    color: #111;
    font-size: 16px;
    padding: 16px 22px;
}

@media (max-width: 850px) {
    .app {
        width: min(100% - 24px, 1100px);
        margin-top: 24px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .producto-item {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: stretch;
    }

    .section-head button {
        width: 100%;
    }

    .total-card {
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-btn {
        width: 100%;
    }
}

.beta-banner {
    background: linear-gradient(135deg, #111, #2b2b2b);
    color: #fff;
    border-radius: 24px;
    padding: 26px;
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.beta-banner span {
    display: inline-block;
    background: #ffffff;
    color: #111111;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.beta-banner h2 {
    font-size: 26px;
    margin-bottom: 8px;
}

.beta-banner p {
    color: #d6d6d6;
    font-size: 15px;
    line-height: 1.5;
    max-width: 650px;
}

.beta-banner a {
    background: #fff;
    color: #111;
    text-decoration: none;
    font-weight: 900;
    padding: 14px 18px;
    border-radius: 14px;
    white-space: nowrap;
    transition: 0.2s;
}

.beta-banner a:hover {
    transform: translateY(-2px);
}

@media (max-width: 850px) {
    .beta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .beta-banner a {
        width: 100%;
        text-align: center;
    }
}

/* INPUT LOGO */

input[type="file"] {
    background: #111111;
    color: #ffffff;

    border: none;
    border-radius: 16px;

    padding: 14px;
    cursor: pointer;

    font-size: 14px;
    font-weight: 700;

    transition: 0.25s;

    overflow: hidden;
}

input[type="file"]:hover {
    background: #1d1d1d;
    transform: translateY(-2px);
}

input[type="file"]::file-selector-button {
    background: #ffffff;
    color: #111111;

    border: none;
    border-radius: 12px;

    padding: 10px 14px;
    margin-right: 14px;

    font-weight: 800;
    cursor: pointer;

    transition: 0.25s;
}

input[type="file"]::file-selector-button:hover {
    background: #e9e9e9;
}