/* ==========================================================================
   Northlink — Hoja de estilos
   Paleta cálida tipo "papel", tipografía serif para títulos y sans para
   texto, transiciones suaves y layout fluido de móvil a escritorio.
   ========================================================================== */

/* ─── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --paper:        #f9f8f4;
  --ivory:        #f0eee6;
  --surface:      #ffffff;
  --ink:          #141413;
  --ink-2:        #3d3d3a;
  --muted:        #6b6a65;
  --line:         #e6e3d9;
  --line-strong:  #d6d2c4;

  --clay:         #d97757;
  --clay-hover:   #c4623f;
  --clay-soft:    #f8e9e1;
  --clay-ink:     #9a4a2f;

  --sage:         #b9c7b0;
  --sage-soft:    #e8ede4;

  --dark:         #141413;
  --dark-2:       #1f1f1d;
  --dark-line:    rgba(255, 255, 255, 0.10);
  --dark-muted:   rgba(245, 244, 237, 0.62);
  --dark-text:    #f5f4ed;

  --font-serif: "Newsreader", "Iowan Old Style", "Times New Roman", serif;
  --font-sans:  "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(20, 20, 19, 0.04), 0 2px 8px rgba(20, 20, 19, 0.04);
  --shadow:    0 2px 4px rgba(20, 20, 19, 0.04), 0 12px 32px rgba(20, 20, 19, 0.08);

  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --dur:       0.5s;

  --container: 1140px;
  --gutter:    clamp(16px, 4vw, 40px);
  --header-h:  72px;
}

/* ─── Reset ligero ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p, h1, h2, h3, h4, dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  padding: 10px 14px; background: var(--ink); color: var(--paper);
  border-radius: var(--radius-sm); z-index: 100;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ─── Tipografía ─────────────────────────────────────────────────────────── */
h1, h2, h3, .display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.08;
  text-wrap: balance;
}

h1, .display { font-size: clamp(2.5rem, 2rem + 3.6vw, 4.6rem); }
h2           { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.1rem); }
h3           { font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); line-height: 1.2; }
h4           { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 600; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay-ink);
  margin-bottom: 16px;
}
.section-dark .eyebrow { color: var(--clay); }

.lead {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
}

.subhead {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ─── Botones ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }

.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.btn-primary:hover { background: var(--clay-hover); box-shadow: 0 8px 24px rgba(217, 119, 87, 0.28); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ivory); border-color: var(--ink); }

.btn-sm { padding: 10px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background-color 0.3s;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.04); background: var(--clay); }
.brand-name { font-family: var(--font-serif); font-size: 1.35rem; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; }
.site-nav ul a {
  font-size: 0.95rem; font-weight: 500; color: var(--ink-2);
  position: relative; padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav ul a:hover, .site-nav ul a.is-active { color: var(--ink); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  background: var(--surface); border-radius: 12px; cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle-close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle-close { display: block; }

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 7vw, 96px); overflow: hidden; }

.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 85% 10%, rgba(217, 119, 87, 0.16), transparent 70%),
    radial-gradient(45% 45% at 5% 90%, rgba(185, 199, 176, 0.35), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-2%, 2%, 0) scale(1.04); }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero-copy h1 { margin-bottom: 22px; max-width: 14ch; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-highlights {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  border-top: 1px solid var(--line); padding-top: 26px;
}
.hero-highlights dt { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }
.hero-highlights dd { font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; }

/* Tarjeta de contacto rápido */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.6s var(--ease), box-shadow 0.4s;
}
.hero-card:hover { transform: translateY(-3px); }

.hero-card-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.avatar-initials {
  display: grid; place-items: center; background: var(--ivory);
  font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink);
}
.hero-card-name { font-weight: 600; font-size: 1.05rem; }
.hero-card-role { font-size: 0.85rem; color: var(--muted); }
.status-dot {
  margin-left: auto; width: 10px; height: 10px; border-radius: 50%; background: #3f9d5d;
  box-shadow: 0 0 0 0 rgba(63, 157, 93, 0.5); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(63, 157, 93, 0.45); }
  70%  { box-shadow: 0 0 0 10px rgba(63, 157, 93, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 157, 93, 0); }
}

.quick-links li + li { border-top: 1px solid var(--line); }
.quick-links a {
  display: flex; align-items: center; gap: 14px; padding: 14px 6px; margin: 0 -6px;
  border-radius: var(--radius-sm);
  transition: background-color 0.25s, padding-left 0.35s var(--ease);
}
.quick-links a:hover { background: var(--ivory); padding-left: 12px; }
.ql-icon {
  width: 38px; height: 38px; border-radius: 10px; background: var(--ivory); color: var(--ink);
  display: grid; place-items: center; flex: 0 0 auto; transition: background-color 0.25s, color 0.25s;
}
.quick-links a:hover .ql-icon { background: var(--clay); color: #fff; }
.ql-body { display: flex; flex-direction: column; min-width: 0; }
.ql-label { font-size: 0.75rem; color: var(--muted); }
.ql-value { font-weight: 500; font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-arrow { margin-left: auto; color: var(--muted); opacity: 0; transform: translateX(-6px); transition: opacity 0.25s, transform 0.35s var(--ease); }
.quick-links a:hover .ql-arrow { opacity: 1; transform: translateX(0); }

.hero-card-foot {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted);
}

/* ─── Ticker ─────────────────────────────────────────────────────────────── */
.ticker {
  overflow: hidden; border-block: 1px solid var(--line); background: var(--ivory);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: flex; gap: 40px; width: max-content; padding: 14px 0;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span {
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 40px;
}
.ticker-track span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--clay); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Secciones ──────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-alt { background: var(--ivory); }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-intro { color: var(--ink-2); font-size: 1.08rem; }

/* ─── Servicios ──────────────────────────────────────────────────────────── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), box-shadow 0.4s, border-color 0.3s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-strong); }

.service-card { display: flex; flex-direction: column; gap: 14px; }
.service-icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--clay-soft); color: var(--clay-ink); margin-bottom: 6px;
  transition: background-color 0.3s, color 0.3s, transform 0.5s var(--ease);
}
.service-icon .icon { width: 22px; height: 22px; }
.service-card:hover .service-icon { background: var(--clay); color: #fff; transform: rotate(-6deg); }
.service-card p { color: var(--ink-2); font-size: 0.98rem; flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: 0.76rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 5px 10px; border-radius: 999px; background: var(--ivory); color: var(--ink-2);
  border: 1px solid transparent; transition: border-color 0.25s, background-color 0.25s;
}
.tags-lg li { font-size: 0.86rem; padding: 7px 13px; background: var(--surface); border-color: var(--line); }
.tags-lg li:hover { border-color: var(--clay); background: var(--clay-soft); }

/* ─── Sobre mí ───────────────────────────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px); align-items: start;
}
.about-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 5 / 6; background: var(--sage-soft);
  box-shadow: var(--shadow);
}
.about-photo::before {
  content: ""; position: absolute; inset: auto -20% -30% auto; width: 70%; aspect-ratio: 1;
  border-radius: 50%; background: var(--clay); opacity: 0.85; z-index: 0;
}
.about-photo img {
  position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about-photo:hover img { transform: scale(1.03); }
.about-initials { position: relative; z-index: 1; display: grid; place-items: center; height: 100%; font-family: var(--font-serif); font-size: 6rem; }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px;
}
.facts div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.facts dt { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 4px; }
.facts dd { font-weight: 600; font-size: 0.95rem; }

.about-copy h2 { margin-bottom: 22px; }
.about-bio { font-size: 1.08rem; color: var(--ink-2); margin-bottom: 40px; max-width: 58ch; }

.edu-list li { display: flex; gap: 22px; padding: 16px 0; border-top: 1px solid var(--line-strong); }
.edu-list li:last-child { border-bottom: 1px solid var(--line-strong); }
.edu-year { flex: 0 0 96px; font-family: var(--font-serif); font-size: 1.05rem; color: var(--clay-ink); }
.edu-body { display: flex; flex-direction: column; gap: 2px; }
.edu-body span { font-size: 0.88rem; color: var(--muted); }

/* ─── Experiencia ────────────────────────────────────────────────────────── */
.timeline { position: relative; margin-bottom: clamp(48px, 7vw, 80px); }
.timeline-item {
  display: grid; grid-template-columns: 220px 1fr; gap: 32px;
  padding: 36px 0; border-top: 1px solid var(--line-strong);
}
.timeline-item:last-child { border-bottom: 1px solid var(--line-strong); }
.timeline-meta { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.timeline-period { font-family: var(--font-serif); font-size: 1.15rem; color: var(--clay-ink); }
.timeline-company { font-weight: 600; font-size: 0.95rem; }
.timeline-body h3 { margin-bottom: 16px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.98rem; margin-bottom: 10px; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--clay); opacity: 0.8;
}

.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.skill-group h4 { margin-bottom: 12px; }

/* ─── Contacto (sección oscura) ──────────────────────────────────────────── */
.section-dark {
  background: var(--dark); color: var(--dark-text);
  background-image: radial-gradient(50% 60% at 100% 0%, rgba(217, 119, 87, 0.18), transparent 70%);
}
.section-dark h2 { color: var(--dark-text); }
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 6vw, 88px); align-items: start;
}
.contact-copy h2 { margin-bottom: 18px; max-width: 16ch; }
.contact-copy > p { color: var(--dark-muted); font-size: 1.08rem; margin-bottom: 36px; max-width: 44ch; }

.contact-list li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--dark-line); }
.contact-list li:last-child { border-bottom: 1px solid var(--dark-line); }
.cl-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--dark-2); border: 1px solid var(--dark-line); color: var(--clay); flex: 0 0 auto;
}
.cl-label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dark-muted); margin-bottom: 2px; }
.contact-list a { position: relative; transition: color 0.25s; }
.contact-list a:hover { color: var(--clay); }

.contact-form {
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 18px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 0.86rem; font-weight: 500; color: var(--dark-muted); }
.field label small { font-weight: 400; opacity: 0.75; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--dark-text); transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.28); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--clay); background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(217, 119, 87, 0.18);
}
.field-error { display: none; font-size: 0.8rem; color: #f3a58c; }
.field.has-error input, .field.has-error textarea { border-color: #e0806a; }
.field.has-error .field-error { display: block; }

.form-alert {
  display: none; padding: 12px 16px; border-radius: 12px; font-size: 0.92rem;
  border: 1px solid transparent;
}
.form-alert.is-visible { display: block; animation: fadeUp 0.5s var(--ease); }
.form-alert.is-ok    { background: rgba(63, 157, 93, 0.14); border-color: rgba(63, 157, 93, 0.4); color: #bfe6c9; }
.form-alert.is-error { background: rgba(217, 119, 87, 0.14); border-color: rgba(217, 119, 87, 0.45); color: #f6c1ad; }

.form-note { font-size: 0.8rem; color: var(--dark-muted); text-align: center; }

.btn-loading {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.btn-label { display: inline-flex; align-items: center; gap: 10px; }
.btn.is-loading { pointer-events: none; opacity: 0.85; }
.btn.is-loading .btn-label { visibility: hidden; }
.btn.is-loading .btn-loading { display: block; position: absolute; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 2px; }
.footer-tag { font-size: 0.85rem; color: var(--muted); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 0.9rem; color: var(--ink-2); transition: color 0.25s; }
.footer-links a:hover { color: var(--clay-ink); }
.footer-copy { font-size: 0.85rem; color: var(--muted); }

/* ─── Botón flotante WhatsApp ────────────────────────────────────────────── */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35);
  transform: translateY(20px) scale(0.9); opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.4s, box-shadow 0.3s;
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float.is-visible { transform: none; opacity: 1; }
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45); }

/* ─── Animaciones de aparición ───────────────────────────────────────────── */
html.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform;
}
html.js .reveal.is-in { opacity: 1; transform: none; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-card { max-width: 560px; }
  .hero-copy h1 { max-width: 18ch; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: grid; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 8px;
    padding: 16px var(--gutter) 24px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 20, 19, 0.08);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.3s;
  }
  .site-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
  .site-nav ul a::after { display: none; }
  .nav-cta { margin-top: 12px; justify-content: center; padding: 14px; font-size: 1rem; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 440px; }
  .timeline-item { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .timeline-meta { position: static; flex-direction: row; align-items: baseline; gap: 14px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .hero-highlights { grid-template-columns: 1fr; gap: 14px; }
  .hero-actions .btn { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .hero-card { padding: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .edu-list li { flex-direction: column; gap: 6px; }
}

/* ─── Movimiento reducido ────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
}
