:root {
  --night: #101012;
  --ink: #f7f0e9;
  --red: #ff6458;
}
body { background: var(--night); color: var(--ink); }
header { background: #131315; border-bottom-color: #302529; }
.brand { letter-spacing: -.045em; }
.btn { border-radius: 3px; }
.btn.primary { background: #ca302b; border-color: #ed534a; }

.hero { min-height: min(690px, 85svh); background: #141012; }
.hero .art {
  inset: 0 0 0 26%;
  overflow: hidden;
  background: #151012;
}
.art img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 77% 43%;
}
.art::before,
.art::after {
  content: "";
  position: absolute;
  inset: -16%;
  pointer-events: none;
}
.art::before {
  background:
    radial-gradient(ellipse at 46% 59%, #ef362696 0, #aa1b2348 22%, transparent 56%),
    linear-gradient(110deg, transparent 40%, #ff7a4e60 50%, transparent 62%);
  mix-blend-mode: screen;
  opacity: .55;
  animation: light-drift 12s ease-in-out infinite alternate;
}
.art::after {
  background: url(papel.png);
  mix-blend-mode: screen;
  opacity: .32;
  animation: grain-drift 1.4s steps(4, end) infinite;
}
@keyframes light-drift {
  from { transform: translate(-18%, 9%) rotate(-9deg); opacity: .36; }
  to { transform: translate(16%, -9%) rotate(6deg); opacity: .76; }
}
@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(7px, -8px); }
  50% { transform: translate(-6px, 4px); }
  75% { transform: translate(3px, 9px); }
}
.hero::before {
  background:
    linear-gradient(90deg, #101012 18%, #101012 27%, #101012ed 37%, #10101278 49%, transparent 67%),
    linear-gradient(0deg, #101012, transparent 25%);
}
.copy { padding: 62px 0; }
h1 {
  font-family: "Arial Black", system-ui, sans-serif;
  font-size: clamp(58px, 7.6vw, 108px);
  font-weight: 900;
  letter-spacing: -.075em;
  line-height: .95;
}
h1 span { color: var(--red); }
.motto {
  color: #dacbc3;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #a45d55;
  width: fit-content;
}
.features { background: #151416; }
@media (max-width: 730px) {
  .hero { min-height: 0; }
  .hero .art { inset: 0 0 auto; height: clamp(295px, 77vw, 470px); }
  .art img { object-position: 80% 44%; }
  .hero::before {
    height: clamp(295px, 77vw, 470px);
    background: linear-gradient(0deg,#101012 0%,#101012a0 16%,transparent 43%);
  }
  .copy { padding: clamp(265px, 71vw, 436px) 0 36px; }
  h1 { font-size: clamp(53px, 11.8vw, 78px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .art::before, .art::after { animation: none; }
}

@font-face {
  font-family: "Noto Serif JP";
  src: url(noto-serif-jp-bold.woff) format("woff");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font: 700 20px/1 "Noto Serif JP", Georgia, serif;
  letter-spacing: .035em;
}
.brand-seal {
  display: block;
  width: auto;
  height: 40px;
  margin: -2px 0;
}
h1, .features h2, .demo h2 {
  font-family: "Noto Serif JP", Georgia, serif;
  font-weight: 700;
}
h1 {
  font-size: clamp(56px, 7.1vw, 103px);
  line-height: 1.02;
  letter-spacing: -.065em;
}
@media (max-width: 730px) {
  h1 { font-size: clamp(49px, 11.2vw, 76px); }
}
@media (max-width: 380px) {
  .brand { gap: 8px; font-size: 17px; }
  nav .btn { padding-inline: 10px; font-size: 12px; }
}

/* Lema bajo el titular */
.lema { margin: -6px 0 14px; font: 700 clamp(19px, 2vw, 24px)/1.3 "Noto Serif JP", Georgia, serif; color: #ffb3a8; letter-spacing: .01em; }

/* Funciones con capturas reales del portal */
.features .kicker + h2 { margin-top: 12px; }
.showcase { display: grid; gap: clamp(40px, 6vw, 72px); margin: 40px 0 48px; }
.showcase-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase-row:nth-child(even) > div { order: 2; }
.showcase-row h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.2 "Noto Serif JP", Georgia, serif; margin: 12px 0 12px; letter-spacing: -.01em; }
.showcase-row p { color: #c6bdb8; line-height: 1.65; max-width: 460px; }
.showcase-row figure { margin: 0; }
.showcase-row img { display: block; width: 100%; height: auto; border: 1px solid #3b302f; border-radius: 12px; box-shadow: 0 24px 60px #000a, 0 0 0 6px #ffffff06; }
.showcase-row figcaption { margin-top: 10px; color: #8f8580; font-size: 12px; text-align: right; }
.grid.more { margin-top: 0; }

/* Piloto y contacto */
.pilot { border-top: 1px solid #302725; background: linear-gradient(180deg, #151213, #0d0d0e); padding: clamp(56px, 8vw, 96px) 0; }
.pilot-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.pilot h2 { font: 700 clamp(29px, 4vw, 48px)/1.1 "Noto Serif JP", Georgia, serif; letter-spacing: -.04em; margin: 12px 0 14px; }
.pilot-inner > div > p { color: #c6bdb8; line-height: 1.65; max-width: 520px; }
.pilot-steps { list-style: none; counter-reset: paso; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.pilot-steps li { counter-increment: paso; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; align-items: baseline; }
.pilot-steps li::before { content: counter(paso); grid-row: span 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #cb2427; border-radius: 50%; color: #ff8b82; font-weight: 800; font-size: 14px; }
.pilot-steps span { color: #a9a09b; font-size: 14px; }
.pilot-card h3 { font: 700 22px/1.2 "Noto Serif JP", Georgia, serif; margin-bottom: 8px; }
.pilot-card p { color: #c6bdb8; line-height: 1.6; margin-bottom: 18px; }
.pilot-card .btn { width: 100%; }
.pilot-card .pilot-mail { margin: 12px 0 18px; text-align: center; color: #d8cbc5; font-size: 14px; user-select: all; }
.pilot-alt { display: block; text-align: center; color: #ff8b82; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 730px) {
  .showcase-row, .pilot-inner { grid-template-columns: 1fr; }
  .showcase-row:nth-child(even) > div { order: 0; }
  .showcase-row figcaption { text-align: left; }
}

/* Pie completo */
footer .foot { display: grid; grid-template-columns: 1fr 2fr; gap: 28px 48px; padding: 18px 0 6px; }
.foot-brand p { margin-top: 12px; color: #a9a09b; font: 700 15px/1.4 "Noto Serif JP", Georgia, serif; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.foot-links div { display: grid; gap: 8px; align-content: start; }
.foot-links strong { color: #f7f0e9; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.foot-links a { color: #b6aaa6; font-size: 14px; overflow-wrap: anywhere; }
.foot-links a:hover { color: #fff; }
.foot-copy { grid-column: 1 / -1; border-top: 1px solid #2a2324; padding-top: 16px; color: #7d7470; font-size: 12.5px; }
@media (max-width: 730px) {
  footer .foot, .foot-links { grid-template-columns: 1fr; }
}
