/* ═══ OficiosCerca — Estilos ═══ */
:root {
  --bg: #0f172a; --card: #1e293b; --border: #334155;
  --accent: #f59e0b; --accent-dark: #d97706;
  --text: #f1f5f9; --muted: #94a3b8; --ok: #22c55e; --error: #ef4444;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh;
}
.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }
a { color: var(--accent); }

/* NAV */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { width: 100%; max-width: 1440px; margin: 0 auto; padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 1.35rem; font-weight: 800; text-decoration: none; color: var(--text); white-space: nowrap; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-user { color: var(--text) !important; font-weight: 700 !important; }

/* BOTONES */
.btn {
  display: inline-block; font-weight: 700; text-decoration: none;
  padding: 13px 26px; border-radius: 12px; font-size: 0.98rem;
  border: none; cursor: pointer; transition: transform .15s, background .15s;
  font-family: inherit; text-align: center;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: #1c1005; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-wa { background: var(--ok); color: #052e12; }
.btn-wa:hover { background: #16a34a; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-hablar { background: #2563eb; color: #fff; border: none; }
.btn-hablar:hover { background: #1d4ed8; color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* FLASH (inline, compatibilidad) */
.flash { width: 100%; max-width: 1440px; margin: 14px auto 0; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 0.92rem; }
.flash.ok { background: rgba(34,197,94,.12); color: var(--ok); border: 1px solid rgba(34,197,94,.3); margin-left: 20px; margin-right: 20px; }
.flash.error { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); margin-left: 20px; margin-right: 20px; }

/* POPUP-FLASH (centro de pantalla) */
.popup-flash {
  position: fixed; top: 50%; left: 50%; z-index: 9999;
  transform: translate(-50%, -50%) scale(.95); opacity: 0;
  padding: 18px 34px; border-radius: 14px;
  font-weight: 700; font-size: 1.05rem; text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
  transition: transform .3s ease, opacity .3s ease;
  pointer-events: none; max-width: 90vw;
}
.popup-flash.show { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.popup-flash.ok { background: #22c55e; color: #052e12; border: 1px solid #16a34a; }
.popup-flash.error { background: #ef4444; color: #fff; border: 1px solid #dc2626; }

/* ═══ SLIDER HERO - Nueva Implementación ═══ */
.slider-hero {
  position: relative;
  /* Alto proporcional a las fotos (1920x560) para mostrarlas completas */
  height: max(320px, calc(100vw * 560 / 1920));
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
}

.slider-hero__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Relleno desenfocado para cuando el alto mínimo deja márgenes alrededor de la foto */
.slider-hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--slide-bg) center / cover no-repeat;
  filter: blur(18px) brightness(.6);
  transform: scale(1.15);
  z-index: 0;
}

.slider-hero__slide--active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.slider-hero__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.45), rgba(15,23,42,.85));
  z-index: 2;
}

.slider-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(15,23,42,.6) 100%),
    var(--slide-bg) center / contain no-repeat;
  z-index: 1;
}

.slider-hero__content {
  position: relative;
  z-index: 3;
  padding: 24px 32px;
  max-width: 720px;
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.slider-hero__slide--active .slider-hero__content {
  animation: slideInUp 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slider-hero__icon {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.slider-hero__title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,.5);
  line-height: 1.2;
}

.slider-hero__desc {
  color: #e2e8f0;
  font-size: 1.1rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Navegación: flechas */
.slider-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(15,23,42,.6);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}

.slider-hero__nav:hover {
  background: rgba(15,23,42,.9);
  border-color: rgba(255,255,255,.3);
  transform: translateY(-50%) scale(1.08);
}

.slider-hero__nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.slider-hero__nav--prev { left: 20px; }
.slider-hero__nav--next { right: 20px; }

/* Indicadores (dots) */
.slider-hero__dots {
  position: absolute;
  top: auto;
  background: none;
  backdrop-filter: none;
  border-bottom: none;
  bottom: 24px;
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 10;
  padding: 0 16px;
}

.slider-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 0;
}

.slider-hero__dot:hover {
  background: rgba(255,255,255,.6);
  transform: scale(1.2);
}

.slider-hero__dot--active {
  background: var(--accent);
  width: 32px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.2), 0 0 16px var(--accent);
}

.slider-hero__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Contador de slides */
.slider-hero__counter {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  border: 1px solid rgba(255,255,255,.1);
}

.slider-hero__counter-sep {
  margin: 0 6px;
  color: rgba(255,255,255,.4);
}

/* HERO SEARCH */
.hero-search { margin-top: -28px; position: relative; z-index: 10; }
.search-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 14px; display: flex; gap: 10px; flex-wrap: wrap;
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
}
.search-box select, .search-box input {
  flex: 1; min-width: 150px; padding: 13px; border-radius: 10px;
  border: 1px solid var(--border); background: #0f172a; color: var(--text);
  font-size: 0.95rem; font-family: inherit;
}
.search-box select:focus, .search-box input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* STATS */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 12px; padding: 30px 0 10px; }
.stat { text-align: center; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 8px; }
.stat .num { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.stat .lbl { font-size: 0.8rem; color: var(--muted); }

/* SECCIONES */
section { padding: 36px 0; }
h2.sec { font-size: 1.5rem; text-align: center; margin-bottom: 8px; font-weight: 800; }
.sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 0.95rem; }

/* CHIPS */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chip {
  display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--text);
  padding: 8px 15px; border-radius: 999px; font-size: 0.86rem; cursor: pointer;
  transition: all .15s; text-decoration: none; font-family: inherit;
}
.chip:hover, .chip.activo { background: var(--accent); color: #1c1005; border-color: var(--accent); font-weight: 700; }

/* CARDS PROFESIONALES */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.pro-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px;
  transition: transform .2s, border-color .2s;
}
.pro-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.pro-top { display: flex; gap: 13px; align-items: center; margin-bottom: 10px; }
.avatar {
  width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.15rem; color: #1c1005;
}
.pro-top h3 { font-size: 1rem; }
.pro-oficio { font-size: 0.8rem; color: var(--accent); font-weight: 700; }
.pro-zona { font-size: 0.8rem; color: var(--muted); }
.stars { color: var(--accent); font-size: 0.88rem; }
.stars span { color: var(--muted); font-size: 0.8rem; }
.pro-desc { font-size: 0.86rem; color: var(--muted); margin: 8px 0 12px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tagv { font-size: 0.7rem; padding: 3px 10px; border-radius: 999px; font-weight: 700;
  background: rgba(34,197,94,.12); color: var(--ok); border: 1px solid rgba(34,197,94,.3); }
.tagv.dest { background: rgba(245,158,11,.12); color: var(--accent); border-color: rgba(245,158,11,.3); }

/* FORMS */
.form-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; max-width: 520px; margin: 0 auto; }
.form-card label { display: block; font-size: 0.84rem; font-weight: 700; margin: 14px 0 5px; color: var(--muted); }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--border);
  background: #0f172a; color: var(--text); font-size: 0.95rem; font-family: inherit;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-card .row { display: flex; gap: 12px; } .form-card .row > div { flex: 1; }
.rol-selector { display: flex; gap: 10px; margin-top: 6px; }
.rol-opt { flex: 1; text-align: center; padding: 16px 10px; border-radius: 12px; border: 2px solid var(--border); cursor: pointer; transition: all .15s; }
.rol-opt.sel { border-color: var(--accent); background: rgba(245,158,11,.08); }
.rol-opt .ico { font-size: 1.8rem; display: block; margin-bottom: 4px; }
.rol-opt b { font-size: 0.92rem; }
.rol-opt small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }

/* STAR PICKER */
.star-input { display: flex; gap: 4px; }
.star-input button { background: none; border: none; font-size: 1.7rem; cursor: pointer; color: #475569; transition: transform .1s, color .1s; padding: 2px; }
.star-input button.on { color: var(--accent); }
.star-input button:hover { transform: scale(1.2); }

/* PERFIL PRO */
.perfil-head { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px; }
.perfil-head .top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.perfil-head .avatar { width: 74px; height: 74px; font-size: 1.7rem; }
.rating-big { font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.rating-bars { margin-top: 14px; }
.rating-bar { display: flex; align-items: center; gap: 10px; font-size: 0.84rem; margin-bottom: 6px; color: var(--muted); }
.rating-bar .lbl { width: 90px; }
.rating-bar .track { flex: 1; height: 8px; background: #0f172a; border-radius: 999px; overflow: hidden; }
.rating-bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.resena { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-bottom: 12px; }
.resena .head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.resena .quien { font-weight: 700; font-size: 0.95rem; }
.resena .fecha { color: var(--muted); font-size: 0.78rem; }
.resena .trabajo { font-size: 0.85rem; color: var(--accent); font-weight: 600; margin-bottom: 4px; }
.resena .comentario { color: #cbd5e1; font-size: 0.92rem; }
.resena .sub-ratings { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }

/* PANEL */
.panel-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.bienvenida { padding: 26px 0 6px; }
.bienvenida h1 { font-size: 1.5rem; }
.bienvenida p { color: var(--muted); font-size: 0.92rem; }

/* STEPS */
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.step { background: var(--card); border-radius: 14px; padding: 20px; border: 1px solid var(--border); text-align: center; }
.step .n { background: var(--accent); color: #1c1005; font-weight: 800; width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step h3 { font-size: 0.98rem; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 0.86rem; }

/* CTA banner */
.cta-banner { background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(245,158,11,.04)); border: 1px solid rgba(245,158,11,.35); border-radius: 18px; padding: 32px; text-align: center; }
.cta-banner h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cta-banner p { color: var(--muted); margin-bottom: 18px; }

.vacio { text-align: center; color: var(--muted); padding: 34px 10px; }
.vacio p:first-child { font-size: 2rem; }

/* MULTI-BARRIO: chips seleccionables */
.barrios-grid {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px;
  max-height: 230px; overflow-y: auto; padding: 12px;
  background: #0f172a; border: 1px solid var(--border); border-radius: 12px;
}
.barrios-grid label { margin: 0; }
.barrios-grid input { display: none; }
.bchip {
  display: inline-block; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); font-size: 0.8rem; cursor: pointer;
  color: var(--muted); font-weight: 600; transition: all .15s; user-select: none;
}
.bchip:hover { border-color: var(--accent); color: var(--text); }
.barrios-grid input:checked + .bchip { background: var(--accent); color: #1c1005; border-color: var(--accent); }
.bcomuna { width: 100%; font-size: 0.7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
.tagv.zb { background: rgba(148,163,184,.12); color: #cbd5e1; border-color: var(--border); font-weight: 600; }

footer { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 34px 20px 40px; border-top: 1px solid var(--border); margin-top: 30px; }

/* TRABAJOS: galería de últimos trabajos */
.trabajos-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px; margin-top: 16px;
}
.trabajo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: transform .15s;
}
.trabajo-card:hover { transform: translateY(-3px); }
.trabajo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.trabajo-card .tc-body { padding: 10px 12px 12px; }
.trabajo-card .tc-body b { font-size: 0.9rem; }
.trabajo-card .tc-body p { margin: 4px 0 8px; color: var(--muted); font-size: 0.78rem; }

/* Checkboxes alineados (pasarela de pago y otros) */
label.check { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-weight: 600; }
label.check input[type="checkbox"] { margin: 0; width: 16px; height: 16px; flex: none; }
.plan-row { display: flex; align-items: center; gap: 14px; margin: 8px 0; }
.plan-row .plan-label { min-width: 110px; margin: 0; }

/* ADMIN: layout con menú lateral */
.admin-layout { display: flex; gap: 22px; align-items: flex-start; }
iframe.admin-side {
  width: 230px; min-height: 300px; flex: none;
  border: 1px solid var(--border); border-radius: 16px; background: #1e293b;
}
@media (max-width: 760px) { iframe.admin-side { width: 100%; } }
section[id] { scroll-margin-top: 18px; }
.admin-main { flex: 1; min-width: 0; }
@media (max-width: 760px) { .admin-layout { flex-direction: column; } .admin-side { width: 100%; position: static; } }

/* Panel profesional: layout con menú lateral */
.pro-layout { display: flex; gap: 22px; align-items: flex-start; }
.pro-side { width: 200px; flex: none; position: sticky; top: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 16px 12px; }
.pro-side h3 { margin: 0 0 10px; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.pro-side a { display: block; padding: 10px 12px; margin: 6px 0; border-radius: 10px; border: 1px solid var(--border); background: #0f172a; color: var(--text); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.pro-side a:hover { border-color: var(--accent); color: var(--accent); }
.pro-main { flex: 1; min-width: 0; }
@media (max-width: 760px) { .pro-layout { flex-direction: column; } .pro-side { width: 100%; position: static; } }
section[id] { scroll-margin-top: 16px; }

/* ═══ RESPONSIVE: celular / tablet / escritorio ═══ */
.search-box select, .search-box input { min-width: 140px; }
@media (max-width: 900px) {
  .slider-hero { height: max(300px, calc(100vw * 560 / 1920)); border-radius: 16px; }
  .slider-hero__title { font-size: 1.8rem; }
  .slider-hero__desc { font-size: 1rem; }
  .slider-hero__icon { font-size: 3rem; }
  .slider-hero__nav { width: 44px; height: 44px; }
  .slider-hero__nav--prev { left: 12px; }
  .slider-hero__nav--next { right: 12px; }
  .slider-hero__counter { top: 12px; right: 12px; font-size: 0.8rem; }
}
@media (max-width: 600px) {
  .container, .nav-inner { padding-left: 16px; padding-right: 16px; }
  section { padding: 24px 0; }
  .slider-hero { height: 280px; border-radius: 12px; margin: 0 -16px; }
  .slider-hero__title { font-size: 1.5rem; }
  .slider-hero__desc { font-size: 0.95rem; }
  .slider-hero__icon { font-size: 2.5rem; }
  .slider-hero__content { padding: 16px 20px; }
  .slider-hero__nav { width: 38px; height: 38px; }
  .slider-hero__nav--prev { left: 8px; }
  .slider-hero__nav--next { right: 8px; }
  .slider-hero__dots { bottom: 16px; gap: 8px; }
  .slider-hero__dot { width: 10px; height: 10px; }
  .slider-hero__dot--active { width: 28px; }
  .slider-hero__counter { display: none; }
  .search-box { flex-direction: column; }
  .search-box select, .search-box input, .search-box .btn { width: 100%; }
  .form-card { padding: 18px; }
  .form-card .row { flex-direction: column; }
  .plan-row { flex-wrap: wrap; }
  .perfil-head { padding: 18px; }
  .rating-big { font-size: 1.8rem; }
  .cta-banner { padding: 22px 16px; }
  .nav-links { gap: 12px; }
  /* Tablas del admin: scroll horizontal en pantallas chicas */
  .container table { display: block; overflow-x: auto; white-space: nowrap; }
  .popup-flash { width: calc(100vw - 32px); }
}

/* ── 🔔 Notificaciones en tiempo real ── */
#notifWrap { position: relative; display: inline-flex; align-items: center; }
#notifBell { position: relative; font-size: 1.05rem; line-height: 1; }
.notif-badge {
  position: absolute; top: -9px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--error); color: #fff; font-size: 0.68rem; font-weight: 800;
  display: none; align-items: center; justify-content: center;
}
#notifPanel {
  display: none; position: absolute; right: 0; top: 140%; width: min(92vw, 340px); max-height: 60vh;
  overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4); z-index: 200; padding: 8px;
}
.notif-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 4px 6px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; font-size: 0.85rem; color: var(--text);
}
.notif-head .btn { padding: 4px 8px; font-size: 0.72rem; }
.notif-item {
  display: block; padding: 9px 10px; border-radius: 10px; text-decoration: none;
  border: 1px solid transparent; margin-bottom: 4px;
}
.notif-item:hover { background: rgba(148, 163, 184, 0.12); }
.notif-item.nueva { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.3); }
.notif-item .nt { display: block; color: var(--text); font-weight: 700; font-size: 0.85rem; }
.notif-item .nm { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 2px; }
.notif-item .nf { display: block; color: var(--muted); font-size: 0.68rem; margin-top: 4px; opacity: 0.8; }
.notif-vacio { color: var(--muted); font-size: 0.82rem; text-align: center; padding: 16px 8px; margin: 0; }
#notifToasts {
  position: fixed; right: 18px; bottom: 96px; z-index: 1500;
  display: flex; flex-direction: column; gap: 8px; max-width: min(92vw, 340px);
}
.notif-toast {
  background: var(--card); border: 1px solid var(--accent); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); cursor: pointer;
  opacity: 1; transform: translateX(0); transition: opacity 0.35s, transform 0.35s;
}
.notif-toast.sale { opacity: 0; transform: translateX(30px); }

/* ── 📸 Slide de trabajos (visible solo para clientes logueados) ── */
.slide { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: #0b1220; }
.slide-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.slide-track::-webkit-scrollbar { display: none; }
.slide-item { flex: 0 0 100%; scroll-snap-align: center; position: relative; }
.slide-item img { width: 100%; height: min(52vh, 420px); object-fit: cover; display: block; }
.slide-cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 16px 26px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); color: #fff;
}
.slide-cap b { display: block; font-size: 0.95rem; }
.slide-cap span { display: block; font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }
.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%;
  border: none; background: rgba(15, 23, 42, 0.65); color: #fff; font-size: 1.4rem; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.slide-nav:hover { background: rgba(15, 23, 42, 0.9); }
.slide-nav.prev { left: 10px; }
.slide-nav.next { right: 10px; }
.slide-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 6px; justify-content: center; }
.slide-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.2s;
}
.slide-dots button.on { background: var(--accent); width: 22px; border-radius: 999px; }

/* ═══ 🪪 Tarjeta digital 9×5 (tipo carnet) ═══ */
.td-wrap { display:flex; flex-direction:column; gap:10px; align-items:flex-start; }
.td-card {
  aspect-ratio: 9 / 5;
  width: 100%; max-width: 470px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.10);
  display: flex; flex-direction: column;
  position: relative;
}
.td-top {
  background: linear-gradient(120deg, var(--accent,#f59e0b), var(--accent-dark,#d97706));
  color: #1c1005;
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 12px;
  font-size: .66rem; font-weight: 700; letter-spacing: .04em;
}
.td-logo { font-size: .74rem; }
.td-tag { background: rgba(28,16,5,.14); border: 1px solid rgba(28,16,5,.35); padding: 1px 8px; border-radius: 999px; }
.td-body { display: flex; gap: 10px; align-items: center; padding: 8px 12px 4px; }
.td-avatar {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.25rem;
}
.td-nombre { font-size: 1.02rem; font-weight: 800; line-height: 1.15; color: #000; }
.td-oficio { font-size: .74rem; color: #000; font-weight: 600; margin-top: 1px; }
.td-quefrezco { padding: 4px 12px 2px; font-size: .72rem; }
.td-quefrezco b { font-size: .68rem; letter-spacing: .02em; color: #000; }
.td-items { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 2px; }
.td-items span { color: #000; }
.td-items span::before { content: "• "; color: #000; }
.td-zona { padding: 2px 12px; font-size: .68rem; color: #000; font-weight: 600; }
.td-foot {
  margin-top: auto; padding: 5px 12px;
  border-top: 1px dashed rgba(0,0,0,.15);
  display: flex; justify-content: center; align-items: center;
  gap: 8px; font-size: .68rem; color: #000; text-align: center;
}
.td-link { font-weight: 700; color: #000; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
