/* COMPUMARKET — INICIO (mobile-first) */

/* ── Hero (fondo del header + red animada hacia un servidor) ── */
.hero { position: relative; display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); background: var(--color-primary); color: var(--color-white); overflow: hidden; }
.hero-inner { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: 1fr; gap: 24px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; line-height: 1.12; margin-bottom: 32px; }
.hero h1 span { color: #5b8def; }
.hero-etiqueta { display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #93b4ff; background: rgba(37,99,235,0.18); border: 1px solid rgba(147,180,255,0.3); padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.hero-botones { display: flex; flex-direction: column; gap: 12px; }

.red-anim { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.26) 40%, rgba(0,0,0,0.8) 68%, #000 100%); mask-image: linear-gradient(90deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.26) 40%, rgba(0,0,0,0.8) 68%, #000 100%); }
.hero-texto { max-width: 620px; }
/* Celular: la red ocupa la parte baja del hero (servidor visible, debajo del texto) */
@media (max-width: 767px) {
  .red-anim { inset: auto 0 0 0; height: 46%; -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 35%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.9) 35%, #000 100%); }
  .hero-inner { padding-bottom: 180px; }
}
.red-base path { stroke: #1d3a78; }
.red-pulsos .pulso { stroke: #60a5fa; stroke-dasharray: 10 90; stroke-dashoffset: 10; animation: viaja 3.6s cubic-bezier(.45,.05,.55,.95) infinite; }
.red-pulsos .pulso:nth-child(1) { animation-delay: 0s; animation-duration: 3.4s; }
.red-pulsos .pulso:nth-child(2) { animation-delay: 0.7s; animation-duration: 3.9s; }
.red-pulsos .pulso:nth-child(3) { animation-delay: 1.5s; animation-duration: 3.2s; }
.red-pulsos .pulso:nth-child(4) { animation-delay: 2.1s; animation-duration: 4.2s; }
.red-pulsos .pulso:nth-child(5) { animation-delay: 0.3s; animation-duration: 3.6s; }
.red-pulsos .pulso:nth-child(6) { animation-delay: 1.1s; animation-duration: 4.0s; }
.red-pulsos .pulso:nth-child(7) { animation-delay: 2.6s; animation-duration: 3.3s; }
.red-pulsos .pulso:nth-child(8) { animation-delay: 1.8s; animation-duration: 3.8s; }
.red-pulsos .pulso:nth-child(9) { animation-delay: 2.2s; animation-duration: 3.6s; }
.red-pulsos .pulso:nth-child(10) { animation-delay: 0.9s; animation-duration: 4.1s; }
.red-pulsos .pulso:nth-child(11) { animation-delay: 3.0s; animation-duration: 3.5s; }
.red-pulsos .pulso:nth-child(12) { animation-delay: 1.4s; animation-duration: 3.7s; }
.red-pulsos .pulso:nth-child(13) { animation-delay: 0.5s; animation-duration: 3.7s; }
.red-pulsos .pulso:nth-child(14) { animation-delay: 2.4s; animation-duration: 4.0s; }
.red-pulsos .pulso:nth-child(15) { animation-delay: 1.2s; animation-duration: 3.4s; }
.red-pulsos .pulso:nth-child(16) { animation-delay: 3.1s; animation-duration: 3.9s; }
@keyframes viaja { 0% { stroke-dashoffset: 10; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 0; } }
.red-nodos circle { fill: var(--color-primary); stroke: #3b82f6; stroke-width: 2.5; }

.servidor .srv-caja { fill: #111d36; stroke: #2a4c99; stroke-width: 2; }
.servidor .srv-ranura { stroke: #28437f; stroke-width: 3; stroke-linecap: round; }
.servidor .srv-base { stroke: #28437f; stroke-width: 3; stroke-linecap: round; fill: none; }
.servidor .srv-led { fill: #22c55e; animation: parpadea 1.8s ease-in-out infinite; }
.servidor .l2 { animation-delay: 0.6s; fill: #3b82f6; }
.servidor .l3 { animation-delay: 1.2s; }
@keyframes parpadea { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .red-pulsos .pulso { animation: none; stroke-dashoffset: -30; opacity: 0.9; }
  .servidor .srv-led { animation: none; opacity: 1; }
}

/* ── Banners (carrusel administrable) ── */
.banners { padding: 28px 0 8px; background: var(--sup-fondo); }
.banner-carrusel { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.banner-pista { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.banner-pista::-webkit-scrollbar { display: none; }
.banner-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: 230px; display: flex; align-items: center; background: #0f182a; color: #fff; overflow: hidden; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-texto { position: relative; z-index: 1; padding: 28px 24px 44px; max-width: 640px; }
.banner-texto.con-imagen { padding-top: 32px; }
.banner-slide:has(.con-imagen)::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(15,24,42,0.88) 0%, rgba(15,24,42,0.55) 60%, rgba(15,24,42,0.15) 100%); }
.banner-texto h2 { font-size: clamp(1.4rem, 4.6vw, 2.3rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.banner-texto p { font-size: 0.98rem; color: rgba(255,255,255,0.82); line-height: 1.6; margin-bottom: 18px; max-width: 520px; }
.banner-flecha { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(15,24,42,0.7); align-items: center; justify-content: center; transition: background var(--transition-fast); }
.banner-flecha:hover { background: var(--color-accent); }
.banner-flecha.izq { left: 14px; } .banner-flecha.der { right: 14px; }
.banner-flecha svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.banner-puntos { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 3; display: flex; justify-content: center; gap: 6px; }
.banner-puntos button { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; }
.banner-puntos button::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); transition: var(--transition-fast); }
.banner-puntos button.activo::before { width: 26px; border-radius: 6px; background: #fff; }
@media (min-width: 768px) { .banner-slide { min-height: 300px; } .banner-texto { padding: 40px 64px 56px; } .banner-flecha { display: flex; } }
@media (min-width: 1100px) { .banner-slide { min-height: 340px; } }

/* ── Categorías (lo que vendemos) ── */
.categorias { background: var(--sup-fondo); padding: 48px 0; border-bottom: 1px solid var(--cat-borde); }
.categorias-titulo { text-align: center; font-size: clamp(1.3rem, 4vw, 1.8rem); font-weight: 700; color: var(--cat-titulo); margin-bottom: 28px; }
.categorias-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.categoria { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 120px; padding: 20px 12px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--cat-titulo); background: var(--sup-alt); border: 1px solid var(--cat-borde); border-radius: var(--radius); transition: var(--transition); }
.categoria svg { width: 34px; height: 34px; fill: none; stroke: var(--color-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.categoria:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); transform: translateY(-3px); }
.categoria:hover svg { stroke: #fff; }

/* ── Secciones ── */
.seccion { padding: 64px 0; }
.seccion-gris { background: var(--sup-alt); }
.seccion-cabecera { margin-bottom: 40px; }

.cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.card { background: var(--sup-panel); border: 1px solid var(--cat-borde); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(37,99,235,0.35); }
.card-icono { width: 52px; height: 52px; border-radius: 14px; background: rgba(37,99,235,0.1); color: var(--color-accent); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.card-icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--cat-titulo); margin-bottom: 8px; }
.card p { font-size: 0.92rem; color: var(--cat-suave); line-height: 1.7; margin-bottom: 20px; flex: 1; }
.card-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 0.9rem; font-weight: 600; color: var(--color-accent); }
.card-link:hover { color: var(--color-accent-dark); }

.destacados-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.destacados-cab .section-title { margin-bottom: 0; }
.destacados .similares-todos { color: var(--color-accent); font-weight: 600; font-size: 0.9rem; white-space: nowrap; padding-bottom: 6px; }
.destacados .carrusel-marco .chips-flecha { top: 38%; }

/* ── Pasos ── */
.pasos { display: grid; grid-template-columns: 1fr; gap: 20px; counter-reset: paso; }
.paso { position: relative; padding: 28px; background: var(--sup-panel); border: 1px solid var(--cat-borde); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.paso-num { width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent); color: var(--color-white); font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.paso h3 { font-size: 1.05rem; color: var(--cat-titulo); margin-bottom: 8px; }
.paso p { font-size: 0.92rem; color: var(--cat-suave); line-height: 1.7; }

.seccion-pie { text-align: center; margin-top: 36px; }

/* ── Nosotros ── */
.nosotros { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.nosotros-texto p { color: var(--cat-texto2); line-height: 1.8; margin-bottom: 28px; }
.features { display: flex; flex-direction: column; gap: 12px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--sup-panel); border-radius: var(--radius); box-shadow: var(--shadow-sm); font-size: 0.93rem; font-weight: 500; }
.feature svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nosotros-logo { display: flex; align-items: center; justify-content: center; }
.nosotros-logo img { width: 100%; max-width: 420px; }

/* ── CTA ── */
.cta-band { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-mid) 100%); padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: clamp(1.4rem, 4.5vw, 2rem); font-weight: 700; color: var(--color-white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.72); margin-bottom: 28px; }
.cta-botones { display: flex; flex-direction: column; gap: 12px; align-items: stretch; max-width: 360px; margin: 0 auto; }

/* ── Tablet ── */
@media (min-width: 768px) {
  .hero-inner { padding-top: 72px; padding-bottom: 80px; }
  .hero-botones { flex-direction: row; }
  .categorias { padding: 64px 0; }
  .categorias-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pasos { grid-template-columns: repeat(3, 1fr); }
  .seccion { padding: 88px 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .cta-botones { flex-direction: row; justify-content: center; max-width: none; }
}

/* ── Laptop / PC ── */
@media (min-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .nosotros { grid-template-columns: 1fr 1fr; gap: 80px; }
  .nosotros-texto { max-width: 520px; }
}
