/* SURA — Directorio de talleres (widget Elementor) — versión autohospedada */

@font-face { font-family: "SuraSans"; src: url("../fonts/SuraSans-Regular.woff2") format("woff2"); font-weight: 450; font-style: normal; font-display: swap; }
@font-face { font-family: "SuraSans"; src: url("../fonts/SuraSans-Seminegrita.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "SuraSans"; src: url("../fonts/SuraSans-Negrita.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

.sura-talleres,
.sura-talleres * { box-sizing: border-box; }

.sura-talleres {
  --sura-azul: #2D6DF6;
  --sura-azul-profundo: #0033A0;
  --sura-azul-medianoche: #26328C;
  --sura-amarillo: #E2EC0A;
  --sura-gris: #888B8D;
  --sura-gris-texto: #3F3F41;
  --sura-hairline: #81B1FF;
  --sura-fondo: #E5E9EA;
  font-family: "SuraSans", var(--font-core, inherit), system-ui, sans-serif;
  color: #0D0D0D;
}

.sura-talleres a { color: var(--sura-azul); text-decoration: none; }
.sura-talleres a:hover { color: var(--sura-azul-profundo); }

/* Hero ------------------------------------------------------------- */
.sura-hero { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
.sura-hero h2 {
  margin: 0; font-size: clamp(24px, 4.4vw, 35px); line-height: 1.1;
  font-weight: 700; color: var(--sura-azul); text-wrap: pretty;
}
.sura-hero p { margin: 0; font-size: clamp(16px, 2.6vw, 19.25px); font-weight: 450; color: var(--sura-azul); }

/* Contenedor ------------------------------------------------------- */
.sura-panel-wrap {
  background: #FFFFFF; border-radius: 12px; padding: 12px;
  display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 8px 25px rgba(83, 89, 144, .07);
}

/* Controles -------------------------------------------------------- */
.sura-controles {
  position: relative; z-index: 800; background: rgba(255, 255, 255, .9);
  border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.sura-fila { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; width: 100%; }
.sura-buscador { flex: 1 1 320px; min-width: 0; position: relative; }
.sura-buscador input {
  width: 100%; height: 48px; padding: 0 40px 0 44px; border: none; border-radius: 12px;
  box-shadow: inset 0 0 0 1px #E7E7E7; font-family: inherit; font-size: 16px; color: #0D0D0D;
  background: #FFFFFF;
}
.sura-buscador input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--sura-azul), 0 0 0 2px rgba(45, 109, 246, .25); }
.sura-buscador .sura-lupa { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--sura-gris); display: flex; }
.sura-buscador .sura-limpiar {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; cursor: pointer; color: var(--sura-gris); font-size: 18px; line-height: 1; padding: 6px;
}

.sura-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px; border: none; border-radius: 28px; cursor: pointer;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.sura-btn--primario, .sura-talleres .sura-btn--primario { background: var(--sura-azul); color: #FFFFFF; }
.sura-btn--primario:hover, .sura-talleres .sura-btn--primario:hover { background: var(--sura-azul-profundo); color: #FFFFFF; }
.sura-btn--primario:active, .sura-talleres .sura-btn--primario:active { background: var(--sura-azul-medianoche); color: #FFFFFF; }
.sura-btn--secundario { background: #FFFFFF; color: var(--sura-azul-profundo); box-shadow: inset 0 0 0 2px var(--sura-azul-profundo); }
.sura-btn--secundario:hover { color: var(--sura-azul); box-shadow: inset 0 0 0 2px var(--sura-azul); }
.sura-btn--ubicacion { flex: 0 0 auto; padding: 12px; gap: 8px; }
.sura-btn--filtros { display: none; }

.sura-filtros { position: relative; z-index: 900; display: flex; gap: 12px 24px; align-items: flex-end; flex-wrap: wrap; }
.sura-filtros__titulo { font-size: 16px; font-weight: 700; color: var(--sura-azul-profundo); padding-bottom: 14px; }
.sura-campo { display: flex; flex-direction: column; gap: 4px; min-width: 220px; flex: 1 1 200px; }
.sura-campo label { font-size: 14px; color: var(--sura-gris-texto); }
.sura-campo select {
  height: 48px; padding: 0 36px 0 14px; border: none; border-radius: 12px; background: #FFFFFF;
  box-shadow: inset 0 0 0 1px #E7E7E7; font-family: inherit; font-size: 16px; color: #0D0D0D;
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%232D6DF6' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.sura-campo select:focus { outline: none; box-shadow: inset 0 0 0 1px var(--sura-azul); }

.sura-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--sura-gris-texto); padding-bottom: 14px; }
.sura-check input { width: 18px; height: 18px; accent-color: var(--sura-azul); cursor: pointer; }
.sura-resumen { font-size: 14px; font-weight: 600; color: var(--sura-azul-profundo); padding-bottom: 14px; }
.sura-geo-msg { font-size: 14px; color: var(--sura-gris-texto); padding-bottom: 14px; }
.sura-link {
  border: none; background: transparent; padding: 0 0 14px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--sura-azul); text-decoration: underline;
}
.sura-drawer__cerrar,
.sura-drawer__ver { display: none; }

/* Mapa + panel ----------------------------------------------------- */
.sura-mapa-wrap { position: relative; z-index: 0; height: 855px; border-radius: 15px; overflow: hidden; background: #DFE7EE; isolation: isolate; }
.sura-mapa { position: absolute; inset: 0; }
.sura-mapa .leaflet-container { border-radius: 15px; font-family: inherit; }
.sura-mapa-wrap .leaflet-tile-pane { transition: filter .3s ease; filter: grayscale(1); }
.sura-mapa-wrap.is-color .leaflet-tile-pane { filter: none; }

.sura-lista-panel {
  position: absolute; left: 6px; top: 16px; width: 359px; max-height: calc(100% - 32px);
  overflow-y: auto; background: #FFFFFF; border-radius: 12px; padding: 24px 40px; z-index: 500;
  box-shadow: 0 8px 25px rgba(83, 89, 144, .16);
}

.sura-item { width: 100%; text-align: left; border: none; background: transparent; padding: 0; cursor: pointer; font-family: inherit; display: block; }
.sura-item__fila { display: flex; align-items: center; gap: 10px; width: 100%; padding: 4px 0; }
.sura-item__datos { display: flex; flex-direction: column; flex-grow: 1; min-width: 0; }
.sura-item__cabecera { display: flex; align-items: center; gap: 8px; min-width: 0; }
.sura-item__badge { display: inline-flex; align-items: center; height: 23px; padding: 4px 8px; border-radius: 4px; background: var(--sura-amarillo); color: var(--sura-azul-profundo); font-size: 9px; font-weight: 600; line-height: 15px; letter-spacing: .5px; text-transform: uppercase; flex-shrink: 0; }
.sura-item__nombre { font-size: 16px; font-weight: 600; line-height: 30px; color: #0D0D0D; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sura-item__dir { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sura-item__dir span { font-size: 12px; line-height: 20px; color: var(--sura-gris-texto); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sura-item__km { font-size: 12px; line-height: 20px; font-weight: 600; color: var(--sura-azul); white-space: nowrap; flex-shrink: 0; }
.sura-chev { display: inline-flex; width: 32px; height: 32px; border-radius: 9999px; background: var(--sura-fondo); align-items: center; justify-content: center; flex-shrink: 0; }
.sura-item__sep { display: block; width: 100%; height: 1px; background: var(--sura-azul); margin: 10px 0; }
.sura-vacio { padding: 24px 0; font-size: 14px; line-height: 21px; color: var(--sura-gris-texto); }

/* Detalle ---------------------------------------------------------- */
.sura-detalle { display: flex; flex-direction: column; gap: 12px; }
.sura-detalle__volver { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: none; background: transparent; padding: 0; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 600; color: var(--sura-azul); }
.sura-detalle__volver .sura-chev { transform: rotate(180deg); }
.sura-detalle h3 { margin: 0; font-size: 24.5px; line-height: 1.1; font-weight: 700; color: var(--sura-azul-profundo); text-wrap: pretty; }
.sura-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.sura-tag { display: inline-flex; align-items: center; height: 23px; padding: 4px 8px; border-radius: 4px; background: #E0EAFF; color: var(--sura-azul-profundo); font-size: 10px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; }
.sura-bloque { display: flex; gap: 8px; align-items: flex-start; }
.sura-bloque__icono { color: var(--sura-azul); display: flex; margin-top: 2px; flex-shrink: 0; }
.sura-bloque__cuerpo { display: flex; flex-direction: column; gap: 4px; }
.sura-rotulo { font-size: 12px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--sura-gris); }
.sura-texto { font-size: 14px; line-height: 21px; color: var(--sura-gris-texto); }
.sura-menor { font-size: 12px; line-height: 18px; color: var(--sura-gris); }
.sura-tel { font-size: 16px; font-weight: 600; line-height: 24px; }
.sura-marca { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--sura-hairline); color: var(--sura-azul-profundo); font-size: 12px; font-weight: 600; }
.sura-acciones { display: flex; flex-direction: column; gap: 8px; }
.sura-acciones .sura-btn { width: 100%; height: 40px; border-radius: 20px; font-size: 14px;}

/* Destacados ------------------------------------------------------- */
.sura-destacados { position: relative; display: flex; align-items: center; gap: 8px; }
.sura-destacados__pista { flex: 1 1 auto; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 4px 2px 12px; }
.sura-destacados__nav { display: none; flex-shrink: 0; width: 36px; height: 36px; border: none; border-radius: 9999px; background: transparent; cursor: pointer; align-items: center; justify-content: center; opacity: .85; }
.sura-destacados__nav:hover { opacity: 1; }
.sura-destacados__nav--atras { transform: rotate(180deg); }

.sura-card { position: relative; flex: 0 0 264px; scroll-snap-align: start; text-align: left; border: none; padding: 0; cursor: pointer; background: #FFFFFF; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; font-family: inherit; box-shadow: inset 0 0 0 1px var(--sura-hairline), 0 4px 20px rgba(0, 0, 0, .1); }
.sura-card:hover { box-shadow: inset 0 0 0 1px var(--sura-azul), 0 4px 20px rgba(0, 0, 0, .16); }
.sura-card__foto { display: block; height: 100px; background: var(--sura-fondo) center / cover no-repeat; }
.sura-card__cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 16px; }
.sura-card__cabecera { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sura-card__nombre { font-size: 16px; font-weight: 600; line-height: 30px; color: #0D0D0D; }
.sura-card__dir { display: flex; align-items: center; gap: 4px; font-size: 14px; line-height: 21px; color: var(--sura-gris-texto); }
.sura-card__badge { position: absolute; right: 16px; top: 9px; height: 23px; padding: 4px 8px; border-radius: 4px; background: var(--sura-amarillo); color: var(--sura-azul-profundo); font-size: 10px; font-weight: 600; line-height: 15px; letter-spacing: .5px; text-transform: uppercase; }

/* Scrim del drawer -------------------------------------------------- */
.sura-scrim { display: none; position: fixed; inset: 0; background: rgba(6, 6, 24, .45); z-index: 1000; }
.sura-talleres.is-drawer .sura-scrim { display: block; }

/* Mobile ------------------------------------------------------------ */
@media (max-width: 999px) {
  .sura-btn--filtros { display: inline-flex; flex: 0 0 auto; min-width: 104px; }
  .sura-btn--ubicacion { flex: 1 1 140px; font-size: 14px; }
  .sura-buscador { flex: 1 1 100%; }

  .sura-mapa-wrap { position: relative; height: auto; display: flex; flex-direction: column; gap: 12px; background: transparent; overflow: visible; }
  .sura-mapa { position: relative; inset: auto; width: 100%; height: 360px; border-radius: 12px; overflow: hidden; background: #DFE7EE; }
  .sura-mapa .leaflet-container { border-radius: 12px; }

  .sura-lista-panel {
    position: relative; left: auto; top: auto; width: 100%; max-height: 520px;
    padding: 16px; z-index: 500; box-shadow: inset 0 0 0 1px var(--sura-hairline);
  }

  .sura-filtros {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(88vw, 340px);
    background: #FFFFFF; z-index: 1001; padding: 20px; display: flex; flex-direction: column;
    align-items: stretch; gap: 20px; overflow-y: auto;
    box-shadow: 0 4px 30px rgba(29, 66, 138, .32);
    transform: translateX(105%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), visibility .28s;
  }
  .sura-talleres.is-drawer .sura-filtros { transform: none; visibility: visible; }
  .sura-talleres.is-drawer .sura-controles { z-index: 1002; }
  .sura-filtros__titulo { font-size: 22px; padding-bottom: 0; }
  .sura-campo { min-width: 0; width: 100%; flex: 0 0 auto; }
  .sura-check, .sura-resumen, .sura-geo-msg { padding-bottom: 0; }
  .sura-link { padding-bottom: 0; }
  .sura-drawer__ver { display: inline-flex; margin-top: auto; height: 48px; }
  .sura-destacados__nav { display: flex; }
}

/* Animaciones -------------------------------------------------------- */
@keyframes sura-entrada { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sura-entrada-lateral { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
.sura-item { animation: sura-entrada .24s cubic-bezier(.2, .7, .3, 1) both; }
.sura-detalle { animation: sura-entrada-lateral .26s cubic-bezier(.2, .7, .3, 1) both; }

@media (prefers-reduced-motion: reduce) {
  .sura-item, .sura-detalle { animation: none; }
  .sura-destacados__pista { scroll-behavior: auto; }
}
