/* Añadidos de la v2 sobre create.css */
.lang-switch { display: flex; gap: .6rem; margin-left: auto; font-size: .9rem; }
.lang-switch a { color: inherit; text-decoration: none; opacity: .7; }
.lang-switch a[aria-current="true"] { opacity: 1; font-weight: 700; text-decoration: underline; }
.button-link { display: inline-block; text-decoration: none; padding: .55rem 1rem; border-radius: 999px; border: 1px solid currentColor; color: inherit; font-weight: 600; }
.button-link.primary, button.primary { background: #1f2a24; color: #fff; border-color: #1f2a24; }
.button-link[hidden] { display: none; }
.photo-thumb { margin-top: .6rem; width: 96px; height: 96px; object-fit: cover; border-radius: 8px; }
.form-status { min-height: 1.5em; font-size: .9rem; color: #4e5a53; }
.form-status.is-error { color: #a33a2e; }
.field-error input, .field-error textarea { border-color: #a33a2e !important; }
.sep { margin: 40px 0; }
#previewFrame { width: 100%; min-height: 80vh; border: 1px solid #dde2de; border-radius: 12px; background: #fff; }

.publish-page { max-width: 60rem; margin: 0 auto; padding: 3rem 1.25rem; }
.publish-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 2rem 0; }
.checklist { padding-left: 1.2rem; line-height: 1.8; }
.future-url { font-weight: 700; word-break: break-all; }
.pay-box { border: 1px solid #dde2de; border-radius: 12px; padding: 1.5rem; }
.price { font-size: 2rem; font-weight: 700; margin: .25rem 0; }
.pay-form { display: grid; gap: 1rem; margin: 1rem 0; }
.pay-form button { padding: .85rem 1rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; border: 0; }
.small { font-size: .9rem; opacity: .8; }
.notice { padding: .8rem 1rem; border-radius: 8px; background: #eef3ef; }
.notice-error { background: #f8ebe9; color: #a33a2e; }

/* =====================================================================
   v3 · Página de crear: formulario corto a la izquierda, vista previa fija a la derecha
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.create-v3 { padding-bottom: 0; }
.create-v3 .topbar-inner { max-width: 1280px; }
.create-v3 .topbar-brand { text-decoration: none; }
.create-v3 .topbar-inner a.button-link.primary { background: #1f2a24; color: #fff; border-color: #1f2a24; }
.create-v3 .topbar-inner a.button-link.primary:hover { background: #33433a; }
.lang-select select { min-height: 36px; margin: 0; width: auto; padding: 6px 28px 6px 10px; font-size: 14px; border-radius: 10px; background-color: transparent; color: var(--muted); }
.only-mobile { display: none !important; }

.create-layout { max-width: 1280px; display: grid; gap: 32px; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); align-items: start; padding-top: 32px; }
.create-hero h1 { font-size: 32px; margin-bottom: 8px; }
.create-hero .lead { margin: 0 0 20px; color: var(--muted); }

.create-form { display: grid; gap: 14px; padding: 22px; }
.create-form .field { display: block; margin: 0; }
.create-form .field > span, .create-form legend { display: block; font-size: 13px; color: rgba(18,18,18,.65); margin-bottom: 2px; }
.create-form .hint, .preview-head .hint { font-size: 13px; color: var(--muted); margin: 0; }

.check-row { display: flex; align-items: center; gap: 10px; margin: -4px 0 0; font-size: 14px; color: var(--text); cursor: pointer; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin: 0; flex: none; accent-color: #1f2a24; }
.create-form [hidden] { display: none !important; }

/* Foto: una sola caja que muestra la miniatura cuando ya hay foto */
.photo-pick { display: flex; align-items: center; gap: 14px; margin-top: 6px; padding: 12px 14px; border: 1px dashed rgba(18,18,18,.25); border-radius: 14px; background: #fbfaf7; cursor: pointer; color: var(--text); font-size: 15px; transition: border-color .18s ease, background .18s ease; }
.photo-pick:hover { border-color: rgba(18,18,18,.45); background: #f6f4ef; }
.photo-pick:focus-within { box-shadow: 0 0 0 3px rgba(18,18,18,.08); }
.photo-pick img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; }
.photo-pick-plus { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-size: 22px; flex: none; }
.photo-pick.has-photo .photo-pick-plus { display: none; }
.photo-pick-text { display: grid; gap: 2px; }
.photo-pick-text small { color: var(--muted); font-size: 12px; }

/* Estilos como fichas */
.themes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.themes legend { width: 100%; padding: 0; margin-bottom: 6px; }
.theme-chip { margin: 0; cursor: pointer; }
.theme-chip input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; min-height: 0; }
.theme-chip span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--text); background: #fff; }
.theme-chip span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(18,18,18,.18); }
.theme-ivory span::before { background: #fbf8f1; }
.theme-beige span::before { background: #e9dcc7; }
.theme-sage span::before { background: #b9c8b5; }
.theme-chip input:checked + span { border-color: #1f2a24; box-shadow: 0 0 0 1px #1f2a24; }
.theme-chip input:focus-visible + span { outline: 3px solid rgba(31,42,36,.35); outline-offset: 2px; }

/* Detalles opcionales plegados */
.more { border-top: 1px solid var(--soft); padding-top: 12px; }
.more summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; align-items: center; gap: 8px; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 400; }
.more[open] summary::before { content: "–"; }
.more[open] { display: grid; gap: 14px; }
.more .hint { margin-top: -6px; }

.publish-cta { justify-self: stretch; text-align: center; justify-content: center; padding: 14px 18px !important; font-size: 16px; }
.form-status { margin: 0; }

/* Vista previa fija mientras se rellena el formulario */
.preview-side { position: sticky; top: 76px; }
.preview-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 10px; }
.preview-head h2 { margin: 0; }
.create-v3 #previewFrame { height: calc(100vh - 140px); min-height: 520px; box-shadow: 0 12px 40px rgba(0,0,0,.06); }
.create-footer { max-width: 1280px; margin: 0 auto; padding: 24px 18px 40px; }

@media (max-width: 960px) {
  .create-layout { grid-template-columns: 1fr; padding-top: 20px; }
  .preview-side { position: static; scroll-margin-top: 70px; }
  .create-v3 #previewFrame { height: 80vh; }
  .only-mobile { display: inline-flex !important; }
}
@media (max-width: 560px) {
  .create-hero h1 { font-size: 26px; }
  .create-form { padding: 16px; }
}

/* =====================================================================
   v3 · Página de publicar: tarjeta de vista previa + pago
   ===================================================================== */
.publish-v3 .publish-page { max-width: 64rem; }
.publish-v3 .publish-grid { align-items: start; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.summary-card { background: #fff; border: 1px solid rgba(18,18,18,.06); border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.05); overflow: hidden; }
.summary-cover { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #f3eee5, #e8eee6); }
.summary-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.summary-body { padding: 22px 24px 24px; }
.summary-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.summary-names { font-family: var(--serif); font-size: 30px; line-height: 1.15; margin: 0 0 8px; }
.summary-meta { margin: 0; color: var(--muted); }
.summary-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 10px 12px; border-radius: 12px; background: #f6f4ef; font-size: 14px; word-break: break-all; }
.summary-url strong { font-weight: 600; }
.summary-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 14px; }
.summary-links a { color: var(--text); }
.summary-includes { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.summary-includes li::before { content: "✓"; margin-right: 8px; color: #4e6b5a; font-weight: 700; }
.publish-v3 .pay-box { background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.05); position: sticky; top: 20px; }
.publish-v3 .pay-form { background: none; border: 0; box-shadow: none; padding: 0; }
.publish-v3 .pay-form button.primary { background: #1f2a24; color: #fff; }
.publish-v3 .pay-form button.primary:hover { background: #33433a; }
.publish-v3 .pay-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 0; }
.publish-v3 .pay-form .check input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex: none; accent-color: #1f2a24; }
.create-form .theme-chip { display: inline-block; }
.more .field, .more .check-row { margin-top: 14px; }
.more .hint { margin-top: 6px; }
.publish-v3 .pay-box h2 { margin-top: 0; }
