/* ============================================================
 * SynckPro · Vista Infraestructura TI
 * Cargada automáticamente por index.php como infraestructura.css
 * (además de fonts, base, header y footer).
 * ============================================================ */

/* Compensa el header fijo transparente */
#synck-content { padding-top: 0; }

/* ---------- Hero ---------- */
.infra-hero {
  position: relative;
  background:
    radial-gradient(circle at 85% 20%, rgba(1, 87, 254, .35), transparent 55%),
    linear-gradient(180deg, #06070d 0%, #0a1440 100%);
  color: #fff;
  overflow: hidden;
  margin-top: calc(var(--synck-header-h) * -1);
  padding-top: calc(var(--synck-header-h) + 72px);
  padding-bottom: 88px;
}

.infra-hero__inner {
  display: grid;
  gap: 20px;
  justify-items: start;
}

.infra-hero__eyebrow { color: #c9d6ff; }
.infra-hero__eyebrow > i { font-size: 16px; }

.infra-hero__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.infra-hero__title span.hl {
  background: var(--synck-core);
  padding: 0 14px;
  white-space: nowrap;
}

.infra-hero__sub {
  margin: 0;
  color: #9aa0ae;
  font-size: 18px;
  max-width: 60ch;
}

.infra-hero__ctas {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.infra-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.infra-hero__btn:hover { background: var(--synck-core-700); }

.infra-hero__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}
.infra-hero__link:hover { text-decoration: underline; }
.infra-hero__link > i { font-size: 20px; }

.infra-hero__orbs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.infra-hero__orbs i {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: infraOrb 12s ease-in-out infinite;
}
.infra-hero__orbs i:first-child {
  width: 420px; height: 420px; top: -120px; right: -100px;
  background: radial-gradient(circle, rgba(1, 87, 254, .5), transparent 70%);
}
.infra-hero__orbs i:last-child {
  width: 280px; height: 280px; bottom: -80px; left: 8%;
  background: radial-gradient(circle, rgba(77, 134, 255, .4), transparent 70%);
  animation-delay: -6s;
}
@keyframes infraOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -24px) scale(1.06); }
}

.infra-hero__stats { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 8px 0 0; }
.infra-hero__stat { display: flex; align-items: baseline; gap: 10px; padding: 0 28px; font-size: 20px; }
.infra-hero__stat:first-child { padding-left: 0; }
.infra-hero__stat + .infra-hero__stat { border-left: 1px solid rgba(255, 255, 255, .35); }
.infra-hero__stat strong { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.infra-hero__stat span { opacity: .9; font-weight: 400; font-size: 15px; }

/* ---------- Grid de servicios ---------- */
.infra-grid {
  background: #fff;
  padding: 96px 0;
}

.infra-grid__inner {
  display: grid;
  gap: 40px;
}

.infra-grid__head {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.infra-grid__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.infra-grid__sub {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 17px;
}

.infra-grid__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.infra-card {
  position: relative;
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  background: #fff;
  padding: 32px 28px;
  display: grid;
  gap: 12px;
  align-content: start;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease, background-color .25s ease;
}
.infra-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--synck-core), var(--synck-core-400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.infra-card:hover::before { transform: scaleX(1); }
.infra-card:hover {
  box-shadow: 0 12px 32px rgba(1, 87, 254, .12);
  transform: translateY(-3px);
  background: rgba(1, 87, 254, .02);
}
.infra-card__num {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  color: transparent;
  -webkit-text-stroke: 1px var(--synck-gray-300);
  line-height: 1;
  pointer-events: none;
  transition: -webkit-text-stroke .3s ease;
}
.infra-card:hover .infra-card__num { -webkit-text-stroke: 1px var(--synck-core-400); }

.infra-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--synck-core);
  color: #fff;
  margin-bottom: 4px;
}
.infra-card__icon > i { font-size: 26px; line-height: 1; }

.infra-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.infra-card__desc {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 15.5px;
}

/* ---------- CTA final en 2 columnas + escena animada ---------- */
.infra-cta {
  background: var(--synck-gray-100);
  padding: 88px 0;
}

.infra-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.infra-cta__copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.infra-cta__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.infra-cta__sub {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 17px;
}

.infra-cta__btn {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.infra-cta__btn:hover { background: var(--synck-core-700); }

.infra-cta__points {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.infra-cta__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 15.5px;
}
.infra-cta__points i {
  font-size: 20px;
  color: var(--synck-core);
}

/* Escena: wifi arriba, usuarios y equipos debajo; a los ~6s falla en loop */
.net-scene {
  --net-ok: var(--synck-core);
  --net-good: #40c057;
  --net-bad: #e03131;
  position: relative;
  background: #0a0b12;
  border: 1px solid #23252e;
  border-radius: 20px;
  padding: 56px 32px 32px;
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.net-scene__status {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-family: var(--synck-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.net-scene__status--ok {
  color: var(--net-good);
  background: rgba(64, 192, 87, .12);
  box-shadow: inset 0 0 0 1px rgba(64, 192, 87, .4);
  animation: netStatusOk 9s infinite;
}
.net-scene__status--fail {
  color: var(--net-bad);
  background: rgba(224, 49, 49, .12);
  box-shadow: inset 0 0 0 1px rgba(224, 49, 49, .45);
  animation: netStatusFail 9s infinite;
}
@keyframes netStatusOk { 0%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes netStatusFail { 0%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }

.net-scene__wifi {
  position: relative;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(1, 87, 254, .1);
  box-shadow: inset 0 0 0 1px rgba(1, 87, 254, .35);
  animation: netWifiBg 9s infinite;
}
@keyframes netWifiBg {
  0%, 62% { background: rgba(1, 87, 254, .1); box-shadow: inset 0 0 0 1px rgba(1, 87, 254, .35); }
  70%, 100% { background: rgba(224, 49, 49, .1); box-shadow: inset 0 0 0 1px rgba(224, 49, 49, .45); }
}
.net-scene__ico { font-size: 40px; line-height: 1; grid-area: 1 / 1; }
.net-scene__ico--ok { color: var(--net-ok); animation: netIcoOk 9s infinite; }
.net-scene__ico--fail { color: var(--net-bad); animation: netIcoFail 9s infinite; }
@keyframes netIcoOk { 0%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }
@keyframes netIcoFail { 0%, 62% { opacity: 0; } 70%, 100% { opacity: 1; } }

.net-scene__rings {
  position: absolute;
  inset: 0;
  animation: netRingsWrap 9s infinite;
}
.net-scene__rings i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--net-ok);
  border-radius: 50%;
  opacity: 0;
  animation: netRing 1.8s ease-out infinite;
}
.net-scene__rings i:nth-child(2) { animation-delay: .6s; }
.net-scene__rings i:nth-child(3) { animation-delay: 1.2s; }
@keyframes netRing {
  0% { transform: scale(.7); opacity: .8; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes netRingsWrap { 0%, 62% { opacity: 1; } 70%, 100% { opacity: 0; } }

.net-scene__trunk {
  width: 3px;
  height: 28px;
  background: var(--net-ok);
  animation: netLine 9s infinite;
}
.net-scene__bus {
  width: 82%;
  height: 3px;
  border-radius: 2px;
  background: var(--net-ok);
  animation: netLine 9s infinite;
}
@keyframes netLine {
  0%, 62% { background: var(--net-ok); opacity: 1; }
  66%, 74%, 82%, 90%, 98% { background: var(--net-bad); opacity: .35; }
  70%, 78%, 86%, 94%, 100% { background: var(--net-bad); opacity: 1; }
}

.net-scene__nodes {
  width: 82%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.net-scene__node {
  display: grid;
  justify-items: center;
  animation: netShake 9s infinite;
}
@keyframes netShake {
  0%, 68% { transform: translateX(0); }
  72% { transform: translateX(-3px); }
  76% { transform: translateX(3px); }
  80% { transform: translateX(-2px); }
  84%, 100% { transform: translateX(0); }
}
.net-scene__drop {
  width: 3px;
  height: 22px;
  background: var(--net-ok);
  animation: netLine 9s infinite;
}
.net-scene__node > i {
  font-size: 30px;
  color: #c9cdd4;
  line-height: 1;
  margin-top: 8px;
  animation: netNodeDim 9s infinite;
}
@keyframes netNodeDim { 0%, 62% { opacity: 1; } 70%, 100% { opacity: .45; } }
.net-scene__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: var(--net-good);
  animation: netDot 9s infinite;
}
@keyframes netDot {
  0%, 62% { background: var(--net-good); box-shadow: 0 0 8px rgba(64, 192, 87, .8); }
  70%, 100% { background: var(--net-bad); box-shadow: 0 0 8px rgba(224, 49, 49, .8); }
}

@media (max-width: 1023px) {
  .infra-grid__cards { grid-template-columns: 1fr 1fr; }
  .infra-grid { padding: 64px 0; }
  .infra-cta__inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .infra-grid__cards { grid-template-columns: 1fr; }
  .infra-hero__title span.hl { white-space: normal; }
}

/* ---------- Sección negro full-bleed: la sección ocupa todo el ancho,
   solo el contenido interior conserva la restricción del container ---------- */
.infra-pain {
  background: #000;
  color: #fff;
  padding: 110px 0;
}

.infra-pain__inner {
  width: min(var(--synck-container), 100% - 48px);
  margin-inline: auto;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.infra-pain__eyebrow { color: #c9d6ff; }
.infra-pain__eyebrow > i { font-size: 16px; }

.infra-pain__title {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.5px;
  line-height: 1.12;
}
.infra-pain__title span:last-child { color: var(--synck-core-400); }

.infra-pain__sub {
  margin: 0;
  color: #9aa0ae;
  font-size: 18px;
}

.infra-pain__list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.infra-pain__list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #23252e;
  border-radius: 14px;
  padding: 20px;
  background: #0a0b12;
}
.infra-pain__list i {
  font-size: 26px;
  color: var(--synck-core-400);
  line-height: 1;
}
.infra-pain__list strong {
  display: block;
  font-size: 17px;
  margin-bottom: 6px;
}
.infra-pain__list p {
  margin: 0;
  color: #9aa0ae;
  font-size: 15px;
}

.infra-pain__btn {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 36px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.infra-pain__btn:hover { background: var(--synck-core-700); }

/* ---------- Proceso en 4 pasos (timeline) ---------- */
.infra-steps {
  background: #fff;
  padding: 96px 0 120px;
}

.infra-steps__inner {
  display: grid;
  gap: 40px;
  justify-items: center;
  text-align: center;
}
.infra-steps__head { max-width: 640px; }

.infra-steps__head {
  display: grid;
  gap: 12px;
  max-width: 640px;
}

.infra-steps__title {
  margin: 0;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.5px;
}

.infra-steps__sub {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 17px;
}

.infra-steps__list {
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
  position: relative;
  text-align: left;
}
.infra-steps__list::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--synck-core-400) 0 8px, transparent 8px 16px);
  opacity: .45;
  animation: infraRail 2.4s linear infinite;
}
@keyframes infraRail {
  to { background-position: 24px 0; }
}
.infra-steps__list li {
  position: relative;
  background: var(--synck-gray-100);
  border: 1px solid var(--synck-gray-300);
  border-radius: 16px;
  padding: 28px;
  padding-top: 40px;
  display: grid;
  gap: 8px;
  align-content: start;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.infra-steps__list li:hover {
  box-shadow: 0 12px 32px rgba(1, 87, 254, .12);
  transform: translateY(-3px);
  border-color: var(--synck-core-400);
}
.infra-steps__node {
  position: absolute;
  top: -26px;
  left: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--synck-core);
  color: #fff;
  box-shadow: 0 10px 24px rgba(1, 87, 254, .35);
  border: 3px solid #fff;
}
.infra-steps__node > i { font-size: 24px; line-height: 1; }
.infra-steps__num {
  font-family: var(--synck-mono);
  font-size: 13px;
  color: var(--synck-core);
  letter-spacing: .1em;
}
.infra-steps__list h3 {
  margin: 0;
  font-size: 19px;
}
.infra-steps__list p {
  margin: 0;
  color: var(--synck-gray-600);
  font-size: 15px;
}

.infra-steps__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--synck-core);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  padding: 15px 40px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color .2s ease;
}
.infra-steps__btn:hover { background: var(--synck-core-700); }

.infra-steps__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--synck-gray-500);
  font-size: 14.5px;
}
.infra-steps__note i { font-size: 18px; color: var(--synck-core); }

@media (max-width: 1023px) {
  .infra-steps__list { grid-template-columns: 1fr 1fr; }
  .infra-steps__list::before { display: none; }
  .infra-pain { padding: 80px 0; }
  .infra-steps { padding: 64px 0 80px; }
}

@media (max-width: 640px) {
  .infra-pain__list { grid-template-columns: 1fr; }
  .infra-steps__list { grid-template-columns: 1fr; }
  .infra-hero__title span { white-space: normal; }
  .infra-hero__stat { padding: 0 16px; font-size: 18px; }
  .infra-hero__stat strong { font-size: 22px; }
}
