/* ============================================================
   ITechPro — servicios.css
   Estilos compartidos · Hub · Páginas individuales de servicio
   ============================================================ */

/* ── PAGE HERO SERVICIO ── */
.svc-hero {
  padding: 110px 0 80px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.svc-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}
.svc-hero-orb-1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: rgba(0,170,255,0.10);
}
.svc-hero-orb-2 {
  width: 300px; height: 300px;
  bottom: 0; left: -80px;
  background: rgba(26,58,110,0.30);
}
.svc-hero .container { position: relative; z-index: 2; }
.svc-hero h1 { max-width: 700px; margin-bottom: 20px; }
.svc-hero .hero-sub {
  font-size: 1.08rem;
  color: var(--text2);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.75;
}
.svc-hero-img {
  width: 100%;
  height: 340px;
  border-radius: var(--r2);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
}
.svc-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.75);
}
.svc-hero-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--bg) 0%, transparent 60%);
}

/* ── HUB: CARDS GRANDES ── */
.hub-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: var(--trans);
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: stretch;
  gap: 0;
}
.hub-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.hub-card-img {
  height: 100%;
  min-height: 200px;
  overflow: hidden;
}
.hub-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.65) saturate(0.75);
  transition: transform 0.5s ease;
}
.hub-card:hover .hub-card-img img { transform: scale(1.05); }

.hub-card-body {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hub-card-body h3  { margin-bottom: 12px; }
.hub-card-body > p { font-size: 0.95rem; margin-bottom: 16px; flex: 1; }
.hub-card-action {
  padding: 36px 32px 36px 0;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* ── GUIDE CARDS (¿Cómo elegir?) ── */
.guide-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 32px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.guide-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.guide-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
}
.guide-card:hover::before { opacity: 1; }
.guide-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.guide-card h4  { margin-bottom: 10px; font-size: 1rem; }
.guide-card p   { font-size: 0.9rem; margin-bottom: 20px; }

/* ── TECH GRID ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tech-item {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 16px;
  text-align: center;
  transition: var(--trans-fast);
}
.tech-item:hover {
  border-color: var(--border2);
  background: var(--surf2);
}
.tech-item-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.tech-item-icon svg { width: 20px; height: 20px; color: var(--cyan); }
.tech-item span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text2);
}

/* ── TIPOS DE SERVICIO ── */
.type-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 28px;
  transition: var(--trans);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.type-card:hover {
  border-color: var(--border2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.type-badge {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(0,170,255,0.2);
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 14px;
}
.type-card h4  { margin-bottom: 10px; font-size: 1rem; }
.type-card p   { font-size: 0.9rem; flex: 1; }
.type-card .tags { margin-top: 16px; }

/* ── PROCESO SERVICIO (vertical) ── */
.process-vertical {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-vertical::before {
  content: '';
  position: absolute;
  left: 17px; top: 36px; bottom: 36px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border2), var(--border2), transparent);
  z-index: 0;
}
.pv-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 28px;
  position: relative;
  z-index: 1;
}
.pv-step:last-child { padding-bottom: 0; }
.pv-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surf);
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 0.8rem; font-weight: 700; color: var(--cyan);
  flex-shrink: 0;
  position: relative; z-index: 2;
  transition: var(--trans-fast);
}
.pv-step:hover .pv-num {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}
.pv-body h4 { font-size: 0.95rem; margin-bottom: 4px; }
.pv-body p  { font-size: 0.88rem; }

/* ── SUB-SERVICIOS ASESORÍA (categorías) ── */
.subcat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 0 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.subcat-label .subcat-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.subcat-infra .subcat-dot { background: var(--cyan); }
.subcat-cloud .subcat-dot { background: var(--success); }
.subcat-infra { color: var(--cyan); }
.subcat-cloud { color: var(--success); }

.svc-sub-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 22px;
  transition: var(--trans-fast);
  height: 100%;
}
.svc-sub-card:hover {
  border-color: var(--border2);
  background: var(--surf2);
}
.svc-sub-card h4 { font-size: 0.95rem; margin-bottom: 8px; }
.svc-sub-card p  { font-size: 0.87rem; margin-bottom: 12px; }

/* ── INLINE CTA FORM ── */
.inline-cta {
  background: linear-gradient(135deg, var(--navy2) 0%, var(--navy) 100%);
  border: 1px solid var(--border2);
  border-radius: var(--r3);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.inline-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,170,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.inline-cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.inline-cta-copy h3  { margin-bottom: 12px; }
.inline-cta-copy p   { font-size: 0.95rem; margin-bottom: 20px; }
.inline-cta-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.inline-cta-guarantees li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text2);
}
.inline-cta-guarantees li svg {
  width: 14px; height: 14px;
  color: var(--success);
  flex-shrink: 0;
}
.inline-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border3);
  border-radius: var(--r2);
  padding: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hub-card { grid-template-columns: 220px 1fr auto; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .svc-hero { padding: 100px 0 60px; }
  .about-hero { padding: 100px 0 60px; }
  .hub-card {
    grid-template-columns: 1fr;
    grid-template-rows: 200px auto auto;
  }
  .hub-card-img { height: 200px; }
  .hub-card-action { padding: 0 32px 32px; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .inline-cta { padding: 36px 24px; }
  .svc-hero-img { height: 220px; }
}
@media (max-width: 480px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
}
