/* ==========================================================================
   AXON Studio — hoja de estilos
   ========================================================================== */

:root {
  --blue: #1dacff;
  --blue-deep: #1a73e8;
  --black: #000;
  --bg: #050505;
  --bg-alt: #0b0b0d;
  --card: #121215;
  --card-hover: #18181c;
  --border: #222228;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --radius: 16px;
  --font-main: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Syne', system-ui, sans-serif;
  --container: 1200px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  font-family: var(--font-main);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

::selection { background: var(--blue); color: var(--black); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--blue); color: var(--black); font-weight: 600;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 1rem;
}
.section-title { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 680px; }
.section-head { margin-bottom: 3.5rem; }
.section-head.center { text-align: center; }
.section-head.center .section-lead { margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.75rem; border-radius: 999px; font: 600 1rem var(--font-main);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--black); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px var(--blue); }
.btn-ghost { border-color: #3f3f46; color: var(--text); background: rgba(255,255,255,.03); }
.btn-ghost:hover { border-color: var(--blue); }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  background: rgba(5,5,5,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links .btn { color: var(--black); padding: .6rem 1.25rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: .5rem; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 1rem 1.5rem 2rem; background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav-links.open { transform: none; visibility: visible; }
  .nav-links a { padding: 1rem 0; border-bottom: 1px solid var(--border); font-size: 1.1rem; }
  .nav-links .btn { margin-top: 1.25rem; border: 0; padding: .9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--nav-h) + 4rem) 0 5rem; overflow: hidden; isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 55%, rgba(0,0,0,.35) 100%),
              linear-gradient(0deg, var(--bg) 0%, transparent 30%);
}
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); max-width: 15ch; margin-bottom: 1.5rem; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #d4d4d8; max-width: 600px; margin-bottom: 2.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

#particles { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; pointer-events: none; }

.page-hero { padding: calc(var(--nav-h) + 5rem) 0 4rem; position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.75rem); max-width: 18ch; margin-bottom: 1.25rem; }
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 640px; }

/* ---------- Tarjetas genéricas ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem; transition: border-color .25s, background .25s, transform .25s;
}
.card:hover { border-color: #33333b; background: var(--card-hover); }
a.card { display: block; text-decoration: none; }
a.card:hover { transform: translateY(-4px); border-color: rgba(29,172,255,.45); }
.card h3 { font-size: 1.35rem; margin-bottom: .75rem; }
.service-card h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: .75rem; }
.card p { color: var(--muted); }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(29,172,255,.1); color: var(--blue); margin-bottom: 1.5rem;
}
.icon svg { width: 26px; height: 26px; }

.check-list { margin-top: 1.25rem; display: grid; gap: .6rem; }
.check-list li { display: flex; gap: .65rem; color: #d4d4d8; font-size: .98rem; }
.check-list li::before {
  content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); margin-top: .6rem;
}

.service-card { display: flex; flex-direction: column; overflow: hidden; }
.service-media { margin: -2rem -2rem 1.75rem; aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--border); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service-card:hover .service-media img { transform: scale(1.03); }
.service-card .for { margin-top: auto; padding-top: 1.5rem; font-size: .9rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 1.5rem; }
.service-card .for strong { color: var(--text); }
.badge {
  align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: 1.25rem;
  background: rgba(29,172,255,.12); color: var(--blue); border: 1px solid rgba(29,172,255,.25);
}

/* ---------- Proyectos ---------- */
.project-card {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .25s, transform .25s;
}
.project-card:hover { border-color: rgba(29,172,255,.5); transform: translateY(-4px); }
.project-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: #0d0d10; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-body { padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.project-body h3 { font-size: 1.5rem; }
.project-body p { color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  font-size: .78rem; padding: .25rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: #d4d4d8;
}
.project-more { margin-top: auto; padding-top: .5rem; color: var(--blue); font-weight: 600; display: inline-flex; gap: .4rem; align-items: center; }
.project-more svg { width: 18px; height: 18px; transition: transform .2s; }
.project-card:hover .project-more svg { transform: translateX(4px); }

/* ---------- Franja de logos ---------- */
.logo-strip { background: var(--bg-alt); border-block: 1px solid var(--border); padding: 2.25rem 0; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
/* La pista tiene 8 grupos iguales; moverla la mitad de su ancho hace un bucle sin corte. */
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.logo-list { display: flex; align-items: center; gap: 6rem; padding-right: 6rem; flex-shrink: 0; }
.logo-list a { display: block; opacity: .6; transition: opacity .2s; }
.logo-list a:hover, .logo-list a:focus-visible { opacity: 1; }
.logo-list img { width: auto; max-width: none; }
.logo-dulce { height: 48px; }
.logo-pointick { height: 46px; }
@media (max-width: 600px) { .logo-list { gap: 3.5rem; padding-right: 3.5rem; } .logo-dulce { height: 38px; } .logo-pointick { height: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none !important; width: auto; justify-content: center; }
  .logo-list[aria-hidden="true"] { display: none; }
  .logo-list { padding-right: 0; flex-wrap: wrap; justify-content: center; }
}

/* ---------- Proceso REVELA ---------- */
.steps { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); counter-reset: step; }
.step { display: flex; gap: 1.25rem; padding: 1.5rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.step-letter {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font: 800 1.35rem var(--font-display); color: var(--black);
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .97rem; }

/* ---------- Split / about ---------- */
.split { display: grid; gap: 4rem; align-items: center; grid-template-columns: 1fr 1fr; }
.split-media img { border-radius: var(--radius); border: 1px solid var(--border); }
.split p + p { margin-top: 1rem; }
.split p { color: #d4d4d8; font-size: 1.08rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.stat { border-left: 2px solid var(--blue); padding-left: 1rem; }
.stat strong { display: block; font: 700 1.6rem var(--font-display); }
.stat span { color: var(--muted); font-size: .9rem; }

/* ---------- CTA ---------- */
.cta-band {
  border-radius: 24px; padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center;
  background: radial-gradient(ellipse at top, rgba(29,172,255,.18), transparent 60%), var(--card);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.75rem); margin-bottom: 1rem; }
.cta-band p { color: var(--muted); max-width: 560px; margin: 0 auto 2rem; font-size: 1.1rem; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .75rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.25rem 1.5rem; font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; gap: 1rem; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.5rem 1.5rem; color: var(--muted); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 3rem; } }
.contact-list { display: grid; gap: 1.25rem; margin-top: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: center; text-decoration: none; }
.contact-item .icon { margin: 0; width: 46px; height: 46px; }
.contact-item small { display: block; color: var(--muted); font-size: .85rem; }
.contact-item span { font-weight: 600; }

.form { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1.25rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 500; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: #0a0a0c;
  border: 1px solid #2a2a31; border-radius: 10px; padding: .85rem 1rem; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.consent { display: flex; gap: .65rem; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: .3rem; accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.consent a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .95rem; min-height: 1.5em; }
.form-status.ok { color: #4ade80; }
.form-status.error { color: #f87171; }

/* ---------- Página de proyecto ---------- */
.project-hero { padding: calc(var(--nav-h) + 3.5rem) 0 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .9rem; color: var(--muted); margin-bottom: 2rem; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.project-hero h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); margin-bottom: 1rem; }
.project-hero .lead { font-size: 1.25rem; color: #d4d4d8; max-width: 720px; }
.project-cover { margin-top: 3rem; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); }
.project-cover img { width: 100%; }

.project-layout { display: grid; grid-template-columns: 300px 1fr; gap: 4rem; align-items: start; }
@media (max-width: 960px) { .project-layout { grid-template-columns: 1fr; gap: 2.5rem; } }
.project-meta { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .project-meta { position: static; } }
.project-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .25rem; }
.project-meta dd { font-weight: 600; }
.project-meta .btn { width: 100%; }
.type-pill {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .85rem;
  padding: .35rem .85rem; border-radius: 999px; margin-bottom: 1.25rem;
  border: 1px solid rgba(29,172,255,.3); background: rgba(29,172,255,.1); color: var(--blue);
}
.type-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.case-section + .case-section { margin-top: 3.5rem; }
.case-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.case-section p { color: #d4d4d8; font-size: 1.08rem; }
.case-section p + p { margin-top: 1rem; }
.case-section .check-list { margin-top: 1.5rem; }

.gallery { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-top: 3.5rem; }
.gallery figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { padding: .9rem 1.1rem; font-size: .9rem; color: var(--muted); }
.gallery.wide { grid-template-columns: 1fr; }
.gallery .span-2 { grid-column: 1 / -1; }

.project-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-nav a { text-decoration: none; padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); transition: border-color .2s; }
.project-nav a:hover { border-color: var(--blue); }
.project-nav small { color: var(--muted); display: block; margin-bottom: .25rem; }
.project-nav strong { font-family: var(--font-display); font-size: 1.25rem; }
.project-nav .next { text-align: right; grid-column: 2; }

/* ---------- Texto legal ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: #d4d4d8; }
.prose p + p { margin-top: .9rem; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-top: .75rem; display: grid; gap: .4rem; }
.prose a { color: var(--blue); }
.prose h2[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
.prose strong { color: var(--text); }
.prose-summary { margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(29,172,255,.3); border-radius: var(--radius); background: rgba(29,172,255,.06); }
.prose-summary h2 { margin-top: 0; }
.prose-toc { margin-top: 2rem; padding: 1.5rem 1.75rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
.prose-toc ol { padding-left: 1.25rem; columns: 2; column-gap: 2.5rem; }
.prose-toc li { margin-bottom: .4rem; break-inside: avoid; }
.prose-toc a { text-decoration: none; }
.prose-toc a:hover { text-decoration: underline; }
@media (max-width: 600px) { .prose-toc ol { columns: 1; } }
.pendiente { background: #fde047; color: #000; padding: 0 .25rem; border-radius: 3px; font-weight: 600; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 4rem 0 2rem; background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 300px; }
.footer h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 1rem; font-family: var(--font-main); }
.footer li + li { margin-top: .6rem; }
.footer a { text-decoration: none; color: #d4d4d8; }
.footer a:hover { color: var(--blue); }
.socials { display: flex; gap: .75rem; margin-top: 1.5rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; transition: border-color .2s; }
.socials a:hover { border-color: var(--blue); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .9rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(37,211,102,.6);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animaciones (solo si hay JS) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .1s; }
.js .reveal.d2 { transition-delay: .2s; }
.js .reveal.d3 { transition-delay: .3s; }

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