/* emp.tema.editor.css
   Estilos del editor de apariencia (emp.tema.editor.js): asistente de instalación y Parametrización › Apariencia.
   Usa --tp-c / --tp-c1 (color elegido) para teñir sus propios controles. */
.tp-raiz { --tp-c: #a3145f; --tp-c1: #6d0c40; font-family: 'Quicksand', sans-serif; color: #3a2230; }
.tp-raiz * { box-sizing: border-box; }
.tp-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 22px; align-items: start; }
.tp-form section { background: #fff; border: 1px solid #eadbe3; border-radius: 18px; padding: 16px 18px; margin-bottom: 14px; }
.tp-form h4, .tp-vista h4 { margin: 0 0 12px; font-size: 1rem; font-weight: 700; color: var(--tp-c1); display: flex; align-items: center; gap: 8px; }
.tp-form h4 i, .tp-vista h4 i { color: var(--tp-c); }
.tp-vista h5 { margin: 14px 0 6px; font-size: .8rem; text-transform: uppercase; letter-spacing: .6px; color: #8a6a7b; }
.tp-vista-in { position: sticky; top: 12px; }
.tp-nota { margin: 0 0 10px; font-size: .84rem; color: #7a5d6b; }
.tp-fila { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.tp-fila-3 { grid-template-columns: 1fr 1fr 1.2fr; margin-top: 12px; }
.tp-raiz label { display: flex; flex-direction: column; gap: 5px; font-size: .8rem; font-weight: 700; color: #6b4a5b; }
.tp-raiz input[type=text], .tp-raiz select { height: 42px; border: 1.5px solid #e6d3dd; border-radius: 12px; padding: 0 12px; font: 600 .92rem 'Quicksand', sans-serif; color: #3a2230; background: #fff; width: 100%; }
.tp-raiz input[type=text]:focus, .tp-raiz select:focus { outline: none; border-color: var(--tp-c); box-shadow: 0 0 0 3px rgba(163,20,95,.12); }
.tp-raiz input[type=range] { accent-color: var(--tp-c); width: 100%; }
.tp-pals { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tp-pal { border: 2px solid #eadbe3; background: #fff; border-radius: 14px; padding: 8px; cursor: pointer; text-align: left; position: relative; font-family: inherit; transition: transform .2s, border-color .2s; }
.tp-pal:hover { transform: translateY(-2px); border-color: var(--tp-c); }
.tp-pal.on { border-color: var(--tp-c); box-shadow: 0 0 0 3px rgba(163,20,95,.15); }
.tp-pal span { display: block; height: 34px; border-radius: 9px; }
.tp-pal i { position: absolute; right: 14px; top: 34px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; }
.tp-pal em { display: block; margin-top: 6px; font-style: normal; font-weight: 700; font-size: .78rem; color: #4a2c3c; }
.tp-personal { margin-top: 12px; }
.tp-personal summary { cursor: pointer; font-weight: 700; font-size: .85rem; color: var(--tp-c); }
.tp-colores { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.tp-colores input[type=color] { width: 100%; height: 40px; border: 1.5px solid #e6d3dd; border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.tp-ops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tp-ops-lg { margin-bottom: 12px; }
.tp-op { cursor: pointer; text-align: center; align-items: center; }
.tp-op input { position: absolute; opacity: 0; pointer-events: none; }
.tp-op .tp-mini { display: block; width: 100%; height: 46px; border-radius: 10px; border: 2px solid #eadbe3; background: #fff; position: relative; overflow: hidden; transition: border-color .2s; }
.tp-op input:checked + .tp-mini { border-color: var(--tp-c); box-shadow: 0 0 0 3px rgba(163,20,95,.15); }
.tp-op b { font-size: .8rem; color: #4a2c3c; }
.tp-mini::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 24px; background: var(--tp-c); }
.tp-cab-ondas::before { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V12 C80,26 60,8 40,14 C20,20 10,24 0,12 Z'/%3E%3C/svg%3E") center/100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 24' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H100 V12 C80,26 60,8 40,14 C20,20 10,24 0,12 Z'/%3E%3C/svg%3E") center/100% 100%; }
.tp-cab-curva::before { border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.tp-cab-diagonal::before { clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%); }
.tp-cab-plano::before { height: 18px; border-radius: 0 0 8px 8px; }
.tp-ops-lg { grid-template-columns: repeat(4, 1fr); }
.tp-lg { height: 58px !important; background: #f6eef2 !important; }
.tp-lg::before { display: none; }
.ml { position: absolute; inset: 0; }
.ml i { position: absolute; background: var(--tp-c); }
.ml b { position: absolute; background: #fff; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.ml-div i { left: 0; top: 0; bottom: 0; width: 45%; }
.ml-div b { right: 8%; top: 18%; bottom: 18%; width: 38%; }
.ml-cen i { left: 0; right: 0; top: 0; height: 45%; border-radius: 0 0 50% 50%/0 0 60% 60%; }
.ml-cen b { left: 25%; right: 25%; top: 28%; bottom: 10%; }
.ml-min b { left: 28%; right: 28%; top: 15%; bottom: 15%; }
.ml-fon { background: linear-gradient(135deg, var(--tp-c1), var(--tp-c)); }
.ml-fon b { left: 28%; right: 28%; top: 15%; bottom: 15%; background: rgba(255,255,255,.85); }
.tp-checks { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.tp-checks label { flex-direction: row; align-items: center; gap: 8px; font-weight: 600; }
.tp-checks input { accent-color: var(--tp-c); width: 17px; height: 17px; }
.tp-muestra { margin: 10px 0 0; padding: 12px 14px; background: #faf3f7; border-radius: 12px; }
.tp-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tp-logo-caja { border: 1.5px dashed #dcc3d1; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: .8rem; font-weight: 700; color: #6b4a5b; }
.tp-logo-caja small { font-weight: 500; color: #9a7d8b; }
.tp-logo-v { height: 80px; border-radius: 10px; background: repeating-conic-gradient(#f3eaf0 0 25%, #fff 0 50%) 0 0/16px 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tp-logo-v img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tp-logo-v em { font-style: normal; font-weight: 500; font-size: .76rem; color: #a58b98; text-align: center; padding: 0 6px; }
.tp-logo-caja input[type=file] { font-size: .76rem; width: 100%; }
.tp-lnk { align-self: flex-start; background: none; border: 0; color: var(--tp-c); font: 700 .78rem 'Quicksand', sans-serif; cursor: pointer; padding: 0; text-decoration: underline; }
.tp-fondo-caja { border-style: solid; border-color: #eadbe3; }

/* vista previa de pantalla interna */
.tp-pant { border-radius: 16px; overflow: hidden; border: 1px solid #eadbe3; box-shadow: 0 10px 30px rgba(60,20,45,.1); }
.tp-pant .rph { padding: var(--rp-cab-pt) 14px var(--rp-cab-pb); }
.tp-pant .rph h1 { font-size: .95rem; }
.tp-pant .rph p { font-size: .72rem; }
.tp-pant .rph-logo { width: 42px; height: 42px; font-size: 17px; }
.tp-pant .rph-in { gap: 10px; }
.tp-pant .rph-marca { gap: 10px; }
.tp-pant .rph-btn, .tp-pant .rph-chip { height: 32px; padding: 0 10px; font-size: .66rem; border-radius: 16px 16px 16px 6px; }
.tp-filtros { margin: 0 12px !important; padding-left: 12px; padding-right: 12px; padding-bottom: 12px; }
.tp-mock-f { display: flex; gap: 8px; }
.tp-mock-f span { flex: 1; height: 28px; border: 1.5px solid #eadbe3; border-radius: 9px; font-size: .68rem; color: #a58b98; display: flex; align-items: center; padding: 0 8px; background: #fff; }
.tp-mock-f .tp-mock-b { color: #fff; border: 0; justify-content: center; font-weight: 700; flex: 0 0 64px; }
.tp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.tp-cards div { background: #fff; border-radius: 12px; border-top: 3px solid; padding: 8px 10px; font-size: .68rem; color: #8a6a7b; box-shadow: 0 3px 10px rgba(60,20,45,.07); }
.tp-cards b { display: block; font-size: .95rem; margin-top: 2px; }

/* vista previa del acceso */
.tp-acceso { border-radius: 16px; overflow: hidden; border: 1px solid #eadbe3; height: 190px; }
.mk { position: relative; width: 100%; height: 100%; display: flex; background: #fff; }
.mk-marca { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: #fff; padding: 8px; }
.mk-marca b { font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.mk-marca small { font-size: .62rem; opacity: .9; max-width: 130px; line-height: 1.2; }
.mk-logo { width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; color: var(--rp-c2); overflow: hidden; padding: 4px; }
.mk-logo img { max-width: 100%; max-height: 100%; }
.mk-card { background: #fff; border-radius: 10px; padding: 12px; width: 130px; box-shadow: 0 8px 20px rgba(0,0,0,.15); display: flex; flex-direction: column; gap: 6px; }
.mk-card i { display: block; height: 16px; border: 1.5px solid #eadbe3; border-radius: 6px; }
.mk-card u { display: block; height: 18px; border-radius: 9px; margin-top: 4px; }
.mk-izq, .mk-der { display: flex; align-items: center; justify-content: center; }
.mk-dividido .mk-izq { flex: 1; background: var(--g); }
.mk-dividido .mk-der { flex: 1; background: #fff; }
.mk-centrado { background: var(--rp-fondo, #faf3f7); flex-direction: column; }
.mk-centrado .mk-izq { height: 48%; background: var(--g); border-radius: 0 0 50% 50% / 0 0 30% 30%; flex: none; align-items: flex-start; padding-top: 8px; }
.mk-centrado .mk-der { position: absolute; left: 0; right: 0; top: 40%; }
.mk-centrado .mk-marca small { display: none; }
.mk-minimo { background: var(--rp-fondo, #faf3f7); flex-direction: column; }
.mk-minimo .mk-marca { color: var(--rp-c1); }
.mk-minimo .mk-izq, .mk-minimo .mk-der { flex: 1; }
.mk-fondo { background: var(--g); flex-direction: column; background-size: cover; }
.mk-fondo .mk-der .mk-card { background: rgba(255,255,255,.88); }
.mk-fondo .mk-izq, .mk-fondo .mk-der { flex: 1; }
.mk-minimo .mk-marca small, .mk-fondo .mk-marca small { display: none; }

@media (max-width: 1000px) { .tp-cols { grid-template-columns: 1fr; } .tp-vista-in { position: static; } }
@media (max-width: 640px) { .tp-fila, .tp-fila-3, .tp-logos { grid-template-columns: 1fr; } .tp-ops, .tp-ops-lg { grid-template-columns: repeat(2, 1fr); } }
