/* ==================================================================
   Dariel Tejada — Sitio personal y profesional
   Paleta: Negro carbón #0B0F14 · Verde esmeralda #18B879
           Blanco #FFFFFF · Gris grafito #26313A
   ================================================================== */

/* ---------- Tipografía autoalojada (Inter) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/inter-latin-800.woff2') format('woff2');
}

/* ---------- Variables ---------- */
:root {
  --carbon: #0B0F14;
  --carbon-2: #0E141B;
  --graphite: #26313A;
  --emerald: #18B879;
  --emerald-strong: #14A86B;
  --emerald-soft: rgba(24, 184, 121, 0.1);
  --emerald-line: rgba(24, 184, 121, 0.35);
  --white: #FFFFFF;
  --text: #E6EDF3;
  --text-muted: #9AA8B5;
  --line: rgba(255, 255, 255, 0.08);
  --surface: #111820;
  --surface-2: #0E141B;
  --danger: #FF6B6B;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --container: 1160px;
  --header-h: 76px;
  --radius: 16px;
  --shadow-card: 0 20px 50px rgba(0, 0, 0, 0.25);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--carbon);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

ul, ol { margin: 0; padding: 0; list-style: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
  font-weight: 700;
}

p { margin: 0; }

strong { color: var(--white); font-weight: 600; }

::selection { background: var(--emerald); color: #04120C; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--carbon); }
::-webkit-scrollbar-thumb { background: var(--graphite); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #31404D; }

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

/* ---------- Utilidades ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 24px;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  background: var(--emerald);
  color: #04120C;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

section[id],
footer {
  scroll-margin-top: calc(var(--header-h) + 10px);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 15, 20, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* ---------- Marca (logo oficial sobre chip blanco) ---------- */
.brand { display: inline-flex; flex-shrink: 0; }

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 8px 20px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.brand:hover .brand-chip {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(24, 184, 121, 0.4);
}
.brand-chip img { height: 30px; width: auto; }

.brand-chip--hero { padding: 12px 24px; border-radius: 14px; }
.brand-chip--hero img { height: 52px; }

.brand-chip--sm { padding: 6px 12px; border-radius: 10px; }
.brand-chip--sm img { height: 26px; }

/* ---------- Navegación ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-list { display: flex; align-items: center; gap: 2px; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-link:hover { color: var(--white); }
.nav-link.is-active { color: var(--white); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--emerald);
}

/* Botón hamburguesa (solo móvil) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--emerald-line); }
.nav-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--emerald);
  color: #04120C;
  border-color: var(--emerald);
  box-shadow: 0 8px 20px rgba(24, 184, 121, 0.28);
}
.btn-primary:hover {
  background: #1CC98A;
  border-color: #1CC98A;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(24, 184, 121, 0.36);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.2);
}
.btn-ghost:hover {
  color: var(--emerald);
  border-color: var(--emerald-line);
  transform: translateY(-2px);
}

.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.nav-cta { padding: 11px 18px; font-size: 0.9rem; }

.btn .btn-arrow { width: 18px; height: 18px; flex-shrink: 0; transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ---------- Hero / Inicio ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--header-h) + 56px) 0 70px;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }

.hero-glow {
  position: absolute;
  top: -280px;
  left: 50%;
  width: 860px;
  height: 860px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(24, 184, 121, 0.14), transparent 72%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 75% 62% at 50% 36%, #000 0%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 62% at 50% 36%, #000 0%, transparent 100%);
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  background: linear-gradient(to top, var(--carbon), transparent);
}

.container.hero-inner {
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}

.hero-brand { margin-bottom: 28px; }

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald);
}

.hero-title {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6.5vw, 4.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-title-accent { color: var(--emerald); }

.hero-tagline {
  margin-top: 20px;
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--white);
}

.hero-desc {
  margin: 16px auto 0;
  max-width: 650px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  margin-top: 44px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.scroll-hint {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0.85;
  animation: float-down 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 26px; height: 26px; }
.scroll-hint:hover { color: var(--emerald); }

@keyframes float-down {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Secciones ---------- */
.section { padding: 112px 0; }
.section--alt { background: var(--surface-2); }

.section-head {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
}
.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--emerald-line);
}

.section-title {
  margin-top: 16px;
  font-size: clamp(1.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-lead {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ---------- Sobre mí ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.about-text > p { color: var(--text-muted); font-size: 1.03rem; }
.about-text > p + p { margin-top: 16px; }

.about-areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-top: 30px;
}
.about-areas li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.about-areas svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--emerald); }

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
}

.about-card-top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.about-card-icon { width: 64px; height: 64px; flex-shrink: 0; }
.about-card-name { font-size: 1.25rem; font-weight: 700; }
.about-card-role {
  margin-top: 3px;
  color: var(--emerald);
  font-size: 0.88rem;
  font-weight: 500;
}

.about-list { display: grid; gap: 16px; margin-top: 22px; }
.about-item { display: flex; flex-direction: column; gap: 3px; }
.about-item dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.about-item dd { color: var(--white); font-weight: 600; font-size: 0.97rem; }

.about-card > .btn { margin-top: 26px; }

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

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 184, 121, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(24, 184, 121, 0.16);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald);
  margin-bottom: 22px;
}
.service-icon svg { width: 26px; height: 26px; }

.service-title { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
.service-desc { margin-top: 10px; color: var(--text-muted); font-size: 0.95rem; }

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

.project-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(24, 184, 121, 0.5);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(24, 184, 121, 0.16);
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--graphite);
  color: #C7D3DD;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.badge--example {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px dashed rgba(154, 168, 181, 0.45);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.project-title { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.project-desc {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}
.tech-tags li {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--emerald);
  transition: color 0.2s ease;
}
.project-link::after {
  content: "→";
  transition: transform 0.2s ease;
}
.project-link:hover { color: var(--emerald-strong); }
.project-link:hover::after { transform: translateX(4px); }

.project-card--cta {
  justify-content: center;
  background: linear-gradient(160deg, rgba(24, 184, 121, 0.09), transparent 60%), var(--surface);
  border-color: rgba(24, 184, 121, 0.38);
}
.project-card--cta .service-icon { margin-bottom: 18px; }
.project-card--cta .btn { margin-top: 22px; }

/* ---------- Tecnologías ---------- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(24, 184, 121, 0.5);
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--graphite);
  color: var(--emerald);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tech-info { display: flex; flex-direction: column; min-width: 0; }
.tech-name {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tech-cat { margin-top: 2px; color: var(--text-muted); font-size: 0.78rem; }

.tech-note {
  margin-top: 36px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Contacto ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: start;
}

.contact-text { color: var(--text-muted); }

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.contact-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--emerald-soft);
  color: var(--emerald);
}
.contact-item-icon svg { width: 22px; height: 22px; }

.contact-item-body { display: flex; flex-direction: column; min-width: 0; }
.contact-item-label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-item-value {
  margin-top: 3px;
  color: var(--white);
  font-size: 0.97rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
a.contact-item-value { transition: color 0.2s ease; }
a.contact-item-value:hover { color: var(--emerald); }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-link:hover {
  border-color: var(--emerald-line);
  color: var(--emerald);
  transform: translateY(-2px);
}
.social-link svg { width: 20px; height: 20px; }

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.contact-form { display: grid; gap: 18px; }

.form-group { display: grid; gap: 8px; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--white); }

.form-input {
  width: 100%;
  padding: 13px 15px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: #64717E; }
.form-input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(24, 184, 121, 0.15);
}
textarea.form-input { resize: vertical; min-height: 130px; }

.form-group.has-error .form-input { border-color: var(--danger); }
.form-error { min-height: 18px; font-size: 0.82rem; color: var(--danger); }

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}
.form-hint.is-success { color: var(--emerald); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 28px;
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 42px;
}

.footer-tag { margin-top: 12px; max-width: 340px; color: var(--text-muted); font-size: 0.92rem; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding-top: 8px;
}
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s ease; }
.footer-nav a:hover { color: var(--emerald); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.82rem;
}
.footer-domain { color: var(--emerald); font-weight: 600; }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 18px 24px 28px;
    background: rgba(11, 15, 20, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }
  .nav-link {
    display: block;
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.05rem;
  }
  .nav-link.is-active::after { display: none; }
  .nav-cta { margin-top: 18px; }

  .section { padding: 88px 0; }
  .section-head { margin-bottom: 48px; }

  .hero { padding: calc(var(--header-h) + 48px) 0 60px; }

  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (max-width: 640px) {
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .about-areas { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero-actions .btn { width: 100%; max-width: 340px; }
  .hero-chips { gap: 10px 16px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .tech-grid { grid-template-columns: 1fr; }
}

/* ---------- Preferencias de movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .scroll-hint { animation: none; }
}