/* ============================================================
   SOFÍA GONZÁLEZ — PORTFOLIO
   Sistema de marca basado en "Aura Automations · Manual de Marca"
   ------------------------------------------------------------
   Estructura:
     1. Tokens
     2. Reset y base
     3. Utilidades (botones, tags, estados, reveal)
     4. Navegación
     5. Hero + flujo
     6. Secciones genéricas
     7. Sobre mí
     8. Habilidades
     9. Proyectos (casos de estudio)
    10. Próximo proyecto (API Python)
    11. Experiencia
    12. Educación y certificaciones
    13. Contacto
    14. Footer
    15. Responsive
    16. Reducción de movimiento
   ============================================================ */


/* ============================================================
   1 · TOKENS
   ============================================================ */
:root {
  /* Paleta Aura */
  --lino:         #F4EFE8;
  --lino-2:       #FBF8F3;
  --lino-deep:    #EDE6DC;
  --rosa:         #DEB6AE;
  --rosa-soft:    #F3E2DE;
  --rosa-deep:    #C9988F;
  --rosa-ink:     #8E5248;   /* rosa para texto (contraste AA) */
  --tinta:        #211D1B;
  --lavanda:      #B2A6D4;
  --lavanda-soft: #E6E1F3;
  --lavanda-ink:  #55468A;
  --moca:         #998574;
  --moca-soft:    #E7DFD6;
  --moca-ink:     #6B5A4C;   /* moca para texto pequeño */
  --verde-soft:   #DDEBDF;
  --verde-ink:    #2F5E3A;

  --tinta-80:     rgba(33, 29, 27, 0.80);
  --tinta-65:     rgba(33, 29, 27, 0.68);
  --hair:         rgba(33, 29, 27, 0.12);
  --hair-strong:  rgba(33, 29, 27, 0.22);

  /* Tipografía */
  --sans:  'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --mono:  'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Layout */
  --max:    1140px;
  --gutter: clamp(16px, 4vw, 48px);
  --r-sm:   8px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-pill: 999px;

  --shadow: 0 18px 40px -28px rgba(33, 29, 27, 0.45);
  --ease:   cubic-bezier(.2, .7, .2, 1);
}


/* ============================================================
   2 · RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tinta);
  background: var(--lino);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 650;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--rosa-ink);
}

p { margin: 0 0 14px; }

code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--lino-deep);
  padding: 1px 5px;
  border-radius: 4px;
}

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

::selection { background: var(--rosa); color: var(--tinta); }

.skip-link {
  position: absolute;
  left: 12px; top: -48px;
  z-index: 100;
  background: var(--tinta);
  color: var(--lino);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }


/* ============================================================
   3 · UTILIDADES
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn--primary { background: var(--tinta); color: var(--lino); }
.btn--primary:hover { background: #3a3431; }
.btn--ghost { background: transparent; color: var(--tinta); border-color: var(--hair-strong); }
.btn--ghost:hover { border-color: var(--tinta); background: var(--lino-2); }
.btn--text {
  padding-left: 6px; padding-right: 6px;
  color: var(--tinta);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--rosa-deep);
}
.btn--text:hover { text-decoration-color: var(--tinta); }
.btn--small { padding: 8px 15px; font-size: 13.5px; }
.btn--block { width: 100%; justify-content: center; }

/* Estado de proyecto */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
}
.status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status--plan  { background: var(--lavanda-soft); color: var(--lavanda-ink); }
.status--dev   { background: var(--rosa-soft);    color: var(--rosa-ink); }
.status--proto { background: var(--moca-soft);    color: var(--moca-ink); }
.status--live  { background: var(--verde-soft);   color: var(--verde-ink); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  vertical-align: 2px;
}
.tag--growing { background: var(--lavanda-soft); color: var(--lavanda-ink); }

.dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4C9A5E;
  margin-right: 6px;
}


/* ============================================================
   4 · NAVEGACIÓN
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px var(--gutter);
  background: rgba(244, 239, 232, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.nav__logo { color: var(--tinta); flex-shrink: 0; }
.nav__name { font-weight: 650; font-size: 16px; letter-spacing: -0.01em; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.nav__menu a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--tinta-65);
  transition: color .2s var(--ease);
}
.nav__menu a:hover,
.nav__menu a.is-current { color: var(--tinta); }

.nav__cta {
  background: var(--tinta);
  color: var(--lino) !important;
  padding: 8px 16px;
  border-radius: var(--r-pill);
}
.nav__cta:hover { background: #3a3431; }

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--hair);
}
.nav__lang-btn {
  background: transparent;
  border: none;
  padding: 4px 5px;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tinta-65);
  border-radius: 4px;
}
.nav__lang-btn:hover { color: var(--tinta); }
.nav__lang-btn.is-active { color: var(--tinta); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--rosa-deep); }
.nav__lang-sep { font-size: 12px; color: var(--hair-strong); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  padding: 10px 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav__toggle span {
  width: 22px;
  height: 1.6px;
  background: var(--tinta);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }


/* ============================================================
   5 · HERO
   ============================================================ */
.hero {
  padding: clamp(48px, 8vw, 104px) var(--gutter) clamp(56px, 8vw, 104px);
  background-color: var(--lino);
  background-image: radial-gradient(rgba(33, 29, 27, 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--hair);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 28px;
  font-size: 14.5px;
  line-height: 1.35;
}
.hero__eyebrow strong { display: block; font-weight: 650; }
.hero__avatar img {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--lino-deep);
}
.hero__status { color: var(--tinta-65); font-size: 13.5px; }

.hero__title {
  font-size: clamp(34px, 5.2vw, 60px);
  max-width: 17ch;
  margin-bottom: 22px;
}

.hero__role {
  display: inline-block;
  font-family: var(--mono);
  font-size: clamp(12.5px, 1.4vw, 14px);
  color: var(--tinta);
  background: var(--lino-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  margin: 0 0 22px;
}
.hero__role span { color: var(--rosa-deep); padding: 0 2px; }

.hero__pitch {
  font-size: clamp(16.5px, 1.6vw, 18.5px);
  color: var(--tinta-80);
  max-width: 54ch;
  margin-bottom: 32px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Flujo ilustrativo */
.flow {
  margin: 0;
  background: var(--tinta);
  color: var(--lino);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-family: var(--mono);
}
.flow__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(244, 239, 232, 0.1);
  font-size: 12px;
  color: rgba(244, 239, 232, 0.6);
}
.flow__dots { display: inline-flex; gap: 6px; }
.flow__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(244, 239, 232, 0.18); }

.flow__nodes {
  list-style: none;
  margin: 0;
  padding: 22px 22px 24px 48px;
  position: relative;
  display: grid;
  gap: 12px;
}
/* línea conectora */
.flow__nodes::before {
  content: '';
  position: absolute;
  left: 29px; top: 38px; bottom: 40px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, rgba(178, 166, 212, 0.55) 0 4px, transparent 4px 8px);
}
/* pulso que recorre el flujo */
.flow__nodes::after {
  content: '';
  position: absolute;
  left: 26px; top: 38px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--rosa);
  box-shadow: 0 0 0 4px rgba(222, 182, 174, 0.18);
  animation: travel 4.5s var(--ease) infinite;
}
@keyframes travel {
  0%   { top: 38px; opacity: 0; }
  10%  { opacity: 1; }
  85%  { opacity: 1; }
  100% { top: calc(100% - 46px); opacity: 0; }
}

.flow__node {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid rgba(244, 239, 232, 0.12);
  border-radius: var(--r-sm);
  background: rgba(244, 239, 232, 0.04);
  font-size: 13px;
}
.flow__node::before {
  content: '';
  position: absolute;
  left: -23px; top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--tinta);
  border: 1.5px solid var(--lavanda);
}
.flow__k { color: var(--lavanda); }
.flow__v { color: var(--lino); text-align: right; }
.flow__node--done::before { background: var(--rosa); border-color: var(--rosa); }
.flow__ok { color: #9FD3A9; }


/* ============================================================
   6 · SECCIONES GENÉRICAS
   ============================================================ */
.section {
  padding: clamp(64px, 9vw, 112px) var(--gutter);
  max-width: var(--max);
  margin: 0 auto;
  box-sizing: content-box;
}
.section--alt {
  max-width: none;
  padding-left: max(var(--gutter), calc((100% - var(--max)) / 2));
  padding-right: max(var(--gutter), calc((100% - var(--max)) / 2));
  background: var(--lino-2);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

.section__head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--rosa-ink);
  margin-bottom: 12px;
}
.section__title { font-size: clamp(28px, 3.6vw, 42px); }
.section__subtitle {
  font-size: clamp(20px, 2.2vw, 24px);
  margin: clamp(48px, 6vw, 72px) 0 20px;
}
.section__lead {
  margin: 16px 0 0;
  font-size: 17px;
  color: var(--tinta-65);
  max-width: 60ch;
}


/* ============================================================
   7 · SOBRE MÍ
   ============================================================ */
.about {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.about__photo img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  background: var(--lino-deep);
}
.about__text { max-width: 68ch; }
.about__text > p { font-size: 17px; color: var(--tinta-80); }
.about__text strong { color: var(--tinta); font-weight: 600; }

.about__facts {
  margin: 28px 0 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.about__facts > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
.about__facts dt {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--moca-ink);
  padding-top: 2px;
}
.about__facts dd { margin: 0; font-size: 15.5px; }


/* ============================================================
   8 · HABILIDADES
   ============================================================ */
.skills {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.skill {
  background: var(--lino);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 20px 18px;
}
.skill__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin-bottom: 14px;
}
.skill__ic {
  display: inline-grid;
  place-items: center;
  min-width: 30px; height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  background: var(--tinta);
  color: var(--lino);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -0.02em;
}
.skill__list { list-style: none; margin: 0; padding: 0; }
.skill__list li {
  padding: 7px 0;
  border-top: 1px solid var(--hair);
  font-size: 15px;
}
.skill__list li:first-child { border-top: none; }

.skills__extra {
  margin: 22px 0 0;
  font-size: 15px;
  color: var(--tinta-65);
}
.skills__extra strong { color: var(--tinta); font-weight: 600; }


/* ============================================================
   9 · PROYECTOS — CASOS DE ESTUDIO
   ============================================================ */
.cases { display: grid; gap: 22px; }

.case {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  background: var(--lino-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.case:hover { border-color: var(--hair-strong); box-shadow: var(--shadow); }

.case__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.4vw, 28px);
  background: var(--lino-deep);
  border-right: 1px solid var(--hair);
}
.case__cover { width: 100%; }
.case__cover img,
.case__cover svg {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: contain;
  border-radius: var(--r-md);
  border: 1px solid var(--hair);
  background: var(--lino-2);
}
.case__media--fill { padding: 0; background: #931200; }
.case__media--fill .case__cover,
.case__media--fill .case__cover { height: 100%; }
.case__cover--puntoruta {
  display: grid;
  place-items: center;
  background: #931200;
}
.case__cover--puntoruta { min-height: 220px; }
.case__cover--puntoruta img {
  width: auto;
  max-width: 42%;
  border: none;
  background: transparent;
}

.case__body {
  padding: clamp(22px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.case__type { font-family: var(--mono); font-size: 12px; color: var(--moca-ink); }
.case__title { font-size: clamp(22px, 2.4vw, 27px); }

.case__facts { margin: 0; display: grid; gap: 12px; }
.case__facts dt {
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--moca-ink);
  margin-bottom: 3px;
}
.case__facts dd { margin: 0; font-size: 15px; color: var(--tinta-80); }

.case__tech {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.case__tech li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  background: var(--lino);
  color: var(--tinta-80);
}

.case__note {
  margin: 0;
  font-size: 13.5px;
  color: var(--tinta-65);
  font-style: italic;
}

.case__more summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.case__more summary::-webkit-details-marker { display: none; }
.case__more summary::before {
  content: '+';
  font-family: var(--mono);
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  font-size: 13px;
  transition: transform .2s var(--ease);
}
.case__more[open] summary::before { transform: rotate(45deg); }

.case__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.case__gallery figure {
  margin: 0;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--lino);
}
.case__gallery img { width: 100%; height: auto; }
.case__gallery--phone { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
.case__gallery figcaption {
  font-size: 12.5px;
  color: var(--tinta-65);
  padding: 8px 10px;
  border-top: 1px solid var(--hair);
}

.case__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }


/* ============================================================
  10 · PRÓXIMO PROYECTO — API PYTHON
   ============================================================ */
.next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
}
.next__col {
  background: var(--lino);
  border: 1px dashed var(--hair-strong);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.next__desc { margin: 14px 0 0; color: var(--tinta-80); }
.next__h { font-size: 16px; margin: 26px 0 12px; }
.next__col > .next__h:first-child { margin-top: 0; }

.arch { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.arch li {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  background: var(--lino-2);
  font-size: 14px;
  position: relative;
}
.arch li + li::before {
  content: '↓';
  position: absolute;
  left: 40px; top: -11px;
  font-size: 11px;
  color: var(--moca);
  line-height: 1;
}
.arch__k { font-family: var(--mono); font-size: 12px; color: var(--lavanda-ink); }

.endpoints { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.endpoints li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.endpoints code { background: transparent; padding: 0; overflow-wrap: anywhere; }
.verb {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  width: 58px;
  text-align: center;
  padding: 2px 0;
  border-radius: 4px;
  flex-shrink: 0;
}
.verb--get   { background: var(--verde-soft);   color: var(--verde-ink); }
.verb--post  { background: var(--lavanda-soft); color: var(--lavanda-ink); }
.verb--patch { background: var(--moca-soft);    color: var(--moca-ink); }
.verb--del   { background: var(--rosa-soft);    color: var(--rosa-ink); }

.roadmap {
  list-style: none;
  counter-reset: step;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.roadmap li {
  counter-increment: step;
  position: relative;
  padding-left: 42px;
  font-size: 14.5px;
  color: var(--tinta-65);
}
.roadmap li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--tinta);
  background: var(--lino-2);
}
.roadmap strong { display: block; color: var(--tinta); font-weight: 600; font-size: 15px; }


/* ============================================================
  11 · EXPERIENCIA
   ============================================================ */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.job {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(16px, 4vw, 48px);
  padding: 28px 0;
  border-bottom: 1px solid var(--hair);
}
.job__side { display: flex; flex-direction: column; gap: 4px; }
.job__date { font-family: var(--mono); font-size: 12.5px; color: var(--moca-ink); }
.job__org { font-weight: 650; font-size: 16.5px; }
.job__role { font-size: 19px; margin-bottom: 10px; }
.job__list { margin: 0 0 14px; padding-left: 18px; }
.job__list li { font-size: 15.5px; color: var(--tinta-80); margin-bottom: 6px; }
.job__list li::marker { color: var(--rosa-deep); }
.job__tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.job__tags li {
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 9px;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  color: var(--tinta-80);
}


/* ============================================================
  12 · EDUCACIÓN Y CERTIFICACIONES
   ============================================================ */
.edu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.edu__item {
  background: var(--lino);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.edu__item--current { border-color: var(--rosa-deep); }
.edu__item h3 { font-size: 17.5px; line-height: 1.3; }
.edu__item p { margin: 0; font-size: 14.5px; color: var(--tinta-65); }

.certs { display: grid; gap: 14px; }
.cert {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: var(--lino);
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  padding: 22px 20px;
}
.cert__body { display: grid; gap: 8px; flex: 1 1 380px; }
.cert__title { font-size: 17.5px; }
.cert__issuer { margin: 0; font-size: 14.5px; color: var(--tinta-65); }
.cert .case__cta { margin-top: 0; padding-top: 0; }


/* ============================================================
  13 · CONTACTO
   ============================================================ */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.contact__channels { display: grid; gap: 10px; }
.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--hair);
  border-radius: var(--r-md);
  background: var(--lino-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.channel:hover { border-color: var(--tinta); }
.channel--cv { background: var(--tinta); color: var(--lino); border-color: var(--tinta); }
.channel--cv:hover { background: #3a3431; }
.channel--cv .channel__lbl { color: var(--rosa); }
.channel--cv .channel__ic { background: rgba(244, 239, 232, 0.1); color: var(--lino); }
.channel__ic {
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--lino-deep);
  display: grid;
  place-items: center;
}
.channel__ic svg { width: 18px; height: 18px; }
.channel__txt { display: flex; flex-direction: column; min-width: 0; }
.channel__lbl { font-family: var(--mono); font-size: 11.5px; color: var(--moca-ink); }
.channel__val { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }

.contact__loc { margin: 6px 0 0; font-size: 14px; color: var(--tinta-65); }

.contact__form {
  background: var(--lino-2);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13.5px; font-weight: 600; }
.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--tinta);
  background: var(--lino);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(33, 29, 27, 0.5); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--tinta);
  box-shadow: 0 0 0 3px var(--lavanda-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field.is-error input,
.field.is-error textarea { border-color: var(--rosa-ink); box-shadow: 0 0 0 3px var(--rosa-soft); }

.contact__status { margin: 0; min-height: 20px; font-size: 13.5px; color: var(--tinta-65); }
.contact__status.is-ok    { color: var(--verde-ink); }
.contact__status.is-error { color: var(--rosa-ink); }


/* ============================================================
  14 · FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--hair); padding: 28px var(--gutter); }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 13.5px;
  color: var(--tinta-65);
}


/* ============================================================
  15 · RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .skills { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .flow { max-width: 460px; }

  .case { grid-template-columns: 1fr; }
  .case__media { border-right: none; border-bottom: 1px solid var(--hair); }

  .next { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .edu { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__menu {
    position: fixed;
    top: 59px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--lino);
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--hair);
    box-shadow: var(--shadow);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav__menu.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__menu a { padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
  .nav__cta { margin-top: 12px; padding: 12px 0 !important; text-align: center; border-bottom: none !important; }
  .nav__toggle { display: flex; }
  .nav__lang { justify-content: center; padding: 14px 0 0; border-left: none; }
  .nav__lang-btn { font-size: 14px; padding: 6px 10px; }

  .about { grid-template-columns: 1fr; }
  .about__photo { width: 140px; }
  .about__facts > div { grid-template-columns: 1fr; gap: 4px; }

  .job { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 640px) {
  .skills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__cta .btn--primary,
  .hero__cta .btn--ghost { flex: 1 1 100%; justify-content: center; }
  .flow__node { font-size: 12px; }
}

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


/* ============================================================
  16 · REDUCCIÓN DE MOVIMIENTO
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .flow__nodes::after { display: none; }
}
