/* =========================
   RESET
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

/* =========================
   BASE
========================= */
body {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #000000;
  color: #f5f5f5;
}

.page {
  position: relative;
  min-height: 100vh;
  padding: 24px 20px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

/* =========================
   FONDO TECH
========================= */

.bg-gradient {
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.06) 0, transparent 60%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0, transparent 60%),
    radial-gradient(circle at 0% 80%, rgba(255,255,255,0.05) 0, transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(255,255,255,0.07) 0, transparent 60%);
  filter: blur(25px);
  opacity: 0.6;
  animation: bgMove 35s ease-in-out infinite alternate;
  z-index: -4;
}

@keyframes bgMove {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-20px, 12px, 0) scale(1.08); }
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.45;
  mix-blend-mode: soft-light;
  animation: gridDrift 22s linear infinite;
  z-index: -3;
}

@keyframes gridDrift {
  0% { transform: translate3d(0,0,0); }
  100% { transform: translate3d(42px,28px,0); }
}

.bg-orbits {
  position: fixed;
  inset: -15%;
  background:
    radial-gradient(circle at 25% 40%, rgba(255,255,255,0.07) 0, transparent 60%),
    radial-gradient(circle at 75% 20%, rgba(255,255,255,0.05) 0, transparent 60%),
    radial-gradient(circle at 50% 90%, rgba(255,255,255,0.06) 0, transparent 60%);
  mix-blend-mode: screen;
  opacity: 0.7;
  animation: orbitsPulse 25s ease-in-out infinite alternate;
  z-index: -2;
}

@keyframes orbitsPulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.08) translate3d(0,-10px,0); }
}

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.08), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* =========================
   CABECERA / BADGE
========================= */

.site-header {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(10,10,10,0.85);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 10px 28px rgba(0,0,0,0.85);
  backdrop-filter: blur(16px);
}

.badge-top {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #cfcfcf;
}

.badge-main {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.badge-bottom {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9f9f9f;
}

/* =========================
   HERO
========================= */

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background: rgba(12,12,12,0.92);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 18px 52px rgba(0,0,0,0.88),
    0 0 0 1px rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.03);
  pointer-events: none;
}

.hero-left {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: #b8b8b8;
  margin-bottom: 10px;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e0e0e0;
  margin-bottom: 16px;
}

.hero-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #d3d3d3;
  margin-bottom: 20px;
}

.hero-text strong {
  font-weight: 600;
  color: white;
}

/* Estado */
.hero-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #f0f0f0;
  font-size: 0.78rem;
  letter-spacing: 0.15em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,0.9);
  animation: dotPulse 1.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.5); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

.status-note {
  font-size: 0.84rem;
  color: #9f9f9f;
}

/* Columna derecha */
.hero-right {
  display: flex;
  align-items: center;
}

.cloud-card {
  width: 100%;
  border-radius: 16px;
  background: rgba(15,15,15,0.95);
  color: #f4f4f4;
  padding: 16px;
  box-shadow: 0 16px 42px rgba(0,0,0,0.95);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Header consola */
.cloud-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cloud-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.cloud-led {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.35);
  color: #ffffff;
}

.cloud-led--ok::before {
  content: "● ";
  opacity: 0.9;
}

/* Diagrama cloud */
.cloud-diagram {
  border-radius: 12px;
  background: rgba(9,9,9,0.95);
  padding: 16px 12px;
  position: relative;
  overflow: hidden;
}

.cloud-core {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

.core-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.4);
  animation: ringRotate 12s linear infinite;
}

.core-ring--2 {
  inset: 10px;
  border-style: solid;
  border-color: rgba(255,255,255,0.8);
  animation-duration: 18s;
  animation-direction: reverse;
}

@keyframes ringRotate {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

.core-node {
  position: absolute;
  inset: 22px;
  background: #050505;
  color: #ffffff;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
  box-shadow:
    0 0 14px rgba(255,255,255,0.4),
    0 0 0 1px rgba(255,255,255,0.9);
}

.core-node--pulse {
  box-shadow:
    0 0 20px rgba(255,255,255,1),
    0 0 0 2px rgba(255,255,255,1);
  transition: box-shadow 0.3s ease-out;
}

/* Líneas */
.cloud-connections {
  position: absolute;
  top: 30px;
  left: 90px;
  right: 12px;
  height: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.conn-line {
  height: 2px;
  background: linear-gradient(90deg, white 0, white 40%, transparent 40%);
  background-size: 120% 100%;
  animation: lineScroll 2.4s linear infinite;
}

.conn-line--2 { animation-delay: -0.6s; }
.conn-line--3 { animation-delay: -1.2s; }

@keyframes lineScroll {
  0% { background-position: 0 0; }
  100% { background-position: -120% 0; }
}

/* Nodos */
.cloud-nodes {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-top: 42px;
}

.node {
  border-radius: 99px;
  padding: 6px 8px;
  background: #080808;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 4px 0 rgba(0,0,0,0.9);
  color: white;
  font-size: 0.72rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cloud-footer {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #cfcfcf;
}

/* =========================
   INFO STRIP
========================= */

.info-strip {
  max-width: 980px;
  margin: 14px auto 0;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  box-shadow: 0 16px 38px rgba(0,0,0,0.95);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: #b5b5b5;
}

.info-text {
  color: #e4e4e4;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.78rem;
  color: #b8b8b8;
}

.footer-highlight {
  color: white;
  font-weight: 600;
}

.br-mobile {
  display: none;
}

/* =========================
   SCROLL REVEAL
========================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease-out, transform .7s ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 800px) {
  .hero-card {
    grid-template-columns: 1fr;
    padding: 22px 18px;
  }

  h1 {
    font-size: 2.2rem;
    letter-spacing: 0.18em;
  }

  .cloud-nodes {
    grid-template-columns: repeat(2,1fr);
  }
}

@media (max-width: 480px) {
  .badge {
    transform: scale(0.9);
  }

  .info-strip {
    grid-template-columns: 1fr;
  }
}
/* =========================
   FIX — Espaciado info-strip
   (desktop + móvil)
========================= */

/* Padding general más amplio en toda la cápsula */
.info-strip {
  padding: 18px 26px;
}

/* Espaciado extra en los laterales para que no toque el borde */
.info-item:first-child {
  padding-left: 12px;
}

.info-item:last-child {
  padding-right: 12px;
}

/* ===== MOBILE FIX ===== */
@media (max-width: 800px) {
  /* Reducimos mucho el radio para que NO se salga el contenido */
  .info-strip {
    border-radius: 22px !important;
    padding: 18px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .info-item:first-child,
  .info-item:last-child {
    padding-left: 0;
    padding-right: 0;
  }

  .info-label {
    margin-bottom: 4px;
  }
}
