/* Constructor — piel "Warm Editorial Bridal" (DESIGN.md de la maqueta del owner, 25-sep-2026).
   Tokens en marca.css. Composición de la maqueta: carril 240px · cabecera · tarjeta de
   proyecto con pestañas · editor + vista previa en navegador. */

.c-app { background: var(--surface); min-height: 100vh; }

/* ---------- carril ---------- */
.c-rail { position: fixed; inset: 0 auto 0 0; width: 240px; z-index: 20; display: flex; flex-direction: column; gap: 28px; padding: 22px 14px 16px;
  background: var(--surface-low); border-right: 1px solid var(--line-soft); }
.c-marca { display: inline-flex; align-items: center; gap: 10px; padding: 0 10px; text-decoration: none; font-family: var(--serif); font-size: 17px; color: var(--ink); white-space: nowrap; }
.c-marca .i { color: var(--rose); width: 22px; height: 22px; }
/* Logo de la marca (logo_marca en app/landing.php): mismas proporciones que en la portada */
.c-marca .i-anillos { width: 26px; height: 23px; fill: currentColor; stroke: none; margin-right: -2px; }
.c-marca em { font-style: italic; color: var(--rose); }
.c-rail nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.c-rail nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: var(--r); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background .15s, color .15s; }
.c-rail nav a .i { width: 18px; height: 18px; color: var(--ink-3); }
.c-rail nav a:hover { background: var(--surface-high); color: var(--ink); }
.c-rail nav a[aria-current="page"] { background: var(--bronze-c); color: #4e3700; }
.c-rail nav a[aria-current="page"] .i { color: var(--bronze); }
/* pasos del constructor en el carril (modo crear) */
.c-paso { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r); background: none; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.c-paso:hover { background: var(--surface-high); color: var(--ink); }
.c-paso[aria-selected="true"] { background: var(--bronze-c); color: #4e3700; }
.c-paso-num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--paper); }
.c-paso[aria-selected="true"] .c-paso-num { border-color: var(--bronze); color: var(--bronze); }
.c-pareja { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line-soft); }
.c-pareja-ini { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--rose-c); color: var(--rose);
  font-family: var(--serif); font-size: 14px; }
.c-pareja-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.c-pareja-txt b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-pareja-txt small { font-size: 12px; color: var(--ink-3); }
.c-salir { color: var(--ink-3); padding: 6px; border-radius: var(--r); }
.c-salir:hover { background: var(--surface-high); color: var(--ink); }

/* ---------- zona principal ---------- */
.c-main { margin-left: 240px; min-width: 0; }
.c-top { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; padding: 0 28px;
  background: rgba(253, 251, 249, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.c-marca-movil { display: none; }
.c-top-tit { display: flex; align-items: center; gap: 12px; min-width: 0; }
.c-top-txt { display: flex; flex-direction: column; min-width: 0; }
.c-top-tit h1 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-top-txt small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); }
.c-badge { padding: 3px 10px; border-radius: var(--pill); background: var(--rose-c); color: var(--rose); font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.c-top-acc { display: flex; gap: 10px; }
.c-btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; border-radius: var(--r); box-shadow: none; }
.c-solo-movil { display: none; }

.c-punto { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.c-disp { display: inline-flex; padding: 2px; border-radius: var(--r); background: var(--surface-c); gap: 2px; flex-shrink: 0; }
.c-disp button { border: 0; background: none; border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.c-disp button[aria-pressed="true"] { background: var(--espresso); color: #fff; }
.c-tabs { display: flex; gap: 4px; margin: 0 28px; padding: 0 6px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line-soft); }
.c-tabs::-webkit-scrollbar { display: none; }
/* Al crear, en escritorio los pasos ya están en el carril: sin menú duplicado arriba */
@media (min-width: 901px) {
  body[data-modo="crear"] .c-tabs { display: none; }
}
.c-tabs button { border: 0; background: none; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; }
.c-tabs button:hover { color: var(--ink); }
.c-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }

/* ---------- rejilla editor / vista previa ---------- */
.c-grid { display: grid; grid-template-columns: minmax(340px, 460px) minmax(0, 1fr); gap: 24px; padding: 16px 28px 32px; align-items: start; }
.c-grid > * { min-width: 0; }
.c-editor { padding: 26px 24px 28px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-soft); box-shadow: var(--e1); }
.c-panel { display: flex; flex-direction: column; gap: 16px; }
.c-panel[hidden] { display: none; }
.c-panel h2 { margin: -8px 0 0; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.25; }
.c-ayuda { margin: -6px 0 0; font-size: 13px; color: var(--ink-2); }
.c-hr { border: 0; border-top: 1px solid var(--line-soft); margin: 6px 0; width: 100%; }
.c-tarjeta { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: var(--r-lg); background: var(--surface-low); border: 1px solid var(--line-soft); }
.c-sub { margin: 0; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }
.c-sub small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }

.c-fila { display: flex; gap: 12px; }
.c-fila > * { flex: 1; min-width: 0; }
.c-hora { flex: 0 0 116px; }
.c-fila > .c-union { flex: 0 0 92px; }
.c-campo { display: flex; flex-direction: column; gap: 6px; }
.c-campo > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.c-campo small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.c-campo input, .c-campo textarea, .c-campo select, .c-previa select, .c-slug {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink);
  font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.c-campo textarea { resize: vertical; line-height: 1.55; }
.c-campo input:focus, .c-campo textarea:focus, .c-campo select:focus { outline: none; border-color: var(--gold); box-shadow: var(--focus); }
.c-campo.c-mal input, .c-campo.c-mal textarea, .c-campo.c-mal .c-slug { border-color: var(--mal); }
/* Colores del dress code: selector nativo + quitar, en fila (8-oct-2026) */
.c-colores-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.c-color { display: inline-flex; align-items: center; gap: 6px; }
.c-campo .c-color input[type="color"] { width: 44px; min-height: 44px; height: 44px; padding: 3px; cursor: pointer; }

.c-check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.c-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--gold); flex-shrink: 0; }
.c-check a { color: var(--rose); }
.c-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.c-fs { border: 0; padding: 0; margin: 0; }
.c-fs legend { font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.c-link { border: 0; background: none; padding: 2px 0; font-size: 13px; font-weight: 600; color: var(--bronze); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.c-link:hover { color: var(--ink); }
.c-link-mal, .c-borrar { color: var(--mal); }
.c-borrar { align-self: flex-start; }

/* paletas en tarjeta */
.c-temas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.c-tema { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px 8px 10px; border-radius: var(--r-lg); background: var(--surface-low);
  border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-tema input { position: absolute; opacity: 0; pointer-events: none; }
.c-tema-muestra { display: grid; place-items: center; height: 52px; border-radius: 10px; font-family: var(--serif); font-style: italic; font-size: 22px; }
.c-tema-nom { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; padding: 0 2px; }
.c-tema-sw { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.c-tema:hover { border-color: var(--line); }
.c-tema:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--e1); background: #fffdf8; }
.c-tema:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(fonts/CormorantGaramond.woff2) format('woff2'); }
@font-face { font-family: 'Great Vibes'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/GreatVibes.woff2) format('woff2'); }
/* Muestra de los nombres en el selector de tipografía: una cara por combinación de FUENTES */
@font-face { font-family: 'Playfair Display'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/PlayfairDisplay-italic.woff2) format('woff2'); }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/PinyonScript.woff2) format('woff2'); }
@font-face { font-family: 'Arapey'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/Arapey-italic.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSerif-italic.woff2) format('woff2'); }
@font-face { font-family: 'Ms Madi'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/MsMadi.woff2) format('woff2'); }
@font-face { font-family: 'EB Garamond'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/EBGaramond-italic.woff2) format('woff2'); }
@font-face { font-family: 'Alex Brush'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/AlexBrush.woff2) format('woff2'); }
@font-face { font-family: 'Petit Formal Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/PetitFormalScript.woff2) format('woff2'); }
/* Colección Atelier */
.c-atelier-cab { display: flex; justify-content: space-between; align-items: baseline; }
.c-atelier-precio { font-size: 12px; font-weight: 600; color: var(--bronze); }
.c-atelier { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-atelier-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-lg); background: var(--surface-low);
  border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-atelier-card input { position: absolute; opacity: 0; pointer-events: none; }
.c-atelier-card:hover { border-color: var(--line); }
.c-atelier-card:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--e1); background: #fffdf8; }
.c-atelier-card:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.c-atelier-card.is-bloq { opacity: .5; cursor: not-allowed; }
.c-atelier-img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; border-radius: 10px; background: var(--surface-c); }
.c-atelier-propio { display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--ink-3); background: linear-gradient(135deg, #fff, var(--surface-c)); }
.c-atelier-txt { display: flex; flex-direction: column; gap: 1px; padding: 0 2px; min-width: 0; }
.c-atelier-txt small { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }
.c-atelier-txt b { font-family: var(--serif); font-weight: 400; font-size: 15px; }
.c-atelier-txt span { font-size: 11px; line-height: 1.4; color: var(--ink-3); }
.c-atelier-nota { grid-column: 1 / -1; }
.c-atelier > .c-atelier-cab { grid-column: 1 / -1; margin-top: 10px; }
/* «Vuestro estilo» es el modo NO premium: tarjeta ancha, distinta de los diseños Atelier */
.c-atelier-esencial { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
.c-atelier-cab-sep { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
#estiloPropio { padding-left: 12px; border-left: 2px solid var(--bronze-c); }
/* Paleta, Tipografía y Decoración: cada título separado de sus opciones y cada grupo del siguiente (owner, 29-sep-2026: iban pegados,
   porque este bloque no heredaba el gap de .c-panel) */
#estiloPropio { display: flex; flex-direction: column; gap: 12px; }
#estiloPropio .c-hr { margin: 14px 0; }
#estiloPropio .c-ayuda { margin: -4px 0 0; }
#estiloPropio > .c-modo-nota, #estiloPropio > .c-modo-aviso, #estiloPropio > .c-falta { margin-top: 0; }   /* el gap ya los separa */
.c-atelier-esencial .c-atelier-img { width: 72px; flex-shrink: 0; aspect-ratio: 1; font-size: 26px; }
.c-atelier-esencial .c-atelier-txt small { color: var(--ink-2); }
#estiloPropio[hidden] { display: none; }
.c-modo-nota { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--r); background: var(--surface-c); font-size: 12px; color: var(--ink-2); }


/* tipografía: muestra con los nombres */
.c-fuentes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-fuente { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px 10px; border-radius: var(--r-lg);
  background: var(--surface-low); border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-fuente input { position: absolute; opacity: 0; pointer-events: none; }
.c-fuente-muestra { max-width: 100%; font-size: 22px; line-height: 1.2; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Petit Formal Script (Sobria) ocupa ~190 px a 22 px frente a 120-165 de las demás: se iguala el ancho */
.c-fuente-sobria .c-fuente-muestra { font-size: 17px; }
/* Mientras baja la letra de la muestra: brillo en lugar de la letra de reserva */
.c-fuente-muestra.c-carga { color: transparent; border-radius: 6px; background: linear-gradient(90deg, var(--line-soft) 0%, var(--line) 50%, var(--line-soft) 100%) 0 0 / 200% 100%; animation: c-brillo 1.2s linear infinite; }
@keyframes c-brillo { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .c-fuente-muestra.c-carga { animation: none; } }
.c-fuente small { font-size: 12px; font-weight: 500; color: var(--ink-2); }
.c-fuente:hover { border-color: var(--line); }
.c-fuente:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--e1); background: #fffdf8; }
.c-fuente:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
[data-si-otro-sitio][hidden] { display: none; }

/* decoración en tarjeta con miniatura */
.c-decos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.c-deco { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 8px; border-radius: var(--r-lg); background: var(--surface-low);
  border: 1px solid var(--line-soft); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.c-deco input { position: absolute; opacity: 0; pointer-events: none; }
.c-deco:hover { border-color: var(--line); }
.c-deco:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--e1); background: #fffdf8; }
.c-deco:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.c-deco-muestra { position: relative; display: block; height: 76px; border-radius: 10px; background: #fff center / cover no-repeat; overflow: hidden; }
.c-deco-flores { background: #fffaf6 url(img/deco/flores-portada-movil.webp) top center / 125% auto no-repeat; }
.c-deco-eucalipto { background: #fff url(img/deco/eucalipto-portada-movil.webp) top center / 125% auto no-repeat; }
.c-deco-sobre { background: var(--surface-c); }
/* Estilo de la foto: miniatura de la forma, con un degradado cálido que hace de foto */
.c-deco-muestra.c-fe { display: grid; place-items: center; background: var(--surface-c); }
/* Cítricos: arriba de la portada, la terraza o vuestra foto con su acabado (15-oct-2026). La miniatura es la foto real con el filtro de la web */
.c-escena-muestra { height: 96px; background: #EFEEDC; }
.c-escena-muestra img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.c-escena-muestra img:not([src]) { visibility: hidden; }
.c-escena.c-off { opacity: .45; cursor: not-allowed; }

.c-fe i { display: block; width: 36px; height: 48px; background: linear-gradient(160deg, #f3d3b0, #cf947f 55%, #836c60); }
.c-fe-arco i { border-radius: 999px 999px 4px 4px; }
/* Sello: troquelado de sello en un borde blanco; Acuarela: mancha de contorno irregular */
.c-fe-sello i { width: 36px; height: 44px; padding: 4px; box-sizing: border-box; transform: rotate(3deg);
  background: linear-gradient(160deg, #f3d3b0, #cf947f 55%, #836c60) content-box, #fff;
  -webkit-mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 1.6px, #000 2.1px) -3px -3px / 6px 6px round;
          mask: linear-gradient(#000 0 0) content-box, radial-gradient(circle, transparent 1.6px, #000 2.1px) -3px -3px / 6px 6px round; }
.c-fe-acuarela i { width: 40px; height: 48px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; }
.c-fe-medallon i { border-radius: 50%; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--line); }
.c-fe-fundida i { width: 100%; height: 100%; -webkit-mask-image: linear-gradient(#000 35%, transparent); mask-image: linear-gradient(#000 35%, transparent); }
/* Álbum: foto en hoja blanca con cuatro esquineras del color de tinta */
.c-fe-album i { width: 36px; height: 44px; box-sizing: border-box; border: 4px solid #fff; outline: 1px solid var(--line); transform: rotate(-1.5deg);
  background: linear-gradient(135deg, #6E3B2A 0 6px, transparent 6px) left top / 50% 50% no-repeat, linear-gradient(225deg, #6E3B2A 0 6px, transparent 6px) right top / 50% 50% no-repeat,
    linear-gradient(45deg, #6E3B2A 0 6px, transparent 6px) left bottom / 50% 50% no-repeat, linear-gradient(315deg, #6E3B2A 0 6px, transparent 6px) right bottom / 50% 50% no-repeat,
    linear-gradient(160deg, #f3d3b0, #cf947f 55%, #836c60); }
.c-deco-sobre::before { content: ''; position: absolute; inset: 12px 22px; background: #fff; border-radius: 3px; box-shadow: var(--e1); }
.c-deco-sobre::after { content: ''; position: absolute; left: 50%; top: 12px; width: calc(100% - 44px); height: 26px; transform: translateX(-50%); background: var(--rose-c); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.c-deco-ninguna { background: linear-gradient(#fff, #fff) padding-box; }
.c-deco-ninguna::after { content: 'Aa'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 24px; color: var(--ink-3); }
.c-deco-txt { display: flex; flex-direction: column; padding: 0 2px; }
.c-deco-txt b { font-size: 13px; font-weight: 600; }
.c-deco-txt small { font-size: 11px; color: var(--ink-3); line-height: 1.35; }

/* foto */
.c-foto { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line-soft); background: var(--surface-low); }
.c-foto-marco { width: 76px; height: 96px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--rose-c); color: var(--rose); }
.c-foto-marco img { width: 100%; height: 100%; object-fit: cover; }
.c-foto-acc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.c-foto-acc b { font-size: 14px; font-weight: 600; }
.c-foto-acc small { font-size: 12px; color: var(--ink-3); line-height: 1.45; }
.c-foto-bot { display: flex; gap: 16px; margin-top: 4px; }

/* secciones como tarjetas de módulo */
.c-secciones { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.c-sec { border-radius: var(--r-lg); background: var(--surface-low); border: 1px solid var(--line-soft); transition: border-color .15s, box-shadow .15s; }
.c-sec:hover { border-color: var(--line); }
.c-sec { scroll-margin-top: 90px; }
.c-destaca { animation: destaca 1.4s var(--ease-out, ease-out); }
@keyframes destaca { 0%, 30% { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(197, 160, 89, .25); } 100% { box-shadow: none; } }
.c-sec-fila { display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.c-sec-abrir { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 10px 0; cursor: pointer; font-size: 14px; font-weight: 500; }
.c-sec-ico { color: var(--bronze); }
.c-sec-abrir[aria-expanded="true"] .c-sec-nombre { color: var(--rose); }
.c-sec-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-sec-tipo { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze); background: var(--bronze-c); border-radius: var(--pill); padding: 2px 8px; }
.c-sec.is-off .c-sec-nombre, .c-sec.is-off .c-sec-ico { color: var(--ink-3); }
.c-sec.is-off .c-sec-nombre { text-decoration: line-through; }
.c-orden { display: flex; gap: 4px; }
.c-orden button { width: 32px; height: 32px; border: 1px solid var(--line-soft); background: var(--paper); border-radius: var(--r); cursor: pointer; color: var(--ink-2); }
.c-orden button:hover:not(:disabled) { border-color: var(--gold); }
.c-orden button:disabled { opacity: .35; cursor: default; }
.c-switch { appearance: none; -webkit-appearance: none; width: 36px; height: 20px; border-radius: var(--pill); background: var(--line); position: relative; cursor: pointer; flex-shrink: 0; margin: 0; transition: background .15s; }
.c-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
.c-switch:checked { background: var(--gold); }
.c-switch:checked::after { transform: translateX(16px); }
.c-sec-edit { display: flex; flex-direction: column; gap: 14px; padding: 4px 14px 16px; border-top: 1px solid var(--line-soft); background: var(--paper); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.c-sec-edit > :first-child { margin-top: 12px; }
.c-hoteles { display: flex; flex-direction: column; gap: 12px; }
.c-hotel { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface-low); }
.c-hotel-cab { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.c-hoteles > .b-btn { align-self: flex-start; }
.c-anadir { align-self: flex-start; }
#rsvpEditor .c-sec-edit { padding: 0; border: 0; background: none; }
#rsvpEditor .c-sec-edit > :first-child { margin-top: 0; }
/* listas editables (menús, trayectos) */
.c-lista { display: flex; flex-direction: column; gap: 10px; }
.c-lista > .b-btn { align-self: flex-start; }
.c-item { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface-low); }
.c-item-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.c-item-cab b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-item-acc { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.c-mini { width: 28px; height: 28px; border: 1px solid var(--line-soft); background: var(--paper); border-radius: 6px; cursor: pointer; color: var(--ink-2); font-size: 12px; }
.c-mini:disabled { opacity: .35; cursor: default; }
.c-fs .c-ayuda { margin: -2px 0 10px; }
.c-aviso { margin: 0; padding: 12px 14px; border-radius: var(--r); background: var(--blush); font-size: 13px; color: var(--ink-2); }
.c-galeria { display: flex; flex-direction: column; gap: 10px; }
.c-galeria > .b-btn { align-self: flex-start; cursor: pointer; }
.c-galeria-lista { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.c-galeria-item { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--surface-low); }
.c-galeria-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; background: var(--surface-c); }
.c-galeria-item input { width: 100%; min-height: 34px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; }

/* publicar */
.c-slug { display: flex; align-items: center; padding: 0 12px 0 0; }
.c-slug input { border: 0; min-height: 40px; padding: 0 0 0 12px; flex: 1; min-width: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); outline: none; }
.c-slug span { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.c-slug:focus-within { border-color: var(--gold); box-shadow: var(--focus); }
#slugEstado.ok { color: var(--ok); }
#slugEstado.mal { color: var(--mal); }
.c-incluye { margin: 0; padding: 14px 16px; list-style: none; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r-lg); background: var(--blush); font-size: 13px; color: var(--ink-2); }
.c-incluye li { display: flex; gap: 8px; align-items: flex-start; }
.c-incluye .i { color: var(--rose); margin-top: 2px; }
.c-precio { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.c-precio b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; }
.c-precio span { font-size: 13px; color: var(--ink-2); }
.c-faltan { margin: 0; padding: 12px 14px 12px 32px; border-radius: var(--r); background: #fdf1ef; color: var(--mal); font-size: 13px; }
.c-faltan:empty { display: none; }
.c-btn-pagar { width: 100%; min-height: 50px; border-radius: var(--r); font-size: 15px; font-weight: 600; }
.c-nota { margin: 0; font-size: 12px; color: var(--ink-3); text-align: center; }
.c-guardar { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-soft); }

/* ---------- vista previa en navegador ---------- */
.c-previa { position: sticky; top: 84px; }
.c-navegador { display: flex; flex-direction: column; height: calc(100vh - 100px); min-height: 520px; border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-c); border: 1px solid var(--line-soft); box-shadow: var(--e2); }
.c-nav-barra { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(255, 255, 255, .7); border-bottom: 1px solid var(--line-soft); }
.c-dots { display: flex; gap: 6px; flex-shrink: 0; }
.c-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.c-dots i:first-child { background: #e8b7b0; }
.c-dots i:nth-child(2) { background: #ead7a8; }
.c-url { flex: 1; min-width: 0; padding: 5px 12px; border-radius: var(--r); background: var(--surface-c); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-ver-entrada { flex-shrink: 0; border: 1px solid var(--gold); background: #fffdf8; color: var(--bronze); border-radius: var(--r); padding: 4px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.c-ver-entrada:hover { background: var(--bronze-c); }
.c-previa select { width: auto; min-width: 0; flex-shrink: 1; min-height: 30px; padding: 3px 8px; font-size: 12px; max-width: 170px; }
@keyframes latido { 50% { opacity: .35; } }
.c-marco { flex: 1; min-height: 0; position: relative; overflow: hidden; display: flex; justify-content: center; padding: 18px; }
.c-marco iframe { border: 0; background: #fff; display: block; transform-origin: top left; }
.c-marco[data-disp="movil"] iframe { width: 390px; max-width: 100%; height: 100%; border-radius: 26px; box-shadow: var(--e3); border: 6px solid #1f1b19; }
.c-marco[data-disp="escritorio"] { padding: 0; justify-content: flex-start; }
.c-marco[data-disp="escritorio"] iframe { position: absolute; top: 0; left: 0; }

/* ---------- pie y páginas simples ---------- */
.c-pie { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; padding: 20px 16px 28px; font-size: 13px; color: var(--ink-3); }
.c-pie a { color: var(--ink-2); text-decoration: none; }
.c-pie a:hover { color: var(--rose); }
.simple { background: var(--surface); }
.s-top { display: flex; align-items: center; height: 68px; padding: 0 24px; border-bottom: 1px solid var(--line-soft); background: var(--paper); }
.simple-main { max-width: 720px; margin: 0 auto; padding: 44px 20px 64px; }
.simple-main h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; margin: 0 0 18px; }
.simple-main .lede { font-size: 17px; }
.simple-main .btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--pill); background: linear-gradient(90deg, var(--rose-btn), var(--rose-btn-2)); color: #fff; text-decoration: none; box-shadow: var(--e-rose); }
.simple-main .btn-sec { background: var(--espresso); box-shadow: none; }
.simple-main .nota { font-size: 14px; color: var(--ink-2); }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
/* Enlaces de los textos legales: al pasar el cursor, rosa como el pie de la landing (owner, 29-sep-2026) */
.legal a { transition: color .2s; }
.legal a:hover { color: var(--rose); }

/* ---------- pantallas medianas y móvil ---------- */
@media (max-width: 1180px) {
  .c-rail { width: 76px; padding: 20px 10px; }
  .c-rail .c-marca span, .c-rail nav a, .c-paso { font-size: 0; }
  .c-paso { justify-content: center; padding: 10px; }
  .c-paso-num { font-size: 12px; }
  .c-rail nav a { justify-content: center; padding: 12px; }
  .c-rail .c-marca { justify-content: center; padding: 0; }
  .c-pareja { justify-content: center; }
  .c-pareja-txt, .c-salir { display: none; }
  .c-main { margin-left: 76px; }
  .c-grid { grid-template-columns: minmax(320px, 420px) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .c-rail { display: none; }
  .c-main { margin-left: 0; }
  .c-top { padding: 0 16px; height: 60px; }
  .c-marca-movil { display: inline-flex; padding: 0; font-size: 17px; }
  .c-marca-movil span { display: none; }
  .c-top-tit h1 { font-size: 17px; }
  .c-top-tit .c-badge, .c-top-txt small { display: none; }
  .c-solo-movil { display: inline-flex; }
  body[data-ver="editor"] .c-ver-editor, body[data-ver="previa"] .c-ver-previa { display: none; }
  .c-top-acc .b-btn span { display: none; }
  .c-top-acc .b-btn { padding: 0 12px; }
  .c-tabs { margin: 0 16px; }
  .c-disp { display: none; }
  .c-grid { grid-template-columns: 1fr; padding: 12px 16px 24px; }
  .c-previa { display: none; position: static; }
  body[data-ver="previa"] .c-editor, body[data-ver="previa"] .c-pie { display: none; }
  body[data-ver="previa"] .c-previa { display: block; }
  .c-navegador { height: calc(100vh - 210px); min-height: 480px; }
    .c-previa select { max-width: 130px; }
  .c-marco { padding: 10px; }
}
@media (max-width: 460px) {
  .c-fila { flex-direction: column; }
  .c-fila.c-nombres { flex-direction: row; gap: 8px; }   /* «Ana [&] Luis» se lee en una línea, como en la web */
  .c-fila.c-nombres > .c-union { flex-basis: 66px; }
  .c-hora { flex-basis: auto; }
  .c-temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-editor { padding: 20px 16px; }
  .c-top-tit h1 { font-size: 15px; }
}

/* Tipografías de autor (Pack Atelier): muestras en imagen; en el Esencial, bloqueadas */
.c-autor { margin-top: 22px; }
.c-autor .c-fuentes { margin-top: 10px; }
.c-fuente-img { display: block; height: 30px; width: auto; max-width: 100%; object-fit: contain; }
.c-bloq-nota { margin: 14px 0 8px; }
.c-fuente.is-bloq { cursor: not-allowed; opacity: .78; background: repeating-linear-gradient(135deg, transparent 0 8px, rgb(0 0 0 / .025) 8px 16px); }
.c-fuente.is-bloq .c-fuente-img { filter: grayscale(1); opacity: .6; }
.c-candado { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #A8864A); }
.c-candado::before { content: '🔒 '; }

/* Código de regalo (cortesía) */
.c-check[hidden] { display: none; }
.c-codigo input { text-transform: uppercase; letter-spacing: .12em; font-variant-numeric: tabular-nums; }

/* Panel del estudio (app/estudio.php) */
.estudio .est-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.est-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.est-nav a { color: var(--ink-2, #555); text-decoration: none; }
.est-nav a:hover { color: var(--ink, #191C1D); text-decoration: underline; }
.est-main { max-width: 1180px; }
.est-login { display: grid; gap: 14px; max-width: 380px; }
.est-error { color: #B3261E; margin: 0; }
.est-ok { padding: 10px 14px; border-radius: 10px; background: #EEF6EE; color: #1E5B2A; }
.est-aviso { padding: 10px 14px; border-radius: 10px; background: #FFF6E5; }
.est-resumen { color: var(--ink-2, #555); }
.est-tabla-wrap { overflow-x: auto; border: 1px solid var(--line, #E5E0D8); border-radius: 14px; background: #fff; }
.est-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.est-tabla th, .est-tabla td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-soft, #F0ECE6); }
.est-tabla th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2, #666); background: #FBF9F6; }
.est-tabla tr:last-child td { border-bottom: 0; }
.est-tabla small { color: var(--ink-2, #777); }
.est-tabla form { margin: 0; }
.est-num { text-align: right; font-variant-numeric: tabular-nums; }
.est-archivada td, .est-apagado td { color: #999; }
.est-nota { font-size: 13px; color: var(--ink-2, #777); }
.est-crear { display: grid; grid-template-columns: 90px 170px 1fr; gap: 12px; align-items: end; margin-bottom: 20px; }
.est-crear .c-check, .est-crear button { grid-column: 1 / -1; justify-self: start; }
.est-codigo-nuevo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; padding: 16px 18px; border-radius: 14px; background: #FBF4E4; border: 1px solid #E8D5A8; }
.est-codigo-nuevo b { font-size: 24px; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .est-crear { grid-template-columns: 1fr; } }

/* Seguir en otro dispositivo (borrador por enlace, 25-sep) */
.c-pasar { padding: 0; border: 0; background: none; font: inherit; color: var(--gold-ink, #8A6A2E); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.c-dlg { width: min(520px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 30px 80px -20px rgb(0 0 0 / .35); }
.c-dlg::backdrop { background: rgb(25 28 29 / .45); }
.c-dlg-cuerpo { display: grid; gap: 12px; padding: 26px 26px 20px; }
.c-dlg-cuerpo h2 { margin: 0; font-size: 22px; }
.c-dlg-cuerpo p { margin: 0; }
.c-dlg-cuerpo > .b-btn { justify-self: start; }
.c-dlg-zona { display: grid; gap: 10px; }
.c-dlg-url { width: 100%; padding: 10px 12px; border: 1px solid var(--line, #E5E0D8); border-radius: 10px; font-size: 13px; }
.c-dlg-bot { display: flex; gap: 10px; flex-wrap: wrap; }
.c-dlg-error { color: #B3261E; }
.c-dlg-cerrar { justify-self: end; }
.c-dlg-zona .c-link-mal { justify-self: start; }

/* ---------- móvil cómodo (27-sep-2026) ----------
   El creador en un teléfono: la rejilla desbordaba (1fr crecía al ancho de las muestras de letra),
   las pestañas se quedaban arriba al bajar por un paso de 2.000 px, los campos a 14 px hacían
   zoom en iPhone al tocarlos, y la vista previa metía un móvil dibujado dentro del móvil. */
.c-sigue { display: none; }
@media (max-width: 900px) {
  /* Pestañas pegadas bajo la cabecera, con aviso de que hay más a la derecha */
  .c-tabs { position: sticky; top: 60px; z-index: 14; margin: 0; padding: 0 10px; background: rgba(253, 251, 249, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .c-tabs.al-final { -webkit-mask-image: none; mask-image: none; }
  .c-tabs button { padding: 14px 12px; }
  .c-tabs button::before { content: attr(data-num) '. '; color: var(--ink-3); font-weight: 400; }
  .c-tabs { display: none; }
  .c-panel { scroll-margin-top: calc(var(--tope, 140px) + 8px); }
  .c-sec { scroll-margin-top: calc(var(--tope, 140px) + 16px); }

  /* Sin zoom al escribir (iOS amplía todo campo por debajo de 16 px) */
  .c-campo input, .c-campo textarea, .c-slug input, .c-galeria-item input, .c-dlg-url, .c-previa select { font-size: 16px; }

  /* Dedos, no ratón: mínimo ~40 px */
  .c-mini { width: 40px; height: 40px; font-size: 14px; }
  .c-orden button { width: 40px; height: 40px; }
  .c-item-cab .c-link, .c-hotel-cab .c-link, .c-borrar { min-height: 40px; padding: 8px 4px; }
  .c-check { min-height: 40px; align-items: center; }
  .c-check input { width: 22px; height: 22px; margin: 0; }
  .c-switch { width: 46px; height: 28px; }
  .c-switch::after { top: 4px; left: 4px; width: 20px; height: 20px; }
  .c-switch:checked::after { transform: translateX(18px); }
  .c-sec-fila { padding: 4px 12px; }
  .c-btn-sm { min-height: 42px; }

  /* Anterior / Siguiente al pie de cada paso: sin volver arriba a buscar la pestaña */
  .c-sigue { display: flex; gap: 10px; margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
  .c-sigue .b-btn { flex: 1; min-height: 48px; padding: 0 14px; font-size: 14px; }
  .c-sigue .c-sigue-ant { flex: 0 0 auto; }

  /* Botón de la vista previa con texto (el icono solo no se entendía), accesible siempre */
  .c-top-acc .c-ver-previa span, .c-top-acc .c-ver-editor span { display: inline; }
  .c-top-acc .c-ver-previa, .c-top-acc .c-ver-editor { padding: 0 12px; }

  /* Vista previa: la web a todo el ancho, sin barra de navegador ni marco de teléfono dibujados */
  body[data-ver="previa"] .c-grid { padding: 0; }
  .c-navegador { height: calc(100dvh - var(--tope, 140px) - 76px - env(safe-area-inset-bottom, 0px)); min-height: 0; border: 0; border-radius: 0; box-shadow: none; background: #fff; }
  .c-nav-barra { gap: 8px; padding: 8px 12px; flex-wrap: wrap; }
  .c-dots { display: none; }
  .c-previa select { max-width: none; flex: 1; min-height: 40px; }
  .c-marco, .c-marco[data-disp="movil"] { padding: 0; }
  .c-marco[data-disp="movil"] iframe { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
}
@media (max-width: 460px) {
  .c-grid { padding: 10px 10px 24px; }
  .c-editor { padding: 20px 14px; }
  .c-top { gap: 10px; padding: 0 12px; }
  .c-top-acc { gap: 8px; }
  /* En el teléfono no cabe el texto de «Publicar» junto a «Vista previa»: se queda el de la vista */
  .c-top-acc #irPublicar span, .c-top-acc #guardarTop span { display: none; }
  .c-atelier-esencial { gap: 10px; }
  .c-atelier-esencial .c-atelier-img { width: 56px; }
}

/* ---------- móvil: el paso a la vista y la vista previa al terminar el estilo (27-sep-2026) ----------
   Prototipo aprobado por el owner (artifact «Creador BodaEnlace en el móvil»). Piezas creadas en
   crear.js; en escritorio no se ven. */
.c-pm, .c-falta, .c-toast, .c-previa-pie, .c-ver-punto { display: none; }
@media (max-width: 900px) {
  :root { --spring: cubic-bezier(.2, .9, .25, 1.15); --out: cubic-bezier(.2, .8, .2, 1); }

  /* Tarjeta fija con el paso actual */
  .c-pm { display: block; position: sticky; top: 60px; z-index: 14; padding: 8px 16px 12px; background: rgba(253, 251, 249, .96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
  .c-pm-btn { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 14px;
    background: var(--paper); box-shadow: var(--e1); cursor: pointer; text-align: left; transition: transform .2s var(--spring); }
  .c-pm-btn:active { transform: scale(.98); }
  .c-pm-num { position: relative; width: 38px; height: 38px; flex-shrink: 0; }
  .c-pm-num svg { width: 38px; height: 38px; transform: rotate(-90deg); }
  .c-pm-num circle { fill: none; stroke-width: 3; }
  .c-pm-fondo { stroke: var(--surface-high); }
  .c-pm-arco { stroke: var(--ok); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .7s var(--out); }
  .c-pm-num b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 18px; font-weight: 400; }
  .c-pm-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
  .c-pm-txt small { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--bronze); }
  .c-pm-nom { font-family: var(--serif); font-size: 21px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .c-pm-entra { animation: c-sube-txt .4s var(--out); }
  @keyframes c-sube-txt { from { opacity: 0; transform: translateY(8px); } }
  .c-pm-todos { flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .c-pm-todos::after { content: ''; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
  .c-pm-barra { display: flex; gap: 4px; margin-top: 10px; }
  .c-pm-barra i { flex: 1; height: 4px; border-radius: 4px; background: var(--surface-high); position: relative; overflow: hidden; }
  .c-pm-barra i::after { content: ''; position: absolute; inset: 0; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--out); }
  .c-pm-barra i.hecho::after { transform: scaleX(1); background: var(--ok); }
  .c-pm-barra i.actual::after { transform: scaleX(.4); background: var(--rose); }
  .c-pm-barra i.falta::after { transform: scaleX(1); background: var(--mal); }

  /* Hoja con todos los pasos (<dialog> modal) */
  .c-sin-scroll { overflow: hidden; }
  .c-hoja { inset: auto 0 0 0; width: 100%; max-width: 100%; max-height: 85dvh; margin: 0; padding: 0; border: 0; overflow-y: auto;
    border-radius: 24px 24px 0 0; background: var(--surface); color: var(--ink); box-shadow: var(--e3); transform: translateY(105%); transition: transform .45s var(--out); }
  .c-hoja::backdrop { background: rgba(38, 34, 32, 0); transition: background .3s; }
  .c-hoja.ve { transform: translateY(0); }
  .c-hoja.ve::backdrop { background: rgba(38, 34, 32, .35); }
  .c-hoja-cuerpo { padding: 10px 14px calc(18px + env(safe-area-inset-bottom, 0px)); }
  .c-hoja-cuerpo::before { content: ''; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 12px; }
  .c-hoja h2 { margin: 0 4px 8px; font-family: var(--serif); font-weight: 400; font-size: 22px; }
  .c-hoja ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .c-hoja li { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--out), transform .3s var(--out); }
  .c-hoja.ve li { opacity: 1; transform: none; }
  .c-hoja.ve li:nth-child(2) { transition-delay: .03s; } .c-hoja.ve li:nth-child(3) { transition-delay: .06s; } .c-hoja.ve li:nth-child(4) { transition-delay: .09s; }
  .c-hoja.ve li:nth-child(5) { transition-delay: .12s; } .c-hoja.ve li:nth-child(6) { transition-delay: .15s; } .c-hoja.ve li:nth-child(7) { transition-delay: .18s; }
  .c-hoja li button { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 6px 10px; border: 0; border-radius: 12px; background: none;
    text-align: left; cursor: pointer; font-size: 14px; font-weight: 500; }
  .c-hoja li button[aria-current="step"] { background: var(--bronze-c); }
  .c-hoja-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); font-size: 12px; color: var(--ink-3); background: var(--paper); }
  .c-hoja .hecho .c-hoja-n { background: var(--ok); border-color: var(--ok); color: #fff; animation: c-late .45s var(--spring); }
  .c-hoja .hecho .c-hoja-estado { color: var(--ok); font-weight: 500; }
  .c-hoja .falta .c-hoja-estado { color: var(--rose); font-weight: 500; }
  /* El paso en el que se está, ya completado: el número pasa a verde */
  .c-pm.es-hecho .c-pm-num b { color: var(--ok); }
  .c-pm.es-hecho .c-pm-num b::before { content: '✓'; }
  .c-pm.es-hecho .c-pm-num b { font-size: 0; }
  .c-pm.es-hecho .c-pm-num b::before { font-family: var(--sans); font-size: 16px; font-weight: 600; animation: c-late .45s var(--spring); }
  @keyframes c-late { 0% { transform: scale(.4); } 60% { transform: scale(1.15); } }
  .c-hoja-estado { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-3); }

  /* «Ver mi web»: el botón que más destaca, con punto que late si hay cambios sin ver */
  .c-top-acc .c-ver-previa { position: relative; overflow: hidden; border: 0; background: linear-gradient(90deg, var(--rose-btn), var(--rose-btn-2)); color: #fff; font-weight: 600;
    box-shadow: var(--e-rose); transition: transform .2s var(--spring); }
  .c-top-acc .c-ver-previa:hover { background: linear-gradient(90deg, var(--rose-btn), var(--rose-btn-2)); filter: brightness(1.05); }
  .c-top-acc .c-ver-previa::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%); transform: translateX(-120%); pointer-events: none; }
  .c-ver-previa.brilla::after { animation: c-brillo 1.1s var(--out); }
  @keyframes c-brillo { to { transform: translateX(120%); } }
  .c-ver-punto { display: block; position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .3s var(--spring); }
  .c-ver-previa.pendiente .c-ver-punto { transform: scale(1); }
  .c-ver-previa.pendiente .c-ver-punto::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: c-onda 1.6s ease-out infinite; }
  @keyframes c-onda { from { transform: scale(1); opacity: .8; } to { transform: scale(3); opacity: 0; } }

  /* Lo que falta del estilo: fijo bajo la tarjeta de paso mientras se baja por las opciones */
  .c-falta { display: flex; gap: 6px; flex-wrap: wrap; position: sticky; top: var(--tope, 140px); z-index: 3; margin: 12px -12px 0; padding: 10px 12px;
    background: linear-gradient(var(--paper) 78%, rgba(255, 255, 255, 0)); }
  .c-falta > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 7px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--paper);
    font-size: 12px; font-weight: 500; color: var(--ink-2); transition: background .3s, border-color .3s, color .3s; }
  .c-falta i { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .3s, border-color .3s; }
  .c-falta i::after { content: ''; position: absolute; left: 4px; top: 1px; width: 4px; height: 8px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) scale(0); transition: transform .3s .1s var(--spring); }
  .c-falta .si { background: #f5efe2; border-color: var(--gold); color: var(--ink); }
  .c-falta .si i { background: var(--gold); border-color: var(--gold); }
  .c-falta .si i::after { transform: rotate(45deg) scale(1); }

  /* Elegir una tarjeta: muelle y una marca que salta */
  .c-tema, .c-fuente, .c-deco, .c-atelier-card { transition: border-color .2s, box-shadow .2s, background .2s, transform .35s var(--spring); }
  .c-tema:active, .c-fuente:active, .c-deco:active, .c-atelier-card:active { transform: scale(.96); }
  .c-tema::after, .c-fuente::after, .c-deco::after, .c-atelier-card:not(.c-atelier-esencial)::after { content: ''; position: absolute; top: 6px; right: 6px; z-index: 1; width: 22px; height: 22px; border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
    transform: scale(0); transition: transform .35s var(--spring); pointer-events: none; }
  .c-tema:has(input:checked)::after, .c-fuente:has(input:checked)::after, .c-deco:has(input:checked)::after, .c-atelier-card:has(input:checked)::after { transform: scale(1); }

  /* Aviso «Estilo listo» */
  .c-toast { display: flex; align-items: center; gap: 10px; position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 45; max-width: calc(100vw - 32px);
    padding: 12px 18px 12px 12px; border-radius: var(--pill); background: var(--espresso); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--e3);
    transform: translate(-50%, 160%); opacity: 0; transition: transform .45s var(--spring), opacity .3s; pointer-events: none; }
  .c-toast.ve { transform: translate(-50%, 0); opacity: 1; }
  .c-toast i { width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
    background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }

  /* Vista previa: sube desde abajo y lleva «Cambiar» / «Seguir» al pie */
  body[data-ver="previa"] .c-previa { animation: c-sube .5s var(--out); }
  @keyframes c-sube { from { transform: translateY(40px); opacity: 0; } }
  .c-previa-pie { display: flex; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line-soft); }
  .c-previa-pie .b-btn { flex: 1; min-height: 48px; padding: 0 12px; font-size: 14px; }
  .c-previa-pie .b-paper { flex: 0 0 auto; }

  /* Cambiar de paso: el contenido entra deslizándose */
  .c-grid { overflow-x: clip; }
  .c-panel:not([hidden]) { animation: c-entra .38s var(--out); }
  @keyframes c-entra { from { opacity: 0; transform: translateX(28px); } }
}

/* Pasos completados en el carril de escritorio (27-sep-2026): mismo verde que en el móvil */
.c-paso.hecho .c-paso-num { background: var(--ok); border-color: var(--ok); color: #fff; }
.c-paso.falta .c-paso-num { border-color: var(--mal); color: var(--mal); }

/* Interruptor «Vuestro estilo | Diseño premium» (27-sep-2026, opción A del owner): solo en el móvil */
.c-seg { display: none; }
@media (max-width: 900px) {
  .c-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--pill); background: var(--surface-high); }
  .c-seg button { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px; padding: 4px 8px;
    border: 0; border-radius: var(--pill); background: none; color: var(--ink-2); font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; transition: color .25s; }
  .c-seg button small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
  .c-seg button[aria-pressed="true"] { color: var(--ink); }
  .c-seg button[aria-pressed="true"] small { color: var(--bronze); }
  .c-seg-pulgar { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--pill); background: var(--paper); box-shadow: var(--e1);
    transition: transform .4s var(--spring); }
  [data-modo-estilo="premium"] .c-seg-pulgar { transform: translateX(100%); }
  /* Un camino a la vez. La tarjeta Esencial la sustituye el interruptor (lleva su precio) */
  [data-modo-estilo] .c-atelier-esencial { display: none; }
  [data-modo-estilo="propio"] .c-atelier-cab-sep, [data-modo-estilo="propio"] #atelier, [data-modo-estilo="propio"] #fuentesAutor { display: none; }
  [data-modo-estilo="premium"] #estiloPropio { display: none; }
  [data-modo-estilo="premium"] .c-atelier-cab-sep { margin-top: 0; padding-top: 0; border-top: 0; }
  [data-modo-estilo] .c-atelier-cab-sep .c-atelier-precio { display: none; }
  #estiloPropio { padding-left: 0; border-left: 0; }
  .c-seg-entra { animation: c-entra .38s var(--out); }
  /* Con un diseño Atelier elegido, «Vuestro estilo» enseña igualmente sus opciones (pintaAtelier las oculta) */
  [data-modo-estilo="propio"] #estiloPropio[hidden] { display: flex; }
  .c-modo-aviso { margin: 12px 0 0; padding: 12px 14px; border-radius: var(--r); background: var(--blush); color: var(--ink-2); font-size: 13px; }
  .c-modo-aviso[hidden] { display: none; }
}
