body {
    margin: 0;
    overflow: hidden;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

#lod-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    backdrop-filter: blur(5px);
    z-index: 100;
    pointer-events: none;
    font-family: monospace;
    letter-spacing: 1px;
    border-left: 4px solid #22c55e;
}

#instructions {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: #d1d5db;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    backdrop-filter: blur(4px);
    z-index: 100;
    pointer-events: none;
}

.loading-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fbbf24;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    z-index: 101;
    pointer-events: none;
    transition: opacity 0.3s;
    font-family: monospace;
    backdrop-filter: blur(4px);
}

#zoom-info {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: #d1fae5;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-family: monospace;
    z-index: 100;
    pointer-events: none;
}

.admin-access-btn {
    position: fixed;
    top: 56px;
    left: 20px;
    background: rgba(17, 24, 39, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    width: 16px;
    height: 16px;
    padding: 0;
    cursor: pointer;
    z-index: 220;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03), 0 4px 10px rgba(0, 0, 0, 0.22);
}

.admin-access-btn:hover {
    background: rgba(28, 39, 59, 0.96);
    transform: translateY(-1px);
}

.admin-access-btn.active {
    background: rgba(22, 101, 52, 0.92);
    border-color: rgba(110, 231, 183, 0.45);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18), 0 4px 12px rgba(0, 0, 0, 0.26);
}

.admin-login-box {
    position: fixed;
    top: 98px;
    left: 20px;
    width: 248px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
    color: #e5eef8;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    z-index: 230;
}

.admin-login-box.hidden,
#admin-login-form.hidden,
#admin-login-active.hidden,
.admin-login-message.hidden,
.lp-status-badge.hidden,
.lp-admin-editor.hidden,
.lp-admin-message.hidden {
    display: none;
}

.admin-login-title {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.admin-login-input,
.lp-admin-input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    background: rgba(2, 6, 23, 0.58);
    color: #f8fafc;
    padding: 10px 12px;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.admin-login-input + .admin-login-input,
.lp-admin-field + .lp-admin-input,
.lp-admin-input + .lp-admin-field {
    margin-top: 10px;
}

.admin-login-input:focus,
.lp-admin-input:focus {
    border-color: rgba(110, 231, 183, 0.6);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.admin-login-submit,
.admin-logout-submit,
.lp-admin-save {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

.admin-login-submit:hover,
.admin-logout-submit:hover,
.lp-admin-save:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
}

.admin-login-submit {
    margin-top: 12px;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #f0fdf4;
}

.admin-active-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #d1fae5;
    margin-bottom: 10px;
}

.admin-logout-submit {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.32);
}

.admin-login-message,
.lp-admin-message {
    margin-top: 10px;
    border-radius: 12px;
    padding: 9px 10px;
    font-size: 0.82rem;
    line-height: 1.35;
}

.is-error {
    background: rgba(185, 28, 28, 0.18);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.26);
}

.is-success {
    background: rgba(22, 163, 74, 0.18);
    color: #dcfce7;
    border: 1px solid rgba(74, 222, 128, 0.28);
}

.is-info {
    background: rgba(30, 64, 175, 0.18);
    color: #dbeafe;
    border: 1px solid rgba(96, 165, 250, 0.28);
}

.wa-float {
    position: fixed;
    right: 20px;
    bottom: 84px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 14px 28px rgba(18, 140, 126, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 205;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wa-float:hover,
.wa-float:focus-visible {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 32px rgba(18, 140, 126, 0.34), 0 0 0 4px rgba(37, 211, 102, 0.2);
    filter: brightness(1.03);
}

.wa-float svg {
    display: block;
    width: 24px;
    height: 24px;
}

.wa-float::after {
    content: "WhatsApp";
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%) scale(0.96);
    opacity: 0;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.03em;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.wa-float:hover::after,
.wa-float:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.wire-btn {
    position: fixed;
    bottom: 20px;
    right: 140px;
    background: rgba(30, 30, 40, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d5db;
    padding: 8px 18px;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    z-index: 200;
    font-family: monospace;
    transition: all 0.2s ease;
    letter-spacing: 0.5px;
}

.wire-btn:hover {
    background: #2a6f8f;
    color: #ffffff;
    border-color: #88ddff;
}

.wire-btn.active {
    background: #f59e0b;
    color: #1f2937;
    border-color: #fcd34d;
}

.lot-panel {
    position: fixed;
    bottom: 24px;
    left: 24px;
    width: 320px;
    background: rgba(22, 26, 35, 0.92);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    color: #eef2ff;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: transform 0.25s ease, opacity 0.2s ease;
    z-index: 200;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lot-panel.hidden {
    transform: translateX(-120%);
    opacity: 0;
    pointer-events: none;
}

.lot-panel.visible {
    transform: translateX(0);
    opacity: 1;
}

#lp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #166534 0%, #0f3d26 100%);
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#lp-header h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.2px;
}

.lp-close {
    background: none;
    border: none;
    color: #ccdeee;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 40px;
    transition: all 0.2s;
}

.lp-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

#lp-body {
    padding: 16px 20px 20px;
}

#lp-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #99bbee;
    margin-bottom: 10px;
}

.lp-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid transparent;
}

.lp-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 12px 0;
}

.lp-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
    gap: 12px;
    font-size: 0.95rem;
}

.lp-label {
    font-weight: 500;
    color: #bbccff;
}

.lp-value {
    font-weight: 600;
    font-family: "DM Mono", monospace;
    background: rgba(0, 0, 0, 0.35);
    padding: 4px 12px;
    border-radius: 24px;
    letter-spacing: 0.3px;
}

.lp-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    text-align: center;
    color: #aaccee;
}

#lp-extra-lados {
    margin-top: 8px;
}

#lp-sold-badge,
#lp-reserved-badge {
    display: none !important;
}

.lp-admin-editor {
    margin-top: 16px;
    padding-top: 4px;
}

.lp-admin-divider {
    margin-bottom: 14px;
}

.lp-admin-title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #d1fae5;
    margin-bottom: 12px;
}

.lp-admin-field {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.lp-admin-save {
    margin-top: 12px;
    background: linear-gradient(135deg, #15803d 0%, #166534 100%);
    color: #ecfdf5;
}

.estado-libre {
    background: rgba(22, 163, 74, 0.16);
    color: #dcfce7;
    border-color: rgba(74, 222, 128, 0.35);
}

.estado-reservado {
    background: rgba(234, 179, 8, 0.2);
    color: #fef3c7;
    border-color: rgba(250, 204, 21, 0.35);
}

.estado-comprado {
    background: rgba(220, 38, 38, 0.18);
    color: #fee2e2;
    border-color: rgba(248, 113, 113, 0.35);
}

@media (max-width: 640px) {
    #lod-indicator,
    #instructions {
        max-width: calc(100vw - 32px);
    }

    .admin-login-box {
        width: calc(100vw - 40px);
        box-sizing: border-box;
    }

    .lot-panel {
        width: calc(100vw - 24px);
        left: 12px;
        bottom: 12px;
    }

    .wa-float {
        right: 16px;
        bottom: 128px;
        width: 52px;
        height: 52px;
    }

    .wa-float::after {
        display: none;
    }

    .wire-btn {
        right: 20px;
        bottom: 72px;
    }
}
