/* ==========================================================================
   PORTFOLIO — GEMA ESPADA VALVERDE
   Desarrollo Web Full Stack en formación
   Estética: azul violáceo suave, navy, blanco y gris cálido; tipografía
   geométrica (Outfit) con acento serif cursivo; paneles redondeados y
   sombras difusas.
   ========================================================================== */

/* 1. VARIABLES */
:root {
  --navy: #14194d;
  --navy-deep: #0d1138;
  --ink: #14194d;
  --body: #5a5f82;
  --soft: #8087a8;

  --blue: #2f5bea;
  --blue-dark: #2347c8;
  --peri-50: #f2f4ff;
  --peri-100: #e6ebff;
  --peri-200: #d3dbfd;
  --peri-300: #b9c6fb;
  --peri-400: #8fa3f6;

  --white: #ffffff;
  --warm: #f4f2f3;
  --warm-card: #efecee;
  --line: #e6e8f5;

  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 44px;
  --r-pill: 9999px;

  --shadow-sm: 0 1px 2px rgba(20, 25, 77, 0.04), 0 4px 12px -4px rgba(20, 25, 77, 0.06);
  --shadow-md: 0 2px 4px rgba(20, 25, 77, 0.03), 0 18px 36px -18px rgba(47, 91, 234, 0.28);
  --shadow-lg: 0 30px 60px -28px rgba(47, 91, 234, 0.45), 0 10px 24px -14px rgba(20, 25, 77, 0.16);

  --container: 1120px;
  --header-h: 76px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* 2. BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) - 8px); }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--body);
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; }
svg { display: block; flex-shrink: 0; }

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }

/* Insignia en píldora */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  margin-bottom: 1.3rem;
  background: var(--white);
  border: 1px solid var(--peri-200);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--navy);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

.section { padding: 7rem 0; position: relative; }
.section-title {
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.section-header { margin: 0 auto 3.5rem; max-width: 680px; text-align: center; }
.section-subtitle { margin-top: 1rem; color: var(--body); font-size: 1.05rem; }

.block-title {
  margin: 4.5rem 0 1.8rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  text-align: center;
}

/* 3. NAVEGACIÓN */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.navbar { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.nav-brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-monogram {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 8px 16px -8px rgba(47, 91, 234, 0.7);
}
.brand-name { font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }

.nav-menu { display: flex; align-items: center; gap: 0.3rem; }
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  opacity: 0.75;
  transition: color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}
.nav-link:hover { opacity: 1; background: rgba(255, 255, 255, 0.7); }
.nav-link.active { opacity: 1; color: var(--blue); background: var(--white); box-shadow: var(--shadow-sm); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 0.7rem; cursor: pointer; }
.hamburger-line { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 4. BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.7rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.97rem;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.25s ease;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 20px -10px rgba(47, 91, 234, 0.8); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(47, 91, 234, 0.85); }

.btn-secondary { background: var(--peri-100); color: var(--blue); }
.btn-secondary:hover { background: var(--peri-200); transform: translateY(-2px); }

.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.55); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* 5. INICIO */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 9rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 12% 0%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #c6d2ff 0%, #dfe6ff 55%, #f3f5ff 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  right: -140px;
  top: 4%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0) 68%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  left: -140px;
  bottom: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 163, 246, 0.45), transparent 70%);
}

.hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-size: clamp(2.7rem, 9vw, 6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.hero-title span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.hero-quote {
  margin-top: 1.7rem;
  max-width: 32ch;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--navy);
}
.hero-bio { margin-top: 1.1rem; max-width: 46ch; color: var(--body); }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* Composición visual: ventana de interfaz con tarjetas flotantes */
.hero-visual { position: relative; padding: 1.8rem 1rem 2.5rem 2rem; }
.ui-window {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 6px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 8s ease-in-out infinite;
}
.ui-bar { display: flex; align-items: center; gap: 6px; padding: 0.85rem 1.1rem; background: var(--peri-50); }
.ui-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--peri-300); }
.ui-dot:first-child { background: var(--blue); }
.ui-url {
  margin-left: 0.8rem;
  padding: 0.15rem 0.9rem;
  border-radius: var(--r-pill);
  background: #fff;
  font-size: 0.75rem;
  color: var(--soft);
}
.ui-body { padding: 1.8rem 1.6rem; display: grid; gap: 0.75rem; }
.ui-line { height: 12px; border-radius: 6px; background: var(--peri-100); }
.ui-line-lg { width: 72%; height: 20px; background: var(--navy); }
.ui-line-md { width: 90%; }
.ui-line-sm { width: 58%; }
.ui-btn { width: 110px; height: 32px; margin-top: 0.5rem; border-radius: 9px; background: var(--blue); }
.ui-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.ui-tile { aspect-ratio: 1 / 0.8; border-radius: 12px; background: var(--peri-50); }
.ui-tile:nth-child(2) { background: linear-gradient(135deg, var(--peri-200), var(--peri-300)); }

.ui-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 1.05rem;
  border-radius: var(--r-md);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  box-shadow: 0 16px 34px -14px rgba(20, 25, 77, 0.35);
}
.ui-chip-code { top: -0.1rem; right: 0.4rem; color: var(--blue); animation: float 7s ease-in-out -2s infinite; }
.ui-chip-term { bottom: 0.4rem; left: -0.2rem; animation: float 9s ease-in-out -4s infinite; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 4px; background: var(--blue); animation: blink 1.1s steps(1) infinite; }
.ui-ring { position: absolute; z-index: 1; right: -1rem; bottom: 1rem; width: 150px; height: 150px; border-radius: 50%; border: 1.5px dashed var(--peri-400); opacity: 0.7; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes blink { 50% { opacity: 0; } }

/* 6. SOBRE MÍ — hoja blanca que se superpone al hero */
.section-about {
  margin-top: -4.5rem;
  z-index: 2;
  background: #fff;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: 0 -20px 50px -30px rgba(47, 91, 234, 0.35);
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about-intro .section-title { margin-bottom: 1.6rem; }
.about-text { font-size: 1.05rem; margin-bottom: 1.1rem; max-width: 52ch; }

.path {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1.1rem;
  border-radius: var(--r-md);
  background: var(--peri-50);
  font-size: 0.86rem;
  font-weight: 500;
}
.path-from { color: var(--soft); }
.path-line { width: 40px; height: 2px; background: var(--blue); position: relative; }
.path-line::after {
  content: '';
  position: absolute;
  right: 0;
  top: -3px;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue);
  border-right: 2px solid var(--blue);
  transform: rotate(45deg);
}
.path-to { color: var(--blue); }

.traits { display: grid; gap: 0.9rem; }
.trait {
  display: flex;
  gap: 1.2rem;
  padding: 1.3rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease, background 0.3s ease;
}
.trait:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--peri-50); }
.trait-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--peri-100);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 600;
}
.trait h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.trait p { margin-top: 0.2rem; font-size: 0.95rem; color: var(--body); }

/* 7. FORMACIÓN — fondo lavanda */
.section-education { background: linear-gradient(180deg, var(--peri-100) 0%, var(--peri-50) 100%); }

.edu-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: stretch; }
.edu-item { padding: 2.2rem; border-radius: var(--r-lg); background: var(--warm-card); }
.edu-current { background: var(--peri-200); box-shadow: var(--shadow-md); }
.edu-title { margin-top: 1.2rem; font-size: 1.4rem; font-weight: 600; line-height: 1.25; letter-spacing: -0.015em; color: var(--navy); }
.edu-meta { margin-top: 0.55rem; color: var(--body); font-size: 0.97rem; }

.badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.28rem 0.85rem; border-radius: var(--r-pill); font-size: 0.78rem; font-weight: 500; }
.badge-primary { background: var(--blue); color: #fff; }
.badge-primary::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.6s ease-in-out infinite; }
.badge-neutral { background: #fff; color: var(--soft); }

/* Módulos completados */
.modules { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.modules::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  top: 17px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--peri-300));
}
.module { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; text-align: center; padding: 0 0.5rem; }
.module-check {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 0 0 6px var(--peri-100), 0 10px 18px -8px rgba(47, 91, 234, 0.7);
  transition: transform 0.3s var(--ease);
}
.module:hover .module-check { transform: scale(1.12); }
.module-name { font-size: 0.97rem; font-weight: 500; color: var(--navy); line-height: 1.35; }

/* Conocimientos técnicos */
.skills-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.skill-group {
  padding: 1.9rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.skill-group:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.skill-group-title { font-size: 1.12rem; font-weight: 600; color: var(--navy); margin-bottom: 1.1rem; letter-spacing: -0.01em; }
.skills-list li { position: relative; padding-left: 1.9rem; margin-bottom: 0.65rem; font-size: 0.96rem; line-height: 1.5; }
.skills-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
}
.skills-list li::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 0.38em;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* 8. CERTIFICACIONES — fondo gris cálido */
.section-certifications { background: var(--warm); }
.cert-list { display: grid; gap: 0.8rem; }
.cert-item {
  display: grid;
  grid-template-columns: 2.6rem 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.cert-item:hover { transform: translateX(6px); box-shadow: var(--shadow-md); }
.cert-num { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 11px; background: var(--peri-100); color: var(--blue); font-size: 0.82rem; font-weight: 600; }
.cert-name { font-size: 1.15rem; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; }
.cert-tag { padding: 0.25rem 0.85rem; border-radius: var(--r-pill); background: var(--peri-100); color: var(--blue); font-size: 0.78rem; font-weight: 500; }

/* 9. BLOQUE "TU IDEA" */
.section-idea { padding: 6rem 0; background: #fff; }
.idea-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 45%, #27399a 100%);
  color: #ccd3f5;
  box-shadow: var(--shadow-lg);
}
.idea-glow {
  position: absolute;
  right: -100px;
  top: -140px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 163, 246, 0.6), transparent 66%);
}
.idea-panel > :not(.idea-glow) { position: relative; }
.idea-eyebrow {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  margin-bottom: 1.3rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: #fff;
}
.idea-title { max-width: 20ch; font-size: clamp(2rem, 4.4vw, 3.2rem); font-weight: 600; line-height: 1.08; letter-spacing: -0.03em; color: #fff; }
.idea-text { margin: 1.4rem 0 2.2rem; max-width: 58ch; font-size: 1.07rem; }

/* 10. CONTACTO */
.section-contact { background: linear-gradient(180deg, var(--peri-100) 0%, var(--peri-200) 100%); color: var(--body); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 5rem; align-items: start; }
.contact-lead { margin: 1rem 0 2.2rem; font-size: 1.05rem; }

.channels-list { display: grid; gap: 0.8rem; }
.channel-item { display: flex; flex-direction: column; padding: 1.1rem 1.4rem; border-radius: var(--r-md); background: rgba(255, 255, 255, 0.72); box-shadow: var(--shadow-sm); }
.channel-name { font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--soft); }
.channel-link { margin-top: 0.1rem; color: var(--navy); font-weight: 600; word-break: break-word; transition: color 0.2s ease; }
.channel-link:hover { color: var(--blue); }

.contact-form-card { padding: clamp(1.7rem, 4vw, 2.5rem); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-lg); }
.form-title { font-size: 1.3rem; font-weight: 600; color: var(--navy); margin-bottom: 1.4rem; letter-spacing: -0.01em; }
.contact-form { display: grid; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.35rem; }
.form-group label { font-size: 0.88rem; font-weight: 500; color: var(--navy); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--peri-50);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: #a2a8c6; }
.form-group input:focus,
.form-group textarea:focus { outline: none; background: #fff; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 91, 234, 0.14); }
.field-error { min-height: 0; font-size: 0.8rem; color: #b91c1c; }
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] { border-color: #dc2626; background: #fff; }
.form-hint { font-size: 0.82rem; color: var(--soft); line-height: 1.5; }
.form-notification { display: none; margin-top: 1rem; padding: 0.85rem 1.1rem; border-radius: var(--r-sm); font-size: 0.92rem; }
.form-notification.is-success { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-notification.is-error { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* 11. FOOTER */
.footer { background: var(--navy-deep); padding: 1.9rem 0; font-size: 0.9rem; color: #9aa2cf; }
.footer-container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.back-to-top { color: #fff; font-weight: 500; transition: color 0.2s ease; }
.back-to-top:hover { color: var(--peri-300); }

/* 12. APARICIÓN SUAVE */
.reveal-item { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal-item.is-visible { opacity: 1; transform: none; }

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

/* 13. RESPONSIVE */
@media (max-width: 1024px) {
  .section { padding: 5.5rem 0; }
  .hero-container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { max-width: 540px; padding: 1.5rem 1rem 2.5rem 1.5rem; }
  .about-grid, .contact-grid { gap: 3rem; }
  .skills-grid { gap: 1rem; }
  .skill-group { padding: 1.5rem; }
}

@media (max-width: 860px) {
  .about-grid, .contact-grid, .edu-list { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .section-idea { padding: 4.5rem 0; }

  .modules { grid-template-columns: 1fr; gap: 1.2rem; }
  .modules::before { left: 17px; right: auto; top: 17px; bottom: 17px; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), var(--peri-300)); }
  .module { flex-direction: row; text-align: left; gap: 1.1rem; padding: 0; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 1px 0 var(--line); }
  .nav-menu {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 0.6rem 1.2rem 1.2rem;
    background: #fff;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
    box-shadow: 0 30px 40px -24px rgba(20, 25, 77, 0.3);
  }
  .nav-menu.is-active { display: flex; }
  .nav-link { padding: 0.9rem 1rem; border-radius: var(--r-sm); opacity: 1; }
}

@media (max-width: 560px) {
  .container { padding: 0 1.15rem; }
  .section { padding: 4.5rem 0; }
  .section-about { margin-top: -3rem; border-radius: 30px 30px 0 0; }
  .hero-section { min-height: auto; padding: calc(var(--header-h) + 2rem) 0 6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-visual { padding: 1rem 0.4rem 2rem 0.6rem; }
  .ui-ring { display: none; }
  .ui-chip { font-size: 0.78rem; padding: 0.5rem 0.8rem; }
  .path { flex-wrap: wrap; }
  .path-line { display: none; }
  .path-from::after { content: ' →'; color: var(--blue); }
  .idea-panel { border-radius: var(--r-lg); }
  .edu-item { padding: 1.6rem; }
  .cert-item { grid-template-columns: 2.4rem 1fr; padding: 1rem 1.1rem; }
  .cert-tag { display: none; }
  .block-title { margin-top: 3.2rem; }
}
