/* Editor self-service de branding para dueños de licencia (/mi-pagina).
   Página standalone — estilos propios, sin depender de templates de marketplace. */

.mp-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px;
    background: linear-gradient(160deg, #faf7fb 0%, #f3eef6 100%);
    font-family: 'Inter', system-ui, sans-serif;
    color: #2a2230;
}

.mp-card {
    width: 100%;
    max-width: 560px;
    background: #ffffff;
    border: 1px solid #ece6f0;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(60, 30, 70, 0.08);
    padding: 32px;
}

.mp-center {
    text-align: center;
    padding: 56px 32px;
}

.mp-head {
    margin-bottom: 24px;
    border-bottom: 1px solid #f0ebf3;
    padding-bottom: 20px;
}

.mp-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: -0.02em;
    /* Reglas globales de admin pintan h1 en color claro vía -webkit-text-fill-color.
       Forzamos oscuro para que el título no salga fantasma sobre la card blanca. */
    color: #2a2230 !important;
    -webkit-text-fill-color: #2a2230 !important;
    background: none !important;
}

.mp-muted {
    color: #7a6f82;
    font-size: 0.95rem;
    margin: 0;
}

.mp-link {
    display: inline-block;
    margin-top: 12px;
    color: #b01e6d;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
}

.mp-link:hover { text-decoration: underline; }

.mp-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
    flex: 1;
}

.mp-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a4152;
}

.mp-input {
    width: 100%;
    border: 1.5px solid #e2dae8;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.95rem;
    color: #2a2230;
    background: #fdfbfe;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-family: inherit;
}

.mp-input:focus {
    outline: none;
    border-color: #d6469b;
    box-shadow: 0 0 0 3px rgba(214, 70, 155, 0.15);
}

.mp-area { resize: vertical; min-height: 96px; }

.mp-row { display: flex; gap: 16px; }

.mp-color {
    width: 100%;
    height: 46px;
    border: 1.5px solid #e2dae8;
    border-radius: 12px;
    padding: 4px;
    background: #fdfbfe;
    cursor: pointer;
}

.mp-actions {
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
}

.mp-btn {
    background: linear-gradient(135deg, #e0307f 0%, #b01e6d 100%);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 13px 30px;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.12s;
    box-shadow: 0 6px 18px rgba(176, 30, 109, 0.28);
}

.mp-btn:hover:not(:disabled) { transform: translateY(-1px); }
.mp-btn:disabled { opacity: 0.6; cursor: default; }

.mp-toast {
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 0.92rem;
    font-weight: 600;
    margin: 4px 0 18px;
}

.mp-toast--ok { background: #e9f9ef; color: #1c7a45; border: 1px solid #bce6cd; }
.mp-toast--err { background: #fdecec; color: #b3261e; border: 1px solid #f3c2c0; }

/* ── Mini-CMS: secciones y listas dinámicas ── */
.mp-section {
    border-top: 1px solid #f0ebf3;
    margin-top: 24px;
    padding-top: 22px;
}

.mp-section-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #2a2230;
    margin: 0 0 14px;
}

.mp-hint {
    font-weight: 500;
    font-size: 0.8rem;
    color: #9a8fa3;
}

.mp-field--sm { flex: 0 0 130px; }

.mp-listrow {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.mp-listrow .mp-input { flex: 1; }

.mp-card-item {
    background: #fbf8fd;
    border: 1px solid #efe7f3;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}

.mp-card-item .mp-row { align-items: flex-end; }
.mp-card-item .mp-field { margin-bottom: 10px; }

.mp-del {
    flex: 0 0 auto;
    width: 40px;
    height: 46px;
    border: 1.5px solid #f3c2c0;
    background: #fdecec;
    color: #b3261e;
    border-radius: 12px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.12s;
}

.mp-del:hover { background: #f9d6d4; }
.mp-del--card { height: 46px; }

.mp-add {
    display: inline-block;
    margin-top: 4px;
    background: #f3eaf8;
    color: #8b3aa8;
    border: 1.5px dashed #d6b9e6;
    border-radius: 12px;
    padding: 9px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.12s;
}

.mp-add:hover { background: #ecdcf4; }

.mp-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236a4654' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

@media (max-width: 520px) {
    .mp-card { padding: 24px; }
    .mp-row { flex-direction: column; gap: 0; }
    .mp-field--sm { flex: 1; }
}
