:root {
    --color-principal: #892731;
    --color-fondo: #EFE9DF;
    --color-texto: #333333;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 28px;
    max-width: 700px;
    width: 100%;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-header h1 {
    margin: 0;
    font-size: 1.6rem;
    color: var(--color-principal);
}

.card-header p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #555;
}

.logo-wrapper {
    margin-bottom: 20px;
}

.logo-wrapper img {
    max-height: 50px;       /* ajusta tamaño a tu gusto */
    width: auto;
    display: inline-block;
}

.step-title {
    font-weight: 600;
    margin: 18px 0 8px;
    color: var(--color-principal);
}

label {
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

input[type="text"],
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    background-color: var(--color-principal);
    color: #ffffff;
    transition: transform 0.05s ease, box-shadow 0.05s ease, opacity 0.1s;
}

.btn:active {
    transform: translateY(1px);
    box-shadow: none;
    opacity: 0.9;
}

.btn-secondary {
    background-color: #ccc;
    color: #333;
}

.actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.alert {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.alert-error {
    background: #ffe5e5;
    color: #8b0000;
}

.alert-success {
    background: #e5ffe9;
    color: #006b2e;
}

.order-info {
    margin-top: 10px;
    font-size: 0.9rem;
    background: #faf6f3;
    border-radius: 10px;
    padding: 10px 12px;
}

.order-info p {
    margin: 2px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.9rem;
}

thead {
    background-color: var(--color-principal);
    color: #ffffff;
}

th, td {
    padding: 8px 6px;
    text-align: left;
}

tbody tr:nth-child(odd) {
    background-color: #f9f3ef;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.qty-input {
    width: 70px;
}

.small-text {
    font-size: 0.8rem;
    color: #777;
    margin-top: 6px;
}

.hidden {
    display: none;
}

@media (max-width: 600px) {
    .card {
        padding: 18px 16px;
    }

    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tbody tr {
        margin-bottom: 8px;
        border-radius: 8px;
        overflow: hidden;
    }

    tbody td {
        padding: 6px 10px;
        display: flex;
        justify-content: space-between;
        gap: 10px;
    }

    tbody td::before {
        content: attr(data-label);
        font-weight: 600;
    }

    .qty-input {
        width: 80px;
    }

    .actions {
        justify-content: center;
    }
}
