/* ═══════════════════════════════════════════
   home.css — Index page specific styles
═══════════════════════════════════════════ */

/* ── Hero ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(48px, calc((100vw - 1200px) / 2));
  padding-top: var(--nav-h);
  background: var(--navy-dark);
  gap: 64px;
  overflow: hidden;
  position: relative;
}

.hero-content {
  flex: 1 1 0;
  min-width: 0;
  max-width: 600px;
  z-index: 2;
}

.hero-visual {
  flex: 0 0 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

#virusCanvas {
  display: block;
  border-radius: 50%;
  width: 420px !important;
  height: 420px !important;
}

.hero-label {
  display: block;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 18px;
  opacity: 0; /* GSAP will reveal */
}

#hero h1 {
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 20px;
  opacity: 0;
}

#hero h1 em {
  font-style: normal;
  color: var(--sand);
}

.hero-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 28px;
  opacity: 0;
}

.hero-sub strong {
  color: var(--sand);
  font-weight: 700;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  opacity: 0;
}

/* ── Problem 2-col ── */
.problem-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.problem-2col-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 16px;
}

.problem-2col-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pstat-block {
  padding: 24px 28px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pstat-block.pstat-sand {
  background: var(--sand);
  border-color: var(--sand);
}

.pstat-n {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.7rem;
  color: var(--sand);
  line-height: 1;
}

.pstat-sand .pstat-n {
  color: var(--navy);
}

.pstat-d {
  font-size: 15px;
  color: rgba(255,255,255,0.88);
  line-height: 1.4;
  font-weight: 500;
}

.pstat-sand .pstat-d {
  color: rgba(21,60,95,0.92);
}

/* ── RESPONSIVE ── */

/* Tablet ancho — reducir canvas pero mantener 2 columnas */
@media (max-width: 1100px) {
  .hero-visual { flex: 0 0 340px; }
  #virusCanvas { width: 340px !important; height: 340px !important; }
  #hero { gap: 48px; }
}

/* Tablet — colapsar a columna */
@media (max-width: 900px) {
  #hero {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding-top: calc(var(--nav-h) + 48px);
    padding-bottom: 64px;
    gap: 32px;
    min-height: 100svh;
  }

  .hero-content { max-width: 600px; margin: 0 auto; }
  .hero-btns    { justify-content: center; }
  .hero-sub     { margin: 0 auto 28px; max-width: 520px; }

  .hero-visual  { flex: 0 0 auto; }
  #virusCanvas  { width: 260px !important; height: 260px !important; }

  .problem-2col { grid-template-columns: 1fr; gap: 32px; }
}

/* Mobile */
@media (max-width: 640px) {
  #hero {
    padding-top: calc(var(--nav-h) + 32px);
    padding-bottom: 48px;
    gap: 24px;
    min-height: auto;
  }

  #hero h1   { font-size: clamp(1.8rem, 8vw, 2.8rem); margin-bottom: 14px; }
  .hero-sub  { font-size: 0.93rem; margin-bottom: 24px; }
  .hero-label { font-size: 9px; letter-spacing: 0.18em; margin-bottom: 14px; }

  #virusCanvas { width: 180px !important; height: 180px !important; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns a { width: 100%; text-align: center; max-width: 300px; }

  .pstat-block { padding: 14px 16px; gap: 4px; }
  .pstat-n { font-size: 1.4rem; }
  .pstat-d { font-size: 12px; }
}

/* Small phones */
@media (max-width: 400px) {
  #hero h1 { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  #virusCanvas { width: 150px !important; height: 150px !important; }
  .pstat-n { font-size: 1.2rem; }
}
