/* TSC Hero Slider · The Sofa Company · v1.1
   Los valores de aquí son los de por defecto: todo se sobrescribe desde
   Elementor → Estilo (tipografías, colores, paddings, medidas). */
.tsc-hs{
  --tsc-hs-h:760px;
  --tsc-hs-split:50%;
  --tsc-hs-ratio:4/3;
  --tsc-hs-nav:#FFFFFF;
  --tsc-hs-ink:#1A1714;
  --tsc-hs-char:#2C2825;
  --tsc-hs-gold:#8B7355;
  --tsc-hs-taupe:#C4B9AA;
  --tsc-hs-stone:#E8E4DE;
  --tsc-hs-cream:#F9F7F4;
  --tsc-hs-white:#FDFCFA;
  --tsc-hs-ease:cubic-bezier(.4,0,.2,1);
  --tsc-hs-mono:'DM Mono',ui-monospace,monospace;
  --tsc-hs-serif:'Cormorant Garamond',Georgia,serif;
  --tsc-hs-sans:'Jost',sans-serif;
  display:grid;
  grid-template-columns:minmax(0,var(--tsc-hs-split)) minmax(0,1fr);
  min-height:var(--tsc-hs-h);
  background:var(--tsc-hs-white);
  font-family:var(--tsc-hs-sans);
  color:var(--tsc-hs-char);
}
.tsc-hs *,.tsc-hs *::before,.tsc-hs *::after{box-sizing:border-box}

/* ── Columna texto ── */
.tsc-hs__left{
  min-width:0;
  display:flex;flex-direction:column;justify-content:center;
  padding:72px 7% 56px 10%;
}
.tsc-hs__panes{display:grid;grid-template-columns:minmax(0,1fr)}
.tsc-hs__pane{
  grid-area:1/1;min-width:0;
  opacity:0;visibility:hidden;transform:translateY(14px);
  transition:opacity .6s var(--tsc-hs-ease),transform .8s var(--tsc-hs-ease),visibility 0s linear .6s;
}
.tsc-hs__pane.is-active{
  opacity:1;visibility:visible;transform:none;
  transition:opacity .7s var(--tsc-hs-ease) .15s,transform .9s var(--tsc-hs-ease) .15s,visibility 0s;
}
.tsc-hs__eyebrow{
  display:flex;align-items:center;gap:16px;
  margin:0 0 24px;
  font-family:var(--tsc-hs-sans);font-size:14px;font-weight:400;line-height:1.4;letter-spacing:.06em;text-transform:uppercase;
  color:var(--tsc-hs-gold);
}
.tsc-hs__eyebrow::before{content:'';width:48px;height:1px;background:var(--tsc-hs-gold);flex-shrink:0}
.tsc-hs__title{
  margin:0 0 28px;
  font-family:var(--tsc-hs-serif);font-weight:300;
  font-size:84px;line-height:1.04;letter-spacing:-.01em;
  color:var(--tsc-hs-ink);
}
.tsc-hs__title em{font-style:italic;color:var(--tsc-hs-gold)}
.tsc-hs__text{
  margin:0 0 36px;max-width:600px;
  font-family:var(--tsc-hs-sans);font-size:17px;font-weight:300;line-height:1.8;color:var(--tsc-hs-char);
}
/* HTML dentro del título y del texto */
.tsc-hs__title .tsc-hs-sm{display:block;font-size:.4em;line-height:1.25;margin-top:.35em}
.tsc-hs__title span[style]{line-height:1.2}
.tsc-hs__text p{margin:0 0 .8em}
.tsc-hs__text p:last-child{margin-bottom:0}
.tsc-hs__text a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.tsc-hs__eyebrow a{color:inherit}
.tsc-hs__ctas{display:flex;align-items:center;gap:16px 32px;flex-wrap:wrap}
.tsc-hs__btn{
  display:inline-block;
  font-family:var(--tsc-hs-sans);font-size:11px;font-weight:400;line-height:1;letter-spacing:.18em;text-transform:uppercase;
  color:var(--tsc-hs-white);background:var(--tsc-hs-ink);
  padding:16px 34px;text-decoration:none;border:1px solid transparent;border-radius:0;
  transition:background-color .3s var(--tsc-hs-ease),color .3s var(--tsc-hs-ease),border-color .3s var(--tsc-hs-ease);
}
.tsc-hs__btn:hover,.tsc-hs__btn:focus-visible{background:var(--tsc-hs-gold);color:var(--tsc-hs-white)}
.tsc-hs__ghost{
  font-family:var(--tsc-hs-sans);font-size:11px;font-weight:400;line-height:1;letter-spacing:.16em;text-transform:uppercase;
  color:var(--tsc-hs-char);text-decoration:none;
  transition:color .3s var(--tsc-hs-ease);
}
.tsc-hs__ghost:hover,.tsc-hs__ghost:focus-visible{color:var(--tsc-hs-gold)}

/* Reseñas: fijas, fuera de los paneles */
.tsc-hs__reviews{
  margin-top:40px;padding:18px 0 22px;
  border-top:1px solid var(--tsc-hs-stone);border-bottom:1px solid var(--tsc-hs-stone);
  display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;
  max-width:680px;
}
.tsc-hs__reviews-sc{min-width:0}

/* ── Columna imagen ── */
.tsc-hs__media{position:relative;overflow:hidden;background:var(--tsc-hs-stone);min-height:100%}
.tsc-hs__slide{
  position:absolute;inset:0;
  opacity:0;visibility:hidden;
  transition:opacity 1s var(--tsc-hs-ease),visibility 0s linear 1s;
}
.tsc-hs__slide.is-active{opacity:1;visibility:visible;transition:opacity 1s var(--tsc-hs-ease),visibility 0s}
/* Cada foto (1 en imagen, N en galería) es un "frame" que funde con el siguiente */
.tsc-hs__frame{position:absolute;inset:0;opacity:0;transition:opacity 1.1s var(--tsc-hs-ease)}
.tsc-hs__frame.is-on{opacity:1}
.tsc-hs__img{
  position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover;object-position:var(--tsc-hs-pos,center);
  transform:scale(1.045);
  transition:transform 7s linear;
}
.tsc-hs__slide.is-active .tsc-hs__frame.is-on .tsc-hs__img{transform:scale(1)}
.tsc-hs__slide.is-gallery .tsc-hs__img{transition-duration:4s}
.tsc-hs__slide.is-graded .tsc-hs__img{filter:saturate(.72) sepia(.14) contrast(1.04)}

/* Etiqueta de almacén */
.tsc-hs__label{
  position:absolute;left:44px;bottom:104px;z-index:2;
  width:300px;padding:36px 28px 24px;
  background:var(--tsc-hs-cream);color:var(--tsc-hs-ink);
  box-shadow:0 8px 40px rgba(0,0,0,.12);
  transform:rotate(-2deg) translateY(12px);opacity:0;transform-origin:left bottom;
  transition:opacity .8s var(--tsc-hs-ease) .45s,transform 1s var(--tsc-hs-ease) .45s;
  font-family:var(--tsc-hs-mono);text-transform:uppercase;
}
.tsc-hs__slide.is-active .tsc-hs__label{opacity:1;transform:rotate(-2deg)}
.tsc-hs__label::before{
  content:'';position:absolute;top:14px;left:50%;width:14px;height:14px;margin-left:-7px;border-radius:50%;
  background:var(--tsc-hs-ink);box-shadow:inset 0 0 0 4px var(--tsc-hs-taupe);
}
.tsc-hs__lk{display:flex;justify-content:space-between;margin:6px 0 12px;font-family:var(--tsc-hs-mono);font-size:10px;letter-spacing:.24em;color:var(--tsc-hs-gold)}
.tsc-hs__lr span{white-space:nowrap}
.tsc-hs__lr{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:9px 0;border-top:1px solid var(--tsc-hs-stone)}
.tsc-hs__lr span:first-child{font-family:var(--tsc-hs-serif);text-transform:none;font-size:20px;font-weight:400;color:var(--tsc-hs-ink)}
.tsc-hs__lr span:last-child{font-family:var(--tsc-hs-mono);font-size:18px;font-weight:300;color:var(--tsc-hs-ink)}
.tsc-hs__cd{
  display:flex;justify-content:space-between;align-items:baseline;
  border-top:1px solid var(--tsc-hs-ink);margin-top:6px;padding-top:12px;
}
.tsc-hs__cd-k{font-family:var(--tsc-hs-mono);font-size:10px;letter-spacing:.2em;color:var(--tsc-hs-char)}
.tsc-hs__cd-v{font-family:var(--tsc-hs-serif);font-size:34px;font-weight:300;letter-spacing:0;line-height:1;color:var(--tsc-hs-ink);text-transform:none}

/* Navegación */
.tsc-hs__nav{
  position:absolute;left:0;right:0;bottom:0;z-index:3;
  display:flex;align-items:center;gap:24px;
  padding:22px 44px;
  background:linear-gradient(180deg,transparent,rgba(26,23,20,.5));
}
.tsc-hs-noshade-yes .tsc-hs__nav{background:none}
/* Contador editorial: 01 ──── 02 */
.tsc-hs__count{display:flex;align-items:center;gap:12px;line-height:1;flex-shrink:0}
.tsc-hs__cur{font-family:var(--tsc-hs-serif);font-size:30px;font-weight:300;font-style:normal;letter-spacing:0;color:#fff;min-width:1.2em}
.tsc-hs__sep{display:block;width:28px;height:1px;background:rgba(255,255,255,.55);background:color-mix(in srgb,var(--tsc-hs-nav) 55%,transparent)}
.tsc-hs__tot{font-family:var(--tsc-hs-mono);font-size:11px;font-weight:400;letter-spacing:.12em;color:rgba(255,255,255,.6)}
/* Barras de progreso (relleno controlado por JS) */
.tsc-hs__bars{display:flex;gap:6px;flex:1;max-width:220px}
.tsc-hs__bar{flex:1;height:20px;padding:9px 0;margin:0;border:0;background:none;cursor:pointer;-webkit-appearance:none;appearance:none}
.tsc-hs__bar i{display:block;height:2px;background:rgba(255,255,255,.3);background:color-mix(in srgb,var(--tsc-hs-nav) 30%,transparent);overflow:hidden}
.tsc-hs__fill{display:block;height:100%;background:var(--tsc-hs-nav);transform:scaleX(0);transform-origin:left center;will-change:transform}
.tsc-hs__arrow{
  display:inline-flex;align-items:center;justify-content:center;
  width:40px;height:40px;padding:0;margin:0;border:1px solid rgba(255,255,255,.4);border-color:color-mix(in srgb,var(--tsc-hs-nav) 40%,transparent);border-radius:0;
  background:transparent;color:var(--tsc-hs-nav);font-size:15px;line-height:1;cursor:pointer;
  -webkit-appearance:none;appearance:none;
  transition:background-color .3s var(--tsc-hs-ease),color .3s var(--tsc-hs-ease);
}
.tsc-hs__prev{margin-left:auto}
.tsc-hs__next{margin-left:-14px}
.tsc-hs__arrow:hover,.tsc-hs__arrow:focus-visible{background:var(--tsc-hs-nav);color:var(--tsc-hs-ink)}
.tsc-hs button:focus-visible,.tsc-hs a:focus-visible{outline:1px solid var(--tsc-hs-gold);outline-offset:4px}

/* ── Responsive (valores base; Elementor los sobrescribe por dispositivo) ── */
@media (max-width:1024px){
  .tsc-hs{grid-template-columns:minmax(0,1fr);min-height:0}
  .tsc-hs__media{order:-1;aspect-ratio:var(--tsc-hs-ratio);min-height:0}
  .tsc-hs__left{padding:40px 24px 36px}
  .tsc-hs__title{font-size:56px}
  .tsc-hs__text{font-size:16px;line-height:1.75;margin-bottom:28px}
  .tsc-hs__label{left:20px;bottom:80px;width:250px;padding:30px 22px 18px}
  .tsc-hs__nav{padding:14px 16px 14px 20px;gap:16px}
  .tsc-hs__arrow{width:38px;height:38px}
  .tsc-hs__cur{font-size:24px}
  .tsc-hs__next{margin-left:-8px}
  .tsc-hs__reviews{margin-top:32px}
}
@media (max-width:600px){
  .tsc-hs{--tsc-hs-ratio:1/1}
  .tsc-hs__title{font-size:42px}
  .tsc-hs__eyebrow{font-size:12px;margin-bottom:18px}
  .tsc-hs__eyebrow::before{width:28px}
  .tsc-hs__label{left:16px;bottom:62px}
  .tsc-hs__slide.is-active .tsc-hs__label{transform:rotate(-2deg) scale(.78)}
  .tsc-hs__bars{display:none}
}
@media (prefers-reduced-motion:reduce){
  /* Se mantiene el fundido; se quitan zoom y desplazamientos */
  .tsc-hs__img,.tsc-hs__pane,.tsc-hs__pane.is-active{transform:none!important}
  .tsc-hs__img{transition:none!important}
}
