/* ================================================================
   moscode — style.css
   Identidad visual oficial · Tinta / Papel / Verde señal
   ================================================================ */

/* ── Fonts ───────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&display=swap');

/* ── Design tokens ───────────────────────────────────────────── */
:root {
  /* Brand */
  --ink:      #18191C;
  --signal:   #0E9F6E;
  --paper:    #F7F6F2;
  --gray:     #71757C;
  --line:     #ECEAE3;
  --white:    #FFFFFF;

  /* Surfaces */
  --bg:       var(--paper);
  --surface:  var(--white);
  --surface-2: #F0EFE9;

  /* Text */
  --text:       var(--ink);
  --text-2:     #2C2D30;
  --text-muted: var(--gray);
  --text-subtle: #9B9EA4;

  /* Footer dark */
  --dark:   var(--ink);
  --dark-2: #222326;

  /* Legacy aliases (keep for JS usage) */
  --border:      var(--line);
  --border-dark: #D8D5CD;
  --green:       var(--signal);

  /* Typography */
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  /* Shadows — neutral, no color cast */
  --shadow-sm: 0 1px 3px rgba(24,25,28,.06), 0 2px 6px rgba(24,25,28,.04);
  --shadow-md: 0 4px 14px rgba(24,25,28,.08), 0 8px 24px rgba(24,25,28,.06);
  --shadow-lg: 0 8px 28px rgba(24,25,28,.10), 0 16px 48px rgba(24,25,28,.08);

  /* Radii */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--signal); border-radius: 3px; }

/* ── Selection ───────────────────────────────────────────────── */
::selection { background: rgba(14,159,110,.15); color: var(--signal); }

/* ── Utilities ───────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

.grad-text { color: var(--signal); }

.glass {
  background: rgba(247,246,242,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
}

/* ── Tag (eyebrow label) ─────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}
.tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--signal);
  border-radius: 1px;
}

/* ── Section headings ────────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

/* Primary — tinta sólida */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--signal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary — ghost */
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline — acento */
.btn-outline {
  background: transparent;
  color: var(--signal);
  border: 1.5px solid var(--signal);
}
.btn-outline:hover {
  background: var(--signal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ── Scroll reveal ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ════════════════════════════════════════════════════════════════
   NAV
   ════════════════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(247,246,242,.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo texto */
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-prompt {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--signal);
  line-height: 1;
}
.logo-word {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
  line-height: 1;
}

/* Legacy image refs (por si se siguen usando en algún lado) */
.nav-logo-h   { height: 36px; width: auto; display: block; object-fit: contain; }
.nav-logo-sq  { height: 36px; width: 36px; object-fit: contain; }
.nav-logo-text { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 600; color: var(--ink); }
.nav-mobile-logo { height: 40px; width: auto; object-fit: contain; margin-bottom: 24px; }

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--gray);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--ink); background: rgba(24,25,28,.05); }

/* Badge */
.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(14,159,110,.08);
  border: 1px solid rgba(14,159,110,.2);
  color: var(--signal);
  white-space: nowrap;
}
.nav-badge.busy {
  background: rgba(239,68,68,.07);
  border-color: rgba(239,68,68,.2);
  color: #DC2626;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}
.nav-badge.busy .badge-dot { background: #EF4444; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: var(--transition);
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(247,246,242,.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 80px 32px 32px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--ink);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  width: 100%;
  text-align: center;
}
.nav-mobile a:hover { color: var(--signal); background: rgba(14,159,110,.06); }

/* Mobile logo */
.nav-mobile-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* Subtle dot grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(24,25,28,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Glows — eliminados; divs quedan pero sin fondo */
.hero-glow-1,
.hero-glow-2 { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  background: rgba(14,159,110,.08);
  border: 1px solid rgba(14,159,110,.18);
  color: var(--signal);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.hero-title .hero-accent {
  color: var(--signal);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.75;
}

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-subtle);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  z-index: 1;
  animation: bounce-fade 2s ease-in-out infinite;
}
@keyframes bounce-fade {
  0%,100% { opacity: .5; transform: translateX(-50%) translateY(0); }
  50%      { opacity: 1;  transform: translateX(-50%) translateY(-6px); }
}

/* ── Hero terminal visual ─────────────────────────────────────── */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-terminal {
  width: 100%;
  max-width: 400px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.t-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  flex-shrink: 0;
}
.t-title {
  font-size: .72rem;
  color: rgba(247,246,242,.3);
  margin-left: 8px;
  letter-spacing: .04em;
}
.terminal-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.t-line {
  font-size: .8125rem;
  color: var(--paper);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
}
.t-dim { color: #525560; }
.t-prompt {
  color: var(--signal);
  font-weight: 700;
  flex-shrink: 0;
}
.t-accent { color: var(--signal); }
.t-cursor {
  display: inline-block;
  width: 8px; height: 15px;
  background: var(--signal);
  animation: cursor-blink 1s steps(1) infinite;
  vertical-align: middle;
  border-radius: 1px;
}
@keyframes cursor-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* Floating code snippets */
.hero-code-1, .hero-code-2, .hero-code-3 {
  position: absolute;
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.hero-code-1 {
  top: 30px; right: -20px;
  color: var(--signal);
  animation: float-r 5s ease-in-out infinite;
}
.hero-code-2 {
  bottom: 60px; left: -30px;
  animation: float-r 7s ease-in-out infinite reverse;
}
.hero-code-3 {
  top: 50%; right: -40px;
  animation: float-r 6s ease-in-out infinite 1s;
}
@keyframes float-r {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ════════════════════════════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════════════════════════════ */
.services { background: var(--paper); }
.services-header { text-align: center; margin-bottom: 64px; }
.services-header .section-subtitle { margin: 0 auto; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14,159,110,.3);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: rgba(14,159,110,.08);
  border: 1px solid rgba(14,159,110,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--signal);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--signal);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(14,159,110,.3);
}

.service-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-desc {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-link {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.service-link:hover { gap: 8px; color: var(--ink); }

/* ════════════════════════════════════════════════════════════════
   PROJECTS
   ════════════════════════════════════════════════════════════════ */
.projects { background: var(--paper); }
.projects-header { margin-bottom: 56px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid var(--line);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(14,159,110,.3);
}

.project-top {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--paper);
}
.project-top-code {
  font-size: 4rem;
  color: rgba(24,25,28,.07);
  font-weight: 700;
  font-family: var(--font-mono);
  user-select: none;
  letter-spacing: -.1em;
}
.project-gradient-overlay {
  position: absolute;
  inset: 0;
  opacity: .4;
}
.project-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .4s ease;
}
.project-card:hover .project-cover-img { transform: scale(1.04); }

.project-body { padding: 24px; }
.project-number {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 10px;
}
.project-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.project-desc {
  font-size: .9375rem;
  color: var(--gray);
  line-height: 1.65;
  margin-bottom: 18px;
}
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.stack-badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(14,159,110,.07);
  border: 1px solid rgba(14,159,110,.18);
  color: var(--signal);
  letter-spacing: .02em;
}
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--signal);
  transition: var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.project-link:hover { gap: 10px; color: var(--ink); }

/* ════════════════════════════════════════════════════════════════
   MODAL IFRAME — PROYECTOS
   ════════════════════════════════════════════════════════════════ */
.proj-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24,25,28,.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .25s ease;
}
.proj-modal-overlay.open { opacity: 1; }
.proj-modal-overlay[hidden] { display: none; }

.proj-modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1100px;
  height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(24,25,28,.4);
  transform: scale(.96);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.proj-modal-overlay.open .proj-modal { transform: scale(1); opacity: 1; }

.proj-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 50px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--paper);
  gap: 12px;
}
.proj-modal-name {
  font-family: var(--font-mono);
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proj-modal-bar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.proj-modal-newtab,
.proj-modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.proj-modal-newtab:hover,
.proj-modal-close:hover { color: var(--ink); background: var(--paper); }

.proj-modal-body { flex: 1; position: relative; overflow: hidden; }
.proj-modal-body iframe { width: 100%; height: 100%; border: none; display: block; }

.proj-modal-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: var(--paper);
  color: var(--gray);
  font-size: .875rem;
}
.proj-modal-loading.hidden { display: none; }
.proj-modal-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--signal);
  border-radius: 50%;
  animation: proj-spin .7s linear infinite;
}
@keyframes proj-spin { to { transform: rotate(360deg); } }

@media (max-width: 767px) {
  .proj-modal { height: 82vh; border-radius: var(--radius-md); }
}

/* ════════════════════════════════════════════════════════════════
   ABOUT
   ════════════════════════════════════════════════════════════════ */
.about {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: 720px;
}

.about-socials { display: flex; gap: 10px; }
.social-btn {
  width: 42px; height: 42px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--ink);
  border-color: transparent;
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.about-name  { font-size: 2rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.about-role  {
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 20px;
}
.about-bio {
  font-size: 1.0625rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 36px;
}

.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 32px; }
.stat-card {
  padding: 20px 16px;
  border-radius: var(--radius-md);
  background: var(--paper);
  border: 1.5px solid var(--line);
  text-align: center;
  transition: var(--transition);
}
.stat-card:hover { border-color: rgba(14,159,110,.3); box-shadow: var(--shadow-sm); }
.stat-number {
  font-family: var(--font-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--signal);
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray);
}

/* ════════════════════════════════════════════════════════════════
   CONTACT FORM
   ════════════════════════════════════════════════════════════════ */
.contact { background: var(--paper); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
}

.contact-info-title { font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.contact-info-text  { color: var(--gray); line-height: 1.75; margin-bottom: 36px; }

.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: .9375rem;
  font-weight: 500;
  transition: var(--transition);
}
.contact-item:hover {
  border-color: rgba(14,159,110,.3);
  transform: translateX(4px);
  box-shadow: var(--shadow-sm);
}
.contact-item-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(14,159,110,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
  flex-shrink: 0;
}

/* Form wrapper */
.form-wrap {
  padding: 40px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-md);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-group.full { grid-column: 1 / -1; }

.form-label { font-size: .875rem; font-weight: 600; color: var(--ink); }
.form-label .required { color: #EF4444; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 13px 15px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: .9375rem;
  transition: var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--text-subtle); }
.form-control:focus {
  border-color: var(--signal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(14,159,110,.1);
}
.form-control.error   { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
.form-control.success { border-color: var(--signal); box-shadow: 0 0 0 3px rgba(14,159,110,.08); }

select.form-control { appearance: none; cursor: pointer; }
select.form-control option { background: var(--white); color: var(--ink); }
textarea.form-control { resize: vertical; min-height: 140px; }

.form-error-msg {
  font-size: .8rem;
  color: #EF4444;
  display: none;
  align-items: center;
  gap: 4px;
}
.form-error-msg.show { display: flex; }

.form-char-count { font-size: .8rem; color: var(--text-subtle); text-align: right; }

.form-checkbox-wrap { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; }
.form-checkbox {
  width: 17px; height: 17px;
  border-radius: 4px;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--signal);
}
.form-checkbox-label { font-size: .9rem; color: var(--gray); line-height: 1.55; }
.form-checkbox-label a { color: var(--signal); text-decoration: underline; }
.form-checkbox-label a:hover { color: var(--ink); }

/* Honeypot */
.hp-field { display: none !important; }

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
}
.btn-submit .spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.btn-submit.loading .spinner { display: block; }
.btn-submit.loading .btn-text { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  display: none;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  font-size: .9375rem;
  font-weight: 500;
  align-items: center;
  gap: 10px;
}
.form-feedback.show { display: flex; }
.form-feedback.success-msg {
  background: rgba(14,159,110,.07);
  border: 1px solid rgba(14,159,110,.25);
  color: var(--signal);
}
.form-feedback.error-msg {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  color: #DC2626;
}

/* Success card */
.form-success-card {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  gap: 14px;
  animation: fade-in .5s ease forwards;
}
.form-success-card.show { display: flex; }
@keyframes fade-in {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: scale(1); }
}
.success-icon {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: rgba(14,159,110,.08);
  border: 1.5px solid rgba(14,159,110,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--signal);
}
.success-title { font-size: 1.375rem; font-weight: 700; color: var(--ink); }
.success-text  { color: var(--gray); font-size: 1rem; }

/* ════════════════════════════════════════════════════════════════
   FOOTER  (dark — tinta)
   ════════════════════════════════════════════════════════════════ */
.footer {
  background: var(--ink);
  padding: 64px 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* Footer logo */
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.footer-logo-wrap .logo-prompt { color: var(--signal); }
.footer-logo-wrap .logo-word   { color: var(--white); }

/* Legacy img logo */
.footer-logo-img { filter: brightness(0) invert(1); height: 32px; }

.footer-brand-desc {
  font-size: .9375rem;
  color: #6B6E75;
  line-height: 1.7;
  margin: 0 0 22px;
  max-width: 280px;
}
.footer-brand-socials { display: flex; gap: 10px; }
.footer .social-btn {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #6B6E75;
}
.footer .social-btn:hover {
  background: var(--signal);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 4px 12px rgba(14,159,110,.3);
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8A8D94;
  margin-bottom: 18px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: .9375rem;
  color: #525560;
  transition: var(--transition);
}
.footer-links a:hover { color: #C8C6C0; padding-left: 4px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  font-family: var(--font-mono);
  font-size: .8125rem;
  color: #3E4047;
}
.footer-bottom a { color: #3E4047; transition: var(--transition); }
.footer-bottom a:hover { color: #8A8D94; }
.footer-github {
  color: var(--signal);
  font-weight: 600;
  transition: var(--transition);
}
.footer-github:hover { color: #0B8A5E; }

/* ════════════════════════════════════════════════════════════════
   FLOATING BUTTONS
   ════════════════════════════════════════════════════════════════ */
.float-btns {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-whatsapp {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: var(--transition);
  animation: pulse-wa 3s ease-in-out infinite;
}
.btn-whatsapp:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); animation: none; }
@keyframes pulse-wa {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7), 0 0 0 8px rgba(37,211,102,.1); }
}

/* ════════════════════════════════════════════════════════════════
   MODALES DE SERVICIOS
   ════════════════════════════════════════════════════════════════ */
.svc-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(24,25,28,.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s ease;
}
.svc-modal-overlay.open { opacity: 1; }
.svc-modal-overlay[hidden] { display: none; }

.svc-modal {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px;
  max-width: 540px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 80px rgba(24,25,28,.28);
  transform: translateY(20px) scale(.97);
  transition: transform .25s ease, opacity .25s ease;
  opacity: 0;
  max-height: 90vh;
  overflow-y: auto;
}
.svc-modal-overlay.open .svc-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.svc-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  transition: var(--transition);
  cursor: pointer;
}
.svc-modal-close:hover { color: var(--ink); border-color: var(--gray); }

.svc-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.svc-modal-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.svc-modal-tag {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  opacity: .7;
  margin-bottom: 4px;
}

.svc-modal-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.svc-modal-intro {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: .95rem;
}

.svc-modal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.svc-modal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--gray);
  font-size: .9rem;
  line-height: 1.5;
}

.svc-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.svc-modal-cta { width: 100%; justify-content: center; text-align: center; }

@media (max-width: 480px) {
  .svc-modal { padding: 28px 20px; border-radius: var(--radius-lg); }
  .svc-modal-title { font-size: 1.2rem; }
}

/* ════════════════════════════════════════════════════════════════
   TECH TICKER
   ════════════════════════════════════════════════════════════════ */
.ticker {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  padding: 14px 0;
  user-select: none;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item {
  font-family: var(--font-mono);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}
.ticker-sep {
  color: var(--signal);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   PROCESS — banda oscura
   ════════════════════════════════════════════════════════════════ */
.process { background: var(--ink); }
.process .tag         { color: var(--signal); }
.process .tag::before { background: var(--signal); }
.process .section-title    { color: var(--paper); }
.process .section-subtitle { color: #525560; }

.process-header { margin-bottom: 64px; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.process-step {
  padding: 0 40px 0 40px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.process-step:first-child { padding-left: 0; }
.process-step:last-child  { border-right: none; padding-right: 0; }

.process-num {
  display: block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 700;
  color: var(--signal);
  letter-spacing: .08em;
  margin-bottom: 20px;
}
.process-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.3;
}
.process-desc {
  font-size: .9375rem;
  color: #525560;
  line-height: 1.75;
}

/* ════════════════════════════════════════════════════════════════
   PLANS — hosting & mantenimiento
   ════════════════════════════════════════════════════════════════ */
.plans { background: var(--white); }
.plans-header { margin-bottom: 56px; }

.plans-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-card.plan-featured {
  background: var(--white);
  border-color: var(--signal);
  box-shadow: 0 0 0 1px var(--signal), var(--shadow-md);
}

.plan-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white);
  background: var(--signal);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.plan-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.plan-desc {
  font-size: .9rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 24px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan-amount {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-period {
  font-size: .9rem;
  color: var(--gray);
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9375rem;
  color: var(--ink);
  line-height: 1.5;
}

.plan-features li [data-lucide] { color: var(--signal); flex-shrink: 0; margin-top: 2px; }

.plan-cta { width: 100%; text-align: center; justify-content: center; }

.plans-note {
  text-align: center;
  margin-top: 40px;
  font-size: .9375rem;
  color: var(--gray);
}
.plans-note a { color: var(--signal); text-decoration: none; font-weight: 500; }
.plans-note a:hover { text-decoration: underline; }

/* ════════════════════════════════════════════════════════════════
   PRIVACY PAGE
   ════════════════════════════════════════════════════════════════ */
.privacy-hero    { padding: 140px 0 56px; background: var(--white); border-bottom: 1px solid var(--line); }
.privacy-content { padding: 64px 0 96px; background: var(--paper); }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 36px;
  transition: var(--transition);
}
.back-link:hover { gap: 12px; color: var(--ink); }

.privacy-article { max-width: 800px; margin: 0 auto; }
.privacy-article h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ink);
  margin: 44px 0 14px;
  padding-top: 14px;
}
.privacy-article h2:first-child { margin-top: 0; }
.privacy-article p,
.privacy-article li {
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 14px;
  font-size: 1rem;
}
.privacy-article ul { padding-left: 22px; }
.privacy-article li { list-style: disc; }
.privacy-article a  { color: var(--signal); text-decoration: underline; }
.privacy-article strong { color: var(--ink); font-weight: 600; }
.privacy-article .updated { font-size: .875rem; color: var(--text-subtle); margin-bottom: 44px; }

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 1023px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid  { grid-template-columns: repeat(2, 1fr); }
  .about-inner    { max-width: 100%; }
  .contact-inner  { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner     { grid-template-columns: 1fr; }
  .hero-visual    { display: none; }
  .footer-main    { grid-template-columns: 1fr 1fr; }
  .process-grid   { grid-template-columns: repeat(2, 1fr); }
  .process-step   { padding: 32px 28px; border-right: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
  .process-step:nth-child(2n) { border-right: none; padding-right: 0; }
  .process-step:nth-child(n+3) { border-bottom: none; }
  .process-step:first-child { padding-left: 0; }
}

@media (max-width: 767px) {
  .section { padding: 64px 0; }

  .nav-links  { display: none; }
  .nav-badge  { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 100px 0 64px; min-height: auto; }
  .hero-inner   { grid-template-columns: 1fr; text-align: center; }
  .hero-visual  { display: none; }
  .hero-ctas    { justify-content: center; }
  .hero-subtitle { margin: 0 auto 40px; }

  .services-grid  { grid-template-columns: 1fr; }
  .projects-grid  { grid-template-columns: 1fr; }
  .process-grid   { grid-template-columns: 1fr; }
  .process-step   { padding: 28px 0; border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .process-step:last-child { border-bottom: none; }
  .plans-grid     { grid-template-columns: 1fr; }

  .about-stats  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-number  { font-size: 1.75rem; }

  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-wrap     { padding: 24px; }
  .form-row      { grid-template-columns: 1fr; }

  .footer-main   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }

  .float-btns { bottom: 20px; right: 20px; }
}

@media (min-width: 1280px) {
  .container { max-width: 1280px; }
}
