:root {
    --tc-blue:#2563EB;--tc-blue-dk:#1D4ED8;--tc-yellow:#F5B800;--tc-yellow-dk:#E6AC00;
    --tc-gray-bg:#F3F4F6;--tc-border:#E5E7EB;--tc-text:#111827;--tc-muted:#6B7280;--tc-radius:10px;
}
.tc-inner-wrap { max-width:1200px; margin:0 auto; padding:0 2rem; width:100%; box-sizing:border-box; }
.tc-navbar {
    background:#fff; border-bottom:1px solid var(--tc-border);
    position:sticky; top:0; z-index:100; padding:0.6rem 0;
}
.tc-navbar .tc-inner-wrap { display:flex; align-items:center; gap:1rem; }
.tc-search-wrap {
    display:flex; flex:1; max-width:480px;
    border:1.5px solid var(--tc-border); border-radius:8px; overflow:hidden;
}
.tc-search-wrap input { flex:1; border:none; outline:none; padding:0.45rem 0.75rem; font-size:14px; font-family:'Ubuntu',sans-serif; }
.tc-search-wrap button { background:var(--tc-blue); color:#fff; border:none; padding:0.45rem 1rem; font-size:13px; font-family:'Ubuntu',sans-serif; cursor:pointer; }
.tc-search-wrap button:hover { background:var(--tc-blue-dk); }
.tc-cart-btn {
    background:var(--tc-yellow); color:#78350F; border:none; border-radius:8px;
    padding:0.45rem 1rem; font-size:13px; font-weight:500; font-family:'Ubuntu',sans-serif;
    text-decoration:none; white-space:nowrap; display:flex; align-items:center; gap:6px;
}
.tc-cart-btn:hover { background:var(--tc-yellow-dk); color:#78350F; }
.tc-hero { background:var(--tc-blue); padding:2.75rem 0; color:#fff; }
.tc-hero .tc-inner-wrap { display:flex; align-items:center; gap:2rem; flex-wrap:wrap; }
.tc-hero h1 { font-size:clamp(1.5rem,3vw,2.2rem); font-weight:700; color:#fff; margin-bottom:0.5rem; line-height:1.2; }
.tc-hero h1 span { color:var(--tc-yellow); }
.tc-hero > .tc-inner-wrap > div:first-child { flex:1; min-width:220px; }
.tc-hero p { color:#BFDBFE; font-size:15px; margin-bottom:1rem; }
.tc-hero-search { display:flex; border-radius:8px; overflow:hidden; max-width:420px; box-shadow:0 2px 10px rgba(0,0,0,0.2); }
.tc-hero-search input { flex:1; border:none; outline:none; padding:0.7rem 1rem; font-size:14px; font-family:'Ubuntu',sans-serif; color:var(--tc-text); }
.tc-hero-search button { background:var(--tc-yellow); color:#78350F; border:none; padding:0.7rem 1.35rem; font-weight:600; font-family:'Ubuntu',sans-serif; cursor:pointer; }
.tc-hero-tags { display:flex; gap:8px; flex-wrap:wrap; }
.tc-hero-tag { background:rgba(255,255,255,0.13); color:#EFF6FF; border:1px solid rgba(255,255,255,0.22); border-radius:20px; padding:4px 12px; font-size:12px; display:flex; align-items:center; gap:5px; }
.tc-stat-card { background:rgba(255,255,255,0.13); border:1px solid rgba(255,255,255,0.22); border-radius:10px; padding:0.9rem 1.1rem; text-align:center; min-width:80px; }
.tc-stat-num { font-size:1.65rem; font-weight:700; color:#fff; line-height:1; }
.tc-stat-label { font-size:11px; color:#BFDBFE; margin-top:4px; text-transform:uppercase; letter-spacing:0.05em; }
.tc-sep { height:1px; background:var(--tc-border); }
.tc-section { max-width:1200px; margin:0 auto; padding:2rem 2rem; }
.tc-section-hd { display:flex; align-items:center; justify-content:space-between; margin-bottom:1.25rem; }
.tc-section-title { font-size:1.05rem; font-weight:600; color:var(--tc-text); }
.tc-see-all { font-size:13px; color:var(--tc-blue); text-decoration:none; font-weight:500; }
.tc-see-all:hover { text-decoration:underline; }
.tc-cat-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:10px; }
.tc-cat { display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; padding:0.75rem 0.5rem; border-radius:var(--tc-radius); background:#fff; border:1px solid var(--tc-border); transition:border-color 0.15s,box-shadow 0.15s; }
.tc-cat:hover { border-color:var(--tc-blue); box-shadow:0 2px 8px rgba(37,99,235,0.1); }
.tc-cat-icon { font-size:1.8rem; line-height:1; }
.tc-cat-name { font-size:11px; color:var(--tc-text); text-align:center; line-height:1.3; font-weight:500; }
.tc-prod-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.tc-prod-card { background:#fff; border-radius:12px; border:1px solid var(--tc-border); text-decoration:none; color:inherit; display:flex; flex-direction:column; overflow:hidden; transition:box-shadow 0.15s,transform 0.15s; }
.tc-prod-card:hover { box-shadow:0 4px 18px rgba(0,0,0,0.09); transform:translateY(-2px); }
.tc-prod-img { height:160px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; background:#F8F9FA; flex-shrink:0; }
.tc-prod-img img { width:100%; height:100%; object-fit:contain; padding:10px; }
.tc-prod-badge { position:absolute; top:8px; right:8px; background:#EF4444; color:#fff; font-size:11px; font-weight:700; border-radius:6px; padding:2px 7px; }
.tc-prod-body { padding:0.75rem; display:flex; flex-direction:column; gap:4px; flex:1; }
.tc-prod-negocio { font-size:11px; color:var(--tc-muted); display:flex; align-items:center; gap:4px; }
.tc-prod-name { font-size:13px; font-weight:500; color:var(--tc-text); line-height:1.4; }
.tc-prod-price { font-size:1rem; font-weight:700; color:var(--tc-blue); }
.tc-prod-price-old { font-size:12px; color:var(--tc-muted); text-decoration:line-through; margin-left:4px; }
.tc-prod-dcto { font-size:11px; color:#16A34A; font-weight:500; }
.tc-prod-ship { font-size:11px; color:#16A34A; display:flex; align-items:center; gap:4px; margin-top:auto; padding-top:4px; }
.tc-prod-actions { display:flex; gap:6px; margin-top:8px; }
.tc-btn-add { flex:1; background:var(--tc-blue); color:#fff; border:none; border-radius:7px; padding:6px 10px; font-size:12px; font-weight:500; font-family:'Ubuntu',sans-serif; cursor:pointer; }
.tc-btn-add:hover { background:var(--tc-blue-dk); }
.tc-btn-wa { background:#25D366; color:#fff; border-radius:7px; padding:6px 10px; text-decoration:none; font-size:15px; display:flex; align-items:center; justify-content:center; }
.tc-btn-wa:hover { background:#1DB954; color:#fff; }
.tc-neg-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:16px; }
.tc-neg-card { background:#fff; border-radius:12px; border:1px solid var(--tc-border); text-decoration:none; color:inherit; overflow:hidden; transition:box-shadow 0.15s,transform 0.15s; display:flex; flex-direction:column; }
.tc-neg-card:hover { box-shadow:0 4px 18px rgba(0,0,0,0.09); transform:translateY(-2px); }
.tc-neg-cover { height:80px; display:flex; align-items:center; justify-content:center; position:relative; overflow:hidden; font-size:14px; font-weight:600; color:#fff; }
.tc-neg-cover-icon { position:absolute; font-size:3.5rem; opacity:0.12; right:8px; bottom:-10px; }
.tc-neg-body { padding:0.85rem 1rem 0.9rem; flex:1; display:flex; flex-direction:column; gap:10px; }
.tc-neg-header { display:flex; align-items:center; gap:10px; }
.tc-neg-avatar { width:40px; height:40px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#fff; flex-shrink:0; border:2px solid rgba(255,255,255,0.85); margin-top:-20px; box-shadow:0 2px 8px rgba(0,0,0,0.15); background:var(--tc-blue); }
.tc-neg-name { font-size:14px; font-weight:600; color:var(--tc-text); line-height:1.3; }
.tc-neg-cat { font-size:12px; color:var(--tc-muted); }
.tc-neg-footer { display:flex; justify-content:space-between; align-items:center; font-size:12px; color:var(--tc-muted); border-top:1px solid var(--tc-border); padding-top:8px; }
.tc-neg-prods { font-weight:500; color:var(--tc-blue); }
.tc-neg-loc { display:flex; align-items:center; gap:3px; }
.tc-c1{background:#2563EB}.tc-c2{background:#DC2626}.tc-c3{background:#16A34A}
.tc-c4{background:#9333EA}.tc-c5{background:#D97706}.tc-c6{background:#0891B2}
.tc-c7{background:#DB2777}.tc-c8{background:#059669}.tc-c9{background:#6366F1}
.tc-footer { background:#111827; padding:2.5rem 0; text-align:center; margin-top:3rem; }
.tc-footer .tc-inner-wrap { display:flex; flex-direction:column; align-items:center; gap:0.5rem; }
.tc-footer img { opacity:0.65; }
.tc-footer-sub { font-size:12px; color:#9CA3AF; }
.pagination { justify-content:center; margin-top:1.5rem; }
.page-link { color:var(--tc-blue); border-color:var(--tc-border); font-size:13px; }
.page-item.active .page-link { background:var(--tc-blue); border-color:var(--tc-blue); }
@media(max-width:768px){
    .tc-inner-wrap { padding:0 1rem; }
    .tc-hero .tc-inner-wrap { flex-direction:column; gap:1.5rem; padding-top:1.75rem; padding-bottom:1.75rem; }
    .tc-hero h1 { font-size:1.5rem; }
    .tc-prod-grid { grid-template-columns:repeat(auto-fill,minmax(155px,1fr)); gap:10px; }
    .tc-neg-grid { grid-template-columns:repeat(2,1fr); gap:12px; }
    .tc-section { padding:1.5rem 1rem; }
}
@media(max-width:480px){
    .tc-neg-grid { grid-template-columns:1fr; }
    .tc-prod-grid { grid-template-columns:repeat(2,1fr); gap:8px; }
    .tc-prod-img { height:130px; }
}

/* ── Header estilo marketplace ─────────────────────────── */
.tc-header { background:#fff; border-bottom:1px solid #E5E7EB; position:sticky; top:0; z-index:100; box-shadow:0 2px 8px rgba(0,0,0,0.06); }
.tc-header-main { background:#fff; }
.tc-header-cats { background:#F9FAFB; border-top:1px solid #F3F4F6; }
.tc-header-cats::-webkit-scrollbar { display:none; }
.tc-statsbar { background:#EFF6FF; border-bottom:1px solid #DBEAFE; }
.tc-statsbar .tc-inner-wrap { flex-wrap:wrap; gap:12px !important; }

/* ── Header fondo azul (Opción A) ──────────────────────── */
.tc-header-main { background:#2563EB !important; }
.tc-header-cats { background:#1d4ed8 !important; border-top:1px solid rgba(255,255,255,0.15) !important; }
.tc-header-cats a { background:rgba(255,255,255,0.15) !important; color:#fff !important; border-color:rgba(255,255,255,0.3) !important; }
.tc-header-cats a:hover { background:rgba(255,255,255,0.3) !important; }
.tc-search-wrap, .tc-header-main form { border:2px solid #fff !important; }
.tc-header-main input { background:#fff; color:#111827; }
.tc-header-main button[type=submit] { background:#F5B800 !important; color:#1a3a6b !important; }

/* ── Ajustes header azul ───────────────────────────────── */
.tc-header-main a[href="{{ url('/') }}"] { color:#fff !important; opacity:0.85; }
.tc-header-main .d-none.d-md-block { color:#fff !important; opacity:0.85; }
.tc-statsbar .tc-inner-wrap { padding-top:10px !important; padding-bottom:10px !important; }

/* ── Responsive header mobile ──────────────────────────── */
@media(max-width:768px){
    .tc-header-main .tc-inner-wrap { flex-wrap:wrap; gap:8px; padding-top:8px; padding-bottom:8px; }
    .tc-header-main .tc-inner-wrap > a { order:1; }
    .tc-header-main .tc-inner-wrap > div[style*="flex:1"] { order:3; max-width:100% !important; width:100%; }
    .tc-header-main .tc-inner-wrap > .d-flex { order:2; margin-left:auto !important; }
    .tc-header-main .d-none.d-md-block { display:none !important; }
    .tc-header-cats { display:none; }
    .tc-statsbar .tc-inner-wrap { gap:8px !important; flex-wrap:wrap; }
    .tc-statsbar span { font-size:11px; }
    .tc-cat-grid { grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:8px; }
}
@media(max-width:480px){
    .tc-header-main .tc-inner-wrap > .d-flex { gap:6px !important; }
    .btn-loc span, .tc-header-main button span { display:none; }
    .tc-statsbar { display:none; }
    .tc-cat-grid { grid-template-columns:repeat(3,1fr); gap:8px; }
}

/* ── Iconos categorías ─────────────────────────────────── */
.tc-cat-icon { font-size:28px; color:#2563EB; margin-bottom:6px; line-height:1; }
.tc-cat-icon i { font-size:28px; }

/* Ocultar opciones de envío en el carrito — se muestran en checkout */
.envio-opt { display: none !important; }
.carro-envio-label { display: none !important; }

/* Ocultar label opción de entrega en carrito */
.carro-envio-titulo { display: none !important; }

/* ── Footer TuCity Commerce ─────────────────────────────────────── */
.tc-footer-full { background:#111827; margin-top:3rem; font-family:'Ubuntu',sans-serif; }
.tc-footer-inner { max-width:1200px; margin:0 auto; padding:0 1.5rem; }

/* Franja superior — columnas */
.tc-footer-top { padding:3rem 0 2rem; border-bottom:1px solid #1F2937; }
.tc-footer-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:2rem; }
.tc-footer-title { font-size:13px; font-weight:700; color:#F9FAFB; text-transform:uppercase; letter-spacing:.06em; margin:0 0 1rem; }
.tc-footer-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.6rem; }
.tc-footer-list a { font-size:13px; color:#9CA3AF; text-decoration:none; transition:color .15s; }
.tc-footer-list a:hover { color:#F5B800; }

/* Franja media — logo + redes */
.tc-footer-mid { padding:1.5rem 0; border-bottom:1px solid #1F2937; }
.tc-footer-mid-wrap { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:1rem; }
.tc-footer-mid img { opacity:.75; }
.tc-footer-social { display:flex; gap:12px; }
.tc-footer-social a { width:36px; height:36px; border-radius:50%; background:#1F2937; color:#9CA3AF; display:flex; align-items:center; justify-content:center; font-size:16px; text-decoration:none; transition:background .15s, color .15s; }
.tc-footer-social a:hover { background:#2563EB; color:#fff; }

/* Franja inferior — copyright */
.tc-footer-bottom { padding:1.25rem 0; }
.tc-footer-bottom-wrap { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:0.5rem; }
.tc-footer-bottom span { font-size:12px; color:#6B7280; }
.tc-footer-tagline { font-size:12px; color:#6B7280; }

/* Responsive */
@media(max-width:768px) {
    .tc-footer-grid { grid-template-columns:repeat(2,1fr); gap:1.5rem; }
    .tc-footer-bottom-wrap { flex-direction:column; text-align:center; }
    .tc-footer-mid-wrap { justify-content:center; }
}
@media(max-width:480px) {
    .tc-footer-grid { grid-template-columns:1fr; }
}

/* ── TucityADS — Formato universal 1080x1080 (2026-06-07) ──────────────
   Imagen base: 1080×1080px cuadrado
   El sistema adapta con object-fit:cover según el slot
   -------------------------------------------------------------------- */

/* Reset slots anteriores */
.tucity-ads-leaderboard,
.tucity-ads-square,
.tucity-ads-inline { all: unset; display: block; width: 100%; }

/* Contenedor slot */
.tucity-ads-slot {
  width: 100%;
  overflow: hidden;
  margin: 12px 0;
}

/* Item individual */
.tucity-ads-item {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s;
}
.tucity-ads-item:hover { opacity: .93; transform: translateY(-1px); }

/* Imagen — siempre object-fit:cover */
.tucity-ads-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 10px;
}

/* Label publicidad */
.tucity-ads-label {
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 9px;
  color: rgba(255,255,255,.8);
  background: rgba(0,0,0,.35);
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* ── SLOTS ─────────────────────────────────────────────────────────── */

/* B1: Hero top — ancho completo, alto 300px desktop / 200px móvil */
.tucity-ads-slot.slot-B1 { }
.tucity-ads-slot.slot-B1 .tucity-ads-item { height: 300px; }
.tucity-ads-slot.slot-B1 .tucity-ads-item img { height: 300px; }

/* B3: Entre resultados — 4 columnas, 1:1 */
.tucity-ads-slot.slot-B3 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.tucity-ads-slot.slot-B3 .tucity-ads-item {
  aspect-ratio: 1 / 1;
  width: 100%;
}
.tucity-ads-slot.slot-B3 .tucity-ads-item img {
  height: 100%;
  aspect-ratio: 1 / 1;
}

/* B4: Sidebar ficha negocio — cuadrado */
.tucity-ads-slot.slot-B4 .tucity-ads-item {
  aspect-ratio: 1 / 1;
  max-width: 300px;
  margin: 0 auto;
}
.tucity-ads-slot.slot-B4 .tucity-ads-item img {
  aspect-ratio: 1 / 1;
  height: auto;
}

/* B7: Inline productos — banner horizontal 4:1 */
.tucity-ads-slot.slot-B7 .tucity-ads-item {
  aspect-ratio: 4 / 1;
  min-height: 80px;
}
.tucity-ads-slot.slot-B7 .tucity-ads-item img {
  aspect-ratio: 4 / 1;
  height: 100%;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tucity-ads-slot.slot-B1 .tucity-ads-item { height: 180px; }
  .tucity-ads-slot.slot-B1 .tucity-ads-item img { height: 180px; }
  .tucity-ads-slot.slot-B3 { grid-template-columns: repeat(2, 1fr); }
  .tucity-ads-slot.slot-B7 .tucity-ads-item { aspect-ratio: 2 / 1; }
}

/* ── Leaderboard legacy → redirige a B7 ────────────────────────── */
.tucity-ads-leaderboard .tucity-ads-item {
  aspect-ratio: 4 / 1;
  min-height: 80px;
}
.tucity-ads-leaderboard .tucity-ads-item img {
  height: 100%;
  aspect-ratio: 4 / 1;
}
