/* =========================================================
   Admin de slink.cl
   Paleta: tinta #0F172A · secundario #64748B · acento #2563EB
   ========================================================= */
:root {
    --bg: #F4F6FA;
    --white: #FFFFFF;
    --ink: #0F172A;
    --ink-2: #334155;
    --muted: #64748B;
    --line: #E6EAF0;
    --line-2: #D7DDE6;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-soft: #DBEAFE;
    --accent-tint: #EFF5FF;
    /* Color de la marca (Personalización): head.tpl.html pisa estas variables con ColorMarca */
    --accent-ink: #1D4ED8;          /* letra de marca sobre blanco, también en modo oscuro */
    --accent-rgb: 37, 99, 235;
    --accent-btn: #2563EB;          /* fondo de los botones principales */
    --accent-btn-hover: #1D4ED8;
    --on-accent: #FFF;              /* letra sobre --accent-btn */
    --accent-2: #7C3AED;            /* segundo tono de los degradados (PRO, modales) */
    --grad-1: #1E3A8A;              /* cabeceras con degradado y letra blanca */
    --grad-2: #2563EB;
    --grad-3: #60A5FA;
    --grad-glow: 96, 165, 250;
    --hero-text: #DBEAFE;
    --hero-text-2: #BFDBFE;
    --note-border: #D6E4FF;
    --ok: #15803D; --ok-soft: #DCFCE7;
    --warn: #B45309; --warn-soft: #FEF3C7;
    --err: #B91C1C; --err-soft: #FEE2E2;
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .12);
    --side: 256px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg);
    min-height: 100vh; min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--accent); }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.ad-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ad-mt { margin-top: 20px; }

/* ================= Botones ================= */
.ad-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px;
    font: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ad-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-btn--primary { background: var(--accent-btn); color: var(--on-accent); box-shadow: 0 1px 2px rgba(var(--accent-rgb), .3); }
.ad-btn--primary:hover { background: var(--accent-btn-hover); }
.ad-btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); }
.ad-btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.ad-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.ad-btn--full { width: 100%; min-height: 48px; font-size: 15px; }
.ad-btn[disabled] { opacity: .6; cursor: wait; }

/* ================= Sin sesión: barra simple ================= */
.ad-top { position: relative; z-index: 2; }
.ad-top__in { max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ad-logo img { height: 34px; width: auto; }
.ad-top__back { font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.ad-top__back:hover { color: var(--accent); }

/* ================= Con sesión: barra lateral ================= */
.ad-side {
    position: fixed; inset: 0 auto 0 0; z-index: 40;
    width: var(--side); display: flex; flex-direction: column;
    background: var(--white); border-right: 1px solid var(--line);
    padding: 20px 14px 16px;
}
.ad-side__logo { display: block; padding: 4px 10px 18px; }
.ad-side__logo img { height: 32px; width: auto; }
.ad-nav { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; overflow-y: auto; }
.ad-nav__grupo { margin: 16px 10px 6px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94A3B8; }
.ad-nav__grupo:first-child { margin-top: 4px; }
.ad-nav__item {
    display: flex; align-items: center; gap: 12px;
    min-height: 40px; padding: 8px 10px; border-radius: 10px;
    font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none;
    transition: background .15s, color .15s;
}
.ad-nav__item .ad-ico { width: 19px; height: 19px; color: #94A3B8; }
a.ad-nav__item:hover { background: var(--bg); color: var(--ink); }
a.ad-nav__item:hover .ad-ico { color: var(--ink-2); }
.ad-nav__item.is-on { background: var(--accent-tint); color: var(--accent-dark); font-weight: 600; }
.ad-nav__item.is-on .ad-ico { color: var(--accent); }
.ad-nav__item.is-off { color: #94A3B8; cursor: default; }
.ad-nav__item em { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--bg); font-size: 11px; font-style: normal; font-weight: 600; color: #94A3B8; }
.ad-side__foot { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 4px; }
.ad-side__user { display: flex; align-items: center; gap: 10px; padding: 6px 10px; min-width: 0; }
.ad-avatar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--grad-2), var(--grad-3)); color: #FFF; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; text-transform: uppercase; }
.ad-side__who { display: grid; min-width: 0; }
.ad-side__who b { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-side__who small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-nav__salir:hover { background: var(--err-soft) !important; color: var(--err) !important; }
.ad-nav__salir:hover .ad-ico { color: var(--err) !important; }

.ad-mtop { display: none; }
.ad-velo { position: fixed; inset: 0; z-index: 35; background: rgba(15, 23, 42, .4); }

/* Contenido con barra lateral */
.is-dentro .ad-main { margin-left: var(--side); padding: 36px 40px 56px; max-width: calc(var(--side) + 1100px); }
.is-dentro .ad-main--form { max-width: calc(var(--side) + 800px); }
.is-dentro .ad-foot { margin-left: var(--side); }

/* ================= Páginas de acceso (dos columnas) ================= */
.is-fuera { background: var(--white); }
.is-fuera .ad-main {
    min-height: calc(100vh - 72px - 60px);
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    max-width: 1180px; margin: 0 auto; padding: 24px 24px 40px; gap: 48px; align-items: center;
}
.ad-brand {
    position: relative; overflow: hidden;
    align-self: stretch; min-height: 520px;
    border-radius: 24px; padding: 44px;
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(var(--grad-glow), .55), transparent 70%),
        radial-gradient(420px 260px at 0% 100%, rgba(var(--accent-rgb), .9), transparent 70%),
        linear-gradient(150deg, var(--grad-1), var(--grad-2));
    color: #FFF; display: flex; flex-direction: column; justify-content: space-between;
}
.ad-brand::after {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 22px 22px; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%);
    mask-image: linear-gradient(180deg, transparent, #000 60%);
}
.ad-brand > * { position: relative; z-index: 1; }
.ad-brand__pill { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 13px; font-weight: 600; }
.ad-brand h2 { margin-top: 20px; font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; }
.ad-brand p { margin-top: 12px; font-size: 16px; color: var(--hero-text); max-width: 420px; }
.ad-brand ul { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.ad-brand li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.ad-brand li .ad-ico { width: 22px; height: 22px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .16); stroke-width: 2.4; }
.ad-brand__pie { font-size: 13px; color: var(--hero-text-2); }

.ad-card { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 28px; }
.is-fuera .ad-card { border: 0; box-shadow: none; padding: 8px 0; max-width: 440px; justify-self: center; }
.ad-card--wide { max-width: 520px !important; }
.ad-card h1 { font-size: 28px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.ad-sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.ad-alt { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.ad-alt a { font-weight: 600; text-decoration: none; }
.ad-foot { padding: 20px 24px; text-align: center; font-size: 13px; color: #94A3B8; }
.ad-foot a { color: inherit; }

/* ================= Avisos ================= */
.ad-alert { margin-top: 18px; padding: 12px 14px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.ad-alert--ok { background: var(--ok-soft); color: var(--ok); border-color: #BBF7D0; }
.ad-alert--error { background: var(--err-soft); color: var(--err); border-color: #FECACA; }

/* ================= Formularios ================= */
.ad-form { display: grid; gap: 22px; margin-top: 26px; }
.ad-form fieldset { display: grid; gap: 16px; border: 0; min-width: 0; }
.ad-form legend { margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ad-field { display: grid; gap: 6px; min-width: 0; }
.ad-field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ad-field input, .ad-field select, .ad-field textarea {
    width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
    border: 1px solid var(--line-2); border-radius: 10px; background: var(--white);
    font: inherit; font-size: 15px; color: var(--ink);
    transition: border-color .15s, box-shadow .15s;
}
.ad-field textarea { resize: vertical; line-height: 1.5; }
.ad-field input::placeholder, .ad-field textarea::placeholder { color: #A0AEC0; }
.ad-field input:hover, .ad-field select:hover, .ad-field textarea:hover { border-color: #C3CCD8; }
.ad-field input:focus, .ad-field select:focus, .ad-field textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-field [aria-invalid="true"], .ad-url.is-error, .ad-pass.is-error { border-color: var(--err) !important; }
.ad-hint { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.ad-err { font-size: 13px; color: var(--err); font-weight: 500; }
.ad-opc { font-weight: 400; color: var(--muted); }
.ad-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.ad-url, .ad-pass { display: flex; align-items: stretch; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ad-url:focus-within, .ad-pass:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-url input, .ad-pass input { border: 0 !important; border-radius: 0; box-shadow: none !important; flex: 1 1 auto; }
.ad-url__suf, .ad-url__pre { display: flex; align-items: center; padding: 0 12px; background: #F8FAFC; color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.ad-url__suf { border-left: 1px solid var(--line); }
.ad-url__pre { border-right: 1px solid var(--line); }
.ad-pass__ver { flex: 0 0 auto; min-width: 70px; border: 0; border-left: 1px solid var(--line); background: #F8FAFC; font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.ad-pass__ver:hover { color: var(--accent); }

.ad-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.ad-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.ad-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ================= Encabezado de página ================= */
.ad-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.ad-head h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.025em; }
.ad-volver { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ad-volver:hover { color: var(--accent); }
.ad-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }

/* ================= Panel: cabecera del sitio ================= */
.ad-hero {
    position: relative; overflow: hidden;
    border-radius: 18px; padding: 28px 30px;
    background:
        radial-gradient(420px 200px at 100% 0%, rgba(var(--grad-glow), .5), transparent 70%),
        linear-gradient(135deg, var(--grad-1), var(--grad-2));
    color: #FFF; box-shadow: var(--shadow);
}
.ad-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 20px 20px; pointer-events: none; }
.ad-hero > * { position: relative; z-index: 1; }
.ad-hero__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.ad-hero h1 { font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; }
.ad-hero p { margin-top: 4px; color: var(--hero-text); }
.ad-hero__url { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #FFF; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.ad-hero__url:hover { background: rgba(255, 255, 255, .22); }
.ad-hero__url .ad-ico { width: 16px; height: 16px; }
.ad-hero .ad-btn--ghost { background: rgba(255, 255, 255, .12); color: #FFF; border-color: rgba(255, 255, 255, .3); }
.ad-hero .ad-btn--ghost:hover { background: rgba(255, 255, 255, .22); color: #FFF; border-color: rgba(255, 255, 255, .5); }

.ad-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.ad-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ad-badge--ok { background: var(--ok-soft); color: var(--ok); }
.ad-badge--warn { background: var(--warn-soft); color: var(--warn); }

.ad-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--accent-tint); border: 1px solid var(--note-border); font-size: 14px; color: var(--ink-2); }
.ad-note--accion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.ad-note--accion p { flex: 1 1 260px; min-width: 0; }
.ad-note--warn { background: #FFFBEB; border-color: #FDE68A; }

/* Indicadores */
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ad-stat { padding: 18px 18px 16px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ad-stat span { display: block; font-size: 13px; color: var(--muted); font-weight: 500; }
.ad-stat b { display: block; margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-stat small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Dos columnas: pasos + plan */
.ad-cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; margin-top: 20px; align-items: start; }
.ad-card__titulo { font-size: 16px; font-weight: 700; }
.ad-card__sub { margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Pasos */
.ad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ad-tile {
    position: relative; display: flex; gap: 14px; align-items: flex-start;
    padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white);
    color: inherit; text-decoration: none;
}
.ad-tile__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--bg); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.ad-tile__txt { min-width: 0; }
.ad-tile h2 { font-size: 15px; font-weight: 700; }
.ad-tile p { margin-top: 2px; font-size: 13px; color: var(--muted); }
a.ad-tile { transition: border-color .15s, box-shadow .15s, transform .15s; }
a.ad-tile .ad-tile__ico { background: var(--accent-tint); color: var(--accent); }
a.ad-tile:hover { border-color: #BFD3FB; box-shadow: var(--shadow); transform: translateY(-1px); }
.ad-soon, .ad-ir { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 600; }
.ad-soon { padding: 2px 8px; border-radius: 999px; background: var(--bg); color: #94A3B8; }
.ad-ir { color: var(--accent); }
.ad-ir .ad-ico { width: 14px; height: 14px; }

/* Avance de los pasos: barra, número y "Listo" */
.ad-avance__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ad-avance__cuenta { flex: 0 0 auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.ad-avance__cuenta b { font-size: 18px; font-weight: 800; color: var(--ink); }
.ad-avance { margin-top: 12px; height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.ad-avance__barra { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .6s ease; }
.ad-tile__ico { position: relative; }
.ad-tile__num {
    position: absolute; top: -7px; left: -7px; min-width: 20px; height: 20px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px; background: var(--white); border: 1.5px solid var(--line-2);
    font-size: 11px; font-weight: 800; color: var(--ink-2); line-height: 1;
}
.ad-tile__num .ad-ico { width: 12px; height: 12px; stroke-width: 3; }
.ad-tile.is-siguiente { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.ad-tile.is-siguiente .ad-tile__num { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }
.ad-tile.is-hecho { background: var(--bg); }
.ad-tile.is-hecho .ad-tile__ico { background: var(--ok-soft); color: var(--ok); }
.ad-tile.is-hecho .ad-tile__num { background: var(--ok); border-color: var(--ok); color: #FFF; }
.ad-tile.is-hecho h2 { color: var(--ink-2); }
.ad-listo { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 12px; font-weight: 700; color: var(--ok); }
.ad-listo .ad-ico { width: 14px; height: 14px; stroke-width: 2.6; }
.ad-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .ad-avance__barra { transition: none; } }

/* Plan */
.ad-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ad-plan__nombre { margin-top: 2px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.ad-plan__precio { font-size: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; }
.ad-plan__precio small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ad-plan__lista { list-style: none; display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.ad-plan__lista li { display: flex; align-items: center; gap: 10px; }
.ad-plan__lista .ad-ico { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.4; }
.ad-plan__lista li.is-off { color: #94A3B8; }
.ad-plan__lista li.is-off .ad-ico { color: #CBD5E1; }

/* Slink Pro destacado (plan gratis) */
.ad-pro { margin-top: 18px; padding: 16px; border-radius: 12px; background: var(--accent-tint); border: 1px solid var(--note-border); }
.ad-pro__nombre { margin-top: 2px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); }
.ad-pro__precio { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ad-pro__precio small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ad-pro .ad-plan__lista { border-top-color: var(--note-border); }
.ad-pro__btn { width: 100%; justify-content: center; margin-top: 16px; }
.ad-pro__aviso { margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.ad-pro .ad-alert { margin-top: 10px; }

/* Completa tu sitio */
.ad-seccion { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 26px 0; border-top: 1px solid var(--line); }
.ad-card > .ad-seccion:first-child { border-top: 0; padding-top: 4px; }
.ad-seccion__info h2 { font-size: 15px; font-weight: 700; }
.ad-seccion__info p { margin-top: 4px; font-size: 13px; color: var(--muted); }
.ad-seccion__campos { display: grid; gap: 16px; min-width: 0; }
.ad-acciones { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 14px 0 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #FFF 40%); border-top: 1px solid var(--line); margin-top: 4px; }
.ad-acciones .ad-alert { margin: 0 auto 0 0; }
.ad-logo-edit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.ad-logo-edit__img { flex: 0 0 auto; width: 88px; height: 88px; border-radius: 18px; overflow: hidden; background: var(--accent-tint); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ad-logo-edit__img img { width: 100%; height: 100%; object-fit: contain; background: #FFF; }
.ad-logo-edit__img span { font-size: 32px; font-weight: 800; color: var(--accent); text-transform: uppercase; }
.ad-logo-edit__acc { display: grid; gap: 6px; min-width: 0; flex: 1 1 200px; }
.ad-logo-edit__acc .ad-btn { justify-self: start; }

/* ================= Responsive ================= */
@media (max-width: 1100px) {
    .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ad-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
    .is-fuera .ad-main { grid-template-columns: minmax(0, 1fr); gap: 24px; min-height: 0; }
    .ad-brand { display: none; }
    .ad-seccion { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 900px) {
    .ad-mtop {
        position: sticky; top: 0; z-index: 30;
        display: flex; align-items: center; justify-content: space-between;
        height: 60px; padding: 0 14px; background: var(--white); border-bottom: 1px solid var(--line);
    }
    .ad-mtop__logo img { height: 28px; width: auto; }
    .ad-mtop__btn { width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
    .ad-side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--shadow-lg); }
    .ad-side.is-open { transform: none; }
    .is-dentro .ad-main, .is-dentro .ad-foot { margin-left: 0; }
    .is-dentro .ad-main { padding: 22px 16px 40px; }
}
@media (max-width: 560px) {
    .ad-top__in { padding: 0 16px; height: 64px; }
    .ad-top__back { font-size: 13px; }
    .is-fuera .ad-main { padding: 12px 16px 32px; }
    .ad-card { padding: 20px 16px; }
    .ad-card h1 { font-size: 24px; }
    .ad-row, .ad-grid { grid-template-columns: minmax(0, 1fr); }
    .ad-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
    .ad-hero { padding: 22px 18px; }
    .ad-hero h1 { font-size: 22px; }
    .ad-acciones { flex-direction: column-reverse; align-items: stretch; }
}

/* ================= Plantillas ================= */
.ad-pieles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 4px; }
.ad-piel { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s; }
.ad-piel:hover { box-shadow: var(--shadow); }
.ad-piel.is-actual { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ad-piel__vista { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--p3); border-bottom: 1px solid var(--line); }
.ad-piel__bar { display: flex; gap: 6px; align-items: center; height: 10px; }
.ad-piel__bar i { height: 8px; border-radius: 4px; background: var(--p4); opacity: .18; width: 14%; }
.ad-piel__bar i:first-child { width: 34%; margin-right: auto; opacity: .5; background: var(--p1); }
.ad-piel__hero { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 96px; padding: 12px; border-radius: var(--pr); background: linear-gradient(135deg, var(--p1), var(--p2)); }
.ad-piel__hero b { color: #FFF; font-size: 15px; font-weight: 800; line-height: 1.2; }
.ad-piel__hero em { width: 74px; height: 18px; border-radius: 6px; background: #FFF; opacity: .95; }
.ad-piel__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ad-piel__grid i { height: 44px; border-radius: 8px; background: #FFF; border: 1px solid rgba(15, 23, 42, .08); }
.ad-piel__info { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1 1 auto; }
.ad-piel__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ad-piel__info h2 { font-size: 17px; font-weight: 800; }
.ad-piel__rubro { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ad-piel__info p { font-size: 13px; color: var(--muted); }
.ad-piel__colores { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.ad-piel__colores i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(15, 23, 42, .12); }
.ad-piel__colores small { margin-left: 4px; font-size: 12px; color: var(--muted); }
.ad-piel__btn { margin-top: 14px; align-self: flex-start; }
/* Sabor: portada con foto a todo lo ancho, banda de menú oscura y carta en filas */
.ad-piel--sabor .ad-piel__bar { padding: 0 6px; height: 14px; border-radius: 3px; background: var(--p1); }
.ad-piel--sabor .ad-piel__bar i { background: #FFF; opacity: .45; }
.ad-piel--sabor .ad-piel__bar i:first-child { background: #FFF; opacity: .9; }
.ad-piel--sabor .ad-piel__hero { border-radius: 4px; background: linear-gradient(0deg, var(--p1) 10%, transparent 90%), radial-gradient(circle at 80% 30%, var(--p2), var(--p1)); }
.ad-piel--sabor .ad-piel__hero b { font-family: Georgia, serif; font-style: italic; font-weight: 700; }
.ad-piel--sabor .ad-piel__hero em { border-radius: 3px; background: var(--p2); }
.ad-piel--sabor .ad-piel__grid { grid-template-columns: 1fr; gap: 5px; padding: 8px 10px; background: #FFF; border-radius: 4px; outline: 1px dashed rgba(15, 23, 42, .18); outline-offset: -4px; }
.ad-piel--sabor .ad-piel__grid i { height: 10px; border: 0; border-bottom: 2px dotted rgba(15, 23, 42, .25); border-radius: 0; background: none; }
@media (max-width: 1100px) { .ad-pieles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ad-pieles { grid-template-columns: minmax(0, 1fr); } }

/* ================= Formas de pago ================= */
.ad-pago + .ad-pago { margin-top: 16px; }
.ad-pago__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ad-pago__campos { display: grid; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ad-pago__pie { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 18px; }
.ad-pago__pie .ad-alert { margin: 0 auto 0 0; }
.ad-pago--pronto { background: #F8FAFC; box-shadow: none; }
.ad-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: 0 0 auto; font-size: 13px; }
.ad-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-switch span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CBD5E1; transition: background .15s; }
.ad-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #FFF; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.ad-switch input:checked + span { background: var(--ok); }
.ad-switch input:checked + span::after { transform: translateX(18px); }
.ad-switch input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-switch b { font-weight: 600; color: var(--ink-2); }
@media (max-width: 560px) { .ad-pago__head { flex-direction: column; } .ad-pago__pie { flex-direction: column-reverse; align-items: stretch; } }

/* Formas de pago y entrega como bloques: el interruptor activa, "Configurar" abre el formulario */
.ad-pago__acciones { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.ad-pago__estado { display: inline-block; margin-top: 8px; padding: 2px 10px; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12px; font-weight: 600; }
.ad-bloque:not(.is-abierto) .ad-pago__campos { display: none; }
.ad-bloque:not(.is-abierto) .ad-pago__pie button[type="submit"] { display: none; }
.ad-bloque:not(.is-abierto) .ad-pago__pie { margin-top: 12px; }
.ad-bloque:not(.is-abierto) .ad-pago__pie:has(> .ad-alert[hidden]) { display: none; }
.ad-bloque.is-abierto { border-color: var(--accent); }
html[data-tema="oscuro"] .ad-pago__estado { background: rgba(251, 191, 36, .16); color: #FCD34D; }
@media (max-width: 560px) { .ad-pago__acciones { justify-content: space-between; width: 100%; } }

/* ================= Productos ================= */
.ad-tope { height: 6px; margin-top: -8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ad-tope span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ad-productos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ad-prod { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.ad-prod__foto { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--bg); color: #94A3B8; overflow: hidden; }
.ad-prod__foto img { width: 100%; height: 100%; object-fit: cover; }
.ad-prod__foto .ad-ico { width: 32px; height: 32px; }
.ad-prod__info { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1 1 auto; }
.ad-prod__nombre { font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-prod__nombre:hover { color: var(--accent); }
.ad-prod__precio b { font-size: 15px; }
.ad-prod__precio s { margin-left: 6px; font-size: 13px; color: var(--muted); }
.ad-prod__pie { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ad-prod__acc { display: flex; align-items: center; gap: 4px; }
.ad-prod__acc a, .ad-prod__acc button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--white); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.ad-prod__acc .ad-ico { width: 15px; height: 15px; }
.ad-prod__acc button:hover { border-color: var(--err); color: var(--err); }
.ad-prod__acc a:hover { border-color: var(--accent); color: var(--accent); }
.ad-vacio { margin-top: 20px; text-align: center; display: grid; justify-items: center; gap: 10px; padding: 44px 24px; }
.ad-vacio h2 { font-size: 18px; font-weight: 800; }
.ad-vacio p { max-width: 420px; color: var(--muted); }
.ad-fotos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ad-foto { position: relative; margin: 0; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.ad-foto img { width: 100%; height: 100%; object-fit: cover; }
.ad-foto button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: 0; border-radius: 50%; background: rgba(15, 23, 42, .7); color: #FFF; font-size: 18px; line-height: 1; cursor: pointer; }
.ad-foto--subir { display: flex; align-items: center; justify-content: center; border: 2px dashed var(--line-2); cursor: pointer; color: var(--accent); font-size: 13px; font-weight: 700; }
.ad-foto--subir:hover { border-color: var(--accent); background: var(--accent-tint); }
.ad-foto--subir.is-oculto { display: none; }
@media (max-width: 1100px) { .ad-productos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ad-productos, .ad-fotos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ================= Publicar ================= */
.ad-hero__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.ad-hero__acciones .ad-hero__url { margin-top: 0; }
.ad-btn--blanco { background: #FFF; color: var(--accent-dark); box-shadow: 0 6px 18px rgba(15, 23, 42, .18); }
.ad-btn--blanco:hover { background: var(--accent-tint); }
.ad-hero__falta { margin-top: 12px; font-size: 13px; color: var(--hero-text); }
.ad-hero__falta span, .ad-hero__falta a { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #FFF; text-decoration: none; font-weight: 600; }
.ad-hero__falta a:hover { background: rgba(255, 255, 255, .26); }

/* ===================== Complementos (WhatsApp y cinta) ===================== */
.ad-comp-sub { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #F8FAFC; }
.ad-comp-sub h3 { font-size: 14px; font-weight: 700; }
.ad-colores { display: flex; flex-wrap: wrap; gap: 12px; }
.ad-color { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ad-color input { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; cursor: pointer; }
.ad-color input::-webkit-color-swatch-wrapper { padding: 0; }
.ad-color input::-webkit-color-swatch { border: 1px solid rgba(0, 0, 0, .1); border-radius: 8px; }

.ad-cinta-vista { --cf: #111827; --cc: #FFFFFF; --ca: #F59E0B; position: relative; display: flex; align-items: center; overflow: hidden; border-radius: 10px; background: var(--cf); color: var(--cc); font-size: 14px; font-weight: 700; padding: 11px 0; }
.ad-cinta-vista__pista { display: flex; align-items: center; gap: 18px; padding-left: 18px; white-space: nowrap; width: max-content; animation: adCinta 26s linear infinite; }
.ad-cinta-vista__sep { color: var(--ca); }
.ad-cinta-vista__etiqueta { position: relative; z-index: 1; flex: 0 0 auto; align-self: stretch; display: flex; align-items: center; margin: -11px 0; padding: 0 14px; background: var(--ca); color: var(--cf); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.ad-cinta-vista.is-pildoras .ad-cinta-vista__txt { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid var(--ca); }
.ad-cinta-vista.is-degradado { background: linear-gradient(90deg, var(--cf), var(--ca)); }
.ad-cinta-vista.is-neon .ad-cinta-vista__txt { color: var(--ca); text-shadow: 0 0 6px var(--ca), 0 0 14px var(--ca); }
.ad-cinta-vista.is-grande { font-size: 26px; font-weight: 800; text-transform: uppercase; padding: 8px 0; }
.ad-cinta-vista.is-grande .ad-cinta-vista__txt:nth-of-type(even) { color: transparent; -webkit-text-stroke: 1px var(--cc); }
.ad-cinta-vista.is-inclinada { transform: rotate(-2deg); margin: 8px 0; }
@keyframes adCinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ad-cinta-vista__pista { animation: none; } }
/* Cinta: cristal, editorial y doble */
.ad-cinta-vista.is-cristal { background: linear-gradient(135deg, var(--accent-soft), #F5F3FF); padding: 10px 12px; }
.ad-cinta-vista.is-cristal .ad-cinta-vista__pista { padding: 12px 0 12px 18px; border-radius: 14px; background: color-mix(in srgb, var(--cf) 78%, transparent); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; }
.ad-cinta-vista.is-editorial { background: var(--cf); border-top: 1px solid rgba(127, 127, 127, .25); border-bottom: 1px solid rgba(127, 127, 127, .25); font-size: 22px; font-weight: 300; padding: 14px 0; }
.ad-cinta-vista.is-editorial .ad-cinta-vista__txt:nth-of-type(even) { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; color: var(--ca); }
.ad-cinta-vista.is-doble { flex-direction: column; align-items: stretch; padding: 0; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
.ad-cinta-vista.is-doble .ad-cinta-vista__pista { padding-top: 10px; padding-bottom: 10px; }
.ad-cinta-vista.is-doble .ad-cinta-vista__pista--2 { background: var(--ca); color: var(--cf); animation-direction: reverse; text-transform: none; letter-spacing: .03em; font-weight: 500; }
.ad-cinta-vista.is-doble .ad-cinta-vista__pista--2 .ad-cinta-vista__sep { color: var(--cf); }

/* ===================== Consultas ===================== */
.ad-nav__cuenta { margin-left: auto; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #FFF; font-size: 11px; font-weight: 700; line-height: 20px; text-align: center; }

/* Estado (badge) */
.ad-cest { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.ad-cest::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ad-cest--lg { padding: 6px 14px; font-size: 13px; }
.ad-cest--pendiente   { background: #FEF3C7; color: #B45309; }
.ad-cest--revisando   { background: #E0F2FE; color: #0369A1; }
.ad-cest--contactado  { background: var(--accent-soft); color: var(--accent-dark); }
.ad-cest--seguimiento { background: #F3E8FF; color: #7E22CE; }
.ad-cest--respondido  { background: var(--ok-soft); color: var(--ok); }
.ad-cest--cerrado     { background: #E2E8F0; color: #334155; }
.ad-cest--descartado  { background: var(--err-soft); color: var(--err); }

/* Filtros */
.ad-cfiltros { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: 24px; }
.ad-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.ad-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.ad-tab em { padding: 0 7px; border-radius: 999px; background: var(--bg); font-size: 11px; font-style: normal; color: var(--muted); }
.ad-tab:hover { color: var(--ink); }
.ad-tab.is-on { background: var(--accent-tint); color: var(--accent-dark); }
.ad-tab.is-on em { background: var(--accent); color: #FFF; }
.ad-buscar { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; max-width: 460px; }
.ad-buscar input { flex: 1 1 auto; min-width: 0; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font: inherit; font-size: 14px; color: var(--ink); }
.ad-buscar input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-buscar__limpiar { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* Bandeja */
.ad-consultas { margin-top: 16px; padding: 6px; }
.ad-cons { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 12px; }
.ad-cons + .ad-cons { border-top: 1px solid var(--line); }
.ad-cons:hover { background: #F8FAFC; }
.ad-cons__link { position: absolute; inset: 0; z-index: 1; border-radius: 12px; }
.ad-cons__link:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--accent); }
.ad-cons__avatar { background: linear-gradient(135deg, #94A3B8, #CBD5E1); }
.ad-cons.is-nueva .ad-cons__avatar { background: linear-gradient(135deg, var(--grad-2), var(--grad-3)); }
.ad-cons__info { flex: 1 1 auto; min-width: 0; }
.ad-cons__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ad-cons__nombre { font-size: 15px; font-weight: 600; color: var(--ink); }
.ad-cons.is-nueva .ad-cons__nombre { font-weight: 800; }
.ad-cons.is-nueva .ad-cons__nombre::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.ad-cons__estrella { color: #F59E0B; font-size: 15px; }
.ad-cons__hace { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; }
.ad-cons__texto { margin-top: 4px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.ad-cons.is-nueva .ad-cons__texto { color: var(--ink); }
.ad-cons__texto i { color: #94A3B8; }
.ad-cons__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12px; color: var(--muted); }
.ad-cons__meta span { overflow-wrap: anywhere; }
.ad-cons__acc { position: relative; z-index: 2; display: flex; gap: 6px; flex: 0 0 auto; align-self: center; }
.ad-cbtn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); color: var(--muted); }
.ad-cbtn .ad-ico { width: 18px; height: 18px; }
.ad-cbtn:hover { border-color: var(--accent); color: var(--accent); }
.ad-cbtn--wa { color: #16A34A; }
.ad-cbtn--wa:hover { border-color: #16A34A; color: #FFF; background: #16A34A; }
.ad-paginas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Ficha */
.ad-cols--ficha { grid-template-columns: minmax(0, 1fr) 340px; margin-top: 0; }
.ad-cmsg { margin-top: 12px; padding: 16px 18px; border-radius: 12px; background: #F8FAFC; border: 1px solid var(--line); font-size: 15px; line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.ad-cdatos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.ad-cdatos dt { font-size: 12px; font-weight: 600; color: var(--muted); }
.ad-cdatos dd { margin-top: 2px; font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.ad-ccontacto { list-style: none; display: grid; gap: 10px; margin-top: 14px; }
.ad-ccontacto li { display: grid; }
.ad-ccontacto span { font-size: 12px; color: var(--muted); }
.ad-ccontacto b { font-size: 15px; overflow-wrap: anywhere; }
.ad-cresp { display: grid; gap: 8px; margin-top: 16px; }
.ad-btn--wa { background: #16A34A; color: #FFF; }
.ad-btn--wa:hover { background: #15803D; }
.ad-cresp .ad-ico { width: 18px; height: 18px; }
.ad-cestados { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ad-cestado { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ad-cestado::before { display: none; }
.ad-cestado:not(.is-on) { background: var(--white); color: var(--ink-2); }
.ad-cestado:hover { border-color: var(--accent); }
.ad-cestado.is-on { border-color: currentColor; }
.ad-cestado[disabled] { opacity: .6; cursor: wait; }
.ad-chist { list-style: none; display: grid; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.ad-chist small { display: block; font-size: 12px; color: var(--muted); }
.ad-cmas { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px; }
.ad-btn--peligro:hover { border-color: var(--err); color: var(--err); }
/* Exportar, selección y borrar */
.ad-cexport { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-cexport .ad-ico { width: 17px; height: 17px; }
.ad-pro-tag { padding: 1px 6px; border-radius: 6px; background: linear-gradient(135deg, var(--grad-2), var(--accent-2)); color: #FFF; font-size: 10px; font-weight: 800; letter-spacing: .05em; }
.ad-csel { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; min-height: 36px; margin-top: 14px; padding: 0 6px; }
.ad-csel__todas { align-items: center; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.ad-csel__todas input { margin-top: 0; }
.ad-csel__n { font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.ad-csel + .ad-consultas { margin-top: 6px; }
.ad-cons__sel { position: relative; z-index: 2; flex: 0 0 auto; width: 18px; height: 18px; margin-top: 8px; accent-color: var(--accent); cursor: pointer; }
.ad-cons.is-sel { background: var(--accent-tint); }
.ad-cbtn--borrar:hover { border-color: var(--err); color: var(--err); background: var(--err-soft); }
.ad-cons.is-saliendo { opacity: 0; transition: opacity .25s; }

/* Pedidos */
.ad-ped__total { color: var(--ink); font-weight: 700; }
.ad-ped__estados { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-main > .ad-note { margin: 0 0 20px; }
.ad-ped__lineas { list-style: none; display: grid; margin-top: 12px; }
.ad-ped__lineas li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.ad-ped__lineas li + li { border-top: 1px solid var(--line); }
.ad-ped__cant { flex: 0 0 auto; min-width: 34px; padding: 2px 6px; border-radius: 8px; background: var(--bg); font-size: 13px; font-weight: 700; text-align: center; color: var(--ink-2); }
.ad-ped__prod { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-size: 14px; overflow-wrap: anywhere; }
.ad-ped__prod small { font-size: 12px; color: var(--muted); }
.ad-ped__monto { flex: 0 0 auto; font-size: 14px; font-weight: 600; white-space: nowrap; }
.ad-ped__totales { display: grid; gap: 6px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.ad-ped__totales div { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.ad-ped__totales .is-total { margin-top: 4px; font-size: 17px; font-weight: 800; color: var(--ink); }
.ad-ped__sub { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 700; }

/* Popup */
.ad-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ad-modal__velo { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.ad-modal__caja { position: relative; width: 100%; max-width: 420px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; border-radius: 18px; background: var(--white); box-shadow: var(--shadow-lg); text-align: left; animation: adModal .18s ease-out; }
.ad-modal__x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--bg); color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ad-modal__x:hover { color: var(--ink); }
.ad-modal__ico { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 14px; background: linear-gradient(135deg, var(--grad-2), var(--accent-2)); color: #FFF; }
.ad-modal__ico .ad-ico { width: 24px; height: 24px; }
.ad-modal__caja h2 { margin-top: 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.ad-modal__caja > p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.ad-modal__precio { margin-top: 16px !important; font-size: 14px; color: var(--muted) !important; }
.ad-modal__precio b { font-size: 24px; font-weight: 800; color: var(--ink); }
.ad-modal__acc { display: grid; gap: 8px; margin-top: 16px; }
@keyframes adModal { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ad-modal__caja { animation: none; } }

@media (max-width: 1100px) { .ad-cols--ficha { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
    .ad-cons { gap: 10px; padding: 12px 8px; }
    .ad-cons__avatar { display: none; }
    .ad-cons__hace { margin-left: 0; width: 100%; }
    .ad-cdatos { grid-template-columns: minmax(0, 1fr); }
    .ad-buscar { max-width: none; }
}
/* Complementos: ejemplos con un clic y formulario de WhatsApp */
.ad-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: -8px; }
.ad-chips__tit { font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 2px; }
.ad-chip { padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--white); font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.ad-chip:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-tint); }
.ad-chip--dato { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #F1F5F9; }
.ad-popup-campos { display: grid; gap: 16px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ad-popup-campos[hidden] { display: none; }
.ad-niveles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.ad-nivel { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ad-field .ad-nivel select { width: auto; min-height: 34px; padding: 4px 8px; font-size: 13px; }
@media (max-width: 560px) { .ad-niveles { grid-template-columns: minmax(0, 1fr); } }

/* Formas de entrega: regiones del despacho */
.ad-regiones__todas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ad-regiones__todas .ad-url { flex: 0 1 240px; }
.ad-regiones { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-region { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ad-region.is-on { border-color: var(--accent); background: var(--accent-tint); }
.ad-region .ad-check { align-items: center; color: var(--ink-2); font-weight: 500; min-width: 0; }
.ad-region .ad-check input { margin-top: 0; }
.ad-region .ad-url { flex: 0 0 120px; }
.ad-region .ad-url input { min-height: 34px; padding: 4px 8px; font-size: 13px; width: 100%; }
.ad-region .ad-url__pre { padding: 0 8px; font-size: 13px; }
@media (max-width: 560px) { .ad-regiones { grid-template-columns: minmax(0, 1fr); } }

/* Formas de entrega: couriers y si entregan a domicilio o en sucursal */
.ad-couriers { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-courier { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 6px 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.ad-courier.is-on { border-color: var(--accent); background: var(--accent-tint); }
.ad-courier .ad-check { align-items: center; color: var(--ink-2); font-weight: 500; min-width: 0; }
.ad-courier .ad-check input { margin-top: 0; }
.ad-field .ad-courier select { flex: 0 1 190px; width: auto; min-width: 0; min-height: 34px; padding: 4px 8px; font-size: 13px; }
.ad-courier:not(.is-on) select { opacity: .6; }
.ad-couriers__otro { display: flex; gap: 8px; margin-top: 4px; }
.ad-field .ad-couriers__otro input { flex: 0 1 280px; min-height: 34px; padding: 4px 10px; font-size: 13px; }
@media (max-width: 560px) { .ad-couriers { grid-template-columns: minmax(0, 1fr); } }
/* ===== Registro: ¿Qué ofreces? (Slink Tienda / Slink Servicios) ===== */
.ad-modos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ad-modo { position: relative; cursor: pointer; }
.ad-modo input { position: absolute; opacity: 0; pointer-events: none; }
.ad-modo__caja { display: grid; gap: 4px; height: 100%; padding: 16px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.ad-modo__caja b { font-size: 16px; color: var(--ink); }
.ad-modo__caja small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.ad-modo__ico { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; margin-bottom: 4px; border-radius: 10px; background: var(--line); color: var(--ink); }
.ad-modo__ico svg { width: 20px; height: 20px; }
.ad-modo:hover .ad-modo__caja { border-color: var(--accent); }
.ad-modo input:checked + .ad-modo__caja { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.ad-modo input:checked + .ad-modo__caja .ad-modo__ico { background: var(--accent); color: #FFF; }
.ad-modo input:focus-visible + .ad-modo__caja { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .ad-modos { grid-template-columns: minmax(0, 1fr); } }

/* =========================================================
   Modo oscuro (Personalización). <html data-tema="oscuro">
   lo pone head.tpl.html según la preferencia del navegador.
   ========================================================= */
.ad-modos--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 720px) { .ad-modos--3 { grid-template-columns: minmax(0, 1fr); } }

html[data-tema="oscuro"] {
    color-scheme: dark;
    --bg: #0B1120;
    --white: #111827;
    --ink: #E5E7EB;
    --ink-2: #CBD5E1;
    --muted: #94A3B8;
    --line: #1F2937;
    --line-2: #334155;
    --accent: #3B82F6;
    --accent-dark: #93C5FD;
    --accent-soft: rgba(59, 130, 246, .25);
    --accent-tint: rgba(59, 130, 246, .12);
    --ok: #22C55E; --ok-soft: rgba(34, 197, 94, .14);
    --warn: #FBBF24; --warn-soft: rgba(251, 191, 36, .14);
    --err: #F87171; --err-soft: rgba(248, 113, 113, .14);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
}
html[data-tema="oscuro"] .ad-btn--primary { background: var(--accent-btn); color: var(--on-accent); }
html[data-tema="oscuro"] .ad-btn--primary:hover { background: var(--accent-btn-hover); }
html[data-tema="oscuro"] .ad-btn--blanco { color: var(--accent-ink); }
html[data-tema="oscuro"] .ad-nav__cuenta { background: var(--accent-btn); color: var(--on-accent); }
html[data-tema="oscuro"] .ad-tab.is-on em { background: var(--accent-btn); color: var(--on-accent); }
html[data-tema="oscuro"] .ad-nav__item.is-off, html[data-tema="oscuro"] .ad-nav__grupo { color: #64748B; }
html[data-tema="oscuro"] .ad-side__logo img, html[data-tema="oscuro"] .ad-mtop__logo img, html[data-tema="oscuro"] .ad-logo img { filter: brightness(0) invert(1); }

/* Superficies que en claro eran #F8FAFC / #F1F5F9 */
html[data-tema="oscuro"] .ad-url__suf, html[data-tema="oscuro"] .ad-url__pre, html[data-tema="oscuro"] .ad-pass__ver,
html[data-tema="oscuro"] .ad-pago--pronto, html[data-tema="oscuro"] .ad-comp-sub, html[data-tema="oscuro"] .ad-cons:hover,
html[data-tema="oscuro"] .ad-cmsg, html[data-tema="oscuro"] .ad-chip--dato { background: #0F172A; }
html[data-tema="oscuro"] .ad-acciones { background: linear-gradient(180deg, rgba(11, 17, 32, 0), var(--bg) 40%); }
html[data-tema="oscuro"] .ad-switch span { background: #334155; }
html[data-tema="oscuro"] .ad-field input::placeholder, html[data-tema="oscuro"] .ad-field textarea::placeholder { color: #64748B; }
html[data-tema="oscuro"] .ad-field input:hover, html[data-tema="oscuro"] .ad-field select:hover, html[data-tema="oscuro"] .ad-field textarea:hover { border-color: #475569; }
html[data-tema="oscuro"] a.ad-tile:hover { border-color: rgba(var(--accent-rgb), .55); }
html[data-tema="oscuro"] .ad-plan__lista li.is-off .ad-ico { color: #475569; }
html[data-tema="oscuro"] .ad-modo input:checked + .ad-modo__caja .ad-modo__ico { background: var(--accent-btn); color: var(--on-accent); }

/* Avisos y notas */
html[data-tema="oscuro"] .ad-note { border-color: rgba(var(--accent-rgb), .3); }
html[data-tema="oscuro"] .ad-note--warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .35); }
html[data-tema="oscuro"] .ad-alert--ok { border-color: rgba(34, 197, 94, .35); }
html[data-tema="oscuro"] .ad-alert--error { border-color: rgba(248, 113, 113, .35); }

/* Estados de consultas */
html[data-tema="oscuro"] .ad-cest--pendiente   { background: rgba(251, 191, 36, .16); color: #FCD34D; }
html[data-tema="oscuro"] .ad-cest--revisando   { background: rgba(56, 189, 248, .16); color: #7DD3FC; }
html[data-tema="oscuro"] .ad-cest--seguimiento { background: rgba(192, 132, 252, .16); color: #D8B4FE; }
html[data-tema="oscuro"] .ad-cest--cerrado     { background: #1E293B; color: #CBD5E1; }

/* ===== Personalización: color de tu marca ===== */
.ad-marca { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 24px; }
.ad-marca__label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ad-marca__fila { display: flex; align-items: center; gap: 10px; }
.ad-marca__picker { flex: 0 0 auto; width: 52px; height: 44px; padding: 3px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); cursor: pointer; }
.ad-marca__hex { flex: 0 1 130px; }
.ad-marca__hex input { text-transform: lowercase; font-variant-numeric: tabular-nums; }
.ad-marca__estado { margin: 8px 0 18px; font-size: 13px; color: var(--muted); }
.ad-marca__sugeridos { display: flex; flex-wrap: wrap; gap: 10px; }
.ad-marca__sugeridos button { width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.ad-marca__sugeridos button:hover { transform: scale(1.08); }
.ad-marca__sugeridos button.is-on { box-shadow: 0 0 0 2px var(--ink); }
.ad-marca__sugeridos button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ad-marca__contraste { margin-top: 14px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.ad-marca__muestra { padding: 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.ad-marca__hero { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; color: #FFF; background: radial-gradient(260px 120px at 100% 0%, rgba(var(--grad-glow), .5), transparent 70%), linear-gradient(135deg, var(--grad-1), var(--grad-2)); }
.ad-marca__hero small { color: var(--hero-text); }
.ad-marca__hero strong { font-size: 15px; }
.ad-marca__muestra .ad-tabs { display: inline-flex; }
.ad-marca__texto { font-size: 14px; color: var(--ink); }
.ad-marca__texto a { font-weight: 600; }
.ad-marca__botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ad-marca__botones .ad-btn { cursor: default; }
.ad-marca__nota { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 760px) { .ad-marca { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   SEO de la ficha (vws_include/seo.tpl.html + js/seo.js)
   ========================================================================== */
.ad-seo__vista { display: grid; gap: 3px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: var(--shadow-sm); min-width: 0; }
.ad-seo__etiqueta { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad-seo__url { font-size: 13px; color: var(--ok); overflow-wrap: anywhere; }
.ad-seo__titulo { font-size: 18px; font-weight: 500; line-height: 1.3; color: var(--accent-ink); overflow-wrap: anywhere; }
.ad-seo__desc { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.ad-field > .ad-seo__cab { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ad-seo__chip { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--muted); }
.ad-seo__chip[data-estado="corto"] { background: var(--warn-soft); color: var(--warn); }
.ad-seo__chip[data-estado="ok"] { background: var(--ok-soft); color: var(--ok); }
.ad-seo__chip[data-estado="largo"] { background: var(--err-soft); color: var(--err); }
.ad-seo__barra { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ad-seo__barra i { display: block; height: 100%; width: 0; background: var(--muted); transition: width .15s ease; }
.ad-seo__barra i[data-estado="corto"] { background: var(--warn); }
.ad-seo__barra i[data-estado="ok"] { background: var(--ok); }
.ad-seo__barra i[data-estado="largo"] { background: var(--err); }

/* =============================================================================
   Bio para redes (/admin/bio)
   ============================================================================= */
.ad-cols--bio { grid-template-columns: minmax(0, 1fr) 300px; }
.ad-bio-form .ad-seccion { grid-template-columns: 200px minmax(0, 1fr); gap: 22px; }
.ad-bio-ej { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.ad-bio-aviso { margin-top: 18px; }
.ad-bio-form textarea[data-ejemplo] { color: var(--muted); }

/* Filas de botones */
.ad-bio-enlaces { display: grid; gap: 10px; }
.ad-bio-enl { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.ad-bio-enl.is-apagado { background: var(--bg); }
.ad-bio-enl.is-apagado .ad-bio-enl__campos { opacity: .6; }
.ad-bio-enl__orden { display: grid; gap: 4px; padding-top: 22px; }
.ad-bio-enl__orden button, .ad-bio-enl__x { width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); color: var(--muted); font-size: 15px; line-height: 1; cursor: pointer; }
.ad-bio-enl__orden button:hover:not(:disabled), .ad-bio-enl__x:hover { color: var(--ink); border-color: var(--accent); }
.ad-bio-enl__orden button:disabled { opacity: .35; cursor: default; }
.ad-bio-enl__x { font-size: 20px; }
.ad-bio-enl__x:hover { color: var(--err); border-color: var(--err); }
.ad-bio-enl__campos { display: grid; gap: 10px; min-width: 0; }
.ad-bio-enl__campos .ad-hint:empty { display: none; }
.ad-bio-enl__fila { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; }
.ad-bio-enl__acc { display: flex; align-items: center; gap: 10px; padding-top: 24px; }

/* Diseños */
.ad-bio-disenos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.ad-bio-diseno { position: relative; display: grid; gap: 6px; cursor: pointer; text-align: center; }
.ad-bio-diseno input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-bio-diseno__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 9 / 16; overflow: hidden; border: 2px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.ad-bio-diseno__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ad-bio-diseno b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.ad-bio-diseno:hover .ad-bio-diseno__img { border-color: var(--line-2); }
.ad-bio-diseno input:checked + .ad-bio-diseno__img { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-bio-diseno input:focus-visible + .ad-bio-diseno__img { box-shadow: 0 0 0 4px var(--accent-soft); }

/* Vista previa en un celular */
.ad-bio-vista { position: sticky; top: 20px; display: grid; gap: 10px; justify-items: center; }
.ad-bio-vista__tit { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ad-bio-tel { width: 260px; padding: 10px; border-radius: 34px; background: #0F172A; box-shadow: var(--shadow-lg); }
.ad-bio-tel__pant { display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 460px; padding: 30px 16px 22px; border-radius: 26px; background: linear-gradient(180deg, var(--accent-tint), #FFFFFF 55%); text-align: center; color: #0F172A; overflow: hidden; }
.ad-bio-tel__logo { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; overflow: hidden; border: 3px solid #FFF; border-radius: 50%; background: var(--accent-btn); color: var(--on-accent); font-size: 28px; font-weight: 800; box-shadow: 0 4px 14px rgba(15, 23, 42, .15); }
.ad-bio-tel__logo img { width: 100%; height: 100%; object-fit: cover; background: #FFF; }
.ad-bio-tel__nombre { font-size: 17px; font-weight: 800; letter-spacing: -.01em; word-break: break-word; }
.ad-bio-tel__texto { font-size: 12px; line-height: 1.45; color: #475569; white-space: pre-line; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.ad-bio-tel__botones { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.ad-bio-tel__btn { display: block; padding: 10px 12px; border-radius: 12px; background: var(--accent-btn); color: var(--on-accent); font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-bio-tel__btn.is-whatsapp { background: #16A34A; color: #FFF; }
.ad-bio-tel__redes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.ad-bio-tel__red { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #E2E8F0; color: #334155; font-size: 11px; font-weight: 800; }

@media (max-width: 1100px) {
    .ad-cols--bio { grid-template-columns: minmax(0, 1fr); }
    .ad-bio-vista { position: static; order: -1; }
}
@media (max-width: 960px) { .ad-bio-form .ad-seccion { grid-template-columns: minmax(0, 1fr); gap: 14px; } }
@media (max-width: 560px) {
    .ad-bio-enl { grid-template-columns: minmax(0, 1fr) auto; }
    .ad-bio-enl__orden { grid-column: 2; grid-row: 1; display: flex; padding-top: 0; }
    .ad-bio-enl__campos { grid-column: 1 / -1; grid-row: 2; }
    .ad-bio-enl__acc { grid-column: 1; grid-row: 1; padding-top: 0; }
    .ad-bio-enl__fila { grid-template-columns: minmax(0, 1fr); }
}

/* ================= Completar con IA (global.js) ================= */
.ad-field > span.ad-ia-fila { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ad-ia { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ad-ia__btn, .ad-ia__deshacer {
    display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 12px;
    border: 1px solid transparent; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    transition: background .15s, border-color .15s, color .15s, opacity .15s;
}
.ad-ia__btn { background: var(--accent-tint); color: var(--accent-dark); border-color: var(--accent-soft); }
.ad-ia__btn:hover { background: var(--accent-soft); }
.ad-ia__btn:focus-visible, .ad-ia__deshacer:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad-ia__btn .ad-ico { width: 15px; height: 15px; stroke-width: 2; }
.ad-ia__btn:disabled { cursor: progress; opacity: .75; }
.ad-ia__btn.is-cargando .ad-ico { animation: ad-ia-gira 1s linear infinite; }
.ad-ia__deshacer { background: transparent; color: var(--muted); }
.ad-ia__deshacer:hover { color: var(--ink); border-color: var(--line-2); }
@keyframes ad-ia-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ad-ia__btn.is-cargando .ad-ico { animation: none; } }

/* ================= Asistente "Completar con IA" de producto (producto-ia.js) ================= */
.ad-iap-abrir .ad-ico { width: 16px; height: 16px; color: var(--accent); }
.ad-iap__caja { max-width: 680px; }
.ad-iap__pasos { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 18px; padding: 0; list-style: none; counter-reset: iap; }
.ad-iap__pasos li { flex: 1 1 120px; padding: 7px 10px; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; counter-increment: iap; }
.ad-iap__pasos li::before { content: counter(iap) ". "; }
.ad-iap__pasos li.is-hecho { background: var(--ok-soft); color: var(--ok); }
.ad-iap__pasos li.is-on { background: var(--accent); color: #FFF; }
.ad-iap__paso { display: grid; gap: 12px; }
.ad-iap__ayuda { font-size: 14px; color: var(--ink-2); }
.ad-iap__secciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ad-iap__secciones .ad-check { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; cursor: pointer; }
.ad-iap__secciones .ad-check:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.ad-iap__secciones .ad-check span { display: grid; gap: 1px; }
.ad-iap__secciones .ad-check b { font-size: 14px; color: var(--ink); }
.ad-iap__secciones .ad-check small { font-size: 12px; color: var(--muted); }
.ad-iap__pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ad-iap__pie > :last-child { margin-left: auto; }
.ad-iap__mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px !important; }
.ad-iap__directo { display: grid; justify-items: start; gap: 10px; padding: 14px; border: 1px solid var(--accent-soft); border-radius: 12px; background: var(--accent-tint); }
.ad-iap__directo .ad-ico { width: 16px; height: 16px; }
.ad-iap__o { justify-self: stretch; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.ad-iap .ad-alert { margin: 0; }
body.is-modal { overflow: hidden; }
/* Campos que rellenó la IA (se quita al editarlos) */
.ad-field .is-ia, .ad-url:has(.is-ia) { border-color: var(--ok) !important; box-shadow: 0 0 0 3px var(--ok-soft); }
.ad-url .is-ia { box-shadow: none !important; }
.ad-pcat.is-ia span { border-color: var(--ok); }
@media (max-width: 560px) { .ad-iap__secciones { grid-template-columns: minmax(0, 1fr); } }

.ad-head__acc { display: flex; flex-wrap: wrap; gap: 8px; }
.ad-iap__que { font-size: 13px; color: var(--ink-2); }
.ad-iap__que summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.ad-iap__que p { margin-top: 6px; }
/* Encabezado: el texto se achica y los botones quedan siempre a la derecha */
.ad-head { flex-wrap: nowrap; }
.ad-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.ad-head > :not(:first-child) { flex: 0 0 auto; margin-left: auto; }
.ad-head__acc { justify-content: flex-end; }
@media (max-width: 640px) {
    .ad-head { flex-wrap: wrap; }
    .ad-head > div:first-child { flex-basis: 100%; }
}

/* ================= Editor visual de descripciones (global.js) ================= */
.ad-editor { border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.ad-editor:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-editor__barra { display: flex; flex-wrap: wrap; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: var(--bg); }
.ad-editor__barra button { min-width: 34px; height: 32px; padding: 0 8px; border: 1px solid transparent; border-radius: 7px; background: transparent; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.ad-editor__barra button:hover { background: var(--white); border-color: var(--line-2); }
.ad-editor__barra button.is-on { background: var(--accent-tint); border-color: var(--accent-soft); color: var(--accent-dark); }
.ad-editor__barra button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ad-editor__area { min-height: 150px; max-height: 480px; overflow-y: auto; padding: 12px 14px; font-size: 15px; line-height: 1.6; color: var(--ink); outline: 0; overflow-wrap: anywhere; }
.ad-editor__area > * + * { margin-top: 10px; }
.ad-editor__area h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.ad-editor__area ul, .ad-editor__area ol { padding-left: 22px; }
.ad-editor__area li + li { margin-top: 4px; }
.ad-editor.is-vacio .ad-editor__area::before { content: attr(data-placeholder); position: absolute; color: #A0AEC0; pointer-events: none; }
.ad-editor.is-vacio .ad-editor__area { position: relative; }
html[data-tema="oscuro"] .ad-editor.is-vacio .ad-editor__area::before { color: #64748B; }
/* Rellenado por la IA */
.ad-field textarea.is-ia + .ad-editor { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.ad-seo__vista.is-ia { outline: 2px solid var(--ok); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ok-soft); }
/* Complementos: lista en tarjetas (como dif-admin) */
.cpl-cat { margin-top: 28px; }
.cpl-cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cpl-cat__ico { width: 38px; height: 38px; border-radius: 11px; background: var(--white); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.cpl-cat__head h2 { font-size: 16px; font-weight: 700; }
.cpl-cat__head p { font-size: 13px; color: var(--muted); }
.cpl-grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cpl-tarjeta { --cpl-a: var(--accent); --cpl-s: var(--accent-tint); display: flex; flex-direction: column; gap: 12px; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: box-shadow .2s, border-color .2s, transform .2s; }
.cpl-tarjeta:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-1px); }
.cpl-tarjeta__head { display: flex; align-items: center; gap: 12px; }
.cpl-tarjeta__ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #FFF; }
.cpl-tarjeta__ico svg { width: 24px; height: 24px; }
.cpl-tarjeta__tit { flex: 1 1 auto; min-width: 0; }
.cpl-tarjeta__tit h3 { font-size: 15px; font-weight: 700; }
.cpl-estado { display: inline-block; margin-top: 2px; padding: 1px 9px; border-radius: 999px; background: #F1F5F9; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.cpl-estado.is-on { background: var(--ok-soft); color: var(--ok); }
.cpl-tarjeta__desc { font-size: 13.5px; color: var(--ink-2); }
.cpl-resumen { list-style: none; display: grid; gap: 5px; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.cpl-resumen li { position: relative; padding-left: 20px; }
.cpl-resumen li::before { content: "✓"; position: absolute; left: 2px; color: var(--cpl-a); font-weight: 700; }
.cpl-resumen li.is-vacio { padding-left: 0; color: var(--muted); font-style: italic; }
.cpl-resumen li.is-vacio::before { content: none; }
.cpl-resumen li.is-warn { color: var(--warn); }
.cpl-resumen li.is-warn::before { content: "!"; color: var(--warn); }
.cpl-tarjeta__pie { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.cpl-configurar { display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center; min-height: 40px; border-radius: 10px; background: var(--cpl-s); color: var(--cpl-a); font-size: 14px; font-weight: 600; text-decoration: none; transition: filter .15s; }
.cpl-configurar:hover { filter: brightness(.96); }
.cpl-configurar .ad-ico { width: 16px; height: 16px; transition: transform .15s; }
.cpl-configurar:hover .ad-ico { transform: translateX(3px); }
@media (max-width: 1100px) { .cpl-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cpl-grilla { grid-template-columns: minmax(0, 1fr); } }
/* Complementos: tres por fila mientras haya barra lateral; etiqueta de categoría */
.cpl-tag { align-self: flex-start; padding: 2px 9px; border-radius: 999px; background: var(--cpl-s); color: var(--cpl-a); font-size: 11.5px; font-weight: 600; }
.cpl-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .cpl-grilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cpl-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cpl-grilla { grid-template-columns: minmax(0, 1fr); } }
/* Complementos: vista previa del botón llamar y de la barra de anuncio */
.ad-llamar-vista { position: relative; height: 150px; border-radius: 12px; background: #F1F5F9; border: 1px solid var(--line); overflow: hidden; }
.ad-llamar-vista__pantalla { position: absolute; inset: 16px 16px auto; display: grid; gap: 8px; }
.ad-llamar-vista__pantalla i { display: block; height: 10px; border-radius: 6px; background: #E2E8F0; }
.ad-llamar-vista__pantalla i:nth-child(2) { width: 70%; } .ad-llamar-vista__pantalla i:nth-child(3) { width: 45%; }
.ad-llamar-vista__btn { position: absolute; bottom: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 14px; border-radius: 30px; background: #2563EB; color: #FFF; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); font-size: 14px; font-weight: 600; }
.ad-llamar-vista__btn svg { width: 22px; height: 22px; }
.ad-llamar-vista__btn.is-der { left: auto; right: 14px; }
.ad-llamar-vista__btn.is-redondo { width: 50px; padding: 0; justify-content: center; }
.ad-llamar-vista__btn.is-redondo b { display: none; }

.ad-barra-vista { position: relative; display: flex; flex-direction: column; gap: 0; height: 150px; border-radius: 12px; background: #F1F5F9; border: 1px solid var(--line); overflow: hidden; }
.ad-barra-vista.is-abajo { flex-direction: column-reverse; }
.ad-barra-vista__barra { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 40px; font-size: 13.5px; font-weight: 600; text-align: center; overflow: hidden; }
.ad-barra-vista.is-tarjeta .ad-barra-vista__barra { margin: 10px 14px; border-radius: 12px; box-shadow: 0 8px 20px rgba(0, 0, 0, .15); }
.ad-barra-vista__btn { flex: 0 0 auto; padding: 4px 12px; border: 1.5px solid; border-radius: 999px; font-size: 12.5px; }
.ad-barra-vista__x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); opacity: .7; font-size: 18px; }
.ad-barra-vista__pagina { flex: 1 1 auto; display: grid; align-content: center; gap: 8px; padding: 0 16px; }
.ad-barra-vista__pagina i { display: block; height: 10px; border-radius: 6px; background: #E2E8F0; }
.ad-barra-vista__pagina i:nth-child(2) { width: 70%; } .ad-barra-vista__pagina i:nth-child(3) { width: 45%; }
.ad-barra-vista[data-efecto="brillo"] .ad-barra-vista__barra::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); animation: adBrillo 2.6s infinite; }
.ad-barra-vista[data-efecto="pulso"] .ad-barra-vista__btn { animation: adPulso 1.4s infinite; }
.ad-barra-vista[data-efecto="marquesina"] .ad-barra-vista__txt { animation: adMarq 9s linear infinite; white-space: nowrap; }
.ad-barra-vista[data-efecto="entrada"] .ad-barra-vista__barra { animation: adEntrada .6s ease-out; }
@keyframes adBrillo { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes adPulso { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes adMarq { from { transform: translateX(60%); } to { transform: translateX(-60%); } }
@keyframes adEntrada { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ad-barra-vista *, .ad-barra-vista *::after { animation: none !important; } }
/* SEO en popup + botón al lado de "Completar con IA" */
.ad-seo__caja { max-width: 620px; display: grid; gap: 16px; }
.ad-seo__caja > h2 { margin-top: 0; }
.ad-seo__caja > p { margin-top: -8px; }
.ad-seo__caja .ad-modal__ico { margin-bottom: -4px; }
.ad-seo__campos { display: grid; gap: 18px; }
.ad-seo__bajada { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); font-weight: 400; }
.ad-seo__vista .ad-seo__bajada { margin: -4px 0 6px; }
.ad-seo__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.ad-seo-abrir { position: relative; }
.ad-seo-abrir .ad-ico { width: 16px; height: 16px; color: var(--accent); }
.ad-seo-abrir__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.ad-seo-abrir__punto[hidden] { display: none; }

/* =============================================================================
   DISEÑO 2026 — capa moderna sobre todo el panel
   Va al final para pisar lo anterior sin cambiar clases ni plantillas.
   Respeta el color de marca (Personalización pisa --accent*, --grad-*) y el modo oscuro.
   ============================================================================= */
:root {
    --bg: #F5F6F8;
    --ink: #0B0F17;
    --ink-2: #3D4553;
    --muted: #6B7280;
    --faint: #9AA1AD;
    --line: #E7E9EE;
    --line-2: #D9DDE4;
    --surface-2: #F9FAFB;
    --radius: 16px;
    --radius-sm: 10px;
    --ring: 0 0 0 3px rgba(var(--accent-rgb), .18);
    --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .03);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -12px rgba(16, 24, 40, .14);
    --shadow-lg: 0 32px 72px -20px rgba(16, 24, 40, .32), 0 0 0 1px rgba(16, 24, 40, .04);
    --side: 264px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-tema="oscuro"] {
    --bg: #090D15;
    --white: #111622;
    --ink: #E8EAEE;
    --ink-2: #C3C9D3;
    --muted: #8E97A6;
    --faint: #687183;
    --line: #1D2432;
    --line-2: #2A3343;
    --surface-2: #0D121C;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -12px rgba(0, 0, 0, .55);
    --shadow-lg: 0 32px 72px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .04);
}

/* ---------- Base ---------- */
body {
    font-size: 14.5px; line-height: 1.55; letter-spacing: -.006em;
    font-feature-settings: "cv11", "ss01", "ss03";
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
}
body.is-dentro {
    background:
        radial-gradient(900px 360px at 85% -160px, rgba(var(--accent-rgb), .07), transparent 70%),
        var(--bg);
    background-attachment: fixed;
}
::selection { background: rgba(var(--accent-rgb), .2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ad-ico { stroke-width: 1.7; }
b, strong { font-weight: 650; }
h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; }
.ad-stat b, .ad-plan__precio, .ad-prod__precio, .ad-ped__monto, .ad-ped__totales, .ad-nav__cuenta, .ad-tab em { font-variant-numeric: tabular-nums; }

/* ---------- Botones ---------- */
.ad-btn {
    min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; letter-spacing: -.005em;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease), filter .15s var(--ease);
}
.ad-btn:active:not([disabled]) { transform: translateY(1px); }
.ad-btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.ad-btn--primary {
    background-color: var(--accent-btn); color: var(--on-accent);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0));
    border-color: rgba(0, 0, 0, .06);
    box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.ad-btn--primary:hover { background-color: var(--accent-btn-hover); box-shadow: 0 4px 12px -2px rgba(var(--accent-rgb), .35), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ad-btn--ghost { background: var(--white); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.ad-btn--ghost:hover { background: var(--surface-2); border-color: #C6CBD4; color: var(--ink); }
.ad-btn--sm { min-height: 34px; padding: 5px 12px; font-size: 13px; border-radius: 9px; }
.ad-btn--full { min-height: 46px; font-size: 14.5px; }
.ad-btn--blanco { background: #FFF; color: var(--accent-ink); box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .35); }
.ad-btn--blanco:hover { background: #FFF; filter: brightness(.97); }
.ad-btn--wa { box-shadow: 0 1px 2px rgba(16, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .2); }
.ad-btn--peligro:hover { background: var(--err-soft); }
html[data-tema="oscuro"] .ad-btn--ghost:hover { border-color: #3A4456; }

/* ---------- Barra lateral ---------- */
.ad-side {
    padding: 18px 12px 14px;
    background: var(--white);
    border-right: 1px solid var(--line);
}
.ad-side__logo { padding: 6px 12px 20px; }
.ad-side__logo img { height: 30px; }
.ad-nav { gap: 1px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ad-nav__grupo { margin: 20px 12px 6px; font-size: 10.5px; font-weight: 650; letter-spacing: .09em; color: var(--faint); }
.ad-nav__item {
    position: relative; min-height: 38px; padding: 7px 12px; gap: 11px; border-radius: 9px;
    font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.ad-nav__item .ad-ico { width: 18px; height: 18px; color: var(--faint); transition: color .15s; }
a.ad-nav__item:hover { background: var(--surface-2); color: var(--ink); }
html:not([data-tema="oscuro"]) a.ad-nav__item:hover { background: #F2F4F7; }
a.ad-nav__item:hover .ad-ico { color: var(--ink-2); }
.ad-nav__item.is-on { background: rgba(var(--accent-rgb), .09); color: var(--accent-dark); font-weight: 600; }
.ad-nav__item.is-on .ad-ico { color: var(--accent); }
.ad-nav__item.is-on::before {
    content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--accent-btn);
}
.ad-nav__cuenta { min-width: 20px; height: 19px; padding: 0 6px; line-height: 19px; font-size: 10.5px; background: var(--accent-btn); color: var(--on-accent); }
.ad-side__foot { padding-top: 12px; gap: 6px; border-top: 1px solid var(--line); }
.ad-side__user { padding: 8px 10px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-avatar {
    width: 32px; height: 32px; border-radius: 9px; font-size: 13px;
    background: linear-gradient(135deg, var(--grad-1), var(--grad-2));
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
}
.ad-side__who b { font-size: 13px; font-weight: 650; }
.ad-side__who small { font-size: 11.5px; }
.ad-velo { background: rgba(9, 13, 21, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

/* ---------- Contenido ---------- */
.is-dentro .ad-main { padding: 34px 44px 64px; max-width: calc(var(--side) + 1140px); }
.is-dentro .ad-main--form { max-width: calc(var(--side) + 840px); }
.ad-head { margin-bottom: 26px; gap: 12px 24px; }
.ad-head h1 { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.ad-head p, .ad-head .ad-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.ad-volver { margin-bottom: 12px; padding: 4px 10px 4px 6px; border-radius: 8px; color: var(--muted); }
.ad-volver:hover { background: var(--white); color: var(--ink); box-shadow: var(--shadow-xs); }
.ad-kicker { font-size: 11px; font-weight: 650; letter-spacing: .09em; color: var(--accent); }
.ad-foot { font-size: 12.5px; color: var(--faint); padding: 24px; }

/* ---------- Tarjetas ---------- */
.ad-card { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px; }
.ad-card__titulo { font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; }
.ad-card__sub { margin-top: 3px; font-size: 13px; }
.ad-seccion { gap: 32px; padding: 28px 0; }
.ad-seccion__info h2 { font-size: 14.5px; font-weight: 650; }
.ad-seccion__info p { font-size: 13px; line-height: 1.5; }
.ad-acciones { padding: 16px 0 6px; }

/* ---------- Formularios ---------- */
.ad-form { gap: 24px; }
.ad-form legend { font-size: 11px; font-weight: 650; letter-spacing: .09em; color: var(--faint); }
.ad-field { gap: 7px; }
.ad-field > span:first-child { font-size: 13px; font-weight: 550; color: var(--ink-2); }
.ad-field input:where(:not([type="checkbox"], [type="radio"], [type="color"], [type="file"])), .ad-field select, .ad-field textarea, .ad-buscar input {
    min-height: 40px; padding: 9px 12px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-2); background-color: var(--white);
    font-size: 14px; box-shadow: var(--shadow-xs);
}
.ad-field select {
    -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
}
.ad-field select[multiple] { background-image: none; padding-right: 12px; }
.ad-field .ad-courier select, .ad-field .ad-nivel select { padding-right: 28px; background-position: right 8px center; }
.ad-field input:hover, .ad-field select:hover, .ad-field textarea:hover { border-color: #C6CBD4; }
.ad-field input:focus, .ad-field select:focus, .ad-field textarea:focus, .ad-buscar input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.ad-url, .ad-pass, .ad-editor { border-radius: var(--radius-sm); border-color: var(--line-2); box-shadow: var(--shadow-xs); }
.ad-url input, .ad-pass input { box-shadow: none !important; }
.ad-url:focus-within, .ad-pass:focus-within, .ad-editor:focus-within { border-color: var(--accent); box-shadow: var(--ring); }
.ad-url__suf, .ad-url__pre, .ad-pass__ver { background: var(--surface-2); font-size: 13px; font-weight: 550; }
.ad-hint { font-size: 12.5px; line-height: 1.5; }
.ad-check input, .ad-cons__sel { accent-color: var(--accent-btn); }
.ad-switch span { width: 40px; height: 22px; background: #D3D8E0; }
.ad-switch span::after { top: 2px; left: 2px; width: 18px; height: 18px; box-shadow: 0 1px 3px rgba(16, 24, 40, .25); }
.ad-switch input:checked + span { background: var(--accent-btn); }
.ad-switch input:checked + span::after { transform: translateX(18px); }
.ad-switch input:focus-visible + span { box-shadow: var(--ring); }
html[data-tema="oscuro"] .ad-field input:hover, html[data-tema="oscuro"] .ad-field select:hover, html[data-tema="oscuro"] .ad-field textarea:hover { border-color: #3A4456; }
html[data-tema="oscuro"] .ad-switch span { background: #2A3343; }

/* ---------- Avisos, notas y estados ---------- */
.ad-alert { border-radius: 12px; font-size: 13.5px; padding: 12px 14px; }
.ad-note {
    border-radius: 12px; padding: 14px 16px; font-size: 13.5px; line-height: 1.55;
    background: rgba(var(--accent-rgb), .06); border: 1px solid rgba(var(--accent-rgb), .18);
}
.ad-hero ~ .ad-note { margin-top: 16px; }
.ad-note--warn { background: #FFFAEB; border-color: #FBE3A6; color: #5C3D0A; }
html[data-tema="oscuro"] .ad-note--warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .3); color: var(--ink-2); }
.ad-badge { padding: 4px 10px 4px 9px; font-size: 11.5px; font-weight: 650; letter-spacing: .01em; }
.ad-badge::before { width: 6px; height: 6px; }
.ad-cest { padding: 3px 10px; font-size: 11.5px; font-weight: 650; }
.ad-soon { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Cabecera del panel (hero) ---------- */
.ad-hero {
    border-radius: 20px; padding: 32px 34px;
    background:
        radial-gradient(560px 280px at 100% -10%, rgba(var(--grad-glow), .55), transparent 65%),
        radial-gradient(420px 240px at -5% 120%, rgba(var(--accent-rgb), .55), transparent 70%),
        linear-gradient(135deg, var(--grad-1) 0%, var(--grad-2) 100%);
    box-shadow: 0 20px 48px -24px rgba(var(--accent-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.ad-hero::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(500px 240px at 85% 0%, #000, transparent 75%);
    mask-image: radial-gradient(500px 240px at 85% 0%, #000, transparent 75%);
}
.ad-hero h1 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.ad-hero p { margin-top: 6px; font-size: 14.5px; }
.ad-hero__url {
    padding: 8px 14px; border-radius: 10px; font-size: 13.5px;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ad-hero__url:hover { background: rgba(255, 255, 255, .2); }
.ad-hero .ad-badge { background: rgba(255, 255, 255, .16); color: #FFF; border: 1px solid rgba(255, 255, 255, .25); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ad-hero .ad-badge--ok::before { background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .25); }
.ad-hero .ad-badge--warn::before { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .25); }

/* ---------- Indicadores ---------- */
.ad-stats { gap: 14px; margin-top: 18px; }
.ad-stat {
    position: relative; padding: 18px 20px; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.ad-stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.ad-stat span { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.ad-stat b { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.ad-stat b small { font-size: 14px !important; font-weight: 500; letter-spacing: 0; color: var(--faint); }
.ad-stat > small { margin-top: 6px; font-size: 12px; color: var(--faint); }
.ad-cols { gap: 18px; margin-top: 18px; }

/* ---------- Pasos (tiles) ---------- */
.ad-grid { gap: 10px; margin-top: 18px; }
.ad-tile { padding: 16px; border-radius: 14px; border-color: var(--line); gap: 14px; }
.ad-tile__ico { width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.ad-tile__ico .ad-ico { width: 18px; height: 18px; }
.ad-tile h2 { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.ad-tile p { font-size: 13px; line-height: 1.45; }
a.ad-tile { transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
a.ad-tile .ad-tile__ico { background: rgba(var(--accent-rgb), .08); border-color: rgba(var(--accent-rgb), .16); color: var(--accent); }
a.ad-tile:hover { border-color: rgba(var(--accent-rgb), .35); box-shadow: var(--shadow); transform: translateY(-2px); }
a.ad-tile:hover .ad-ir .ad-ico { transform: translateX(3px); }
.ad-ir { font-size: 12.5px; }
.ad-ir .ad-ico { transition: transform .2s var(--ease); }

/* ---------- Plan ---------- */
.ad-plan__nombre { font-size: 19px; font-weight: 700; letter-spacing: -.025em; }
.ad-plan__precio { font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.ad-plan__lista { gap: 11px; font-size: 13.5px; }
.ad-plan__lista .ad-ico { width: 18px; height: 18px; padding: 2px; border-radius: 50%; background: rgba(var(--accent-rgb), .1); stroke-width: 2.6; }
.ad-plan__lista li.is-off .ad-ico { background: transparent; }

/* ---------- Pestañas (control segmentado), búsqueda y bandeja ---------- */
.ad-tabs { gap: 2px; padding: 3px; border-radius: 11px; background: #ECEEF2; border: 1px solid transparent; }
.ad-tab { min-height: 32px; padding: 5px 12px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--muted); }
.ad-tab:hover { color: var(--ink); }
.ad-tab.is-on { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px rgba(16, 24, 40, .04); }
.ad-tab em { background: rgba(16, 24, 40, .06); font-weight: 600; }
.ad-tab.is-on em { background: var(--accent-btn); color: var(--on-accent); }
html[data-tema="oscuro"] .ad-tabs { background: #0D121C; border-color: var(--line); }
html[data-tema="oscuro"] .ad-tab.is-on { background: var(--line-2); box-shadow: none; }
html[data-tema="oscuro"] .ad-tab em { background: rgba(255, 255, 255, .08); }
.ad-buscar input { padding-left: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239AA1AD' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m14 14-3.2-3.2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 12px center; }
.ad-consultas { padding: 6px; }
.ad-cons { border-radius: 12px; transition: background .15s; }
.ad-cons:hover { background: var(--surface-2); }
.ad-cbtn, .ad-prod__acc a, .ad-prod__acc button { border-radius: 9px; border-color: var(--line); box-shadow: var(--shadow-xs); transition: border-color .15s, color .15s, background .15s; }
.ad-cbtn:hover { background: rgba(var(--accent-rgb), .06); }

/* ---------- Productos y listas en tarjetas ---------- */
.ad-productos { gap: 14px; }
.ad-prod, .ad-piel, .cpl-tarjeta { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.ad-prod:hover, .ad-piel:hover, .cpl-tarjeta:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ad-prod__foto { background: var(--surface-2); }
.ad-prod__foto img { transition: transform .4s var(--ease); }
.ad-prod:hover .ad-prod__foto img { transform: scale(1.04); }
.ad-prod__nombre { font-weight: 650; }
.ad-tope { height: 5px; background: var(--line); }
.ad-tope span { background: linear-gradient(90deg, var(--grad-2), var(--accent-btn)); }
.ad-foto { border-radius: 12px; }
.ad-foto--subir { border: 1.5px dashed var(--line-2); background: var(--surface-2); }
.ad-vacio { padding: 56px 24px; }
.ad-vacio h2 { font-size: 17px; font-weight: 700; }
.ad-piel.is-actual { border-color: var(--accent); box-shadow: var(--ring), var(--shadow); }
.cpl-tarjeta { padding: 22px; }
.cpl-configurar { border-radius: var(--radius-sm); font-size: 13.5px; }
.ad-bio-enl, .ad-comp-sub, .ad-region, .ad-courier, .ad-nivel { border-radius: 12px; }

/* ---------- Modales ---------- */
.ad-modal__velo { background: rgba(9, 13, 21, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ad-modal__caja { border-radius: 20px; padding: 28px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation-duration: .22s; animation-timing-function: var(--ease); }
.ad-modal__x { border-radius: 9px; background: transparent; }
.ad-modal__x:hover { background: var(--surface-2); }
.ad-modal__ico { border-radius: 12px; background: linear-gradient(135deg, var(--grad-1), var(--grad-2)); box-shadow: 0 8px 20px -8px rgba(var(--accent-rgb), .6); }
.ad-modal__caja h2 { font-size: 20px; font-weight: 700; letter-spacing: -.025em; }

/* ---------- Páginas de acceso ---------- */
.is-fuera { background: var(--white); }
.is-fuera .ad-main { gap: 56px; }
.ad-brand {
    border-radius: 28px; padding: 44px;
    background:
        radial-gradient(520px 300px at 100% 0%, rgba(var(--grad-glow), .6), transparent 65%),
        radial-gradient(460px 300px at 0% 100%, rgba(var(--accent-rgb), .75), transparent 70%),
        linear-gradient(150deg, var(--grad-1), var(--grad-2));
    box-shadow: 0 30px 60px -30px rgba(var(--accent-rgb), .6), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.ad-brand::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(600px 400px at 80% 10%, #000, transparent 75%);
    mask-image: radial-gradient(600px 400px at 80% 10%, #000, transparent 75%);
}
.ad-brand__pill { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 12.5px; }
.ad-brand h2 { font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.ad-brand li .ad-ico { background: rgba(255, 255, 255, .18); }
.ad-card h1 { font-size: 30px; font-weight: 700; letter-spacing: -.035em; }
.is-fuera .ad-sub { font-size: 14.5px; }
.ad-top__back { padding: 6px 12px; border-radius: 9px; font-size: 13.5px; }
.ad-top__back:hover { background: var(--surface-2); color: var(--ink); }
.ad-modo__caja { border-radius: 14px; border-width: 1px; box-shadow: var(--shadow-xs); }
.ad-modo input:checked + .ad-modo__caja { border-color: var(--accent); box-shadow: var(--ring); }

/* ---------- Móvil ---------- */
@media (max-width: 900px) {
    .ad-mtop {
        height: 58px; background: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: saturate(1.6) blur(12px); backdrop-filter: saturate(1.6) blur(12px);
        border-bottom-color: var(--line);
    }
    html[data-tema="oscuro"] .ad-mtop { background: rgba(17, 22, 34, .82); }
    .ad-mtop__btn { width: 40px; height: 40px; border-color: var(--line); box-shadow: var(--shadow-xs); }
    .ad-side { box-shadow: var(--shadow-lg); }
    .is-dentro .ad-main { padding: 22px 16px 44px; }
}
@media (max-width: 560px) {
    .ad-hero { padding: 24px 20px; border-radius: 18px; }
    .ad-hero h1 { font-size: 23px; }
    .ad-head h1 { font-size: 23px; }
    .ad-card { padding: 20px 16px; }
    .ad-stat { padding: 14px 16px; }
    .ad-stat b { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .ad-stat, a.ad-tile, .ad-prod, .ad-piel, .cpl-tarjeta, .ad-prod__foto img, .ad-btn { transition: none; }
    .ad-stat:hover, a.ad-tile:hover, .ad-prod:hover, .ad-piel:hover, .cpl-tarjeta:hover { transform: none; }
}
/* Botón SEO cuando la IA llenó el SEO (asistente-ia.js) */
.ad-seo-abrir.is-ia { border-color: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); color: var(--ok); }
/* Palabras clave como etiquetas (como el tagsInput del SEO de dif-admin) */
.ad-tags-campo .ad-seo__cab label { font: inherit; color: inherit; }
.ad-tags__limpiar { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.ad-tags__limpiar:hover { color: var(--err); }
.ad-tags__limpiar[hidden] { display: none; }
.ad-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; min-height: 110px; max-height: 180px; overflow-y: auto; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); cursor: text; transition: border-color .15s, box-shadow .15s; }
.ad-tags:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-tags.is-error { border-color: var(--err); }
.ad-tags.is-lleno { border-color: var(--warn); }
.ad-tag { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; padding: 4px 6px 4px 10px; border-radius: 8px; background: var(--accent-tint); border: 1px solid var(--accent-soft); color: var(--accent-ink); font-size: 13px; line-height: 1.3; }
.ad-tag__txt { overflow-wrap: anywhere; }
.ad-tag__x { width: 20px; height: 20px; border: 0; border-radius: 6px; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; opacity: .7; }
.ad-tag__x:hover { opacity: 1; background: var(--accent-soft); }
.ad-field .ad-tags input.ad-tags__nueva { flex: 1 1 140px; min-width: 120px; min-height: 30px; padding: 2px 4px; border: 0; box-shadow: none; background: transparent; font-size: 14px; }
.ad-field .ad-tags input.ad-tags__nueva:focus { box-shadow: none; }
/* Cinta: grosor (selector y vista previa) */
.ad-grosor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ad-grosor__op input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ad-grosor__op span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 74px; padding: 10px 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: border-color .15s, background .15s; }
.ad-grosor__op span:hover { border-color: #C3CCD8; }
.ad-grosor__op input:checked + span { border-color: var(--accent); background: var(--accent-tint); color: var(--accent-dark); box-shadow: 0 0 0 3px var(--accent-soft); }
.ad-grosor__op input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.ad-grosor__barra { display: block; width: 70%; border-radius: 3px; background: currentColor; opacity: .75; }
.ad-grosor__barra--fina { height: 5px; } .ad-grosor__barra--normal { height: 10px; } .ad-grosor__barra--gruesa { height: 16px; } .ad-grosor__barra--extra { height: 24px; }
.ad-cinta-vista.is-g-fina { padding-top: 3px; padding-bottom: 3px; }
.ad-cinta-vista.is-g-gruesa { padding-top: 16px; padding-bottom: 16px; }
.ad-cinta-vista.is-g-extra { padding-top: 22px; padding-bottom: 22px; }
.ad-cinta-vista.is-doble.is-g-fina .ad-cinta-vista__pista { padding-top: 5px; padding-bottom: 5px; }
.ad-cinta-vista.is-doble.is-g-gruesa .ad-cinta-vista__pista { padding-top: 18px; padding-bottom: 18px; }
.ad-cinta-vista.is-doble.is-g-extra .ad-cinta-vista__pista { padding-top: 26px; padding-bottom: 26px; }
.ad-cinta-vista.is-doble[class*="is-g-"] { padding-top: 0; padding-bottom: 0; }
@media (max-width: 560px) { .ad-grosor { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Cinta: estilo elegante (serif en cursiva, separador en el acento) */
.ad-cinta-vista.is-elegante { padding-top: 16px; padding-bottom: 16px; font-family: "Cormorant Garamond", "Cormorant", Garamond, "EB Garamond", Georgia, serif; font-style: italic; font-weight: 500; font-size: 22px; }
.ad-cinta-vista.is-elegante .ad-cinta-vista__pista { gap: 28px; }
.ad-cinta-vista.is-elegante .ad-cinta-vista__sep { font-style: normal; font-size: 13px; }
.ad-cinta-vista.is-elegante.is-g-fina { padding-top: 4px; padding-bottom: 4px; }
.ad-cinta-vista.is-elegante.is-g-gruesa { padding-top: 22px; padding-bottom: 22px; }
.ad-cinta-vista.is-elegante.is-g-extra { padding-top: 32px; padding-bottom: 32px; }
/* Cinta: el grosor también agranda la letra, en proporción a cada estilo (igual que el sitio) */
.ad-cinta-vista.is-g-fina .ad-cinta-vista__pista, .ad-cinta-vista.is-g-fina .ad-cinta-vista__etiqueta { zoom: .75; }
.ad-cinta-vista.is-g-gruesa .ad-cinta-vista__pista, .ad-cinta-vista.is-g-gruesa .ad-cinta-vista__etiqueta { zoom: 1.15; }
.ad-cinta-vista.is-g-extra .ad-cinta-vista__pista, .ad-cinta-vista.is-g-extra .ad-cinta-vista__etiqueta { zoom: 1.35; }
/* Cinta: tarjetas de estilos (las mismas de dif-admin, con los colores del panel) */
.cpl-estilos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 2px; }
.cpl-estilo { margin: 0; cursor: pointer; font-weight: normal; }
.ad-field .cpl-estilo input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; padding: 0; pointer-events: none; }
.cpl-estilo-caja { display: block; height: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 8px; background: var(--white); transition: border-color .15s, box-shadow .15s; }
.cpl-estilo:hover .cpl-estilo-caja { border-color: var(--line-2); }
.cpl-estilo input:checked + .cpl-estilo-caja { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cpl-estilo input:focus-visible + .cpl-estilo-caja { box-shadow: 0 0 0 4px var(--accent-soft); }
.cpl-estilo-dibujo { display: flex; align-items: center; gap: 6px; height: 34px; border-radius: 6px; overflow: hidden; padding: 0 8px; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; position: relative; }
.cpl-estilo-nombre { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 700; color: var(--ink); }
.cpl-estilo-desc { display: block; font-size: 11px; color: var(--muted); line-height: 1.35; }
.cpl-estilo-nuevo { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 1px 6px; border-radius: 99px; background: var(--accent-tint); color: var(--accent-dark); font-size: 9.5px; font-weight: 700; letter-spacing: .03em; }
/* Vista previa: con íconos (punto de acento) y cruzada (dos cintas en X) */
.ad-cinta-vista.is-iconos .ad-cinta-vista__sep { width: 7px; height: 7px; border-radius: 50%; background: var(--ca); font-size: 0; }
.ad-cinta-vista.is-cruzada { flex-direction: column; align-items: stretch; padding: 16px 0; background: transparent; overflow: hidden; }
.ad-cinta-vista.is-cruzada .ad-cinta-vista__pista { padding-top: 9px; padding-bottom: 9px; background: var(--cf); transform: rotate(-2.5deg); width: max-content; }
.ad-cinta-vista.is-cruzada .ad-cinta-vista__pista--2 { margin-top: -14px; background: var(--ca); color: var(--cf); transform: rotate(2.5deg); animation-direction: reverse; }
/* SEO popup v2: cabecera y pie fijos, cuerpo con scroll, menos ruido visual */
.ad-seo__caja { display: flex; flex-direction: column; gap: 0; max-width: 560px; padding: 0; overflow: hidden; }
.ad-seo__top { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 20px 56px 16px 22px; border-bottom: 1px solid var(--line); }
.ad-seo__top h2 { margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.ad-seo__top .ad-seo__bajada { margin-top: 3px; }
.ad-seo__top .ad-modal__x { top: 14px; right: 14px; }
.ad-seo__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-tint); color: var(--accent); }
.ad-seo__ico .ad-ico { width: 18px; height: 18px; }
.ad-seo__cuerpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; gap: 20px; padding: 18px 22px 20px; }
.ad-seo__caja .ad-seo__vista { gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 0; box-shadow: none; }
.ad-seo__caja .ad-seo__url { font-size: 12.5px; color: var(--muted); }
.ad-seo__caja .ad-seo__titulo { font-size: 17px; line-height: 1.3; color: var(--accent-ink); }
.ad-seo__caja .ad-seo__desc { font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ad-seo__campo { gap: 4px; }
.ad-seo__campo > .ad-seo__cab { font-size: 14px; font-weight: 600; color: var(--ink); }
.ad-seo__campo > .ad-seo__bajada { margin-bottom: 4px; }
.ad-seo__bajada { font-size: 12.5px; line-height: 1.4; color: var(--muted); font-weight: 400; }
.ad-seo__caja .ad-seo__chip { padding: 0; background: none !important; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.ad-seo__caja .ad-seo__chip[data-estado="ok"] { color: var(--ok); }
.ad-seo__caja .ad-seo__chip[data-estado="corto"] { color: var(--warn); }
.ad-seo__caja .ad-seo__chip[data-estado="largo"] { color: var(--err); }
.ad-seo__caja .ad-tags { min-height: 76px; max-height: 140px; }
.ad-seo__caja .ad-tags__limpiar { font-size: 12px; }
.ad-seo__pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); background: var(--white); }
@media (max-width: 560px) {
    .ad-seo__top { padding: 16px 50px 14px 16px; }
    .ad-seo__cuerpo { padding: 16px; }
    .ad-seo__pie { padding: 12px 16px; }
    .ad-seo__pie .ad-hint { display: none; }
    .ad-seo__pie .ad-btn { width: 100%; }
}

/* Bio: destino del botón y Completar con IA */
.ad-bio-enl__destino { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 8px; }
.ad-bio-enl__destino:has(> input:only-child) { grid-template-columns: minmax(0, 1fr); }
.ad-bio-enl__destino select, .ad-bio-enl__destino input { width: 100%; }
@media (max-width: 640px) { .ad-bio-enl__destino { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Entrar con Google (pantalla de ingreso) ---------- */
.ad-o { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.ad-o::before, .ad-o::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--line); }
.ad-google { display: flex; justify-content: center; min-height: 44px; }
.ad-google > div { width: 100%; max-width: 400px; }

/* Botón "¿Te ayudamos?" a Asesoría (vws_include/ayuda.tpl.html): arriba a la derecha,
   en la misma línea que "← Inicio" */
.ad-head { position: relative; }
.ad-ayuda { position: absolute; top: 0; right: 0; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 11px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: var(--shadow-xs); transition: background .15s, color .15s; }
.ad-ayuda .ad-ico { width: 17px; height: 17px; }
.ad-ayuda b { font-weight: 700; }
.ad-ayuda:hover { background: var(--accent-btn); border-color: var(--accent-btn); color: var(--on-accent); }
@media (max-width: 480px) { .ad-ayuda__pre { display: none; } .ad-ayuda { padding: 6px 12px 6px 10px; } }
