/*
 * TSS HNA – Estilos de la Página Principal (front-page)
 * Paleta: #26639b | #3484c1 | #8aa1b2 | #ffffff | #1a2c45
 * Tema: LIGHT — todas las secciones de página en fondos claros
 */

/* ─── HERO (DARK EPIC) ──────────────────────────────────────────────────── */

.tss-home-hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 50%, #0d2240 0%, #091428 50%, #060e1a 100%);
  padding: 6rem 0 4.5rem;
  overflow: hidden;
  color: #fff;
}

/* Efectos de fondo del hero → ahora via template-parts/hero-bg-effects.php + main.css */

.hero-content,
.hero-visual-panel,
.hero-cta-group,
.hero-stats-row,
.hero-badge {
  position: relative;
  z-index: 1;
}

.min-vh-hero {
  min-height: 620px;
}

/* ── Animaciones de entrada escalonadas ─────────────────────────────────── */
.hero-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-anim[data-delay="0"] { animation-delay: 0.15s; }
.hero-anim[data-delay="1"] { animation-delay: 0.35s; }
.hero-anim[data-delay="2"] { animation-delay: 0.55s; }
.hero-anim[data-delay="3"] { animation-delay: 0.75s; }
.hero-anim[data-delay="4"] { animation-delay: 0.95s; }

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Badge superior */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(52, 132, 193, 0.12);
  border: 1px solid rgba(52, 132, 193, 0.3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 8px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6);
  animation: heroDotPulse 2s ease-in-out infinite;
}

@keyframes heroDotPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px #38bdf8, 0 0 20px rgba(56, 189, 248, 0.6); }
  50%       { opacity: 0.5; transform: scale(0.7); box-shadow: 0 0 4px #38bdf8; }
}

/* Titular */
.hero-headline {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1.2rem;
  letter-spacing: -0.03em;
}

.hero-headline-accent {
  display: block;
  background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 30%, #a78bfa 60%, #38bdf8 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: heroGradientShift 5s linear infinite;
}

@keyframes heroGradientShift {
  from { background-position: 0% center; }
  to   { background-position: 300% center; }
}

/* Lead */
.hero-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.78;
  max-width: 540px;
  margin-bottom: 2rem;
}

/* Alert de cuenta pendiente en hero */
.tss-pending-hero-alert {
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1.1rem;
}

/* Botones del hero – dark theme */
.btn-hero-primary {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 2rem;
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(56, 189, 248, 0.15);
}

.btn-hero-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5), 0 0 60px rgba(56, 189, 248, 0.25);
  color: #fff !important;
}

.hero-btn-arrow {
  transition: transform 0.25s;
}

.btn-hero-primary:hover .hero-btn-arrow {
  transform: translateX(4px);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.8rem 2rem;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  color: #fff !important;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Stats del hero */
.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  padding-right: 2rem;
}

.hero-stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1;
  text-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.hero-stat-label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.3rem;
}

.hero-stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(56, 189, 248, 0.2);
  margin-right: 2rem;
  flex-shrink: 0;
}

/* ── Panel visual lado derecho del hero ── */

.hero-visual-panel {
  position: relative;
  width: 520px;
  max-width: 100%;
  z-index: 1;
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.hero-panel-inner {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 16px;
  border: 1px solid rgba(56, 189, 248, 0.15);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(56, 189, 248, 0.05);
  overflow: hidden;
}

/* Mini-dashboard light */
.mini-dashboard {
  font-size: 0.82rem;
}

.mini-dash-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.mini-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.mini-dot.red    { background: #ef4444; box-shadow: 0 0 5px rgba(239, 68, 68, 0.6); }
.mini-dot.yellow { background: #f59e0b; box-shadow: 0 0 5px rgba(245, 158, 11, 0.6); }
.mini-dot.green  { background: #10b981; box-shadow: 0 0 5px rgba(16, 185, 129, 0.6); }

.mini-dash-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  margin-left: 0.3rem;
}

/* Línea de escaneo animada */
.mini-scan-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(38, 99, 155, 0.4) 50%, transparent 100%);
  animation: scanLine 3.5s ease-in-out infinite;
  pointer-events: none;
  transform: translateY(-50%);
}

@keyframes scanLine {
  0%   { clip-path: inset(0 100% 0 0); }
  50%  { clip-path: inset(0 0% 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}

.mini-dash-body {
  padding: 1.2rem;
}

.mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.mini-metric {
  background: rgba(38, 99, 155, 0.06);
  border: 1px solid rgba(38, 99, 155, 0.13);
  border-radius: 8px;
  padding: 0.6rem;
  text-align: center;
}

.mini-metric-value {
  display: block;
  font-weight: 800;
  color: #26639b;
  font-size: 1rem;
  line-height: 1.2;
}

.mini-metric-label {
  display: block;
  font-size: 0.7rem;
  color: #8aa1b2;
  margin-top: 0.2rem;
}

/* Brand tags light */
.mini-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.mini-brand-tag {
  background: rgba(38, 99, 155, 0.08);
  color: #26639b;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(38, 99, 155, 0.15);
}

/* Categorías con marcas */
.mini-cat-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mini-cat-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  border: 1px solid rgba(56, 189, 248, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.mini-cat-row:hover {
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.2);
}

.mini-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, #26639b 0%, #3484c1 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.mini-cat-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.mini-cat-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
}

.mini-cat-brands {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badges flotantes – light */
.hero-float-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(38, 99, 155, 0.15);
  border-radius: 30px;
  padding: 0.45rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #26639b;
  box-shadow: 0 4px 18px rgba(38, 99, 155, 0.1), 0 1px 4px rgba(0, 0, 0, 0.06);
  white-space: nowrap;
  animation: floatBadge 4s ease-in-out infinite;
}

.badge-top-right {
  top: -14px;
  right: 18px;
  animation-delay: 0.4s;
}

.badge-bottom-left {
  bottom: -14px;
  left: 18px;
  animation-delay: 1.6s;
}

/* ── Panel métricas superiores ─────────────────────────── */
.hero-panel-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.hero-panel-metric {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  border-right: 1px solid rgba(56, 189, 248, 0.1);
}

.hero-panel-metric:last-child {
  border-right: none;
}

.hero-panel-metric__icon {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  border-radius: 12px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.hero-panel-metric__icon--blue  { background: rgba(56, 189, 248, 0.2) !important; color: #38bdf8 !important; border: 1px solid rgba(56, 189, 248, 0.3); }
.hero-panel-metric__icon--green { background: rgba(74, 222, 128, 0.2) !important; color: #4ade80 !important; border: 1px solid rgba(74, 222, 128, 0.3); }
.hero-panel-metric__icon--amber { background: rgba(251, 191, 36, 0.2) !important; color: #fbbf24 !important; border: 1px solid rgba(251, 191, 36, 0.3); }

.hero-panel-metric__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.hero-panel-metric__text strong {
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.hero-panel-metric__text span {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

/* ── Panel categorías ─────────────────────────────────── */
.hero-panel-categories {
  padding: 1rem 1.2rem;
}

.hero-panel-categories__title {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-panel-categories__title i {
  font-size: 0.8rem;
  color: #38bdf8;
}

/* Mini logos de marcas en cada categoría */
.mini-cat-logos {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}

.mini-cat-logos img {
  height: 22px;
  width: auto;
  max-width: 48px;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.4) opacity(0.8);
  mix-blend-mode: screen;
  transition: filter .3s, transform .3s;
}

.mini-cat-row:hover .mini-cat-logos img {
  filter: grayscale(0%) brightness(1) opacity(1);
  transform: scale(1.1);
}

/* ── Grid de clientes en panel ────────────────────────── */
.hero-panel-clients {
  background: rgba(255, 255, 255, 0.03);
  border-top: 1px solid rgba(56, 189, 248, 0.1);
  padding: 1rem 1.2rem;
}

.hero-panel-clients__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.7rem;
  text-align: center;
}

.hero-panel-clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.hero-panel-clients__item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.1);
  border-radius: 8px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  transition: border-color .2s, box-shadow .2s;
}

.hero-panel-clients__item:hover {
  border-color: rgba(56, 189, 248, 0.25);
  box-shadow: 0 2px 12px rgba(56, 189, 248, 0.08);
}

.hero-panel-clients__item img {
  max-height: 28px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.5);
  transition: filter .3s;
}

.hero-panel-clients__item:hover img {
  filter: brightness(0) invert(1) opacity(0.8);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-7px); }
}


/* ─── MARCAS ──────────────────────────────────────────────────────────────── */

.tss-brands-section {
  background: #f4f8fc;
  border-top: 1px solid #dce8f2;
  border-bottom: 1px solid #dce8f2;
  padding: 2.8rem 0;
}

.brands-label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #8aa1b2;
  margin-bottom: 2rem;
}

/* Carousel infinito de marcas */
.brands-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

.brands-carousel__track {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  width: max-content;
  animation: brandsCarouselScroll 80s linear infinite;
  will-change: transform;
}

.brands-carousel:hover .brands-carousel__track {
  animation-play-state: paused;
}

.brands-carousel__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  min-width: 130px;
  padding: 0 1rem;
}

.brands-carousel__item img {
  max-height: 55px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s, transform 0.3s;
}

.brands-carousel__item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.15);
}

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

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brands-carousel__track {
    animation-duration: 0s;
  }
}

@media (max-width: 576px) {
  .brands-carousel__track {
    gap: 3rem;
    animation-duration: 60s;
  }
  .brands-carousel__item {
    min-width: 100px;
    height: 55px;
  }
  .brands-carousel__item img {
    max-height: 42px;
    max-width: 110px;
  }
}


/* ─── SERVICIOS ────────────────────────────────────────────────────────────── */

.tss-services-section {
  background: #f8fafd;
  padding: 5rem 0;
}

.tss-section-header {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.tss-section-label {
  color: #26639b;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
}

.tss-section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: #1a2c45;
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-feature-settings: 'cv11', 'ss01';
}

.tss-section-subtitle {
  font-size: 1.05rem;
  color: #4d6278;
  line-height: 1.7;
}

/* Badge recomendado */
.tss-service-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #26639b 0%, #3484c1 100%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(38, 99, 155, 0.3);
  z-index: 2;
}

/* Card de servicio */
.tss-service-card {
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.tss-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 8px rgba(38, 99, 155, 0.08), 0 12px 32px rgba(38, 99, 155, 0.12);
  border-color: rgba(38, 99, 155, 0.28);
}

/* Card destacada – estilo "best seller" */
.tss-service-card.tss-service-featured {
  position: relative;
  border: 2px solid #26639b;
  box-shadow: 0 8px 30px rgba(38, 99, 155, 0.18);
  transform: scale(1.04);
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  z-index: 1;
}

.tss-service-card.tss-service-featured:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 12px 40px rgba(38, 99, 155, 0.28);
}

@media (max-width: 991.98px) {
  .tss-service-card.tss-service-featured {
    transform: none;
  }
  .tss-service-card.tss-service-featured:hover {
    transform: translateY(-4px);
  }
}

.service-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(38, 99, 155, 0.08);
  border: 1px solid rgba(38, 99, 155, 0.15);
  color: #26639b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
  transition: background 0.2s, color 0.2s;
}

.tss-service-card:hover .service-card-icon {
  background: #26639b;
  color: #fff;
}

.service-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a2c45;
  margin-bottom: 0.7rem;
}

.service-card-desc {
  color: #4d6278;
  font-size: 0.93rem;
  line-height: 1.65;
  margin-bottom: 1rem;
}

.service-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card-list li {
  color: #4d6278;
  font-size: 0.88rem;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  position: relative;
  line-height: 1.5;
}

.service-card-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3484c1;
  font-weight: 700;
}


/* ─── PRODUCTOS ───────────────────────────────────────────────────────────── */

.tss-products-section {
  background: #fff;
  padding: 5rem 0;
}

/* Filtros de categoría */
.tss-product-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tss-filter-btn {
  background: #fff;
  border: 1px solid #dce8f2;
  color: #4d6278;
  padding: 0.5rem 1.3rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.tss-filter-btn:hover,
.tss-filter-btn.active {
  background: #26639b;
  border-color: #26639b;
  color: #fff;
}

/* Card de producto (aprobados) */
.tss-product-card {
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.tss-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(38, 99, 155, 0.1);
  border-color: rgba(38, 99, 155, 0.25);
}

.tss-product-image {
  height: 200px;
  background: #f8fafd;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #e2eaf2;
  position: relative;
  overflow: hidden;
}

.tss-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.3s;
}

.tss-product-card:hover .tss-product-image img {
  transform: scale(1.04);
}

.tss-product-image i {
  font-size: 3.5rem;
  color: #3484c1;
}

.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.tss-product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #26639b;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tss-product-body {
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tss-product-cat {
  color: #3484c1;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
  display: block;
}

.tss-product-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.tss-product-title a {
  color: #1a2c45;
  text-decoration: none;
  transition: color 0.2s;
}

.tss-product-title a:hover {
  color: #26639b;
}

.tss-product-excerpt {
  color: #4d6278;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  flex: 1;
}

.tss-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2eaf2;
}

.tss-product-price {
  font-weight: 700;
  color: #26639b;
  font-size: 1rem;
}

.tss-product-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3484c1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: gap 0.2s, color 0.2s;
  gap: 0.25rem;
}

.tss-product-link:hover {
  color: #26639b;
  gap: 0.5rem;
}

/* Teaser (usuarios no aprobados) */
.tss-product-teaser .tss-product-image {
  position: relative;
}

.product-teaser-image {
  filter: grayscale(0.4);
}

.teaser-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 99, 155, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0;
}

.teaser-lock-overlay i {
  font-size: 1.8rem;
}

.tss-product-teaser:hover .teaser-lock-overlay {
  opacity: 1;
}

/* Caja de acceso (invitados) */
.tss-access-cta-box {
  background: #f4f8fc;
  border: 1px solid rgba(38, 99, 155, 0.15);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 1px 3px rgba(38, 99, 155, 0.06), 0 6px 24px rgba(38, 99, 155, 0.08);
}

.tss-access-icon {
  font-size: 2.8rem;
  color: #26639b;
  display: block;
  margin-bottom: 1rem;
}

.tss-access-cta-box h4 {
  font-weight: 700;
  color: #1a2c45;
  margin-bottom: 0.6rem;
}

.tss-access-cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.tss-access-cta-buttons .tss-cta-btn {
  padding: .6rem 1.4rem;
  font-size: .9rem;
}

.tss-access-cta-buttons .tss-cta-btn--ghost-light {
  border: 2px solid rgba(38, 99, 155, 0.6) !important;
  background: #fff !important;
}

.tss-access-cta-box h4 {
  font-size: 1.15rem;
}

.tss-access-cta-box .text-muted {
  font-size: .88rem;
  margin-bottom: 1.25rem !important;
}

/* Botón ghost para fondo claro (estilo "Agendar Consulta") */
.tss-cta-btn--ghost-light {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.8rem;
  border-radius: 10px;
  text-decoration: none;
  background: rgba(38, 99, 155, 0.05);
  color: #26639b !important;
  border: 2px solid rgba(38, 99, 155, 0.5);
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(38, 99, 155, 0.08);
}

.tss-cta-btn--ghost-light:hover {
  background: rgba(38, 99, 155, 0.1);
  border-color: rgba(38, 99, 155, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(38, 99, 155, 0.15);
  color: #1a4a78 !important;
}

.tss-price-hidden {
  font-size: 0.85rem;
  color: #8aa1b2;
  display: inline-flex;
  align-items: center;
}


/* ─── FEATURES + NIVELES DE SERVICIO ──────────────────────────────────────── */

.tss-features-section {
  background: #f0f6ff;
  padding: 5rem 0;
}

.tss-feature-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.tss-feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(38, 99, 155, 0.08);
  border: 1px solid rgba(38, 99, 155, 0.15);
  color: #26639b;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.tss-feature-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a2c45;
  margin-bottom: 0.4rem;
}

.tss-feature-body p {
  color: #4d6278;
  font-size: 0.93rem;
  line-height: 1.65;
  margin: 0;
}

/* Niveles de servicio */
.tss-service-levels-card {
  background: #fff;
  border: 1px solid #e2eaf2;
  border-radius: 16px;
  padding: 2rem;
}

.service-levels-title {
  font-weight: 700;
  color: #26639b;
  font-size: 1.15rem;
  margin-bottom: 1.4rem;
}

.service-level-item {
  background: #fff;
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.2rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(38, 99, 155, 0.06);
  border-top: 1px solid #e2eaf2;
  border-right: 1px solid #e2eaf2;
  border-bottom: 1px solid #e2eaf2;
}

.service-level-item h6 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.service-level-item p {
  margin: 0;
  font-size: 0.85rem;
  color: #4d6278;
}


/* ─── STATS ────────────────────────────────────────────────────────────────── */

.tss-stats-section {
  background: var(--tss-dark-blue);
  padding: 4rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.15);
}

.tss-stat-box {
  padding: 1rem;
}

.tss-stat-icon {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.45);
  margin-bottom: 0.6rem;
}

.tss-stat-number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 0.4rem;
  display: block;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
}

.tss-stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}


/* ─── SECCIÓN COMBINADA: PROCESO + CTA ─────────────────────────────────────── */

.tss-combined-section {
  position: relative;
}

/* Parte superior: intro + pasos (sección unificada) */
.tss-combined-top {
  background: linear-gradient(180deg, #f0f5fa 0%, #e4ecf5 100%);
  padding: 5rem 0 4rem;
}

.tss-combined-top .tss-section-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--tss-dark-blue, #26639b);
  max-width: 750px;
  margin-inline: auto;
}

.tss-why-tss-lead {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: #4d6278;
  max-width: 700px;
  margin: 1.25rem auto 0;
  line-height: 1.7;
}

/* Subtítulo de pasos */
.tss-steps-heading {
  font-size: .85rem;
  font-weight: 700;
  color: var(--tss-medium-blue, #3484c1);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.tss-step-card {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  height: 100%;
  position: relative;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tss-step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(38, 99, 155, 0.12);
}

.tss-step-card-num {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: #26639b;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(38, 99, 155, 0.3);
}

.tss-step-card-icon {
  font-size: 2rem;
  color: #3484c1;
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.tss-step-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2c45;
  margin-bottom: 0.6rem;
}

.tss-step-card-desc {
  font-size: 0.88rem;
  color: #5a6f82;
  line-height: 1.6;
  margin: 0;
}

/* Parte inferior: CTA */
.tss-combined-bottom {
  position: relative;
  background: linear-gradient(135deg, #26639b 0%, #3484c1 100%);
  padding: 5rem 0;
  overflow: hidden;
  text-align: center;
}

/* Fondo: orbs + grid */
.tss-cta-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.tss-cta-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}

.tss-cta-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: ctaOrbFloat 8s ease-in-out infinite alternate;
}

.tss-cta-orb--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
  top: -160px; left: -120px;
  animation-delay: 0s;
}

.tss-cta-orb--2 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  bottom: -140px; right: -80px;
  animation-delay: -3s;
}

.tss-cta-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(26, 44, 69, 0.3) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -6s;
}

@keyframes ctaOrbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(24px, -18px) scale(1.06); }
}

.tss-cta-orb--3 {
  animation-name: ctaOrbFloat3;
}
@keyframes ctaOrbFloat3 {
  from { transform: translate(-50%, -50%) scale(1); }
  to   { transform: translate(calc(-50% + 16px), calc(-50% - 20px)) scale(1.1); }
}

/* Contenido */
.tss-cta-inner {
  position: relative;
  z-index: 1;
}

/* Eyebrow */
.tss-cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  margin-bottom: 1.75rem;
}

.tss-cta-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  animation: ctaDotPulse 2s ease-in-out infinite;
}

@keyframes ctaDotPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(255,255,255,0.6); }
  50%       { opacity: 0.5; box-shadow: 0 0 16px rgba(255,255,255,0.4); }
}

/* Título */
.tss-cta-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  max-width: 750px;
  margin-inline: auto;
}

.tss-cta-title-accent {
  display: block;
  background: linear-gradient(90deg, rgba(255,255,255,0.85) 0%, #fff 50%, rgba(255,255,255,0.85) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ctaGradShift 4s linear infinite;
}

@keyframes ctaGradShift {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* Subtítulo */
.tss-cta-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* Botones */
.tss-cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.tss-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
  position: relative;
}

.tss-cta-btn--primary {
  background: linear-gradient(135deg, #2563eb 0%, #38bdf8 100%);
  color: #fff !important;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), 0 0 40px rgba(56, 189, 248, 0.15);
}

.tss-cta-btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 32px rgba(37, 99, 235, 0.5), 0 0 60px rgba(56, 189, 248, 0.25);
  color: #fff !important;
}

.tss-cta-btn--primary .tss-cta-arrow {
  transition: transform 0.2s ease;
}

.tss-cta-btn--primary:hover .tss-cta-arrow {
  transform: translateX(4px);
}

.tss-cta-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.tss-cta-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff !important;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Trust signals */
.tss-cta-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
}

.tss-cta-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  padding: 0 1.25rem;
}

.tss-cta-trust-item i {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.tss-cta-trust-sep {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.25);
}


/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 992px) {
  .hero-visual-panel {
    display: none;
  }

  .tss-home-hero {
    padding: 4.5rem 0 3.5rem;
  }
}

@media (max-width: 768px) {
  .hero-stats-row {
    gap: 0;
  }

  .hero-stat {
    padding: 0 1.2rem 0 0;
  }

  .hero-stat-divider {
    margin-right: 1.2rem;
  }

  .tss-process-step {
    flex-direction: row;
  }

  .tss-cta-section {
    padding: 5rem 0;
  }

  .tss-access-cta-box {
    padding: 1.8rem 1.2rem;
  }
}

@media (max-width: 576px) {
  .hero-stats-row {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .hero-stat-divider {
    display: none;
  }

  .tss-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .tss-cta-btn {
    width: 100%;
    justify-content: center;
  }
}
