.empty-page {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f0f4f8;
        padding: 2rem 1rem;
        margin-top: -60px;
    }

    .empty-wrapper {
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .empty-card {
        background: #fff;
        border-radius: 24px;
        box-shadow: 0 24px 64px rgba(0,0,0,.10), 0 4px 16px rgba(0,0,0,.06);
        overflow: hidden;
        animation: empty-card-in .4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    @keyframes empty-card-in {
        from { opacity: 0; transform: translateY(20px) scale(0.97); }
        to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    /* ── Top azul ── */
    .empty-card-top {
        background: linear-gradient(145deg, #0ea5e9 0%, #0284c7 60%, #0369a1 100%);
        padding: 2.5rem 2rem 2rem;
        text-align: center;
        position: relative;
        overflow: hidden;
    }
    .empty-card-top::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
        pointer-events: none;
    }

    .empty-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        background: rgba(255,255,255,.18);
        border: 1px solid rgba(255,255,255,.3);
        color: rgba(255,255,255,.95);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .08em;
        text-transform: uppercase;
        padding: .35rem .9rem;
        border-radius: 100px;
        margin-bottom: 1.5rem;
        position: relative; z-index: 1;
    }
    .empty-eyebrow i { font-size: .7rem; color: #86efac; }

    .empty-icon-ring {
        width: 72px; height: 72px;
        background: rgba(255,255,255,.18);
        border: 2px solid rgba(255,255,255,.35);
        border-radius: 22px;
        display: flex; align-items: center; justify-content: center;
        font-size: 1.8rem;
        color: #fff;
        margin: 0 auto 1.25rem;
        backdrop-filter: blur(8px);
        position: relative; z-index: 1;
        box-shadow: 0 8px 24px rgba(0,0,0,.15);
    }

    .empty-heading {
        font-size: clamp(1.7rem, 5vw, 2.1rem);
        font-weight: 900;
        color: #fff;
        letter-spacing: -.03em;
        margin: 0 0 .5rem;
        position: relative; z-index: 1;
    }

    .empty-subheading {
        font-size: .9rem;
        color: rgba(255,255,255,.82);
        margin: 0 0 1.75rem;
        line-height: 1.5;
        position: relative; z-index: 1;
    }

    /* Stepper */
    .empty-stepper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        position: relative; z-index: 1;
    }

    .empty-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: .4rem;
    }

    .empty-step span {
        font-size: .72rem;
        font-weight: 600;
        color: rgba(255,255,255,.7);
    }

    .empty-step-dot {
        width: 36px; height: 36px;
        border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        font-size: .85rem;
        font-weight: 800;
        background: rgba(255,255,255,.2);
        color: rgba(255,255,255,.55);
        border: 2px solid rgba(255,255,255,.2);
        transition: all .2s;
    }

    .empty-step--done .empty-step-dot {
        background: #22c55e;
        color: #fff;
        border-color: #22c55e;
        box-shadow: 0 0 0 4px rgba(34,197,94,.25);
    }
    .empty-step--done span { color: rgba(255,255,255,.9); }

    .empty-step--active .empty-step-dot {
        background: #fff;
        color: #0284c7;
        border-color: #fff;
        box-shadow: 0 0 0 4px rgba(255,255,255,.25);
    }
    .empty-step--active span { color: #fff; font-weight: 700; }

    .empty-step-line {
        width: 48px; height: 2px;
        background: rgba(255,255,255,.5);
        margin: 0 .35rem;
        margin-bottom: 1.1rem;
    }
    .empty-step-line--dim {
        background: rgba(255,255,255,.2);
    }

    /* ── Cuerpo blanco ── */
    .empty-card-body {
        padding: 2rem 2rem 2.25rem;
    }

    .empty-benefits-title {
        font-size: .88rem;
        font-weight: 700;
        color: #374151;
        margin: 0 0 1.1rem;
        text-transform: uppercase;
        letter-spacing: .05em;
    }

    .empty-benefits {
        list-style: none;
        margin: 0 0 1.75rem;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }

    .empty-benefits li {
        display: flex;
        align-items: flex-start;
        gap: .85rem;
    }

    .empty-benefit-icon {
        width: 38px; height: 38px;
        border-radius: 10px;
        display: flex; align-items: center; justify-content: center;
        font-size: .95rem;
        flex-shrink: 0;
        margin-top: 1px;
    }

    .empty-benefits li div:last-child {
        display: flex;
        flex-direction: column;
        gap: .1rem;
    }

    .empty-benefits li strong {
        font-size: .92rem;
        font-weight: 700;
        color: #111827;
        display: block;
    }

    .empty-benefits li span {
        font-size: .8rem;
        color: #6b7280;
        line-height: 1.4;
    }

    /* CTA */
    .empty-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .65rem;
        width: 100%;
        padding: 1rem 1.5rem;
        background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
        color: #fff;
        font-size: 1rem;
        font-weight: 800;
        font-family: inherit;
        text-decoration: none;
        border-radius: 999px;
        box-shadow: 0 8px 24px rgba(14,165,233,.38);
        transition: transform .2s, box-shadow .2s;
        margin-bottom: 1rem;
    }
    .empty-cta-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(14,165,233,.48);
        color: #fff;
    }
    .empty-cta-arrow {
        margin-left: auto;
        transition: transform .2s;
        font-size: .9rem;
    }
    .empty-cta-btn:hover .empty-cta-arrow { transform: translateX(4px); }

    .empty-disclaimer {
        text-align: center;
        font-size: .78rem;
        color: #9ca3af;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .4rem;
    }
    .empty-disclaimer i { font-size: .72rem; color: #22c55e; }

    @media (max-width: 480px) {
        .empty-card-top { padding: 2rem 1.5rem 1.75rem; }
        .empty-card-body { padding: 1.5rem 1.5rem 2rem; }
        .empty-step-line { width: 32px; }
    }

/* ═══════════════════════════════════════════
   EDIT PAGE — Modern QuePashop Style
═══════════════════════════════════════════ */
.edit-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

/* ═══════════════════════════════════════════
   PHOTO PREVIEW — Vista previa de foto
═══════════════════════════════════════════ */
.photo-preview-mode {
    border: 3px solid #22c55e !important;
    border-radius: 20px !important;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 8px 32px rgba(34, 197, 94, 0.25) !important;
    animation: photo-preview-pulse 2s ease-in-out infinite;
}

@keyframes photo-preview-pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 8px 32px rgba(34, 197, 94, 0.25); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.15), 0 12px 40px rgba(34, 197, 94, 0.3); }
}

.photo-preview-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
}

.photo-preview-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.photo-preview-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    max-height: 400px;
    object-fit: contain;
    background: transparent;
    border-radius: 12px;
    padding: 0;
}

.photo-preview-actions {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.photo-preview-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photo-preview-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.photo-preview-btn--cancel {
    background: #f1f5f9;
    color: #64748b;
}

.photo-preview-btn--cancel:hover:not(:disabled) {
    background: #e2e8f0;
    color: #475569;
}

.photo-preview-btn--confirm {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.photo-preview-btn--confirm:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45);
}

@media (max-width: 767px) {
    .photo-preview-wrapper {
        min-height: 180px;
    }

    .photo-preview-img {
        min-height: 180px;
        max-height: 280px;
        object-fit: cover;
    }

    .photo-preview-actions {
        position: absolute;
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        flex-direction: row;
        gap: 0.6rem;
        padding: 0.35rem 0.5rem;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(10px);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    .photo-preview-btn {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
        border-radius: 8px;
    }

    .photo-preview-btn--cancel {
        background: rgba(255, 255, 255, 0.15);
        color: #fff;
    }

    .photo-preview-btn--cancel:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.25);
    }

    .photo-preview-btn--confirm {
        background: #22c55e;
        box-shadow: none;
    }

    .photo-preview-btn span {
        display: none;
    }

    .photo-preview-btn i {
        margin: 0;
        font-size: 0.9rem;
    }

    .photo-preview-badge {
        top: 8px;
        left: 8px;
        font-size: 0.65rem;
        padding: 0.3rem 0.65rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

.edit-page {
    position: relative;
    min-height: 100vh;
    background: var(--bg-main);
    padding: 2rem 0 4rem;
    overflow-x: hidden; /* Solo ocultar overflow horizontal, permitir scroll vertical */
}

/* Ambient blobs */
.edit-blob {
    position: fixed; /* Cambiar a fixed para que no afecten el scroll */
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
    opacity: .3;
    z-index: 0;
}

.edit-blob--1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #dbeafe 0%, transparent 70%);
    top: -200px;
    right: -100px;
}

.edit-blob--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #d1fae5 0%, transparent 70%);
    bottom: -150px;
    left: -80px;
}

/* Quitar animaciones de los blobs para evitar movimiento constante */
/* Si quieres mantener las animaciones, descomenta lo siguiente:
@keyframes edit-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(40px, -40px) scale(1.1); }
}
*/

.edit-container {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.edit-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.edit-header-content {
    flex: 1;
    min-width: 0;
}

.edit-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    color: #0369a1;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .35rem .9rem;
    border-radius: 100px;
    margin-bottom: .85rem;
}

.edit-eyebrow i {
    font-size: .7rem;
}

.edit-title {
    font-size: clamp(1.75rem, 4vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary);
    margin: 0 0 .6rem;
    letter-spacing: -.03em;
    line-height: 1.1;
}

.edit-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: .35rem .9rem;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, .3);
}

.edit-header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.edit-pulse-btn {
    animation: edit-pulse 2s infinite;
}

@keyframes edit-pulse {
    0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.6); }
    70% { box-shadow: 0 0 0 12px rgba(14, 165, 233, 0); }
    100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* Card */
.edit-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: edit-card-in .3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes edit-card-in {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.edit-card-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-soft);
    background: var(--bg-surface-2);
}

.edit-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-primary), #0369a1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14,165,233,.25);
}

.edit-card-icon--whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 12px rgba(37,211,102,.25);
}

.edit-card-icon--bank {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    box-shadow: 0 4px 12px rgba(139,92,246,.25);
}

.edit-card-icon--product {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    box-shadow: 0 4px 12px rgba(245,158,11,.25);
}

.edit-card-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}

.edit-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    background: var(--bg-surface);
    color: var(--text-primary);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s ease;
    margin-left: auto;
}

.edit-toggle-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(14,165,233,.04);
}

.edit-card-body {
    padding: 1.75rem 1.5rem;
}

/* Photo */
.edit-photo-wrap {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.edit-photo-preview {
    flex-shrink: 0;
}

.edit-photo-preview img {
    width: 240px;
    height: 240px;
    object-fit: contain;
    background-color: #ffffff;
    border-radius: 20px;
    border: 2px solid var(--border-soft);
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
    transition: transform .3s ease, box-shadow .3s ease;
}

.edit-photo-preview img:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 32px rgba(0,0,0,.2);
}

.edit-photo-upload {
    flex: 1;
    min-width: 240px;
}

.edit-file-label {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-primary), #0369a1);
    color: #fff;
    font-size: .9rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
    box-shadow: 0 4px 14px rgba(14,165,233,.3);
}

.edit-file-label:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,165,233,.4);
}

.edit-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0,0,0,0);
}

.edit-upload-status {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    margin-top: .75rem;
    padding: .5rem .75rem;
    border-radius: 8px;
}

.edit-upload-status.uploading {
    background: rgba(14,165,233,.08);
    color: var(--accent-primary);
}

.edit-upload-status.success {
    background: rgba(16,185,129,.08);
    color: #059669;
}

.edit-upload-status.error {
    background: rgba(239,68,68,.08);
    color: #dc2626;
}

/* Alert */
.edit-alert {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem 1.1rem;
    border-radius: 12px;
    font-size: .88rem;
    margin-bottom: 1.25rem;
}

.edit-alert.success {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.edit-alert.error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

/* Form */
.edit-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.15rem;
    margin-bottom: 1.5rem;
}

.edit-form-group {
    display: flex;
    flex-direction: column;
}

.edit-form-group--full {
    grid-column: 1 / -1;
}

.edit-label {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: .5rem;
}

.edit-label i {
    font-size: .8rem;
    color: var(--accent-primary);
}

.edit-input {
    width: 100%;
    padding: .8rem 1rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-size: .95rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-primary);
    transition: all .18s ease;
}

.edit-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}

.edit-input::placeholder {
    color: var(--text-muted);
}

.edit-whatsapp-input {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
}

.edit-whatsapp-prefix {
    padding: .8rem 1rem;
    background: var(--bg-surface-2);
    border: 1.5px solid var(--border-soft);
    border-radius: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Buttons */
.edit-form-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.75rem;
    border: none;
    border-radius: 12px;
    font-size: .92rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    transition: all .2s ease;
    position: relative;
    overflow: hidden;
}

.edit-btn--primary {
    background: linear-gradient(135deg, var(--accent-primary), #0369a1);
    box-shadow: 0 4px 14px rgba(14,165,233,.3);
}

.edit-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,165,233,.4);
}

.edit-btn--success {
    background: linear-gradient(135deg, #25d366, #128c7e);
    box-shadow: 0 4px 14px rgba(37,211,102,.3);
}

.edit-btn--success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,.4);
}

.edit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none !important;
}

/* ═══════════════════════════════════════════
   HORARIOS — Week Planner Style
═══════════════════════════════════════════ */
.edit-card-icon--schedule {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    box-shadow: 0 4px 12px rgba(6,182,212,.25);
}

.horarios-week-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.horario-day-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: 14px;
    padding: 1rem;
    transition: all .2s ease;
}

.horario-day-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 16px rgba(14,165,233,.1);
}

.horario-day-card.cerrado {
    background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
    border-color: #fbbf24;
}

.horario-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border-soft);
}

.horario-day-card.cerrado .horario-day-header {
    border-bottom-color: rgba(251,191,36,.3);
}

.horario-day-name {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.horario-day-abbr {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent-primary), #0369a1);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    border-radius: 8px;
}

.horario-day-card.cerrado .horario-day-abbr {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.horario-day-full {
    font-weight: 700;
    color: var(--text-primary);
    font-size: .95rem;
}

.horario-day-actions {
    display: flex;
    gap: .4rem;
}

.horario-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    transition: all .15s ease;
}

.horario-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.horario-btn--toggle {
    background: #e0f2fe;
    color: #0369a1;
}

.horario-btn--toggle:hover:not(:disabled) {
    background: #bae6fd;
}

.horario-btn--toggle.active {
    background: #fef3c7;
    color: #b45309;
}

.horario-btn--add {
    background: #dcfce7;
    color: #16a34a;
}

.horario-btn--add:hover:not(:disabled) {
    background: #bbf7d0;
}

.horario-btn--delete {
    background: #fee2e2;
    color: #dc2626;
}

.horario-btn--delete:hover:not(:disabled) {
    background: #fecaca;
}

.horario-cerrado-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    color: #92400e;
    font-weight: 600;
    font-size: .9rem;
}

.horario-cerrado-badge i {
    font-size: 1.1rem;
}

.horario-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem;
    color: var(--text-muted);
    font-size: .85rem;
}

.horario-btn-link {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    padding: .25rem .5rem;
    border-radius: 6px;
    transition: background .15s ease;
}

.horario-btn-link:hover {
    background: rgba(14,165,233,.1);
}

.horario-bloques {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.horario-bloque {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    background: var(--bg-surface-2);
    border-radius: 10px;
    padding: .75rem;
    flex-wrap: wrap;
}

.horario-bloque-times {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
}

.horario-time-input {
    width: 130px;
    padding: .45rem .5rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 8px;
    font-size: .82rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-primary);
    transition: border-color .15s ease;
}

.horario-time-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.horario-time-sep {
    color: var(--text-muted);
    font-weight: 500;
}

.horario-bloque-nota {
    flex: 1;
    min-width: 150px;
}

.horario-nota-input {
    width: 100%;
    padding: .45rem .6rem;
    border: 1.5px solid var(--border-soft);
    border-radius: 8px;
    font-size: .8rem;
    font-family: inherit;
    background: #fff;
    color: var(--text-primary);
    transition: border-color .15s ease;
}

.horario-nota-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

.horario-nota-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

.horario-saving-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    margin-top: 1rem;
    background: rgba(14,165,233,.08);
    color: var(--accent-primary);
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 600;
}

/* Utilerías de Validación Dinámica */
.create-required-badge {
    background: #fee2e2;
    color: #ef4444;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid #fecaca;
    vertical-align: middle;
}

.create-info-chip--warn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    padding: 10px 14px;
    border-radius: 10px;
    color: #92400e;
    font-size: 0.85rem;
    line-height: 1.4;
}
.create-info-chip--warn i {
    color: #f59e0b;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════
   FORMAS DE PAGO — Checklist Edit
═══════════════════════════════════════════ */
.edit-card-icon--pago {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 12px rgba(59,130,246,.25);
}

.fp-checklist-edit {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.fp-check-item-edit {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
    user-select: none;
}
.fp-check-item-edit:hover {
    border-color: #93c5fd;
    background: #f0f9ff;
}
.fp-check-item-edit--active {
    border-color: #22c55e;
    background: #f0fdf4;
}
.fp-check-item-edit--active:hover {
    border-color: #16a34a;
    background: #ecfdf5;
}
.fp-check-box-edit {
    width: 22px; height: 22px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all .15s ease;
    font-size: .65rem;
    color: transparent;
}
.fp-check-box-edit--on {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}
.fp-check-label-edit {
    font-size: .9rem;
    font-weight: 500;
    color: #334155;
    flex: 1;
}

/* ═══════════════════════════════════════════
   NOSOTROS / ACERCA DE — Block Editor Style
═══════════════════════════════════════════ */
.edit-card-icon--nosotros {
    background: linear-gradient(135deg, #ec4899, #be185d);
    box-shadow: 0 4px 12px rgba(236,72,153,.25);
}

/* Panel para agregar nuevo bloque */
.nosotros-add-panel {
    background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
    border: 2px dashed #d946ef;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.nosotros-add-header {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    color: #a21caf;
    margin-bottom: 1.25rem;
    font-size: .95rem;
}

.nosotros-add-header i {
    font-size: 1.1rem;
}

/* Grid de tipos de bloque */
.nosotros-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.nosotros-type-btn {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    background: #fff;
    border: 2px solid var(--border-soft);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: all .2s ease;
}

.nosotros-type-btn:hover {
    border-color: #d946ef;
    box-shadow: 0 4px 12px rgba(217,70,239,.15);
}

.nosotros-type-btn.active {
    border-color: #d946ef;
    background: linear-gradient(135deg, #fdf4ff, #faf5ff);
    box-shadow: 0 4px 16px rgba(217,70,239,.2);
}

.nosotros-type-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f5d0fe, #e9d5ff);
    color: #a21caf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.nosotros-type-btn.active .nosotros-type-icon {
    background: linear-gradient(135deg, #d946ef, #a21caf);
    color: #fff;
}

.nosotros-type-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.nosotros-type-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: .9rem;
}

.nosotros-type-desc {
    font-size: .75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Panel de formulario para nuevo bloque */
.nosotros-form-panel {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 1.5rem;
    animation: nosotros-slide-in .25s ease;
}

@keyframes nosotros-slide-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.nosotros-form-header {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: #a21caf;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--border-soft);
}

.nosotros-form-header i {
    font-size: 1rem;
}

.nosotros-textarea {
    min-height: 100px;
    resize: vertical;
}

.nosotros-number-input {
    max-width: 150px;
    font-size: 1.5rem !important;
    font-weight: 700;
    text-align: center;
}

.nosotros-char-count {
    text-align: right;
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .35rem;
}

/* Editor de listas */
.nosotros-list-editor {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.nosotros-list-item {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.nosotros-list-bullet {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d0fe, #e9d5ff);
    color: #a21caf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .8rem;
    flex-shrink: 0;
}

.nosotros-list-item .edit-input {
    flex: 1;
}

.nosotros-list-remove {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fee2e2;
    color: #dc2626;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .15s ease;
    flex-shrink: 0;
}

.nosotros-list-remove:hover {
    background: #fecaca;
}

.nosotros-list-add {
    background: none;
    border: 2px dashed var(--border-soft);
    border-radius: 10px;
    padding: .6rem 1rem;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s ease;
    margin-top: .25rem;
}

.nosotros-list-add:hover {
    border-color: var(--accent-primary);
    background: rgba(14,165,233,.04);
}

.nosotros-form-actions {
    display: flex;
    gap: .75rem;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

.edit-btn--secondary {
    background: #f1f5f9;
    color: var(--text-secondary);
    box-shadow: none;
}

.edit-btn--secondary:hover {
    background: #e2e8f0;
    transform: none;
}

/* Estado vacío */
.nosotros-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
    border-radius: 16px;
    border: 2px dashed #e9d5ff;
}

.nosotros-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d0fe, #e9d5ff);
    color: #a21caf;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.nosotros-empty h4 {
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: .5rem;
}

.nosotros-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Lista de bloques existentes */
.nosotros-blocks-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.nosotros-block-card {
    background: var(--bg-surface);
    border: 1.5px solid var(--border-soft);
    border-radius: 14px;
    overflow: hidden;
    transition: all .2s ease;
}

.nosotros-block-card:hover {
    border-color: #d946ef;
    box-shadow: 0 4px 16px rgba(217,70,239,.1);
}

.nosotros-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .85rem 1.15rem;
    background: linear-gradient(135deg, #fdf4ff 0%, #faf5ff 100%);
    border-bottom: 1px solid var(--border-soft);
}

.nosotros-block-type {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    color: #a21caf;
    font-size: .85rem;
}

.nosotros-block-type i {
    font-size: .9rem;
}

.nosotros-block-actions {
    display: flex;
    gap: .35rem;
}

.nosotros-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    transition: all .15s ease;
    border: 1px solid var(--border-soft);
}

.nosotros-action-btn:hover {
    background: #f1f5f9;
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.nosotros-action-btn--delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}

.nosotros-action-btn--move {
    background: #f0f9ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.nosotros-action-btn--move:hover:not(:disabled) {
    background: #e0f2fe;
    color: #0284c7;
    border-color: #7dd3fc;
}

.nosotros-action-btn--move:disabled {
    opacity: .4;
    cursor: not-allowed;
    background: #f8fafc;
    color: #94a3b8;
    border-color: #e2e8f0;
}

.nosotros-block-content {
    padding: 1.25rem;
}

.nosotros-block-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .75rem;
}

.nosotros-block-text {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    white-space: pre-line;
}

.nosotros-block-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
}

.nosotros-block-list li {
    margin-bottom: .35rem;
}

.nosotros-block-number {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.nosotros-number-value {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d946ef, #a21caf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.nosotros-number-label {
    font-size: .95rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Modo edición en bloque */
.nosotros-block-edit {
    padding: 1.25rem;
    background: #fefce8;
}

.nosotros-edit-actions {
    display: flex;
    gap: .5rem;
    justify-content: flex-end;
    margin-top: 1rem;
}

/* Vista previa */
.nosotros-preview-section {
    margin-top: 2rem;
    border-top: 2px dashed var(--border-soft);
    padding-top: 1.5rem;
}

.nosotros-preview-header {
    display: flex;
    align-items: center;
    font-size: .85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.nosotros-preview-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

.nosotros-preview-block {
    margin-bottom: 1.75rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border-soft);
}

.nosotros-preview-block:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.nosotros-preview-title {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 .85rem;
}

.nosotros-preview-title i {
    color: #d946ef;
    font-size: .95rem;
}

.nosotros-preview-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    white-space: pre-line;
}

.nosotros-preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nosotros-preview-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .5rem;
    color: var(--text-secondary);
}

.nosotros-preview-list li i {
    color: #22c55e;
    margin-top: .2rem;
    flex-shrink: 0;
}

.nosotros-preview-number {
    display: flex;
    align-items: baseline;
    gap: .75rem;
}

.nosotros-preview-number .number {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #d946ef, #a21caf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.nosotros-preview-number .label {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 767px) {
    .edit-page {
        padding: 1.5rem 0 3rem;
    }

    .edit-header {
        flex-direction: column;
        align-items: stretch;
    }

    .edit-header-actions {
        justify-content: center;
        width: 100%;
    }
    
    .edit-header-actions .edit-btn {
        flex: 1;
        justify-content: center;
    }

    .edit-photo-preview img {
        width: 180px;
        height: 180px;
    }

    .edit-form-grid {
        grid-template-columns: 1fr;
    }

    .edit-photo-wrap {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .edit-card-body {
        padding: 1.25rem 1rem;
    }

    .edit-card-header {
        padding: 1rem 1rem;
        flex-wrap: wrap;
    }

    .edit-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .edit-blob--1 {
        width: 400px;
        height: 400px;
    }

    .edit-blob--2 {
        width: 350px;
        height: 350px;
    }

    /* Horarios responsive */
    .horarios-week-grid {
        grid-template-columns: 1fr;
    }

    .horario-bloque {
        flex-direction: column;
        align-items: stretch;
    }

    .horario-bloque-times {
        justify-content: center;
    }

    .horario-time-input {
        width: 120px;
    }

    .horario-bloque-nota {
        min-width: 100%;
    }

    /* Nosotros responsive */
    .nosotros-type-grid {
        grid-template-columns: 1fr;
    }

    .nosotros-type-btn {
        padding: .85rem;
    }

    .nosotros-add-panel {
        padding: 1rem;
    }

    .nosotros-form-panel {
        padding: 1rem;
    }

    .nosotros-form-actions {
        flex-direction: column;
    }

    .nosotros-form-actions .edit-btn {
        width: 100%;
        justify-content: center;
    }

    .nosotros-preview-number .number {
        font-size: 2.5rem;
    }

    .nosotros-block-header {
        flex-wrap: wrap;
        gap: .5rem;
    }

    .nosotros-block-actions {
        width: 100%;
        justify-content: flex-end;
    }

    /* Mapa responsive móvil */
    .edit-location-card {
        padding: 1rem;
    }

    .edit-location-header {
        flex-wrap: wrap;
        gap: .75rem;
    }

    .edit-location-icon {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .edit-location-info {
        flex: 1 1 auto;
        min-width: 150px;
    }

    .edit-location-toggle {
        width: 100%;
        justify-content: center;
        margin-top: .5rem;
    }

    .edit-location-coords-preview {
        font-size: .75rem;
    }

    .edit-map-wrapper {
        height: 280px;
    }

    .edit-map-hint {
        padding: .65rem .75rem;
        font-size: .78rem;
    }

    .edit-map-hint-icon {
        width: 28px;
        height: 28px;
        font-size: .75rem;
    }

    .edit-map-hint span {
        padding-top: 2px;
    }

    .edit-map-coords {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .5rem;
        padding-top: .25rem;
        margin-top: .25rem;
    }

    .edit-coord-field {
        flex: 1;
        min-width: 100px;
    }

    .edit-coord-field label {
        display: none; /* Los placeholders ya indican qué es cada campo */
    }

    .edit-coord-field input {
        padding: .55rem .7rem;
        font-size: .85rem;
    }

    /* Ocultar botón en móvil - usuarios tocan directamente el mapa */
    .edit-map-coords .edit-btn {
        display: none;
    }
}

/* ============================================
   Sección de Ubicación - Estilo Card Premium
   ============================================ */
.edit-location-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: .5rem;
}

.edit-location-card {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border: 1.5px solid #fbbf24;
    border-radius: 16px;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.15);
}

.edit-location-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.edit-location-section.expanded .edit-location-card {
    border-color: #f59e0b;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.25);
}

.edit-location-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.edit-location-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
}

.edit-location-info {
    flex: 1;
    min-width: 0;
}

.edit-location-title {
    font-size: 1rem;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 .35rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.edit-location-coords-preview {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 600;
    color: #b45309;
    background: rgba(255, 255, 255, 0.6);
    padding: .35rem .75rem;
    border-radius: 20px;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.edit-location-coords-preview i {
    color: #16a34a;
    font-size: .75rem;
}

.edit-location-empty-text {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .82rem;
    font-weight: 500;
    color: #b45309;
    opacity: .85;
}

.edit-location-empty-text i {
    color: #ea580c;
}

.edit-location-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .65rem 1.25rem;
    font-size: .85rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all .25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    flex-shrink: 0;
}

.edit-location-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.edit-location-toggle.active {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.35);
}

.edit-location-toggle.active:hover {
    box-shadow: 0 6px 20px rgba(107, 114, 128, 0.45);
}

.edit-location-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(180, 83, 9, 0.25);
    position: relative;
    z-index: 1;
}

.edit-location-cta p {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .82rem;
    color: #92400e;
    margin: 0;
    line-height: 1.5;
}

.edit-location-cta i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Contenedor del mapa expandido */
.edit-map-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--bg-surface, #fff);
    border: 1.5px solid var(--border-soft, #e2e8f0);
    border-radius: 16px;
    padding: 1.25rem;
    animation: editSlideDown .3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

@keyframes editSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.edit-map-hint {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .82rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    padding: .7rem 1rem;
    border-radius: 12px;
    border: none;
    line-height: 1.5;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.edit-map-hint-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.edit-map-hint span {
    flex: 1;
    opacity: 0.95;
}

.edit-map-wrapper {
    width: 100%;
    height: 350px;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 0 24px rgba(139, 92, 246, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.edit-map-wrapper:hover {
    border-color: #6366f1;
    box-shadow: 0 0 0 5px rgba(99, 102, 241, 0.15), 0 0 30px rgba(139, 92, 246, 0.18), 0 4px 20px rgba(0, 0, 0, 0.1);
}

.edit-map-wrapper .leaflet-container {
    width: 100%;
    height: 100%;
    background: #f8fafc;
}

.edit-map-coords {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    padding-top: .5rem;
    border-top: 1px solid var(--border-soft, #e2e8f0);
    margin-top: .5rem;
}

.edit-coord-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    min-width: 150px;
}

.edit-coord-field label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--text-secondary, #64748b);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.edit-coord-field label i {
    font-size: .7rem;
    color: #6366f1;
}

.edit-coord-field input {
    width: 100%;
    padding: .7rem 1rem;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-primary, #1e293b);
    background: #fff;
    border: 1.5px solid var(--border-soft, #e2e8f0);
    border-radius: 10px;
    transition: all .2s ease;
}

.edit-coord-field input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.edit-coord-field input::placeholder {
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
}

/* Fix Leaflet tiles not rendering */
.edit-map-wrapper .leaflet-tile-pane {
    z-index: 1 !important;
}

.edit-map-wrapper .leaflet-pane {
    z-index: auto !important;
}

.edit-map-wrapper .leaflet-top,
.edit-map-wrapper .leaflet-bottom {
    z-index: 10 !important;
}

.edit-coord-update-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    border: none;
    border-radius: .4rem;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

.edit-coord-update-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(25, 135, 84, 0.3);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .edit-blob--1,
    .edit-blob--2,
    .edit-card,
    .edit-map-container {
        animation: none !important;
    }
}

/* ═══════════════════════════════════════════
   GEN-* — General Tab Modern Island Style
═══════════════════════════════════════════ */

/* Panel wrapper — transparent, just spacing */
.gen-panel {
    padding: 0.25rem 0 3.5rem; /* bottom room for sticky save on mobile */
}

/* Panel header — white card, colorful left accent */
.gen-panel-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem 1rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(14, 165, 233, 0.07);
}

/* Colorful left accent strip */
.gen-panel-header::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #0ea5e9 0%, #8b5cf6 100%);
    border-radius: 16px 0 0 16px;
}

.gen-panel-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9 0%, #8b5cf6 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.gen-panel-header-title {
    font-size: 0.97rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.gen-panel-header-sub {
    font-size: 0.78rem;
    color: #64748b;
    margin-top: 0.15rem;
}

/* Toast notifications */
.gen-toast {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.1rem;
    border-radius: 14px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    animation: gen-toast-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gen-toast-in {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gen-toast--ok {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.gen-toast--ok i { color: #16a34a; }

.gen-toast--err {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.gen-toast--err i { color: #dc2626; }

/* Section group label — thin rule + icon + uppercase text */
.gen-group-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #94a3b8);
    margin: 1.75rem 0 0.85rem;
    padding-bottom: 0.6rem;
    border-bottom: 1.5px solid var(--border-soft, #e2e8f0);
}

.gen-group-label:first-of-type {
    margin-top: 0;
}

/* Color-coded group icons */
.gen-group-label i.fa-fingerprint { color: #8b5cf6; }
.gen-group-label i.fa-address-book { color: #14b8a6; }
.gen-group-label i.fa-map-location-dot { color: #6366f1; }
/* fallback for any other icon */
.gen-group-label i { font-size: 0.78rem; }

/* 2-col grid */
.gen-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Island — self-contained field card */
.gen-island {
    display: flex;
    flex-direction: column;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 0.9rem 1.1rem 0.85rem;
    border: 2px solid transparent;
    cursor: text;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    position: relative;
}

/* Pencil indicator — fades on hover/focus to signal editability */
.gen-island::after {
    content: '\f303'; /* fa-pencil unicode */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.65rem;
    position: absolute;
    top: 0.75rem;
    right: 0.85rem;
    color: #cbd5e1;
    pointer-events: none;
    transition: color 0.15s ease;
}

.gen-island:hover::after {
    color: var(--accent-primary, #0ea5e9);
}

.gen-island:has(.gen-island-input:focus)::after,
.gen-island:has(.gen-island-select:focus)::after {
    display: none;
}

.gen-island:has(.gen-island-input:focus),
.gen-island:has(.gen-island-select:focus) {
    background: #fff;
    border-color: var(--accent-primary, #0ea5e9);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1), 0 4px 16px rgba(14, 165, 233, 0.08);
}

.gen-island-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 0.45rem;
    pointer-events: none;
}

.gen-island:has(.gen-island-input:focus) .gen-island-label,
.gen-island:has(.gen-island-select:focus) .gen-island-label {
    color: var(--accent-primary, #0ea5e9);
}

.gen-island-label i {
    font-size: 0.65rem;
}

.gen-island-input,
.gen-island-select {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.97rem;
    font-weight: 500;
    font-family: inherit;
    color: var(--text-primary, #1e293b);
    padding: 0;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.gen-island-input::placeholder {
    color: var(--text-muted, #94a3b8);
    font-weight: 400;
}

.gen-island-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1.25rem;
}

.gen-island-hint {
    font-size: 0.72rem;
    color: var(--text-muted, #94a3b8);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    line-height: 1.4;
}

.gen-island-hint.ok { color: #16a34a; }
.gen-island-hint.err { color: #dc2626; }
.gen-island-hint i { font-size: 0.65rem; flex-shrink: 0; }

/* Location bar — flat row replacing the old yellow card */
.gen-location-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f1f5f9;
    border-radius: 16px;
    padding: 0.9rem 1.1rem;
    border: 2px solid transparent;
    transition: all 0.22s ease;
    margin-bottom: 0;
}

.gen-location-bar.open {
    background: #fff;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-radius: 16px 16px 0 0;
    margin-bottom: -2px;
}

.gen-location-bar-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.35);
    transition: transform 0.2s ease;
}

.gen-location-bar-icon--map {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
}

.gen-location-bar.open .gen-location-bar-icon {
    transform: scale(1.08);
}

.gen-location-bar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.gen-location-coords {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #4f46e5;
}

.gen-location-coords i { color: #16a34a; font-size: 0.75rem; }

.gen-location-empty {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
}

.gen-location-empty i { color: #f97316; font-size: 0.72rem; }

.gen-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.3);
}

.gen-location-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 5px 16px rgba(99, 102, 241, 0.4);
}

.gen-location-btn.active {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.25);
}

/* When map is open, connect bar to map container visually */
.gen-location-bar.open + .edit-map-container {
    border-top: none;
    border-radius: 0 0 16px 16px;
    margin-top: 0;
    border-color: #818cf8;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1), 0 4px 20px rgba(0,0,0,.06);
}

/* Save bar */
.gen-save-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1.5px solid var(--border-soft, #e2e8f0);
}

.gen-save-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-width: 200px;
    padding: 0.9rem 2rem;
    font-size: 0.97rem;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-primary, #0ea5e9), #0369a1);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.01em;
}

.gen-save-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 28px rgba(14, 165, 233, 0.45);
}

.gen-save-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive: General tab ── */
@media (max-width: 767px) {
    .gen-panel {
        padding-bottom: 5.5rem; /* room for sticky save */
    }

    .gen-grid {
        grid-template-columns: 1fr;
    }

    .gen-group-label {
        margin-top: 1.25rem;
        font-size: 0.65rem;
    }

    .gen-island {
        border-radius: 14px;
    }

    .gen-location-bar {
        border-radius: 14px;
        padding: 0.8rem 0.9rem;
        gap: 0.75rem;
    }

    .gen-location-bar.open {
        border-radius: 14px 14px 0 0;
    }

    .gen-location-btn span {
        display: none; /* show only icon on small screens */
    }

    .gen-location-btn {
        padding: 0.55rem 0.75rem;
        border-radius: 10px;
    }

    .gen-save-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        padding: 0.85rem 1.25rem calc(0.85rem + env(safe-area-inset-bottom));
        background: rgba(248, 250, 252, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border-soft, #e2e8f0);
        border-radius: 0;
        z-index: 1050;
    }

    .gen-save-btn {
        width: 100%;
        min-width: unset;
        border-radius: 12px;
        padding: 0.95rem 1.5rem;
        font-size: 1rem;
        box-shadow: 0 4px 16px rgba(14, 165, 233, 0.4);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gen-toast,
    .gen-save-btn,
    .gen-location-btn,
    .gen-island {
        animation: none !important;
        transition: none !important;
    }
}

/* ═══════════════════════════════════════════
   GF-* — General Form (unified card layout)
═══════════════════════════════════════════ */

/* Única tarjeta contenedora */
.gf-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
    animation: gf-card-in 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes gf-card-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Sección interna dentro de la tarjeta */
.gf-section {
    padding: 1.25rem 1.5rem;
}

.gf-section + .gf-section {
    border-top: 1px solid #f1f5f9;
}

/* Cabecera de sección */
.gf-section-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.1rem;
}

/* Ícono de sección */
.gf-section-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.gf-section-icon--identity {
    background: linear-gradient(135deg, #0ea5e9, #7c3aed);
    box-shadow: 0 3px 8px rgba(124,58,237,0.25);
}

.gf-section-icon--contact {
    background: linear-gradient(135deg, #14b8a6, #0891b2);
    box-shadow: 0 3px 8px rgba(20,184,166,0.25);
}

.gf-section-icon--location {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    box-shadow: 0 3px 8px rgba(99,102,241,0.25);
}

.gf-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.gf-section-sub {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* Grid 2 columnas */
.gf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.gf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.gf-field--full {
    grid-column: 1 / -1;
}

/* Etiqueta */
.gf-label {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.gf-label i { font-size: 0.68rem; color: #94a3b8; }

/* Input */
.gf-input {
    width: 100%;
    padding: 0.72rem 0.9rem;
    font-size: 0.935rem;
    font-weight: 500;
    font-family: inherit;
    color: #1e293b;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
}

.gf-input:focus {
    outline: none;
    background: #fff;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.12);
}

.gf-input::placeholder { color: #cbd5e1; font-weight: 400; }

/* Select */
.gf-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    padding-right: 2.1rem;
}

/* Hint */
.gf-hint {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
}

.gf-hint i  { font-size: 0.65rem; flex-shrink: 0; }
.gf-hint.ok  { color: #16a34a; }
.gf-hint.err { color: #dc2626; }

/* ── Fila de ubicación inline ── */
.gf-loc-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 0.75rem;
    min-height: 52px;
}

.gf-loc-row--set {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.gf-loc-row--unset {
    border-color: #fed7aa;
    background: #fff7ed;
}

.gf-loc-dot {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.gf-loc-row--set   .gf-loc-dot { background: #dcfce7; color: #15803d; }
.gf-loc-row--unset .gf-loc-dot { background: #ffedd5; color: #c2410c; }

.gf-loc-text {
    flex: 1;
    min-width: 0;
}

.gf-loc-label {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.1rem;
}

.gf-loc-row--set   .gf-loc-label { color: #15803d; }
.gf-loc-row--unset .gf-loc-label { color: #c2410c; }

.gf-loc-coords {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gf-loc-row--unset .gf-loc-coords {
    font-size: 0.78rem;
    font-weight: 400;
    color: #92400e;
}

/* Botón toggle mapa */
.gf-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 3px 10px rgba(99,102,241,0.28);
}

.gf-map-btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 5px 16px rgba(99,102,241,0.38);
}

.gf-map-btn.active {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 3px 8px rgba(100,116,139,0.2);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .gf-section {
        padding: 1.1rem 1rem;
    }

    .gf-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .gf-loc-row {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .gf-map-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }

    .gf-section-head {
        margin-bottom: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gf-card  { animation: none !important; }
    .gf-input,
    .gf-map-btn { transition: none !important; }
}

/* ── DASHBOARD LAYOUT & RESPONSIVE ── */
.bedit-page {
    background-color: #f8fafc;
    margin-top: -1.75rem;
    padding-bottom: 3rem;
}

/* Prevent FOUC */
.bedit-fouc-hide {
    display: block !important;
    animation: foucFadeIn 0.3s ease-out forwards;
}
@keyframes foucFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 767.98px) {
    .bedit-page {
        margin-top: -1rem;
    }
}

.edit-curved-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 1rem 1rem 3rem 1rem;
    border-bottom-left-radius: 32px;
    border-bottom-right-radius: 32px;
    margin-bottom: -2rem;
    position: relative;
    z-index: 1;
}

.edit-dashboard {
    display: flex;
    gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 1rem 3rem 1rem;
    position: relative;
    z-index: 10;
}

/* Modificador para separar la cabecera del cuerpo en la vista Crear Producto */
.edit-card--product {
    background: transparent;
    border: none;
    box-shadow: none;
}
.edit-card--product .edit-card-header {
    background: #fff;
    border-radius: 20px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
}

/* SIDEBAR (Desktop) */
.edit-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 1.5rem 1rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    height: max-content;
    position: sticky;
    top: 80px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.edit-sidebar-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.25rem;
    border-radius: 12px;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-sidebar-item:hover {
    background: #f1f5f9;
    color: #0ea5e9;
}

.edit-sidebar-item.active {
    background: #0ea5e9;
    color: white;
}

.edit-sidebar-item.active .edit-sidebar-icon {
    color: white;
}

.edit-sidebar-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* MAIN PANEL */
.edit-main {
    flex-grow: 1;
    min-width: 0;
    background: transparent;
}

.edit-main > section, .edit-main > div {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* MOBILE GRID (Hidden on Desktop) */
.edit-mobile-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    padding: 0 1rem 2rem 1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.edit-mobile-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    text-align: center;
    transition: transform 0.2s;
}

.edit-mobile-card:active {
    transform: scale(0.96);
}

.edit-mobile-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.edit-mobile-card span {
    font-size: 0.85rem;
}

/* MOBILE HEADER & OFFCANVAS */
.edit-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    margin: -1.5rem -1.5rem 1.5rem -1.5rem;
}

.edit-mobile-header-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.edit-mobile-header-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
}

.edit-offcanvas-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 991px) {
    .edit-sidebar {
        display: none;
    }

    .edit-mobile-grid {
        display: grid;
    }

    .edit-dashboard {
        padding: 0;
    }

    .edit-main {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #f8fafc;
        z-index: 1000;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        padding: 1.5rem;
        height: 96dvh;
        overflow-y: auto;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.32, 1.05, 0.39, 1);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
    }

    .edit-main.offcanvas-active {
        transform: none !important;
    }

    .edit-offcanvas-overlay {
        display: block;
        pointer-events: none;
    }

    .edit-offcanvas-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .edit-mobile-header {
        display: flex;
        position: sticky;
        top: -1.5rem;
        background: #f8fafc;
        z-index: 20;
    }
}

/* Make tm-hero-home merge into the curved header seamlessly */
.edit-curved-header .tm-hero-home {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
}
.edit-curved-header .tm-hero-eyebrow {
    margin-bottom: 0 !important;
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
.edit-curved-header #tmNegocioDetalle {
    margin-bottom: 0 !important;
}


/* Botones de accion en header - compactos en movil */
.edit-action-btn {
    border-radius: 12px !important;
    padding: 0.5rem 1.25rem !important;
    font-size: 0.95rem !important;
}

@media (max-width: 767.98px) {
    .edit-action-btn {
        flex: 1;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.8rem !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Botones de previsualizacion en movil (Compartir, Llamar, etc) */
@media (max-width: 767.98px) {
    .edit-curved-header .tm-hero-actions {
        display: flex !important;
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-top: 0.5rem;
    }
    .edit-curved-header .tm-hero-actions .btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        padding: 0.35rem 0.5rem !important;
        font-size: 0.75rem !important;
        margin: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Badge Premium Dorado y Profesional */
.premium-gold-badge {
    background-color: #f59e0b !important;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.3rem 0.85rem;
    border-radius: 50rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: none;
    box-shadow: none;
    text-transform: none;
}
.premium-gold-badge i {
    font-size: 0.75rem;
    filter: none;
}


/* Fix image presentation and buttons on mobile */
@media (max-width: 991px) {
    .edit-curved-header .tm-hero-img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
        background-color: rgba(15, 23, 42, 0.4) !important; /* Dark subtle backdrop */
        border-radius: 12px;
    }
    
    .edit-curved-header .tm-hero-img-container {
        height: 130px !important; /* Reducido para no quitar espacio en pantalla pequeña */
        margin-top: 0.5rem !important;
    }
    
    .edit-curved-header .tm-hero-img-container label[for="photo-input"] {
        padding: 0.4rem 0.8rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
        bottom: 0.75rem !important;
        right: 0.75rem !important;
        display: inline-flex !important;
        z-index: 100 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
    }
}

/* Ensure action buttons are strictly side-by-side */
@media (max-width: 767.98px) {
    .edit-curved-header .d-flex.flex-wrap.gap-2.mb-4.w-100 {
        flex-wrap: nowrap !important;
    }
    
    .edit-action-btn {
        flex: 1 1 calc(50% - 0.25rem) !important;
        padding: 0.4rem 0.5rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
}

/* Override tm-hero-eyebrow strictly to remove any residual box */
#tmNegocioDetalle .tm-hero-eyebrow {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    width: 100%;
}

/* Ensure location text truncates instead of wrapping */
#tmNegocioDetalle .tm-hero-eyebrow .text-white {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.75rem !important;
}

/* Mobile Preview Buttons (Compartir, Llamar, etc) - Scrollable single row */
@media (max-width: 767.98px) {
    .edit-curved-header .tm-hero-actions {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.5rem;
        padding-bottom: 0.25rem; /* For scrollbar if visible */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
    }
    
    .edit-curved-header .tm-hero-actions::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    .edit-curved-header .tm-hero-actions .btn {
        flex: 0 0 auto !important;
        padding: 0.25rem 0.6rem !important;
        font-size: 0.7rem !important;
        border-radius: 50rem !important; /* Make them round like chips */
    }
}

/* Refine eyebrow layout to be a scrollable carousel on mobile to avoid shrinking */
@media (max-width: 767.98px) {
    #tmNegocioDetalle .tm-hero-eyebrow {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar Firefox */
        padding-bottom: 0.25rem !important; /* Spacing for scrollbar */
        margin-bottom: 0.5rem !important;
        justify-content: flex-start;
    }
    
    #tmNegocioDetalle .tm-hero-eyebrow::-webkit-scrollbar {
        display: none; /* Hide scrollbar Chrome/Safari */
    }
    
    #tmNegocioDetalle .tm-hero-eyebrow .text-white {
        flex: 0 0 auto; /* Prevent shrinking */
        white-space: nowrap !important;
        overflow: visible !important;
        text-overflow: clip !important;
        background: rgba(255,255,255,0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 50rem;
    }
    
    .premium-gold-badge {
        flex: 0 0 auto; /* Prevent shrinking */
        white-space: nowrap !important;
    }
}

/* Force Crown Icon to be white */
.premium-gold-badge i.fa-crown {
    color: #ffffff !important;
}


/* Scrollable tags container on mobile */
@media (max-width: 767.98px) {
    .edit-curved-header .tm-hero-tags-container {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }
    .edit-curved-header .tm-hero-tags-container::-webkit-scrollbar {
        display: none;
    }
    .edit-curved-header .tm-hero-tags-container > * {
        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }
}

/* FIX: Ensure curved header spans full width on mobile */
@media (max-width: 767.98px) {
    .edit-curved-header {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-bottom: 2rem !important;
        border-radius: 0 0 24px 24px !important;
    }
    .edit-curved-header .edit-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* FIX: Z-index for offcanvas to sit on top of the navbar (1030) */
@media (max-width: 991px) {
    .edit-offcanvas-overlay {
        z-index: 1040 !important;
    }
    .edit-main {
        z-index: 1045 !important;
    }
}

/* FIX: Ensure edit-dashboard does not create a stacking context on mobile */
@media (max-width: 991px) {
    .edit-dashboard {
        position: static !important;
        z-index: auto !important;
    }
}

/* Smooth tab switching to prevent layout thrashing */
.edit-sections-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.edit-tab-section {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
    z-index: 1;
}

.edit-tab-section.active {
    opacity: 1;
    visibility: visible;
    position: relative;
    pointer-events: auto;
    z-index: 2;
}

/* ═══════════════════════════════════════════
   GF-MOBILE-SETTINGS — App Settings Style
   Layout exclusivo para el offcanvas móvil
═══════════════════════════════════════════ */

/* Por defecto (desktop): ocultar el layout móvil */
.gf-mobile-settings {
    display: none;
}

/* Por defecto (desktop): mostrar el card layout */
.gf-card {
    display: block;
}

/* ── Responsive: activar layout móvil ── */
@media (max-width: 991px) {

    /* Ocultar el card de desktop */
    .gf-mobile-settings ~ .gf-card {
        display: none;
    }

    /* Mostrar el layout móvil */
    .gf-mobile-settings {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }

    /* ── Grupo (sección) ── */
    .gf-mobile-group {
        background: #fff;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.06);
        border: 1px solid #f1f5f9;
    }

    /* Etiqueta de grupo */
    .gf-mobile-group-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.6rem 1rem 0.55rem;
        font-size: 0.65rem;
        font-weight: 800;
        letter-spacing: 0.09em;
        text-transform: uppercase;
        color: #94a3b8;
        background: #f8fafc;
        border-bottom: 1px solid #f1f5f9;
    }

    .gf-mobile-group-label i {
        font-size: 0.62rem;
    }

    /* ── Lista de rows ── */
    .gf-mobile-rows {
        display: flex;
        flex-direction: column;
    }

    /* ── Row individual (estilo settings list item) ── */
    .gf-mobile-row {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 1rem;
        border-bottom: 1px solid #f8fafc;
        transition: background 0.15s ease;
        min-height: 56px;
    }

    .gf-mobile-row:last-child {
        border-bottom: none;
    }

    .gf-mobile-row:active {
        background: #f8fafc;
    }

    /* Variantes de row por estado de ubicación */
    .gf-mobile-row--loc-set {
        background: #f0fdf4;
    }
    .gf-mobile-row--loc-unset {
        background: #fff7ed;
    }

    /* ── Ícono de row ── */
    .gf-mobile-row-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        color: #fff;
        flex-shrink: 0;
    }

    .gf-mobile-row-icon--identity {
        background: linear-gradient(135deg, #0ea5e9, #7c3aed);
        box-shadow: 0 3px 8px rgba(124,58,237,0.25);
    }

    .gf-mobile-row-icon--contact {
        background: linear-gradient(135deg, #14b8a6, #0891b2);
        box-shadow: 0 3px 8px rgba(20,184,166,0.25);
    }

    .gf-mobile-row-icon--location {
        background: linear-gradient(135deg, #22c55e, #15803d);
        box-shadow: 0 3px 8px rgba(34,197,94,0.25);
    }

    .gf-mobile-row-icon--location-warn {
        background: linear-gradient(135deg, #f97316, #ea580c);
        box-shadow: 0 3px 8px rgba(249,115,22,0.25);
    }

    /* ── Cuerpo del row ── */
    .gf-mobile-row-body {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    /* Label del row */
    .gf-mobile-row-label {
        font-size: 0.68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        color: #94a3b8;
        pointer-events: none;
        line-height: 1;
    }

    /* Input dentro del row */
    .gf-mobile-row-input {
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        font-size: 0.95rem;
        font-weight: 500;
        font-family: inherit;
        color: #1e293b;
        padding: 0;
        line-height: 1.4;
        appearance: none;
        -webkit-appearance: none;
    }

    .gf-mobile-row-input::placeholder {
        color: #cbd5e1;
        font-weight: 400;
        font-size: 0.88rem;
    }

    /* Select dentro del row */
    .gf-mobile-row-select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0 center;
        padding-right: 1rem;
    }

    /* Coordenadas de ubicación (texto) */
    .gf-mobile-row-coords {
        font-size: 0.82rem;
        font-weight: 600;
        color: #15803d;
        letter-spacing: -0.01em;
    }

    /* Hint debajo del input */
    .gf-mobile-row-hint {
        font-size: 0.68rem;
        color: #94a3b8;
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .gf-mobile-row-hint i { font-size: 0.6rem; }
    .gf-mobile-row-hint.ok  { color: #16a34a; }
    .gf-mobile-row-hint.err { color: #dc2626; }

    /* ── Pill button para toggle mapa ── */
    .gf-mobile-map-pill {
        width: 36px;
        height: 36px;
        border-radius: 12px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.85rem;
        flex-shrink: 0;
        cursor: pointer;
        box-shadow: 0 3px 10px rgba(99,102,241,0.3);
        transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .gf-mobile-map-pill:active {
        transform: scale(0.92);
    }

    .gf-mobile-map-pill.active {
        background: linear-gradient(135deg, #64748b, #475569);
        box-shadow: 0 3px 8px rgba(100,116,139,0.2);
    }

    /* ── Panel del mapa expandido (dentro del grupo) ── */
    .gf-mobile-map-panel {
        padding: 0.75rem 0.75rem 0.85rem;
        background: #fafbff;
        border-top: 1px solid #ede9fe;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
    }

    /* Mapa en mobile: más compacto */
    .gf-mobile-map-wrapper {
        width: 100%;
        height: 210px;
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid #818cf8;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
    }

    .gf-mobile-map-wrapper .leaflet-container {
        width: 100%;
        height: 100%;
        background: #f8fafc;
    }

    /* ── Fila de coordenadas compacta ── */
    .gf-mobile-coords-row {
        display: flex;
        gap: 0.5rem;
        align-items: center;
    }

    .gf-mobile-coord-input {
        flex: 1;
        min-width: 0;
        padding: 0.55rem 0.7rem;
        font-size: 0.82rem;
        font-weight: 500;
        font-family: inherit;
        color: #1e293b;
        background: #fff;
        border: 1.5px solid #e2e8f0;
        border-radius: 10px;
        transition: border-color 0.15s ease;
    }

    .gf-mobile-coord-input:focus {
        outline: none;
        border-color: #818cf8;
        box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    }

    .gf-mobile-coord-input::placeholder {
        color: #cbd5e1;
        font-size: 0.78rem;
    }

    .gf-mobile-coord-btn {
        width: 38px;
        height: 38px;
        border-radius: 10px;
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: #fff;
        border: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.9rem;
        flex-shrink: 0;
        cursor: pointer;
        box-shadow: 0 3px 8px rgba(99,102,241,0.3);
        transition: all 0.18s ease;
    }

    .gf-mobile-coord-btn:active {
        transform: scale(0.93);
    }

    /* Corregir gen-panel para el layout móvil */
    .gen-panel {
        padding: 0.75rem 0.85rem 6rem; /* más espacio lateral + room para sticky bar */
    }

    /* Toasts también más compactos */
    .gen-toast {
        margin-bottom: 0.75rem;
        padding: 0.7rem 0.9rem;
        font-size: 0.84rem;
    }

}

/* Leaflet z-index fixes para el mapa móvil */
.gf-mobile-map-wrapper .leaflet-tile-pane { z-index: 1 !important; }
.gf-mobile-map-wrapper .leaflet-pane      { z-index: auto !important; }
.gf-mobile-map-wrapper .leaflet-top,
.gf-mobile-map-wrapper .leaflet-bottom    { z-index: 10 !important; }

.gf-mobile-map-wrapper .leaflet-pane      { z-index: auto !important; }
.gf-mobile-map-wrapper .leaflet-top,
.gf-mobile-map-wrapper .leaflet-bottom    { z-index: 10 !important; }

@media (prefers-reduced-motion: reduce) {
    .gf-mobile-map-pill,
    .gf-mobile-coord-btn { transition: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   PC — PRODUCT CREATE
   Wizard moderno para creación/edición de productos
═══════════════════════════════════════════════════════════ */

/* ── Shell ── */
.pc-shell {
    padding: 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Alert ── */
.pc-alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.85rem;
}
.pc-alert--ok  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.pc-alert--err { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ── Card ── */
.pc-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ── STEPPER ── */
.pc-stepper-wrap {
    padding: 1rem 1.25rem 0;
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.pc-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.85rem;
}

.pc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    flex: 0 0 auto;
    transition: opacity 0.2s ease;
}

.pc-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #94a3b8;
    transition: all 0.3s ease;
    font-weight: 700;
}

.pc-step--active .pc-step-dot {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 0 4px rgba(14,165,233,0.18);
}

.pc-step--done .pc-step-dot {
    background: linear-gradient(135deg, #10b981, #059669);
    border-color: transparent;
    color: #fff;
}

.pc-step-label {
    font-size: 0.6rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
}

.pc-step--active .pc-step-label { color: #0ea5e9; }
.pc-step--done  .pc-step-label  { color: #10b981; }

/* Línea conectora */
.pc-step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.25rem;
    margin-top: -1rem; /* Alinear con centro del dot */
    border-radius: 2px;
    transition: background 0.3s ease;
}
.pc-step-line--done { background: linear-gradient(90deg, #10b981, #0ea5e9); }

/* ── BODY ── */
.pc-body {
    padding: 1.15rem 1.25rem;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Step Header ── */
.pc-step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.pc-step-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.pc-step-title-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(14,165,233,0.3);
}

.pc-step-title-icon--base     { background: linear-gradient(135deg, #f59e0b, #ea580c); box-shadow: 0 4px 12px rgba(245,158,11,0.3); }
.pc-step-title-icon--extras   { background: linear-gradient(135deg, #8b5cf6, #ec4899); box-shadow: 0 4px 12px rgba(139,92,246,0.3); }
.pc-step-title-icon--foto     { background: linear-gradient(135deg, #06b6d4, #0ea5e9); box-shadow: 0 4px 12px rgba(6,182,212,0.3); }
.pc-step-title-icon--inv      { background: linear-gradient(135deg, #22c55e, #16a34a); box-shadow: 0 4px 12px rgba(34,197,94,0.3); }
.pc-step-title-icon--variantes { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: 0 4px 12px rgba(99,102,241,0.3); }
.pc-step-title-icon--mods     { background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 4px 12px rgba(249,115,22,0.3); }

.pc-step-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.pc-step-sub {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ── Help Button ── */
.pc-help-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50rem;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.pc-help-btn:hover { background: #f8fafc; border-color: #cbd5e1; color: #334155; }

/* ── Help Panel (Mini Modal) ── */
.pc-help-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    z-index: 1060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    animation: fadeInHelp 0.2s ease-out;
}
@keyframes fadeInHelp {
    from { opacity: 0; }
    to { opacity: 1; }
}

.pc-help-panel {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    margin: 0;
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transform: scale(1);
    animation: popInHelp 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes popInHelp {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.pc-help-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0f172a;
}

.pc-help-panel-content {
    overflow-y: auto;
    padding-right: 0.5rem;
    scrollbar-width: thin;
}
.pc-help-panel-content::-webkit-scrollbar { width: 4px; }
.pc-help-panel-content::-webkit-scrollbar-track { background: transparent; }
.pc-help-panel-content::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

.pc-help-close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: #64748b;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.2s;
}
.pc-help-close:hover { background: #e2e8f0; color: #334155; }

.pc-help-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.85rem;
    color: #334155;
    line-height: 1.5;
}
.pc-help-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin: 0;
}
.pc-help-list-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: -1px;
}

.pc-help-list li { margin-bottom: 0.3rem; }
.pc-help-list li:last-child { margin-bottom: 0; }

/* ── TYPE CARDS (Paso 1) ── */
.pc-type-grid {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pc-type-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.pc-type-card:hover {
    border-color: #bae6fd;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14,165,233,0.06);
}

.pc-type-card--selected {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    box-shadow: 0 6px 24px rgba(14,165,233,0.18);
    transform: translateY(-2px);
}

.pc-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #64748b;
    background: #f1f5f9;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pc-type-card--selected .pc-type-icon { color: #fff; }
.pc-type-icon--simple    { background: linear-gradient(135deg, #0ea5e9, #6366f1); color: #fff; }
.pc-type-icon--variantes { background: linear-gradient(135deg, #8b5cf6, #ec4899); color: #fff; }
.pc-type-icon--mods      { background: linear-gradient(135deg, #f97316, #dc2626); color: #fff; }

.pc-type-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.pc-type-desc {
    font-size: 0.78rem;
    color: #475569;
    line-height: 1.4;
    margin-top: 0.15rem;
}

.pc-type-check {
    margin-left: auto;
    font-size: 1.1rem;
    color: #0ea5e9;
    flex-shrink: 0;
}

/* ── ISLANDS (Campos) ── */
.pc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.pc-form-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.pc-island {
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.015);
}

.pc-island:focus-within {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
    transform: translateY(-1px);
}

.pc-island--full {
    grid-column: 1 / -1;
}

.pc-island--price {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pc-island--price:focus-within {
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.pc-island--green {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pc-island-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.pc-island-label i {
    color: #94a3b8;
}

.pc-island-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    font-family: inherit;
    width: 100%;
    padding: 0;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
}

.pc-island-input::placeholder { color: #94a3b8; font-weight: 500; }
.pc-island-input--price       { color: #166534; font-size: 1.25rem; font-weight: 800; }
.pc-island-input--invalid     { color: #dc2626; }

.pc-island-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 1rem;
}

.pc-island-date {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.25rem;
}

.pc-required { color: #ef4444; }

.pc-price-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.pc-price-prefix {
    font-size: 1rem;
    font-weight: 800;
    color: #22c55e;
    flex-shrink: 0;
}

.pc-price-suffix {
    font-size: 1rem;
    font-weight: 800;
    color: #22c55e;
    flex-shrink: 0;
}

.pc-island-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.2rem;
}
.pc-island-hint--err { color: #dc2626; }

/* ── SWITCH ROW ── */
.pc-switch-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-top: 0.4rem;
}

.pc-switch-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pc-switch-thumb {
    width: 34px;
    height: 20px;
    border-radius: 10px;
    background: #e2e8f0;
    position: relative;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.pc-switch-thumb::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    top: 3px;
    left: 3px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.pc-switch-input:checked ~ .pc-switch-thumb { background: #22c55e; }
.pc-switch-input:checked ~ .pc-switch-thumb::after { transform: translateX(14px); }

.pc-switch-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
}

/* ── OFERTA CARD ── */
.pc-oferta-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.pc-oferta-header {
    background: linear-gradient(135deg, #818cf8, #4f46e5);
    color: #fff;
    padding: 0.85rem 1.25rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pc-oferta-base-price {
    text-align: center;
    padding: 1rem 1rem 0 1rem;
    color: #475569;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
.pc-oferta-base-price strong {
    color: #0f172a;
    font-size: 1.2rem;
    background: #f1f5f9;
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
}

.pc-oferta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.85rem;
    padding: 1.25rem;
}

.pc-oferta-content {
    padding: 1.25rem;
}

.pc-switch-island {
    justify-content: center;
    background: #f8fafc;
    border-style: dashed;
}


.pc-section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pc-outline-btn--sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* ── SECTION LABEL ── */
.pc-section-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
    margin-top: 0.25rem;
}

/* ── PHOTO UPLOAD (Paso 4) ── */
.pc-photo-zone {
    position: relative;
    width: 100%;
}

.pc-photo-input {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.pc-photo-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2.5rem 1.5rem;
    border: 2.5px dashed #bae6fd;
    border-radius: 20px;
    background: linear-gradient(135deg, #f0f9ff, #eff6ff);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.pc-photo-drop:hover {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #e0f2fe, #e0e7ff);
    transform: scale(1.01);
}

.pc-photo-drop-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(14,165,233,0.3);
}

.pc-photo-drop-title {
    font-size: 1rem;
    font-weight: 800;
    color: #1e293b;
}

.pc-photo-drop-sub {
    font-size: 0.78rem;
    color: #94a3b8;
}

.pc-photo-preview {
    position: relative;
    display: flex;
    justify-content: center;
}

.pc-photo-preview img {
    max-width: 100%;
    max-height: 260px;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.pc-photo-overlay {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
}

.pc-photo-change-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    background: rgba(15,23,42,0.75);
    backdrop-filter: blur(8px);
    color: #fff;
    border-radius: 50rem;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

/* ── SIMPLE INVENTARIO (Paso 5) ── */
.pc-simple-inv {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.pc-switch-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.pc-switch-card:hover { border-color: #818cf8; }
.pc-switch-input:checked ~ .pc-switch-thumb + .pc-switch-card-text .pc-switch-card-title { color: #22c55e; }

.pc-switch-card-text { flex: 1; }
.pc-switch-card-title { display: block; font-size: 0.95rem; font-weight: 800; color: #1e293b; }
.pc-switch-card-sub   { display: block; font-size: 0.75rem; color: #94a3b8; margin-top: 0.1rem; }

.pc-stock-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.pc-stock-input {
    width: 120px;
    text-align: center;
    padding: 0.7rem 0.85rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #818cf8;
    border-radius: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pc-stock-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ── VARIANTES: GRUPOS ── */
.pc-var-group {
    background: #f8fafc;
    border: 1.5px solid #e0e7ff;
    border-radius: 16px;
    padding: 0.9rem;
    margin-bottom: 0.75rem;
}

.pc-var-group-head {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.7rem;
    flex-wrap: nowrap;
}

.pc-var-group-name {
    flex: 1;
    min-width: 120px;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.5rem 0.75rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #6366f1;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.pc-var-group-name:focus { border-color: #818cf8; }

.pc-var-delete-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.pc-var-delete-btn:hover { background: #dc2626; color: #fff; }

/* Pill tags */
.pc-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
    align-items: center;
}

.pc-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: #6366f1;
    padding: 0.3rem 0.7rem;
    border-radius: 50rem;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1px solid #c4b5fd;
}

.pc-pill button {
    background: none;
    border: none;
    color: #a78bfa;
    padding: 0;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    line-height: 1;
}

.pc-var-add-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pc-var-add-row .pc-island-input {
    flex: 1;
    padding: 0.55rem 0.75rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e293b;
    font-family: inherit;
    transition: border-color 0.15s ease;
}

.pc-var-add-row .pc-island-input:focus { outline: none; border-color: #818cf8; }

.pc-add-btn {
    padding: 0.55rem 0.9rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    transition: opacity 0.15s ease;
}

.pc-add-btn:hover { opacity: 0.9; }

/* Acciones de variantes */
.pc-var-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pc-outline-btn {
    padding: 0.55rem 1rem;
    background: transparent;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}

.pc-outline-btn:hover { border-color: #6366f1; color: #6366f1; background: #f5f3ff; }

.pc-outline-btn--green:hover { border-color: #22c55e; color: #22c55e; background: #f0fdf4; }

.pc-primary-btn {
    padding: 0.55rem 1rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(14,165,233,0.25);
    transition: opacity 0.15s ease;
}

.pc-primary-btn:hover { opacity: 0.9; }
.pc-primary-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* SKU Table */
.pc-sku-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    margin-bottom: 0.5rem;
}

.pc-sku-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.83rem;
}

.pc-sku-table thead tr {
    background: #f8fafc;
    border-bottom: 1.5px solid #e2e8f0;
}

.pc-sku-table th {
    padding: 0.6rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    white-space: nowrap;
}

.pc-sku-table td {
    padding: 0.5rem 0.65rem;
    border-bottom: 1px solid #f8fafc;
}

.pc-sku-img-cell {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1.5px dashed #e2e8f0;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 0.85rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.pc-sku-img-cell:hover { border-color: #818cf8; }

.pc-sku-img-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-sku-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.82rem;
    max-width: 140px;
    word-break: break-all;
}

.pc-sku-price-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    padding: 0 0.4rem;
}

.pc-sku-price-wrap span {
    font-size: 0.75rem;
    font-weight: 700;
    color: #94a3b8;
}

.pc-sku-price-wrap .pc-red { color: #fca5a5; }

.pc-sku-price-input {
    border: none;
    background: transparent;
    flex: 1;
    min-width: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    padding: 0.35rem 0.3rem;
    outline: none;
    font-family: inherit;
}

.pc-sku-price-input.pc-input--invalid { color: #dc2626; }

.pc-sku-stock-input.pc-input--invalid {
    border-color: #ef4444 !important;
    background: #fef2f2;
    color: #b91c1c;
}

.pc-sku-stock-input {
    width: 60px;
    text-align: center;
    padding: 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-family: inherit;
}

.pc-sku-err-row td {
    font-size: 0.72rem;
    color: #dc2626;
    background: #fef2f2;
    padding: 0.3rem 0.65rem;
    border-bottom: 1px solid #fca5a5;
}

.pc-sku-hint {
    font-size: 0.72rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ── INFO BANNER ── */
.pc-info-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    font-size: 0.8rem;
    color: #1e40af;
    line-height: 1.5;
    margin-bottom: 0.85rem;
}

.pc-info-banner i { margin-top: 0.1rem; flex-shrink: 0; }
.pc-info-banner--warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }

/* ── MODIFICADORES (PREMIUM REDESIGN) ── */
.pc-mod-group {
    position: relative;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03), 0 1px 3px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pc-mod-group:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.05), 0 2px 6px rgba(0,0,0,0.03);
    transform: translateY(-2px);
}

.pc-mod-group-del-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid #fca5a5;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(220,38,38,0.2);
    transition: all 0.2s ease;
    z-index: 5;
}
.pc-mod-group-del-btn:hover {
    background: #dc2626;
    color: #fff;
    transform: scale(1.1);
}

.pc-dashed-add-btn {
    width: 100%;
    padding: 1rem;
    background: #f8fafc;
    border: 2.5px dashed #cbd5e1;
    border-radius: 16px;
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.pc-dashed-add-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: #f5f3ff;
}

.pc-mod-group-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.pc-var-group-name {
    flex: 1;
    min-width: 140px;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
    outline: none;
    transition: all 0.2s ease;
}
.pc-var-group-name::placeholder {
    font-weight: 500;
    color: #94a3b8;
    font-family: inherit;
    transition: all 0.2s ease;
}

.pc-var-group-name:hover {
    background: #f1f5f9;
}

.pc-var-group-name:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.pc-var-group-name.pc-input--invalid {
    border-color: #ef4444;
    background: #fef2f2;
}

.pc-mod-rule-select {
    flex: 1;
    min-width: 150px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #1d4ed8;
    outline: none;
    font-family: inherit;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-mod-rule-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.pc-mod-min-max {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: #eff6ff;
    border-radius: 10px;
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #1d4ed8;
}

.pc-mod-minmax-input {
    width: 48px;
    text-align: center;
    border: 1.5px solid transparent;
    border-radius: 8px;
    padding: 0.25rem;
    font-size: 0.85rem;
    font-weight: 800;
    color: #1e40af;
    background: #ffffff;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.pc-mod-minmax-input:focus {
    border-color: #3b82f6;
}

.pc-mod-opciones {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.pc-mod-opcion {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pc-mod-opcion .pc-island-input {
    flex: 1;
    padding: 0.55rem 0.85rem;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1e293b;
    font-family: inherit;
    transition: all 0.2s ease;
}

.pc-mod-opcion .pc-island-input.pc-input--invalid { border-color: #ef4444; }
.pc-mod-opcion .pc-island-input:hover:not(.pc-input--invalid) { border-color: #94a3b8; }

.pc-mod-opcion .pc-island-input:focus {
    background: #ffffff;
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.pc-mod-precio-wrap {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 0.6rem;
    transition: all 0.2s ease;
}

.pc-mod-precio-wrap:has(.pc-input--invalid) { border-color: #ef4444; }

.pc-mod-precio-wrap:focus-within:not(:has(.pc-input--invalid)) {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}

.pc-mod-precio-prefix {
    font-size: 0.8rem;
    font-weight: 800;
    color: #64748b;
}

.pc-mod-precio-input {
    width: 68px;
    border: none;
    background: transparent;
    padding: 0.55rem 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: #334155;
    outline: none;
    font-family: inherit;
}

.pc-mod-gratis {
    font-size: 0.95rem;
    color: #10b981;
}

.pc-mod-del-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1.5px solid transparent;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.pc-mod-del-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
    transform: scale(1.05);
}

.pc-mod-add-opt {
    background: none;
    border: none;
    color: #8b5cf6;
    font-size: 0.85rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.pc-mod-add-opt:hover {
    background: #f5f3ff;
    color: #7c3aed;
}

/* ── FOOTER ── */
.pc-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

.pc-cancel-btn {
    padding: 0.6rem 1.2rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pc-cancel-btn:hover { border-color: #94a3b8; color: #64748b; }

.pc-back-btn {
    padding: 0.6rem 1.1rem;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.pc-back-btn:hover { border-color: #94a3b8; }

.pc-next-btn {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(14,165,233,0.3);
    transition: all 0.2s ease;
}

.pc-next-btn:hover { opacity: 0.92; transform: translateY(-1px); }

.pc-submit-btn {
    padding: 0.65rem 1.5rem;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border: none;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(34,197,94,0.3);
    transition: all 0.2s ease;
}

.pc-submit-btn:hover { opacity: 0.92; }
.pc-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Active (Click) States for Buttons */
.pc-primary-btn:active,
.pc-outline-btn:active,
.pc-submit-btn:active:not(:disabled),
.pc-next-btn:active:not(:disabled),
.pc-file-btn-wrap:active .pc-primary-btn {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease;
}

.pc-file-btn-wrap:hover .pc-primary-btn {
    opacity: 0.9;
    background-color: #2563eb;
}

/* ═══════════════════════════════════════════
   PC RESPONSIVE — MOBILE / OFFCANVAS
═══════════════════════════════════════════ */

@media (max-width: 991px) {

    .pc-shell { padding: 0 !important; }
    
    .pc-mod-group-head {
        flex-wrap: wrap;
    }
    
    .pc-var-group-name {
        flex: 1;
        min-width: 0;
    }
    
    .pc-mod-opcion {
        gap: 0.8rem;
    }

    /* Stepper: un poco de padding para que no toque los bordes del celular, pero sin encoger tanto */
    .pc-stepper-wrap { padding: 1rem 1rem 0; }
    .pc-stepper { padding-bottom: 0.85rem; }

    .pc-step-dot {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .pc-step-label { font-size: 0.65rem; }

    .pc-step-line { margin: 0 0.25rem; margin-top: -1rem; }

    /* Body: padding adecuado para que "respire" en el celular */
    .pc-body { padding: 1rem 1rem; }

    /* Form grid: 2 columns on mobile para agrupar campos relacionados */
    .pc-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pc-form-grid--3 {
        grid-template-columns: 1fr 1fr;
    }

    /* Precio: lado a lado con nombre */
    .pc-island--price { grid-column: auto; }

    /* Oferta: stack vertical */
    .pc-oferta-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
    }

    /* Type cards: sin reducir tanto el padding */
    .pc-type-card { padding: 1rem; }

    /* Photo */
    .pc-photo-drop { padding: 2rem 1rem; }

    /* SKU table: scroll horizontal */
    .pc-sku-table-wrap { -webkit-overflow-scrolling: touch; }

    /* Footer */
    .pc-foot { padding: 1rem; flex-direction: column-reverse; gap: 0.75rem; align-items: stretch; }
    .pc-foot > div { display: flex; flex-direction: column; width: 100%; }
    .pc-foot button { width: 100%; justify-content: center; }

    /* Mod head wrap */
    .pc-mod-group-head { gap: 0.65rem; }
    .pc-mod-rule-select { flex: 1 1 100%; font-size: 0.85rem; padding: 0.65rem 0.85rem; }
    .pc-mod-min-max { flex: 1 1 100%; justify-content: center; padding: 0.65rem 0.75rem; }

    /* Variantes add row */
    .pc-var-actions { gap: 0.5rem; }

    /* Step header */
    .pc-step-title-icon { width: 38px; height: 38px; font-size: 0.9rem; }
    .pc-step-title { font-size: 1rem; }

}

@media (max-width: 500px) {
    /* Mantener 2 columnas para campos agrupados (Precio/Costo, etc) */
    .pc-form-grid { grid-template-columns: 1fr 1fr; }
    .pc-form-grid--3 { grid-template-columns: 1fr; }
}

@media (max-width: 991px) {
    /* Hacer que en móvil el Producto Crear sea edge-to-edge sin causar overflow */
    .edit-main.edit-main--product-mode {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
    }
    .edit-main.edit-main--product-mode .edit-mobile-header {
        top: 0;
        padding: 1rem 1.5rem;
        background: #fff;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 0 !important;
        z-index: 60;
        margin-left: 0;
        margin-right: 0;
    }
    .edit-main.edit-main--product-mode .edit-sections-wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
    }
    .edit-main.edit-main--product-mode .edit-tab-section {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding: 0 !important;
    }
    .edit-card--product {
        display: flex;
        flex-direction: column;
        flex: 1;
        background: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    .edit-card--product .edit-card-header {
        border-radius: 0 !important;
        margin-bottom: 0 !important;
        border: none !important;
        border-bottom: 1px solid #f1f5f9 !important;
        position: sticky;
        top: 0;
        z-index: 50;
        padding: 1rem 1.5rem !important;
        background: #fff !important;
    }
    .edit-card--product .pc-shell {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
        display: flex;
        flex: 1;
        flex-direction: column;
    }
    .edit-card--product form {
        display: flex;
        flex: 1;
        flex-direction: column;
    }
    .edit-card--product .pc-card {
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 1;
        background: #fff !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-type-card,
    .pc-next-btn,
    .pc-submit-btn { transition: none !important; transform: none !important; }
}
/* Var Mockup Help Modal */
.var-mockup-container {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.var-mockup-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    width: 100%;
    padding: 0.75rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.var-mockup-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.5rem;
}
.var-mockup-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.var-mockup-badge {
    background: #f1f5f9;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}
.var-mockup-badge.color-r { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.var-mockup-badge.color-b { background: #f1f5f9; color: #0f172a; border-color: #cbd5e1; }

.var-mockup-arrow {
    margin: 1rem 0;
    color: #94a3b8;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
}
.var-mockup-arrow i {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    animation: bounceHelpArrow 2s infinite;
}
@keyframes bounceHelpArrow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.var-mockup-result {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.var-mockup-row {
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.var-mockup-row i { color: #3b82f6; }

@media (max-width: 768px) {
    .pc-sku-table-wrap {
        border: none;
        background: transparent;
        overflow: visible !important;
        -webkit-overflow-scrolling: auto !important;
    }
    .pc-sku-table, .pc-sku-table tbody, .pc-sku-table tr, .pc-sku-table td {
        display: block;
        width: 100%;
    }
    .pc-sku-table thead {
        display: none;
    }
    .pc-sku-table tr {
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
        position: relative;
    }
    .pc-sku-table td {
        border: none;
        padding: 0.35rem 0;
    }
    .pc-sku-table td:nth-child(1) { /* Foto */
        position: absolute;
        top: 1rem;
        left: 1rem;
        width: 55px;
    }
    .pc-sku-img-cell {
        width: 50px;
        height: 50px;
    }
    .pc-sku-table td.pc-sku-name { /* Variante Name */
        margin-left: 65px;
        font-size: 1.05rem;
        font-weight: 800;
        color: #0f172a;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid #f1f5f9;
        padding-bottom: 0.75rem;
        text-transform: capitalize;
    }
    /* Grid for Inputs */
    .pc-sku-table td:nth-child(3),
    .pc-sku-table td:nth-child(4),
    .pc-sku-table td:nth-child(5) {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .pc-sku-table td:nth-child(3)::before { content: "Precio Base"; font-size: 0.8rem; color: #64748b; font-weight: 600; }
    .pc-sku-table td:nth-child(4)::before { content: "Precio Oferta"; font-size: 0.8rem; color: #64748b; font-weight: 600; }
    .pc-sku-table td:nth-child(5)::before { content: "Stock"; font-size: 0.8rem; color: #64748b; font-weight: 600; }
    
    .pc-sku-price-wrap, .pc-sku-stock-input {
        width: 150px;
    }
}

/* Bulk Image Modal */
dialog.pc-bulk-modal { margin: auto; padding: 1rem; border: none; background: transparent; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
dialog.pc-bulk-modal[open] { display: flex; align-items: center; justify-content: center; }
dialog.pc-bulk-modal::backdrop { background: rgba(15,23,42,0.6); backdrop-filter: blur(4px); }
.pc-bulk-modal-content { background: #fff; border-radius: 16px; width: 100%; max-width: 500px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); overflow: hidden; }
.pc-bulk-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; }
.pc-bulk-close { background: none; border: none; font-size: 1.25rem; color: #64748b; cursor: pointer; transition: color 0.2s; }
.pc-bulk-close:hover { color: #ef4444; }
.pc-bulk-modal-body { padding: 1.5rem; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.pc-bulk-img-preview { width: 120px; height: 120px; border-radius: 12px; margin: 0 auto 1rem auto; border: 2px dashed #cbd5e1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f8fafc; }
.pc-bulk-img-preview img { width: 100%; height: 100%; object-fit: cover; }
.pc-bulk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.pc-bulk-card { display: flex; align-items: center; gap: 0.5rem; border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.5rem 0.75rem; cursor: pointer; transition: all 0.2s; background: #fff; user-select: none; }
.pc-bulk-card:hover { border-color: #cbd5e1; background: #f8fafc; }
.pc-bulk-card.active { border-color: #3b82f6; background: #eff6ff; }
.pc-bulk-card-icon { width: 28px; height: 28px; border-radius: 6px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; }
.pc-bulk-card-name { font-size: 0.85rem; font-weight: 600; color: #334155; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-bulk-card-check { font-size: 1.1rem; flex-shrink: 0; }
.pc-bulk-modal-foot { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-top: 1px solid #e2e8f0; background: #f8fafc; }

@media (max-width: 480px) {
    .pc-bulk-grid { grid-template-columns: 1fr; }
    .pc-bulk-modal-foot { flex-direction: column; gap: 0.75rem; }
    .pc-bulk-modal-foot button { width: 100%; justify-content: center; }
}
.edit-main.edit-main--product-mode .edit-mobile-header { margin: 0 !important; }
