/* ========================================================
   ROLOVA 3D - Catalogo Publico
   Dark Glassmorphism matching admin theme
   ======================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --neon-blue: #38bdf8;
  --neon-cyan: #22d3ee;
  --accent-gradient: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  --primary: #3b82f6;
  --primary-light: rgba(59,130,246,.15);
  --success: #22c55e;
  --bg-body: #0b0f1a;
  --bg-card: rgba(30,41,59,.55);
  --bg-input: rgba(15,23,42,.6);
  --bg-hover: rgba(56,189,248,.06);
  --border: rgba(56,189,248,.12);
  --border-strong: rgba(56,189,248,.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --glass-bg: rgba(15,23,42,.5);
  --glass-border: rgba(56,189,248,.15);
  --glass-blur: blur(16px);
  --glass-blur-heavy: blur(24px);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.4);
  --shadow-glow: 0 0 20px rgba(56,189,248,.15);
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(56,189,248,.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(129,140,248,.05) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(34,211,238,.04) 0%, transparent 40%);
  background-attachment: fixed;
}

.hidden { display: none !important; }

/* Header */
.pub-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border-bottom: 1px solid var(--glass-border);
  padding: .75rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pub-header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.pub-brand { display: flex; align-items: center; gap: .6rem; }
.pub-logo-img {
  width: 40px; height: 40px; border-radius: 8px;
  filter: drop-shadow(0 0 8px rgba(56,189,248,.25));
}
.pub-brand-name {
  font-size: 1.2rem; font-weight: 800; letter-spacing: .5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pub-brand-tagline { font-size: .75rem; color: var(--text-muted); }

.pub-admin-link {
  color: var(--text-muted); text-decoration: none; font-size: .8rem;
  padding: .3rem .6rem; border: 1px solid var(--border); border-radius: 6px;
  transition: all .2s;
}
.pub-admin-link:hover { color: var(--text-primary); border-color: var(--border-strong); }

/* ── Header actions (carrito + admin) ── */
.pub-header-actions { display: flex; align-items: center; gap: .6rem; }

.pub-cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 8px;
  padding: .35rem .5rem;
  cursor: pointer;
  display: flex; align-items: center;
  transition: border-color .2s, color .2s;
  font-size: 1.1rem;
}
.pub-cart-btn:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--neon-blue); color: #0b0f1a;
  font-size: .65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Panel lateral carrito ── */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 1200;
  backdrop-filter: blur(2px);
}
.cart-overlay.hidden { display: none; }

.cart-panel {
  position: fixed; top: 0; right: 0;
  width: min(400px, 100vw);
  height: 100dvh;
  background: #0d1525;
  border-left: 1px solid var(--glass-border);
  z-index: 1300;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 32px rgba(0,0,0,.5);
}
.cart-panel.open { transform: translateX(0); }

.cart-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: .95rem;
  color: var(--text-primary);
}
.cart-close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  transition: color .2s;
}
.cart-close-btn:hover { color: var(--text-primary); }

.cart-body {
  flex: 1; overflow-y: auto; padding: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
}
.cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .5rem;
  color: var(--text-muted); font-size: .9rem; padding: 2rem;
  text-align: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 48px 1fr auto auto auto;
  align-items: center; gap: .5rem;
  padding: .6rem .5rem;
  background: rgba(30,41,59,.5);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.cart-item-foto { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.cart-item-img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--text-muted);
  background: rgba(56,189,248,.06);
}
.cart-item-info { min-width: 0; }
.cart-item-nombre {
  font-size: .82rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-precio { font-size: .75rem; color: var(--text-muted); }
.cart-item-qty {
  display: flex; align-items: center; gap: .25rem;
  font-size: .85rem; font-weight: 600;
}
.cart-qty-btn {
  background: rgba(56,189,248,.1); border: 1px solid var(--border);
  color: var(--text-primary); width: 22px; height: 22px;
  border-radius: 4px; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-qty-btn:hover { background: rgba(56,189,248,.25); }
.cart-item-subtotal { font-size: .82rem; font-weight: 700; color: var(--neon-blue); white-space: nowrap; }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-muted); display: flex; align-items: center;
  transition: color .2s;
}
.cart-item-remove:hover { color: #ef4444; }

.cart-footer {
  border-top: 1px solid var(--border);
  padding: .85rem 1rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.cart-footer.hidden { display: none; }
.cart-datos { display: flex; flex-direction: column; gap: .4rem; }
.cart-input {
  background: rgba(15,23,42,.7); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 6px;
  padding: .45rem .7rem; font-size: .85rem; width: 100%;
  font-family: inherit;
}
.cart-input:focus { outline: none; border-color: var(--neon-blue); }
.cart-input.cart-input-error { border-color: #ef4444; }

/* Fila cupón */
.cart-cupon-row {
  display: flex; gap: .4rem;
}
.cart-cupon-input { flex: 1; text-transform: uppercase; letter-spacing: .05em; }
.cart-cupon-btn {
  background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3);
  color: var(--neon-blue); border-radius: 6px;
  padding: .45rem .85rem; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit; white-space: nowrap;
  transition: background .2s, border-color .2s;
}
.cart-cupon-btn:hover { background: rgba(56,189,248,.22); border-color: var(--neon-blue); }
.cart-cupon-msg {
  font-size: .78rem; padding: .2rem .1rem; line-height: 1.4;
}
.cart-cupon-msg.hidden { display: none; }
.cart-cupon-msg.cart-cupon-ok  { color: var(--success); }
.cart-cupon-msg.cart-cupon-error { color: #ef4444; }
.cart-total-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .95rem;
}
.cart-total-row strong { color: var(--neon-blue); font-size: 1.05rem; }
.cart-checkout-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: #25d366; color: #fff;
  border: none; border-radius: 8px;
  padding: .65rem 1rem; font-size: .9rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background .2s, box-shadow .2s;
}
.cart-checkout-btn:hover { background: #1ebe5b; box-shadow: 0 4px 12px rgba(37,211,102,.3); }
.cart-vaciar-btn {
  background: none; border: none; color: var(--text-muted);
  font-size: .78rem; cursor: pointer; text-align: center;
  text-decoration: underline; font-family: inherit;
}
.cart-vaciar-btn:hover { color: #ef4444; }

/* Toast carrito */
.cart-toast {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1e293b; border: 1px solid var(--neon-blue);
  color: var(--text-primary); font-size: .85rem;
  padding: .55rem 1.1rem; border-radius: 8px;
  opacity: 0; transition: opacity .25s, transform .25s;
  z-index: 2000; white-space: nowrap; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.cart-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Botón agregar en card */
.pub-card-cart-btn {
  margin-top: auto;
  padding-top: .5rem;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  width: 100%;
  background: rgba(56,189,248,.1);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 7px; padding: .4rem .5rem;
  font-size: .8rem; font-weight: 600; font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.pub-card-cart-btn:hover { background: rgba(56,189,248,.2); }

/* Botón agregar en modal detalle */
.pub-detail-cart-btn {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  background: rgba(56,189,248,.12);
  border: 1px solid var(--neon-blue);
  color: var(--neon-blue);
  border-radius: 8px; padding: .6rem 1rem;
  font-size: .9rem; font-weight: 600; font-family: inherit;
  cursor: pointer; width: 100%;
  margin-bottom: .5rem;
  transition: background .2s;
}
.pub-detail-cart-btn:hover { background: rgba(56,189,248,.22); }

/* Hero */
.pub-hero {
  background: linear-gradient(135deg, rgba(15,23,42,.9) 0%, rgba(30,64,100,.7) 100%);
  backdrop-filter: blur(8px);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--glass-border);
  position: relative; overflow: hidden;
}
.pub-hero-orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(60px); opacity: .25;
}
.pub-hero-orb-1 {
  width: 250px; height: 250px; background: var(--neon-blue);
  top: -80px; left: -50px;
  animation: pubOrbFloat 8s ease-in-out infinite;
}
.pub-hero-orb-2 {
  width: 200px; height: 200px; background: var(--neon-cyan);
  bottom: -60px; right: -40px;
  animation: pubOrbFloat 10s ease-in-out infinite reverse;
}
@keyframes pubOrbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -15px) scale(1.1); }
}
.pub-hero h2 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: .4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  position: relative; z-index: 1;
}
.pub-hero-icon {
  font-size: 2rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pub-hero p { color: var(--text-secondary); font-size: 1rem; max-width: 500px; margin: 0 auto; position: relative; z-index: 1; }

/* Banner de Remote Config (sales_banner_text) */
.pub-sales-banner {
  margin: 1rem auto 0;
  max-width: 680px;
  padding: .6rem 1.2rem;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,211,238,.12));
  border: 1px solid rgba(56,189,248,.4);
  color: var(--neon-blue, #38bdf8);
  font-size: .88rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* About / Info section */
.pub-about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ── Fila hero: video 70% + panel 30% ──────────────────── */
.pub-about-hero-row {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  align-items: stretch;
}

/* ── Video hero ─────────────────────────────────────── */
.pub-about-video-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  min-height: 380px;
  border: 1px solid rgba(56,189,248,.2);
  box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 40px rgba(56,189,248,.08);
}
.pub-about-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}
.pub-about-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,15,26,.88) 0%, rgba(11,15,26,.3) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.75rem 2rem;
  gap: .4rem;
}
.pub-about-video-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neon-blue);
  background: rgba(56,189,248,.12);
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 99px;
  padding: .25rem .7rem;
  width: fit-content;
}
.pub-about-video-badge .material-symbols-outlined { font-size: .95rem; }
.pub-about-video-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0;
}
.pub-about-video-sub {
  font-size: .88rem;
  color: var(--text-secondary);
  margin: 0;
}

/* ── Panel lateral “Quiénes somos” ─────────────────────── */
.pub-about-side {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s;
}
.pub-about-side::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.1), transparent 70%);
  pointer-events: none;
}
.pub-about-side:hover {
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 0 28px rgba(56,189,248,.08);
}
.pub-about-side-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,211,238,.1));
  border: 1px solid rgba(56,189,248,.25);
  margin-bottom: .1rem;
}
.pub-about-side-icon .material-symbols-outlined {
  font-size: 1.6rem;
  color: var(--neon-blue);
  font-variation-settings: 'FILL' 1;
}
.pub-about-side h3.pub-about-title {
  font-size: 1.1rem;
  margin: 0;
}
.pub-about-side p {
  font-size: .88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.pub-about-side p strong { color: var(--text-primary); }
.pub-about-side-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: auto;
  padding-top: .5rem;
}
.pub-about-side-chips span {
  font-size: .72rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 99px;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.18);
  color: var(--neon-blue);
  letter-spacing: .04em;
}

/* Tarjetas de info (quiénes somos / cómo trabajamos) */
.pub-about-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  transition: border-color .3s, box-shadow .3s;
}
.pub-about-card:hover {
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 0 24px rgba(56,189,248,.08);
}
.pub-about-card--reverse {
  grid-template-columns: auto 1fr;
}

.pub-about-card-text {
  min-width: 0;
}
.pub-about-card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(34,211,238,.08));
  border: 1px solid rgba(56,189,248,.2);
  flex-shrink: 0;
}
.pub-about-big-icon {
  font-size: 2.5rem;
  color: var(--neon-blue);
  font-variation-settings: 'FILL' 1;
}

.pub-about-title {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .6rem;
}
.pub-about-title .material-symbols-outlined {
  font-size: 1.2rem;
  color: var(--neon-blue);
}
.pub-about-title--center {
  justify-content: center;
  font-size: 1.15rem;
}

.pub-about-card-text p {
  color: var(--text-secondary);
  font-size: .92rem;
  line-height: 1.65;
  margin: 0;
}
.pub-about-card-text p strong {
  color: var(--text-primary);
}

/* Sección de precios */
.pub-about-pricing {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  text-align: center;
  transition: border-color .3s, box-shadow .3s;
}
.pub-about-pricing:hover {
  border-color: rgba(56,189,248,.3);
  box-shadow: 0 0 24px rgba(56,189,248,.08);
}
.pub-about-pricing-sub {
  color: var(--text-secondary);
  font-size: .88rem;
  margin: .25rem 0 1rem;
}

.pub-about-factors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.pub-about-factor {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
  background: rgba(56,189,248,.04);
  border: 1px solid rgba(56,189,248,.1);
  border-radius: 12px;
  padding: 1.1rem .75rem .9rem;
  transition: transform .25s, border-color .25s, background .25s;
}
.pub-about-factor:hover {
  transform: translateY(-3px);
  border-color: rgba(56,189,248,.25);
  background: rgba(56,189,248,.08);
}
.pub-about-factor-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(56,189,248,.15), rgba(34,211,238,.1));
  margin-bottom: .15rem;
}
.pub-about-factor-icon .material-symbols-outlined {
  font-size: 1.3rem;
  color: var(--neon-cyan);
}
.pub-about-factor strong {
  display: block;
  font-size: .85rem;
  color: var(--text-primary);
}
.pub-about-factor p {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
}

/* Responsive about */
@media (max-width: 860px) {
  .pub-about-hero-row {
    grid-template-columns: 1fr;
  }
  .pub-about-video-hero { min-height: 280px; }
  .pub-about-side { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .pub-about-side-icon { flex-shrink: 0; }
}
@media (max-width: 640px) {
  .pub-about-video-title { font-size: 1.2rem; }
  .pub-about-video-overlay { padding: 1.25rem; }
  .pub-about-side { flex-direction: column; }
  .pub-about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.25rem;
  }
  .pub-about-card--reverse {
    grid-template-columns: 1fr;
  }
  .pub-about-card--reverse .pub-about-card-visual {
    order: -1;
  }
  .pub-about-card-visual {
    margin: 0 auto;
    width: 80px;
    height: 80px;
  }
  .pub-about-big-icon { font-size: 2rem; }
  .pub-about-title { justify-content: center; }
  .pub-about-factors {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Toolbar */
.pub-toolbar {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  padding: .75rem 1.25rem;
  position: sticky;
  top: 57px;
  z-index: 90;
}
.pub-toolbar-toggle {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  background: rgba(15,23,42,.45);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .6rem .75rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}
.pub-toolbar-toggle-chevron { transition: transform .2s; }
.pub-toolbar.mobile-open .pub-toolbar-toggle-chevron { transform: rotate(180deg); }
.pub-toolbar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: .5rem; border-radius: var(--radius);
  background: rgba(15,23,42,.3); border: 1px solid rgba(56,189,248,.08);
}
.pub-search, .pub-filter {
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .9rem;
  background: var(--bg-input);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.pub-search::placeholder { color: var(--text-muted); }
.pub-search:focus, .pub-filter:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(34,211,238,.15);
}
.pub-search { flex: 1; min-width: 180px; }
.pub-filter { min-width: 140px; cursor: pointer; }
.pub-filter option { background: #1e293b; color: var(--text-primary); }

/* Filtro categorías chips */
.pub-filtro-cats-wrap {
  max-width: 1200px; margin: .6rem auto 0;
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  padding: 0 .5rem;
}
.pub-filtro-cats-label {
  font-size: .78rem; color: var(--text-muted); white-space: nowrap;
}
.pub-filtro-cats-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.pub-filter-chip {
  padding: .3rem .75rem; border-radius: 20px; font-size: .78rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border);
  background: transparent; color: var(--text-secondary);
  transition: all .2s; font-family: inherit;
}
.pub-filter-chip:hover { border-color: var(--neon-blue); color: var(--neon-blue); }
.pub-filter-chip.active {
  background: rgba(56,189,248,.15); border-color: var(--neon-blue);
  color: var(--neon-blue); box-shadow: 0 0 8px rgba(56,189,248,.2);
}

/* Badge tipo en card */
.pub-card-tipo { margin-bottom: .35rem; }
.pub-detail-tipo { margin-bottom: .4rem; }
.pub-detail-tipo-box {
    display: inline-flex;
    flex-direction: column;
    gap: .35rem;
    margin-bottom: .75rem;
    padding: .55rem .75rem;
    background: rgba(129,140,248,.07);
    border: 1px solid rgba(129,140,248,.2);
    border-radius: 8px;
    max-width: 100%;
}
.pub-detail-tipo-desc {
    font-size: .8rem;
    color: var(--text-secondary, #94a3b8);
    line-height: 1.4;
    margin: 0;
}
.pub-detail-cats { margin-top: .5rem; }

/* Main */
.pub-main {
  flex: 1; max-width: 1200px; margin: 0 auto;
  padding: 1.5rem 1.25rem; width: 100%;
}
.pub-loading, .pub-empty {
  text-align: center; color: var(--text-muted);
  padding: 3rem 1rem; font-size: 1rem;
}

/* Grid */
.pub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

/* Card */
.pub-card {
  background: var(--bg-card);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}
.pub-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 25px rgba(56,189,248,.18);
  border-color: rgba(56,189,248,.35);
}

.pub-card-img {
  width: 100%; aspect-ratio: 1/1; overflow: hidden;
  background: rgba(15,23,42,.5);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pub-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s;
}
.pub-card:hover .pub-card-img img { transform: scale(1.05); }
.pub-card-noimg { font-size: 3rem; color: var(--text-muted); }

/* Carousel botones en card */
.pub-card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(11,15,26,.65); border: 1px solid var(--border);
  color: var(--text-primary); border-radius: 50%;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; opacity: 0; transition: opacity .2s, background .2s;
  padding: 0;
}
.pub-card-nav .material-symbols-outlined { font-size: 1rem; }
.pub-card-nav-prev { left: .4rem; }
.pub-card-nav-next { right: .4rem; }
.pub-card:hover .pub-card-nav { opacity: 1; }
.pub-card-nav:hover { background: rgba(56,189,248,.25); border-color: var(--neon-blue); }

/* Dots indicadores */
.pub-card-dots {
  position: absolute; bottom: .4rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .3rem;
  pointer-events: none;
}
.pub-card-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(255,255,255,.35); transition: background .2s;
}
.pub-card-dot.active { background: var(--neon-blue); }

.pub-card-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.pub-card-title {
  font-size: .95rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: .4rem; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-card-tags { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .5rem; }
.pub-tag {
  font-size: .7rem; padding: .15rem .5rem; border-radius: 20px; font-weight: 500;
}
.pub-tag-cat { background: rgba(56,189,248,.1); color: var(--neon-blue); border: 1px solid rgba(56,189,248,.2); }
.pub-tag-mat { background: rgba(100,116,139,.1); color: var(--text-secondary); border: 1px solid rgba(100,116,139,.2); }
.pub-tag-prod { background: rgba(56,189,248,.08); color: var(--neon-blue); border: 1px solid rgba(56,189,248,.18); }
.pub-tag-tipo { background: rgba(129,140,248,.12); color: var(--neon-purple); border: 1px solid rgba(129,140,248,.25); }
.pub-card-price {
  font-size: 1.2rem; font-weight: 700;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 6px rgba(34,211,238,.2));
}

/* Modal */
.pub-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.pub-modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
}
.pub-modal-content {
  position: relative;
  background: rgba(30,41,59,.9);
  backdrop-filter: var(--glass-blur-heavy);
  -webkit-backdrop-filter: var(--glass-blur-heavy);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  width: min(95vw, 1180px);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: pubModalIn .3s ease;
}
@keyframes pubModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.pub-modal-close {
  position: absolute; top: .75rem; right: .75rem;
  background: rgba(56,189,248,.1); border: 1px solid var(--border);
  font-size: 1.3rem; width: 2rem; height: 2rem; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  z-index: 1; transition: all .2s; color: var(--text-secondary);
}
.pub-modal-close:hover { background: rgba(56,189,248,.2); color: var(--text-primary); }

/* Detail */
.pub-detail { display: flex; flex-direction: column; }
.pub-detail-media {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: rgba(15,23,42,.5);
}
.pub-detail-img { width: 100%; height: 100%; object-fit: contain; }
.pub-detail-noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; color: var(--text-muted);
}

.pub-detail-info { padding: 1.25rem 1.5rem 1.5rem; }
.pub-detail-info h2 { font-size: 1.35rem; font-weight: 700; margin-bottom: .5rem; color: var(--text-primary); }

.pub-detail-price {
  font-size: 1.6rem; font-weight: 800;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 8px rgba(34,211,238,.3));
  margin: .75rem 0;
}
.pub-detail-specs { display: flex; gap: 1rem; margin-bottom: .75rem; }
.pub-detail-spec {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(56,189,248,.06); padding: .5rem 1rem;
  border-radius: 8px; font-size: .85rem;
  border: 1px solid var(--border);
}
.pub-detail-spec span:first-child { color: var(--text-muted); font-size: .75rem; }
.pub-detail-spec span:last-child { font-weight: 600; color: var(--text-primary); }

.pub-detail-link {
  display: inline-block; color: var(--neon-blue);
  text-decoration: none; font-size: .9rem; margin-bottom: 1rem;
}
.pub-detail-link:hover { text-decoration: underline; }

.pub-btn-whatsapp {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #25d366; color: #fff;
  padding: .65rem 1.2rem; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(37,211,102,.25);
}
.pub-btn-whatsapp:hover { background: #1ebe5b; box-shadow: 0 4px 12px rgba(37,211,102,.35); }

.pub-btn-compartir {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent;
  color: var(--neon-blue);
  border: 1px solid var(--neon-blue);
  padding: .65rem 1.2rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: all .2s;
}
.pub-btn-compartir:hover { background: var(--neon-blue); color: #000; }

.pub-btn-modelo {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  padding: .55rem 1rem; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: .88rem;
  transition: all .2s;
}
.pub-btn-modelo:hover {
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  background: rgba(56,189,248,.06);
}
.pub-btn-modelo .material-symbols-outlined { font-size: 1rem; }

/* CTA Proyecto personalizado */
.pub-cta-custom {
  max-width: 900px;
  margin: 2rem auto 0;
  padding: 0 1.25rem 2.5rem;
}
.pub-cta-custom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: linear-gradient(135deg, rgba(56,189,248,.08) 0%, rgba(34,211,238,.05) 100%);
  border: 1px solid rgba(56,189,248,.25);
  border-radius: 20px;
  padding: 2rem 2.5rem;
  position: relative;
  overflow: hidden;
}
.pub-cta-custom-inner::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.12), transparent 70%);
  pointer-events: none;
}
.pub-cta-custom-text { flex: 1; min-width: 0; }
.pub-cta-custom-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--neon-blue);
  margin-bottom: .5rem;
}
.pub-cta-custom-badge .material-symbols-outlined { font-size: .85rem; font-variation-settings: 'FILL' 1; color: #facc15; }
.pub-cta-custom-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 .4rem;
  line-height: 1.25;
}
.pub-cta-custom-sub {
  font-size: .88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .pub-cta-custom-inner {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    align-items: center;
  }
  .pub-cta-custom-badge { justify-content: center; }
}

/* Footer */
.pub-footer {
  background: rgba(15,23,42,.8);
  backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  color: var(--text-muted);
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: .85rem;
}
.pub-footer-links { margin-top: .4rem; }
.pub-footer-links a {
  color: var(--text-secondary); text-decoration: none; transition: color .2s;
  display: inline-flex; align-items: center; gap: .25rem;
}
.pub-footer-links a:hover { color: var(--neon-cyan); }
.pub-footer-links span { margin: 0 .3rem; }

/* Material Symbols */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* Scrollbar (Stitch style) */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15,23,42,.2); }
::-webkit-scrollbar-thumb { background: rgba(56,189,248,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(56,189,248,.45); }

/* ── Card description ── */
.pub-card-desc {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: .25rem 0;
}
.pub-detail-desc {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.6;
  margin: .75rem 0;
}

/* ── Gallery (public detail modal) ── */
.pub-gallery { width: 100%; }
.pub-gallery-main {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15,23,42,.4);
}
.pub-gallery-main .pub-detail-img {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  display: block;
}
.pub-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.5);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s;
}
.pub-gallery-main:hover .pub-gallery-nav { opacity: 1; }
.pub-gallery-prev { left: 8px; }
.pub-gallery-next { right: 8px; }
.pub-gallery-nav:hover { background: rgba(56,189,248,.6); }
.pub-gallery-thumbs {
  display: flex;
  gap: .4rem;
  margin-top: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
}
.pub-gallery-thumb {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .6;
  transition: opacity .2s, border-color .2s;
  flex-shrink: 0;
}
.pub-gallery-thumb:hover { opacity: .85; }
.pub-gallery-thumb.active {
  border-color: var(--neon-blue);
  opacity: 1;
}

/* ── Botón solicitar proyecto ── */
.pub-btn-solicitar {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: 12px;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  margin-top: 1rem;
}
.pub-btn-solicitar:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(56,189,248,.35);
}

/* ── Modal formulario solicitud ── */
.pub-modal-form {
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}

/* ── Header del formulario ── */
.pub-sol-header {
  text-align: center;
  padding: 2rem 2rem 0;
  margin-bottom: 1.25rem;
}
.pub-sol-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56,189,248,.18), rgba(34,211,238,.1));
  border: 1px solid rgba(56,189,248,.25);
  margin-bottom: .75rem;
  font-size: 1.8rem;
  color: var(--neon-blue);
  font-variation-settings: 'FILL' 1;
}
.pub-sol-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 .35rem;
}
.pub-sol-header p {
  font-size: .85rem;
  color: var(--text-secondary);
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Separador decorativo ── */
.pub-sol-header::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 99px;
  margin: 1rem auto 0;
}

/* ── Formulario ── */
.pub-sol-form {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 0 2rem 2rem;
}
.pub-sol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.pub-sol-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.pub-sol-field label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: .02em;
}
.pub-sol-field input,
.pub-sol-field textarea {
  width: 100%;
  padding: .6rem .85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: .88rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.pub-sol-field input::placeholder,
.pub-sol-field textarea::placeholder {
  color: var(--text-muted);
}
.pub-sol-field input:focus,
.pub-sol-field textarea:focus {
  outline: none;
  border-color: var(--neon-blue);
  box-shadow: 0 0 0 3px rgba(56,189,248,.1);
}
.pub-sol-field textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Botón enviar ── */
.pub-btn-enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.5rem;
  background: var(--accent-gradient);
  border: none;
  border-radius: 10px;
  color: #0f172a;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
  width: 100%;
  margin-top: .4rem;
  box-shadow: 0 2px 12px rgba(56,189,248,.2);
}
.pub-btn-enviar:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(56,189,248,.35);
}
.pub-btn-enviar:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.pub-sol-nota {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ── Campo de imagen adjunta ── */
.pub-sol-file-label {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem .85rem;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  background: var(--bg-input);
  color: var(--text-secondary);
  font-size: .85rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.pub-sol-file-label:hover {
  border-color: var(--neon-blue);
  background: rgba(56,189,248,.05);
  color: var(--neon-blue);
}
.pub-sol-file-label .material-symbols-outlined {
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--neon-blue);
}
.pub-sol-preview-wrap {
  position: relative;
  margin-top: .5rem;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-input);
}
.pub-sol-preview-img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  display: block;
}
.pub-sol-preview-remove {
  position: absolute;
  top: .4rem;
  right: .4rem;
  background: rgba(0,0,0,.6);
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background .2s;
}
.pub-sol-preview-remove:hover { background: rgba(239,68,68,.8); }
.pub-sol-preview-remove .material-symbols-outlined { font-size: 1rem; }

/* ── Toast notification ── */
.pub-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34,197,94,.9);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .5rem;
  z-index: 10000;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: pub-toast-in .3s ease;
}
.pub-toast-out { animation: pub-toast-out .4s ease forwards; }
@keyframes pub-toast-in { from { opacity: 0; transform: translateX(-50%) translateY(20px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes pub-toast-out { from { opacity: 1; } to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* Responsive */
@media (min-width: 600px) {
  .pub-detail { flex-direction: row; }
  .pub-detail-media {
    width: 58%;
    aspect-ratio: auto;
    min-height: 520px;
  }
  .pub-detail-info {
    width: 42%;
    padding: 1.5rem 1.75rem 1.75rem;
  }
}
@media (max-width: 480px) {
  .pub-grid { grid-template-columns: 1fr; gap: .8rem; }
  .pub-card-title { font-size: .85rem; }
  .pub-card-price { font-size: 1rem; }
  .pub-hero h2 { font-size: 1.4rem; }
  .pub-search, .pub-filter { min-width: 100%; }
  .pub-sol-row { grid-template-columns: 1fr; }
  .pub-modal-form { margin: 1rem; }
}

@media (max-width: 768px) {
  .pub-grid { grid-template-columns: 1fr; }
  .pub-toolbar { padding: .65rem .9rem; }
  .pub-toolbar-toggle { display: inline-flex; }
  .pub-toolbar-body {
    display: none;
    margin-top: .6rem;
  }
  .pub-toolbar.mobile-open .pub-toolbar-body { display: block; }
  .pub-toolbar-inner { flex-direction: column; }
  .pub-search, .pub-filter { width: 100%; min-width: 100%; }
  .pub-filtro-cats-wrap {
    margin-top: .55rem;
    padding: 0;
  }
}