:root {
  /* --- paleta --- */
  --bg: #000000;
  --bg-raised: #0a0a0a;
  --ink: #f2f2ee;          /* blanco roto, contraste alto */
  --ink-dim: #b9b9b3;      /* gris claro secundario */
  --line: #c4c4c4;
  --red: #ff3737;
  --red-dim: #7a1414;
  --orange: #ff7a1a;
  --orange-dim: #7a3c0d;

  --glow-red: 0 0 18px rgba(255, 43, 43, 0.55);
  --glow-orange: 0 0 18px rgba(255, 122, 26, 0.5);
  --grad-hot: linear-gradient(90deg, var(--red), var(--orange));

  --font-mono: "Handjet", sans-serif;

   --font-display: 'Space Grotesk', sans-serif;

  --container: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(196, 196, 196, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 196, 196, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 75%);
  contain: strict;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.5;
  contain: strict;
}

main, header, footer { position: relative; z-index: 1; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}

h3{
  margin: 5px 0px 7px 0px;
}

h4{
  font-family: var(--font-mono);
}

p { color: var(--ink-dim); margin: 0; }

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; margin: 0; padding: 0; }

::selection {
  background: var(--red);
  color: #000;
}


a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}


.section-eyebrow,
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: var(--glow-orange);
  display: inline-block;
  margin-bottom: 1rem;
}

.section-eyebrow::before,
.hero-eyebrow::before {
  color: var(--red);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.02rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(196, 196, 196, 0.18);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.logo span {
  color: var(--red);
  text-shadow: var(--glow-red);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--grad-hot);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.title{
  color: var(--orange);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: capitalize;
  padding: 0.85rem 1.7rem;
  border-radius: 2px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--orange);
  color: #0a0a0a;
  font-weight: 700;
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 122, 26, 0.6), 0 0 30px rgba(67, 66, 66, 0.65);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  box-shadow: var(--glow-orange);
}


.hero-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7rem 2rem 6rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 1.4rem;
}

.hero-content h1 span {
  display: block;
  background: var(--orange);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  font-size: 1.08rem;
  max-width: 46ch;
  margin-bottom: 2.2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}


.hero-visual {
  border-radius: 5px;
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(196, 196, 196, 0.35);
  background:
    linear-gradient(180deg, rgba(255, 43, 43, 0.06), transparent 60%),
    repeating-linear-gradient(0deg, rgba(196, 196, 196, 0.06) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(196, 196, 196, 0.06) 0 1px, transparent 1px 26px),
    #060606;
  overflow: hidden;
}

.hero-visual::before {
  content: "SYS READY";
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--orange);
  text-shadow: var(--glow-orange);
}

.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 40%;
  top: -40%;
  background: linear-gradient(180deg, transparent, rgba(255, 122, 26, 0.18), transparent);
  animation: scan 5s linear infinite;
}

@keyframes scan {
  0% { top: -40%; }
  100% { top: 100%; }
}

.capabilities-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2rem;
}



.services-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


.service-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid rgba(196, 196, 196, 0.22);
  padding: 1.8rem 1.6rem 2rem;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

.service-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 26, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), var(--glow-orange);
}

.service-card-header {
  margin-bottom: 1.4rem;
}

.service-number {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--red);
  text-shadow: var(--glow-red);
}

.service-card-content h3 {
  font-size: 1.5rem;
  font-family: var(--font-mono);

  margin-bottom: 0.6rem;
}

.service-card-content p {
  font-size: 0.94rem;
}

.service-card-visual {
  margin-top: 1.4rem;
  height: 2px;
  background: linear-gradient(90deg, var(--red), var(--orange), transparent);
  opacity: 0.7;
}

/* ==========================================================
   SOBRE NOSOTROS
   ========================================================== */

.about-section {
  max-width: var(--container);
  margin: 0 auto;
  padding: 6rem 2rem;
  border-top: 1px solid rgba(196, 196, 196, 0.15);
}

.about-content {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
}

/* ==========================================================
   CONTACTO
   ========================================================== */

.contact-section {
  position: relative;
  max-width: var(--container);
  margin: 4rem auto;
  padding: 5rem 2rem;
  text-align: center;
  border: 1px solid rgba(255, 122, 26, 0.3);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 43, 43, 0.12), transparent 60%),
    var(--bg-raised);
  overflow: hidden;
}

.contact-content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 1rem 0 2rem;
}

.bussines-ideas {
  display: block;
  width: 60px;
  height: 2px;
  margin: 0 auto;
  background: var(--grad-hot);
  box-shadow: var(--glow-red);
}

/* ==========================================================
   FAQ
   ========================================================== */

.faq-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(196, 196, 196, 0.18);
  border: 1px solid rgba(196, 196, 196, 0.18);
}

.faq-list > * {
  background: var(--bg);
  padding: 1.2rem 1.4rem;
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
}

.faq-list summary:hover {
  color: var(--orange);
}

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

.site-footer {
  border-top: 1px solid rgba(196, 196, 196, 0.18);
  padding: 2.4rem 2rem;
}

.footer-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-container p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-dim);
}


@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 4.5rem;
  }

  .hero-visual {
    aspect-ratio: 16 / 9;
  }

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

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .nav-container,
  .hero-section,
  .capabilities-section,
  .services-section,
  .about-section,
  .contact-section,
  .faq-section,
  .footer-container {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}


.sequence-section {
    height: 500vh;
    contain: layout style;
}

.canvas-container {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;

    /* Centra el canvas horizontal y verticalmente */
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(0); /* Fuerza hardware acceleration */
}

#sequence-canvas {
    max-width: 900px;
    max-height: 100vh;
    width: 100%;
    height: 100%;

    /* object-fit asegura que el renderizado de la imagen escale bien dentro del canvas */
    object-fit: contain;
    z-index: 1;
    will-change: contents;
}

/* CAPA SUPERIOR */
.text-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 25%;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.text-content {
    text-align: center;
    max-width: 700px;
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: var(--font-display);
}

.text-content.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.text-content p {
    font-size: 1.3rem;
}

/* RESPONSIVE: Oculta el texto en pantallas grandes (min-width: 1024px) */



.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px; /* Espacio entre la imagen y el botón */
  padding: 20px 20px 20px 20px;
  margin: 5%;

}


#sequence-description{
  font-family: var(--font-mono);
  color: var(--red);
  text-shadow: var(--glow-red);
  font-size: 40px;
  filter: blur(1px);
}


/* ==========================================================
   COLABORADORES / FUNDADORES
   ========================================================== */

.people-card {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 2rem;
  background: var(--bg-raised);
  border: 1px solid rgba(196, 196, 196, 0.22);
  position: relative;
}

/* Detalle superior izquierdo */
.people-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
}

/* Detalle inferior derecho */
.people-card::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 18px;
  height: 18px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
}

.people-card h3 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-align: center;
  color: var(--ink);
  margin: 0 0 2.5rem;
  text-transform: uppercase;
}

/* Contenedor de colaboradores */
.colaborators {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: rgba(196, 196, 196, 0.18);
  border: 1px solid rgba(196, 196, 196, 0.18);
}

/* Cada colaborador */
.colaborator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.15rem 1.4rem;
  background: var(--bg);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.colaborator:hover {
  background: var(--bg-raised);
}

/* Nombre */
.name-dev {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

/* Enlace al portafolio */
.colaborator a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-dim);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.colaborator a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--grad-hot);
  transition: width 0.25s ease;
}

.colaborator a:hover {
  color: var(--orange);
}

.colaborator a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 600px) {
  .people-card {
    margin: 0 1.2rem;
    padding: 2.2rem 1rem;
  }

  .colaborator {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
