/* ============================================================
   TECNISERVICE SERVICES — Estilos
   Estilo Home + Estilo Servicios
   ============================================================ */

.tss-wrapper * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.tss-wrapper {
  width: 100%;
}

/* ============================================================
   ENCABEZADO — Compartido
   ============================================================ */
.tss-header {
  text-align: center;
  margin-bottom: 52px;
}

.tss-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ea6424;
  margin-bottom: 14px;
  justify-content: center;
}

.tss-tag::before,
.tss-tag::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #ea6424;
  flex-shrink: 0;
}

.tss-title {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: #1b1d35;
  margin-bottom: 14px;
}

.tss-title em {
  color: #ea6424;
  font-style: normal;
}

.tss-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.80;
  max-width: 560px;
  margin: 0 auto;
}

/* ============================================================
   GRID — Compartido
   ============================================================ */
.tss-grid {
  display: grid;
  gap: 22px;
}

.tss-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tss-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tss-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   ESTILO HOME — Tarjetas con número decorativo
   ============================================================ */
.tss-style-home {}

.tss-home-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 32px 28px;
  border: 1px solid #e8e8e0;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.tss-home-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(27,29,53,0.12);
  border-color: rgba(234,100,36,0.20);
}

/* Línea lateral naranja en hover */
.tss-home-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0%;
  background: linear-gradient(180deg, #ea6424, #3d7ec1);
  transition: height 0.4s ease;
  border-radius: 14px 0 0 14px;
}

.tss-home-card:hover::before {
  height: 100%;
}

/* Número decorativo */
.tss-home-card-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 72px;
  font-weight: 900;
  color: rgba(27,29,53,0.05);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}

.tss-home-card:hover .tss-home-card-num {
  color: rgba(234,100,36,0.08);
}

/* Ícono */
.tss-home-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(234,100,36,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background 0.35s ease, transform 0.35s ease;
}

.tss-home-card-icon i {
  font-size: 24px;
  color: #ea6424;
  transition: color 0.35s ease, transform 0.35s ease;
}

.tss-home-card:hover .tss-home-card-icon {
  background: #ea6424;
  transform: scale(1.08) rotate(-5deg);
}

.tss-home-card:hover .tss-home-card-icon i {
  color: #ffffff;
}

/* Título */
.tss-home-card-title {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #1b1d35;
  margin-bottom: 10px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.tss-home-card:hover .tss-home-card-title {
  color: #ea6424;
}

/* Descripción */
.tss-home-card-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Botón */
.tss-home-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: #ea6424;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: gap 0.3s ease;
}

.tss-home-card-btn:hover {
  gap: 12px;
}

.tss-home-card-btn i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.tss-home-card:hover .tss-home-card-btn i {
  transform: translateX(4px);
}

/* ============================================================
   ESTILO SERVICIOS — Tarjetas con imagen de fondo
   ============================================================ */
.tss-style-services {}

.tss-svc-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
  text-decoration: none !important;
}

/* Imagen */
.tss-svc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.55s ease;
}

/* Gradiente cuando no hay imagen */
.tss-svc-gradient {
  position: absolute;
  inset: 0;
  transition: transform 0.55s ease;
}

.tss-svc-card:hover .tss-svc-img,
.tss-svc-card:hover .tss-svc-gradient {
  transform: scale(1.08);
}

/* Gradientes por tipo */
.tss-grad-refri    { background: linear-gradient(135deg, #0d3b6e 0%, #1b1d35 100%); }
.tss-grad-aire     { background: linear-gradient(135deg, #1a4a7a 0%, #1b2d4f 100%); }
.tss-grad-elec     { background: linear-gradient(135deg, #3d2000 0%, #1b1d35 100%); }
.tss-grad-plomeria { background: linear-gradient(135deg, #0d3d2e 0%, #1b2d28 100%); }
.tss-grad-civil    { background: linear-gradient(135deg, #2d1a00 0%, #1b1d35 100%); }
.tss-grad-cerraj   { background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4a 100%); }
.tss-grad-led      { background: linear-gradient(135deg, #3d2d00 0%, #1b1d35 100%); }
.tss-grad-bombeo   { background: linear-gradient(135deg, #0d2d4a 0%, #1b1d35 100%); }
.tss-grad-caliente { background: linear-gradient(135deg, #4a0d0d 0%, #1b1d35 100%); }
.tss-grad-jardin   { background: linear-gradient(135deg, #0d3d0d 0%, #1b2d1b 100%); }
.tss-grad-muebles  { background: linear-gradient(135deg, #3d1a00 0%, #2d1500 100%); }

/* Overlay oscuro */
.tss-svc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(27,29,53,0.95) 0%,
    rgba(27,29,53,0.60) 45%,
    rgba(27,29,53,0.20) 100%
  );
  z-index: 1;
  transition: background 0.45s ease;
}

.tss-svc-card:hover .tss-svc-overlay {
  background: linear-gradient(
    to top,
    rgba(27,29,53,0.98) 0%,
    rgba(27,29,53,0.80) 50%,
    rgba(27,29,53,0.50) 100%
  );
}

/* Línea naranja inferior */
.tss-svc-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ea6424, #3d7ec1);
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.tss-svc-card:hover .tss-svc-line {
  transform: scaleX(1);
}

/* Contenido */
.tss-svc-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

/* Número decorativo */
.tss-svc-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Barlow', sans-serif;
  font-size: 56px;
  font-weight: 900;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s ease;
}

.tss-svc-card:hover .tss-svc-num {
  color: rgba(234,100,36,0.15);
}

/* Ícono */
.tss-svc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(234,100,36,0.20);
  border: 1px solid rgba(234,100,36,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: background 0.35s ease,
              border-color 0.35s ease,
              transform 0.35s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.tss-svc-icon i {
  font-size: 20px;
  color: #ea6424;
  transition: color 0.35s ease;
}

.tss-svc-card:hover .tss-svc-icon {
  background: #ea6424;
  border-color: #ea6424;
  transform: scale(1.08) rotate(-5deg);
}

.tss-svc-card:hover .tss-svc-icon i {
  color: #ffffff;
}

/* Título */
.tss-svc-title {
  font-family: 'Barlow', sans-serif;
  font-size: 17px;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.tss-svc-card:hover .tss-svc-title {
  color: #ea6424;
}

/* Descripción — aparece en hover */
.tss-svc-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  margin-bottom: 14px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.45s ease,
              opacity 0.45s ease,
              margin-bottom 0.45s ease;
}

.tss-svc-card:hover .tss-svc-desc {
  max-height: 80px;
  opacity: 1;
  margin-bottom: 14px;
}

/* Botón ver más */
.tss-svc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: #ea6424;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, gap 0.3s ease;
}

.tss-svc-card:hover .tss-svc-link {
  opacity: 1;
  transform: translateY(0);
}

.tss-svc-link i {
  font-size: 11px;
  transition: transform 0.3s ease;
}

.tss-svc-card:hover .tss-svc-link i {
  transform: translateX(3px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .tss-cols-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .tss-cols-3,
  .tss-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tss-grid    { gap: 14px; }
  .tss-cols-2,
  .tss-cols-3,
  .tss-cols-4  { grid-template-columns: 1fr; }

  /* En móvil mostrar desc y link siempre en estilo servicios */
  .tss-svc-desc {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 14px;
  }
  .tss-svc-link {
    opacity: 1;
    transform: translateY(0);
  }
}
