/* Área privada de tiendas (/tiendas). Se apoya en style.css */
.tiendas .brand small { display: block; font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sage); line-height: 1; }
.tiendas .t-nav a.on { color: var(--accent-dark); border-bottom: 2px solid var(--accent); }
.tiendas .page { padding: 40px 0 64px; }
.tiendas h1 { margin: 0 0 .5rem; }
.tiendas h1 small { display: block; font-size: 1rem; font-weight: 500; color: var(--ink-soft); margin-top: .3rem; }
.tiendas h2 { font-size: 1.2rem; margin: 1.2rem 0 .2rem; }
.t-hero { padding: 72px 0 48px; }
.t-hero h1 { max-width: 760px; }
.t-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.t-steps li { margin: .6rem 0; }
.t-narrow { max-width: 480px; }
.t-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 1rem; }
.t-head h1 { margin: 0; flex: 1 1 auto; }
.t-status { display: inline-block; padding: .3em .9em; border-radius: 999px; font-size: .85rem; font-weight: 700; background: var(--bg-alt); color: var(--ink-soft); }
.t-status-active { background: #e4f1e7; color: #2e6b3f; }
.t-status-pending { background: #fbeedc; color: #9a5b12; }
.t-status-disabled { background: #f6dcd6; color: #9c3522; }
.t-switch { margin: 14px auto 0; }
.t-switch label { font-weight: 600; font-size: .95rem; }
.t-switch select { padding: .4em .8em; border-radius: 8px; border: 1px solid var(--line); font: 1rem var(--font); background: var(--surface); }
.t-flash { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-weight: 500; background: #e4f1e7; color: #2e6b3f; border: 1px solid #c6e0cd; }
.t-flash-warn { background: #fbeedc; color: #7a4608; border-color: #f1d9b5; }
.t-flash-error { background: #f6dcd6; color: #8a2d1b; border-color: #ecc1b7; }
.t-flash a { color: inherit; font-weight: 700; }
.t-form { margin-top: 1rem; }
.t-form hr { border: 0; border-top: 1px solid var(--line); margin: .4rem 0; }
.t-form label small { font-weight: 400; color: var(--ink-soft); }
.t-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.t-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.t-help { color: var(--ink-soft); font-size: .95rem; }
.t-empty { color: var(--ink-soft); font-style: italic; }
.t-map { height: 380px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-alt); }
.t-logo-prev { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.t-cover-prev { width: 100%; max-width: 360px; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.t-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 1rem 0 1.5rem; }
.t-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.t-kpi b { font-size: 2rem; line-height: 1; color: var(--accent-dark); }
.t-kpi span { font-weight: 600; }
.t-kpi small { color: var(--ink-soft); }
.t-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.t-card h3 { margin-top: 0; }
.t-card h4 { margin: 1rem 0 .3rem; font-size: .95rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.t-check { padding-left: 1.3rem; }
.t-check li { margin: .4rem 0; }
.t-check li.done { color: var(--ink-soft); text-decoration: line-through; }
.t-check li.done::marker { content: "✓ "; color: var(--sage); }
.t-bars { display: grid; gap: 6px; }
.t-bar { display: grid; grid-template-columns: 7.5em 1fr 3.5em; align-items: center; gap: 10px; font-size: .95rem; }
.t-bar-t { height: 12px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.t-bar-t i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.t-bar-n { text-align: right; color: var(--ink-soft); }
.t-table { width: 100%; font-size: .95rem; }
.t-table th, .t-table td { text-align: left; padding: 8px 10px; vertical-align: top; }
.t-table small { color: var(--ink-soft); }
.t-posts { display: grid; gap: 14px; margin-top: 1rem; }
.t-post { display: grid; grid-template-columns: 150px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.t-post-off { opacity: .6; }
.t-post-img { position: relative; background: var(--bg-alt); min-height: 110px; display: grid; place-items: center; color: var(--ink-soft); font-size: .85rem; }
.t-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-badge { position: absolute; left: 8px; bottom: 8px; background: rgba(31,42,46,.85); color: #fff; font-size: .75rem; padding: .2em .6em; border-radius: 999px; }
.t-post-body { padding: 12px 16px 12px 0; }
.t-post-body h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.t-post-body h3 small { font-weight: 600; color: var(--accent-dark); margin-left: .5em; }
.t-meta { color: var(--ink-soft); font-size: .88rem; margin: 0 0 .5rem; }
.t-actions { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .95rem; }
.t-actions .text-link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent-dark); font-weight: 600; cursor: pointer; text-decoration: underline; }
.t-actions .text-link[disabled] { color: var(--ink-soft); cursor: default; text-decoration: none; }
.t-danger { color: #9c3522 !important; }
.t-danger-box { border-color: #ecc1b7; }
.t-btn-danger { background: #9c3522; }
.t-cartel-prev { display: flex; gap: 20px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-top: 1.5rem; }
.t-cartel-prev img { flex: none; background: #fff; border-radius: 12px; padding: 8px; }
@media (max-width: 720px) {
  .t-grid2, .t-grid3 { grid-template-columns: 1fr; }
  .t-post { grid-template-columns: 110px 1fr; }
  .t-cartel-prev { flex-direction: column; text-align: center; }
}
.t-status-review { background: #e3ecf7; color: #2a4f80; }
.t-row-review td { background: #fbf6ea; }

/* Ojito en los campos de contraseña */
.t-pass { position: relative; display: block; }
.t-pass input { width: 100%; padding-right: 2.8em !important; }
.t-eye { position: absolute; right: .4em; top: 50%; transform: translateY(-50%); border: 0; background: none; cursor: pointer; font-size: 1.1em; line-height: 1; padding: .3em; opacity: .45; }
.t-eye.on, .t-eye:hover { opacity: 1; }

/* Dirección: calle + número */
.t-grid3 .t-addr { grid-column: span 2; }
.t-grid3 .t-num input { max-width: 7em; }
@media (max-width: 640px) { .t-grid3 .t-addr { grid-column: auto; } }
/* Ayuda para tiendas (v5) */
.t-ayuda-hero { max-width: 720px; margin-bottom: 1.5rem; }
.t-ayuda-hero .lead { font-size: 1.15rem; color: var(--ink-soft); }
.t-ayuda-toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin: 0 0 2.5rem; }
.t-ayuda-toc a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-weight: 600; color: var(--ink); text-decoration: none; }
.t-ayuda-toc a:hover { border-color: var(--accent); color: var(--accent-dark); }
.t-ayuda-toc span { font-size: 1.3rem; }
.t-ayuda-sec { margin: 0 0 3rem; scroll-margin-top: 90px; }
.t-ayuda-sec h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 .5rem; }
.t-ayuda-ico { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 1.4rem; }
.t-ayuda-intro { color: var(--ink-soft); font-size: 1.05rem; max-width: 760px; margin: 0 0 1.2rem; }
.t-ayuda-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.t-ayuda-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.t-ayuda-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.t-ayuda-card p { margin: 0; color: var(--ink); line-height: 1.55; }
.t-ayuda-faq { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 10px; }
.t-ayuda-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.t-ayuda-faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 400; }
.t-ayuda-faq[open] summary::after { content: "−"; }
.t-ayuda-faq p { margin: 0 0 16px; line-height: 1.55; }
.t-ayuda-contact { margin-top: 2rem; padding: 18px 20px; background: #fbeedc; border-radius: 12px; font-weight: 600; }
/* Prospección (admin) */
.btn-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--ink); }
.t-head .btn { margin-left: 6px; }
.p-kpis { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin: 1rem 0 1.2rem; }
.p-kpis .t-kpi { text-decoration: none; color: inherit; padding: 12px 14px; }
.p-kpis .t-kpi b { font-size: 1.6rem; }
.p-kpis .t-kpi span { font-size: .85rem; }
.p-kpis .t-kpi.on, .p-kpis .t-kpi:hover { border-color: var(--accent); }
.p-badge { display: inline-block; padding: .25em .75em; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.p-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 10px; }
.p-panel summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.p-panel .p-form, .p-cols .p-form { margin: 0 0 14px; padding: 18px 20px; gap: 14px; background: var(--bg); }
.p-form .t-grid2, .p-form .t-grid3 { gap: 14px; }
.p-form p { margin: 0; }
.p-form textarea { min-height: 90px; font-family: var(--font); }
.p-form textarea[name=body] { min-height: 380px; }
.p-filters { display: flex; gap: 10px; align-items: center; margin: 1.2rem 0 .6rem; }
.p-filters input { flex: 1; padding: .55em .9em; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.p-table td { vertical-align: top; }
.p-table small { color: var(--ink-soft); }
.p-send { margin-top: 1.2rem; }
.p-send label { display: grid; gap: 6px; margin: .8rem 0; font-weight: 600; font-size: .95rem; }
.p-send label small { font-weight: 400; color: var(--ink-soft); }
.p-send input, .p-send select, .p-send textarea { width: 100%; box-sizing: border-box; font: 1rem var(--font); padding: .7em 1em; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.p-send textarea { min-height: 320px; resize: vertical; }
.p-send .t-grid2, .p-send .t-grid3 { gap: 14px; }
.p-send details { margin: .6rem 0; }
.p-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 760px) { .p-cols { grid-template-columns: 1fr; } }
.p-log { list-style: none; padding: 0; margin: 1rem 0 0; }
.p-log li { padding: 10px 12px; border-left: 3px solid var(--line); margin: 0 0 8px; background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.p-log li small { color: var(--ink-soft); }
.p-log-email { border-left-color: #2b4f7e !important; }
.p-log-status { border-left-color: var(--accent) !important; }
/* Estadísticas de la web (admin) */
.w-chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: 10px 12px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; }
.w-col { flex: 1 0 14px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; min-width: 14px; }
.w-bar { width: 100%; background: #e9c9bf; border-radius: 4px 4px 0 0; position: relative; min-height: 2px; display: flex; align-items: flex-end; }
.w-bar i { display: block; width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.w-col small { font-size: .65rem; color: var(--ink-soft); margin-top: 4px; }
