/* service.css — compartido por las 5 páginas de servicio */

/* Clip-path wipe de izquierda a derecha en la imagen del hero */
.hero-service .hero-bg img,
.hero-service .hero-bg video {
  animation: img-wipe 1.3s cubic-bezier(0.77, 0, 0.175, 1) 0.05s both;
}

.hero-service {
  min-height: 55vh;
}

/* Container del hero de servicio — empuja el contenido al fondo */
.hero-service > .container {
  display: flex;
  align-items: flex-end;
  min-height: 55vh;
  padding-bottom: var(--space-xl);
}

.service-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.service-intro-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (max-width: 900px) {
  .service-intro { grid-template-columns: 1fr; }
}

/* ── Características — Zigzag compacto ──────────────────── */
.chars-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Línea vertical central — sutil */
.chars-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    rgba(0,152,247,0.2) 10%,
    rgba(0,152,247,0.2) 90%,
    transparent 100%);
  transform: translateX(-50%);
}

/* ── Ítem ────────────────────────────────────────────────── */
.tl-item {
  display: grid;
  grid-template-columns: 1fr 64px 1fr;
  align-items: center;
  gap: 0;
  padding: 18px 0;
  position: relative;
}

.tl-left .tl-body      { grid-column: 1; grid-row: 1; }
.tl-left .tl-connector { grid-column: 2; grid-row: 1; }
.tl-right .tl-body     { grid-column: 3; grid-row: 1; }
.tl-right .tl-connector{ grid-column: 2; grid-row: 1; }

/* Separador entre ítems */
.tl-item + .tl-item {
  border-top: 1px dashed rgba(0,76,148,0.1);
}

/* ── Conector ────────────────────────────────────────────── */
.tl-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

/* ── Glassmorphism icon ──────────────────────────────────── */
.tl-icon-glass {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  max-width: 44px;
  max-height: 44px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,152,247,0.22);
  box-shadow: 0 2px 10px rgba(0,76,148,0.1), inset 0 1px 0 rgba(255,255,255,0.8);
  color: var(--color-primary);
  transition: background 0.3s, border-color 0.3s, color 0.3s,
              transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s;
}

.tl-item:hover .tl-icon-glass {
  background: rgba(0,152,247,0.1);
  border-color: rgba(0,152,247,0.5);
  box-shadow: 0 0 0 6px rgba(0,152,247,0.07), 0 4px 16px rgba(0,76,148,0.15);
  color: var(--color-accent);
  transform: scale(1.08);
}

.tl-icon-glass svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  min-height: 18px;
  flex-shrink: 0;
}

.other-svc-icon svg {
  width: 16px !important;
  height: 16px !important;
}

/* ── Cuerpo de texto ─────────────────────────────────────── */
.tl-body {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: var(--color-white);
  border: 1px solid rgba(0,76,148,0.08);
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.3s, border-color 0.3s;
}

.tl-item:hover .tl-body {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0,76,148,0.1);
  border-color: rgba(0,152,247,0.25);
}

/* Línea entre body y conector */
.tl-left  .tl-body::after,
.tl-right .tl-body::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: rgba(0,152,247,0.25);
  transition: background 0.3s;
}
.tl-left  .tl-body::after { right: -20px; transform: translateY(-50%); }
.tl-right .tl-body::after { left:  -20px; transform: translateY(-50%); }
.tl-item:hover .tl-body::after { background: rgba(0,152,247,0.55); }

.tl-num {
  display: block;
  font-family: var(--font);
  font-weight: var(--fw-ultra);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: #ccc;
  margin-bottom: 3px;
  transition: color 0.3s;
}
.tl-item:hover .tl-num { color: var(--color-accent); }

.tl-body h3 {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  margin-bottom: 3px;
  line-height: 1.3;
  transition: color 0.3s;
}
.tl-item:hover .tl-body h3 { color: var(--color-accent); }

.tl-body p {
  font-size: 0.78rem;
  color: var(--color-gray);
  line-height: 1.6;
  margin: 0;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 860px) {
  .chars-timeline::before { left: 22px; transform: none; }

  .tl-item {
    grid-template-columns: 44px 1fr;
    padding: 14px 0;
  }

  .tl-left .tl-connector,
  .tl-right .tl-connector { grid-column: 1; grid-row: 1; }
  .tl-left .tl-body,
  .tl-right .tl-body      { grid-column: 2; grid-row: 1; }

  .tl-left .tl-body::after,
  .tl-right .tl-body::after { display: none; }

  .tl-item:hover .tl-body { transform: translateY(-2px); }
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .audience-grid { grid-template-columns: 1fr; }
}

/* ── Otros Servicios ─────────────────────────────────────── */
.other-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.other-svc-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-white);
  border: 1px solid rgba(0,76,148,0.1);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-primary);
  font-family: var(--font);
  font-weight: var(--fw-medium);
  font-size: var(--text-sm);
  transition: border-color 0.25s ease,
              box-shadow 0.25s ease,
              color 0.25s ease,
              transform 0.25s ease;
}

.other-svc-card:hover {
  border-color: rgba(0,152,247,0.4);
  box-shadow: 0 6px 20px rgba(0,76,148,0.1);
  color: var(--color-accent);
  transform: translateY(-3px);
}

.other-svc-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: var(--radius-sm);
  background: rgba(0,76,148,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.25s ease, color 0.25s ease;
}

.other-svc-card:hover .other-svc-icon {
  background: rgba(0,152,247,0.1);
  color: var(--color-accent);
}

.other-svc-icon svg { width: 16px; height: 16px; }

.other-svc-name { line-height: 1.3; }

@media (max-width: 900px) {
  .other-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .other-services-grid { grid-template-columns: 1fr; }
}
