/* Viscom Sectores — widget de Creative Elements
 * Los valores de este archivo son los del mockup v5 (base). Todo lo que se
 * cambie desde el editor de Creative Elements tiene prioridad sobre ellos.
 * La tipografía se hereda del kit de CE (Poppins); pesos máximos 700.
 */

.vst {
  --vst-tab-line: #cdd1d5;
  --vst-red: #e30613;
  --vst-side-order: 0;
  position: relative;
  color: #111;
}

.vst--img-right { --vst-side-order: 2; }

.vst *,
.vst *::before,
.vst *::after { box-sizing: border-box; }

/* ---------- Pestañas ---------- */
.vst-tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(var(--vst-tab-min, 130px), 1fr);
  border-top: 1px solid var(--vst-tab-line);
  border-left: 1px solid var(--vst-tab-line);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.vst .vst-tab {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 80px;
  margin: 0;
  padding: 14px 20px;
  border: 0;
  border-right: 1px solid var(--vst-tab-line);
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60656a;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.vst .vst-tab:hover { color: #111; }

.vst .vst-tab.is-active {
  background-color: #fff;
  color: #111;
  border-bottom-color: var(--vst-red);
}

.vst .vst-tab:focus-visible {
  outline: 2px solid var(--vst-red);
  outline-offset: -2px;
}

.vst .vst-num {
  display: block;
  margin-bottom: 8px;
  color: var(--vst-red);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.vst .vst-label { display: block; }

/* ---------- Panel ---------- */
.vst-panel {
  --vst-cols: var(--vst-split, 54%) minmax(0, 1fr);
  --vst-order: var(--vst-side-order);
  --vst-photo-min: 0px;
  display: grid;
  grid-template-columns: var(--vst-cols);
  min-height: 580px;
  background-color: #fff;
}

.vst-panel[hidden] { display: none; }

.vst-panel:focus { outline: none; }
.vst-panel:focus-visible { outline: 2px solid var(--vst-red); outline-offset: 2px; }

.vst--anim .vst-panel.is-active { animation: vst-in .4s ease both; }

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

.vst-photo {
  position: relative;
  overflow: hidden;
  order: var(--vst-order);
  min-height: var(--vst-photo-min);
  background-color: #e9ebed;
}

.vst-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}

.vst .vst-badge {
  position: absolute;
  top: 25px;
  left: 25px;
  z-index: 1;
  padding: 9px 11px;
  background-color: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
}

.vst-copy {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 50px;
}

.vst-copy-inner { width: 100%; }

/* ---------- Textos ---------- */
.vst .vst-kicker {
  margin: 0 0 10px;
  color: #60656a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.vst .vst-title {
  margin: 0 0 15px;
  padding: 0;
  color: #111;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  text-transform: none;
}

.vst .vst-title span { color: var(--vst-red); }

.vst .vst-desc {
  margin: 0 0 20px;
  color: #666b70;
  font-size: 16px;
  line-height: 1.55;
}

/* ---------- Etiquetas de familia ---------- */
.vst-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 23px;
}

.vst .vst-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid #d9dde1;
  background-color: #fff;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.vst a.vst-tag:hover { border-color: #111; color: #111; }

/* ---------- Accesos con imagen ---------- */
.vst-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.vst-tiles--single { grid-template-columns: minmax(0, 1fr); }

.vst .vst-tile {
  --vst-tile-a: rgba(0, 0, 0, .78);
  --vst-tile-b: rgba(0, 0, 0, .05);
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100px;
  padding: 12px;
  overflow: hidden;
  background-color: #222;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}

.vst-tile-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .6s ease;
}

.vst .vst-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, var(--vst-tile-a), var(--vst-tile-b));
}

.vst--zoom .vst-tile:hover .vst-tile-img { transform: scale(1.06); }

.vst .vst-tile-text {
  position: relative;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.vst a.vst-tile:focus-visible { outline: 2px solid var(--vst-red); outline-offset: 2px; }

/* ---------- Botones ---------- */
.vst-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vst .vst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.vst .vst-btn:hover { transform: translateY(-2px); }
.vst .vst-btn:focus-visible { outline: 2px solid #ffc400; outline-offset: 3px; }

.vst .vst-btn--primary { background-color: #e30613; border-color: #e30613; color: #fff; }
.vst .vst-btn--primary:hover,
.vst .vst-btn--primary:focus-visible { background-color: #c00510; border-color: #c00510; color: #fff; }

.vst .vst-btn--dark { background-color: #111; border-color: #111; color: #fff; }
.vst .vst-btn--dark:hover,
.vst .vst-btn--dark:focus-visible { background-color: #2b2e33; border-color: #2b2e33; color: #fff; }

.vst .vst-btn--secondary { background-color: #ffc400; border-color: #ffc400; color: #111; }
.vst .vst-btn--secondary:hover,
.vst .vst-btn--secondary:focus-visible { background-color: #ffd23f; border-color: #ffd23f; color: #111; }

.vst .vst-btn--outline { background-color: transparent; border-color: currentColor; color: #111; }
.vst .vst-btn--outline:hover,
.vst .vst-btn--outline:focus-visible { background-color: #111; border-color: #111; color: #fff; }

.vst .vst-btn--light { background-color: #fff; border-color: #d9dde1; color: #111; }
.vst .vst-btn--light:hover,
.vst .vst-btn--light:focus-visible { background-color: #f4f5f6; border-color: #111; color: #111; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .vst-copy { padding: 36px 32px; }
  .vst .vst-title { font-size: 34px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 767px) {
  .vst-tabs { --vst-tab-min: 175px; }

  .vst .vst-panel {
    --vst-cols: minmax(0, 1fr);
    --vst-order: 0;
    --vst-photo-min: var(--vst-photo-h, 350px);
    min-height: 0;
  }

  .vst-copy { padding: 32px 23px; }
  .vst .vst-title { font-size: 33px; }
  .vst .vst-desc { font-size: 15px; }

  .vst--btn-full .vst-actions { flex-direction: column; }
  .vst--btn-full .vst-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .vst--anim .vst-panel.is-active { animation: none; }
  .vst .vst-btn,
  .vst-tile-img { transition: none; }
  .vst .vst-btn:hover,
  .vst--zoom .vst-tile:hover .vst-tile-img { transform: none; }
}
