/* ============================================================
   ITechPro — home.css
   Estilos específicos de index.html — v2
   ============================================================ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-orb-1 {
  position: absolute;
  width: 600px; height: 600px;
  top: -180px; left: -160px;
  border-radius: 50%;
  background: rgba(0,170,255,0.13);
  filter: blur(100px);
  pointer-events: none;
}
.hero-orb-2 {
  position: absolute;
  width: 420px; height: 420px;
  bottom: -100px; right: -80px;
  border-radius: 50%;
  background: rgba(26,58,110,0.40);
  filter: blur(90px);
  pointer-events: none;
}

/* Parallax layers */
.parallax-layer { will-change: transform; }

.hero-content { position: relative; z-index: 2; }
.hero h1 { margin-bottom: 22px; }
.hero-sub {
  font-size: 1.08rem;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.78;
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text2);
}
.hero-proof-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0,170,255,0.6);
}

/* ── VISUAL HERO ── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hero-visual-ring {
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.hero-visual-ring::before {
  content: '';
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  border: 1px solid var(--border);
}
.hero-visual-ring::after {
  content: '';
  position: absolute;
  inset: -36px;
  border-radius: 50%;
  border: 1px dashed rgba(0,170,255,0.07);
  animation: spin 35s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Logo en hero — mix-blend para quitar fondo negro */
.hero-logo-img {
  width: 120px; height: 120px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 28px rgba(0,170,255,0.45)) brightness(1.1);
  animation: float 5s ease-in-out infinite;
}
.hero-orbit {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-orbit-dot {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--surf2);
  border: 1px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-h);
  letter-spacing: 0.02em;
}
.orbit-1 { top: -23px; left: 50%; transform: translateX(-50%); }
.orbit-2 { right: -23px; top: 50%; transform: translateY(-50%); }
.orbit-3 { bottom: -23px; left: 50%; transform: translateX(-50%); }
.orbit-4 { left: -23px; top: 50%; transform: translateY(-50%); }

/* ── MÉTRICAS ── */
.metrics-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
  position: relative;
  z-index: 1;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.metrics-grid .stat-card {
  border-right: 1px solid var(--border);
  padding: 0 32px;
}
.metrics-grid .stat-card:first-child { padding-left: 0; }
.metrics-grid .stat-card:last-child  { border-right: none; padding-right: 0; }

/* ── SERVICIOS HOME ── */
.services-home { padding: var(--section-py) 0; }

.service-home-card {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  padding: 36px 32px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-home-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.35s;
}
.service-home-card:hover {
  border-color: var(--border2);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md), 0 0 36px rgba(0,170,255,0.10);
}
.service-home-card:hover::after { opacity: 1; }
.service-home-card .card-icon { margin-bottom: 24px; }
.service-home-card h3  { margin-bottom: 12px; font-size: 1.2rem; }
.service-home-card > p { font-size: 0.93rem; flex: 1; }
.service-home-card .tags { margin-bottom: 24px; }

/* Imagen de servicio */
.service-img-wrap {
  width: 100%;
  height: 180px;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 24px;
  position: relative;
}
.service-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  filter: brightness(0.75) saturate(0.8);
}
.service-home-card:hover .service-img-wrap img { transform: scale(1.05); }
.service-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surf) 0%, transparent 60%);
}

.service-home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--cyan);
  margin-top: auto;
  transition: gap 0.2s;
  text-decoration: none;
}
.service-home-link:hover { gap: 10px; }
.service-home-link svg { width: 14px; height: 14px; }

/* ── POR QUÉ ── */
.why-section { padding: var(--section-py) 0; background: var(--bg2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-copy h2 { margin-bottom: 18px; }
.why-copy > p { margin-bottom: 32px; font-size: 1.02rem; }
.why-list { display: flex; flex-direction: column; gap: 26px; }
.why-item { display: flex; align-items: flex-start; gap: 18px; }
.why-num {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,170,255,0.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-h);
  font-size: 0.82rem; font-weight: 700; color: var(--cyan);
  flex-shrink: 0;
}
.why-item h4 { margin-bottom: 5px; font-size: 1rem; }
.why-item p  { font-size: 0.9rem; }

/* ── PROCESO ── */
.process-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
/* Parallax BG image en proceso */
.process-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?w=1600&q=60&auto=format');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* parallax nativo */
  opacity: 0.06;
  z-index: 0;
}
.process-home-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  z-index: 1;
}
.process-home-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), var(--border2), transparent);
  z-index: 0;
}
.process-step { padding: 0 24px; text-align: center; position: relative; z-index: 1; }
.process-step:first-child { padding-left: 0; }
.process-step:last-child  { padding-right: 0; }
.process-dot {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--surf);
  border: 1.5px solid var(--border2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-h);
  font-size: 1rem; font-weight: 800; color: var(--cyan);
  position: relative; z-index: 2;
  transition: var(--trans);
}
.process-step:hover .process-dot {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(0,170,255,0.28);
}
.process-step h4 { font-size: 0.98rem; margin-bottom: 8px; }
.process-step p  { font-size: 0.88rem; }

/* ── CTA BANNER + PARALLAX ── */
.home-cta-section {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
}
.cta-parallax-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1558494949-ef010cbdcc31?w=1600&q=60&auto=format');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.07;
  z-index: 0;
}

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--trans);
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.12);
  box-shadow: 0 6px 30px rgba(37,211,102,0.60);
}
.wa-float svg { width: 30px; height: 30px; color: #fff; display: block; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero-visual-ring { width: 300px; height: 300px; }
  .why-grid { gap: 48px; }
}
@media (max-width: 768px) {
  .hero { padding: 100px 0 64px; min-height: auto; }
  .hero-visual { display: none; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid .stat-card { padding: 20px 16px; }
  .metrics-grid .stat-card:nth-child(2) { border-right: none; }
  .metrics-grid .stat-card:nth-child(3),
  .metrics-grid .stat-card:nth-child(4) { border-top: 1px solid var(--border); }
  .why-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-home-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-home-grid::before { display: none; }
  .process-step { padding: 0; }
  .process-bg, .cta-parallax-bg { background-attachment: scroll; }
  .services-home .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .hero-proof { flex-direction: column; align-items: flex-start; gap: 10px; }
}
