@import url('https://fonts.googleapis.com/css2?family=Anton&family=Archivo:wght@400;600;700;800&display=swap');

:root {
    --rojo: #c83232;
    --tinta: #211d1b;
    --crema: #fff8ed;
    --verde: #285c46
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--crema);
    color: var(--tinta);
    font-family: Archivo, Arial, sans-serif
}

.app-wrap {
    width: min(1100px, 92%);
    margin: 36px auto
}

.app-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px
}

.app-brand {
    font: 38px Anton, sans-serif;
    color: var(--rojo);
    text-decoration: none
}

.app-nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.app-nav a {
    color: var(--tinta);
    font-weight: 700
}

.panel {
    background: white;
    border: 1px solid #eadfce;
    border-radius: 18px;
    padding: 24px;
    margin: 18px 0;
    box-shadow: 0 8px 25px #3623130d
}

h1,
h2,
h3 {
    font-family: Anton, sans-serif;
    font-weight: 400
}

h1 {
    font-size: clamp(34px, 6vw, 54px);
    margin: 0 0 8px
}

h2 {
    font-size: 28px
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px
}

label {
    display: block;
    font-weight: 700;
    margin: 12px 0 6px
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cfc5b8;
    border-radius: 9px;
    font: inherit;
    background: #fff
}

textarea {
    min-height: 90px
}

button,
.btn-app {
    border: 0;
    border-radius: 30px;
    background: var(--rojo);
    color: white;
    padding: 12px 20px;
    font: 700 15px Archivo;
    cursor: pointer;
    text-decoration: none;
    display: inline-block
}

button:disabled {
    opacity: .55;
    cursor: wait
}

.btn-secondary {
    background: white;
    color: var(--tinta);
    border: 1px solid var(--tinta)
}

.msg {
    min-height: 24px;
    font-weight: 700;
    margin: 12px 0
}

.msg[data-tipo=error] {
    color: #b42318
}

.msg[data-tipo=ok] {
    color: var(--verde)
}

.product-card,
.order-card {
    border: 1px solid #eee0d0;
    border-radius: 14px;
    padding: 16px;
    background: #fff
}

.price {
    font-weight: 800;
    color: var(--rojo);
    font-size: 20px
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff
}

th,
td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #eee
}

th {
    background: #f7eee2
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px
}

.actions button {
    padding: 9px 14px;
    font-size: 13px
}

.badge {
    display: inline-block;
    border-radius: 20px;
    padding: 5px 10px;
    background: #f5e6d6;
    font-size: 12px;
    font-weight: 800
}

.muted {
    color: #6b625b
}

.empty {
    padding: 24px;
    text-align: center;
    color: #6b625b
}

@media(max-width:600px) {
    .app-wrap {
        margin: 20px auto
    }

    .panel {
        padding: 17px
    }

    table {
        font-size: 13px
    }

    th,
    td {
        padding: 8px
    }
}

#lista-admin-pedidos {
    overflow-x: auto
}

#lista-admin-pedidos table {
    min-width: 640px
}

/* Formulario: mismas alturas en inputs y selects (el body hereda line-height 1.6) */
input,
select {
    height: 48px;
    line-height: 1.2
}

textarea {
    line-height: 1.4
}

#form-pedido .grid {
    grid-template-columns: repeat(3, 1fr)
}

@media(max-width:700px) {
    #form-pedido .grid {
        grid-template-columns: 1fr
    }
}

/* Menú de cuenta: todo centrado en vertical, más aire y sin subrayado fijo */
.app-nav {
    align-items: center;
    gap: 8px 22px
}

.app-nav a {
    text-decoration: none;
    padding: 6px 0;
    border-bottom: 2px solid transparent
}

.app-nav a:hover,
.app-nav a:focus-visible {
    border-bottom-color: var(--rojo)
}

.app-nav a[aria-current="page"] {
    border-bottom-color: var(--rojo)
}

.app-nav button {
    padding: 10px 18px;
    font-size: 14px
}