/* DANHERMES.DEV — basado en el sistema de diseño de danibons */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #060608;
  --bg-2: #0a0a0c;
  --surface: #111116;
  --surface-2: #1a1a20;
  --line: #2e2e38;
  --line-soft: rgba(255, 255, 255, .08);
  --text: #f4f4f2;
  --text-2: #c6c6ce;
  --muted: #9a9aa2;
  --muted-2: #6e6e76;
  --accent: #99ff99;
  --steel: #a9bdd1;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: SFMono-Regular, ui-monospace, Menlo, Consolas, monospace;
  --wrap: 1180px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 28px;
  border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.btn-light { background: var(--text); color: var(--bg); box-shadow: 0 12px 34px rgba(244, 244, 242, .14); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(244, 244, 242, .2); }
.btn-ghost { background: rgba(255, 255, 255, .04); color: var(--text-2); border-color: rgba(255, 255, 255, .14); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .26); color: var(--text); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navegación: barra completa, sin bordes redondeados ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(6, 6, 8, .86);
  border-bottom: 1px solid var(--line-soft);
  transition: background .4s var(--ease), border-color .4s var(--ease);
}
.nav.scrolled { background: rgba(6, 6, 8, .96); border-bottom-color: rgba(255, 255, 255, .12); }
.nav-in {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: 32px;
}
.logo {
  font-size: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
}
.logo b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 14px; color: var(--muted);
  transition: color .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

.lang {
  display: flex; padding: 4px; gap: 2px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px;
  background: rgba(255, 255, 255, .03);
}
.lang a {
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; color: var(--muted-2);
  transition: color .35s var(--ease), background .35s var(--ease);
}
.lang a:hover { color: var(--muted); }
.lang a[aria-current] { background: var(--surface-2); color: var(--text); }

.burger {
  display: none;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid rgba(255, 255, 255, .14); color: var(--text);
  cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; margin: 4px auto; background: currentColor; transition: transform .35s var(--ease), opacity .35s var(--ease); }
.nav.open .burger span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-in { padding-inline: 16px; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    padding: 8px 0 16px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
  }
  .nav.open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 16px 24px; font-size: 18px; color: var(--text-2); border-top: 1px solid var(--line-soft); }
}

/* ---------- Hero: ancho completo, sin bordes redondeados ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 72px) 0 140px;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 38%, rgba(153, 255, 153, .05), transparent 70%),
    linear-gradient(180deg, #000 0%, var(--bg) 55%, #2a2a2e 130%);
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 20%, #000 60%, transparent);
}
.hero-code {
  position: absolute; right: -2%; bottom: 4%;
  width: min(480px, 36vw);
  transform: perspective(1200px) rotateY(-16deg) rotateX(6deg);
  background: rgba(17, 17, 22, .9);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45);
  opacity: 0; animation: codeIn 2s var(--ease) .9s forwards;
  pointer-events: none;
}
.hero-code .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.hero-code .bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hero-code .bar span { margin-left: 8px; font: 11px var(--mono); color: var(--muted-2); }
.hero-code pre {
  margin: 0; padding: 16px 18px; min-height: 280px;
  font: 12.5px/1.7 var(--mono); color: var(--muted);
  white-space: pre-wrap;
}
.hero-code .k { color: var(--steel); }
.hero-code .s { color: var(--accent); }
.hero-code .c { color: var(--muted-2); }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 1px; vertical-align: -2px; background: var(--accent); animation: caret 1.1s steps(2) infinite; }

.hero-in { position: relative; z-index: 2; text-align: center; max-width: 1040px; padding-inline: 24px; }
.hero .badge {
  font-size: 12px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 32px;
}
.hero .badge .dot { display: inline-block; width: 6px; height: 6px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 2px; box-shadow: 0 0 9px rgba(153, 255, 153, .7); animation: pulse 2.2s ease-in-out infinite; }
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 6.4rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.045em;
}
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(24px); filter: blur(8px); animation: wordIn 1.05s cubic-bezier(.16, .84, .28, 1) forwards; animation-delay: calc(.26s + var(--i) * .055s); }
.dim { background: linear-gradient(90deg, #9a9aa2, #64646e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead {
  max-width: 620px; margin: 32px auto 0;
  font-size: 18px; line-height: 1.6; color: var(--muted);
}
.hero .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero .cta-note { margin-top: 20px; font-size: 13px; color: var(--muted-2); }
.hero .badge, .hero .lead, .hero .cta, .hero .cta-note, .scroll-cue { opacity: 0; animation: riseIn .95s cubic-bezier(.16, .84, .28, 1) forwards; }
.hero .badge { animation-delay: .1s; }
.hero .lead { animation-delay: .7s; }
.hero .cta { animation-delay: .85s; }
.hero .cta-note { animation-delay: 1s; }
.scroll-cue { animation-delay: 1.3s; }

.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 32px; z-index: 2; width: max-content; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; color: var(--muted-2);
}
.scroll-cue i { position: relative; width: 1px; height: 68px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -24px; width: 1px; height: 24px; background: var(--text-2); animation: cueRun 2.4s cubic-bezier(.6, 0, .4, 1) infinite; }

@media (max-width: 960px) {
  .hero-code { right: -18%; width: 80vw; bottom: 2%; opacity: 0; animation-name: codeInSoft; }
  .scroll-cue { display: none; }
  .hero { padding-bottom: 96px; }
}
.nav-links .only-mob { display: none; }
@media (max-width: 960px) {
  .nav-links .only-mob { display: block; color: var(--accent); }
}

/* ---------- Marquee de marcas ---------- */
.strip { border-block: 1px solid var(--line-soft); background: var(--bg-2); padding: 24px 0; overflow: hidden; }
.marquee { display: flex; width: max-content; animation: scroll 40s linear infinite; }
.strip:hover .marquee { animation-play-state: paused; }
.marquee-item {
  display: flex; align-items: center; gap: 16px;
  padding-inline: 32px;
  font-size: 15px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap;
}
.marquee-item::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); margin-left: 32px; }

/* ---------- Secciones ---------- */
section.sec { padding: 160px 0; position: relative; }
.zone-light { background: linear-gradient(180deg, var(--bg) 0%, #1e1e22 30%, #2a2a2e 60%, var(--bg) 100%); }
.sec-head { max-width: 840px; margin-bottom: 72px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: flex; align-items: center; gap: 16px; margin-bottom: 24px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--muted-2); }
.center .eyebrow { justify-content: center; }
.sec h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.04em;
}
.sec .lead { margin-top: 24px; max-width: 680px; font-size: 18px; line-height: 1.6; color: var(--muted); }
.center .lead { margin-inline: auto; }

/* Pilares (servicios) */
.pillars { border-top: 1px solid var(--line-soft); }
.pillar {
  display: grid; grid-template-columns: 120px 1fr 1fr; gap: 32px;
  padding: 40px 0; border-bottom: 1px solid var(--line-soft);
  transition: background .35s var(--ease);
}
.pillar .n { font: 600 14px var(--mono); color: var(--muted-2); padding-top: 8px; }
.pillar h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; }
.pillar p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.pillar .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pillar:hover .n { color: var(--accent); }
@media (max-width: 820px) {
  .pillar { grid-template-columns: 1fr; gap: 12px; }
}

.tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03);
  font-size: 12px; font-weight: 500; color: var(--text-2);
}

/* Stack */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.glass {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 18px 46px rgba(0, 0, 0, .45);
}
.card { padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: transform .42s var(--ease), border-color .35s var(--ease); }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, .2); }
.card .bar { width: 32px; height: 2px; background: var(--accent); margin-bottom: 8px; }
.card h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.card p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 960px) { .stack-grid { grid-template-columns: 1fr; } }

/* Marcas */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brand-group { padding: 32px; }
.brand-group .k { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted-2); }
.brand-group h3 { margin: 12px 0 24px; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.brand-group ul { list-style: none; margin: 0; padding: 0; }
.brand-group li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-top: 1px solid var(--line-soft);
  font-size: 16px; font-weight: 500; color: var(--text-2);
}
.brand-group li small { font-size: 12px; font-weight: 400; color: var(--muted-2); }
.brand-group li.more { color: var(--muted-2); font-weight: 400; font-size: 14px; }
@media (max-width: 960px) { .brands { grid-template-columns: 1fr; } }

/* Proceso */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { padding: 28px; border-top: 1px solid var(--line); }
.step .n { font: 600 13px var(--mono); color: var(--accent); }
.step h3 { margin: 16px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.step p { font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Sobre mí */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; align-items: center; }
.about h2 { margin-bottom: 32px; }
.about p { font-size: 18px; line-height: 1.7; color: var(--muted); }
.about p + p { margin-top: 20px; }
.about p strong { color: var(--text); font-weight: 600; }
.photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .1);
  background: linear-gradient(160deg, #1a1a20, #060608);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .45);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  font-size: 96px; font-weight: 800; letter-spacing: -.06em; color: #2e2e38;
}
.photo .ph small { font: 12px var(--mono); letter-spacing: 0; color: var(--muted-2); }
.photo.has-img .ph { display: none; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 48px; } .photo { max-width: 420px; } }

/* CTA final */
.final { padding: 160px 0; }
.final-card { max-width: 920px; margin-inline: auto; padding: 80px 48px; text-align: center; }
.final-card h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.final-card .lead { max-width: 560px; margin: 24px auto 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.final-card .eyebrow { justify-content: center; }
.final-card .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.contact-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 32px; font-size: 14px; color: var(--muted-2); }
.contact-list a { transition: color .35s var(--ease); }
.contact-list a:hover { color: var(--text); }
@media (max-width: 560px) { .final-card { padding: 56px 24px; } }

/* Footer */
footer.site { border-top: 1px solid var(--line-soft); padding: 56px 0 40px; }
.foot { display: grid; grid-template-columns: 1fr auto; gap: 40px; }
.foot .logo { color: var(--muted); }
.foot .tagline { margin-top: 16px; font-size: 15px; color: var(--muted-2); }
.socials { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.social {
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: var(--text-2);
  transition: transform .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease);
}
.social:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .26); color: var(--text); }
.social svg { width: 20px; height: 20px; }
.foot-links { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; font-size: 14px; color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line-soft); max-width: 680px; font-size: 12px; line-height: 1.7; color: var(--muted-2); }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: 13px; color: var(--muted-2); }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr; } .foot-links { align-items: flex-start; } }

/* ---------- Revelado al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- Keyframes ---------- */
@keyframes riseIn { 0% { opacity: 0; transform: translateY(18px); } 100% { opacity: 1; transform: none; } }
@keyframes wordIn { 100% { opacity: 1; transform: none; filter: blur(0); } }
@keyframes codeIn { 100% { opacity: .4; } }
@keyframes codeInSoft { 100% { opacity: .18; } }
@keyframes caret { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .4; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.25); } }
@keyframes cueRun { 0% { transform: translateY(0); } 70%, 100% { transform: translateY(92px); } }
@keyframes scroll { 100% { transform: translateX(-50%); } }

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