/* =========================================================
   cataloneg — hoja de estilos base (mobile-first)
   Metáfora visual: catálogo/etiqueta de negocio físico
   — fichas de índice, etiquetas de precio, sello de tienda —
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;0,9..144,900;1,9..144,500&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    /* --- color --- */
    --ink: #14181f;
    --ink-soft: #262c37;
    --paper: #ffffff;
    --paper-card: #eef6f5;
    --line: #d7e6e3;
    --kraft: #1f8f6d;
    --kraft-dark: #146650;
    --stamp: #2f7fc4;
    --signal: #d6472b;
    --whatsapp: #25d366;

    /* --- type --- */
    --f-display: 'Fraunces', Georgia, serif;
    --f-body: 'Inter', system-ui, sans-serif;
    --f-mono: 'Space Mono', monospace;

    /* --- layout --- */
    --container: 1180px;
    --radius: 14px;
    --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
    margin: 0;
    font-family: var(--f-body);
    background: var(--paper);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

.eyebrow {
    font-family: var(--f-mono);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    color: var(--kraft-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.eyebrow:empty { display: none; }
.eyebrow::before {
    content: '';
    width: 18px;
    height: 1px;
    background: var(--kraft-dark);
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--f-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--kraft); color: var(--ink); box-shadow: 0 4px 0 var(--kraft-dark); }
.btn-primary:hover { box-shadow: 0 5px 0 var(--kraft-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-dark { background: var(--ink); color: var(--paper); box-shadow: 0 4px 0 #000; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-whatsapp { background: var(--whatsapp); color: #06210f; box-shadow: 0 4px 0 #16893f; }
.btn-block { width: 100%; }

/* ---------------- Header ---------------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled {
    background: rgba(20, 24, 31, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand {
    font-family: var(--f-display);
    font-weight: 900;
    font-size: 1.35rem;
    color: var(--paper);
    text-decoration: none;
    letter-spacing: -0.01em;
}
.brand span { color: var(--kraft); }

.nav-toggle {
    display: inline-flex;
    background: none;
    border: none;
    color: var(--paper);
    width: 40px; height: 40px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

.site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    padding: 8px 20px 24px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-nav.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.site-nav a {
    color: var(--paper);
    text-decoration: none;
    font-weight: 500;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .nav-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; align-items: center; }
.nav-user { font-size: 0.88rem; color: rgba(239,233,220,0.75); font-weight: 500; }

@media (min-width: 900px) {
    .nav-toggle { display: none; }
    .site-nav {
        position: static;
        flex-direction: row;
        align-items: center;
        background: none;
        padding: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        gap: 28px;
    }
    .site-nav a { border-bottom: none; padding: 0; font-size: 0.92rem; }
    .site-nav .nav-actions { flex-direction: row; gap: 16px; margin-top: 0; margin-left: 20px; }
}

/* ---------------- Hero ---------------- */
.hero {
    background: var(--ink);
    color: var(--paper);
    padding: calc(var(--header-h) + 56px) 0 64px;
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 12%, rgba(47,127,196,0.22), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(31,143,109,0.28), transparent 45%);
    pointer-events: none;
}
.hero .container { position: relative; display: grid; gap: 40px; }
.hero-logo {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    margin-bottom: 24px;
    object-fit: cover;
    box-shadow: 0 14px 30px -10px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-logo.img-placeholder { font-size: 0.55rem; padding: 4px; }
.hero-copy h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); margin: 14px 0 18px; }
.hero-copy h1 em { font-style: italic; color: var(--kraft); }
.hero-copy p { font-size: 1.05rem; color: rgba(239,233,220,0.82); max-width: 46ch; margin: 0 0 26px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.hero-proof { font-family: var(--f-mono); font-size: 0.78rem; color: rgba(239,233,220,0.6); }

.hero-card {
    justify-self: center;
    width: 100%;
    max-width: 340px;
    background: var(--paper-card);
    color: var(--ink);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
    transform: rotate(-3deg);
    animation: float-card 6s ease-in-out infinite;
}
.hero-card img { border-radius: 8px; aspect-ratio: 4/3; object-fit: cover; }
.hero-card .tag-strip { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-family: var(--f-mono); font-size: 0.72rem; }
.hero-card .tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--stamp); display: inline-block; margin-right: 6px; }

@keyframes float-card {
    0%, 100% { transform: rotate(-3deg) translateY(0); }
    50% { transform: rotate(-1deg) translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .hero-card { animation: none; } }

@media (min-width: 960px) {
    .hero .container { grid-template-columns: 1.1fr 0.9fr; align-items: center; }
    .hero-card { justify-self: end; }
}

/* ---------------- Secciones genéricas ---------------- */
.section { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); margin-top: 10px; }
.section-head p { color: var(--ink-soft); font-size: 1rem; max-width: 52ch; }
.section-alt { background: var(--paper-card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------------- Cómo funciona: índice de fichas ---------------- */
.steps { display: grid; gap: 14px; counter-reset: step; }
.step {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 22px 22px 26px;
    position: relative;
    border-left: 4px solid var(--kraft);
}
.step .step-index {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    color: var(--kraft-dark);
    display: block;
    margin-bottom: 8px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(4, 1fr); }
    .step { padding: 24px 20px; border-left: none; border-top: 4px solid var(--kraft); }
}

/* ---------------- Showcase (teléfono) ---------------- */
.showcase { display: grid; gap: 40px; align-items: center; }
.showcase-copy ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.showcase-copy li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.96rem; }
.showcase-copy li::before {
    content: '✓';
    flex: none;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--stamp);
    color: var(--paper);
    font-size: 0.7rem;
    display: flex; align-items: center; justify-content: center;
    margin-top: 2px;
}
.phone-frame {
    justify-self: center;
    width: 100%;
    max-width: 260px;
    aspect-ratio: 9/16;
    background: var(--ink);
    border-radius: 34px;
    padding: 10px;
    box-shadow: 0 30px 60px -25px rgba(20,24,31,0.5);
}
.phone-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }

@media (min-width: 900px) {
    .showcase { grid-template-columns: 1fr 0.8fr; }
    .showcase.reverse { grid-template-columns: 0.8fr 1fr; }
    .showcase.reverse .phone-frame { order: -1; }
}

/* ---------------- Catálogos de ejemplo ---------------- */
.demo-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.demo-card {
    display: block;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.demo-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -18px rgba(20,24,31,0.35); }
.demo-card-img { aspect-ratio: 16/10; background: #fff; overflow: hidden; }
.demo-card-img img { width: 100%; height: 100%; object-fit: cover; }
.demo-card-body { padding: 16px 18px 20px; }
.demo-card-plan {
    display: inline-block;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kraft-dark);
    background: #eef9f4;
    border-radius: 999px;
    padding: 3px 10px;
    margin-bottom: 8px;
}
.demo-card-body h3 { font-size: 1.1rem; margin: 0 0 8px; }
.demo-card-cta { font-size: 0.86rem; font-weight: 600; color: var(--ink); }

@media (min-width: 640px) {
    .demo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
    .demo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------------- Planes: etiquetas de precio ---------------- */
.plans { display: grid; gap: 22px; }
.plan-tag {
    position: relative;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 4px 16px 16px 4px;
    padding: 28px 24px 24px;
    clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
    padding-left: 40px;
    transition: transform 0.2s ease;
}
.plan-tag:hover { transform: translateY(-4px); }
.plan-tag::before {
    content: '';
    position: absolute;
    left: 12px; top: 50%;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ink);
    transform: translateY(-50%);
}
.plan-tag.is-featured { border-color: var(--kraft); box-shadow: 0 0 0 2px var(--kraft) inset; }
.plan-badge {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--signal);
    display: block;
    margin-bottom: 8px;
}
.plan-tag h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-price { font-family: var(--f-display); font-size: 2.1rem; font-weight: 700; margin: 10px 0 4px; }
.plan-price small { font-family: var(--f-body); font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.plan-price-alt { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 16px; }
.plan-tag ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.plan-tag li::before { content: '— '; color: var(--kraft-dark); }

@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .plans { grid-template-columns: repeat(4, 1fr); } }

/* Variante usada en el panel (pestaña Plan): tarjetas simples, 3 en fila + la
   personalizada a todo el ancho debajo, sin la forma de etiqueta de la landing. */
.plans-panel { gap: 18px; }
.plans-panel .plan-tag {
    clip-path: none;
    border-radius: var(--radius);
    padding: 26px 24px;
}
.plans-panel .plan-tag::before { display: none; }
.plans-panel .plan-tag h3 { font-size: 1.15rem; }
.plans-panel .plan-price { font-size: 1.8rem; margin-top: 6px; }
.plan-tag-head { margin-bottom: 4px; }
.plans-panel .plan-tag ul { margin-bottom: 20px; }
.plans-panel .plan-tag .hint { font-weight: 600; color: var(--kraft-dark); }
@media (min-width: 760px) {
    .plans-panel { grid-template-columns: repeat(3, 1fr); }
    .plans-panel .plan-tag.is-full {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 24px;
    }
    .plans-panel .plan-tag.is-full ul { margin-bottom: 0; }
    .plans-panel .plan-tag.is-full .btn,
    .plans-panel .plan-tag.is-full a.btn { width: auto; min-width: 220px; }
}

/* ---------------- Prueba social ---------------- */
.quote-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
    display: grid;
    gap: 16px;
    max-width: 640px;
}
.quote-card img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote-card blockquote { margin: 0; font-family: var(--f-display); font-size: 1.2rem; font-style: italic; }
.quote-card .who { display: flex; align-items: center; gap: 12px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------------- CTA final ---------------- */
.cta-band {
    background: var(--ink);
    color: var(--paper);
    padding: 70px 0;
    text-align: center;
}
.cta-band h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin: 12px auto 20px; max-width: 20ch; }
.cta-band .btn-primary { font-size: 1.02rem; padding: 15px 30px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink-soft); color: rgba(239,233,220,0.85); padding: 48px 0 24px; }
.footer-grid { display: grid; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand { font-size: 1.2rem; }
.footer-brand p { color: rgba(239,233,220,0.6); font-size: 0.88rem; max-width: 34ch; margin-top: 10px; }
.footer-social { display: flex; gap: 10px; margin-top: auto; padding-top: 20px; }
.footer-social a { width: 32px; height: 32px; display: block; line-height: 0; transition: transform 0.15s ease; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social svg { width: 100%; height: 100%; display: block; }
.footer-col h4 { font-family: var(--f-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--kraft); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 0.9rem; }
.footer-col a { text-decoration: none; color: inherit; }
.footer-col a:hover { color: var(--kraft); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; color: rgba(239,233,220,0.5); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

@media (min-width: 760px) {
    /* --footer-cols lo calcula includes/footer_publico.php en PHP (Navegación + una
       columna por cada grupo de 4 enlaces). "repeat(auto-fit, minmax(...))" se probó
       primero pero, combinado con el track flexible de la marca (1.4fr), colapsaba
       todo a una sola columna en vez de crear una por grupo — con el número exacto
       vía variable CSS no hay ambigüedad posible. */
    .footer-grid { grid-template-columns: 1.4fr repeat(var(--footer-cols, 2), 1fr); }
}

/* ---------------- Placeholder de imagen pendiente ---------------- */
.img-placeholder {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: repeating-linear-gradient(135deg, rgba(20,24,31,0.06), rgba(20,24,31,0.06) 10px, transparent 10px, transparent 20px), var(--paper-card);
    border: 1.5px dashed var(--line);
    border-radius: 8px;
    color: var(--ink-soft);
    font-family: var(--f-mono);
    font-size: 0.72rem;
    padding: 12px;
}

/* ---------------- Reveal on scroll ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- Formularios (registro/login) ---------------- */
.auth-wrap {
    min-height: 100vh;
    background: var(--ink);
    display: flex;
    align-items: center;
    padding: 100px 0 40px;
}
.auth-card {
    background: var(--paper-card);
    border-radius: var(--radius);
    padding: 30px 22px;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
}
.auth-card .eyebrow { margin-bottom: 10px; }
.auth-card h1 { font-size: 1.7rem; margin-bottom: 8px; }
.auth-card > p { color: var(--ink-soft); margin: 0 0 24px; font-size: 0.94rem; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.76rem; color: var(--ink-soft); margin-top: 4px; }
.slug-status-checking { color: var(--ink-soft); }
.slug-status-ok { color: var(--kraft-dark); font-weight: 600; }
.slug-status-bad { color: var(--signal); font-weight: 600; }
.field input, .field select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.field input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }
.field input:disabled {
    background: var(--paper-card);
    color: var(--ink-soft);
    cursor: not-allowed;
}
.field input:focus, .field select:focus, a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--stamp);
    outline-offset: 2px;
}
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } }

.form-error { background: #fbe7e2; border: 1px solid var(--signal); color: #8f2c17; padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 18px; }
.form-success { background: #e6f1ec; border: 1px solid var(--stamp); color: #1c4c40; padding: 12px 14px; border-radius: 8px; font-size: 0.88rem; margin-bottom: 18px; }

.auth-switch { margin-top: 20px; font-size: 0.88rem; text-align: center; color: var(--ink-soft); }
.auth-switch a { color: var(--kraft-dark); font-weight: 600; text-decoration: none; }

.plan-picker { display: grid; gap: 10px; }
.plan-picker label {
    display: flex; align-items: center; justify-content: space-between;
    border: 1.5px solid var(--line); border-radius: 8px; padding: 12px 14px;
    font-size: 0.88rem; cursor: pointer;
}
.plan-picker input { margin-right: 10px; }
.plan-picker label:has(input:checked) { border-color: var(--kraft); background: #fbf3e3; }

.field-money { position: relative; }
.field-money-prefix {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--ink-soft);
    pointer-events: none;
}
.field-money input { padding-left: 28px; }

.moneda-picker { display: grid; gap: 6px; }
.moneda-picker-head {
    display: grid;
    grid-template-columns: 1fr auto 84px 84px;
    align-items: center;
    gap: 10px;
    padding: 0 12px;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    text-align: center;
}
.moneda-picker-head span:first-child { text-align: left; }
/* .field label {display:block;...} pesa más que una sola clase — se reescala
   con .moneda-picker (padre) + .moneda-picker-row para ganarle en especificidad. */
.moneda-picker .moneda-picker-row {
    display: grid;
    grid-template-columns: 1fr auto 84px 84px;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 7px 12px;
    margin: 0;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 400;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.moneda-picker .moneda-picker-row:has(input:checked) { border-color: var(--kraft); background: #eef9f4; }
.moneda-picker .moneda-picker-row input {
    width: 16px; height: 16px;
    accent-color: var(--kraft);
    margin: 0;
}
.moneda-picker-nombre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moneda-picker-codigo { font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-soft); }
.moneda-picker-preview {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--ink-soft);
    white-space: nowrap;
    text-align: right;
}
.moneda-picker .moneda-picker-row:has(input:checked) .moneda-picker-preview { color: var(--kraft-dark); }
.moneda-picker-control { display: flex; align-items: center; justify-content: center; }
.moneda-picker-control-label { display: none; }
@media (max-width: 540px) {
    .moneda-picker-head { display: none; }
    .moneda-picker .moneda-picker-row {
        grid-template-columns: 1fr auto;
        grid-template-areas: "nombre preview" "detalle tarjeta";
        row-gap: 10px;
    }
    .moneda-picker-nombre { grid-area: nombre; }
    .moneda-picker-preview { grid-area: preview; }
    .moneda-picker-control { justify-content: flex-start; gap: 8px; }
    .moneda-picker-control:has(.moneda-check) { grid-area: detalle; }
    .moneda-picker-control:has(input[type="radio"]) { grid-area: tarjeta; justify-content: flex-end; }
    .moneda-picker-control-label {
        display: inline-block;
        font-family: var(--f-mono);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.02em;
        color: var(--ink-soft);
    }
}

/* ================= Catálogo público de un negocio ================= */
.cat-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 14px 0;
    background: transparent;
    transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}
.cat-header.is-scrolled {
    background: var(--ch-bg, rgba(20, 24, 31, 0.92));
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.cat-header .container { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cat-brand { display: flex; align-items: center; gap: 10px; color: var(--ch-fg, var(--paper)); text-decoration: none; min-width: 0; }
.cat-brand img { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none; }
.cat-brand span { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-header-actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cat-header-nav { display: none; }
@media (min-width: 760px) {
    .cat-header-nav { display: flex; gap: 24px; flex: none; }
    .cat-header-nav a { color: var(--ch-fg, var(--paper)); opacity: 0.85; text-decoration: none; font-size: 0.9rem; font-weight: 500; }
    .cat-header-nav a:hover { opacity: 1; }
}

/* ---------------- Buscador de productos, siempre visible en el header ---------------- */
.cat-header-search {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 7px 12px;
    flex: 1 1 160px;
    max-width: 220px;
    min-width: 64px;
}
.cat-search-icon { width: 16px; height: 16px; flex: none; color: var(--ch-fg, var(--paper)); opacity: 0.75; }
.cat-header-search input {
    flex: 1;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: none;
    color: var(--ch-fg, var(--paper));
    font-family: var(--f-body);
    font-size: 0.85rem;
    outline: none;
}
.cat-header-search input::placeholder { color: var(--ch-fg, var(--paper)); opacity: 0.6; }
.cat-header-search input::-webkit-search-cancel-button { display: none; }
.cat-search-clear {
    display: flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; flex: none;
    border: none; background: transparent;
    color: var(--ch-fg, var(--paper));
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.75;
    padding: 0;
}
.cat-search-clear:hover { opacity: 1; }
.cat-search-empty { text-align: center; color: var(--ink-soft); padding: 32px 12px; }

.cat-hero { background: var(--ink); padding-top: 56px; }
.cat-hero-slider { position: relative; }
.cat-hero-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.cat-hero-track::-webkit-scrollbar { display: none; }
.cat-hero-slide {
    position: relative;
    scroll-snap-align: start;
    flex: 0 0 100%;
    aspect-ratio: 16/5;
    overflow: hidden;
    background: #000;
}
@media (min-width: 760px) { .cat-hero-slide { aspect-ratio: 42/9; } }
.cat-hero-slide-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(28px) brightness(0.7) saturate(1.1);
    transform: scale(1.2);
}
.cat-hero-slide-img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.cat-hero-slide-text {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    pointer-events: none;
    color: #fff;
    font-family: var(--f-display);
    font-size: clamp(1.1rem, 3.2vw, 1.9rem);
}
.cat-hero-slide-text > * { max-width: 26ch; margin: 0 auto; text-shadow: 0 2px 14px rgba(0,0,0,0.65), 0 1px 3px rgba(0,0,0,0.8); }
.cat-hero-slide-text p { margin: 0 0 6px; }
.cat-hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px; height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(20,24,31,0.55);
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
}
.cat-hero-arrow-prev { left: 12px; }
.cat-hero-arrow-next { right: 12px; }
.cat-hero-dots {
    position: absolute;
    bottom: 16px;
    left: 0; right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.cat-hero-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; }
.cat-hero-dot.is-active { background: #fff; }

.cat-section { padding: 48px 0; }
.cat-section-head { margin-bottom: 26px; }
.cat-section-head h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin-top: 8px; }

/* ---------------- Tabs de categoría (catálogo público + preview del panel) ---------------- */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--tab-bg, var(--paper-card));
    border: 1.5px solid var(--tab-border, var(--line));
    color: var(--tab-color, var(--ink));
    font-family: var(--tab-font, var(--f-body));
    font-weight: var(--tab-weight, 500);
    padding: var(--tab-pad, 9px 18px);
    border-radius: 999px;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.cat-tab:hover { transform: translateY(-1px); }
.cat-tab.is-active { border-color: var(--tab-color, var(--kraft)); box-shadow: 0 0 0 1px var(--tab-color, var(--kraft)) inset; }
.cat-card.is-hidden-cat, .cat-card.is-hidden-page { display: none; }

.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------------- Paginación del catálogo público ---------------- */
.cat-catalog-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
}
.cat-pagesize { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.cat-pagesize-label { font-size: 0.85rem; color: var(--ink-soft, var(--ink)); margin-right: 2px; }
.cat-pagesize-btn {
    background: var(--paper-card);
    border: 1.5px solid var(--line);
    color: var(--ink);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.cat-pagesize-btn:hover { transform: translateY(-1px); }
.cat-pagesize-btn.is-active { border-color: var(--kraft); box-shadow: 0 0 0 1px var(--kraft) inset; font-weight: 600; }
.cat-pager { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cat-pager-info { font-size: 0.88rem; white-space: nowrap; }
.cat-pager button:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.cat-pager.is-hidden-page { display: none; }
@media (max-width: 480px) {
    .cat-pager { width: 100%; justify-content: space-between; gap: 8px; }
}

.cat-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.15s ease;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card .cat-card-img { aspect-ratio: 1/1; width: 100%; object-fit: cover; background: #fff; }
.cat-card .cat-card-body { padding: 12px 14px 16px; }
.cat-card h3 { font-size: 0.95rem; margin: 0; }
.cat-card-price { font-family: var(--f-mono); font-size: 1.05rem; font-weight: 700; color: var(--kraft-dark); margin-top: 6px; }
.cat-modal-price { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.cat-modal-price span {
    font-family: var(--f-mono);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 12px;
}

.cat-empty { text-align: center; padding: 40px 20px; color: rgba(239,233,220,0.7); }

.cat-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,24,31,0.72);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 200;
    padding: 0;
}
.cat-modal-backdrop.is-open { display: flex; }
.cat-modal {
    background: var(--paper);
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    border-radius: 20px 20px 0 0;
    padding: 18px 20px 32px;
    position: relative;
}
@media (min-width: 760px) {
    .cat-modal-backdrop { align-items: center; padding: 24px; }
    .cat-modal { max-width: 720px; border-radius: var(--radius); max-height: 86vh; }
}
@media (min-width: 1024px) {
    .cat-modal { max-width: 940px; }
}
.cat-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 10px -2px rgba(0,0,0,0.4);
}
.cat-gallery { margin: 8px 0 18px; }
.cat-gallery-main { position: relative; background: #000; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; }
.cat-gallery-main-bg {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.7) saturate(1.1);
    transform: scale(1.2);
}
.cat-gallery-main-img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; display: block; cursor: zoom-in; }
.cat-gallery-main-video { position: relative; z-index: 1; width: 100%; height: 100%; background: #000; }
.cat-gallery-thumb-video svg { width: 100%; height: 100%; }
.cat-gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(20,24,31,0.55); color: #fff; font-size: 1.2rem;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.cat-gallery-arrow-prev { left: 8px; }
.cat-gallery-arrow-next { right: 8px; }
.cat-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 2px; }
.cat-gallery-thumb {
    flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden;
    border: 2px solid var(--line); background: #fff; padding: 0; cursor: pointer;
}
.cat-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-gallery-thumb.is-active { border-color: var(--kraft); }

.cat-lightbox {
    position: fixed; inset: 0;
    background: rgba(10,12,16,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.cat-lightbox.is-open { display: flex; }
.cat-lightbox-img { max-width: 92vw; max-height: 82vh; object-fit: contain; }
.cat-lightbox-close {
    position: absolute; top: 16px; right: 16px;
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 1.2rem; cursor: pointer;
}
.cat-lightbox-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 1.6rem; cursor: pointer;
}
.cat-lightbox-prev { left: 12px; }
.cat-lightbox-next { right: 12px; }
.cat-lightbox-counter {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.8); font-family: var(--f-mono); font-size: 0.8rem;
}

.cat-modal h3 { font-size: 1.4rem; margin: 0 0 12px; padding-right: 40px; }
.cat-modal-desc { font-size: 0.95rem; line-height: 1.65; }
.cat-modal-desc p:first-child { margin-top: 0; }

.cat-contacto { background: var(--paper-card); border-top: 1px solid var(--line); }
.cat-contacto-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .cat-contacto-grid { grid-template-columns: 1fr 1fr; } }
.cat-contacto-info { display: grid; gap: 18px; font-size: 0.94rem; }
.cat-contacto-info strong { display: block; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--kraft-dark); font-family: var(--f-mono); margin-bottom: 4px; }
.cat-redes { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-redes a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1.5px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    color: var(--ink);
}
.cat-redes a svg { width: 18px; height: 18px; }
.cat-redes a:hover { border-color: var(--ink); background: var(--paper-card); }
.cat-redes-footer { justify-content: center; margin-bottom: 14px; }
.cat-redes-footer a { border-color: var(--cf-fg, rgba(239,233,220,0.85)); opacity: 0.7; color: var(--cf-fg, rgba(239,233,220,0.85)); }
.cat-redes-footer a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.cat-map { border: none; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); }

.cat-scroll-top {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--ink);
    color: var(--paper);
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
    z-index: 90;
}
.cat-scroll-top.is-visible { display: flex; }
/* Cuando hay botón flotante de WhatsApp debajo, este sube para no encimarse. */
.cat-scroll-top.cat-scroll-top-alto { bottom: 82px; }

.cat-whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.45);
    z-index: 95;
}
.cat-whatsapp-float svg { width: 28px; height: 28px; }
.cat-whatsapp-float:hover { filter: brightness(1.05); }

.cat-compartir-estado {
    position: fixed;
    bottom: 20px; left: 20px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    background: var(--whatsapp);
    color: #06210f;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: none;
    align-items: center; justify-content: center;
    gap: 7px;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.4);
    z-index: 90;
}
.cat-compartir-estado.is-visible { display: flex; }
.cat-compartir-estado svg { width: 17px; height: 17px; flex: none; }

/* Botón flotante de WhatsApp de la landing principal (cataloneg.com) */
.site-whatsapp-float {
    position: fixed;
    bottom: 20px; right: 20px;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 20px -6px rgba(0,0,0,0.45);
    z-index: 200;
}
.site-whatsapp-float svg { width: 30px; height: 30px; }
.site-whatsapp-float:hover { filter: brightness(1.05); }

.cat-footer { background: var(--cf-bg, var(--ink)); color: var(--cf-fg, rgba(239,233,220,0.85)); padding: 40px 0 22px; text-align: center; }
.cat-footer .cat-brand { justify-content: center; margin-bottom: 14px; color: var(--cf-fg, var(--paper)); }
.cat-footer p { font-size: 0.82rem; color: var(--cf-fg, rgba(239,233,220,0.55)); opacity: 0.7; margin: 4px 0 0; }
.cat-footer-nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-footer-nav a { color: var(--cf-fg, rgba(239,233,220,0.75)); opacity: 0.9; text-decoration: none; font-size: 0.85rem; }

/* ================= Panel de administración ================= */
.panel-body { background: var(--paper); min-height: 100vh; }

.panel-topbar {
    background: var(--ink);
    color: var(--paper);
    padding: 14px 0;
    overflow-x: hidden;
}
.panel-topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.panel-topbar .brand { font-size: 1.1rem; }
.panel-topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--paper);
    width: 36px; height: 36px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex: none;
}
.panel-topbar-toggle svg { width: 22px; height: 22px; }
.panel-topbar-right { display: flex; align-items: center; gap: 14px; font-size: 0.85rem; }
.panel-topbar-right a { color: rgba(239,233,220,0.75); text-decoration: none; white-space: nowrap; }
.panel-topbar-right a:hover { color: var(--paper); }
.panel-topbar-right span { white-space: nowrap; }

@media (max-width: 759px) {
    .panel-topbar-toggle { display: flex; }
    .panel-topbar-right {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 14px;
        margin-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.12);
    }
    .panel-topbar-right.is-open { display: flex; }
    .panel-topbar .container { flex-wrap: wrap; }
    .btn-copy-link { width: 100%; }
}
.btn-copy-link {
    background: transparent;
    border: 1.5px solid rgba(239,233,220,0.35);
    color: var(--paper);
}
.btn-copy-link:hover { border-color: var(--paper); }

.panel-plan-badge {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(31,143,109,0.2);
    color: #7fe0bd;
    border: 1px solid rgba(127,224,189,0.35);
    padding: 4px 10px;
    border-radius: 999px;
}

.panel-tabs {
    display: flex;
    gap: 4px;
    background: var(--paper-card);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.panel-tabs a {
    flex: none;
    padding: 14px 18px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--ink-soft);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}
.panel-tabs a.is-active { color: var(--ink); border-bottom-color: var(--kraft); }

.panel-main { padding: 28px 0 64px; }
.panel-head { margin-bottom: 22px; }
.panel-head h1 { font-size: 1.5rem; }
.panel-head p { color: var(--ink-soft); font-size: 0.92rem; margin: 6px 0 0; }

.panel-card {
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}
.panel-card h2 { font-size: 1.05rem; margin-bottom: 4px; }
.panel-card .panel-card-hint { color: var(--ink-soft); font-size: 0.85rem; margin: 0 0 18px; }

.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-family: var(--f-body);
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
    resize: vertical;
}

.btn-sm { padding: 8px 14px; font-size: 0.82rem; }
.btn-outline { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-danger { background: #fbe7e2; color: #8f2c17; border: 1.5px solid var(--signal); }
.btn-danger:hover { background: #f7d6cd; }

.img-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 12px;
    margin: 16px 0;
}
.img-grid-item { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1/1; background: #fff; }
.img-grid-item img { width: 100%; height: 100%; object-fit: cover; }
.img-grid-item form { position: absolute; top: 6px; right: 6px; }
.img-grid-item .btn-remove {
    position: absolute; top: 6px; right: 6px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(20,24,31,0.75);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    display: flex; align-items: center; justify-content: center;
}
.img-badge-portada {
    position: absolute; bottom: 6px; left: 6px;
    background: rgba(20,24,31,0.8);
    color: #ffd76a;
    font-family: var(--f-mono);
    font-size: 0.62rem;
    padding: 3px 8px;
    border-radius: 999px;
}
.img-grid-cell { display: flex; flex-direction: column; gap: 6px; }
.img-grid-controls { display: flex; gap: 4px; }
.img-grid-controls button {
    flex: 1;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 6px;
    padding: 5px 0;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--ink-soft);
}
.img-grid-controls button:hover { border-color: var(--ink); color: var(--ink); }
.img-grid-controls button:disabled { opacity: 0.35; cursor: not-allowed; }
.img-grid-controls button.is-active { background: var(--ink); color: #ffd76a; border-color: var(--ink); }
.img-upload-limit { font-family: var(--f-mono); font-size: 0.76rem; color: var(--ink-soft); }

.hero-slide-list { display: grid; gap: 16px; margin: 16px 0; }
.hero-slide-card {
    display: grid;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
}
.hero-slide-thumb { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; background: var(--paper-card); }
.hero-slide-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide-thumb form { position: absolute; top: 8px; right: 8px; }
.hero-slide-new { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; }
@media (min-width: 700px) {
    .hero-slide-card { grid-template-columns: 260px 1fr; align-items: start; }
}

.product-list { display: grid; gap: 12px; }
.product-row {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 14px;
}
.product-row .thumb { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--line); }
.product-row .info { flex: 1; min-width: 0; }
.product-row .info strong { display: block; font-size: 0.95rem; }
.product-row .info span { font-size: 0.78rem; color: var(--ink-soft); }
.product-row .actions { display: flex; gap: 8px; flex: none; }
.status-pill { font-family: var(--f-mono); font-size: 0.68rem; padding: 3px 9px; border-radius: 999px; text-transform: uppercase; }
.status-pill.activo { background: rgba(31,143,109,0.15); color: var(--kraft-dark); }
.status-pill.inactivo { background: rgba(20,24,31,0.08); color: var(--ink-soft); }
.status-pill-categoria { background: rgba(20,24,31,0.06); color: var(--ink-soft); text-transform: none; font-family: var(--f-body); font-weight: 500; }

/* ---------------- Modal genérico del panel (ej. editar categorías de un producto) ---------------- */
.panel-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(20,24,31,0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 300;
}
.panel-modal-backdrop.is-open { display: flex; }
.panel-modal {
    background: var(--paper);
    width: 100%;
    max-width: 480px;
    max-height: 86vh;
    overflow-y: auto;
    border-radius: var(--radius);
    padding: 28px 24px 24px;
    position: relative;
}
.panel-modal h2 { font-size: 1.2rem; margin: 0 0 4px; padding-right: 30px; }
.categoria-checklist { display: grid; gap: 10px; margin-top: 16px; }
.categoria-checklist-item { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.categoria-checklist-item input { width: 18px; height: 18px; accent-color: var(--kraft); margin: 0; flex: none; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-soft); }

.seccion-preview { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; min-height: 100px; }
.seccion-preview h2 { font-size: 1.5rem; margin-top: 8px; }

.categoria-preview-frame { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; min-height: 100px; display: flex; align-items: center; }

.tabla-monedas { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 640px; }
.tabla-monedas th {
    text-align: left;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-soft);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.tabla-monedas td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla-monedas tr:last-child td { border-bottom: none; }

.rich-editor { background: #fff; min-height: 160px; border: 1.5px solid var(--line); border-top: none; border-radius: 0 0 8px 8px; }
.rich-editor.rich-editor-sm { min-height: 90px; }
.ql-toolbar.ql-snow { border: 1.5px solid var(--line); border-radius: 8px 8px 0 0; background: #fff; }
/* Quill fija .ql-container a height:100%; sin un padre con altura definida el
   editor no crece con el contenido y se encima con lo que viene después. */
.rich-editor.ql-container { height: auto; }

.color-preview { display: grid; gap: 20px; margin: 18px 0 24px; }
.color-preview-frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.color-preview-frame-mobile { max-width: 230px; }
.color-preview-header {
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--ink);
    color: var(--paper);
}
.color-preview-brand { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.color-preview-frame-mobile .color-preview-nav { display: none; }
.color-preview-nav { font-size: 0.74rem; opacity: 0.85; white-space: nowrap; }
.color-preview-body { height: 54px; background: repeating-linear-gradient(45deg, var(--paper-card), var(--paper-card) 10px, #fff 10px, #fff 20px); }
.color-preview-footer { padding: 9px 14px; font-size: 0.7rem; text-align: center; background: var(--ink); color: rgba(239,233,220,0.7); }
@media (min-width: 640px) {
    .color-preview { grid-template-columns: 230px 1fr; align-items: start; }
}

/* ================= Panel administrador (superadmin) ================= */
.admin-search { display: flex; gap: 8px; margin: 18px 0; }
.admin-search input { flex: 1; }

.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tabs a {
    font-family: var(--f-mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-soft);
    text-decoration: none;
    background: var(--paper-card);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.admin-tabs a span { background: rgba(20,24,31,0.08); border-radius: 999px; padding: 1px 7px; font-size: 0.7rem; }
.admin-tabs a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.admin-tabs a.is-active span { background: rgba(255,255,255,0.18); }
.admin-tabs a.is-warning:not(.is-active) { border-color: #d98c3f; color: #a15b1a; }

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 720px; }
.admin-table th {
    text-align: left;
    font-family: var(--f-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--ink-soft);
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-slug { display: block; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-soft); margin-top: 2px; }
.admin-vencimiento { white-space: nowrap; }
.admin-vencimiento.is-por-vencer { color: #a15b1a; font-weight: 600; }
.admin-vencimiento.is-vencido { color: #8f2c17; font-weight: 700; }

.admin-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.admin-timeline li {
    padding-left: 16px;
    border-left: 2px solid var(--line);
    display: grid;
    gap: 3px;
}
.admin-timeline-tipo {
    font-family: var(--f-mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--kraft-dark);
    font-weight: 700;
}
.admin-timeline-detalle { font-size: 0.9rem; }
.admin-timeline-fecha { font-size: 0.76rem; color: var(--ink-soft); }

/* ================= SEO (panel del cliente y admin de la landing) ================= */
.seo-intro p { font-size: 0.92rem; line-height: 1.6; margin: 0 0 12px; }
.seo-intro p:last-child { margin-bottom: 0; }
.seo-preview-google {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    max-width: 560px;
    font-family: arial, sans-serif;
}
.seo-preview-url { font-size: 0.8rem; color: #202124; }
.seo-preview-title { font-size: 1.15rem; color: #1a0dab; line-height: 1.3; }
.seo-preview-desc { font-size: 0.85rem; color: #4d5156; line-height: 1.4; }

.seo-checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.seo-checklist li { font-size: 0.85rem; color: var(--signal); transition: color 0.15s ease; }
.seo-checklist li.is-ok { color: #1c7a4d; }

@media (min-width: 700px) {
    .panel-card-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
