/* SueldoClaro — Guías ("Conceptos para decidir mejor") Carousel & Interactive System */

.guides-section {
  position: relative;
  overflow: hidden;
}

/* Background Canvas Layer */
.guides-canvas-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, transparent 100%);
}
#guidesCanvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.guides-section .guides-forum-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}
.guides-section .guides-forum-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}
.guides-section .guides-forum-copy {
  max-width: 720px;
}

/* Pro Kicker without emoji */
.guides-section .guides-kicker {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px !important;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guides-kicker-dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  display: inline-block;
  animation: kickerPulse 2.2s ease-in-out infinite;
}
@keyframes kickerPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); box-shadow: 0 0 12px #34d399; }
}

.guides-section .guides-forum-title {
  margin: 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}
.guides-section .guides-forum-title a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.18s ease;
}
.guides-section .guides-forum-title a:hover {
  color: var(--accent);
}
.guides-section .guides-forum-copy > p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.guides-section .guides-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 6px 14px;
  border: 1px solid rgba(22, 122, 91, 0.22);
  border-radius: 999px;
  background: rgba(22, 122, 91, 0.05);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 760;
  text-decoration: none;
  transition: all 0.2s ease;
}
.guides-section .guides-all span {
  display: none;
}
.guides-section .guides-all:hover {
  background: rgba(22, 122, 91, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.guides-section .guides-all:hover span {
  transform: translate(2px, -2px);
}

/* Carousel Layout */
.guide-forum {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 16px;
}
.guide-forum-viewport {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 20px;
  outline: none;
}
.guide-forum-viewport::-webkit-scrollbar {
  display: none;
}
.guide-forum-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
.guide-forum-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);
  gap: 16px;
  padding: 8px 4px;
}
.guide-forum-card {
  min-width: 0;
  scroll-snap-align: start;
}

/* Interactive Modern Cards */
.guide-forum-link {
  position: relative;
  min-height: 216px;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  border: 1.5px solid rgba(22, 122, 91, 0.12);
  border-radius: 20px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(22, 122, 91, 0.05);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              background 0.25s ease;
}
.guide-forum-link:hover,
.guide-forum-link:focus-visible {
  border-color: rgba(22, 122, 91, 0.40);
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04), 0 16px 36px rgba(22, 122, 91, 0.12);
  outline: none;
}
.guide-forum-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.guide-forum-category {
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22, 122, 91, 0.07);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(22, 122, 91, 0.14);
  transition: all 0.2s ease;
}
.guide-forum-link:hover .guide-forum-category {
  background: rgba(22, 122, 91, 0.14);
  border-color: rgba(22, 122, 91, 0.30);
}
.guide-forum-number {
  color: var(--sc-muted, #667085);
  font: 700 11px/1.2 'JetBrains Mono', ui-monospace, monospace;
  opacity: 0.85;
}
.guide-forum-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-size: 18px;
  line-height: 1;
  margin-bottom: 12px;
  transition: transform 0.2s ease;
}
.guide-forum-link:hover .guide-forum-icon {
  transform: scale(1.08);
}
.guide-forum-link h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.guide-forum-link p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}
.guide-forum-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 750;
  border-top: none;
  padding-top: 0;
}
.guide-forum-read b {
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}
.guide-forum-link:hover .guide-forum-read b {
  transform: translateX(4px);
}

/* Interactive SVG Arrow Buttons */
.guide-forum-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1.5px solid rgba(22, 122, 91, 0.22);
  border-radius: 50%;
  background: #ffffff;
  color: var(--sc-ink, #18201b);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 6px 16px rgba(22, 122, 91, 0.06);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.guide-forum-arrow svg {
  display: block;
  transition: transform 0.22s ease;
}
.guide-forum-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
  transform: scale(1.10);
  box-shadow: 0 4px 14px rgba(22, 122, 91, 0.32), 0 8px 24px rgba(22, 122, 91, 0.18);
}
.guide-forum-arrow[data-guide-previous]:hover svg {
  transform: translateX(-2.5px);
}
.guide-forum-arrow[data-guide-next]:hover svg {
  transform: translateX(2.5px);
}
.guide-forum-arrow:active {
  transform: scale(0.92);
  box-shadow: 0 2px 6px rgba(22, 122, 91, 0.2);
}
.guide-forum-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Footer Counter & Progress */
.guide-forum-footer {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
}
.guide-forum-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 12px/1 'JetBrains Mono', ui-monospace, monospace;
}
.guide-forum-count strong {
  color: var(--accent);
  font-size: 16px;
}
.guide-forum-loop {
  display: inline-block;
  flex: 0 0 32px;
  width: 32px;
  height: 18px;
  color: var(--accent, #167a5b);
  vertical-align: -3px;
  overflow: visible;
}
.guide-forum-loop svg { display: block; width: 100%; height: 100%; overflow: visible; }
.guide-forum-loop path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-forum-loop-base { opacity: .34; }
.guide-forum-loop-trace {
  stroke-width: 2.65;
  stroke-dasharray: 18 82;
  animation: guideLoopOrbit 2.4s linear infinite;
}
@keyframes guideLoopOrbit {
  to { stroke-dashoffset: -100; }
}
.guide-forum-hint {
  margin: 0;
  font-size: 11px;
  opacity: 0.8;
}
.guide-forum-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dark Mode Harmonization */
html[data-theme="dark"] .guide-forum-link {
  background: rgba(18, 23, 20, 0.88);
  border-color: rgba(69, 201, 156, 0.18);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .guide-forum-link:hover {
  background: #151f19;
  border-color: rgba(69, 201, 156, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4), 0 16px 40px rgba(69, 201, 156, 0.16);
}
html[data-theme="dark"] .guide-forum-category {
  background: rgba(69, 201, 156, 0.10);
  border-color: rgba(69, 201, 156, 0.25);
  color: #45c99c;
}
html[data-theme="dark"] .guide-forum-arrow {
  background: rgba(18, 23, 20, 0.92);
  border-color: rgba(69, 201, 156, 0.25);
  color: #e4e9e6;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
html[data-theme="dark"] .guide-forum-arrow:hover {
  background: #10b981;
  border-color: #10b981;
  color: #06150f;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
}
html[data-theme="dark"] .guides-section .guides-all {
  background: rgba(69, 201, 156, 0.08);
  border-color: rgba(69, 201, 156, 0.25);
  color: #45c99c;
}
html[data-theme="dark"] .guides-section .guides-all:hover {
  background: rgba(69, 201, 156, 0.18);
  border-color: #45c99c;
}

/* The article is only a carousel slot; the link is the single visible surface. */
body.sc-polish #guias .guide-forum-card,
body.sc-polish #guias .guide-forum-card:hover {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.sc-polish #guias .guide-forum-link,
body.sc-polish #guias .guide-forum-link:hover,
body.sc-polish #guias .guide-forum-link:focus-visible {
  box-shadow: none !important;
}

/* Responsive */
@media (max-width: 900px) {
  .guide-forum-track {
    grid-auto-columns: calc((100% - 16px) / 2);
  }
}
@media (max-width: 700px) {
  .guides-section .guides-forum-shell {
    gap: 25px;
  }
  .guides-section .guides-forum-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .guides-section .guides-forum-title {
    font-size: 32px;
  }
  .guide-forum {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .guide-forum-viewport {
    grid-column: 1;
    grid-row: 1;
  }
  .guide-forum-track {
    grid-auto-columns: 88%;
    gap: 12px;
  }
  .guide-forum-card {
    scroll-snap-align: center;
  }
  .guide-forum-link {
    min-height: 230px;
    padding: 22px;
  }
  .guide-forum-arrow {
    grid-row: 2;
    width: 42px;
    height: 42px;
  }
  .guide-forum-arrow[data-guide-previous] {
    grid-column: 1;
    justify-self: start;
  }
  .guide-forum-arrow[data-guide-next] {
    grid-column: 1;
    justify-self: start;
    margin-left: 56px;
  }
  .guide-forum-footer {
    grid-column: 1;
    grid-row: 2;
    align-self: center;
    margin: 0 0 0 118px;
  }
  .guide-forum-hint {
    display: none;
  }
}

/* Controles editoriales claros y discretos; la tarjeta es el enlace. */
.guide-forum {
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 12px;
}
.guide-forum-control {
  width: 44px;
  height: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(22, 122, 91, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.78);
  color: var(--sc-muted, #5f6863);
  cursor: pointer;
  transition: color 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-forum-control svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-forum-control:hover {
  border-color: rgba(22, 122, 91, 0.38);
  background: rgba(232, 245, 239, 0.92);
  color: var(--accent, #167a5b);
  transform: translateY(-1px);
}
.guide-forum-control[data-guide-previous]:hover svg { transform: translateX(-1.5px); }
.guide-forum-control[data-guide-next]:hover svg { transform: translateX(1.5px); }
.guide-forum-control:active { transform: scale(0.97); }
.guide-forum-control:focus-visible {
  outline: 2px solid var(--accent, #167a5b);
  outline-offset: 3px;
}
.guide-forum-link { cursor: pointer; }
.guide-forum-link:focus-visible h3 { color: var(--accent, #167a5b); }
.guide-forum-card.is-arriving .guide-forum-link {
  animation: guideCardArrival 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes guideCardArrival {
  from { opacity: 0.84; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
html[data-theme="dark"] .guide-forum-control {
  border-color: rgba(69, 201, 156, 0.24);
  background: rgba(18, 23, 20, 0.82);
  color: #e4e9e6;
}
html[data-theme="dark"] .guide-forum-control:hover {
  border-color: rgba(69, 201, 156, 0.48);
  background: rgba(69, 201, 156, 0.12);
  color: #45c99c;
}
@media (max-width: 700px) {
  .guide-forum { grid-template-columns: 44px 44px minmax(0, 1fr); gap: 12px 10px; }
  .guide-forum-control { grid-row: 2; width: 44px; height: 44px; }
  .guide-forum-viewport { grid-column: 1 / -1; grid-row: 1; }
  .guide-forum-track { grid-auto-columns: min(88%, 340px); gap: 12px; padding: 6px 2px; }
  .guide-forum-card { scroll-snap-align: start; }
  .guide-forum-link { min-height: 208px; padding: 20px; }
  .guide-forum-control[data-guide-previous] { grid-column: 1; justify-self: start; }
  .guide-forum-control[data-guide-next] { grid-column: 2; justify-self: end; }
  .guide-forum-footer {
    grid-column: 3;
    grid-row: 2;
    justify-content: flex-end;
    align-self: center;
    margin: 0;
    min-width: 0;
  }
  .guide-forum-count { gap: 6px; }
  .guide-forum-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .guide-forum-control {
    transition: color 80ms ease, background-color 80ms ease, border-color 80ms ease;
    transform: none !important;
  }
  .guide-forum-control svg { transition: none !important; transform: none !important; }
  .guide-forum-card.is-arriving .guide-forum-link {
    animation: guideCardArrivalReduced 180ms ease-out both;
    transition: none !important;
    transform: none !important;
  }
  .sc-polish #guias .guide-forum-loop-trace {
    opacity: .65;
    stroke-dasharray: 8 92;
    animation: guideLoopOrbit 6s linear infinite !important;
  }
}
@keyframes guideCardArrivalReduced {
  from { opacity: 0.88; }
  to { opacity: 1; }
}

.sc-polish #guias .guide-forum-meta{flex-wrap:wrap;gap:8px}
.sc-polish #guias .guide-forum-date{font:400 11px/1.4 Inter,sans-serif;color:var(--muted);letter-spacing:0;text-transform:none}

/* Quiet controls and seamless circular ordering. */
.sc-polish #guias .guide-forum-control{border:0!important;background:transparent!important;box-shadow:none!important;color:var(--muted)!important;border-radius:10px!important;transition:background .2s,color .2s,transform .2s}
.sc-polish #guias .guide-forum-control:hover,.sc-polish #guias .guide-forum-control:focus-visible{background:color-mix(in srgb,var(--accent) 8%,transparent)!important;color:var(--accent)!important}
.sc-polish #guias .guide-forum-control:active{transform:scale(.94)}
.sc-polish #guias .guide-forum-control svg{width:18px;height:18px;stroke-width:1.5}
@keyframes guideStepEnter{from{opacity:.7;transform:translateX(var(--guide-step-offset,14px))}to{opacity:1;transform:translateX(0)}}
.sc-polish #guias .guide-forum-viewport.is-stepping .guide-forum-track{animation:guideStepEnter 300ms cubic-bezier(.2,.7,.2,1)}
.sc-polish #guias .guide-forum-loop-trace{stroke-dasharray:28 72!important;stroke-width:2.2;animation:guideLoopOrbit 5s linear infinite!important}
@media(prefers-reduced-motion:reduce){.sc-polish #guias .guide-forum-viewport.is-stepping .guide-forum-track{animation:guideCardArrivalReduced 180ms ease-out}.sc-polish #guias .guide-forum-loop-trace{animation:guideLoopOrbit 8s linear infinite!important}}
