/* ===================================================================
   TECNI SOLUCIONES COLOMBIA — Home redesign
   Scoped under .tsc-home to avoid leaking into the rest of Elementor.
   =================================================================== */

.tsc-home {
  /* Brand palette — sampled directly from the manual de marca (logo TSC) */
  --tsc-ink: #0A2233;        /* deep navy — dark sections, replaces neutral graphite */
  --tsc-ink-soft: #123244;   /* lighter navy — cards/panels over ink */
  --tsc-paper: #F5F7F8;
  --tsc-paper-dim: #E7ECEF;
  --tsc-white: #FFFFFF;
  --tsc-red: #B50422;        /* brand red, sampled from logo */
  --tsc-red-dark: #8A0219;
  --tsc-blue: #047AB5;       /* brand blue, sampled from logo */
  --tsc-blue-dark: #044F75;  /* darker facet blue, sampled from logo */
  --tsc-steel: #56666F;
  --tsc-steel-light: #93A7B0;
  --tsc-border: rgba(10, 34, 51, 0.12);
  --tsc-border-dark: rgba(245, 244, 241, 0.14);

  --tsc-font-display: 'Archivo', 'Arial Narrow', sans-serif;
  --tsc-font-body: 'IBM Plex Sans', Arial, sans-serif;
  --tsc-font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --tsc-radius: 4px;
  --tsc-max: 1160px;

  font-family: var(--tsc-font-body);
  color: var(--tsc-ink);
  background: var(--tsc-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;

  /* Hard safety net: no matter how a page builder wraps this shortcode,
     nothing inside is allowed to push the page wider than the screen. */
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.tsc-home *,
.tsc-home *::before,
.tsc-home *::after {
  box-sizing: border-box;
  min-width: 0;
}

.tsc-home img { max-width: 100%; display: block; }

.tsc-home a { color: inherit; text-decoration: none; }

.tsc-home h1, .tsc-home h2, .tsc-home h3, .tsc-home h4,
.tsc-home p {
  overflow-wrap: break-word;
  word-break: break-word;
}

.tsc-home h1, .tsc-home h2, .tsc-home h3, .tsc-home h4 {
  font-family: var(--tsc-font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--tsc-ink);
}

.tsc-home h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); }
.tsc-home h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); }

.tsc-home p { margin: 0 0 1em; color: var(--tsc-steel); max-width: 62ch; }

.tsc-home__section-inner,
.tsc-home .tsc-max {
  max-width: var(--tsc-max);
  margin: 0 auto;
  padding: 0 24px;
}

.tsc-home section { padding: clamp(56px, 8vw, 104px) 0; }

.tsc-home :focus-visible {
  outline: 2px solid var(--tsc-blue);
  outline-offset: 3px;
}

/* Buttons -------------------------------------------------------- */
.tsc-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tsc-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: var(--tsc-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.tsc-btn:active { transform: translateY(1px); }

.tsc-btn--primary { background: var(--tsc-red) !important; color: #FFFFFF !important; }
.tsc-btn--primary:hover { background: var(--tsc-red-dark) !important; }

.tsc-btn--ghost {
  background: transparent !important;
  border-color: var(--tsc-ink) !important;
  color: var(--tsc-ink) !important;
}
.tsc-btn--ghost:hover { background: var(--tsc-ink) !important; color: #FFFFFF !important; }

.tsc-btn--blue { background: var(--tsc-blue) !important; color: #FFFFFF !important; }
.tsc-btn--blue:hover { background: var(--tsc-blue-dark) !important; }

.tsc-btn--ghost-light {
  background: transparent !important;
  border-color: var(--tsc-border-dark) !important;
  color: var(--tsc-paper) !important;
}
.tsc-btn--ghost-light:hover { background: var(--tsc-border-dark) !important; }

/* ===================================================================
   HERO
   =================================================================== */
.tsc-hero {
  position: relative;
  background: var(--tsc-ink);
  color: var(--tsc-paper);
  overflow: hidden;
}

.tsc-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.tsc-hero__tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--tsc-blue-dark);
  mix-blend-mode: color;
  opacity: 0.92;
}

.tsc-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    100deg,
    rgba(10, 34, 51, 0.94) 0%,
    rgba(10, 34, 51, 0.84) 40%,
    rgba(4, 79, 117, 0.5) 75%,
    rgba(4, 79, 117, 0.28) 100%
  );
}

.tsc-hero__inner {
  position: relative;
  z-index: 3;
  max-width: var(--tsc-max);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 76px) 24px clamp(56px, 9vw, 88px);
  width: 100%;
}

.tsc-hero__content { max-width: 680px; }

.tsc-hero__brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.tsc-hero__brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18), 0 0 24px rgba(4, 122, 181, 0.5);
}
.tsc-hero__brand span {
  font-family: var(--tsc-font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.09em;
  color: var(--tsc-steel-light);
}
.tsc-hero__brand span strong {
  color: var(--tsc-white);
  font-weight: 800;
}

.tsc-hero h1 {
  color: var(--tsc-white);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem);
  max-width: 500px;
}

.tsc-hero__lead {
  color: var(--tsc-steel-light);
  font-size: 1.05rem;
  max-width: 46ch;
}

.tsc-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 30px;
}

.tsc-hero__trust {
  list-style: none;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid var(--tsc-border-dark);
  font-size: 0.85rem;
  color: var(--tsc-steel-light);
}
.tsc-hero__trust li { display: flex; align-items: center; gap: 8px; }
.tsc-hero__trust li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tsc-red);
}
.tsc-hero__trust li:nth-child(2)::before { background: var(--tsc-blue); }
.tsc-hero__trust li:nth-child(3)::before { background: var(--tsc-red); }
.tsc-hero__trust strong {
  font-family: var(--tsc-font-mono);
  font-size: 1.1rem;
  color: var(--tsc-white);
  font-weight: 600;
}

/* ===================================================================
   CLIENTS STRIP
   =================================================================== */
/* ===================================================================
   CLIENTS — auto-scrolling logo marquee
   =================================================================== */
.tsc-clients { padding: 40px 0; border-bottom: 1px solid var(--tsc-border); overflow: hidden; }
.tsc-clients__label {
  text-align: left;
  font-size: 0.85rem;
  color: var(--tsc-steel);
  margin-bottom: 20px;
  max-width: none;
}

.tsc-clients__viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tsc-clients__track {
  display: flex;
  width: max-content;
  gap: 48px;
  animation: tsc-marquee 38s linear infinite;
}
.tsc-clients__viewport:hover .tsc-clients__track,
.tsc-clients__viewport:focus-within .tsc-clients__track {
  animation-play-state: paused;
}

@keyframes tsc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tsc-client-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  font-family: var(--tsc-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--tsc-steel);
  white-space: nowrap;
  filter: grayscale(1);
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}
.tsc-client-logo:hover {
  color: var(--tsc-ink);
  opacity: 1;
  filter: grayscale(0);
}
.tsc-client-logo img { height: 28px; width: auto; }

@media (prefers-reduced-motion: reduce) {
  .tsc-clients__track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .tsc-clients__track [aria-hidden="true"] { display: none; }
}

/* ===================================================================
   ABOUT / VALUES
   =================================================================== */
.tsc-about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
}
.tsc-about__values {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tsc-border);
}
.tsc-about__values li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--tsc-border);
}
.tsc-about__values svg { width: 22px; height: 22px; color: var(--tsc-red); }
.tsc-about__values h4 { margin: 0 0 4px; font-size: 1rem; font-family: var(--tsc-font-body); font-weight: 700; }
.tsc-about__values p { margin: 0; font-size: 0.92rem; }

/* ===================================================================
   SERVICES (tabs)
   =================================================================== */
.tsc-services { background: var(--tsc-white); }
.tsc-services__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 32px;
}
.tsc-services__tabs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--tsc-border);
  padding-right: 8px;
}
.tsc-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: none;
  border: none;
  border-left: 3px solid transparent;
  padding: 14px 12px;
  font-family: var(--tsc-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--tsc-steel);
  cursor: pointer;
  border-radius: 0;
}
.tsc-tab svg { width: 20px; height: 20px; flex: none; color: var(--tsc-steel-light); transition: transform 0.2s ease, color 0.2s ease; }
.tsc-tab:hover svg { transform: scale(1.12); }
.tsc-tab[aria-selected="true"] svg { transform: scale(1.08); }
.tsc-tab:hover { color: var(--tsc-ink); }
.tsc-tab[aria-selected="true"] {
  color: var(--tsc-ink);
  border-left-color: var(--tsc-red);
  background: var(--tsc-paper);
}
.tsc-tab[aria-selected="true"] svg { color: var(--tsc-red); }

.tsc-services__panels { position: relative; min-height: 320px; }
.tsc-panel-content {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 32px;
}
.tsc-panel-content.is-active { display: grid; animation: tsc-fade 0.25s ease; }
@keyframes tsc-fade { from { opacity: 0; } to { opacity: 1; } }

.tsc-panel-content ul {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.tsc-panel-content ul li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--tsc-ink);
}
.tsc-panel-content ul li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--tsc-red);
  margin-top: 8px;
  flex: none;
}
.tsc-panel-content__link {
  font-weight: 700;
  color: var(--tsc-red);
  border-bottom: 1px solid transparent;
}
.tsc-panel-content__link:hover { border-bottom-color: var(--tsc-red); }

.tsc-panel-content__figure {
  width: 168px;
  align-self: start;
}
.tsc-panel-content__figure--exploded { width: 240px; }
.tsc-panel-content__figure svg { width: 100%; height: auto; color: var(--tsc-blue); overflow: visible; }

/* Ascensores — arrows bounce up/down out of phase, like a car in motion */
.tsc-panel-content__figure .tsc-icon-arrow-up,
.tsc-panel-content__figure .tsc-icon-arrow-down {
  transform-box: fill-box;
  transform-origin: center;
}
.tsc-panel-content__figure .tsc-icon-arrow-up { animation: tsc-icon-bounce-up 1.8s ease-in-out infinite; }
.tsc-panel-content__figure .tsc-icon-arrow-down { animation: tsc-icon-bounce-down 1.8s ease-in-out infinite 0.3s; }
@keyframes tsc-icon-bounce-up {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(-3px); opacity: 1; }
}
@keyframes tsc-icon-bounce-down {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(3px); opacity: 1; }
}

/* Puertas automáticas — leaves slide open and closed on a loop */
.tsc-panel-content__figure .tsc-icon-door-left,
.tsc-panel-content__figure .tsc-icon-door-right {
  transform-box: fill-box;
}
.tsc-panel-content__figure .tsc-icon-door-left { animation: tsc-icon-slide-left 3.2s ease-in-out infinite; }
.tsc-panel-content__figure .tsc-icon-door-right { animation: tsc-icon-slide-right 3.2s ease-in-out infinite; }
@keyframes tsc-icon-slide-left {
  0%, 18% { transform: translateX(0); }
  50%, 68% { transform: translateX(-3.5px); }
  100% { transform: translateX(0); }
}
@keyframes tsc-icon-slide-right {
  0%, 18% { transform: translateX(0); }
  50%, 68% { transform: translateX(3.5px); }
  100% { transform: translateX(0); }
}

/* Control de acceso / CCTV — lens pulses, rec dot blinks in brand red */
.tsc-panel-content__figure .tsc-icon-lens {
  transform-box: fill-box;
  transform-origin: center;
  animation: tsc-icon-pulse 2.4s ease-in-out infinite;
}
@keyframes tsc-icon-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.6; }
}
.tsc-panel-content__figure .tsc-icon-rec-dot {
  color: var(--tsc-red);
  animation: tsc-icon-blink 1.2s steps(2, end) infinite;
}
@keyframes tsc-icon-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* Automatización de edificios — windows twinkle on in sequence */
.tsc-panel-content__figure .tsc-icon-window {
  animation: tsc-icon-twinkle 2.4s ease-in-out infinite;
}
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(1) { animation-delay: 0s; }
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(2) { animation-delay: 0.3s; }
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(3) { animation-delay: 0.6s; }
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(4) { animation-delay: 0.9s; }
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(5) { animation-delay: 1.2s; }
.tsc-panel-content__figure .tsc-icon-window:nth-of-type(6) { animation-delay: 1.5s; }
@keyframes tsc-icon-twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .tsc-panel-content__figure * { animation: none !important; }
}

@media (max-width: 860px) {
  .tsc-services__layout { grid-template-columns: 1fr; }
  .tsc-services__tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--tsc-border);
    padding-right: 0;
  }
  .tsc-tab { border-left: none; border-bottom: 3px solid transparent; white-space: nowrap; }
  .tsc-tab[aria-selected="true"] { border-left-color: transparent; border-bottom-color: var(--tsc-red); }
  .tsc-panel-content { grid-template-columns: 1fr; }
  .tsc-panel-content__figure { width: 110px; }
  .tsc-panel-content__figure--exploded { width: 100%; max-width: 260px; margin: 0 auto; }
}

/* Ilustración de armado/desarmado — ligada al scroll ---------------- */
.tsc-service-exploded {
  --assemble: 1;
  position: relative;
}

.tsc-exploded__grid {
  position: absolute;
  inset: 4%;
  background-image:
    linear-gradient(rgba(4, 122, 181, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(4, 122, 181, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 55%, transparent 88%);
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 88%);
}

.tsc-exploded__svg { position: relative; }

.tsc-exploded__part {
  transform-box: fill-box;
  transform-origin: center;
  animation: tsc-exploded-breathe 5s ease-in-out infinite;
}
.tsc-exploded__part:nth-of-type(2) { animation-delay: 0.2s; }
.tsc-exploded__part:nth-of-type(3) { animation-delay: 0.4s; }
.tsc-exploded__part:nth-of-type(4) { animation-delay: 0.6s; }
.tsc-exploded__part:nth-of-type(5) { animation-delay: 0.3s; }
.tsc-exploded__part:nth-of-type(6) { animation-delay: 0.1s; }
.tsc-exploded__part:nth-of-type(7) { animation-delay: 0.5s; }

@keyframes tsc-exploded-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}

/* El desplazamiento "explotado" se calcula desde --ex-x / --ex-y de
   cada pieza (en línea, por pieza) multiplicado por (1 - --assemble):
   assemble=1 → ensamblado (offset 0); assemble=0 → totalmente explotado. */
.tsc-exploded__part {
  transform: translate(
    calc(var(--ex-x, 0) * 1px * (1 - var(--assemble, 1))),
    calc(var(--ex-y, 0) * 1px * (1 - var(--assemble, 1)))
  );
}

.tsc-exploded__car { color: var(--tsc-ink); }
.tsc-exploded__light { fill: var(--tsc-red); }
.tsc-exploded__cables {
  color: var(--tsc-red);
  opacity: calc(0.15 + (1 - var(--assemble, 1)) * 0.85);
}

.tsc-service-exploded__hint {
  text-align: center;
  font-size: 0.75rem;
  color: var(--tsc-steel);
  margin: 10px 0 0;
  opacity: calc(1 - var(--assemble, 1) * 1.4);
}

@media (prefers-reduced-motion: reduce) {
  .tsc-exploded__part { animation: none; transition: none; }
}

/* ===================================================================
   PROCESS
   =================================================================== */
.tsc-process__list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.tsc-process__list::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 22px;
  right: 22px;
  height: 1px;
  background: var(--tsc-border);
}
.tsc-process__step { position: relative; padding-right: 20px; }
.tsc-process__num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--tsc-ink);
  color: var(--tsc-white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--tsc-font-mono);
  font-weight: 600;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}
.tsc-process__step h4 { font-size: 1rem; margin-bottom: 6px; }
.tsc-process__step p { font-size: 0.9rem; }

@media (max-width: 760px) {
  .tsc-process__list { grid-template-columns: 1fr; gap: 28px; }
  .tsc-process__list::before { display: none; }
}

/* ===================================================================
   STATS
   =================================================================== */
.tsc-stats {
  background: var(--tsc-ink);
  color: var(--tsc-paper);
}
.tsc-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tsc-stats__grid--2 {
  grid-template-columns: repeat(2, minmax(0, 220px));
  justify-content: center;
  gap: 56px;
  text-align: center;
}
.tsc-stats__grid--2 .tsc-stats__item { border-left: none; padding-left: 0; }
.tsc-stats__grid--2 .tsc-stats__item:first-child { border-right: 1px solid var(--tsc-border-dark); }
.tsc-stats__item {
  border-left: 1px solid var(--tsc-border-dark);
  padding-left: 18px;
}
.tsc-stats__value {
  font-family: var(--tsc-font-mono);
  font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem);
  font-weight: 600;
  color: var(--tsc-white);
  display: block;
}
.tsc-stats__label { font-size: 0.85rem; color: var(--tsc-steel-light); }

@media (max-width: 760px) {
  .tsc-stats__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
}

/* ===================================================================
   TESTIMONIALS
   =================================================================== */
.tsc-testimonials__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}
.tsc-testimonials__nav { display: flex; gap: 8px; }
.tsc-testimonials__nav button {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--tsc-border);
  background: var(--tsc-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.tsc-testimonials__nav button:hover { border-color: var(--tsc-ink); }
.tsc-testimonials__nav svg { width: 16px; height: 16px; }

.tsc-testimonials__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: 28px;
  padding-bottom: 4px;
  cursor: grab;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tsc-testimonials__track::-webkit-scrollbar { display: none; }
.tsc-testimonials__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.tsc-testimonial {
  scroll-snap-align: start;
  flex: 0 0 min(420px, 86vw);
  border: 1px solid var(--tsc-border);
  border-radius: 10px;
  padding: 28px 26px 24px;
  background: var(--tsc-white);
  position: relative;
}
.tsc-testimonial::before {
  content: '\201C';
  position: absolute;
  top: 6px;
  left: 20px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--tsc-blue);
  opacity: 0.18;
}
.tsc-testimonial p { color: var(--tsc-ink); font-size: 0.98rem; position: relative; }
.tsc-testimonial footer {
  font-size: 0.85rem;
  color: var(--tsc-steel);
  font-weight: 600;
  margin-top: 14px;
}

.tsc-carousel-dots {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.tsc-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--tsc-border);
  cursor: pointer;
}
.tsc-carousel-dots button.is-active { background: var(--tsc-blue); }

/* ===================================================================
   FAQ
   =================================================================== */
.tsc-faq__list { max-width: 760px; margin-top: 24px; }
.tsc-faq-item { border-bottom: 1px solid var(--tsc-border); }
.tsc-faq-item__q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 32px 20px 0;
  font-family: var(--tsc-font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--tsc-ink);
  cursor: pointer;
  position: relative;
}
.tsc-faq-item__q::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 18px;
  font-size: 1.3rem;
  color: var(--tsc-red);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.tsc-faq-item.is-open .tsc-faq-item__q::after { transform: rotate(45deg); }
.tsc-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.tsc-faq-item__a p { padding-bottom: 20px; margin: 0; font-size: 0.94rem; }

/* ===================================================================
   CONTACT
   =================================================================== */
.tsc-contact { background: var(--tsc-white); }
.tsc-contact__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(32px, 5vw, 64px);
}
/* Multi-step form ------------------------------------------------- */
.tsc-form-modern { margin-top: 24px; }

.tsc-form-progress {
  height: 4px;
  background: var(--tsc-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}
.tsc-form-progress__bar {
  display: block;
  height: 100%;
  width: 33.33%;
  background: linear-gradient(90deg, var(--tsc-red), var(--tsc-blue));
  transition: width 0.3s ease;
}
.tsc-form-steps__meta {
  font-size: 0.78rem;
  color: var(--tsc-steel);
  margin: 0 0 22px;
  max-width: none;
}

.tsc-form-step { display: none; }
.tsc-form-step.is-active { display: block; animation: tsc-step-in 0.3s ease; }
@keyframes tsc-step-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .tsc-form-step.is-active { animation: none; }
}

.tsc-chip-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 20px 0 4px;
}
.tsc-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--tsc-border);
  border-radius: 8px;
  padding: 14px 16px;
  background: var(--tsc-white);
  cursor: pointer;
  font-family: var(--tsc-font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--tsc-ink);
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.tsc-chip svg { width: 20px; height: 20px; color: var(--tsc-steel); flex: none; }
.tsc-chip:hover { border-color: var(--tsc-blue); }
.tsc-chip[aria-checked="true"] {
  border-color: var(--tsc-red);
  background: rgba(181, 4, 34, 0.06);
}
.tsc-chip[aria-checked="true"] svg { color: var(--tsc-red); }

.tsc-field { position: relative; margin-bottom: 16px; }
.tsc-field input,
.tsc-field textarea {
  width: 100%;
  border: 1px solid var(--tsc-border);
  border-radius: 6px;
  padding: 19px 14px 9px;
  font-family: var(--tsc-font-body);
  font-size: 0.96rem;
  background: var(--tsc-paper);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tsc-field textarea { padding-top: 22px; resize: vertical; }
.tsc-field label {
  position: absolute;
  left: 14px;
  top: 15px;
  font-size: 0.95rem;
  color: var(--tsc-steel);
  pointer-events: none;
  transition: top 0.15s ease, font-size 0.15s ease, color 0.15s ease;
}
.tsc-field input:focus,
.tsc-field textarea:focus {
  outline: none;
  border-color: var(--tsc-blue);
  box-shadow: 0 0 0 3px rgba(4, 122, 181, 0.15);
  background: var(--tsc-white);
}
.tsc-field input:focus + label,
.tsc-field input:not(:placeholder-shown) + label,
.tsc-field textarea:focus + label,
.tsc-field textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tsc-blue);
}
.tsc-field.has-error input,
.tsc-field.has-error textarea { border-color: var(--tsc-red); }
.tsc-field.has-error input:focus,
.tsc-field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(181, 4, 34, 0.15); }
.tsc-field__error {
  display: none;
  font-size: 0.78rem;
  color: var(--tsc-red);
  margin-top: 5px;
}
.tsc-field.has-error .tsc-field__error { display: block; }

.tsc-form__check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--tsc-steel);
  margin-bottom: 12px;
}
.tsc-form__check input { width: auto; margin-top: 3px; }

.tsc-form-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.tsc-form-actions--end { justify-content: flex-end; }

.tsc-form__status { font-size: 0.88rem; min-height: 1.2em; margin-top: 12px; }
.tsc-form__status.is-error { color: var(--tsc-red); }
.tsc-form__status.is-ok { color: var(--tsc-blue-dark); }

.tsc-form-success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0 4px;
}
.tsc-form-success[hidden] { display: none; }
.tsc-form-success__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(4, 122, 181, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tsc-blue);
}
.tsc-form-success__icon svg { width: 26px; height: 26px; }
.tsc-form-success h3 { margin: 4px 0 0; }
.tsc-form-success p { margin: 0; }

.tsc-contact__direct {
  background: var(--tsc-ink);
  color: var(--tsc-paper);
  padding: 32px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}
.tsc-contact__direct h3 { color: var(--tsc-white); margin-bottom: 6px; }

.tsc-contact__direct-list { list-style: none; margin: 0; padding: 0; }
.tsc-contact__direct-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--tsc-border-dark);
}
.tsc-contact__direct-list li:first-child { border-top: none; padding-top: 6px; }

.tsc-contact__direct-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(181, 4, 34, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.tsc-contact__direct-icon svg { width: 18px; height: 18px; color: var(--tsc-red); }

.tsc-contact__direct-list a,
.tsc-contact__direct-list span { color: var(--tsc-paper); font-size: 0.92rem; }
.tsc-contact__direct-list a:hover { color: var(--tsc-white); }
.tsc-contact__direct-list small { display: block; color: var(--tsc-steel-light); font-size: 0.78rem; margin-bottom: 3px; }

.tsc-contact__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--tsc-blue);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 14px;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}
.tsc-contact__whatsapp svg { width: 18px; height: 18px; }
.tsc-contact__whatsapp:hover { background: var(--tsc-blue-dark); color: #FFFFFF; }

@media (max-width: 860px) {
  .tsc-contact__inner { grid-template-columns: 1fr; }
  .tsc-about__inner { grid-template-columns: 1fr; }
}

/* ===================================================================
   FOOTER
   =================================================================== */
.tsc-footer {
  position: relative;
  background: #071620;
  color: var(--tsc-steel-light);
  font-size: 0.88rem;
}
.tsc-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tsc-red), var(--tsc-blue));
}

.tsc-footer__cta {
  max-width: var(--tsc-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 40px 24px;
  border-bottom: 1px solid var(--tsc-border-dark);
}
.tsc-footer__cta h3 { color: var(--tsc-white); margin-bottom: 6px; font-size: 1.3rem; }
.tsc-footer__cta p { margin: 0; max-width: 46ch; }

.tsc-footer__grid {
  max-width: var(--tsc-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 44px 24px 32px;
}
.tsc-footer__brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  margin-bottom: 14px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.14);
}
.tsc-footer h5 {
  color: var(--tsc-paper);
  font-family: var(--tsc-font-body);
  font-size: 0.85rem;
  margin: 0 0 16px;
}
.tsc-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tsc-footer a { transition: color 0.15s ease; }
.tsc-footer a:hover { color: var(--tsc-white); }

.tsc-footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tsc-footer__contact svg { width: 16px; height: 16px; color: var(--tsc-blue); flex: none; }

.tsc-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.tsc-footer__social a {
  width: 34px; height: 34px;
  border: 1px solid var(--tsc-border-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--tsc-steel-light);
}
.tsc-footer__social a:hover { border-color: var(--tsc-blue); color: var(--tsc-white); }
.tsc-footer__social svg { width: 16px; height: 16px; }

.tsc-footer__bottom {
  max-width: var(--tsc-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 24px;
  border-top: 1px solid var(--tsc-border-dark);
  font-size: 0.8rem;
}

@media (max-width: 760px) {
  .tsc-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .tsc-footer__cta { padding: 32px 24px; }
}

/* ===================================================================
   FLOATING EMERGENCY CTA
   =================================================================== */
.tsc-floating-cta {
  position: fixed;
  right: 20px;
  bottom: 96px; /* deja espacio arriba del widget de WhatsApp del sitio */
  z-index: 60;
  background: var(--tsc-red);
  color: #FFFFFF;
  font-family: var(--tsc-font-body);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 13px 18px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.tsc-floating-cta,
.tsc-floating-cta:link,
.tsc-floating-cta:visited,
.tsc-floating-cta:hover,
.tsc-floating-cta:active,
.tsc-floating-cta span {
  color: #FFFFFF !important;
}
.tsc-floating-cta svg { width: 16px; height: 16px; color: #FFFFFF !important; }

@media (max-width: 640px) {
  .tsc-floating-cta span { display: none; }
  .tsc-floating-cta { padding: 14px; }
}

/* Reveal on scroll (single, restrained use) ------------------------ */
.tsc-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.tsc-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .tsc-reveal { opacity: 1; transform: none; transition: none; }
}
