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

:root {
    --bg-color: #F7FCFB;
    --text-primary: #0A112B;
    --text-secondary: #475569;
    --accent-green: #25C980;
    --accent-green-hover: #1eb370;
    --border-subtle: rgba(10, 17, 43, 0.08);
    --container-padding: clamp(20px, 5vw, 64px);
    --max-width: 1440px;
}

::selection {
    background: var(--accent-green);
    color: var(--bg-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background-color: var(--bg-color);
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-color);
    background-image: url("/images/fondo-669b0a91d4f6da28237af66643267992.png?vsn=d");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    font-family: "Montserrat", sans-serif;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
}

/* =========================================================
   1. ELEMENTOS COMUNES (Header, Botones, Tags, Animación)
   ========================================================= */

.header {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--container-padding);
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: clamp(17px, 2vw, 24px);
    letter-spacing: -0.5px;
}

.green {
    color: var(--accent-green);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--accent-green);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 26px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(37, 201, 128, 0.42);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -5px rgba(37, 201, 128, 0.52);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(10, 17, 43, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #ffffff;
    border-color: var(--accent-green);
    color: #138a54;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-subtle);
    padding: 5px 14px 5px 5px;
    border-radius: 999px;
    font-family: inherit;
    color: inherit;
    transition: all 0.2s ease;
}

button.user-profile {
    cursor: pointer;
}

button.user-profile:hover {
    border-color: var(--accent-green);
    background: #ffffff;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--text-primary);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--accent-green);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Etiquetas de color de usuarios */
.tag-green  { background: #dcfce7; color: #166534; }
.tag-blue   { background: #dbeafe; color: #1e40af; }
.tag-amber  { background: #fef3c7; color: #92400e; }
.tag-purple { background: #f3e8ff; color: #6b21a8; }

/* Punto animado en vivo */
.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 201, 128, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(37, 201, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 201, 128, 0); }
}

/* =========================================================
   2. LANDING PAGE (index / /)
   ========================================================= */

.github-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-subtle);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.github-link:hover {
    color: var(--text-primary);
    border-color: rgba(10, 17, 43, 0.2);
    transform: translateY(-1px);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    padding: 20px var(--container-padding) 60px;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
}

.hero-content {
    max-width: 640px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(37, 201, 128, 0.12);
    color: #138a54;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.1rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.subtitle {
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 36px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-group .btn-primary {
    font-size: 16px;
    padding: 16px 32px;
}

.cta-note {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.hero-preview {
    flex: 1;
    max-width: 500px;
    width: 100%;
}

.preview-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 20px 40px -15px rgba(10, 17, 43, 0.1);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.preview-title {
    font-weight: 700;
    font-size: 16px;
}

.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #138a54;
}

.preview-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: #ffffff;
    border: 1px solid rgba(10, 17, 43, 0.06);
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, transform 0.1s ease;
}

.item:hover {
    border-color: rgba(37, 201, 128, 0.4);
}

.checkbox {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.checkbox.checked {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.item.checked .item-name {
    text-decoration: line-through;
    color: #94a3b8;
}

.user-tag {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

/* =========================================================
   3. DASHBOARD DE LISTAS (HomeLive / /listas)
   ========================================================= */

.dashboard {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 24px var(--container-padding) 64px;
}

.dashboard-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #138a54;
    margin-bottom: 8px;
}

.dashboard h1 {
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.8px;
}

.lists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.list-card {
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 30px -15px rgba(10, 17, 43, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.list-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 201, 128, 0.45);
    box-shadow: 0 20px 35px -15px rgba(10, 17, 43, 0.14);
}

.list-card.completed {
    opacity: 0.85;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.list-icon {
    width: 44px;
    height: 44px;
    background-color: #F1F5F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.badge-live,
.badge-shared,
.badge-done {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
}

.badge-live {
    background-color: rgba(37, 201, 128, 0.12);
    color: #138a54;
}

.badge-shared {
    background-color: #f1f5f9;
    color: var(--text-secondary);
}

.badge-done {
    background-color: #dcfce7;
    color: #166534;
}

.list-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 6px;
}

.list-meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 22px;
}

.progress-section {
    margin-bottom: 22px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-count {
    color: var(--text-primary);
    font-weight: 700;
}

.card-footer {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(10, 17, 43, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.members {
    display: flex;
    align-items: center;
}

.member-pill {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    margin-left: -6px;
}

.member-pill:first-child {
    margin-left: 0;
}

.open-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-green);
}

.new-list-card {
    background: rgba(255, 255, 255, 0.55);
    border: 2px dashed rgba(10, 17, 43, 0.16);
    border-radius: 20px;
    padding: 24px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.new-list-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent-green);
    transform: translateY(-4px);
}

.plus-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(37, 201, 128, 0.15);
    color: var(--accent-green);
    font-size: 26px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.new-list-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.new-list-card p {
    font-size: 13px;
    color: var(--text-secondary);
    max-width: 220px;
    line-height: 1.4;
}

/* Modales nativos <dialog> con fondo oscuro */
.modal {
    margin: auto;
    border: none;
    border-radius: 24px;
    padding: 0;
    max-width: 440px;
    width: calc(100% - 32px);
    background: #ffffff;
    color: var(--text-primary);
    box-shadow: 0 25px 50px -12px rgba(10, 17, 43, 0.25);
}

.modal[open] {
    position: fixed;
    inset: 0;
    margin: auto;
    z-index: 100;
    box-shadow: 0 0 0 100vmax rgba(10, 17, 43, 0.45), 0 25px 50px -12px rgba(10, 17, 43, 0.25);
}

.modal::backdrop {
    background: rgba(10, 17, 43, 0.45);
    backdrop-filter: blur(4px);
}

.modal-box {
    padding: 28px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 800;
}

.modal-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
}

.modal-close:hover {
    background: #e2e8f0;
    color: var(--text-primary);
}

.modal-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 22px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.input-field {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(10, 17, 43, 0.14);
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    border-color: var(--accent-green);
}

.code-input {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 18px;
    text-align: center;
}

.emoji-picker {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.emoji-option input {
    display: none;
}

.emoji-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    font-size: 20px;
    background: #f8fafc;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.emoji-option input:checked + span {
    background: rgba(37, 201, 128, 0.12);
    border-color: var(--accent-green);
}

.color-picker {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.color-option input {
    display: none;
}

.color-option {
    border-radius: 10px;
    cursor: pointer;
    text-transform: none !important;
}

.color-option span {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    border: 2px solid transparent;
}

.color-option input:checked + span {
    border-color: var(--text-primary);
}

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

/* =========================================================
   4. VISTA DE LISTA EN TIEMPO REAL (ListaLive / /lista/:codigo)
   ========================================================= */

.btn-invite {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(10, 17, 43, 0.1);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 14px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-invite:hover {
    border-color: var(--accent-green);
    background: #ffffff;
}

.btn-invite.copied {
    border-color: var(--accent-green);
    background: #dcfce7;
    color: #166534;
}

.list-workspace {
    flex: 1;
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 12px 20px 64px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.back-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--text-primary);
}

.sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #138a54;
    background: rgba(37, 201, 128, 0.12);
    padding: 6px 12px;
    border-radius: 999px;
}

.list-container {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: clamp(20px, 4vw, 36px);
    box-shadow: 0 20px 45px -15px rgba(10, 17, 43, 0.09);
}

.list-container .progress-bar {
    margin-bottom: 28px;
}

.list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.title-block {
    display: flex;
    align-items: center;
    gap: 16px;
}

.list-emoji {
    width: 54px;
    height: 54px;
    background-color: #F1F5F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}

.list-header h1 {
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.list-stats {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.presence-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.presence-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.presence-users {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.presence-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    background-color: #ffffff;
}

.presence-chip.online {
    border-color: rgba(37, 201, 128, 0.4);
    box-shadow: 0 2px 8px rgba(37, 201, 128, 0.12);
}

.presence-chip.offline {
    opacity: 0.55;
    background-color: #f8fafc;
}

.chip-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--accent-green);
}

.add-item-form {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.add-item-form input {
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    background-color: #F8FAFC;
    border: 1px solid rgba(10, 17, 43, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.add-item-form input:focus {
    background-color: #ffffff;
    border-color: var(--accent-green);
}

.input-name {
    flex: 1;
}

.input-qty {
    width: 150px;
}

.btn-add {
    background-color: var(--accent-green);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 20px -5px rgba(37, 201, 128, 0.4);
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-add:hover {
    background-color: var(--accent-green-hover);
    transform: translateY(-1px);
}

.items-section {
    margin-bottom: 28px;
}

.items-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.section-header .section-label {
    margin-bottom: 0;
}

.clear-btn {
    background: none;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    cursor: pointer;
}

.clear-btn:hover {
    text-decoration: underline;
}

.items-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.empty-msg {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px dashed rgba(10, 17, 43, 0.12);
}

.item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background-color: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    transition: border-color 0.2s ease, transform 0.15s ease;
}

.item-row:hover {
    border-color: rgba(37, 201, 128, 0.4);
}

.check-btn {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid #cbd5e1;
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.check-btn:hover {
    border-color: var(--accent-green);
}

.check-btn.checked {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
}

.item-details {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex: 1;
    flex-wrap: wrap;
}

.item-title {
    font-size: 15px;
    font-weight: 600;
}

.item-qty {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    background-color: #f1f5f9;
    padding: 2px 8px;
    border-radius: 6px;
}

.item-row.checked {
    background-color: #f8fafc;
    opacity: 0.75;
}

.item-row.checked .item-title {
    text-decoration: line-through;
    color: #94a3b8;
}

.added-by {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.delete-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.delete-btn:hover {
    color: #ef4444;
    background-color: #fee2e2;
}

/* =========================================================
   5. RESPONSIVE (Tablet y Móvil)
   ========================================================= */

@media screen and (max-width: 960px) {
    .hero {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding-top: 10px;
    }

    .hero-preview {
        max-width: 100%;
    }
}

@media screen and (max-width: 720px) {
    .input-field,
    .add-item-form input {
        font-size: 16px;
    } 
    
    .presence-box {
        align-items: flex-start;
    }

    .add-item-form {
        flex-direction: column;
    }

    .input-qty {
        width: 100%;
    }

    .btn-add {
        justify-content: center;
    }

    .added-by {
        font-size: 10px;
        padding: 3px 8px;
    }
}

@media screen and (max-width: 600px) {
    .btn-secondary .btn-text {
        display: none;
    }

    .dashboard-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-top .btn-primary {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .header {
        height: 76px;
        gap: 8px;
    }

    .logo {
        font-size: 15px;
    }

    .user-profile {
        padding: 4px;
    }

    .user-name {
        display: none;
    }

    .btn-invite {
        padding: 8px 10px;
        font-size: 12px;
    }
}