/* ============================================================
   HOME.CSS — Estilos exclusivos de la página principal
============================================================ */

/* ── Hero Home ── */
.hero-home {
  min-height: auto;
  padding: 130px 0 50px;
}
.hero-home .hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 32px;
}
.hero-home h1 {
  font-size: clamp(2rem, 4vw, 3rem) !important;
  margin-bottom: 20px !important;
}

/* Botón outline blanco */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.7);
}

/* ── Visualización tecnológica hero ── */
.hero-tech-visual {
  position: relative;
  width: 360px;
  height: 340px;
}

.tech-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.tech-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.tech-node svg {
  width: 48px;
  height: 48px;
  color: var(--white);
}
.tech-node span {
  font-size: .7rem;
  color: rgba(255,255,255,.7);
  font-weight: 600;
  letter-spacing: .3px;
  text-align: center;
  white-space: nowrap;
}

.tech-center {
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(251,82,82,.15);
  border: 1px solid rgba(251,82,82,.3);
  border-radius: 16px;
  padding: 20px 28px 14px;
  backdrop-filter: blur(6px);
}
.tech-center svg {
  width: 56px;
  height: 56px;
  color: var(--yellow);
}
.tech-center span {
  font-size: .85rem;
  color: var(--white);
  font-weight: 800;
}

.tech-sat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 14px 18px 10px;
  backdrop-filter: blur(4px);
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.tech-sat:hover {
  transform: translateY(-4px);
  border-color: rgba(255,208,87,.4);
  background: rgba(255,208,87,.08);
}

.tech-sat-1 { bottom: 30px; left: 0; }
.tech-sat-2 { bottom: 0; left: 50%; transform: translateX(-50%); }
.tech-sat-3 { bottom: 30px; right: 0; }
.tech-sat-2:hover { transform: translateX(-50%) translateY(-4px); }


/* ============================================================
   DIFERENCIADORES
============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

.diff-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  text-align: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.diff-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,.08);
}

.diff-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(251,82,82,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  transition: background .3s ease;
}
.diff-card:hover .diff-icon {
  background: rgba(251,82,82,.16);
}
.diff-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--red);
}

.diff-card h3 {
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.diff-card p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Comparativa ── */
.compare-bar {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}

.compare-side {
  flex: 1;
  padding: 32px 28px;
}

.compare-them {
  background: #f1f5f9;
}
.compare-us {
  background: linear-gradient(135deg, var(--navy) 0%, #0D1B2A 100%);
  color: var(--white);
}

.compare-label {
  display: block;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}
.compare-us .compare-label {
  color: var(--yellow);
}

.compare-side ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.compare-side li {
  font-size: .85rem;
  line-height: 1.5;
}

.compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 1px;
  min-width: 60px;
}


/* ============================================================
   SERVICIOS
============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.service-card {
  display: flex;
  gap: 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-decoration: none;
  color: var(--white);
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,208,87,.35);
  background: rgba(255,255,255,.07);
  box-shadow: 0 16px 48px rgba(0,0,0,.3);
}

.svc-icon-wrap {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 18px;
  background: rgba(255,208,87,.1);
  border: 1px solid rgba(255,208,87,.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.svc-icon-svg {
  width: 36px;
  height: 36px;
  color: var(--yellow);
}

.svc-content {
  flex: 1;
}

.svc-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(251,82,82,.2);
  color: #ff6b6b;
  margin-bottom: 10px;
}

.svc-content h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--white);
}

.svc-content p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 16px;
}

.svc-highlights {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}
.svc-highlights li {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  padding-left: 18px;
  position: relative;
}
.svc-highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-weight: 700;
}

.svc-link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--yellow);
  transition: letter-spacing .3s ease;
}
.service-card:hover .svc-link {
  letter-spacing: .5px;
}


/* ============================================================
   AFILIADOS
============================================================ */
.affiliate-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.aff-step {
  flex: 0 1 260px;
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.aff-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,.08);
}

.aff-num {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), #ff6b6b);
  color: var(--white);
  font-weight: 900;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.aff-step h3 {
  font-size: .95rem;
  margin-bottom: 8px;
  color: var(--navy);
}
.aff-step p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.aff-arrow {
  font-size: 1.5rem;
  color: var(--red);
  font-weight: 800;
}


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .diff-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-tech-visual { display: none; }
}

@media (max-width: 900px) {
  .service-card { flex-direction: column; gap: 20px; }
  .svc-highlights { grid-template-columns: 1fr; }
  .compare-bar { flex-direction: column; }
  .compare-vs { padding: 12px; min-width: auto; }
}

@media (max-width: 640px) {
  .diff-grid { grid-template-columns: 1fr; }
  .affiliate-grid { flex-direction: column; }
  .aff-arrow { transform: rotate(90deg); }
}
