/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; padding: 0; }

body {
  touch-action: none;
  overflow: hidden;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0029e2;
}

/* App */
#app {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Fondo base */
.page-bg {
  position: fixed;
  inset: 0;
  background: #0029e2;
  z-index: 0;
}

/* Overlay PNG */
.overlay-png {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;

  background-image: url("https://www.iaciberseguridad.com/wp-content/uploads/2022/08/cyber-security-17.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  opacity: 0.85;
}

/* Canvas: por encima de fondos, por debajo del contenido */
#canvas {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: transparent !important;

  mix-blend-mode: screen;
  filter: saturate(1.25) contrast(1.1) brightness(1.05);
}

/* Layout centrado con margen */
.layout{
  position: relative;
  z-index: 3;
  height: 100%;
  width: 100%;

  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;

  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 90px);
  gap: clamp(18px, 4vw, 64px);
}

/* Paneles */
.panel{ min-width: 0; }

/* Texto */
.left{
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.left h2, .left h4{
  margin: 0;
  padding: 0;
  color: #fff;
  text-shadow: 0 0 18px rgba(0,0,0,0.55);
}

.left h2{
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.left h4{
  font-size: clamp(12px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.25;
  opacity: 0.92;
  text-transform: none;
  max-width: 60ch;
}

/* Imagen derecha */
.right{
  display: flex;
  justify-content: center;
  align-items: center;
}

.side-img{
  width: min(520px, 42vw);
  max-height: 78vh;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 30px rgba(0,0,0,0.35));
}

/* Responsive */
@media (max-width: 900px){
  body{ overflow: auto; }
  #canvas, .page-bg, .overlay-png { position: absolute; }
  .layout{
    grid-template-columns: 1fr;
    max-width: 720px;
    padding: 30px 18px;
  }
  .left{
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }
  .side-img{
    width: min(520px, 90vw);
    max-height: none;
  }
}
