:root { 
    --m-p: #845afd; 
    --m-o: #4b2aad; 
    --m-bg: #e9e4ff; 
    --m-border: #845afd;
    --m-f: #f4f2ff;
    --m-error: #ff4d4d;
}

body { background-color: var(--m-bg); font-family: 'Plus Jakarta Sans', sans-serif; color: #1a1a1a; }
.premium-wrapper { max-width: 1000px; margin: 0 auto; padding: 20px; }

/* ENCABEZADO */
.header-container { text-align: center; margin-bottom: 50px; padding-top: 30px; }
.header-container h1 { font-family: 'DM Serif Display', serif; color: var(--m-o); font-size: 3.8rem; margin: 0; line-height: 1; }
.header-container p { font-weight: 700; color: var(--m-p); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-top: 10px; }

/* ALERTAS */
.m-alert {
    position: fixed; top: 20px; right: 20px; z-index: 9999;
    background: white; border: 3px solid var(--m-p); border-radius: 25px;
    padding: 20px 30px; display: flex; align-items: center; gap: 15px;
    box-shadow: 0 15px 35px rgba(132, 90, 253, 0.3);
    transform: translateX(130%); transition: 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
.m-alert.show { transform: translateX(0); }
.m-alert.error { border-color: var(--m-error); }
.m-alert i { font-size: 1.5rem; color: var(--m-o); }
.m-alert.error i { color: var(--m-error); }
.m-alert-text { font-weight: 700; color: #1a1a1a; font-size: 0.9rem; }

/* PANELES */
.panel-custom {
    background: white; border-radius: 40px; padding: 45px;
    border: 4px solid var(--m-border);
    box-shadow: 0 15px 40px rgba(132, 90, 253, 0.15);
    margin-bottom: 40px; position: relative;
}
.section-header {
    display: flex; align-items: center; margin-bottom: 30px;
    border-bottom: 2px solid #f0edff; padding-bottom: 15px;
}
.icon-box {
    width: 45px; height: 45px; background: var(--m-o); color: white;
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    margin-right: 15px; font-size: 1.2rem;
}
.section-title { font-weight: 800; color: #1a1a1a; margin: 0; font-size: 1.3rem; }

/* FORMULARIOS */
.form-label { font-weight: 800; color: var(--m-o); margin-bottom: 8px; display: block; font-size: 0.75rem; text-transform: uppercase; }
.form-control-custom {
    width: 100%; border-radius: 18px; border: 2px solid #d1c9ff; padding: 12px 20px;
    transition: 0.3s; background: white; color: #555; margin-bottom: 5px;
}
.form-control-custom:focus { outline: none; border-color: var(--m-p); box-shadow: 0 0 0 4px rgba(132, 90, 253, 0.1); }
.form-control-custom[readonly] { background: #f4f2ff; cursor: not-allowed; }

.char-counter { font-size: 0.7rem; font-weight: 700; text-align: right; color: var(--m-p); margin-bottom: 15px; }
.char-counter.limit { color: var(--m-error); }

/* IMÁGENES */
.upload-zone {
    border: 3px dashed var(--m-p); border-radius: 30px; height: 280px;
    background: #f9f8ff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; position: relative; overflow: hidden; margin-bottom: 30px;
}
.upload-zone img { width: 100%; height: 100%; object-fit: contain; position: absolute; background: white; }

.galeria-item {
    width: 100px; height: 100px; border: 2px dashed var(--m-p); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.btn-remove-photo {
    position: absolute; top: 2px; right: 2px; background: var(--m-error); color: white;
    border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; z-index: 10; cursor: pointer;
}

.btn-add-photo { color: var(--m-p); border: none; background: transparent; }

/* VARIANTES */
.color-variant-card {
    background: var(--m-f); border: 2px solid #e9e4ff; border-radius: 30px;
    padding: 25px; margin-bottom: 25px; border-left: 10px solid var(--m-p);
}
.mini-upload {
    width: 70px; height: 70px; border: 2px dashed var(--m-p); border-radius: 15px;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    position: relative; overflow: hidden; background: white;
}
.mini-upload img { width: 100%; height: 100%; object-fit: cover; position: absolute; }

.size-matrix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 20px; }
.size-box { background: white; border: 2px solid #eee; border-radius: 20px; padding: 15px; text-align: center; transition: 0.3s; }
.size-box.active { border-color: var(--m-p); box-shadow: 0 5px 15px rgba(132, 90, 253, 0.2); }
.size-box.inactive { opacity: 0.6; background: #f9f9f9; }
.size-box.inactive .inputs-area { display: none; }

.size-badge { background: var(--m-o); color: white; border-radius: 8px; font-size: 0.75rem; font-weight: 800; padding: 2px 10px; margin-bottom: 10px; display: inline-block; }
.input-matrix { font-size: 0.8rem; font-weight: 700; border: 1.5px solid #d1c9ff; border-radius: 10px; text-align: center; padding: 5px; width: 100%; margin-top: 5px; }

/* BOTÓN PUBLICAR */
.btn-main {
    background: var(--m-o); color: white; border: none; padding: 20px 80px;
    border-radius: 60px; font-weight: 800; font-size: 1.4rem; transition: 0.4s;
    box-shadow: 0 15px 30px rgba(75, 42, 173, 0.3); cursor: pointer;
}
.btn-main:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(75, 42, 173, 0.4); }

.form-check-input:checked { background-color: var(--m-p); border-color: var(--m-p); }