/* css/layout.css — Kronos Code Studio */

body {
  font-family: var(--font-raj);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

/* ── Ambient background ── */
.bg-grid {
  position: fixed; inset: 0; z-index: var(--z-bg);
  pointer-events: none;
  background-image:
    linear-gradient(rgba(192,24,42,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,24,42,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
}

.bg-blob {
  position: fixed; border-radius: 50%;
  filter: blur(130px); pointer-events: none;
  z-index: var(--z-bg); opacity: 0.14;
}
.bg-blob--red  { width: 700px; height: 700px; background: var(--red);  top: -250px; right: -200px; }
.bg-blob--gold { width: 600px; height: 600px; background: var(--gold); bottom: -220px; left: -150px; }

@media (max-width: 768px) {
  /* Blur() de este tamaño es muy pesado para GPUs de celulares flojos.
     Lo bajamos solo en mobile — sigue viéndose el resplandor, pero
     el navegador tiene que trabajar mucho menos para pintarlo. */
  .bg-blob { filter: blur(60px); }
}

.bg-scanlines {
  position: fixed; inset: 0; z-index: var(--z-bg);
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.025) 2px, rgba(0,0,0,0.025) 4px
  );
}

/* ── Containers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--sp-8);
}
.container--narrow { max-width: 700px; }
.container--about  { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-20); align-items: center; }

/* ── Section base ── */
.section {
  position: relative; z-index: var(--z-base);
  padding: var(--sp-24) var(--sp-8);
}
.section--dark     { background: var(--bg-2); border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.section--grid-bg  { background: var(--bg-3); border-top: 1px solid var(--card-border); }

.section__title {
  font-family: var(--font-orb);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700; letter-spacing: -0.01em;
  margin-bottom: var(--sp-3);
  line-height: 1.15;
}
.section__intro {
  font-size: 0.97rem; color: var(--text-2);
  max-width: 520px; margin-bottom: var(--sp-12);
  line-height: 1.8;
}

.highlight {
  color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow), 0 0 48px var(--gold-glow-sm);
}

/* ── Eyebrow ── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--red);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
  text-shadow: 0 0 10px var(--red-glow-sm);
  display: flex; align-items: center; gap: var(--sp-2);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  padding: 0.9rem 2rem;
  transition: background var(--mid), box-shadow var(--mid), color var(--mid);
  cursor: pointer; border: none;
}
.btn--primary {
  background: var(--red); color: #fff;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  box-shadow: 0 0 20px rgba(192,24,42,0.35);
}
.btn--primary:hover {
  background: var(--red-mid);
  box-shadow: 0 0 40px rgba(192,24,42,0.65);
}
.btn--ghost {
  color: var(--gold); background: transparent;
  border-bottom: 1px solid rgba(255,215,0,0.35);
  padding-left: 0; padding-right: 0;
  clip-path: none;
}
.btn--ghost:hover {
  border-color: var(--gold);
  text-shadow: 0 0 12px var(--gold-glow);
}
.btn--send {
  width: 100%; justify-content: center;
  background: transparent; color: var(--red);
  border: 1px solid var(--red);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  text-shadow: 0 0 8px var(--red-glow-sm);
  box-shadow: 0 0 14px rgba(192,24,42,0.12), inset 0 0 14px rgba(192,24,42,0.04);
  margin-top: var(--sp-2);
}
.btn--send:hover {
  background: rgba(192,24,42,0.12); color: #fff;
  box-shadow: 0 0 30px rgba(192,24,42,0.45), inset 0 0 20px rgba(192,24,42,0.08);
}
.btn__arrow { flex-shrink: 0; transition: transform var(--fast); }
.btn--send:hover .btn__arrow { transform: translateX(4px); }

/* wa-btn defined in extras.css */

/* ── Footer ── */
.footer {
  position: relative; z-index: var(--z-base);
  padding: var(--sp-6) var(--sp-8);
  border-top: 1px solid var(--card-border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--sp-4);
}
.footer__left  { display: flex; flex-direction: column; gap: var(--sp-1); }
.footer__logo  { font-family: var(--font-orb); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; }
.footer__k     { color: var(--red); text-shadow: 0 0 10px var(--red-glow-sm); }
.footer__c     { color: var(--gold-dark); text-shadow: 0 0 10px var(--gold-glow-sm); }
.footer__tagline { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-3); letter-spacing: 0.1em; }
.footer__owner {
  font-family: var(--font-raj); font-size: 0.72rem; font-weight: 600;
  color: var(--gold-dark); letter-spacing: 0.04em; margin-top: var(--sp-1);
}
.footer__owner-role {
  font-family: var(--font-mono); font-weight: 400; font-size: 0.62rem;
  color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase;
}
.footer__right { display: flex; align-items: center; gap: var(--sp-3); }
.footer__link  { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-3); text-decoration: none; letter-spacing: 0.06em; transition: color var(--fast); }
.footer__link:hover { color: var(--gold); text-shadow: 0 0 8px var(--gold-glow); }
.footer__sep   { color: var(--text-3); font-size: 0.65rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .container--about { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: var(--sp-16) var(--sp-4); }
  .container { padding: 0 var(--sp-4); }
}
