/* ──────────────────────────────────────────────────────────────
   MotoAVG — Módulo Talleres
   Cargado sólo en: dashboard-taller.php, archive-taller.php, single-taller.php
   ────────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════
   DASHBOARD: layout general
   ═══════════════════════════════════════════════ */

.dashboard-taller{padding-block:var(--section-space)}

.dt-wrap{display:flex;flex-direction:column;gap:32px}

/* ═══════════════════════════════════════════════
   CABECERA DEL DASHBOARD
   ═══════════════════════════════════════════════ */

.dt-header{
  display:flex;
  align-items:center;
  gap:20px;
  padding:24px;
  background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}

.dt-header__identity{display:flex;align-items:center;gap:18px}

.dt-header__logo{
  width:72px;height:72px;
  border-radius:var(--radius-md);
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.1);
  flex-shrink:0;
}

.dt-header__logo-placeholder{
  width:72px;height:72px;
  border-radius:var(--radius-md);
  background:rgba(57,255,20,0.1);
  border:1px solid rgba(57,255,20,0.2);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);
  font-size:1.6rem;font-weight:700;
  color:var(--primary);
  flex-shrink:0;
}

.dt-header__nombre{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:clamp(1.4rem,3vw,1.9rem);
  font-weight:700;
  line-height:1.1;
  color:var(--text);
}

.dt-header__meta{display:flex;flex-direction:column;gap:6px}

/* Badges de estado */
.dt-badge{
  display:inline-flex;align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:var(--radius-pill);
  font-size:.75rem;font-weight:600;
  letter-spacing:.02em;
}

.dt-badge--activo{
  background:rgba(57,255,20,0.12);
  border:1px solid rgba(57,255,20,0.3);
  color:var(--primary);
}

.dt-badge--pendiente{
  background:rgba(255,200,0,0.1);
  border:1px solid rgba(255,200,0,0.25);
  color:#ffc800;
}

/* ═══════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════ */

.dt-tabs{
  display:flex;
  gap:4px;
  padding:6px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius);
  overflow-x:auto;
  scrollbar-width:none;
}
.dt-tabs::-webkit-scrollbar{display:none}

.dt-tab{
  flex-shrink:0;
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;
  background:transparent;
  border:0;border-radius:calc(var(--radius) - 6px);
  color:var(--text-secondary);
  font-size:.9rem;font-weight:600;
  cursor:pointer;
  transition:background var(--duration-base) var(--ease-standard),
             color var(--duration-base) var(--ease-standard);
}

.dt-tab:hover{background:rgba(255,255,255,0.05);color:var(--text)}

.dt-tab--active{
  background:rgba(57,255,20,0.12);
  color:var(--primary);
}

.dt-tab__count{
  min-width:20px;height:20px;
  padding:0 6px;
  background:rgba(255,255,255,0.08);
  border-radius:var(--radius-pill);
  font-size:.72rem;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
}

.dt-tab--active .dt-tab__count{
  background:rgba(57,255,20,0.2);
}

/* ═══════════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════════ */

.dt-panel{display:flex;flex-direction:column;gap:28px}
.dt-panel[hidden]{display:none}
.dt-panel--active{display:flex}

/* ═══════════════════════════════════════════════
   ENCABEZADOS DE SECCIÓN
   ═══════════════════════════════════════════════ */

.dt-section-title h2{
  margin:0 0 6px;
  font-family:var(--font-display);
  font-size:clamp(1.3rem,2.5vw,1.7rem);
  font-weight:700;
  line-height:1.1;
  color:var(--text);
}

.dt-section-desc{margin:0;font-size:.9rem;color:var(--text-secondary)}

.dt-section-title__row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

/* ═══════════════════════════════════════════════
   FORMULARIOS
   ═══════════════════════════════════════════════ */

.dt-form{display:flex;flex-direction:column;gap:20px}

.dt-form__grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.dt-field{display:flex;flex-direction:column;gap:6px}
.dt-field--full{grid-column:1/-1}

.dt-label{
  font-size:.85rem;font-weight:600;
  color:var(--text);
  display:flex;gap:4px;align-items:center;
}

.dt-required{color:var(--primary);font-size:.9em}

.dt-input,
.dt-textarea,
.dt-select{
  width:100%;
  min-height:46px;
  padding:11px 14px;
  background:rgba(255,255,255,0.03);
  color:var(--text);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:var(--radius-sm);
  font-family:var(--font-body);
  font-size:.93rem;
  transition:border-color var(--duration-base),box-shadow var(--duration-base);
  appearance:none;
  -webkit-appearance:none;
}

.dt-input::placeholder,
.dt-textarea::placeholder{color:rgba(255,255,255,0.25)}

.dt-input:focus,
.dt-textarea:focus,
.dt-select:focus{
  outline:none;
  border-color:rgba(57,255,20,0.45);
  box-shadow:0 0 0 4px rgba(57,255,20,0.08);
}

.dt-textarea{min-height:100px;resize:vertical}

/* Flecha personalizada del select */
.dt-select{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23bdbdbd' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:38px;
  cursor:pointer;
}

.dt-form__footer{
  display:flex;align-items:center;gap:14px;flex-wrap:wrap;
  padding-top:8px;
}

.dt-feedback{
  font-size:.85rem;font-weight:500;
  transition:opacity .3s ease;
}

.dt-feedback--ok{color:var(--primary)}
.dt-feedback--error{color:#ff6b6b}
.dt-feedback--loading{color:var(--text-secondary)}

/* ═══════════════════════════════════════════════
   UPLOAD DE LOGO
   ═══════════════════════════════════════════════ */

.dt-logo-upload{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

.dt-logo-preview{
  width:80px;height:80px;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.03);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  color:var(--text-secondary);
  font-size:.78rem;
}

.dt-logo-preview img{width:100%;height:100%;object-fit:cover}

.dt-logo-upload__actions{display:flex;gap:8px;flex-wrap:wrap}

/* ═══════════════════════════════════════════════
   TARJETA DE FORMULARIO (Servicios)
   ═══════════════════════════════════════════════ */

.dt-card{
  padding:24px;
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}

.dt-card h3{
  margin:0 0 20px;
  font-family:var(--font-display);
  font-size:1.15rem;font-weight:700;
  color:var(--text);
}

/* ═══════════════════════════════════════════════
   LISTA DE SERVICIOS
   ═══════════════════════════════════════════════ */

.dt-servicios-lista{display:flex;flex-direction:column;gap:12px}

.dt-svc-item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  border-radius:var(--radius-md);
  flex-wrap:wrap;
}

.dt-svc-item__info{display:flex;flex-direction:column;gap:6px;flex:1;min-width:0}

.dt-svc-item__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.dt-svc-item__nombre{
  font-size:1rem;font-weight:600;
  color:var(--text);
}

.dt-svc-item__desc{
  margin:0;
  font-size:.85rem;
  color:var(--text-secondary);
  line-height:1.5;
}

.dt-svc-item__meta{
  display:flex;gap:16px;flex-wrap:wrap;
  font-size:.82rem;color:var(--text-secondary);
}

.dt-svc-item__meta strong{color:var(--text)}

.dt-svc-item__actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap}

/* ═══════════════════════════════════════════════
   LISTA DE PRODUCTOS (dashboard)
   ═══════════════════════════════════════════════ */

.dt-productos-lista{display:flex;flex-direction:column;gap:12px}

.dt-prod-item{
  display:flex;align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:16px 20px;
  border-radius:var(--radius-md);
  flex-wrap:wrap;
}

.dt-prod-item__img-wrap{flex-shrink:0}

.dt-prod-item__img{
  width:64px;height:64px;
  border-radius:var(--radius-sm);
  object-fit:cover;
}

.dt-prod-item__img-placeholder{
  width:64px;height:64px;
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  display:flex;align-items:center;justify-content:center;
  font-size:1.4rem;
}

.dt-prod-item__info{
  flex:1;min-width:0;
  display:flex;flex-direction:column;gap:5px;
}

.dt-prod-item__head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.dt-prod-item__nombre{
  font-size:.95rem;font-weight:600;
  color:var(--text);
}

.dt-prod-item__desc{
  margin:0;
  font-size:.85rem;
  color:var(--text-secondary);
  line-height:1.5;
}

.dt-prod-item__precio{
  font-size:.88rem;
  color:var(--primary);
  font-weight:600;
}

.dt-prod-item__actions{display:flex;gap:8px;flex-shrink:0;flex-wrap:wrap;align-items:flex-start}

/* ── Upload de imagen del producto ──────────────────────────── */

.dt-prod-img-upload{display:flex;align-items:center;gap:14px;flex-wrap:wrap}

.dt-prod-img-preview{
  width:80px;height:80px;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.03);
  overflow:hidden;
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  color:var(--text-secondary);
  font-size:.78rem;
}

.dt-prod-img-preview img{width:100%;height:100%;object-fit:cover}

@media(min-width:768px){
  .dt-prod-item{flex-wrap:nowrap}
}

/* ═══════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════ */

.dt-empty{
  padding:32px;
  text-align:center;
  color:var(--text-secondary);
  font-size:.93rem;
  border:1px dashed rgba(255,255,255,0.1);
  border-radius:var(--radius-md);
  margin:0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media(min-width:600px){
  .dt-form__grid{grid-template-columns:1fr 1fr}
}

@media(min-width:768px){
  .dt-wrap{gap:40px}
  .dt-card{padding:32px}
  .dt-svc-item{flex-wrap:nowrap}
}


/* ═══════════════════════════════════════════════
   ARCHIVE: cabecera
   ═══════════════════════════════════════════════ */

.talleres-archive{padding-block:var(--section-space)}

.talleres-archive__header{
  text-align:center;
  max-width:560px;
  margin:0 auto 40px;
}

.talleres-archive__kicker{
  display:block;
  margin-bottom:10px;
  letter-spacing:.12em;
}

.talleres-archive__titulo{
  margin:0 0 12px;
  font-family:var(--font-display);
  font-size:clamp(2rem,5vw,3rem);
  font-weight:700;
  color:var(--text);
  line-height:1.05;
}

.talleres-archive__desc{
  margin:0 0 10px;
  color:var(--text-secondary);
  font-size:1rem;
}

.talleres-archive__total{
  font-size:.82rem;
  color:var(--text-secondary);
  letter-spacing:.03em;
}

/* ═══════════════════════════════════════════════
   ARCHIVE: filtro por ciudad
   ═══════════════════════════════════════════════ */

.talleres-filtro{
  display:flex;flex-wrap:wrap;gap:8px;
  justify-content:center;
  margin-bottom:36px;
}

.talleres-filtro__btn{
  padding:8px 18px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-pill);
  color:var(--text-secondary);
  font-size:.85rem;font-weight:600;
  cursor:pointer;
  transition:background var(--duration-base) var(--ease-standard),
             color var(--duration-base) var(--ease-standard),
             border-color var(--duration-base) var(--ease-standard);
}

.talleres-filtro__btn:hover{
  background:rgba(57,255,20,.06);
  border-color:rgba(57,255,20,.25);
  color:var(--text);
}

.talleres-filtro__btn--active{
  background:rgba(57,255,20,.12);
  border-color:rgba(57,255,20,.35);
  color:var(--primary);
}

/* ═══════════════════════════════════════════════
   ARCHIVE: grid de talleres
   ═══════════════════════════════════════════════ */

.talleres-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.col-full{grid-column:1/-1}

/* ═══════════════════════════════════════════════
   TARJETA DE TALLER (archive + AJAX)
   ═══════════════════════════════════════════════ */

.taller-card{
  display:flex;flex-direction:column;
  border-radius:var(--radius-md);
  border:1px solid rgba(255,255,255,0.07);
  background:linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.02));
  box-shadow:var(--shadow-md);
  overflow:hidden;
  transition:transform var(--duration-base) var(--ease-standard),
             border-color var(--duration-base) var(--ease-standard),
             box-shadow var(--duration-base) var(--ease-standard);
}

.taller-card:hover{
  transform:translateY(-3px);
  border-color:rgba(57,255,20,.18);
  box-shadow:var(--shadow-lg);
}

.taller-card__inner{
  display:flex;flex-direction:column;gap:12px;
  padding:20px 20px 0;
  text-decoration:none;
  color:inherit;
  flex:1;
}

.taller-card__head{
  display:flex;align-items:center;gap:14px;
}

.taller-card__logo{
  width:52px;height:52px;
  border-radius:var(--radius-sm);
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.08);
  flex-shrink:0;
}

.taller-card__logo-placeholder{
  width:52px;height:52px;
  border-radius:var(--radius-sm);
  background:rgba(57,255,20,.1);
  border:1px solid rgba(57,255,20,.2);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);
  font-size:1.1rem;font-weight:700;
  color:var(--primary);
  flex-shrink:0;
}

.taller-card__id{display:flex;flex-direction:column;gap:3px;min-width:0}

.taller-card__nombre{
  margin:0;
  font-family:var(--font-display);
  font-size:1.1rem;font-weight:700;
  color:var(--text);
  line-height:1.15;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.taller-card__ciudad{
  font-size:.8rem;
  color:var(--text-secondary);
}

/* Estrellas */
.taller-card__calificacion{
  display:flex;align-items:center;gap:4px;
}

.tc-star{font-size:.95rem}
.tc-star--full{color:#ffc800}
.tc-star--half{color:#ffc800;opacity:.7}
.tc-star--empty{color:rgba(255,255,255,.2)}

.taller-card__rating-val{
  font-size:.78rem;font-weight:700;
  color:var(--text-secondary);
  margin-left:4px;
}

.taller-card__tags{
  display:flex;flex-wrap:wrap;gap:6px;
  padding-bottom:4px;
}

.taller-card__footer{
  display:flex;gap:8px;align-items:center;
  padding:14px 20px;
  border-top:1px solid rgba(255,255,255,0.05);
  flex-shrink:0;
}

/* ═══════════════════════════════════════════════
   ARCHIVE: loader, vacío, paginación
   ═══════════════════════════════════════════════ */

.talleres-vacio{
  grid-column:1/-1;
  text-align:center;
  padding:48px 16px;
  color:var(--text-secondary);
  border:1px dashed rgba(255,255,255,0.08);
  border-radius:var(--radius-md);
  margin:0;
}

.talleres-loader{
  display:flex;justify-content:center;
  padding:32px 0;
}

.talleres-loader__ring{
  width:36px;height:36px;
  border:3px solid rgba(255,255,255,0.06);
  border-top-color:var(--primary);
  border-radius:50%;
  animation:spin .7s linear infinite;
}

@keyframes spin{to{transform:rotate(360deg)}}

.talleres-paginacion{
  margin-top:40px;
  display:flex;justify-content:center;
}

/* WordPress paginate_links output */
.talleres-paginacion .page-numbers{
  display:flex;flex-wrap:wrap;gap:6px;
  list-style:none;margin:0;padding:0;
}

.talleres-paginacion .page-numbers li a,
.talleres-paginacion .page-numbers li span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:40px;height:40px;
  padding:0 10px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-sm);
  color:var(--text-secondary);
  text-decoration:none;
  font-size:.88rem;font-weight:600;
  transition:background var(--duration-base),border-color var(--duration-base);
}

.talleres-paginacion .page-numbers li a:hover{
  background:rgba(57,255,20,.08);
  border-color:rgba(57,255,20,.25);
  color:var(--text);
}

.talleres-paginacion .page-numbers li span.current{
  background:rgba(57,255,20,.16);
  border-color:rgba(57,255,20,.35);
  color:var(--primary);
}

/* ═══════════════════════════════════════════════
   SINGLE: layout dos columnas
   ═══════════════════════════════════════════════ */

.single-taller{padding-block:var(--section-space)}

.taller-single__layout{
  display:grid;
  grid-template-columns:1fr;
  gap:40px;
  align-items:start;
}

/* ═══════════════════════════════════════════════
   SINGLE: sidebar (info del taller)
   ═══════════════════════════════════════════════ */

.taller-single__sidebar{
  display:flex;flex-direction:column;gap:20px;
  padding:28px;
  background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));
  border:1px solid rgba(255,255,255,0.08);
  border-radius:var(--radius-lg);
  box-shadow:var(--shadow-md);
}

.taller-single__logo-wrap{
  display:flex;justify-content:center;
}

.taller-single__logo{
  width:120px;height:120px;
  border-radius:var(--radius-md);
  object-fit:cover;
  border:1px solid rgba(255,255,255,0.1);
}

.taller-single__logo-placeholder{
  width:120px;height:120px;
  border-radius:var(--radius-md);
  background:rgba(57,255,20,.1);
  border:1px solid rgba(57,255,20,.2);
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);
  font-size:2.4rem;font-weight:700;
  color:var(--primary);
}

.taller-single__nombre{
  margin:0;text-align:center;
  font-family:var(--font-display);
  font-size:clamp(1.5rem,3vw,2rem);
  font-weight:700;line-height:1.1;
  color:var(--text);
}

.taller-single__ciudad{
  text-align:center;
  margin:0;
  color:var(--text-secondary);
  font-size:.9rem;
}

.taller-single__calificacion{
  display:flex;flex-direction:column;align-items:center;gap:6px;
}

.taller-single__estrellas{
  display:flex;gap:3px;font-size:1.2rem;
}

.taller-single__calificacion-val{
  font-size:.85rem;font-weight:600;
  color:var(--text-secondary);
}

.taller-single__descripcion{
  margin:0;
  font-size:.92rem;line-height:1.7;
  color:var(--text-secondary);
  text-align:center;
}

/* Lista de datos de contacto */
.taller-single__contacto{
  margin:0;
  display:flex;flex-direction:column;gap:12px;
}

.taller-single__contacto-item{
  display:flex;flex-direction:column;gap:3px;
  padding:12px 14px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.06);
  border-radius:var(--radius-sm);
}

.taller-single__contacto-item dt{
  font-size:.75rem;font-weight:600;
  color:var(--text-secondary);
  text-transform:uppercase;letter-spacing:.06em;
}

.taller-single__contacto-item dd{
  margin:0;
  font-size:.9rem;
  color:var(--text);
}

.taller-single__contacto-item dd a{
  color:var(--primary);text-decoration:none;
}
.taller-single__contacto-item dd a:hover{text-decoration:underline}

/* Botones CTA */
.taller-single__actions{
  display:flex;gap:10px;flex-wrap:wrap;
}

.taller-single__actions .btn{flex:1;min-width:120px;text-align:center;justify-content:center}

/* Link volver */
.taller-single__back{
  display:inline-flex;align-items:center;gap:6px;
  font-size:.82rem;
  color:var(--text-secondary);
  text-decoration:none;
  transition:color var(--duration-base);
}

.taller-single__back:hover{color:var(--primary)}

/* ═══════════════════════════════════════════════
   SINGLE: tabs (reutiliza patrón del dashboard)
   ═══════════════════════════════════════════════ */

.st-tabs{
  display:flex;gap:4px;
  padding:6px;
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.07);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow-x:auto;
  scrollbar-width:none;
}
.st-tabs::-webkit-scrollbar{display:none}

.st-tab{
  display:inline-flex;align-items:center;gap:8px;
  padding:10px 18px;
  background:transparent;
  border:0;border-radius:calc(var(--radius) - 6px);
  color:var(--text-secondary);
  font-size:.9rem;font-weight:600;
  cursor:pointer;
  flex-shrink:0;
  transition:background var(--duration-base) var(--ease-standard),
             color var(--duration-base) var(--ease-standard);
}

.st-tab:hover{background:rgba(255,255,255,.05);color:var(--text)}

.st-tab--active{
  background:rgba(57,255,20,.12);
  color:var(--primary);
}

.st-tab__count{
  min-width:20px;height:20px;padding:0 5px;
  background:rgba(255,255,255,.08);
  border-radius:var(--radius-pill);
  font-size:.72rem;font-weight:700;
  display:inline-flex;align-items:center;justify-content:center;
}

.st-tab--active .st-tab__count{background:rgba(57,255,20,.2)}

.st-panel[hidden]{display:none}
.st-panel--active{display:block}

/* ═══════════════════════════════════════════════
   SINGLE: lista de servicios
   ═══════════════════════════════════════════════ */

.st-svc-lista{
  list-style:none;margin:0;padding:0;
  display:flex;flex-direction:column;gap:12px;
}

.st-svc-item{
  display:flex;flex-direction:column;gap:8px;
  padding:16px 18px;
  border-radius:var(--radius-md);
}

.st-svc-item__head{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;
}

.st-svc-item__nombre{
  font-size:1rem;font-weight:600;
  color:var(--text);
}

.st-svc-item__desc{
  margin:0;
  font-size:.87rem;line-height:1.6;
  color:var(--text-secondary);
}

.st-svc-item__meta{
  display:flex;gap:16px;flex-wrap:wrap;
  font-size:.83rem;
}

.st-svc-item__precio{
  color:var(--primary);font-weight:700;
}

.st-svc-item__duracion{
  color:var(--text-secondary);
}

/* ═══════════════════════════════════════════════
   SINGLE: grid de productos WooCommerce
   ═══════════════════════════════════════════════ */

.st-productos-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}

.st-prod-item{
  display:flex;align-items:center;gap:14px;
  padding:14px;
  border-radius:var(--radius-md);
  flex-wrap:wrap;
}

.st-prod-item__img{
  width:60px;height:60px;
  border-radius:var(--radius-sm);
  object-fit:cover;
  flex-shrink:0;
}

.st-prod-item__img-placeholder{
  width:60px;height:60px;
  border-radius:var(--radius-sm);
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;
  font-size:1.3rem;
  flex-shrink:0;
}

.st-prod-item__info{
  flex:1;min-width:0;
  display:flex;flex-direction:column;gap:4px;
}

.st-prod-item__nombre{
  font-size:.95rem;font-weight:600;color:var(--text);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}

.st-prod-item__precio{
  font-size:.88rem;font-weight:700;color:var(--primary);
}

/* ═══════════════════════════════════════════════
   SINGLE / ARCHIVE: estado vacío
   ═══════════════════════════════════════════════ */

.st-empty{
  padding:32px;text-align:center;
  color:var(--text-secondary);font-size:.93rem;
  border:1px dashed rgba(255,255,255,.09);
  border-radius:var(--radius-md);margin:0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE PÚBLICO
   ═══════════════════════════════════════════════ */

@media(min-width:480px){
  .taller-card__footer{justify-content:flex-end}
}

@media(min-width:600px){
  .talleres-grid{grid-template-columns:repeat(2,1fr)}
  .st-productos-grid{grid-template-columns:repeat(2,1fr)}
}

@media(min-width:768px){
  .taller-single__sidebar{
    position:sticky;top:100px;
  }
  .taller-single__descripcion,.taller-single__nombre,.taller-single__ciudad{
    text-align:left;
  }
  .taller-single__calificacion{align-items:flex-start}
  .taller-single__logo-wrap{justify-content:flex-start}
}

@media(min-width:900px){
  .taller-single__layout{
    grid-template-columns:300px minmax(0,1fr);
    gap:48px;
  }
}

@media(min-width:1024px){
  .talleres-grid{grid-template-columns:repeat(3,1fr)}
}

/* ═══════════════════════════════════════════════
   DASHBOARD: Solicitudes de asistencia
   ═══════════════════════════════════════════════ */

.dt-sol-lista {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dt-sol-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .18s ease;
}

.dt-sol-card:hover {
  border-color: rgba(57,255,20,.2);
}

.dt-sol-card__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dt-sol-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dt-sol-card__head strong {
  font-size: .95rem;
  font-weight: 600;
}

.dt-sol-card__desc {
  margin: 0;
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-sol-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: var(--muted);
}

.dt-sol-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

/* Badge estados solicitud */
.dt-badge--alert {
  background: rgba(255,68,68,.12);
  border: 1px solid rgba(255,68,68,.3);
  color: #ff7878;
}

.dt-badge--proceso {
  background: rgba(255,180,0,.1);
  border: 1px solid rgba(255,180,0,.3);
  color: #ffc84a;
}

/* Textarea en formulario solicitar */
.sol-textarea {
  resize: vertical;
  min-height: 100px;
  font-family: var(--font-body);
}

.solicitar-page {
  min-height: calc(100vh - 160px);
  display: flex;
  align-items: center;
  padding-block: var(--section-space);
}

.solicitar-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 28px 70px rgba(0,0,0,.55);
}

.solicitar-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  text-align: center;
}

@media(max-width:600px) {
  .dt-sol-card {
    flex-direction: column;
  }
  .dt-sol-card__actions {
    flex-direction: row;
    width: 100%;
  }
  .dt-sol-card__actions .btn {
    flex: 1;
  }
}

/* ── Header: acciones (campana) ───────────────────────────────── */

.dt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dt-header__actions {
  flex-shrink: 0;
  position: relative;
}

/* Campana */
.dt-notif-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  color: var(--color-text-muted, #888);
}
.dt-notif-bell:hover,
.dt-notif-bell[aria-expanded="true"] {
  background: rgba(57,255,20,.1);
  border-color: var(--color-primary, #39FF14);
  color: var(--color-primary, #39FF14);
}
.dt-notif-bell svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  pointer-events: none;
}

/* Badge de no leídas */
.dt-notif-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #ff4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  pointer-events: none;
}

/* ── Panel de notificaciones ──────────────────────────────────── */

.dt-notif-panel {
  position: relative;
  margin-bottom: 24px;
  background: var(--color-surface, #111);
  border: 1px solid rgba(57,255,20,.18);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  animation: dt-notif-in .18s ease;
}

@keyframes dt-notif-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dt-notif-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dt-notif-panel__header h3 {
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-text, #e8e8e8);
}

.dt-notif-lista {
  max-height: 360px;
  overflow-y: auto;
}

/* Item individual */
.dt-notif-item {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: background .15s;
}
.dt-notif-item:last-child {
  border-bottom: none;
}
.dt-notif-item--nueva {
  background: rgba(57,255,20,.05);
  border-left: 3px solid var(--color-primary, #39FF14);
}
.dt-notif-item__msg {
  margin: 0 0 4px;
  font-size: .88rem;
  color: var(--color-text, #e8e8e8);
  line-height: 1.45;
}
.dt-notif-item__fecha {
  font-size: .75rem;
  color: var(--color-text-muted, #666);
}

.dt-notif-empty {
  padding: 20px;
  text-align: center;
  color: var(--color-text-muted, #666);
  font-size: .88rem;
}

/* btn-xs */
.btn.btn-xs {
  font-size: .75rem;
  padding: 4px 10px;
}

/* ═══════════════════════════════════════════════
   GARANTÍA — badges de estado
   ═══════════════════════════════════════════════ */

.dt-badge--garantia-vigente {
  background: rgba(57,255,20,.12);
  border: 1px solid rgba(57,255,20,.3);
  color: var(--primary);
}

.dt-badge--garantia-por_vencer {
  background: rgba(255,180,0,.1);
  border: 1px solid rgba(255,180,0,.3);
  color: #ffc84a;
}

.dt-badge--garantia-vencida {
  background: rgba(255,68,68,.1);
  border: 1px solid rgba(255,68,68,.28);
  color: #ff7878;
}

/* Contador en la pestaña Garantía cuando hay vigentes */
.dt-tab__count--garantia {
  background: rgba(57,255,20,.2);
  color: var(--primary);
}

/* ═══════════════════════════════════════════════
   GARANTÍA — lista y tarjetas
   ═══════════════════════════════════════════════ */

.dt-garantia-lista {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dt-garantia-card {
  padding: 20px 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.07);
  transition: border-color .18s ease;
}

.dt-garantia-card--vigente {
  border-left: 3px solid rgba(57,255,20,.5);
}

.dt-garantia-card--por_vencer {
  border-left: 3px solid rgba(255,180,0,.6);
}

.dt-garantia-card--vencida {
  border-left: 3px solid rgba(255,68,68,.45);
  opacity: .7;
}

.dt-garantia-card__info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dt-garantia-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dt-garantia-card__cliente {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
}

.dt-garantia-card__desc {
  margin: 0;
  font-size: .85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dt-garantia-card__fechas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .82rem;
  color: var(--text-secondary);
}

.dt-garantia-card__fechas strong {
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   GARANTÍA — barra de progreso
   ═══════════════════════════════════════════════ */

.dt-garantia-progress {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dt-garantia-progress__track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,.07);
  border-radius: 3px;
  overflow: hidden;
}

.dt-garantia-progress__fill {
  height: 100%;
  border-radius: 3px;
  transition: width .4s ease;
}

.dt-garantia-progress__fill--vigente {
  background: var(--primary);
}

.dt-garantia-progress__fill--por_vencer {
  background: #ffc84a;
}

.dt-garantia-progress__fill--vencida {
  background: #ff7878;
}

.dt-garantia-progress__pct {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-secondary);
  min-width: 34px;
  text-align: right;
}

/* ═══════════════════════════════════════════════
   HISTORIAL DE SOLICITUDES
   ═══════════════════════════════════════════════ */

.dt-section-title--historial {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.dt-sol-card--historial {
  opacity: .75;
  pointer-events: none;
}

.dt-sol-card--historial:hover {
  border-color: rgba(255,255,255,.1);
  opacity: .85;
}

/* ═══════════════════════════════════════════════
   MI CUENTA
   ═══════════════════════════════════════════════ */

.dt-cuenta-sep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.dt-cuenta-sep::before,
.dt-cuenta-sep::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.08);
}

/* Botón cancelar solicitud */
.dt-btn-cancelar-sol {
  color: rgba(255,100,100,.8);
  border-color: rgba(255,100,100,.2);
}

.dt-btn-cancelar-sol:hover {
  background: rgba(255,68,68,.08);
  border-color: rgba(255,68,68,.35);
  color: #ff7878;
}

@media(max-width:600px) {
  .dt-header {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════
   MAPAS — Leaflet (archive, single, dashboard)
   ═══════════════════════════════════════════════ */

/* Leaflet base override: z-index del popup sobre el header */
.leaflet-top,.leaflet-bottom{z-index:400}

/* ── Archive: contenedor del mapa ── */
.talleres-mapa-wrap{
  margin-bottom:28px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow-md);
}

.talleres-mapa{
  width:100%;
  height:300px;
  background:rgba(255,255,255,.03);
}

@media(min-width:600px){
  .talleres-mapa{height:360px}
}

/* ── Single: mapa en el sidebar ── */
.taller-single__mapa{
  width:100%;
  height:200px;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

/* ── Dashboard: selector de ubicación ── */
.dt-direccion-wrap{
  display:flex;
  gap:8px;
  align-items:stretch;
}

.dt-direccion-wrap input{flex:1;min-width:0}

.dt-mapa-picker{
  width:100%;
  height:280px;
  margin-top:8px;
  border-radius:var(--radius-md);
  overflow:hidden;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.03);
}

.dt-mapa-picker__actions{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
  flex-wrap:wrap;
}

.dt-coords-label{
  font-size:.78rem;
  color:var(--text-secondary);
  font-variant-numeric:tabular-nums;
}

/* ── Popup link ── */
.mapa-popup-link{
  display:inline-block;
  margin-top:4px;
  font-size:.82rem;
  font-weight:600;
  color:var(--primary,#39FF14);
  text-decoration:none;
}
.mapa-popup-link:hover{text-decoration:underline}

/* ── Leaflet popup dark skin ── */
.leaflet-popup-content-wrapper{
  background:#1a1a1a;
  border:1px solid rgba(255,255,255,.12);
  border-radius:8px;
  box-shadow:0 8px 24px rgba(0,0,0,.6);
  color:#e0e0e0;
}
.leaflet-popup-tip-container{display:none}
.leaflet-popup-content{margin:10px 14px;font-size:.85rem;line-height:1.5}
.leaflet-popup-content strong{color:#fff}
.leaflet-popup-content small{color:#888}
