/* AfriD Digital Group — hoja de estilos del sitio
   Paletas intercambiables: el atributo data-theme del <html> manda. */

/* ---------- paleta ----------
   El magenta es el color elegido por el cliente y es el que manda.
   Las otras paletas quedan abajo por si algun dia se quiere cambiar:
   se activan poniendo data-theme en la etiqueta <html>. */
:root,
html[data-theme="magenta"] {
  --bg: #0a080c;
  --bg-2: #100c13;
  --text: #f3eff5;
  --muted: #8f8496;
  --line: #241d29;
  --accent: #ff2d78;
  --on-accent: #17050d;
  --shadow: rgba(0, 0, 0, 0.5);
}

html[data-theme="ambar"] {
  --bg: #0b0b0d;
  --bg-2: #0f0f12;
  --text: #f2f2f2;
  --muted: #8d8d96;
  --line: #22222a;
  --accent: #e8a317;
  --on-accent: #17130a;
  --shadow: rgba(0, 0, 0, 0.5);
}

html[data-theme="esmeralda"] {
  --bg: #07100c;
  --bg-2: #0a1712;
  --text: #eef2f0;
  --muted: #7f948b;
  --line: #17261f;
  --accent: #18c37d;
  --on-accent: #04130c;
  --shadow: rgba(0, 0, 0, 0.5);
}

html[data-theme="cobre"] {
  --bg: #100c0a;
  --bg-2: #16110e;
  --text: #f4efe9;
  --muted: #97887e;
  --line: #2a211c;
  --accent: #e2643c;
  --on-accent: #180b06;
  --shadow: rgba(0, 0, 0, 0.5);
}

html[data-theme="hueso"] {
  --bg: #f4f1ea;
  --bg-2: #eceadf;
  --text: #16161a;
  --muted: #62605a;
  --line: #d8d3c6;
  --accent: #ff5a1f;
  --on-accent: #fff8f3;
  --shadow: rgba(22, 22, 26, 0.12);
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease;
}

img { max-width: 100%; display: block; }

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

.mono {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
}

.wrap {
  width: min(1300px, 100% - 48px);
  margin-inline: auto;
}

.label {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 20px;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
}

section { border-top: 1px solid var(--line); }

/* ---------- cabecera ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 19px;
}

.brand .mark { width: 30px; height: 30px; flex: none; }
.brand .mark .tri { fill: var(--accent); }
.brand .mark .bar { stroke: var(--bg); }
.brand .soft { color: var(--muted); font-weight: 500; }

.nav {
  display: flex;
  gap: 26px;
  margin-inline: auto;
}

.nav a {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.lang {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text);
  background: none;
  border: 1px solid var(--line);
  padding: 10px 13px;
  cursor: pointer;
  flex: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.lang:hover { border-color: var(--accent); color: var(--accent); }

.burger {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 18px;
  height: 1px;
  margin: 4px auto;
  background: currentColor;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  transition: filter 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:hover { filter: brightness(1.12); transform: translateY(-1px); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn.small { padding: 13px 20px; }

/* ---------- hero ---------- */
.hero { border-top: 0; padding: clamp(64px, 12vh, 130px) 0 clamp(48px, 8vh, 90px); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
  min-height: 58vh;
}

.hero h1 { font-size: clamp(52px, 9.2vw, 132px); }
.hero h1 .hit { color: var(--accent); display: block; }
.hero h1 span { display: block; }

.hero p {
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 46ch;
  margin: 0 0 32px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--muted);
  margin-top: clamp(40px, 7vh, 80px);
}

.hero-foot .mono { font-size: 11px; }

/* ---------- cinta ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--bg-2);
}

.ticker-row {
  display: flex;
  width: max-content;
  animation: slide 38s linear infinite;
}

.ticker-row span {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 28px;
}

.ticker-row span.sep { color: var(--accent); padding: 0; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-row { animation: none; }
}

/* ---------- bloques ---------- */
.block { padding: clamp(72px, 13vh, 150px) 0; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 96px);
}

.split h2 { font-size: clamp(34px, 4.4vw, 62px); }

.split p {
  color: var(--muted);
  font-size: clamp(16px, 1.15vw, 18px);
  margin: 0 0 22px;
  max-width: 54ch;
}

.split p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(34px, 5.4vw, 76px);
  text-align: center;
  margin: 0 auto clamp(48px, 7vh, 88px);
  max-width: 18ch;
}

.lead.wide { max-width: 24ch; }

/* ---------- metodo ---------- */
.rule-dash {
  height: 1px;
  background: repeating-linear-gradient(to right, var(--line) 0 8px, transparent 8px 16px);
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}

.step {
  padding: 34px 26px 42px;
  border-left: 1px solid var(--line);
}

.step:first-child { border-left: 0; }

.step .num {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}

.step h3 { font-size: 21px; letter-spacing: -0.01em; margin-bottom: 12px; }

.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- capacidades ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}

.card {
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 210px;
  transition: background-color 0.25s ease;
}

.card:nth-child(2n) { border-right: 0; }
.card:nth-child(n + 3) { border-bottom: 0; }
.card:hover { background: var(--bg-2); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.card h3 { font-size: clamp(22px, 2vw, 29px); }

.card .num {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  color: var(--accent);
}

.card p { color: var(--muted); margin: 0; max-width: 48ch; }

.after-cards { margin-top: 36px; }

/* ---------- nosotros ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 48px;
}

.fact { background: var(--bg); padding: 32px 28px; }
.fact h3 { font-size: 19px; margin-bottom: 10px; }
.fact p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- cierre ---------- */
.close { padding: clamp(80px, 14vh, 160px) 0; }
.close .wrap { position: relative; }

.close .corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 1px solid var(--accent);
}

.close .corner.tl { top: -40px; left: 0; border-right: 0; border-bottom: 0; }
.close .corner.br { bottom: -40px; right: 0; border-left: 0; border-top: 0; }

.close h2 {
  font-size: clamp(34px, 5.2vw, 72px);
  max-width: 20ch;
  margin-bottom: 22px;
}

.close p { color: var(--muted); margin: 0 0 34px; max-width: 52ch; }

.close-cta {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
}

.addr {
  font-style: normal;
  color: var(--muted);
  line-height: 1.8;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.addr .mono {
  display: block;
  color: var(--accent);
  margin-bottom: 6px;
}

.foot-addr {
  border-left: 0;
  padding-left: 0;
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- pie ---------- */
.foot {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding: 64px 0 28px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.foot-grid p { color: var(--muted); font-size: 15px; margin: 18px 0 0; max-width: 34ch; }

.foot h4 {
  font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 20px;
}

.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot ul a { color: var(--text); font-size: 15px; }
.foot ul a:hover { color: var(--accent); }

.foot-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.foot-bar .mono { font-size: 11px; }

/* ---------- animacion de entrada ---------- */
.rise {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .step:nth-child(2n + 1) { border-left: 0; }
  .facts { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .wrap { width: min(1300px, 100% - 32px); }

  .nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 20px;
  }

  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
  .burger { display: block; order: 3; }
  .head-in .btn { display: none; }
  .head-in { position: relative; }

  .hero-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); }
  .card:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; }
}
