/* =========================================================
   MODO WEB — PÁGINAS INTERNAS (Plantillas y Editor)
   Usa la misma identidad que la home (styles.css):
   azul noche, luces difusas, vidrio esmerilado, Manrope.
   ========================================================= */

/*
  Colores de marca: toda la web los usa desde acá. El panel de
  administración («Apariencia») los cambia en vivo (js/theme.js), sin
  tocar este archivo. Los «-rgb» sirven para las transparencias.
*/
:root {
  --mw-night: #080e20;
  --mw-night-2: #0a1430;
  --mw-navy: #17264b;
  --mw-navy-rgb: 23 38 75;
  --mw-violet: #655de7;
  --mw-violet-rgb: 101 93 231;
  --mw-sky: #8cdeff;
  --mw-sky-rgb: 140 222 255;
  --mw-btn: var(--mw-navy);
  --mw-btn-text: #ffffff;
  --mw-btn-accent: var(--mw-violet);
  --mw-btn-accent-text: #ffffff;
  --mw-asis-1: #4355d0;
  --mw-asis-2: #7c3aed;
  --mw-muted: #68738a;
  --mw-line: #e3e7f1;
  --mw-soft: #f5f8ff;
}

/* Barra superior siempre en versión clara en el editor */
.topbar.topbar--solid {
  color: var(--mw-navy);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(225, 231, 242, 0.9);
  box-shadow: 0 12px 35px rgba(9, 22, 53, 0.12);
}

.topbar.topbar--solid .brand-mark { background: var(--mw-navy); color: #fff; }
.topbar.topbar--solid .brand-accent,
.topbar.topbar--solid .brand-mark span { color: var(--mw-violet); }
.topbar.topbar--solid .top-cta { color: var(--mw-btn-text); background: var(--mw-btn); }

.topbar nav a[aria-current="page"] { color: var(--mw-sky); }
.topbar.scrolled nav a[aria-current="page"],
.topbar.topbar--solid nav a[aria-current="page"] { color: var(--mw-violet); }


/* =========================================================
   ENCABEZADO OSCURO DE PÁGINA (como la home)
   ========================================================= */

.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--mw-night);
  color: #fff;
  padding: 150px max(5vw, 24px) 80px;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.page-hero::before {
  width: 70%;
  height: 140%;
  left: -30%;
  top: -40%;
  background: radial-gradient(ellipse, rgba(0, 174, 230, .7) 0%, rgba(0, 75, 185, .45) 40%, transparent 72%);
  filter: blur(60px);
  animation: moverLuzIzquierda 12s ease-in-out infinite alternate;
}

.page-hero::after {
  width: 60%;
  height: 120%;
  right: -25%;
  bottom: -70%;
  background: radial-gradient(ellipse, rgb(var(--mw-violet-rgb) / .55) 0%, rgba(0, 65, 167, .35) 45%, transparent 72%);
  filter: blur(70px);
  animation: moverLuzDerecha 16s ease-in-out infinite alternate;
}

.page-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
}

.page-hero__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgb(var(--mw-sky-rgb) / .065) 1px, transparent 1px), linear-gradient(90deg, rgb(var(--mw-sky-rgb) / .065) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 55%, #000);
  -webkit-mask-image: linear-gradient(90deg, #000, transparent 28%, transparent 55%, #000);
}

@media (max-width: 620px) {
  .page-hero__inner::before {
    background-size: 48px 48px;
    opacity: .65;
    mask-image: linear-gradient(to bottom, #000, transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  }
}

.page-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.2rem);
  letter-spacing: -.07em;
  line-height: 1.04;
  margin: 18px 0 0;
  font-weight: 800;
}

.page-hero h1 em { font-style: normal; color: var(--mw-sky); }

.page-hero p {
  max-width: 380px;
  color: #c8d3ee;
  line-height: 1.7;
  margin: 0;
}

.page-hero .eyebrow { color: var(--mw-sky); }


/* =========================================================
   CATÁLOGO DE PLANTILLAS
   ========================================================= */

.catalog {
  padding: 56px max(5vw, 24px) 110px;
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 106, 209, .1), transparent 35%),
    var(--mw-soft);
  min-height: 60vh;
}

.catalog__inner { max-width: 1200px; margin: 0 auto; }

.catalog__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 34px;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid #d9e0ef;
  background: #fff;
  color: #30415f;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  font-size: .85rem;
  transition: background .2s, color .2s, border-color .2s;
}

.chip:hover { border-color: var(--mw-violet); color: var(--mw-violet); }

.chip[aria-pressed="true"] {
  background: var(--mw-navy);
  border-color: var(--mw-navy);
  color: #fff;
}

.catalog__count { color: var(--mw-muted); font-size: .88rem; font-weight: 600; }

.catalog__notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-weight: 600;
  color: #30415f;
}

.catalog__notice button {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--mw-violet);
  font-weight: 800;
}

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
}

.tpl-card {
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}

.tpl-card:hover {
  transform: translateY(-6px);
  border-color: var(--mw-violet);
  box-shadow: 0 26px 55px rgba(29, 39, 85, .14);
}

.tpl-card__frame {
  position: relative;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  background: #eef1f8;
  border-bottom: 1px solid var(--mw-line);
}

.tpl-card__frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1280px;
  height: 840px;
  border: 0;
  transform-origin: 0 0;
  transform: scale(var(--scale, .28));
  pointer-events: none;
  background: #fff;
}

.tpl-card__chrome {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 14, 32, .55);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.tpl-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.tpl-card__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tpl-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.04em; }

.tpl-card__tag {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: #0757b9;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.tpl-card p { margin: 0; color: var(--mw-muted); line-height: 1.6; font-size: .93rem; }

.tpl-card__swatches { display: flex; gap: 6px; margin-top: 4px; }

.tpl-card__swatches span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d9e0ef;
}

.tpl-card__meta { color: #8a95ab; font-size: .8rem; font-weight: 600; }

.tpl-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }

.tpl-card__actions .button { flex: 1; }

.button.violet { background: var(--mw-btn-accent); color: var(--mw-btn-accent-text); }
.button.violet:hover { background: color-mix(in srgb, var(--mw-btn-accent) 86%, #000); }

.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--mw-muted);
  background: #fff;
  border-radius: 22px;
  border: 1px dashed #cfd6e6;
}


/* =========================================================
   EDITOR
   ========================================================= */

body.editor-page {
  background: #eef1f8;
  height: 100vh;
  overflow: hidden;
}

.editor-app {
  position: fixed;
  inset: 92px 16px 16px;
  display: grid;
  grid-template-columns: var(--panel-w, 390px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  grid-template-areas: "side main";
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(29, 39, 85, .1);
}

.ed-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-right: 1px solid #e8ebf3;
}

.ed-head {
  padding: 18px 20px 0;
  border-bottom: 1px solid #e8ebf3;
}

.ed-template {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--mw-muted);
  font-weight: 700;
}

.ed-template strong { color: var(--mw-navy); font-size: 1.05rem; letter-spacing: -.03em; }
.ed-template a { margin-left: auto; color: var(--mw-violet); font-weight: 800; font-size: .8rem; }

.ed-tabs { display: flex; gap: 4px; margin-top: 16px; }

.ed-tab {
  flex: 1;
  border: 0;
  background: none;
  padding: 12px 8px;
  font-weight: 800;
  font-size: .85rem;
  color: #8a95ab;
  border-bottom: 2px solid transparent;
}

.ed-tab[aria-selected="true"] { color: var(--mw-navy); border-color: var(--mw-violet); }

.ed-panel {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 30px;
  min-height: 0;
}

.ed-panel[hidden] { display: none; }

.ed-help {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--mw-muted);
  background: var(--mw-soft);
  border: 1px solid #e3e9f7;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
}

/* Secciones (acordeón) */
.ed-section {
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  margin-bottom: 10px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.ed-section[open] { border-color: #cfd5f6; box-shadow: 0 8px 22px rgba(29, 39, 85, .06); }

.ed-section > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 800;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.ed-section > summary::-webkit-details-marker { display: none; }

.ed-section > summary::after {
  content: "›";
  margin-left: auto;
  color: #9aa5bb;
  font-size: 1.2rem;
  transition: transform .2s;
}

.ed-section[open] > summary::after { transform: rotate(90deg); }

.ed-badge {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #0757b9;
  background: #e8f1ff;
  border-radius: 999px;
  padding: 3px 8px;
}

.ed-section__body { padding: 2px 16px 16px; }

/* Campos */
.ed-field { margin-bottom: 14px; }

.ed-field > label,
.ed-label {
  display: block;
  font-weight: 800;
  font-size: .78rem;
  color: #30415f;
  margin-bottom: 7px;
}

.ed-input {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9deea;
  border-radius: 9px;
  outline: none;
  color: var(--mw-navy);
  background: #fff;
  font: inherit;
  font-weight: 500;
  font-size: .9rem;
  resize: vertical;
}

.ed-input:focus { border-color: var(--mw-violet); box-shadow: 0 0 0 3px rgb(var(--mw-violet-rgb) / 0.13); }

.ed-input + .ed-input { margin-top: 6px; }

.ed-sub { font-size: .72rem; color: #8a95ab; font-weight: 600; margin-top: 5px; }
.ed-sub.ed-link-warn { color: #c2410c; }
.ed-sub.ed-link-warn[hidden] { display: none; }

.ed-field.flash { animation: flash 1.4s ease; border-radius: 10px; }

@keyframes flash {
  0%, 40% { box-shadow: 0 0 0 4px rgb(var(--mw-violet-rgb) / 0.27); background: rgb(var(--mw-violet-rgb) / 0.05); }
  100% { box-shadow: 0 0 0 0 transparent; background: transparent; }
}

/* Imagen */
.ed-image {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
}

.ed-image__thumb {
  width: 74px;
  height: 74px;
  border-radius: 12px;
  background: repeating-conic-gradient(#eef1f8 0 25%, #fff 0 50%) 0 0 / 14px 14px;
  border: 1px solid var(--mw-line);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #9aa5bb;
  font-size: .7rem;
  font-weight: 700;
}

.ed-image__thumb img { width: 100%; height: 100%; object-fit: cover; }

.ed-image__buttons { display: flex; flex-wrap: wrap; gap: 6px; }

.ed-mini {
  border: 1px solid #d9deea;
  background: #fff;
  color: #30415f;
  border-radius: 8px;
  padding: 7px 10px;
  font-weight: 700;
  font-size: .76rem;
}

.ed-mini:hover { border-color: var(--mw-violet); color: var(--mw-violet); }
.ed-mini:disabled { opacity: .4; pointer-events: none; }
.ed-mini--primary { background: var(--mw-btn); border-color: var(--mw-btn); color: var(--mw-btn-text); }
.ed-mini--primary:hover { color: var(--mw-btn-text); background: color-mix(in srgb, var(--mw-btn) 86%, #fff); }

/* Colecciones */
.ed-collection__items { display: grid; gap: 8px; }

.ed-item {
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  background: #fbfcff;
}

.ed-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 12px;
  font-weight: 700;
  font-size: .84rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ed-item > summary::-webkit-details-marker { display: none; }

.ed-item__num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #e9ecf8;
  color: #4b55a8;
  font-size: .7rem;
  font-weight: 800;
  flex: none;
}

.ed-item__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ed-item__tools { margin-left: auto; display: flex; gap: 4px; }

.ed-item__tools button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #6e7a91;
  font-size: .8rem;
}

.ed-item__tools button:hover { background: #e9ecf8; color: var(--mw-navy); }
.ed-item__tools button:disabled { opacity: .3; pointer-events: none; }

.ed-item__body { padding: 4px 12px 12px; }

.ed-add {
  width: 100%;
  margin-top: 10px;
  border: 1.5px dashed #c9d0e6;
  background: transparent;
  border-radius: 12px;
  padding: 11px;
  font-weight: 800;
  font-size: .84rem;
  color: #4b55a8;
}

.ed-add:hover { border-color: var(--mw-violet); background: rgb(var(--mw-violet-rgb) / 0.04); }

.ed-advanced {
  margin-top: 6px;
  border-top: 1px dashed var(--mw-line);
  padding-top: 10px;
}

.ed-advanced > summary { cursor: pointer; font-size: .78rem; font-weight: 800; color: #8a95ab; margin-bottom: 10px; }

/* Diseño */
.ed-color {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f6;
}

.ed-color label { font-weight: 800; font-size: .84rem; color: #30415f; }

.ed-color input[type="color"] {
  width: 44px;
  height: 36px;
  border: 1px solid #d9deea;
  border-radius: 9px;
  padding: 3px;
  background: #fff;
}

.ed-color .ed-input { width: 96px; font-family: ui-monospace, monospace; font-size: .82rem; }

.ed-palettes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 22px; }

.ed-palette {
  border: 1px solid var(--mw-line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: flex;
  justify-content: center;
  gap: 3px;
}

.ed-palette:hover { border-color: var(--mw-violet); }
.ed-palette span { width: 16px; height: 16px; border-radius: 50%; }

.ed-group-title {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .14em;
  color: #8a95ab;
  margin: 22px 0 6px;
}

.ed-group-title:first-child { margin-top: 0; }

/* Vista previa */
.ed-main { display: flex; flex-direction: column; min-width: 0; background: #f4f6fb; }

.ed-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8ebf3;
  background: #fff;
  flex-wrap: wrap;
}

.ed-pages { display: flex; gap: 4px; flex-wrap: wrap; }

.ed-page {
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: .82rem;
  color: #6e7a91;
}

.ed-page[aria-pressed="true"] { background: #eef0fd; color: #3d44a8; }

.ed-toolbar .view-toggle { margin-left: auto; }

.ed-save {
  font-size: .76rem;
  font-weight: 700;
  color: #8a95ab;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ed-save .live-dot { width: 7px; height: 7px; }

.ed-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  padding: 0 0 64px;
  overflow-x: auto;
  overflow-y: hidden;
}

/* El lienzo mide lo que se ve; el iframe tiene el ancho real y se escala. */
.ed-canvas {
  position: relative;
  margin: 0 auto;
}

.ed-stage iframe {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  border: 0;
  background: #fff;
}

.ed-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .7);
  font-weight: 800;
  color: #4b55a8;
}

.ed-toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: var(--mw-navy);
  color: #fff;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 14px 30px rgba(9, 22, 53, .25);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
}

.ed-toast.show { opacity: 1; transform: translate(-50%, 0); }



/* =========================================================
   HOME: VITRINA DEL EDITOR
   ========================================================= */

.showcase-list {
  padding: 28px 26px;
  border-right: 1px solid #e8ebf3;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.showcase-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }

.showcase-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  font-size: .9rem;
  color: #30415f;
  line-height: 1.5;
}

.showcase-list li strong { display: block; color: var(--mw-navy); }

.showcase-list li > span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eef0fd;
  font-size: 1rem;
}

.showcase-list .button { margin-top: auto; }

.showcase-tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.showcase-tabs button {
  border: 1px solid #dce1ec;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: .76rem;
  color: #4a5670;
}

.showcase-tabs button[aria-pressed="true"] { background: var(--mw-navy); border-color: var(--mw-navy); color: #fff; }

@media (max-width: 900px) {
  .showcase-list { border-right: 0; border-bottom: 1px solid #e8ebf3; }
}

.catalog__notice[hidden] { display: none; }

.ed-section > summary { flex-wrap: wrap; }
.ed-badge { white-space: nowrap; }

.catalog__notice button { white-space: nowrap; }


/* =========================================================
   EDITOR: secciones, recorrido guiado, deshacer/rehacer
   ========================================================= */

.ed-section__name { min-width: 0; }

.ed-section__tools { margin-left: auto; }
.ed-section > summary:has(.ed-section__tools)::after { margin-left: 4px; }

.ed-section.is-hidden > summary .ed-section__name { opacity: .5; text-decoration: line-through; }

.ed-badge--muted { color: #6e7a91; background: #eef0f5; }

.ed-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid #e8ebf3;
  background: #fbfcff;
}

.ed-stepper span { font-size: .76rem; font-weight: 700; color: #8a95ab; }

.ed-history { display: flex; gap: 4px; }

.ed-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: min(640px, calc(100vh - 64px));
  border: 1px solid var(--mw-line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 70px rgba(9, 22, 53, .3);
  color: var(--mw-navy);
}

.ed-dialog::backdrop { background: rgba(8, 14, 32, .55); backdrop-filter: blur(4px); }

.ed-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ed-dialog__head h2 { margin: 0; font-size: 1.3rem; letter-spacing: -.04em; }

.ed-dialog__list { display: grid; gap: 8px; overflow-y: auto; max-height: 420px; }

.ed-pick {
  text-align: left;
  border: 1px solid var(--mw-line);
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  color: inherit;
}

.ed-pick:hover { border-color: var(--mw-violet); background: rgb(var(--mw-violet-rgb) / 0.04); }
.ed-pick span { font-size: .78rem; color: #8a95ab; font-weight: 600; }


/* =========================================================
   BOTÓN DE TEMA Y MENÚ PARA CELULAR
   ========================================================= */

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(210, 232, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: inherit;
  font-size: 1rem;
  transition: background .2s, transform .2s;
}

.theme-toggle:hover,
.menu-toggle:hover { transform: scale(1.06); background: rgba(255, 255, 255, .2); }

.topbar .theme-toggle { margin-left: auto; }
.topbar .theme-toggle ~ .top-cta { margin-left: 0; }

.topbar.scrolled .theme-toggle,
.topbar.scrolled .menu-toggle,
.topbar.topbar--solid .theme-toggle,
.topbar.topbar--solid .menu-toggle {
  border-color: #dce1ec;
  background: #f3f5fb;
}

.menu-toggle { display: none; }

@media (max-width: 620px) {
  .menu-toggle { display: grid; }

  .topbar .top-cta { padding: 10px 12px; font-size: .8rem; white-space: nowrap; }
  .topbar .top-cta span { display: none; }

  .topbar.menu-open nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    padding: 10px;
    border-radius: 20px;
    background: rgba(8, 14, 32, .96);
    border: 1px solid rgba(210, 232, 255, .18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    color: #fff;
    font-size: 1rem;
  }

  .topbar.menu-open nav a { padding: 12px 14px; border-radius: 12px; }
  .topbar.menu-open nav a:hover { background: rgba(255, 255, 255, .08); }
}


/* =========================================================
   MODO OSCURO
   Las secciones que ya son oscuras (portada, cómo funciona,
   planes, pie) quedan igual; se oscurecen las claras.
   ========================================================= */

html[data-theme="dark"] {
  color-scheme: dark;
  --mw-line: #243256;
  --mw-soft: #0d1530;
  --mw-muted: #9aa6c4;
}

html[data-theme="dark"] body { background: var(--mw-night); color: #e6ebfa; }
html[data-theme="dark"] :root,
html[data-theme="dark"] { background: var(--mw-night); color: #e6ebfa; }

/* Barra superior clara → vidrio oscuro */
html[data-theme="dark"] .topbar.scrolled,
html[data-theme="dark"] .topbar.topbar--solid {
  color: #e6ebfa;
  background: rgba(13, 20, 42, .92);
  border-color: rgba(120, 150, 220, .2);
  box-shadow: 0 12px 35px rgba(0, 0, 0, .35);
}

html[data-theme="dark"] .topbar.scrolled .brand-mark,
html[data-theme="dark"] .topbar.topbar--solid .brand-mark { background: #2a3a70; }
html[data-theme="dark"] .topbar.scrolled .brand-accent,
html[data-theme="dark"] .topbar.scrolled .brand-mark span,
html[data-theme="dark"] .topbar.topbar--solid .brand-accent,
html[data-theme="dark"] .topbar.topbar--solid .brand-mark span { color: var(--mw-sky); }
html[data-theme="dark"] .topbar.scrolled .top-cta,
html[data-theme="dark"] .topbar.topbar--solid .top-cta { background: #fff; color: #15305d; }
html[data-theme="dark"] .topbar.scrolled .theme-toggle,
html[data-theme="dark"] .topbar.scrolled .menu-toggle,
html[data-theme="dark"] .topbar.topbar--solid .theme-toggle,
html[data-theme="dark"] .topbar.topbar--solid .menu-toggle { background: #18224a; border-color: #2b3a6b; }

/* Home: sección de públicos */
html[data-theme="dark"] .audience-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 106, 209, .25), transparent 40%),
    #0a1124;
}

html[data-theme="dark"] .section-intro h2,
html[data-theme="dark"] .audience-card h3 { color: #f1f4ff; }
html[data-theme="dark"] .section-intro p,
html[data-theme="dark"] .audience-heading > span { color: #9aa6c4; }
html[data-theme="dark"] .audience-section .section-intro h2 em,
html[data-theme="dark"] .audience-section .eyebrow { color: var(--mw-sky); }

html[data-theme="dark"] .audience-card {
  background: rgba(20, 30, 62, .75);
  border-color: rgba(120, 150, 220, .2);
}

html[data-theme="dark"] .audience-arrows button {
  background: rgba(20, 30, 62, .8);
  color: #cfe0ff;
  border-color: rgba(120, 150, 220, .3);
}

/* Home: vitrina del editor */
html[data-theme="dark"] .editor-section { background: #0a1124; }
html[data-theme="dark"] .editor-section .eyebrow { color: #a7a1ff; }
html[data-theme="dark"] .section-intro h2 em { color: #a7a1ff; }

html[data-theme="dark"] .studio,
html[data-theme="dark"] .editor-app {
  background: #0f1733;
  border-color: #223058;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

html[data-theme="dark"] .studio-toolbar,
html[data-theme="dark"] .showcase-list,
html[data-theme="dark"] .ed-side,
html[data-theme="dark"] .ed-head,
html[data-theme="dark"] .ed-toolbar,
html[data-theme="dark"] .ed-stepper { border-color: #223058; }

html[data-theme="dark"] .showcase-list li { color: #b9c3dd; }
html[data-theme="dark"] .showcase-list li strong,
html[data-theme="dark"] .studio-title strong { color: #f1f4ff; }
html[data-theme="dark"] .showcase-list li > span:first-child { background: #1b2650; }

html[data-theme="dark"] .preview-column,
html[data-theme="dark"] .ed-main { background: #0b1229; }

html[data-theme="dark"] .view-toggle { background: #18224a; }
html[data-theme="dark"] .view-toggle button { color: #9aa6c4; }
html[data-theme="dark"] .view-toggle button.active { background: #2a3a70; color: #fff; box-shadow: none; }

html[data-theme="dark"] .showcase-tabs button,
html[data-theme="dark"] .button.ghost,
html[data-theme="dark"] .ghost {
  background: #141d3d;
  border-color: #2b3a6b;
  color: #dbe3fb;
}

html[data-theme="dark"] .showcase-tabs button[aria-pressed="true"],
html[data-theme="dark"] .button.dark,
html[data-theme="dark"] .dark { background: #f1f4ff; border-color: #f1f4ff; color: var(--mw-navy); }

/* Catálogo */
html[data-theme="dark"] .catalog {
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 106, 209, .22), transparent 40%),
    #0a1124;
}

html[data-theme="dark"] .chip { background: #141d3d; border-color: #2b3a6b; color: #dbe3fb; }
html[data-theme="dark"] .chip[aria-pressed="true"] { background: #f1f4ff; border-color: #f1f4ff; color: var(--mw-navy); }

html[data-theme="dark"] .catalog__notice,
html[data-theme="dark"] .tpl-card,
html[data-theme="dark"] .empty {
  background: #0f1733;
  border-color: #223058;
  color: #dbe3fb;
}

html[data-theme="dark"] .tpl-card h3 { color: #f1f4ff; }
html[data-theme="dark"] .tpl-card__frame { background: #141d3d; border-color: #223058; }
html[data-theme="dark"] .tpl-card__tag { background: #18306b; color: #9cc6ff; }
html[data-theme="dark"] .tpl-card:hover { box-shadow: 0 26px 55px rgba(0, 0, 0, .45); }

/* Editor */
html[data-theme="dark"] body.editor-page { background: var(--mw-night); }

html[data-theme="dark"] .ed-template strong,
html[data-theme="dark"] .ed-section > summary,
html[data-theme="dark"] .ed-dialog__head h2,
html[data-theme="dark"] .ed-tab[aria-selected="true"] { color: #f1f4ff; }

html[data-theme="dark"] .ed-field > label,
html[data-theme="dark"] .ed-label,
html[data-theme="dark"] .ed-color label { color: #c6cfe6; }

html[data-theme="dark"] .ed-help { background: #121b3a; border-color: #223058; color: #a9b4d0; }

html[data-theme="dark"] .ed-section,
html[data-theme="dark"] .ed-pick,
html[data-theme="dark"] .ed-palette,
html[data-theme="dark"] .ed-dialog { background: #121b3a; border-color: #223058; color: #e6ebfa; }

html[data-theme="dark"] .ed-section[open] { border-color: #3b4794; box-shadow: none; }

html[data-theme="dark"] .ed-item { background: #0f1733; border-color: #223058; }
html[data-theme="dark"] .ed-item__num { background: #222e5e; color: #b8c2ff; }
html[data-theme="dark"] .ed-item__tools button { color: #9aa6c4; }
html[data-theme="dark"] .ed-item__tools button:hover { background: #222e5e; color: #fff; }

html[data-theme="dark"] .ed-input {
  background: #0b1229;
  border-color: #2b3a6b;
  color: #eef2ff;
}

html[data-theme="dark"] .ed-mini { background: #141d3d; border-color: #2b3a6b; color: #dbe3fb; }
html[data-theme="dark"] .ed-mini--primary { background: #f1f4ff; border-color: #f1f4ff; color: var(--mw-navy); }

html[data-theme="dark"] .ed-add { border-color: #34437a; color: #b8c2ff; }
html[data-theme="dark"] .ed-color { border-color: #1c2750; }
html[data-theme="dark"] .ed-color input[type="color"] { background: #0b1229; border-color: #2b3a6b; }

html[data-theme="dark"] .ed-page { color: #9aa6c4; }
html[data-theme="dark"] .ed-page[aria-pressed="true"] { background: #222e5e; color: #fff; }

html[data-theme="dark"] .ed-stepper { background: #0f1733; }
html[data-theme="dark"] .ed-badge { background: #18306b; color: #9cc6ff; }
html[data-theme="dark"] .ed-badge--muted { background: #222e5e; color: #9aa6c4; }
html[data-theme="dark"] .ed-image__thumb { border-color: #223058; }
html[data-theme="dark"] .ed-toast { background: #f1f4ff; color: var(--mw-navy); }
html[data-theme="dark"] .ed-toolbar,
html[data-theme="dark"] .preview-toolbar { background: #0f1733; }
html[data-theme="dark"] .ed-mini:disabled { opacity: .35; }


/* =========================================================
   VOLVER (páginas internas)
   ========================================================= */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(210, 232, 255, .25);
  background: rgba(255, 255, 255, .08);
  color: #dbe7ff;
  font-weight: 700;
  font-size: .8rem;
  transition: background .2s;
}

.back-link:hover { background: rgba(255, 255, 255, .16); }
.page-hero .back-link + .eyebrow { display: block; }
.page-hero .back-link + h1 { margin-top: 0; }


/* =========================================================
   MI CUENTA
   ========================================================= */

.account .catalog__inner { display: grid; gap: 56px; }

.account-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--mw-line);
  border-radius: 22px;
  padding: 26px;
}

.account-auth { max-width: 460px; }
.account-auth .ed-tabs { margin: -8px 0 18px; border-bottom: 1px solid var(--mw-line); }

.account-form { display: grid; gap: 4px; }
.account-form .ed-field { display: block; }
.account-form .button { margin-top: 6px; }

.account-error { color: #d2334a; font-weight: 700; font-size: .86rem; min-height: 1.2em; margin: 4px 0; }

.account-grid { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 22px; align-items: start; }

.account-card h2 { margin: 10px 0 6px; font-size: 1.9rem; letter-spacing: -.05em; }

.account-limits { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 8px; font-size: .9rem; color: #4a5670; }
.account-limits li::before { content: "✓"; color: var(--mw-violet); font-weight: 800; margin-right: 8px; }

.account-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.account-sites__head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }

.account-sites__list { display: grid; gap: 10px; }

.account-site {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--mw-line);
  border-radius: 14px;
  background: #fbfcff;
}

.account-site > div:first-child { display: grid; gap: 2px; min-width: 0; }
.account-site a { color: #4b55c8; font-weight: 700; font-size: .88rem; overflow-wrap: anywhere; }
.account-site__actions { display: flex; gap: 6px; }

.account-plans .section-intro h2 { margin-top: 10px; }

.account-plans__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.plan-card { display: flex; flex-direction: column; gap: 6px; }
.plan-card h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
.plan-card__price { margin: 0; font-weight: 800; font-size: 1.2rem; color: var(--mw-violet); }
.plan-card ul { list-style: none; padding: 0; margin: 12px 0 20px; display: grid; gap: 8px; font-size: .9rem; color: #4a5670; }
.plan-card li::before { content: "✓"; color: var(--mw-violet); font-weight: 800; margin-right: 8px; }
.plan-card .button { margin-top: auto; }
.plan-card .button:disabled { opacity: .55; cursor: default; }
.plan-card--featured { border-color: var(--mw-violet); box-shadow: 0 20px 45px rgb(var(--mw-violet-rgb) / .15); }
.plan-card--highlight { outline: 3px solid var(--mw-sky); outline-offset: 3px; }
.plan-card .plan__insignia { position: absolute; top: -12px; right: 18px; }

/* Testimonios, sugerencias, moderación y administradores (js/aportes.js) */
.account-wide { grid-column: 1 / -1; }
.account-wide .account-form { max-width: 640px; margin-top: 14px; }
.account-wide .account-sites__list { margin-top: 18px; }
.aporte-tipo { display: grid; gap: 8px; margin: 0 0 10px; padding: 0; border: 0; }
.aporte-tipo label,
.aporte-check { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; line-height: 1.45; cursor: pointer; }
.aporte-tipo input,
.aporte-check input { margin-top: 3px; accent-color: var(--mw-violet); }
.aporte-check { margin: 6px 0 4px; }
.aporte-texto { color: inherit; font-size: .92rem; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.aporte-ok { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; color: #1f7a4c; background: #e8f7ee; font-weight: 700; }
html[data-theme="dark"] .aporte-ok { color: #7be0a8; background: rgba(123, 224, 168, .1); }
.account-site .account-site__actions { flex-wrap: wrap; }
.account-olvide { margin: 4px 0 8px; padding: 12px 14px; border: 1px dashed var(--mw-line); border-radius: 12px; }
#olvideBtn { justify-self: start; margin: 2px 0 6px; }

@media (max-width: 820px) {
  .account-grid { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .account-card { background: #0f1733; border-color: #223058; }
html[data-theme="dark"] .account-site { background: #121b3a; border-color: #223058; }
html[data-theme="dark"] .account-site a { color: #a7b1ff; }
html[data-theme="dark"] .account-limits,
html[data-theme="dark"] .plan-card ul { color: #b9c3dd; }
html[data-theme="dark"] .account-card h2,
html[data-theme="dark"] .plan-card h3 { color: #f1f4ff; }


/* =========================================================
   EDITOR: PUBLICAR
   ========================================================= */

.ed-publish-form { display: grid; gap: 6px; }

.ed-address {
  display: flex;
  align-items: center;
  border: 1px solid #d9deea;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
}

.ed-address span { padding: 0 10px; color: #8a95ab; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ed-address .ed-input { border: 0; border-radius: 0; box-shadow: none !important; }

.ed-check { font-size: .8rem; font-weight: 700; min-height: 1.3em; }
.ed-check.ok { color: #1f9d5c; }
.ed-check.bad { color: #d2334a; }

.ed-result {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #eefbf3;
  border: 1px solid #bfe9d0;
}

.ed-result a { font-weight: 800; color: #1f7a4c; overflow-wrap: anywhere; }

.topbar .publish-cta { margin-left: 0; background: var(--mw-btn-accent) !important; color: var(--mw-btn-accent-text) !important; }

html[data-theme="dark"] .ed-address { background: #0b1229; border-color: #2b3a6b; }
html[data-theme="dark"] .ed-result { background: #0f2a1d; border-color: #1f5a3a; }
html[data-theme="dark"] .ed-result a { color: #7be0a8; }
.account-site__actions a.ed-mini--primary { color: var(--mw-btn-text); }
html[data-theme="dark"] .account-site__actions a.ed-mini--primary { color: var(--mw-navy); }


/* =========================================================
   SUBIR PLANTILLA
   ========================================================= */

.importer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.importer-side { display: grid; gap: 16px; }
.importer-login { max-width: 560px; }
.importer-login h2 { margin-top: 0; }

.drop-zone {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  padding: 56px 24px;
  border: 2px dashed #c5cdf0;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8f9ff, #fff);
  transition: border-color .2s, background .2s, transform .2s;
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone:focus-visible,
.drop-zone.is-over { border-color: var(--mw-violet); background: #f1f0ff; outline: none; }
.drop-zone.is-over { transform: scale(1.01); }

.drop-zone__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--mw-violet);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 14px 30px rgb(var(--mw-violet-rgb) / .35);
}

.drop-zone strong { font-size: 1.25rem; letter-spacing: -.03em; }
.drop-zone > span:not(.drop-zone__icon) { color: var(--mw-muted); font-size: .9rem; }
.drop-zone .account-actions { margin-top: 8px; justify-content: center; }
.drop-zone label.button { cursor: pointer; }

.importer-files { display: grid; gap: 14px; }
.importer-files__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.importer-files__head h2 { margin: 6px 0 2px; font-size: 1.6rem; letter-spacing: -.04em; }

.importer-warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .84rem; color: #6b5a14; }
.importer-warnings li { background: #fff8e1; border: 1px solid #f3e2a6; border-radius: 10px; padding: 8px 12px; }
.importer-warnings:empty { display: none; }

.importer-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.importer-steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--mw-line); border-radius: 14px; opacity: .55; }
.importer-steps li > span { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #eef0fd; color: #4b55a8; font-weight: 800; }
.importer-steps li div { display: grid; }
.importer-steps li small { color: var(--mw-muted); }
.importer-steps li[data-state] { opacity: 1; }
.importer-steps li[data-state="active"] { border-color: var(--mw-violet); }
.importer-steps li[data-state="active"] > span { animation: pulso 1.2s ease-in-out infinite; background: var(--mw-violet); color: #fff; }
.importer-steps li[data-state="done"] > span { background: #1f9d5c; color: #fff; }
.importer-steps li[data-state="done"] > span::after { content: ""; }
.importer-steps li[data-state="error"] { border-color: #d2334a; }
.importer-steps li[data-state="error"] > span { background: #d2334a; color: #fff; }
@keyframes pulso { 50% { transform: scale(1.12); } }

.importer-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.importer-summary div { display: grid; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .7); }
.importer-summary strong { font-size: 1.6rem; letter-spacing: -.04em; color: #1f7a4c; }
.importer-summary span { font-size: .8rem; color: #4a5670; font-weight: 600; }

/* Tarjeta "Subí tu plantilla" en el catálogo */
.tpl-card--upload {
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  padding: 30px 26px;
  border: 2px dashed #c5cdf0;
  background: linear-gradient(160deg, #f6f5ff, #fff);
  min-height: 300px;
}

.tpl-card--upload h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.04em; }
.tpl-card--upload p { margin: 0 0 6px; color: var(--mw-muted); line-height: 1.6; }
.tpl-card__plus { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--mw-violet); color: #fff; font-size: 1.5rem; }

@media (max-width: 900px) {
  .importer-grid { grid-template-columns: 1fr; }
}

html[data-theme="dark"] .drop-zone { background: linear-gradient(180deg, #121b3a, #0f1733); border-color: #34437a; }
html[data-theme="dark"] .drop-zone.is-over,
html[data-theme="dark"] .drop-zone:hover { background: #1a2350; border-color: #8c86ff; }
html[data-theme="dark"] .importer-steps li { border-color: #223058; }
html[data-theme="dark"] .importer-warnings li { background: #2b2610; border-color: #5a4e1c; color: #f0dd9a; }
html[data-theme="dark"] .importer-summary div { background: rgba(0, 0, 0, .2); }
html[data-theme="dark"] .importer-summary span { color: #b9c3dd; }
html[data-theme="dark"] .importer-summary strong { color: #7be0a8; }
html[data-theme="dark"] .tpl-card--upload { background: linear-gradient(160deg, #161d44, #0f1733); border-color: #34437a; }

/* Acciones complementarias del catálogo (debajo de Rubro, separadas de los diseños) */
.catalog-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}

.catalog-action {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
  padding: 14px 18px;
  border: 1px dashed #c5cdf0;
  border-radius: 14px;
  background: linear-gradient(160deg, #f6f5ff, #fff);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.catalog-action:hover { border-color: var(--mw-violet); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 41, 85, .08); }
.catalog-action:focus-visible { outline: 3px solid #6fd9ff; outline-offset: 3px; }

.catalog-action__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #00aee6, var(--mw-violet));
  font-size: 1.15rem;
}

.catalog-action__text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.catalog-action__text strong { font-size: 1rem; letter-spacing: -.02em; }
.catalog-action__text span { color: var(--mw-muted); font-size: .86rem; line-height: 1.45; }
.catalog-action__go { flex: none; color: var(--mw-violet); font-weight: 800; transition: transform .2s ease; }
.catalog-action:hover .catalog-action__go { transform: translateX(3px); }

html[data-theme="dark"] .catalog-action { background: linear-gradient(160deg, #161d44, #0f1733); border-color: #34437a; }
html[data-theme="dark"] .catalog-action__text span { color: #9aa6c4; }
html[data-theme="dark"] .catalog-action__go { color: var(--mw-sky); }

@media (max-width: 720px) {
  .catalog-actions { grid-template-columns: 1fr; }
}

/* Lo oculto siempre queda oculto (aunque la clase tenga display). */
[hidden] { display: none !important; }


/* =========================================================
   BOTÓN «INICIO» (siempre visible en la barra)
   ========================================================= */

.home-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(210, 232, 255, .3);
  background: rgba(255, 255, 255, .12);
  color: inherit;
  font-size: .84rem;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s, transform .2s;
}

.home-btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .22); }
button.home-btn { font-family: inherit; cursor: pointer; }
.home-btn:focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }
.home-btn svg { width: 16px; height: 16px; }

.topbar.scrolled .home-btn,
.topbar.topbar--solid .home-btn { border-color: #dce1ec; background: #f3f5fb; color: var(--mw-navy); }

.topbar.scrolled .home-btn:hover,
.topbar.topbar--solid .home-btn:hover { border-color: var(--mw-violet); color: var(--mw-violet); }

/* El botón queda fuera del menú ☰: se ve también en el celular. */
@media (max-width: 1100px) {
  .topbar { gap: 18px; }
}

@media (max-width: 620px) {
  .home-btn { padding: 8px 11px; }
  .home-btn span { display: none; }
}

html[data-theme="dark"] .topbar.scrolled .home-btn,
html[data-theme="dark"] .topbar.topbar--solid .home-btn { background: #18224a; border-color: #2b3a6b; color: #f1f4ff; }


/* =========================================================
   EDITOR: MODOS NORMAL / DISEÑADOR
   ========================================================= */

body[data-mode="designer"] .only-normal,
body:not([data-mode="designer"]) .only-designer { display: none !important; }

.ed-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #f1f3fa;
}

.ed-mode button {
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  color: #6e7a91;
  transition: background .2s, color .2s, box-shadow .2s;
}

.ed-mode button strong { font-size: .86rem; color: inherit; }
.ed-mode button span { font-size: .7rem; font-weight: 600; opacity: .85; }
.ed-mode button[aria-pressed="true"] { background: #fff; color: var(--mw-navy); box-shadow: 0 4px 12px rgba(29, 39, 85, .1); }
body[data-mode="designer"] .ed-mode button[aria-pressed="true"] { color: var(--mw-violet); }

.ed-dialog--modes { max-width: 620px; }

.ed-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }

.ed-modecard {
  display: grid;
  gap: 6px;
  align-content: start;
  text-align: left;
  padding: 18px;
  border: 1.5px solid #e1e5f0;
  border-radius: 16px;
  background: #fff;
  color: #4a5670;
  font-size: .86rem;
  line-height: 1.45;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.ed-modecard:hover { border-color: var(--mw-violet); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 39, 85, .1); }
.ed-modecard strong { font-size: 1.1rem; color: var(--mw-navy); }
.ed-modecard__icon { font-size: 1.6rem; }

@media (max-width: 560px) {
  .ed-modes { grid-template-columns: 1fr; }
}

/* Diseñador: buscador y campos avanzados */
.ed-finder { display: grid; gap: 8px; margin-bottom: 14px; }
.ed-finder__tools { display: flex; gap: 6px; }
.ed-field.is-filtered { display: none; }
.ed-field.is-advanced > label::after,
.ed-field.is-advanced > .ed-label::after {
  content: "avanzado";
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eef0f5;
  color: #6e7a91;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ed-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .66rem;
  font-weight: 600;
  color: #8a95ab;
  background: #f3f5fb;
  border-radius: 6px;
  padding: 2px 6px;
}

.ed-code-input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; line-height: 1.5; tab-size: 2; }

/* Normal: estilos listos */
.ed-looks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }

.ed-look {
  display: grid;
  gap: 2px;
  text-align: left;
  padding: 12px;
  border: 1.5px solid #e1e5f0;
  border-radius: 14px;
  background: #fff;
  color: #6e7a91;
  font-size: .74rem;
  font-weight: 600;
  transition: border-color .2s, transform .2s;
}

.ed-look:hover { border-color: var(--mw-violet); transform: translateY(-1px); }
.ed-look strong { font-size: 1.15rem; color: var(--mw-navy); line-height: 1.2; }
.ed-look[aria-pressed="true"] { border-color: var(--mw-violet); box-shadow: 0 0 0 3px rgb(var(--mw-violet-rgb) / 0.13); }
.ed-look__colors { display: flex; gap: 4px; margin-bottom: 6px; }
.ed-look__colors i, .ed-chip i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }

.ed-surprise {
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--mw-violet), #3d8bfd);
  color: #fff;
  font-weight: 800;
  font-size: .9rem;
  transition: transform .2s, box-shadow .2s;
}

.ed-surprise span { font-weight: 600; opacity: .8; font-size: .76rem; margin-left: 4px; }
.ed-surprise:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(var(--mw-violet-rgb) / 0.27); }

.ed-pairs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

.ed-pair {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1.5px solid #e1e5f0;
  border-radius: 12px;
  background: #fff;
  color: #4a5670;
  font-size: .74rem;
}

.ed-pair strong { font-size: 1.4rem; color: var(--mw-navy); line-height: 1.1; }
.ed-pair:hover { border-color: var(--mw-violet); }
.ed-pair[aria-pressed="true"] { border-color: var(--mw-violet); box-shadow: 0 0 0 3px rgb(var(--mw-violet-rgb) / 0.13); }

/* Diseñador: chips, botones segmentados, deslizadores */
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.ed-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  border: 1px solid #dce1ec;
  border-radius: 999px;
  background: #fff;
  font-size: .76rem;
  font-weight: 700;
  color: #4a5670;
}

.ed-chip i { width: 10px; height: 10px; }
.ed-chip:hover { border-color: var(--mw-violet); }
.ed-chip[aria-pressed="true"] { border-color: var(--mw-violet); color: var(--mw-violet); }

.ed-seg { display: flex; flex-wrap: wrap; gap: 4px; }

.ed-seg button {
  padding: 6px 10px;
  border: 1px solid #dce1ec;
  border-radius: 8px;
  background: #fff;
  font-size: .76rem;
  font-weight: 700;
  color: #4a5670;
}

.ed-seg button:hover { border-color: var(--mw-violet); }
.ed-seg button[aria-pressed="true"] { background: var(--mw-navy); border-color: var(--mw-navy); color: #fff; }

.ed-range label { display: flex; justify-content: space-between; }
.ed-range output { font-weight: 700; color: var(--mw-violet); font-size: .76rem; }
.ed-range__row { display: flex; align-items: center; gap: 8px; }
.ed-range__row input { flex: 1; accent-color: var(--mw-violet); }

.ed-font { display: grid; grid-template-columns: 1fr 110px; gap: 6px; }
.ed-font .ed-input + .ed-input { margin-top: 0; }


/* =========================================================
   EDITOR: PANEL MOVIBLE (izquierda, derecha, abajo, flotante)
   ========================================================= */

.ed-side { grid-area: side; position: relative; min-width: 0; background: #fff; }
.ed-main { grid-area: main; position: relative; }

.editor-app { transition: grid-template-columns .28s ease, grid-template-rows .28s ease; }
.editor-app.is-dragging { transition: none; user-select: none; }
.editor-app.is-dragging iframe { pointer-events: none; }

.editor-app[data-dock="right"] {
  grid-template-columns: minmax(0, 1fr) var(--panel-w, 390px);
  grid-template-areas: "main side";
}

.editor-app[data-dock="right"] .ed-side { border-right: 0; border-left: 1px solid #e8ebf3; }

/* Hoja del celular (sube desde abajo). En escritorio ya no hay «Panel abajo». */
.editor-app[data-dock="sheet"] .ed-side { border-right: 0; border-top: 1px solid #e8ebf3; }

.editor-app[data-dock="float"] {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "main";
}

.editor-app[data-dock="float"] .ed-side {
  position: absolute;
  z-index: 30;
  left: var(--float-x, 24px);
  top: var(--float-y, 24px);
  width: var(--panel-w, 390px);
  height: var(--float-h, 560px);
  max-height: calc(100% - var(--float-y, 24px));
  border: 1px solid #dfe3ed;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(16, 26, 60, .25);
}

/* Panel cerrado: se desliza fuera de la vista */
.editor-app[data-panel="closed"] { grid-template-columns: 0 minmax(0, 1fr); }
.editor-app[data-panel="closed"][data-dock="right"] { grid-template-columns: minmax(0, 1fr) 0; }
.editor-app[data-panel="closed"][data-dock="float"] { grid-template-columns: minmax(0, 1fr); }

.editor-app[data-panel="closed"] .ed-side { visibility: hidden; overflow: hidden; border: 0; transition: visibility 0s .28s; }
.editor-app[data-panel="closed"][data-dock="float"] .ed-side { display: none; }

/* Barra del panel: se arrastra para moverlo */
.ed-panelbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px 7px 14px;
  border-bottom: 1px solid #e8ebf3;
  background: #fbfcff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.editor-app.is-dragging .ed-panelbar { cursor: grabbing; }
.ed-grip { color: #a3acc0; font-size: 1rem; line-height: 1; }
.ed-panelbar__title { font-size: .74rem; font-weight: 800; color: #8a95ab; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ed-dock { display: flex; gap: 2px; margin-left: auto; }

.ed-dock button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a95ab;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
}

.ed-dock button:hover { background: #eef0fd; color: var(--mw-violet); }
.ed-dock button[aria-pressed="true"] { background: #eef0fd; color: var(--mw-violet); }
.ed-dock svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.ed-dock svg .fill { fill: currentColor; stroke: none; opacity: .55; }

/* Borde para agrandar o achicar */
.ed-resizer {
  position: absolute;
  z-index: 5;
  top: 0;
  right: -4px;
  width: 8px;
  height: 100%;
  cursor: ew-resize;
  touch-action: none;
}

.ed-resizer::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 2px;
  height: 44px;
  transform: translateY(-50%);
  border-radius: 2px;
  background: transparent;
  transition: background .2s;
}

.ed-resizer:hover::after,
.editor-app.is-dragging .ed-resizer::after { background: var(--mw-violet); }

.editor-app[data-dock="right"] .ed-resizer { right: auto; left: -4px; }

.editor-app[data-dock="sheet"] .ed-resizer {
  top: -4px; right: 0; left: 0; width: 100%; height: 8px; cursor: ns-resize;
}

.editor-app[data-dock="sheet"] .ed-resizer::after { top: 3px; left: 50%; width: 44px; height: 2px; transform: translateX(-50%); }

.editor-app[data-dock="float"] .ed-resizer {
  top: auto; right: 0; bottom: 0; left: auto; width: 18px; height: 18px; cursor: nwse-resize;
  background: linear-gradient(135deg, transparent 50%, #c9cfe0 50%, #c9cfe0 60%, transparent 60%, transparent 70%, #c9cfe0 70%, #c9cfe0 80%, transparent 80%);
}

.editor-app[data-dock="float"] .ed-resizer::after { display: none; }

/* Al arrastrar el panel flotante cerca de un borde, se marca dónde se va a acoplar. */
.editor-app[data-snap="left"] .ed-main { box-shadow: inset 6px 0 0 var(--mw-violet); }
.editor-app[data-snap="right"] .ed-main { box-shadow: inset -6px 0 0 var(--mw-violet); }


/* =========================================================
   EDITOR: BARRA DE HERRAMIENTAS Y VISTA PREVIA
   ========================================================= */

.ed-panel-toggle { display: inline-flex; gap: 6px; align-items: center; }
.ed-toolbar__end { margin-left: auto; }

.ed-viewbar {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 6px;
  border: 1px solid #e1e5f0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 34px rgba(24, 41, 85, .16);
  overflow-x: auto;
  scrollbar-width: none;
}

.ed-viewbar .view-toggle { flex: none; }
.ed-viewbar .view-toggle button { white-space: nowrap; }

.ed-viewbar__sep { width: 1px; height: 24px; background: #e3e7f1; flex: none; }

.ed-vbtn {
  flex: none;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #4a5670;
  font-size: .8rem;
  font-weight: 800;
  white-space: nowrap;
}

.ed-vbtn:hover { background: #eef0fd; color: var(--mw-violet); }
.ed-vbtn:disabled { opacity: .35; pointer-events: none; }
.ed-vbtn[aria-pressed="true"] { background: var(--mw-navy); color: #fff; }

.ed-zoom { display: flex; align-items: center; gap: 2px; flex: none; }
.ed-zoom input[type="range"] { width: 96px; accent-color: var(--mw-violet); }
.ed-zoom__value { min-width: 52px; font-variant-numeric: tabular-nums; }

.ed-width { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: .74rem; font-weight: 700; color: #8a95ab; }

.ed-width input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #dce1ec;
  border-radius: 8px;
  font: inherit;
  font-size: .8rem;
  color: var(--mw-navy);
}

/* Lupa */
.ed-lens { position: absolute; inset: 0; z-index: 2; cursor: zoom-in; touch-action: none; }
.ed-lens.is-panning { cursor: grabbing; }
.ed-stage.is-lens .ed-canvas { outline: 2px dashed var(--mw-violet); outline-offset: -2px; }

/* Ver en grande */
body.ed-full .topbar { display: none; }
body.ed-full .editor-app { inset: 8px; border-radius: 14px; }

.ed-fullbar {
  position: fixed;
  z-index: 120;
  top: 14px;
  right: 18px;
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 34px rgba(24, 41, 85, .2);
}

.ed-fullbar[hidden] { display: none; }
body.ed-full .ed-toolbar { padding-right: 380px; }

/* Celular y tablet chica: el panel es una hoja que se desliza arriba o abajo */
@media (max-width: 960px) {
  body.editor-page { overflow: hidden; height: 100dvh; }

  .editor-app {
    inset: 84px 6px 6px;
    border-radius: 16px;
  }

  .editor-app[data-dock] { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) var(--panel-h, 46vh); grid-template-areas: "main" "side"; }
  .editor-app[data-panel="closed"][data-dock] { grid-template-rows: minmax(0, 1fr) 0; }

  .ed-dock button[data-dock-to] { display: none; }
  .ed-panelbar { justify-content: center; cursor: ns-resize; }
  .ed-panelbar__title { display: none; }
  .ed-grip { font-size: 1.3rem; transform: rotate(90deg); }
  .ed-dock { position: absolute; right: 8px; }

  .ed-toolbar { gap: 6px; padding: 8px; }
  .ed-save { display: none; }
  .ed-history .ed-mini { padding-inline: 8px; }
  .ed-panel-toggle span:last-child { display: none; }

  .ed-stage { padding: 0 0 60px; }
  .ed-viewbar { bottom: 8px; }
  .ed-viewbar .view-toggle button span,
  .ed-vbtn--wide span,
  .ed-zoom input[type="range"],
  #zoom100 { display: none; }

  .editor-app[data-dock] .ed-head { display: block; }
  .editor-app[data-dock] .ed-tabs { margin: 12px 0 0; }
  .editor-app[data-dock] #sections { display: block; }
  body.ed-full .ed-toolbar { padding-right: 8px; }
  .ed-fullbar { top: auto; bottom: 64px; right: 50%; transform: translateX(50%); }
}

/* Modo oscuro */
html[data-theme="dark"] .ed-side { background: #0d1530; }
html[data-theme="dark"] .ed-panelbar { background: #0f1733; border-color: #223058; }
html[data-theme="dark"] .ed-dock button:hover,
html[data-theme="dark"] .ed-dock button[aria-pressed="true"] { background: #222e5e; color: #b8c2ff; }
html[data-theme="dark"] .ed-mode { background: #121b3a; }
html[data-theme="dark"] .ed-mode button[aria-pressed="true"] { background: #222e5e; color: #fff; box-shadow: none; }
html[data-theme="dark"] .ed-modecard,
html[data-theme="dark"] .ed-look,
html[data-theme="dark"] .ed-pair,
html[data-theme="dark"] .ed-chip,
html[data-theme="dark"] .ed-seg button { background: #121b3a; border-color: #2b3a6b; color: #b9c3dd; }
html[data-theme="dark"] .ed-modecard strong,
html[data-theme="dark"] .ed-look strong,
html[data-theme="dark"] .ed-pair strong { color: #f1f4ff; }
html[data-theme="dark"] .ed-seg button[aria-pressed="true"] { background: #f1f4ff; border-color: #f1f4ff; color: var(--mw-navy); }
html[data-theme="dark"] .ed-code,
html[data-theme="dark"] .ed-field.is-advanced > label::after,
html[data-theme="dark"] .ed-field.is-advanced > .ed-label::after { background: #1b2650; color: #9aa6c4; }
html[data-theme="dark"] .ed-viewbar,
html[data-theme="dark"] .ed-fullbar { background: rgba(15, 23, 51, .94); border-color: #2b3a6b; }
html[data-theme="dark"] .ed-viewbar__sep { background: #2b3a6b; }
html[data-theme="dark"] .ed-vbtn { color: #b9c3dd; }
html[data-theme="dark"] .ed-vbtn:hover { background: #222e5e; color: #fff; }
html[data-theme="dark"] .ed-vbtn[aria-pressed="true"] { background: #f1f4ff; color: var(--mw-navy); }
html[data-theme="dark"] .ed-width input { background: #0b1229; border-color: #2b3a6b; color: #eef2ff; }
html[data-theme="dark"] .editor-app[data-dock="float"] .ed-side { border-color: #2b3a6b; box-shadow: 0 30px 70px rgba(0, 0, 0, .55); }

.ed-pages-wrap { display: flex; align-items: center; gap: 6px; }
.ed-pages-label { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #a3acc0; }
body.editor-page .ed-toast { bottom: 96px; }

@media (max-width: 960px) {
  .ed-pages-label { display: none; }
  body.editor-page .ed-toast { bottom: auto; top: 90px; }
}

@media (max-width: 960px) {
  .ed-hide-sm { display: none; }
  .ed-toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
}

/* =========================================================
   EDITOR EN EL CELULAR: EDICIÓN RÁPIDA SOBRE LA WEB (js/editor.js)
   Hoja chica abajo con el campo tocado. Se apoya arriba del teclado
   (--teclado) y nunca pasa de poco más de la mitad de lo visible.
   ========================================================= */

.ed-rapido {
  position: fixed;
  z-index: 150;
  left: max(8px, env(safe-area-inset-left));
  right: max(8px, env(safe-area-inset-right));
  bottom: calc(max(8px, env(safe-area-inset-bottom)) + var(--teclado, 0px));
  display: flex;
  flex-direction: column;
  max-height: min(52dvh, calc(var(--alto-visible, 100dvh) * .55));
  border: 1px solid var(--mw-line);
  border-radius: 18px;
  background: #fff;
  color: var(--mw-navy);
  box-shadow: 0 -10px 40px rgba(9, 22, 53, .22);
}

.ed-rapido[hidden] { display: none; }

.ed-rapido__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--mw-line);
}

.ed-rapido__head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .95rem; }
.ed-rapido__head .ed-mini { min-height: 44px; padding: 0 14px; flex: none; }

.ed-rapido__body { position: relative; overflow-y: auto; overscroll-behavior: contain; padding: 12px 14px 4px; }
.ed-rapido__body .ed-input { min-height: 44px; font-size: 16px; }
.ed-rapido__nota { margin: 0 0 12px; }

html[data-theme="dark"] .ed-rapido { background: #0d1530; border-color: #2b3a6b; color: #e6ebfa; }
html[data-theme="dark"] .ed-rapido__head { border-color: #223058; }

/* Mientras está abierta, la barra de la vista previa no queda debajo de la hoja. */
body.ed-rapido-abierto .ed-viewbar { visibility: hidden; }

@media (max-width: 480px) {
  .topbar { gap: 8px; padding: 0 12px; }
  .topbar:has(.home-btn) .brand > span:last-child { display: none; }
}

/* Editor en el celular: los botones de la barra quedan como íconos */
.topbar .top-cta .cta-text { display: inline; margin: 0; }

@media (max-width: 480px) {
  .editor-page .topbar .top-cta { padding: 10px 13px; }
  .editor-page .topbar .top-cta .cta-text { display: none; }
  .editor-page .topbar .top-cta span[aria-hidden] { display: inline; margin: 0; }
}

/* Barra: que nada se parta en dos líneas al sumar el botón Inicio */
.topbar nav a,
.topbar .top-cta { white-space: nowrap; }

@media (max-width: 1360px) {
  .topbar { gap: 20px; }
  .topbar nav { gap: 20px; }
}

@media (max-width: 1100px) and (min-width: 621px) {
  .topbar nav { gap: 14px; font-size: .84rem; }
  .topbar .top-cta { padding: 10px 14px; }
  .topbar .top-cta span[aria-hidden] { display: none; }
}

@media (max-width: 1100px) {
  .topbar:has(.home-btn) .brand > span:last-child { display: none; }
  .editor-page .topbar .top-cta { padding: 10px 13px; }
  .editor-page .topbar .top-cta .cta-text { display: none; }
  .editor-page .topbar .top-cta span[aria-hidden] { display: inline; margin: 0; }
}

@media (max-width: 1200px) {
  .ed-save { font-size: 0; gap: 0; }
}

@media (max-width: 1200px) {
  .ed-zoom input[type="range"],
  #zoom100 { display: none; }
}


/* =========================================================
   TIENDAS: CARGA MASIVA DE PRODUCTOS
   ========================================================= */

.ed-bulk {
  display: grid;
  gap: 2px;
  width: 100%;
  margin: 0 0 10px;
  padding: 12px 14px;
  border: 1.5px dashed #b9b4f5;
  border-radius: 14px;
  background: rgb(var(--mw-violet-rgb) / 0.05);
  color: var(--mw-navy);
  text-align: left;
  font-weight: 800;
  font-size: .86rem;
  transition: background .2s, border-color .2s;
}

.ed-bulk span { font-weight: 600; font-size: .74rem; color: #6e7a91; }
.ed-bulk:hover { background: rgb(var(--mw-violet-rgb) / 0.1); border-color: var(--mw-violet); }
.ed-bulk--banner { margin-bottom: 14px; padding: 14px 16px; border-style: solid; background: linear-gradient(120deg, rgb(var(--mw-violet-rgb) / 0.08), #3d8bfd14); }
.ed-bulk--banner strong { font-size: .95rem; }
.ed-bulk.ed-bulk--products{gap:10px;padding:18px;border:1px solid var(--mw-sky);background:linear-gradient(125deg,var(--mw-asis-1),color-mix(in srgb,var(--mw-navy) 58%,var(--mw-sky)));color:var(--mw-btn-text);cursor:pointer}
.ed-bulk--products strong{font-size:.95rem;line-height:1.4}
.ed-bulk.ed-bulk--products>span{color:var(--mw-btn-text);line-height:1.55}
.ed-bulk.ed-bulk--products .ed-bulk__action{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:9px;background:var(--mw-sky);color:var(--mw-navy);font-weight:800;font-size:.8rem}
.ed-bulk--products .ed-bulk__action span{color:inherit;font-size:1rem}
.ed-bulk.ed-bulk--products:hover{background:linear-gradient(125deg,var(--mw-asis-1),color-mix(in srgb,var(--mw-navy) 45%,var(--mw-sky)));border-color:var(--mw-sky)}
.ed-bulk--products:focus-visible{outline:3px solid var(--mw-violet);outline-offset:3px}

.ci-dialog { width: min(880px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); }
.ci-dialog[open] { display: flex; flex-direction: column; }

.ci-steps { display: flex; gap: 6px; list-style: none; margin: 0 0 14px; padding: 0; counter-reset: ci; }

.ci-steps li {
  counter-increment: ci;
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: #f1f3fa;
  color: #8a95ab;
  font-size: .76rem;
  font-weight: 800;
}

.ci-steps li::before { content: counter(ci) " · "; }
.ci-steps li.is-active { background: var(--mw-navy); color: #fff; }
.ci-steps li.is-done { background: #e6f6ee; color: #1f7a4d; }

.ci-step { display: grid; gap: 12px; min-height: 0; overflow: auto; }
.ci-step[hidden] { display: none; }

.ci-drop {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 20px;
  border: 2px dashed #c9cfe0;
  border-radius: 18px;
  background: #fbfcff;
  text-align: center;
  color: #6e7a91;
  font-size: .86rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}

.ci-drop:hover,
.ci-drop.is-over { border-color: var(--mw-violet); background: rgb(var(--mw-violet-rgb) / 0.05); }
.ci-drop strong { color: var(--mw-navy); font-size: 1.05rem; }
.ci-drop__icon { font-size: 2.2rem; }
.ci-drop__hint { max-width: 520px; font-size: .76rem; color: #8a95ab; }

.ci-files { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.ci-files li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid #e3e7f1; border-radius: 10px; font-size: .84rem; }
.ci-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; color: var(--mw-navy); }
.ci-files__size { color: #8a95ab; font-size: .74rem; }

.ci-paste summary { cursor: pointer; font-weight: 800; font-size: .84rem; color: var(--mw-violet); margin-bottom: 8px; }
.ci-privacy { margin: 0; font-size: .74rem; color: #8a95ab; }

.ci-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.ci-actions .button:disabled { opacity: .5; pointer-events: none; }
.ci-status { flex: 1; font-size: .82rem; font-weight: 700; color: #6e7a91; }
.ci-status.bad { color: #c2410c; }

.ci-summary { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: #f5f8ff; font-size: .86rem; color: #4a5670; }
.ci-summary strong { color: var(--mw-navy); font-size: 1rem; }
.ci-warn { color: #c2410c; font-weight: 700; font-size: .8rem; }

.ci-toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ci-check, .ci-mode label { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #4a5670; }
.ci-mode { display: flex; gap: 12px; flex-wrap: wrap; flex: 1; }
.ci-check input, .ci-mode input { accent-color: var(--mw-violet); }

.ci-pool { display: grid; gap: 8px; padding: 10px; border-radius: 12px; border: 1px dashed #c9cfe0; }
.ci-pool[hidden] { display: none; }
.ci-pool__label { font-size: .76rem; font-weight: 700; color: #6e7a91; }
.ci-pool__images { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }

.ci-thumb {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1.5px solid #dce1ec;
  border-radius: 10px;
  background: #f4f6fb;
  overflow: hidden;
  color: #8a95ab;
  font-size: .72rem;
  font-weight: 800;
}

.ci-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ci-thumb.is-selected { border-color: var(--mw-violet); box-shadow: 0 0 0 3px rgb(var(--mw-violet-rgb) / 0.27); }
.ci-list.is-picking .ci-item__photo .ci-thumb { border-color: var(--mw-violet); border-style: dashed; }

.ci-list { display: grid; gap: 8px; }

.ci-item {
  display: grid;
  grid-template-columns: auto 80px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid #e3e7f1;
  border-radius: 14px;
  background: #fff;
}

.ci-item.has-warn { border-color: #f5c9a8; background: #fffaf6; }
.ci-item.is-off { opacity: .45; }
.ci-item__check { margin-top: 24px; accent-color: var(--mw-violet); width: 18px; height: 18px; }
.ci-item__photo { display: grid; justify-items: center; gap: 4px; }
.ci-item__photo .ci-thumb { width: 80px; height: 80px; }
.ci-link { border: 0; background: none; padding: 0; color: var(--mw-violet); font-size: .72rem; font-weight: 800; cursor: pointer; }
.ci-item__fields { display: grid; gap: 6px; }
.ci-item__fields .ed-input + .ed-input { margin-top: 0; }
.ci-item__row { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 6px; }
.ci-price { font-weight: 800; }
.ci-item__warn { display: flex; gap: 6px; flex-wrap: wrap; }
.ci-item__warn span { padding: 2px 8px; border-radius: 999px; background: #ffedd5; color: #c2410c; font-size: .68rem; font-weight: 800; }
.ci-item__warn:empty { display: none; }

.ci-item__remove {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a95ab;
  font-weight: 800;
}

.ci-item__remove:hover { background: #fee2e2; color: #b91c1c; }

@media (max-width: 620px) {
  .ci-item { grid-template-columns: auto 64px minmax(0, 1fr); }
  .ci-item__photo .ci-thumb { width: 64px; height: 64px; }
  .ci-item__remove { grid-column: 3; justify-self: end; }
  .ci-item__row { grid-template-columns: 1fr; }
  .ci-steps li { font-size: .68rem; padding: 6px; }
}

html[data-theme="dark"] .ed-bulk { background: rgb(var(--mw-violet-rgb) / 0.12); border-color: #4b4fa0; color: #f1f4ff; }
html[data-theme="dark"] .ed-bulk span { color: #a9b4d0; }
html[data-theme="dark"] .ci-steps li { background: #121b3a; color: #8a95ab; }
html[data-theme="dark"] .ci-steps li.is-active { background: #f1f4ff; color: var(--mw-navy); }
html[data-theme="dark"] .ci-steps li.is-done { background: #12352a; color: #7ee2b0; }
html[data-theme="dark"] .ci-drop,
html[data-theme="dark"] .ci-summary,
html[data-theme="dark"] .ci-item { background: #0f1733; border-color: #2b3a6b; color: #b9c3dd; }
html[data-theme="dark"] .ci-drop strong,
html[data-theme="dark"] .ci-summary strong,
html[data-theme="dark"] .ci-files__name { color: #f1f4ff; }
html[data-theme="dark"] .ci-files li,
html[data-theme="dark"] .ci-pool { border-color: #2b3a6b; }
html[data-theme="dark"] .ci-item.has-warn { background: #2a1d17; border-color: #7a4a2a; }
html[data-theme="dark"] .ci-thumb { background: #141d3d; border-color: #2b3a6b; }
html[data-theme="dark"] .ci-check,
html[data-theme="dark"] .ci-mode label { color: #c6cfe6; }


/* =========================================================
   BARRA SUPERIOR: ACCIONES DE LA DERECHA
   «Crear mi web» (o Publicar / Descargar en el editor), después
   el selector de tema (último a la derecha) y, en celular, el menú.
   ========================================================= */

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex: none;
}

.topbar .topbar-actions .top-cta,
.topbar .topbar-actions .theme-toggle { margin-left: 0; }

.topbar .top-cta {
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}

.topbar .top-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(3, 24, 65, .22);
}

.theme-toggle span { display: inline-block; transition: transform .45s cubic-bezier(.2, .9, .3, 1.4); }
.theme-toggle:hover span { transform: rotate(-24deg) scale(1.08); }

.topbar :focus-visible { outline: 3px solid #79c9ff; outline-offset: 3px; border-radius: 999px; }

@media (max-width: 620px) {
  .topbar-actions { gap: 6px; }
  .theme-toggle,
  .menu-toggle { width: 38px; height: 38px; }
}

@media (max-width: 380px) {
  .topbar .top-cta { padding: 9px 10px; font-size: .74rem; }
}


/* =========================================================
   HERO: NOTEBOOK Y BUSCADOR (una sola pieza)
   La barra se ubica y se dimensiona en proporción a la notebook
   (unidades cqi del contenedor), así se mantienen juntas en
   escritorio, tablet y celular sin recortarse ni tapar el texto.
   ========================================================= */

.hero {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: min(760px, 100svh);
}

.hero-copy { min-width: 0; }

.hero-art {
  min-width: 0;
  min-height: 0;
  height: auto;
  padding: clamp(110px, 12vw, 130px) clamp(16px, 4vw, 56px) 40px clamp(8px, 2vw, 24px);
  display: grid;
  place-items: center;
  overflow: visible;
}

/* La caja es la notebook visible (el PNG trae aire transparente alrededor). */
.hero-device {
  container-type: inline-size;
  position: relative;
  width: min(100%, 500px);
  margin-inline: auto;
  animation: notebookFlotando 7s ease-in-out infinite;
  will-change: transform;
}

/* La notebook ya no se agranda de más (antes 125 %: se salía de la pantalla). */
.hero-device .hero-notebook {
  display: block;
  width: 142.9%;
  max-width: none;
  margin: -8.04% 0 -8.34% -21.4%;
  height: auto;
  animation: none;
  transform: none;
  filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .38));
}

/* Brillo suave detrás de la pantalla */
.hero-device::before {
  content: "";
  position: absolute;
  inset: 18% 14% 22%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(76, 182, 255, .45), transparent 70%);
  filter: blur(30px);
  animation: brilloPantalla 7s ease-in-out infinite;
}

@keyframes brilloPantalla {
  0%, 100% { opacity: .65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-device .hero-search {
  top: 44%;
  left: -13%;
  width: 82%;
  min-height: 0;
  padding: 1.8cqi 4.4cqi 1.8cqi 1.8cqi;
  gap: 3.2cqi;
  animation: buscadorFlotando 6s ease-in-out infinite;
  animation-delay: -1.5s;
}

.hero-device .hero-search__icon {
  flex: 0 0 12cqi;
  width: 12cqi;
  height: 12cqi;
  font-size: 5cqi;
}

.hero-device .hero-search__text {
  font-size: 5.1cqi;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-device .hero-search__magnifier {
  flex: 0 0 6.2cqi;
  width: 6.2cqi;
  height: 6.2cqi;
}

/* Cursor que escribe en el buscador */
.hero-device .hero-search__text::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 3px;
  vertical-align: -.12em;
  background: currentColor;
  animation: cursorBuscador 1.1s steps(1) infinite;
}

@keyframes cursorBuscador { 50% { opacity: 0; } }

/* Tablet: una columna; la pieza se centra debajo del texto */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { padding-bottom: 10px; }
  .hero-art { padding: 10px clamp(28px, 7vw, 64px) 56px; }
  .hero-device { width: min(78%, 460px); }
  .hero-device .hero-search { left: -12%; }
}

/* Celular: la barra entra completa dentro de la pantalla */
@media (max-width: 620px) {
  .hero-art { padding: 6px 24px 48px; min-height: 0; }
  .hero-device { width: min(84%, 380px); }
  .hero-device .hero-search { top: 46%; left: -9%; width: 88%; padding: 2.2cqi 5cqi 2.2cqi 2.2cqi; }
  .hero-device .hero-search__icon { flex-basis: 13cqi; width: 13cqi; height: 13cqi; font-size: 5.6cqi; }
  .hero-device .hero-search__text { font-size: 5.8cqi; }
  .hero-device .hero-search__magnifier { flex-basis: 7cqi; width: 7cqi; height: 7cqi; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.35rem); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-device,
  .hero-device::before,
  .hero-device .hero-search,
  .hero-device .hero-search__text::after { animation: none; }
}


/* =========================================================
   HOME: ENTRADA DEL ENCABEZADO
   ========================================================= */

.hero-copy > * {
  animation: subirSuave .8s cubic-bezier(.2, .8, .2, 1) backwards;
}

.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy > *:nth-child(5) { animation-delay: .32s; }

.hero-art { animation: aparecerZoom 1s .15s cubic-bezier(.2, .8, .2, 1) backwards; }

@keyframes subirSuave {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes aparecerZoom {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-art { animation: none; }
}


/* =========================================================
   APARICIÓN AL HACER SCROLL (todas las páginas)
   site.js / script.js agregan .reveal y, al entrar en pantalla,
   .is-visible. Sin JavaScript todo se ve normal.
   ========================================================= */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* =========================================================
   «¿QUÉ QUERÉS CREAR?»: TODA LA TARJETA ES CLICKEABLE
   ========================================================= */

a.audience-card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
  outline: none;
}

.audience-card {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease;
}

.audience-card:hover,
.audience-card:focus-visible {
  transform: translateY(-8px);
  border-color: rgba(7, 158, 232, .45);
  box-shadow: 0 26px 55px rgba(15, 47, 98, .2);
}

.audience-card:focus-visible {
  box-shadow: 0 0 0 3px #f5f8ff, 0 0 0 6px #079ee8, 0 26px 55px rgba(15, 47, 98, .2);
}

.audience-card__image img {
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.audience-card:hover .audience-card__image img,
.audience-card:focus-visible .audience-card__image img { transform: scale(1.07); }

/* «Explorar» es la señal visual; reacciona al pasar por toda la tarjeta. */
.audience-card__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.audience-card__arrow { display: inline-block; transition: transform .3s ease; }

.audience-card:hover .audience-card__button,
.audience-card:focus-visible .audience-card__button {
  background: rgba(4, 31, 78, .98);
  box-shadow: 0 12px 26px rgba(3, 24, 65, .26), inset 0 1px 0 rgba(255, 255, 255, .2);
}

.audience-card:hover .audience-card__button::before { transform: scale(1.35); }
.audience-card:hover .audience-card__arrow,
.audience-card:focus-visible .audience-card__arrow { transform: translate(3px, -3px); }

.audience-track.dragging .audience-card { pointer-events: none; }
.audience-track.dragging .audience-card:hover { transform: none; }

html[data-theme="dark"] .audience-card:focus-visible {
  box-shadow: 0 0 0 3px #0a1124, 0 0 0 6px var(--mw-sky), 0 26px 55px rgba(0, 0, 0, .45);
}

@media (prefers-reduced-motion: reduce) {
  .audience-card,
  .audience-card__image img,
  .audience-card__arrow { transition: none; }
  .audience-card:hover,
  .audience-card:focus-visible { transform: none; }
  .audience-card:hover .audience-card__image img { transform: none; }
}


/* =========================================================
   CATÁLOGO: TARJETAS
   ========================================================= */

.tpl-card { transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease, border-color .35s ease; }

.tpl-card__frame iframe { transition: transform .9s cubic-bezier(.2, .8, .2, 1); }

.tpl-card:hover .tpl-card__frame iframe { transform: scale(calc(var(--scale, .28) * 1.04)); }

.tpl-card__actions .button {
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tpl-card__actions .button:hover { transform: translateY(-2px); }
.tpl-card__actions .button.ghost:hover { border-color: var(--mw-violet); color: var(--mw-violet); }
.tpl-card__actions .button:focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }

.chip { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chip:active { transform: scale(.96); }

@media (prefers-reduced-motion: reduce) {
  .tpl-card__frame iframe,
  .tpl-card__actions .button { transition: none; }
  .tpl-card:hover .tpl-card__frame iframe { transform: scale(var(--scale, .28)); }
}


/* =========================================================
   CATÁLOGO: VISTA PREVIA «VER» (ventana sobre el catálogo)
   ========================================================= */

html.has-modal { overflow: hidden; scrollbar-gutter: stable; }

.tpl-preview {
  width: min(1240px, calc(100vw - 40px));
  height: min(860px, calc(100dvh - 40px));
  max-width: none;
  max-height: none;
  padding: 0;
  border: 1px solid rgba(160, 190, 255, .22);
  border-radius: 24px;
  overflow: hidden;
  color: #e6ebfa;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 174, 230, .22), transparent 40%),
    radial-gradient(circle at 100% 100%, rgb(var(--mw-violet-rgb) / .25), transparent 45%),
    rgba(9, 15, 34, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}

.tpl-preview[open] {
  display: flex;
  flex-direction: column;
  animation: ventanaEntra .38s cubic-bezier(.2, .9, .25, 1.05) both;
}

.tpl-preview::backdrop {
  background: rgba(4, 8, 20, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fondoEntra .3s ease both;
}

.tpl-preview.is-closing { animation: ventanaSale .18s ease-in both; }
.tpl-preview.is-closing::backdrop { animation: fondoSale .18s ease-in both; }

@keyframes ventanaEntra {
  from { opacity: 0; transform: translateY(26px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes ventanaSale { to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes fondoEntra { from { opacity: 0; } }
@keyframes fondoSale { to { opacity: 0; } }

.tpl-preview__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid rgba(160, 190, 255, .14);
}

.tpl-preview__title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.tpl-preview__title strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: -.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tpl-preview__title span:not(.tpl-preview__dot) {
  display: block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mw-sky);
}

.tpl-preview__dot {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: #3ddc97;
  box-shadow: 0 0 0 4px rgba(61, 220, 151, .18);
}

.tpl-preview__devices {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(160, 190, 255, .14);
}

.tpl-preview__devices button {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: transparent;
  color: #b9c3dd;
  font-weight: 700;
  font-size: .8rem;
  transition: background .2s, color .2s;
}

.tpl-preview__devices button:hover { color: #fff; }
.tpl-preview__devices button[aria-pressed="true"] { background: #f1f4ff; color: var(--mw-navy); }

.tpl-preview__actions { display: flex; align-items: center; gap: 10px; }

.tpl-preview__actions .button { padding: 11px 16px; gap: 10px; }

.tpl-preview__close {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, .22);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  transition: background .2s, transform .25s;
}

.tpl-preview__close:hover { background: rgba(255, 255, 255, .18); transform: rotate(90deg); }

.tpl-preview :focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }

.tpl-preview__stage {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  justify-content: center;
  padding: 16px;
  overflow: auto;
}

.tpl-preview__stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: width .45s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}

.tpl-preview__stage[data-size="tablet"] iframe { width: min(820px, 100%); }
.tpl-preview__stage[data-size="mobile"] iframe { width: min(390px, 100%); border-radius: 26px; }

.tpl-preview__stage.is-loading iframe { opacity: 0; }

.tpl-preview__loader {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  pointer-events: none;
}

.tpl-preview__stage.is-loading .tpl-preview__loader { display: grid; }

.tpl-preview__loader span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .15);
  border-top-color: var(--mw-sky);
  animation: girar .8s linear infinite;
}

@keyframes girar { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
  .tpl-preview {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }

  .tpl-preview__bar { flex-wrap: wrap; padding: 12px; gap: 10px; }
  .tpl-preview__title { order: 1; flex: 1 1 calc(100% - 60px); }
  .tpl-preview__actions { order: 2; }
  .tpl-preview__actions .button { padding: 10px 13px; font-size: .8rem; }
  .tpl-preview__devices { order: 3; flex: 1 1 100%; justify-content: center; }
  .tpl-preview__devices button span { display: none; }
  .tpl-preview__devices button { flex: 1; }
  .tpl-preview__stage { padding: 0; }
  .tpl-preview__stage iframe { border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tpl-preview[open],
  .tpl-preview::backdrop,
  .tpl-preview.is-closing,
  .tpl-preview.is-closing::backdrop { animation: none; }
  .tpl-preview__stage iframe { transition: none; }
}


/* =========================================================
   EDITOR: PANEL ÚNICO (diseño + contenido)
   ========================================================= */

.ed-head { padding-bottom: 16px; }

.ed-panel-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 2px 10px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8a95ab;
}

.ed-panel-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--mw-line), transparent);
}

#bulkBanner:empty { display: none; }
#bulkBanner + .ed-panel-label { margin-top: 6px; }

.ed-section__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #eef1ff, #e3f4ff);
  color: #4b55a8;
  font-size: .85rem;
  font-weight: 800;
}

.ed-section__hint {
  font-size: .72rem;
  font-weight: 600;
  color: #8a95ab;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ed-section--design { background: linear-gradient(180deg, #fbfcff, #fff); }
.ed-section--design[open] { border-color: #c9c4f7; }

.ed-section { transition: border-color .25s, box-shadow .25s, transform .25s; }
.ed-section > summary { border-radius: 14px; transition: background .2s; }
.ed-section > summary:hover { background: #f6f8fe; }
.ed-section > summary:focus-visible { outline: 3px solid #a7a1ff; outline-offset: -3px; }

/* Al abrir una sección, el contenido aparece suave */
.ed-section[open] > .ed-section__body { animation: abrirSeccion .3s cubic-bezier(.2, .8, .2, 1); }

@keyframes abrirSeccion {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

#designExtra:not(:empty) { margin-top: 18px; }

html[data-theme="dark"] .ed-panel-label { color: #7f8bab; }
html[data-theme="dark"] .ed-section__icon { background: #1b2650; color: #b8c2ff; }
html[data-theme="dark"] .ed-section--design { background: #121b3a; }
html[data-theme="dark"] .ed-section > summary:hover { background: #17224a; }

@media (prefers-reduced-motion: reduce) {
  .ed-section[open] > .ed-section__body { animation: none; }
}


/* =========================================================
   DETALLES GENERALES
   ========================================================= */

::selection { background: rgb(var(--mw-violet-rgb) / .28); }

.button { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease; }

.button:focus-visible,
.chip:focus-visible,
.ed-mini:focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }


/* =========================================================
   MARCA Y BARRA EN PANTALLAS CHICAS
   ========================================================= */

/* El punto de «m.» ya no se cae a otro renglón */
/* (era grid: la «m» y el «.» quedaban en dos filas) */
.brand-mark { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; letter-spacing: -.06em; padding-bottom: 3px; }

@media (max-width: 420px) {
  .topbar { gap: 6px; padding: 0 8px 0 10px; }
  .topbar .brand > span:last-child { display: none; }
  .topbar .top-cta { padding: 9px 12px; }
}

/* Carga de productos: avisos más amables */
.ci-note { display: block; margin-top: 6px; color: #2f6fd6; font-weight: 700; }
html[data-theme="dark"] .ci-note { color: var(--mw-sky); }
html[data-theme="dark"] .ci-item.has-warn { background: rgba(255, 150, 70, .06); border-color: rgba(245, 160, 90, .45); }
.ci-item { transition: border-color .2s, background .2s, opacity .2s, transform .2s; }
.ci-list .ci-item { animation: subirSuave .35s cubic-bezier(.2, .8, .2, 1) backwards; }
.ci-list .ci-item:nth-child(-n + 8) { animation-delay: calc(var(--n, 0) * 40ms); }
@media (prefers-reduced-motion: reduce) { .ci-list .ci-item { animation: none; } }

/* Editor: un nombre largo de producto ya no ensancha el panel (había barra de costado) */
.ed-collection__items { grid-template-columns: minmax(0, 1fr); }
.ed-item { min-width: 0; }
.ed-item__title { flex: 1; min-width: 0; }
.ed-panel { overflow-x: hidden; }
/* Títulos sin palabras sueltas en el último renglón */
h1, h2, h3, .plan h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* =========================================================
   TUTORIAL GUIADO (js/tour.js)
   ========================================================= */

.mw-tour { position: fixed; inset: 0; z-index: 2000; pointer-events: none; }
.mw-tour[hidden] { display: none; }

.mw-tour__shade { position: absolute; inset: 0; pointer-events: auto; background: transparent; }
.mw-tour__shade.is-dim { background: rgba(4, 8, 20, .55); backdrop-filter: blur(2px); transition: background .3s; }

/* La luz: un recorte con sombra gigante alrededor */
.mw-tour__spot {
  position: fixed;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(4, 8, 20, .58), 0 0 0 3px var(--mw-sky), 0 0 28px 6px rgb(var(--mw-sky-rgb) / .45);
  transition: left .4s cubic-bezier(.2, .8, .2, 1), top .4s cubic-bezier(.2, .8, .2, 1), width .4s cubic-bezier(.2, .8, .2, 1), height .4s cubic-bezier(.2, .8, .2, 1), opacity .25s;
  pointer-events: none;
  animation: tourPulso 2.2s ease-in-out infinite;
}

@keyframes tourPulso {
  0%, 100% { box-shadow: 0 0 0 9999px rgba(4, 8, 20, .58), 0 0 0 3px var(--mw-sky), 0 0 22px 4px rgb(var(--mw-sky-rgb) / .35); }
  50% { box-shadow: 0 0 0 9999px rgba(4, 8, 20, .58), 0 0 0 3px var(--mw-sky), 0 0 34px 10px rgb(var(--mw-sky-rgb) / .55); }
}

.mw-tour__card {
  position: fixed;
  width: min(340px, calc(100vw - 24px));
  padding: 18px 18px 16px;
  border-radius: 18px;
  pointer-events: auto;
  color: #e9eefc;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 174, 230, .25), transparent 45%),
    radial-gradient(circle at 100% 100%, rgb(var(--mw-violet-rgb) / .3), transparent 50%),
    rgba(10, 17, 38, .96);
  border: 1px solid rgba(160, 190, 255, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: left .4s cubic-bezier(.2, .8, .2, 1), top .4s cubic-bezier(.2, .8, .2, 1);
}

.mw-tour__card.is-in { animation: tourEntra .35s cubic-bezier(.2, .9, .25, 1.1); }

@keyframes tourEntra {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
  to { opacity: 1; transform: none; }
}

.mw-tour__card.is-center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(400px, calc(100vw - 24px)); }
.mw-tour__card.is-center.is-in { animation: tourEntraCentro .35s cubic-bezier(.2, .9, .25, 1.1); }

@keyframes tourEntraCentro {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.mw-tour__card.is-sheet { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
.mw-tour__card.is-sheet.is-top { top: 12px !important; bottom: auto; }

.mw-tour__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.mw-tour__count { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--mw-sky); }

.mw-tour__close {
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(160, 190, 255, .22); border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #fff; font-size: .8rem;
  transition: background .2s, transform .25s;
}

.mw-tour__close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

.mw-tour__title { margin: 0 0 6px; font-size: 1.12rem; letter-spacing: -.03em; color: #fff; }
.mw-tour__text { margin: 0; font-size: .9rem; line-height: 1.55; color: #c8d3ee; }
.mw-tour__text strong { color: #fff; }

.mw-tour__dots { display: flex; gap: 5px; margin: 14px 0 0; }
.mw-tour__dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .2); transition: width .3s, background .3s; }
.mw-tour__dots i.is-done { background: rgb(var(--mw-sky-rgb) / .55); }
.mw-tour__dots i.is-on { width: 20px; background: var(--mw-sky); }

.mw-tour__pref { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: .78rem; font-weight: 600; color: #aab6d4; cursor: pointer; }
.mw-tour__pref[hidden] { display: none; }
.mw-tour__pref input { accent-color: var(--mw-sky); width: 16px; height: 16px; }

.mw-tour__actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }

.mw-tour__ghost,
.mw-tour__primary {
  border-radius: 10px; padding: 10px 14px; font-weight: 800; font-size: .84rem;
  transition: transform .2s, background .2s;
}

.mw-tour__ghost { border: 1px solid rgba(160, 190, 255, .22); background: transparent; color: #dbe3fb; }
.mw-tour__ghost[hidden] { visibility: hidden; display: inline-block; }
.mw-tour__primary { margin-left: auto; border: 0; background: #f1f4ff; color: var(--mw-navy); }
.mw-tour__primary:hover,
.mw-tour__ghost:hover { transform: translateY(-1px); }
.mw-tour :focus-visible { outline: 3px solid var(--mw-sky); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .mw-tour__spot,
  .mw-tour__card,
  .mw-tour__card.is-in { animation: none; transition: none; }
}

/* Botón «Tutorial»: en la barra de la vista previa, a la izquierda de «Restablecer» */
.ed-tutorial-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; }
.ed-tutorial-btn + .ed-toolbar__end { margin-left: 0; }

.ed-tutorial-btn__icono {
  display: grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; background: var(--mw-violet); color: #fff; font-size: .7rem;
}


/* =========================================================
   WHATSAPP PARA TODOS LOS PRODUCTOS
   ========================================================= */

.ed-wsp {
  margin: 0 0 12px;
  border: 1px solid #cfeedd;
  border-radius: 14px;
  background: linear-gradient(180deg, #f3fcf7, #fff);
  overflow: hidden;
}

.ed-wsp > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}

.ed-wsp > summary::-webkit-details-marker { display: none; }

.ed-wsp > summary::after { content: "›"; margin-left: auto; color: #6aa98a; font-size: 1.2rem; transition: transform .2s; }
.ed-wsp[open] > summary::after { transform: rotate(90deg); }

.ed-wsp__icon {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; background: #25d366; color: #fff;
  box-shadow: 0 6px 16px rgba(37, 211, 102, .35);
}

.ed-wsp__icon svg { width: 20px; height: 20px; }
.ed-wsp__text { display: grid; gap: 2px; min-width: 0; }
.ed-wsp__text strong { font-size: .86rem; color: #17402c; }
.ed-wsp__text span { font-size: .74rem; font-weight: 600; color: #4f7c66; }

.ed-wsp__body { padding: 2px 14px 14px; animation: abrirSeccion .3s cubic-bezier(.2, .8, .2, 1); }
.ed-wsp .ed-field { display: block; margin-bottom: 12px; }
.ed-wsp .ed-sub.is-bad { color: #c2410c; }

.ed-check-row { display: flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; color: #30415f; margin: 2px 0 12px; cursor: pointer; }
.ed-check-row input { accent-color: #25d366; width: 16px; height: 16px; }

.ed-wsp__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-wsp__actions .ed-mini--primary { background: #128c4b; border-color: #128c4b; }
.ed-wsp__actions .ed-mini--primary:hover { background: #0e723d; }

html[data-theme="dark"] .ed-wsp { background: #0f2a1f; border-color: #1f5a3f; }
html[data-theme="dark"] .ed-wsp__text strong { color: #d7f7e6; }
html[data-theme="dark"] .ed-wsp__text span { color: #8fcfae; }
html[data-theme="dark"] .ed-check-row { color: #c6cfe6; }


/* =========================================================
   HOME: QUIÉNES SOMOS (los datos están en EQUIPO, script.js)
   Fondo azul noche con luces y tarjetas de vidrio, como Planes.
   ========================================================= */

.equipo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 9vw, 110px) max(5vw, 24px);
  color: #fff;
  background:
    radial-gradient(ellipse at 85% 15%, rgb(var(--mw-violet-rgb) / .32), transparent 42%),
    radial-gradient(ellipse at 10% 90%, rgba(0, 164, 255, .28), transparent 40%),
    #070c1c;
  border-top: 1px solid rgba(160, 190, 255, .08);
}

.equipo::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 45%;
  height: 70%;
  right: -10%;
  bottom: -20%;
  border-radius: 50%;
  background: #087cda;
  filter: blur(120px);
  opacity: .28;
  pointer-events: none;
  animation: luz-planes 14s ease-in-out infinite alternate-reverse;
}

.equipo__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.equipo__etiqueta {
  color: var(--mw-sky);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
}

.equipo__encabezado h2 {
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -.06em;
  color: #fff;
}

.equipo__encabezado h2 em { font-style: normal; color: var(--mw-sky); }

.equipo__encabezado p {
  max-width: 470px;
  margin: 0 0 22px;
  color: #c8d3ee;
  font-size: 1.06rem;
  line-height: 1.75;
}

.equipo__lugar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(160, 190, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: #dbe3fb;
  font-size: .85rem;
  font-weight: 700;
}

.equipo__lugar[hidden] { display: none; }
.equipo__lugar svg { width: 16px; height: 16px; color: var(--mw-sky); }

.equipo__grid {
  display: grid;
  gap: 18px;
}

.equipo__pareja {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* Unión entre las dos tarjetas: nodo "+" centrado en el hueco */
.equipo-union {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 48px;
  translate: -50% -50%;
  pointer-events: none;
}

.equipo-union__texto { position: absolute; left: 50%; bottom: calc(100% + 18px); translate: -50% 0; }

.equipo-union__nodo {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #00aee6, var(--mw-violet) 60%, #c25bd8);
  box-shadow: 0 0 0 5px rgba(7, 12, 28, .85), 0 8px 22px rgb(var(--mw-violet-rgb) / .55);
  animation: equipo-latido 3.2s ease-in-out infinite;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.equipo-union__texto {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(7, 12, 28, .88);
  border: 1px solid rgb(var(--mw-sky-rgb) / .4);
  color: #bfeaff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .3s, transform .3s;
}

/* Al tocar una tarjeta, se ilumina la pareja completa */
.equipo__pareja.es-pareja:is(:hover, :focus-within) .equipo-card {
  border-color: rgb(var(--mw-sky-rgb) / .5);
  box-shadow: 0 26px 55px rgba(0, 0, 0, .3), 0 0 36px rgba(0, 164, 255, .22), inset 0 1px 0 rgba(255, 255, 255, .16);
}

.equipo__pareja.es-pareja:is(:hover, :focus-within) .equipo-card__avatar::after { inset: -9px; opacity: .6; }
.equipo__pareja.es-pareja:is(:hover, :focus-within) .equipo-union__nodo { transform: scale(1.25) rotate(90deg); animation: none; }
.equipo__pareja.es-pareja:is(:hover, :focus-within) .equipo-union__texto { opacity: 1; transform: none; }

/* Frase y valores del equipo */
.equipo-juntos {
  padding: 20px 24px;
  border-radius: 18px;
  border: 1px solid rgba(160, 190, 255, .18);
  border-left: 3px solid var(--mw-sky);
  background: rgba(255, 255, 255, .05);
}

.equipo-juntos p {
  margin: 0 0 14px;
  color: #e6ebfa;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.equipo-juntos ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipo-juntos li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(160, 190, 255, .25);
  background: rgba(0, 164, 255, .1);
  color: #bfeaff;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

@keyframes equipo-latido {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

.equipo-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 18px;
  padding: 26px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s, box-shadow .35s;
}

.equipo-card:hover {
  transform: translateY(-6px);
  border-color: rgb(var(--mw-sky-rgb) / .5);
  box-shadow: 0 26px 55px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .16);
}

/* Avatar: iniciales sobre degradé hasta que haya foto */
.equipo-card__avatar {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #00aee6, var(--mw-violet));
  box-shadow: 0 12px 28px rgba(0, 120, 220, .35);
}

.equipo-card:nth-child(2n) .equipo-card__avatar { background: linear-gradient(135deg, var(--mw-violet), #c25bd8); box-shadow: 0 12px 28px rgb(var(--mw-violet-rgb) / .4); }

.equipo-card__avatar::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgb(var(--mw-sky-rgb) / .35);
  transition: inset .35s, opacity .35s;
}

.equipo-card:hover .equipo-card__avatar::after { inset: -9px; opacity: .6; }

.equipo-card__avatar span {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: #fff;
}

.equipo-card__avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.equipo-card__texto h3 {
  margin: 0 0 4px;
  font-size: 1.32rem;
  letter-spacing: -.04em;
  color: #fff;
}

.equipo-card__texto p {
  margin: 0;
  color: var(--mw-sky);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.equipo-card__contacto,
.equipo__contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.equipo__contacto { grid-column: 1 / -1; justify-content: center; }
.equipo__contacto[hidden] { display: none; }

.equipo-enlace {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(160, 190, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #e6ebfa;
  font-size: .8rem;
  font-weight: 700;
  transition: background .2s, border-color .2s, transform .2s;
}

.equipo-enlace:hover { background: rgba(255, 255, 255, .14); border-color: var(--mw-sky); transform: translateY(-1px); }

/* PC: el botón de correo entra entero en su tarjeta (si no alcanza, el correo baja de renglón en la @, sin cortarse). */
@media (min-width: 521px) {
  .equipo-card { grid-template-columns: minmax(0, 1fr); padding: 24px 22px; }
  .equipo-card > * { min-width: 0; max-width: 100%; }
  .equipo-card__contacto { width: 100%; }
  .equipo-card .equipo-enlace { max-width: 100%; min-width: 0; padding: 7px 11px; line-height: 1.35; }
  .equipo-card .equipo-enlace__texto { min-width: 0; overflow-wrap: anywhere; }
}

@media (min-width: 1101px) {
  /* Más lugar para las dos tarjetas: el texto de la izquierda cede un poco. */
  .equipo__inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}
.equipo-enlace:focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }

@media (max-width: 900px) {
  .equipo__inner { grid-template-columns: minmax(0, 1fr); }
  .equipo__encabezado p { max-width: 560px; }
}

@media (max-width: 520px) {
  .equipo__pareja { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .equipo-union { top: 50%; }
  .equipo-union__texto { display: none; }

  .equipo-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    padding: 18px;
  }

  .equipo-card__avatar { width: 64px; height: 64px; }
  .equipo-card__avatar span { font-size: 1.4rem; }
  .equipo-card__contacto { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .equipo::before { animation: none; }
  .equipo-card,
  .equipo-card__avatar::after { transition: none; }
  .equipo-card:hover { transform: none; }
  .equipo-union__nodo { animation: none; transition: none; }
  .equipo-union__texto { transition: none; }
}


/* =========================================================
   CATÁLOGO: FILTROS POR TIPO Y POR RUBRO
   ========================================================= */

.catalog__bar { align-items: flex-end; }

.catalog__filters { display: grid; gap: 14px; min-width: 0; }

.catalog__filter { display: grid; gap: 8px; min-width: 0; }
.catalog__filter[hidden] { display: none; }

.catalog__filter-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mw-muted);
}

#rubroChips .chip[aria-pressed="true"] { background: var(--mw-violet); border-color: var(--mw-violet); color: #fff; }
html[data-theme="dark"] #rubroChips .chip[aria-pressed="true"] { background: #8a83ff; border-color: #8a83ff; color: #0b1229; }

.tpl-card__rubros { display: flex; flex-wrap: wrap; gap: 6px; }

.tpl-card__rubros span {
  padding: 3px 9px;
  border-radius: 999px;
  background: #f1efff;
  color: #4b43c7;
  font-size: .7rem;
  font-weight: 800;
}

html[data-theme="dark"] .tpl-card__rubros span { background: #221f4d; color: #c3bfff; }

.tpl-card__secciones { margin: 0; font-size: .78rem; line-height: 1.5; opacity: .75; }
.tpl-card__secciones strong { font-weight: 800; }

@media (max-width: 620px) {
  .catalog__filter .chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; margin-right: -24px; padding-right: 24px; }
  .catalog__filter .chips::-webkit-scrollbar { display: none; }
  .catalog__filter .chip { flex: none; }
}


/* =========================================================
   CREAR DESDE CERO (asistente, js/wizard.js)
   Mismo vidrio oscuro que la vista previa «Ver».
   ========================================================= */

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }

.hero-link {
  color: #bfe9ff;
  font-weight: 800;
  font-size: .92rem;
  border-bottom: 1px solid rgb(var(--mw-sky-rgb) / .35);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}

.hero-link span { display: inline-block; transition: transform .25s; }
.hero-link:hover { color: #fff; border-color: #fff; }
.hero-link:hover span { transform: translateX(4px); }


.wz {
  width: min(860px, calc(100vw - 32px));
  max-height: min(820px, calc(100dvh - 32px));
  padding: 0;
  border: 1px solid rgba(160, 190, 255, .22);
  border-radius: 24px;
  color: #e6ebfa;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 174, 230, .22), transparent 40%),
    radial-gradient(circle at 100% 100%, rgb(var(--mw-violet-rgb) / .28), transparent 45%),
    rgba(9, 15, 34, .96);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.wz[open] { display: flex; flex-direction: column; animation: ventanaEntra .38s cubic-bezier(.2, .9, .25, 1.05) both; }
.wz::backdrop { background: rgba(4, 8, 20, .62); backdrop-filter: blur(6px); }

.wz__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 8px; }
.wz__eyebrow { font-size: .7rem; font-weight: 800; letter-spacing: .16em; color: var(--mw-sky); }
.wz__head h2 { margin: 6px 0 0; font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.04em; color: #fff; }

.wz__steps { display: flex; gap: 8px; list-style: none; margin: 10px 24px 0; padding: 0; counter-reset: paso; }

.wz__steps li {
  flex: 1;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: #8a95ab;
  font-size: .76rem;
  font-weight: 800;
  counter-increment: paso;
  transition: background .3s, color .3s;
}

.wz__steps li::before { content: counter(paso) " · "; }
.wz__steps li.is-active { background: #f1f4ff; color: var(--mw-navy); }
.wz__steps li.is-done { background: rgba(61, 220, 151, .14); color: #7ee2b0; }

.wz__body { display: flex; flex-direction: column; min-height: 0; flex: 1; padding: 18px 24px 22px; overflow-y: auto; }
.wz__panel { animation: abrirSeccion .35s cubic-bezier(.2, .8, .2, 1); }

.wz__field { display: grid; gap: 8px; margin-bottom: 18px; font-weight: 800; font-size: .9rem; }

.wz__input {
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid rgba(160, 190, 255, .25);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: inherit;
  font-weight: 600;
}

.wz__input:focus { outline: none; border-color: var(--mw-sky); box-shadow: 0 0 0 3px rgb(var(--mw-sky-rgb) / .2); }
.wz__input::placeholder { color: #7f8bab; }

.wz__label { margin: 4px 0 10px; font-weight: 800; font-size: .9rem; color: #fff; }
.wz__label small { display: block; margin-top: 4px; color: #9aa6c4; font-weight: 600; }

.wz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 18px; }
.wz__grid--rubros { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.wz__grid--looks { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

.wz__option,
.wz__look,
.wz__base {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid rgba(160, 190, 255, .2);
  background: rgba(255, 255, 255, .05);
  color: #e6ebfa;
  font: inherit;
  font-weight: 700;
  font-size: .88rem;
  text-align: left;
  transition: border-color .2s, background .2s, transform .2s;
}

.wz__option:hover,
.wz__look:hover,
.wz__base:hover { border-color: rgb(var(--mw-sky-rgb) / .55); transform: translateY(-2px); }

.wz__option[aria-checked="true"],
.wz__option[aria-pressed="true"],
.wz__look[aria-checked="true"],
.wz__base[aria-checked="true"] {
  border-color: var(--mw-sky);
  background: rgb(var(--mw-sky-rgb) / .12);
  box-shadow: 0 0 0 1px var(--mw-sky) inset;
}

.wz__option--card { flex-direction: column; align-items: flex-start; gap: 4px; position: relative; }
.wz__option--card small { color: #9aa6c4; font-weight: 600; }
.wz__option--card[aria-pressed="true"]::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: var(--mw-sky); font-weight: 800; }

.wz__icon { font-size: 1.2rem; }

.wz__look { flex-direction: column; align-items: flex-start; gap: 6px; }
.wz__look strong { font-size: 1.15rem; letter-spacing: -.02em; color: #fff; }
.wz__look small { color: #9aa6c4; font-weight: 600; }
.wz__look-colors { display: flex; gap: 4px; }
.wz__look-colors i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); }

.wz__colors { display: flex; flex-wrap: wrap; gap: 10px; }

.wz__swatch {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .25);
  background: var(--c, transparent);
  color: #fff;
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s, box-shadow .2s;
}

.wz__swatch:hover { transform: scale(1.08); }
.wz__swatch[aria-checked="true"],
.wz__swatch.is-on { box-shadow: 0 0 0 3px #090f22, 0 0 0 5px var(--mw-sky); }
.wz__swatch--auto { width: auto; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, .08); }
.wz__swatch--custom { background: var(--c, conic-gradient(#e11d48, #f59e0b, #16a34a, #0ea5e9, #7c3aed, #e11d48)); overflow: hidden; }
.wz__swatch--custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.wz__swatch--custom span { pointer-events: none; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); font-size: 1.1rem; }

.wz__bases { display: grid; gap: 10px; }
.wz__base { flex-direction: column; align-items: flex-start; gap: 4px; position: relative; }
.wz__base strong { font-size: 1.05rem; color: #fff; }
.wz__base small { color: #b9c3dd; font-weight: 600; }
.wz__base .wz__missing { color: #f5b38a; }

.wz__badge {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #3ddc97;
  color: #062b1b;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.wz__note { color: #9aa6c4; font-size: .82rem; line-height: 1.5; margin: 12px 0 0; }
.wz__error { min-height: 1.2em; margin: 8px 0 0; color: #f5b38a; font-weight: 700; font-size: .85rem; }

.wz__actions { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.wz__actions .button { margin-left: auto; }

.wz__ghost {
  border: 1px solid rgba(160, 190, 255, .25);
  border-radius: 10px;
  background: transparent;
  color: #dbe3fb;
  padding: 11px 16px;
  font: inherit;
  font-weight: 800;
  font-size: .85rem;
}

.wz__ghost[hidden] { display: none; }
.wz :focus-visible { outline: 3px solid #79c9ff; outline-offset: 2px; }

@media (max-width: 620px) {
  .wz { width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; border: 0; }
  .wz__head { padding: 16px 16px 4px; }
  .wz__steps { margin: 8px 16px 0; }
  .wz__steps li { font-size: 0; padding: 5px; }
  .wz__steps li::before { font-size: .74rem; content: counter(paso); }
  .wz__body { padding: 14px 16px 16px; }
  .wz__grid,
  .wz__grid--rubros,
  .wz__grid--looks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .wz[open],
  .wz__panel { animation: none; }
}


/* =========================================================
   CARGA FLUIDA (js/theme.js: modoVistas y setupNavegacion)
   ========================================================= */

/* Cambio suave entre páginas de Modo Web (navegadores que lo permiten). */
@view-transition { navigation: auto; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: .28s; }

/* Barra de progreso arriba mientras abre la página siguiente */
.mw-progreso {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483600;
  width: 100%;
  height: 3px;
  pointer-events: none;
  background: linear-gradient(90deg, #00aee6, var(--mw-violet), var(--mw-sky), #00aee6);
  background-size: 300% 100%;
  box-shadow: 0 0 12px rgb(var(--mw-violet-rgb) / .6);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0;
}

html.mw-navegando .mw-progreso {
  opacity: 1;
  animation: mwProgreso 2.4s cubic-bezier(.1, .7, .2, 1) forwards, mwBrillo 1.2s linear infinite;
}

html.mw-navegando main { transition: opacity .25s ease; opacity: .55; }

@keyframes mwProgreso {
  0% { transform: scaleX(0); }
  40% { transform: scaleX(.55); }
  100% { transform: scaleX(.92); }
}

@keyframes mwBrillo { to { background-position: -300% 0; } }

/* Vistas previas de plantillas: brillo mientras cargan, aparición suave al terminar */
.mw-vista { position: relative; }

.mw-vista > img.mw-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: opacity .45s ease, transform .9s cubic-bezier(.2, .8, .2, 1);
}

.mw-vista > img,
.mw-vista > iframe { transition: opacity .45s ease; }

.mw-vista.is-loading > img,
.mw-vista.is-loading > iframe { opacity: 0; }

.mw-vista.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 1;
  background:
    linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 45%, transparent 70%) 0 0 / 220% 100%,
    linear-gradient(180deg, #e9edf8 0 14%, #f4f6fc 14% 100%);
  animation: mwShimmer 1.3s ease-in-out infinite;
}

/* Esqueleto: barra de menú, título y botón dibujados con el fondo */
.mw-vista.is-loading::before {
  content: "";
  position: absolute;
  inset: 22% 46% 38% 7%;
  z-index: 2;
  border-radius: 10px;
  background:
    linear-gradient(#dfe4f3, #dfe4f3) 0 0 / 100% 22% no-repeat,
    linear-gradient(#e6eaf6, #e6eaf6) 0 42% / 80% 12% no-repeat,
    linear-gradient(#e6eaf6, #e6eaf6) 0 62% / 64% 12% no-repeat,
    linear-gradient(#cfd5f5, #cfd5f5) 0 100% / 36% 20% no-repeat;
  opacity: .9;
}

html[data-theme="dark"] .mw-vista.is-loading::after {
  background:
    linear-gradient(100deg, transparent 20%, rgb(var(--mw-sky-rgb) / .12) 45%, transparent 70%) 0 0 / 220% 100%,
    linear-gradient(180deg, #121a38 0 14%, #0e1530 14% 100%);
}

html[data-theme="dark"] .mw-vista.is-loading::before {
  background:
    linear-gradient(#1c2650, #1c2650) 0 0 / 100% 22% no-repeat,
    linear-gradient(#18214a, #18214a) 0 42% / 80% 12% no-repeat,
    linear-gradient(#18214a, #18214a) 0 62% / 64% 12% no-repeat,
    linear-gradient(#2a3270, #2a3270) 0 100% / 36% 20% no-repeat;
}

@keyframes mwShimmer { to { background-position: -220% 0, 0 0; } }

.tpl-card:hover .tpl-card__frame img.mw-thumb { transform: scale(1.04); }

/* El botón «Hablá conmigo» no tapa el pie (ni «Volver arriba») al final de la página. */
body:has(#modoAsistente) > footer { padding-bottom: 104px; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .mw-vista.is-loading::after,
  html.mw-navegando .mw-progreso { animation: none; }
  html.mw-navegando .mw-progreso { transform: scaleX(.6); }
  .tpl-card:hover .tpl-card__frame img.mw-thumb { transform: none; }
}


/* =========================================================
   EDITOR SIN CAJA
   La barra superior queda fija arriba, de borde a borde, y el área
   de edición ocupa todo el espacio de abajo: sin marco, sin sombra
   y sin el margen que dejaba la tarjeta.
   ========================================================= */

body.editor-page { --ed-bar: 64px; background: #fff; }

body.editor-page .topbar,
body.editor-page .topbar.scrolled {
  top: 0;
  left: 0;
  width: 100%;
  height: var(--ed-bar);
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.editor-app,
body.ed-full .editor-app {
  inset: var(--ed-bar) 0 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.ed-full .editor-app { inset: 0; }

html[data-theme="dark"] body.editor-page { background: #0f1733; }
html[data-theme="dark"] .editor-app { border: 0; box-shadow: none; }
html[data-theme="dark"] body.editor-page .topbar { border-color: #223058; }

@media (max-width: 960px) {
  .editor-app { inset: var(--ed-bar) 0 0; border-radius: 0; }
}

@media (max-width: 620px) {
  body.editor-page { --ed-bar: 58px; }
}


/* Editor: logotipo del menú (nombre en texto o imagen) */
.ed-logo { display: grid; gap: 8px; margin: 10px 0; padding: 10px 12px; border: 1px dashed #d9deea; border-radius: 12px; }
.ed-logo__tipos { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .84rem; font-weight: 700; }
.ed-logo__tipos label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ed-logo__imagen[hidden] { display: none; }
.ed-logo__thumb img { object-fit: contain; }
html[data-theme="dark"] .ed-logo { border-color: #2b3a6b; }

/* Editor: selector de emoji («Ícono (emoji)») */
.ed-emoji { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 6px; }
.ed-emoji__panel { flex-basis: 100%; max-height: 260px; overflow: auto; padding: 8px 10px; border: 1px solid #e2e6f0; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(24, 41, 85, .12); }
.ed-emoji__panel[hidden] { display: none; }
.ed-emoji__grupo { margin: 6px 0 4px; color: #8a95ab; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ed-emoji__grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 2px; }
.ed-emoji__grilla button { display: grid; place-items: center; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 1.25rem; cursor: pointer; }
.ed-emoji__grilla button:hover,
.ed-emoji__grilla button:focus-visible { background: #eef0fd; outline: 2px solid var(--mw-violet); outline-offset: -2px; }
html[data-theme="dark"] .ed-emoji__panel { background: #121b3a; border-color: #2b3a6b; }
html[data-theme="dark"] .ed-emoji__grilla button:hover { background: #222e5e; }


/* =========================================================
   PANEL DE ADMINISTRACIÓN (admin.html, js/admin.js)
   ========================================================= */

.adm-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 22px; align-items: start; }

.adm-menu { position: sticky; top: 96px; display: grid; gap: 6px; padding: 10px; border: 1px solid var(--mw-line); border-radius: 18px; background: #fff; }
.adm-menu button { padding: 11px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--mw-navy); font: inherit; font-weight: 800; text-align: left; cursor: pointer; }
.adm-menu button:hover { background: var(--mw-soft); }
.adm-menu button[aria-current="true"] { background: var(--mw-btn); color: var(--mw-btn-text); }
.adm-menu button[hidden] { display: none; }
.adm-menu__grupo { display: grid; gap: 4px; }
.adm-menu__grupo + .adm-menu__grupo { margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--mw-line); }
.adm-menu__grupo[hidden] { display: none; }
.adm-menu__titulo { margin: 2px 6px 2px; color: var(--mw-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.adm-menu__pronto { margin: 8px 6px 4px; color: var(--mw-muted); font-size: .78rem; line-height: 1.5; }

.adm-seccion h3 { margin: 22px 0 4px; font-size: 1.1rem; }

.adm-apariencia { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: 16px; }
.adm-colores { display: grid; gap: 10px; }

.adm-color {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 96px auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--mw-line);
  border-radius: 14px;
}

.adm-color.is-cambiado { border-color: var(--mw-violet); box-shadow: inset 3px 0 0 var(--mw-violet); }
.adm-color__texto { display: grid; gap: 2px; min-width: 0; }
.adm-color__muestra input { width: 46px; height: 46px; padding: 0; border: 1px solid var(--mw-line); border-radius: 12px; background: none; cursor: pointer; }
.adm-color__muestra input::-webkit-color-swatch-wrapper { padding: 3px; }
.adm-color__muestra input::-webkit-color-swatch { border: 0; border-radius: 9px; }
.adm-color__hex { font-family: ui-monospace, Consolas, monospace; text-transform: lowercase; }
.adm-color__hex.is-error { border-color: #c0392b; }

.adm-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.adm-acciones .button:disabled { opacity: .5; cursor: not-allowed; }

/* Panel: plantillas del catálogo (js/admin-plantillas.js) */
.adm-subtitulo { margin: 26px 0 10px; font-size: 1.05rem; }
#pltMsg.is-ok { color: #16a34a; }
.adm-plt { display: grid; gap: 12px; }
.adm-plt--web { max-height: 420px; overflow: auto; }
.adm-plt__item { padding: 16px; border: 1px solid rgb(var(--mw-navy-rgb) / .14); border-radius: 14px; }
.adm-plt__cabeza, .adm-plt__fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.adm-plt__fila { padding: 8px 12px; border: 1px solid rgb(var(--mw-navy-rgb) / .1); border-radius: 10px; }
.adm-plt__fila small { display: block; opacity: .7; font-size: .78rem; }
.adm-plt__fila.is-oculta { border-style: dashed; }
.adm-plt__fila.is-oculta > span:first-child { opacity: .65; }
.adm-plt__fila.is-oculta [data-accion="mostrar"] { background: var(--mw-violet); color: #fff; border-color: transparent; }
.adm-plt__botones { display: flex; gap: 6px; }
.adm-plt__quitar { color: #dc2626; }
.adm-plt__informe { margin: 10px 0; font-size: .9rem; }
.adm-plt__informe p { margin: 4px 0; }
.adm-plt__informe ul { margin: 4px 0 8px; padding-left: 18px; }
.adm-plt__lbl { font-weight: 800; margin-top: 10px !important; }
.adm-plt__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-plt__chip { padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.adm-plt__chip.is-ok { background: #dcfce7; color: #166534; }
.adm-plt__chip.is-falta { background: #fee2e2; color: #991b1b; }
.adm-plt__campos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.adm-plt__campos label { display: grid; gap: 4px; font-size: .85rem; font-weight: 700; }
.adm-plt__campos :is(input, select) { padding: 8px 10px; border-radius: 8px; border: 1px solid rgb(var(--mw-navy-rgb) / .2); font: inherit; background: transparent; color: inherit; }
.adm-plt__ancho { grid-column: 1 / -1; }
.adm-plt__campos fieldset { border: 1px solid rgb(var(--mw-navy-rgb) / .14); border-radius: 8px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.adm-plt__rubro { display: inline-flex !important; align-items: center; gap: 6px; font-weight: 500 !important; }
.adm-plt__buscar { width: 100%; max-width: 320px; margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; border: 1px solid rgb(var(--mw-navy-rgb) / .2); font: inherit; background: transparent; color: inherit; }
button.adm-plt__chip { border: 1px dashed currentColor; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
button.adm-plt__chip:hover:not(:disabled) { filter: brightness(.95); text-decoration: underline; }
.adm-plt__arreglos { margin: 10px 0; padding: 10px 14px; border: 1px solid rgb(var(--mw-navy-rgb) / .14); border-radius: 12px; font-size: .9rem; }
.adm-plt__arreglos summary { cursor: pointer; font-weight: 800; }
.adm-plt__arreglo { padding-top: 6px; }
.adm-plt__arreglo + .adm-plt__arreglo { margin-top: 8px; border-top: 1px solid rgb(var(--mw-navy-rgb) / .1); }
.adm-plt__fila-arreglo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.adm-plt__arreglos select { max-width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid rgb(var(--mw-navy-rgb) / .2); font: inherit; background: transparent; color: inherit; }
.adm-plt__arreglos select option { color: #111; }
.adm-plt__colores { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px 14px; margin-bottom: 8px; }
.adm-plt__color { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 2px 8px; font-size: .82rem; font-weight: 700; }
.adm-plt__color select { grid-column: 1 / -1; }
.adm-plt__muestra { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgb(var(--mw-navy-rgb) / .25); }
.adm-plt__mini { width: 192px; max-width: 100%; aspect-ratio: 768 / 480; height: auto; object-fit: cover; border-radius: 8px; border: 1px solid rgb(var(--mw-navy-rgb) / .14); }
.adm-plt__mini--vacia { display: grid; place-items: center; font-size: .8rem; opacity: .7; border-style: dashed; }
.adm-plt__subir-mini { cursor: pointer; }
.adm-plt__ayuda { margin: 2px 0 6px !important; font-size: .82rem; opacity: .75; }
.adm-plt__arreglo-msg { margin: 6px 0 0; font-size: .85rem; font-weight: 700; color: #dc2626; }
.adm-plt__arreglo-msg:empty { display: none; }
.adm-plt__arreglo-msg.is-ok { color: #15803d; }
html[data-theme="dark"] .adm-plt__arreglo-msg.is-ok { color: #86efac; }
html[data-theme="dark"] .adm-plt__chip.is-ok { background: #14532d; color: #bbf7d0; }
html[data-theme="dark"] .adm-plt__chip.is-falta { background: #7f1d1d; color: #fecaca; }
@media (max-width: 620px) { .adm-plt__campos { grid-template-columns: 1fr; } }

/* Vista previa con los colores del borrador (las variables cambian en vivo) */
.adm-muestra { position: sticky; top: 96px; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--mw-line); border-radius: 18px; background: var(--mw-soft); }
.adm-muestra__barra { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: #fff; box-shadow: 0 6px 18px rgb(var(--mw-navy-rgb) / .1); font-size: .72rem; font-weight: 700; }
.adm-muestra__barra .brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--mw-navy); color: #fff; font-size: .8rem; }
.adm-muestra__barra .brand-mark span { color: var(--mw-violet); }
.adm-muestra__menu { flex: 1; color: var(--mw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-muestra__cta { padding: 6px 10px; border-radius: 8px; background: var(--mw-btn); color: var(--mw-btn-text); white-space: nowrap; }
.adm-muestra__claro { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: #fff; }
.adm-muestra__titulo { color: var(--mw-navy); font-size: 1.15rem; line-height: 1.15; letter-spacing: -.03em; }
.adm-muestra__titulo em { font-style: normal; color: var(--mw-violet); }
.adm-muestra__texto { color: var(--mw-muted); font-size: .8rem; }
.adm-muestra__botones { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-muestra__btn { padding: 8px 12px; border-radius: 999px; background: var(--mw-btn); color: var(--mw-btn-text); font-size: .78rem; font-weight: 800; }
.adm-muestra__btn--destacado { background: var(--mw-btn-accent); color: var(--mw-btn-accent-text); }
.adm-muestra__oscuro { display: grid; gap: 4px; padding: 16px 14px; border-radius: 14px; color: #fff; font-size: .8rem; background: radial-gradient(ellipse at 0% 0%, rgb(var(--mw-sky-rgb) / .25), transparent 60%), var(--mw-night-2); }
.adm-muestra__oscuro strong { font-size: 1rem; }
.adm-muestra__oscuro em { font-style: normal; color: var(--mw-sky); }
.adm-muestra__asistente { justify-self: end; padding: 10px 16px; border-radius: 999px; color: #fff; font-size: .82rem; font-weight: 800; background: linear-gradient(135deg, var(--mw-asis-1), var(--mw-asis-2)); }

/* Equipo y permisos */
.adm-clave { max-width: 460px; margin-top: 12px; }
.adm-permisos { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; border: 0; }
.adm-permisos label { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.adm-nombrar { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--mw-line); }

html[data-theme="dark"] .adm-menu,
html[data-theme="dark"] .adm-muestra__claro,
html[data-theme="dark"] .adm-muestra__barra { background: #121b3a; }
html[data-theme="dark"] .adm-menu button { color: #e6ebfa; }
html[data-theme="dark"] .adm-menu button:hover { background: #1b2650; }
html[data-theme="dark"] .adm-menu button[aria-current="true"] { background: var(--mw-btn); color: var(--mw-btn-text); }
html[data-theme="dark"] .adm-muestra__titulo { color: #f1f4ff; }

@media (max-width: 1100px) {
  .adm-apariencia { grid-template-columns: minmax(0, 1fr); }
  .adm-muestra { position: static; }
}

@media (max-width: 760px) {
  .adm-layout { grid-template-columns: minmax(0, 1fr); }
  .adm-menu { position: static; display: flex; flex-wrap: wrap; }
  .adm-menu__pronto { flex-basis: 100%; }
  .adm-menu__grupo { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
  .adm-menu__titulo { flex-basis: 100%; }
  /* Renglón 1: muestra y nombre. Renglón 2: código del color y «Original». */
  .adm-color { grid-template-columns: 46px minmax(0, 1fr) auto; }
  .adm-color__texto { grid-column: 2 / -1; }
  .adm-color__hex { grid-column: 1 / 3; width: 100%; min-width: 0; }
}

/* Mi cuenta: acceso al panel */
.account-panel-link { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }


/* Panel: blog (js/admin-blog.js) */
.adm-encabezado { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.adm-acciones--arriba { margin: 6px 0 4px; }

.adm-nota-fila { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.adm-nota-fila > div:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.adm-nota-fila.is-oculta > div:nth-child(2) { opacity: .6; }
.adm-nota-fila__orden { display: grid; gap: 4px; }
.adm-nota-fila__orden .ed-mini { padding: 3px 9px; }
.adm-etiqueta { display: inline-block; margin: 2px 4px 0 0; padding: 1px 8px; border-radius: 999px; background: var(--mw-soft); color: var(--mw-muted); font-size: .72rem; font-weight: 800; }
.adm-etiqueta--nueva { background: rgb(var(--mw-violet-rgb) / .12); color: var(--mw-violet); }
.adm-etiqueta--editada { background: #e7f6ee; color: #11734b; }
.adm-etiqueta--borrador { background: #fff3d6; color: #8a5a00; }
.adm-etiqueta--oculta { background: #fde8e7; color: #b42318; }

.adm-nota { display: grid; gap: 16px; }
.adm-nota > .ed-mini:first-child { justify-self: start; }
.adm-nota h2 { margin: 0; }
.adm-nota__grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.adm-nota__ancho { grid-column: 1 / -1; }
.adm-nota__estado { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; font-size: .9rem; }
.adm-nota__estado label { display: flex; align-items: center; gap: 8px; }
.adm-nota fieldset.ed-field { margin: 0; padding: 0; border: 0; }
.adm-nota__relacionadas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }

.adm-portada { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 8px 16px; }
.adm-portada img { grid-row: span 2; width: 240px; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 12px; background: var(--mw-soft); }

.adm-editor-barra {
  position: sticky;
  top: 74px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--mw-line);
  border-radius: 14px 14px 0 0;
  background: #fff;
}

.adm-editor-barra button,
.adm-editor-barra__imagen {
  padding: 6px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--mw-navy);
  font: inherit;
  font-size: .84rem;
  font-weight: 700;
  cursor: pointer;
}

.adm-editor-barra button:hover,
.adm-editor-barra__imagen:hover { background: var(--mw-soft); color: var(--mw-violet); }
.adm-editor-barra__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--mw-line); }

/* El texto se ve como en el blog (mismas reglas que .b-prose de blog.css) */
.adm-prosa {
  min-height: 320px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 18px 22px;
  border: 1px solid var(--mw-line);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  background: #fff;
  color: var(--mw-navy);
  font-size: 1.02rem;
  line-height: 1.75;
  outline: none;
}

.adm-prosa:focus { box-shadow: inset 0 0 0 2px rgb(var(--mw-violet-rgb) / .35); }
.adm-prosa > :first-child { margin-top: 0; }
.adm-prosa h2 { margin: 1.6em 0 .5em; font-size: 1.45rem; letter-spacing: -.03em; }
.adm-prosa h3 { margin: 1.4em 0 .4em; font-size: 1.15rem; }
.adm-prosa p { margin: 0 0 1em; }
.adm-prosa ul, .adm-prosa ol { margin: 0 0 1em; padding-left: 1.4em; }
.adm-prosa a { color: var(--mw-violet); font-weight: 700; text-decoration: underline; }
.adm-prosa blockquote,
.adm-prosa .b-tip { margin: 0 0 1em; padding: 12px 16px; border-left: 4px solid var(--mw-violet); border-radius: 10px; background: var(--mw-soft); }
.adm-prosa img { display: block; max-width: 100%; height: auto; margin: 0 0 1em; border-radius: 12px; }
.adm-prosa table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.adm-prosa th, .adm-prosa td { padding: 8px 10px; border-bottom: 1px solid var(--mw-line); text-align: left; }

html[data-theme="dark"] .adm-editor-barra,
html[data-theme="dark"] .adm-prosa { background: #0f1733; border-color: #2b3a6b; color: #e6ebfa; }
html[data-theme="dark"] .adm-editor-barra button,
html[data-theme="dark"] .adm-editor-barra__imagen { color: #e6ebfa; }
html[data-theme="dark"] .adm-prosa .b-tip,
html[data-theme="dark"] .adm-prosa blockquote { background: #16204a; }

@media (max-width: 760px) {
  .adm-nota__grilla,
  .adm-nota__relacionadas { grid-template-columns: minmax(0, 1fr); }
  .adm-portada { grid-template-columns: minmax(0, 1fr); }
  .adm-portada img { width: 100%; grid-row: auto; }
  .adm-nota-fila { grid-template-columns: auto minmax(0, 1fr); }
  .adm-nota-fila .account-site__actions { grid-column: 1 / -1; }
  .adm-editor-barra { top: 64px; }
}

/* Panel: planes (js/admin-planes.js) */
.adm-planes { display: grid; gap: 16px; margin-top: 16px; }
.adm-plan { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px 18px 18px; border: 1px solid var(--mw-line); border-radius: 16px; background: #fff; }
.adm-plan.is-cambiado { border-color: var(--mw-violet); box-shadow: inset 3px 0 0 var(--mw-violet); }
.adm-plan legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 6px; font-size: 1.05rem; }
.adm-plan legend .adm-etiqueta { margin: 0; }
.adm-plan__grilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.adm-plan__ancho { grid-column: 1 / -1; }
.adm-plan__check { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; }
.adm-plan > .ed-mini { justify-self: start; }

/* Panel: cuentas (js/admin-usuarios.js) */
.adm-buscar { display: flex; gap: 10px; margin: 14px 0 10px; }
.adm-buscar .ed-input { flex: 1; min-width: 0; }
#usuariosTotal { margin: 10px 0 0; }
.adm-cuenta { display: grid; gap: 10px; }
.adm-cuenta > .ed-mini:first-child { justify-self: start; }
.adm-cuenta h2 { margin: 0; }
.adm-cuenta h3 { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mw-line); }
.adm-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 18px; margin: 10px 0 0; }
.adm-datos dt { color: var(--mw-muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.adm-datos dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.adm-cuenta__plan { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.adm-cuenta__plan .ed-field { flex: 1 1 200px; }
.adm-cuenta__motivo { max-width: 460px; margin-bottom: 10px; }
.adm-peligro { border-color: #f1b5ae; color: #b42318; }

html[data-theme="dark"] .adm-plan { background: #121b3a; border-color: #223058; }
html[data-theme="dark"] .adm-plan.is-cambiado { border-color: var(--mw-violet); }

@media (max-width: 760px) {
  .adm-plan__grilla { grid-template-columns: minmax(0, 1fr); }
  .adm-plan { padding: 12px 12px 14px; }
}


/* =========================================================
   MI CUENTA ORDENADA (cuenta.html, js/account.js)
   Menú a la izquierda y una sección a la vez.
   ========================================================= */

.acc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.acc-contenido { min-width: 0; }

.acc-perfil { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 6px; padding: 6px 6px 14px; border-bottom: 1px solid var(--mw-line); }
.acc-perfil > div { display: grid; min-width: 0; }
.acc-perfil strong { overflow: hidden; color: var(--mw-navy); text-overflow: ellipsis; white-space: nowrap; }
.acc-perfil span:not(.acc-avatar) { overflow: hidden; color: var(--mw-muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.acc-avatar { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--mw-btn); color: var(--mw-btn-text); font-weight: 800; }
.adm-menu .acc-salir { margin-top: 8px; border-top: 1px solid var(--mw-line); border-radius: 0 0 12px 12px; color: var(--mw-muted); }

.acc-seccion h2 { margin-top: 6px; }
.acc-encabezado { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }

.acc-resumen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }

.acc-dato {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 110px;
  padding: 18px;
  border: 1px solid var(--mw-line);
  border-radius: 16px;
  background: var(--mw-soft);
  color: var(--mw-navy);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
}

.acc-dato:hover { border-color: var(--mw-violet); transform: translateY(-2px); }
.acc-dato__numero { font-size: 2.2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.acc-dato__numero--texto { font-size: 1.5rem; }
.acc-dato__texto { color: var(--mw-muted); font-size: .86rem; font-weight: 700; }

.acc-continuar { display: grid; gap: 8px; margin-top: 22px; }
.acc-acciones { margin-top: 22px; }
.acc-aviso { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 1px solid rgb(var(--mw-violet-rgb) / .35); border-radius: 14px; background: rgb(var(--mw-violet-rgb) / .07); }
.acc-aviso p { margin: 0; }

.acc-subseccion { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--mw-line); }
.acc-subseccion h3 { margin: 6px 0 4px; font-size: 1.3rem; letter-spacing: -.03em; }

.acc-planes-lugar .account-plans { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--mw-line); }
.acc-planes-lugar .section-intro h2 { font-size: 1.6rem; }

/* Ajustes: el nombre arriba, lo demás plegado */
.acc-fila { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; max-width: 640px; margin: 16px 0 6px; }

.acc-plegable { max-width: 640px; margin-top: 12px; border: 1px solid var(--mw-line); border-radius: 14px; background: #fff; }
.acc-plegable > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; color: var(--mw-navy); font-weight: 800; list-style: none; cursor: pointer; }
.acc-plegable > summary::-webkit-details-marker { display: none; }
.acc-plegable > summary::after { content: "+"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--mw-soft); color: var(--mw-violet); font-size: 1.1rem; }
.acc-plegable[open] > summary::after { content: "−"; }
.acc-plegable > summary:focus-visible { outline: 3px solid var(--mw-violet); outline-offset: 2px; border-radius: 14px; }
.acc-plegable > :not(summary) { margin: 0 16px 16px; }
.acc-plegable--peligro > summary { color: #b42318; }
.button.acc-peligro { background: #b42318; color: #fff; }
.button.acc-peligro:hover { background: #8f1c13; }

/* Botones parejos en toda la cuenta y el panel */
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.account-actions .button,
.acc-encabezado .button,
.acc-fila .button,
.acc-aviso .button { min-height: 46px; padding: 0 20px; }
.account-site__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.account-site__actions .ed-mini { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; min-width: 76px; }

/* Mi cuenta → Mensajes (js/mensajes.js): lo que llega de los formularios de las webs. */
.msj-contador { display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 7px; border-radius: 999px; background: var(--mw-violet); color: #fff; font-size: .74rem; font-weight: 800; line-height: 1; }
.msj-contador[hidden] { display: none; }
.msj-web { display: grid; gap: 4px; min-width: 220px; }
.msj-lista { display: grid; gap: 12px; margin-top: 14px; }
.msj { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--mw-line); border-radius: 14px; background: #fbfcff; }
.msj.is-nuevo { border-color: rgb(var(--mw-violet-rgb) / .45); box-shadow: inset 3px 0 0 var(--mw-violet); }
.msj__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; color: var(--mw-muted); font-size: .82rem; }
.msj__cabeza strong { color: var(--mw-violet); }
.msj__punto { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--mw-violet); vertical-align: middle; }
.msj__campos { display: grid; gap: 8px; margin: 0; }
.msj__campos > div { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr); gap: 10px; }
.msj__campos dt { color: var(--mw-muted); font-size: .84rem; font-weight: 700; }
.msj__campos dd { margin: 0; color: var(--mw-navy); overflow-wrap: anywhere; white-space: pre-line; }
.msj__acciones { justify-content: flex-start; }
.msj-vacio { margin: 0; padding: 22px 16px; border: 1px dashed var(--mw-line); border-radius: 14px; color: var(--mw-muted); text-align: center; }
.msj-mas { margin-top: 14px; }
html[data-theme="dark"] .msj { background: #121b3a; border-color: #223058; }
html[data-theme="dark"] .msj.is-nuevo { border-color: rgb(var(--mw-sky-rgb) / .45); box-shadow: inset 3px 0 0 var(--mw-sky); }
html[data-theme="dark"] .msj__campos dd { color: #eef2ff; }
html[data-theme="dark"] .msj__cabeza strong { color: var(--mw-sky); }
@media (max-width: 620px) {
  .msj__campos > div { grid-template-columns: 1fr; gap: 2px; }
  .msj-web { min-width: 0; width: 100%; }
}

/* =========================================================
   BARRA: «MI CUENTA», TEMA Y ADMINISTRACIÓN (js/theme.js, ordenarBarra)
   Escritorio: Mi cuenta · Crear mi web · tema · Administración.
   Celular: los tres dentro del menú ☰, con Mi cuenta al final.
   ========================================================= */

.top-cuenta,
.topbar .nav-admin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  padding: 8px 10px;
  border-radius: 999px;
  color: inherit;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}

.top-cuenta svg { width: 18px; height: 18px; flex: none; }
.top-cuenta:hover { color: var(--mw-sky); background: rgba(255, 255, 255, .08); }
.topbar.scrolled .top-cuenta:hover,
.topbar.topbar--solid .top-cuenta:hover { color: var(--mw-violet); background: rgb(var(--mw-violet-rgb) / .08); }
.top-cuenta[aria-current="page"] { color: var(--mw-sky); }
.topbar.scrolled .top-cuenta[aria-current="page"],
.topbar.topbar--solid .top-cuenta[aria-current="page"] { color: var(--mw-violet); }

/* Enlace «Administración» (solo para el equipo): a la derecha del tema */
.topbar .nav-admin { gap: 6px; color: var(--mw-violet); }
.topbar:not(.scrolled):not(.topbar--solid) .nav-admin { color: var(--mw-sky); }
.topbar .nav-admin:hover { background: rgb(var(--mw-violet-rgb) / .08); }

/* El nombre del tema solo se lee dentro del menú del celular. */
.theme-toggle__texto { display: none; font-style: normal; }

@media (max-width: 620px) {
  /* Fuera del menú no queda ninguna copia: viven dentro de nav. */
  .topbar.menu-open nav .theme-toggle,
  .topbar.menu-open nav .nav-admin,
  .topbar.menu-open nav .top-cuenta {
    display: flex;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: auto;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-align: left;
    transform: none;
  }

  .topbar.menu-open nav .theme-toggle { margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); border-radius: 0 0 12px 12px; }
  .topbar.menu-open nav .theme-toggle__texto { display: inline; }
  .topbar.menu-open nav .nav-admin { color: var(--mw-sky); }
  .topbar.menu-open nav .top-cuenta[aria-current="page"] { color: var(--mw-sky); }
  .topbar.menu-open nav :is(.theme-toggle, .nav-admin, .top-cuenta):hover { background: rgba(255, 255, 255, .08); }
}

html[data-theme="dark"] .acc-perfil strong,
html[data-theme="dark"] .acc-dato,
html[data-theme="dark"] .acc-plegable > summary { color: #e6ebfa; }
html[data-theme="dark"] .acc-plegable { background: #0f1733; }
html[data-theme="dark"] .acc-plegable--peligro > summary { color: #ff8f87; }

@media (max-width: 900px) {
  .acc-resumen { grid-template-columns: minmax(0, 1fr); }
  .acc-dato { min-height: 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; }
}

@media (max-width: 760px) {
  .acc-layout { grid-template-columns: minmax(0, 1fr); }
  .acc-menu { position: static; display: flex; flex-wrap: wrap; }
  .acc-perfil { flex-basis: 100%; }
  .adm-menu .acc-salir { margin-top: 0; border-top: 0; border-radius: 12px; }
  .acc-fila { grid-template-columns: minmax(0, 1fr); }
  .account-site__actions { justify-content: flex-start; }
}

/* Barra con muchos botones (Inicio, Mi cuenta, menú y Administración): que entre sin cortarse */
@media (max-width: 1600px) and (min-width: 961px) {
  .topbar { gap: 16px; }
  .topbar nav { gap: 18px; }
  .topbar:has(.nav-admin) nav { gap: 14px; font-size: .84rem; }
}

@media (max-width: 1440px) and (min-width: 621px) {
  /* Solo el ícono ⚙; el nombre queda para lectores de pantalla y al pasar el mouse. */
  .topbar-actions .nav-admin .nav-admin__texto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar-actions .nav-admin { padding: 6px 8px; font-size: 1.05rem; }
}

@media (max-width: 1100px) and (min-width: 621px) {
  /* Mi cuenta: ícono solo (el nombre sigue para lectores de pantalla). */
  .topbar-actions .top-cuenta span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .topbar-actions .top-cuenta { padding: 8px; }
}

/* Controles esenciales y opciones secundarias de la vista previa. */
.ed-viewbar { overflow: visible; flex-wrap: wrap; justify-content: center; }
.ed-view-more { position: relative; flex: none; }
.ed-view-more > summary { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 0 10px; line-height: 1; list-style: none; cursor: pointer; white-space: nowrap; font-family: inherit; }
.ed-view-more > summary::-webkit-details-marker { display: none; }
.ed-view-more > summary::after { content: ' ▴'; }
.ed-view-more[open] > summary { outline: 2px solid var(--mw-violet); outline-offset: -2px; }
.ed-view-more__panel {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  width: min(320px, calc(100vw - 40px)); max-height: min(65svh, 520px);
  overflow-y: auto; padding: 16px; border-radius: 14px;
  background: #fff; color: var(--mw-navy); border: 1px solid #e1e5f0;
  box-shadow: 0 14px 34px rgb(var(--mw-navy-rgb) / .2);
}
.ed-view-more__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-view-more__group + .ed-view-more__group { margin-top: 16px; }
.ed-view-more__group > strong { width: 100%; font-size: .8rem; }
.ed-view-more__panel .ed-vbtn { min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.ed-view-more__panel [data-dock-to] svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
.ed-view-more__panel [data-dock-to] svg .fill { fill: currentColor; opacity: .3; }
.ed-view-more__panel .ed-vbtn span { display: inline; }
.ed-view-more__panel #zoom100 { display: inline-flex; }
.ed-view-more__panel .ed-zoom input[type="range"] { display: block; width: 72px; }
html[data-theme="dark"] .ed-view-more__panel { background: #0d1530; color: #eef2ff; border-color: #2b3a6b; }
@media (max-width: 960px) {
  .ed-view-more__panel [data-dock-to] { display: none; }
  .ed-view-more__group:last-child { display: none; }
}

@media (max-width: 960px) {
  .ed-viewbar .view-toggle button span,
  .ed-viewbar #fullBtn span { display: inline; }
  .ed-viewbar { width: max-content; max-width: calc(100% - 20px); }
  .ed-viewbar .view-toggle button { min-height: 40px; }
}

/* Panel: subir una plantilla sin salir (js/admin-plantillas.js) */
.adm-subida { margin: 18px 0 8px; padding: 18px; border: 2px solid var(--mw-violet); border-radius: 18px; background: var(--mw-soft); }
.adm-subida[hidden] { display: none; }
.adm-subida__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.adm-subida__cabeza .adm-subtitulo { margin: 0; }
.adm-subida__pasos { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 16px; padding: 0; list-style: none; }
.adm-subida__pasos li { padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--mw-muted); font-size: .8rem; font-weight: 800; }
.adm-subida__pasos li[data-estado="actual"] { background: var(--mw-violet); color: #fff; }
.adm-subida__pasos li[data-estado="hecho"] { color: var(--mw-navy); }
.adm-subida__pasos li[data-estado="hecho"]::before { content: "✓ "; }
.adm-subida__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.adm-subida__nombre { display: grid; gap: 4px; margin: 10px 0; font-size: .85rem; font-weight: 700; }
.adm-subida .adm-plt__item { background: #fff; }
.adm-subida .adm-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-theme="dark"] .adm-subida { background: #0f1a3d; }
html[data-theme="dark"] .adm-subida__pasos li,
html[data-theme="dark"] .adm-subida .adm-plt__item { background: #0d1530; }
html[data-theme="dark"] .adm-subida__pasos li { color: #8f9bc4; }
html[data-theme="dark"] .adm-subida__pasos li[data-estado="hecho"] { color: #e6ebfa; }
html[data-theme="dark"] .adm-subida__pasos li[data-estado="actual"] { color: #fff; }

/* Editor: modo plantilla base (panel de plantillas) */
.ed-base { position: fixed; left: 16px; bottom: 16px; z-index: 2000; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; width: min(620px, calc(100% - 230px)); padding: 10px 14px; border-radius: 14px; background: var(--mw-navy); color: #fff; box-shadow: 0 12px 30px rgb(var(--mw-navy-rgb) / .35); font-size: .88rem; }
.ed-base .button { padding: 8px 14px; font-size: .85rem; }
.ed-base__msg { flex-basis: 100%; text-align: center; font-weight: 700; }
.ed-base__msg:empty { display: none; }
@media (max-width: 960px) { .ed-base { width: calc(100% - 32px); } }

/* Panel de plantillas: vista con secciones, colores con muestras y problemas */
.adm-plt__vista-caja { display: grid; gap: 10px; }
.adm-plt__vista { position: relative; height: 380px; overflow: hidden; border-radius: 10px; border: 1px solid rgb(var(--mw-navy-rgb) / .2); background: #fff; }
.adm-plt__vista iframe { position: absolute; top: 0; left: 0; width: 1280px; border: 0; transform-origin: 0 0; }
.adm-plt__secciones { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px; }
.adm-plt__sec { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 6px 8px; border: 1px solid rgb(var(--mw-navy-rgb) / .14); border-radius: 10px; }
.adm-plt__ir { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; border: 0; background: none; color: inherit; font: inherit; font-weight: 700; font-size: .85rem; cursor: pointer; padding: 4px 2px; }
.adm-plt__ir:hover { text-decoration: underline; }
.adm-plt__sec select { max-width: 140px; font-size: .8rem; padding: 4px 6px; }
.adm-plt__x { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #dc2626; background: transparent; color: #dc2626; font-weight: 800; cursor: pointer; }
.adm-plt__x:hover { background: #dc2626; color: #fff; }
.adm-plt__rol p { margin: 0 0 6px !important; font-size: .85rem; }
.adm-plt__rol p span { opacity: .7; font-size: .78rem; }
.adm-plt__swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-plt__sw { width: 30px; height: 30px; border-radius: 50%; border: 2px solid rgb(var(--mw-navy-rgb) / .25); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .35); }
.adm-plt__sw.is-elegido { outline: 3px solid var(--mw-violet); outline-offset: 2px; }
.adm-plt__sw--ninguno { width: auto; border-radius: 999px; padding: 0 10px; background: transparent; color: inherit; font: inherit; font-size: .75rem; font-weight: 700; box-shadow: none; }
.adm-plt__colores { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
.adm-plt__problemas { margin: 8px 0; padding: 10px 12px; border-radius: 10px; border: 1px solid #f59e0b; background: rgb(245 158 11 / .08); }
.adm-plt__problemas ul { margin: 4px 0 8px; padding-left: 18px; }
.adm-plt__problemas li { margin-bottom: 4px; }
@media (max-width: 760px) {
  .adm-plt__secciones { grid-template-columns: 1fr; }
  .adm-plt__vista { height: 300px; }
}
.adm-plt__quitar-todo { border-color: #dc2626 !important; color: #dc2626 !important; font-weight: 800; }
.adm-plt__quitar-todo:hover:not(:disabled) { background: #dc2626 !important; color: #fff !important; }
.adm-plt__recolores { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.adm-plt__recolor { display: grid; justify-items: center; gap: 2px; font-size: .68rem; opacity: .85; cursor: pointer; }
.adm-plt__recolor input { width: 40px; height: 40px; padding: 0; border: 2px solid rgb(var(--mw-navy-rgb) / .25); border-radius: 50%; background: none; cursor: pointer; overflow: hidden; }
.adm-plt__recolor input::-webkit-color-swatch-wrapper { padding: 0; }
.adm-plt__recolor input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.adm-plt__recolor.is-cambiado input { outline: 3px solid var(--mw-violet); outline-offset: 2px; }
.adm-plt__recolor.is-cambiado span { font-weight: 800; opacity: 1; }

/* Editor: título del elemento y campos internos con jerarquías distintas. */
.ed-link-group {
  padding: 16px; margin-block: 20px; border: 1px solid #d9deea; border-radius: 12px;
  background: rgb(var(--mw-violet-rgb) / .035);
}
.ed-link-group > .ed-link-group__title { margin: 0 0 14px; font-size: .9rem; font-weight: 800; color: var(--mw-navy); }
.ed-link-group > .ed-link-group__label { margin-bottom: 6px; font-size: .76rem; font-weight: 600; color: #5d6a84; }
.ed-link-group > .ed-input + .ed-link-group__label { margin-top: 16px; }
.ed-link-group > .ed-sub { margin-top: 8px; line-height: 1.5; }
html[data-theme="dark"] .ed-link-group { border-color: #2b3a60; background: rgb(var(--mw-sky-rgb) / .035); }
html[data-theme="dark"] .ed-link-group > .ed-link-group__title { color: #eef2ff; }
html[data-theme="dark"] .ed-link-group > .ed-link-group__label { color: #b3c0dc; }

/* Secciones premium del editor. */
.ed-pro-badge{display:inline-flex;align-items:center;gap:4px;border:1px solid #a99af0;background:#f1edff;color:#5b36af;border-radius:999px;padding:3px 8px;font-size:10px;font-weight:800;letter-spacing:.05em;white-space:nowrap}
.ed-section.is-premium>summary{background:linear-gradient(100deg,transparent,rgba(112,85,225,.07));min-height:52px}
.ed-section.is-premium .ed-section__name{opacity:.8}
.ed-premium-dialog{box-sizing:border-box;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d8def0;border-radius:20px;padding:28px;color:#18264c;background:#fff;box-shadow:0 24px 90px #0005}
.ed-premium-dialog::backdrop{background:#080e27a8;backdrop-filter:blur(5px)}
.ed-premium-dialog h2{font-size:25px;line-height:1.2;margin:18px 0 12px}
.ed-premium-dialog p{font-size:14px;line-height:1.6;color:#566584}
.ed-premium-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-top:24px}
[data-theme="dark"] .ed-premium-dialog{background:#111a31;color:#edf2ff;border-color:#344264}
[data-theme="dark"] .ed-premium-dialog p{color:#bdc9e5}
[data-theme="dark"] .ed-pro-badge{background:#32274d;color:#ddd2ff;border-color:#69538f}

/* El asistente agrega su propio espacio a los diálogos; este aviso conserva su margen. */
body.editor-page dialog.ed-premium-dialog:has(> .ma){padding-bottom:28px!important}

/* Comparador de planes dentro del editor. */
.ed-premium-dialog{width:min(960px,calc(100% - 32px))}
.ed-upgrade-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-height:55dvh;overflow:auto;padding:2px;scrollbar-width:thin;scrollbar-color:rgb(var(--mw-violet-rgb) / .45) transparent}
.ed-upgrade-plan{display:flex;flex-direction:column;min-width:0;border:1px solid var(--mw-line);border-radius:14px;padding:20px;background:var(--mw-soft)}
.ed-upgrade-plan h3{margin:0;font-size:20px;line-height:1.3}
.ed-upgrade-plan p{margin:10px 0;font-size:13px}
.ed-upgrade-plan .ed-upgrade-price{font-size:25px;font-weight:800;color:inherit;white-space:nowrap}
.ed-upgrade-price small{font-size:12px;font-weight:500}
.ed-upgrade-plan ul{padding-left:18px;margin:10px 0 22px;font-size:13px;line-height:1.65}
.ed-upgrade-plan .button{margin-top:auto;justify-content:center}
.ed-upgrade-note:empty,.ed-upgrade-status:empty{display:none}
.ed-upgrade-note{font-size:12px!important}
.ed-upgrade-status{font-size:13px!important;color:#9e392e!important}
html[data-theme="dark"] .ed-upgrade-plan{background:rgb(var(--mw-navy-rgb) / .6);border-color:rgb(var(--mw-sky-rgb) / .18)}
html[data-theme="dark"] .ed-upgrade-status{color:#ffb7ab!important}
@media(max-width:680px){
  .ed-premium-dialog{padding:20px}
  .ed-premium-dialog h2{font-size:22px}
  .ed-upgrade-plans{grid-template-columns:1fr;max-height:48dvh}
  .ed-upgrade-plan{padding:18px}
}

/* Selector propio: una muestra completa y un único formato, HEX. */
.ed-color-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.ed-color-choice{width:44px;height:44px;flex:0 0 44px;border:4px solid var(--mw-surface,#fff);border-radius:50%;background:var(--choice-color);color:transparent;box-shadow:0 0 0 1px #8793a655;cursor:pointer;font-size:20px}
.ed-color-choice[aria-pressed="true"]{outline:2px solid var(--mw-violet);outline-offset:1px;color:#fff;text-shadow:0 1px 3px #000}
.ed-color-choice:focus-visible{outline:3px solid var(--mw-violet);outline-offset:2px}
.ed-design-colors{display:flex;flex-wrap:wrap;gap:12px 8px;margin:12px 0 20px}
.ed-color--hex.ed-color--circle{display:flex;flex-direction:column;gap:6px;width:72px;padding:2px;border:0;text-align:center}
.ed-color--circle>label{order:2;font-size:.72rem;line-height:1.3;overflow-wrap:anywhere}
.ed-color--circle>.ed-color__swatch{width:44px;height:44px;border-radius:50%}
.ed-color--circle>.ed-color__value{display:none}
.ed-color-custom>.ed-color__swatch{font-size:24px;font-weight:700;color:#fff;text-shadow:0 1px 3px #000;border-radius:50%;width:44px;height:44px}
.ed-design-styles{margin-bottom:18px}
.ed-design-styles>summary{cursor:pointer;font-size:.84rem;font-weight:700;padding:10px 0;color:var(--mw-muted)}
.ed-color--hex{position:relative;grid-template-columns:minmax(0,1fr) 52px 76px}
.ed-color__swatch{display:block;width:52px;height:36px;border:1px solid #cbd1da;border-radius:10px;padding:0;cursor:pointer}
.ed-color__swatch:focus-visible{outline:2px solid var(--mw-violet);outline-offset:3px}
.ed-color__value{font:12px ui-monospace,monospace;color:var(--mw-muted)}
.ed-color-picker{position:absolute;z-index:20;right:0;top:calc(100% - 2px);width:min(280px,100%);box-sizing:border-box;padding:14px;border:1px solid #d2d6dd;border-radius:18px;background:#fff;box-shadow:0 12px 34px #080e2020}
.ed-color-picker[hidden]{display:none}
.ed-color-picker{max-height:calc(100dvh - 24px);overflow-y:auto;text-align:left}
.ed-color-picker__title{margin:0 0 10px;font-size:.9rem;font-weight:800;color:var(--mw-text)}
.ed-color-picker__manual{margin:14px 0 10px;padding-top:12px;border-top:1px solid var(--mw-line);font-size:.78rem;font-weight:700;color:var(--mw-muted)}
.ed-color-picker .ed-color-suggestions{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin:0}
.ed-color-picker .ed-color-choice{width:44px;height:44px;min-width:0;justify-self:center}
.ed-color-picker--compact{padding:12px;border-radius:14px}
.ed-color-picker--compact .ed-color-suggestions{grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}
.ed-color-picker--compact .ed-color-choice{width:44px;height:44px;border-width:5px}
.ed-color-picker--compact .ed-color-board{height:100px}
.ed-color-picker--compact .ed-color-picker__title{margin-bottom:6px;font-size:.84rem}
.ed-color-picker--compact .ed-color-picker__manual{margin:8px 0;padding-top:8px;font-size:.74rem}
.ed-color-picker--compact .ed-color-hue{margin:12px 0}
.ed-color--circle>.ed-color__swatch[aria-expanded="true"]{outline:2px solid var(--mw-violet);outline-offset:3px}
.ed-color-board{position:relative;width:100%;height:160px;border-radius:10px;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent);touch-action:none;cursor:crosshair;overflow:hidden}
.ed-color-board>span{position:absolute;width:12px;height:12px;border:2px solid #fff;border-radius:50%;box-shadow:0 0 2px 1px #0008;transform:translate(-50%,-50%);pointer-events:none}
.ed-color-hue{display:block;width:100%;height:12px;margin:18px 0;appearance:none;-webkit-appearance:none;border:0;border-radius:99px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red);cursor:pointer}
.ed-color-hue::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;border:2px solid #fff;border-radius:50%;background:transparent;box-shadow:0 0 2px 1px #0006}
.ed-color-hue::-moz-range-thumb{width:14px;height:14px;border:2px solid #fff;border-radius:50%;background:transparent}
.ed-color-picker__hex{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;letter-spacing:.03em}
.ed-color-picker__hex .ed-input{width:120px;border-color:#d2d6dd;border-radius:10px}
.ed-color-picker__hex .ed-input[aria-invalid="true"]{border-color:#ba4747}
html[data-theme="dark"] .ed-color-picker{background:var(--mw-night-2);border-color:#717a8a}
html[data-theme="dark"] .ed-color__swatch{border-color:#a1a9b5}
html[data-theme="dark"] .ed-color__value{color:#c6cfe6}
html[data-theme="dark"] .ed-color-picker__hex .ed-input{border-color:#717a8a}

.ed-color-picker[popover]{position:fixed;inset:auto;margin:0}

/* Ojo Pro: activa solo la vista previa, sin abrir el contenido bloqueado. */
.ed-premium-preview{display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid var(--mw-line);border-radius:10px;background:transparent;color:var(--mw-muted);cursor:pointer}
.ed-premium-preview[aria-pressed="true"]{background:rgb(var(--mw-sky-rgb) / .14);border-color:var(--mw-violet);color:var(--mw-violet)}
html[data-theme="dark"] .ed-premium-preview{border-color:rgb(var(--mw-sky-rgb) / .2);color:#b7c3dc}
html[data-theme="dark"] .ed-premium-preview[aria-pressed="true"]{border-color:var(--mw-sky);color:var(--mw-sky)}
.ed-premium-preview:focus-visible{outline:2px solid var(--mw-violet);outline-offset:2px}
@media(max-width:960px){.ed-premium-preview{width:44px;height:44px;flex-basis:44px}}

/* El plan desbloqueado conserva su etiqueta Pro, con un tono discreto. */
.ed-pro-badge.ed-pro-badge--included { color: var(--mw-muted); background: var(--mw-soft); border-color: var(--mw-line); }
html[data-theme="dark"] .ed-pro-badge.ed-pro-badge--included { color: var(--mw-muted); background: var(--mw-soft); border-color: var(--mw-line); }
.ed-section > summary > .ed-premium-preview { margin-left: auto; }
.ed-section > summary:has(> .ed-premium-preview)::after { margin-left: 0; }
.ed-section__tools [data-section-action="hide"] { order: 10; }
