/* Reset suave */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f4f6f8;
    color: #222;
}

/* Layout */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 16px;
}

header {
    background: #111;
    color: #fff;
    padding: 14px 16px;
}

header h1 {
    margin: 0;
    font-size: 20px;
}

/* Textos */
h1, h2, h3 {
    margin-top: 0;
}

small {
    color: #666;
}

/* Formularios */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    padding: 5px 16px;
    border: none;
    border-radius: 6px;
    background: #111;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

button.secondary {
    background: #ddd;
    color: #111;
}

/* Listas */
ul {
    list-style: none;
    padding: 0;
}

li {
    background: #fff;
    padding: 2px;
    margin-bottom: 5px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

li a {
    text-decoration: none;
    color: #111;
    flex-grow: 1;
}

/* Iconos */
.icon-btn {
    background: transparent;
    color: #111;
    padding: 4px;
    font-size: 18px;
}

/* Estados */
.comprado {
    text-decoration: line-through;
    color: #888;
}

/* Enlaces */
a {
    color: #0066cc;
    text-decoration: none;
}
.button {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 6px;
    background: #111;
    color: #fff;
    text-decoration: none;
}

.button.secondary {
    background: #ddd;
    color: #111;
}
/* Auth (login / register) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f8;
}

.auth-card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.auth-card h1 {
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.auth-card button {
    width: 100%;
}

.auth-links {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
}

.auth-links a {
    font-weight: 500;
}
ul li {
    color: #000;
}
.btn-menu {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* OVERLAY */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

/* PANEL */
.menu-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100%;
    background: #111;
    color: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

/* HEADER */
.menu-header {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #333;
}

/* CONTENIDO */
.menu-content {
    padding: 10px;
}

.menu-item {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 15px;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
}

.menu-item:hover {
    background: #222;
}
.menu-content a.menu-item {
    display: block;
    text-decoration: none;
}

/* UTIL */
.hidden {
    display: none;
}
#bloqueParticipantes {
    background: #111;
    color: #fff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 10px;
}
.btn-whatsapp {
    display: block;
    margin-top: 10px;
    padding: 10px;
    background: #25D366;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn-whatsapp:hover {
    opacity: 0.9;
}
.add-product-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.add-product-fixed form {
    display: flex;
    gap: 10px;
}

.add-product-fixed input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.add-product-fixed button {
    padding: 10px 15px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 6px;
}
.add-list-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

.add-list-fixed form {
    display: flex;
    gap: 10px;
}

.add-list-fixed input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.add-list-fixed button {
    padding: 10px 15px;
    border: none;
    background: #000;
    color: #fff;
    border-radius: 6px;
}
.acciones-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 14px;
    font-size: 14px;
}

.acciones-inline form {
    margin: 0;
}

.acciones-link {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #444;
    cursor: pointer;
}

.acciones-link:hover {
    text-decoration: underline;
}

.acciones-separador {
    color: #999;
}
/* Productos pendientes (importantes) */
.producto-nombre {
    font-weight: 600;
    color: #111;
}

.producto-nombre.comprado {
    text-decoration: line-through;
    color: #999;
    opacity: 0.6;
    font-weight: 400;
}