/* ==========================================================================
   maitret.dev — Hoja de estilos principal v2
   --------------------------------------------------------------------------
   Diseño: profesional, moderno y sobrio (confianza + seriedad).
   Enfoque: profesionalismo, atención al cliente, software, productividad,
            mejora continua, seguridad y resolución de problemas.

   Estructura:
     01. Tokens (variables)
     02. Base + reset + accesibilidad
     03. Utilidades (container, section, botones, badges, eyebrow)
     04. Navegación
     05. Hero / cabecera ejecutiva
     06. Franja de confianza
     07. Perfil
     08. Experiencia (timeline)
     09. Habilidades
     10. Educación
     11. Productos (apoyo a experiencia)
     12. Contacto + formulario
     13. Footer
     14. Animación reveal
     15. Responsive (1080 / 760 / 480)
     16. Print (la versión descargable vive en preview_cv.php)
     17. Movimiento reducido
   Mantenimiento: cambie colores solo en :root. No use !important salvo nota.
   ========================================================================== */

/* ---------- 01. Tokens ---------- */
:root {
  /* Marca — navy profundo = confianza / seriedad */
  --navy: #0a2540;
  --navy-2: #14365e;
  --accent: #0e7490;        /* teal profesional */
  --accent-dark: #0b5563;
  --accent-soft: #e6f4f8;   /* fondos sutiles */
  --gold: #b78c2e;          /* acento premium mínimo (líneas, detalles) */
  --success: #0f766e;
  --success-bg: #ecfdf5;
  --success-line: #a7f3d0;

  /* Superficies y texto */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --text: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;

  /* Forma y sombra */
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 32px rgba(10, 37, 64, 0.08);
  --shadow-soft: 0 4px 16px rgba(10, 37, 64, 0.06);
  --max: 1140px;

  /* Tipografía */
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* compensa navbar sticky en anclas */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
::selection { background: var(--accent-soft); }

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

/* Enlace "saltar al contenido" — accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0 0 10px 0;
  z-index: 200;
  font-weight: 700;
  font-size: 0.9rem;
}
.skip-link:focus { left: 0; color: #fff; }

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

.section { padding: 76px 0; }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-header.left { text-align: left; margin-left: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.lead { color: var(--muted); font-size: 1.05rem; line-height: 1.75; }
.lead strong, p strong { color: var(--text); }
.muted { color: var(--muted); }
.small { font-size: 0.86rem; line-height: 1.6; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid var(--line);
  color: var(--navy);
}
.badge-success {
  background: var(--success-bg);
  color: #065f46;
  border-color: var(--success-line);
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.88rem 1.3rem;
  border-radius: 10px;
  font: 700 0.95rem/1 var(--sans);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); color: #fff; }
.btn-secondary { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--navy); background: #f8fafc; }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--navy); background: var(--bg-alt); }
.btn-sm { padding: 0.62rem 0.95rem; font-size: 0.87rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- 04. Navegación ---------- */
#navbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(12px) saturate(1.2);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
#navbar.scrolled { box-shadow: 0 10px 28px rgba(10, 37, 64, 0.07); }
.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.logo { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  border-radius: 9px;
  font-family: var(--serif); font-weight: 800; font-size: 0.95rem;
}
.logo-text { font-size: 1.05rem; }
.logo-dot { color: var(--accent); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-alt); }
.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 0.62rem 1rem !important;
  border-radius: 10px !important;
}
.nav-cta:hover { background: var(--navy-2) !important; }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; }
.mobile-menu-btn {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  color: var(--navy);
  cursor: pointer;
}
.hide-mobile { display: inline-flex; }

/* ---------- 05. Hero ---------- */
.hero {
  background:
    radial-gradient(880px 380px at 12% -10%, var(--accent-soft) 0%, transparent 55%),
    linear-gradient(to bottom, #ffffff, #fcfdff);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 30px;
}
.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 28px;
  align-items: start;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-bg);
  border: 1px solid var(--success-line);
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 16px;
}
.kicker-dot {
  width: 8px; height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.15);
  flex-shrink: 0;
}
.hero-title { margin-bottom: 14px; }
.hero-name {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.1rem, 4vw, 3.05rem);
  letter-spacing: -0.04em;
  line-height: 0.98;
  color: var(--navy);
}
.hero-name em { font-style: normal; color: var(--accent); }
.hero-role { display: block; margin-top: 9px; font-size: 1.14rem; font-weight: 700; color: var(--accent-dark); }
.hero-subtitle {
  display: block;
  margin-top: 7px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-desc { color: var(--body); font-size: 1.02rem; line-height: 1.8; max-width: 640px; margin-bottom: 15px; }
.hero-desc strong { color: var(--navy); }
.hero-meta {
  display: flex; flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 19px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Tarjeta lateral + métricas */
.hero-side { display: flex; flex-direction: column; gap: 15px; }
.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.contact-card-head {
  display: flex; gap: 12px; align-items: center;
  padding: 17px 18px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, #f8fafc, #fff);
}
.avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff;
  font-family: var(--serif); font-weight: 800;
  flex-shrink: 0;
}
.contact-card-name { font-weight: 800; color: var(--navy); line-height: 1.15; }
.contact-card-role { font-size: 0.81rem; color: var(--muted); font-weight: 600; }
.contact-card-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.contact-line { display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
.contact-line.is-muted { color: var(--muted); font-weight: 500; }
.contact-card-foot { padding: 12px 18px; background: #f8fafc; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }

.metrics-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.metric-value { font-family: var(--serif); font-weight: 800; font-size: 1.6rem; color: var(--navy); line-height: 1; }
.metric-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.hero-note {
  display: flex; gap: 0.55rem; align-items: flex-start;
  color: var(--muted); font-size: 0.84rem;
  background: #fff; border: 1px dashed var(--line);
  border-radius: 12px; padding: 10px 12px; line-height: 1.55;
}

/* ---------- 06. Franja de confianza ---------- */
.trust-bar { background: var(--navy); color: #cbd5e1; padding: 11px 0; font-size: 0.88rem; }
.trust-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 24px;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.trust-label {
  font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase;
  color: #fff; font-size: 0.72rem;
  background: rgba(255, 255, 255, 0.13);
  padding: 0.35rem 0.65rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
}

/* ---------- 07. Perfil ---------- */
.profile-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 22px; align-items: start; }
.profile-text p { color: var(--body); margin-bottom: 12px; line-height: 1.85; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--body); font-weight: 500; }
.check-list svg { color: var(--success); margin-top: 3px; flex-shrink: 0; }
.profile-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold); /* detalle premium sobrio */
}
.profile-card h3 { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: 12px; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 17px; }
.steps li { position: relative; padding-left: 33px; color: var(--body); font-size: 0.93rem; line-height: 1.65; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal);
  position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark);
  border: 1px solid #b9e3ee;
  display: grid; place-items: center;
  font-weight: 800; font-size: 0.76rem;
}
.steps { counter-reset: step; }
.steps li strong { color: var(--navy); }

/* ---------- 08. Experiencia (timeline) ---------- */
.timeline { position: relative; max-width: 880px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute;
  left: 11px; top: 10px; bottom: 10px;
  width: 2px; background: var(--line);
}
.t-item { position: relative; padding-left: 38px; padding-bottom: 18px; }
.t-item:last-child { padding-bottom: 0; }
.t-dot {
  position: absolute; left: 4px; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.t-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.t-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 9px; }
.t-company { font-weight: 800; color: var(--accent-dark); font-size: 0.86rem; letter-spacing: 0.02em; }
.t-role { font-family: var(--serif); font-size: 1.1rem; color: var(--navy); line-height: 1.32; margin-top: 2px; }
.t-date {
  font-weight: 700; font-size: 0.79rem; color: var(--navy);
  background: #f1f5f9; border: 1px solid var(--line);
  padding: 0.35rem 0.65rem; border-radius: 999px; white-space: nowrap;
}
.t-date a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.t-desc { color: var(--body); font-size: 0.95rem; line-height: 1.75; margin-bottom: 10px; }
.t-desc strong { color: var(--navy); }
.t-bullets { margin: 0 0 12px 18px; color: var(--body); font-size: 0.91rem; line-height: 1.65; }
.t-bullets li { margin-bottom: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  font-size: 0.74rem; font-weight: 700;
  padding: 0.3rem 0.62rem; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--line); color: var(--navy);
}
.tag-accent { background: var(--accent-soft); color: var(--accent-dark); border-color: #b9e3ee; }

/* ---------- 09. Habilidades ---------- */
.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
}
.skill-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 8px; color: var(--navy); }
.skill-head h3 { font-size: 1.01rem; letter-spacing: -0.01em; }
.skill-desc { color: var(--muted); font-size: 0.91rem; line-height: 1.62; margin-bottom: 11px; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tags span {
  font-size: 0.78rem; font-weight: 600;
  padding: 0.36rem 0.62rem; border-radius: 999px;
  background: #f8fafc; border: 1px solid var(--line); color: var(--body);
}
/* Nivel visual con puntos */
.skill-levels { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; border-top: 1px solid var(--line); padding-top: 13px; }
.lvl { display: flex; justify-content: space-between; align-items: center; font-size: 0.87rem; font-weight: 600; color: var(--body); }
.dots { display: inline-flex; gap: 3px; }
.d { width: 7px; height: 7px; border-radius: 50%; background: #e2e8f0; display: inline-block; }
.d.on { background: var(--accent); box-shadow: 0 0 8px rgba(14, 116, 144, 0.35); }
.soft-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.soft-list li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--body); font-size: 0.91rem; line-height: 1.6; }
.soft-list svg { color: var(--success); margin-top: 2px; flex-shrink: 0; }

/* ---------- 10. Educación ---------- */
.edu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.edu-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px;
  box-shadow: var(--shadow-soft);
  position: relative;
}
.edu-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-dark);
  border: 1px solid #cfeaf2; margin-bottom: 11px;
  overflow: hidden;
}
.edu-icon img { width: 28px; height: 28px; object-fit: contain; display: block; }
.edu-card h4 { font-size: 0.99rem; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.edu-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.62; }
.edu-meta {
  margin-top: 0.7rem;
  display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center;
}
.edu-date {
  font-size: 0.73rem; font-weight: 700; color: var(--muted);
  background: #f8fafc; border: 1px solid var(--line);
  padding: 0.2rem 0.55rem; border-radius: 999px;
}
.edu-link { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.edu-card.is-new {
  border-color: var(--success-line);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.09);
}
.edu-flag {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--success-bg); color: #065f46;
  border: 1px solid var(--success-line);
  padding: 0.22rem 0.5rem; border-radius: 999px;
}
.edu-highlight { background: var(--navy); border-color: var(--navy); color: #e2e8f0; }
.edu-highlight h4 { color: #fff; }
.edu-highlight p { color: #cbd5e1; }
.edu-head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.edu-title {
  font-family: var(--serif);
  font-size: 1.15rem; color: var(--navy); margin: 0;
  display: flex; align-items: center; gap: 0.55rem;
}
.edu-title-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy); color: #fff;
  font-size: 0.75rem; font-weight: 800; font-family: var(--sans);
}

/* ---------- 11. Productos ---------- */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 19px;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card.featured { grid-column: span 2; border-color: var(--success-line); }
.product-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.product-badge {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.32rem 0.62rem; border-radius: 999px; border: 1px solid var(--line);
  background: #f8fafc; color: var(--navy);
}
.product-badge.green { background: var(--success-bg); color: #065f46; border-color: var(--success-line); }
.product-badge.blue { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.product-badge.violet { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.product-badge.amber { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.product-badge.rose { background: #fff1f2; color: #9f1239; border-color: #fecdd3; }
.product-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-family: var(--serif); font-size: 0.92rem;
  flex-shrink: 0;
}
.product-icon.green { background: linear-gradient(135deg, #0f766e, #10b981); }
.product-icon.blue { background: linear-gradient(135deg, #0e7490, #0a2540); }
.product-icon.violet { background: linear-gradient(135deg, #6d28d9, #7c3aed); }
.product-icon.amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.product-icon.rose { background: linear-gradient(135deg, #e11d48, #fb7185); }
.product-card h3 { font-family: var(--serif); font-size: 1.22rem; color: var(--navy); }
.product-role { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-top: -7px; }
.product-card > p { color: var(--body); font-size: 0.93rem; line-height: 1.7; }
.product-features { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.product-features li { display: flex; gap: 0.5rem; align-items: flex-start; color: var(--body); font-size: 0.87rem; line-height: 1.6; }
.product-features svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.product-stats { display: flex; gap: 14px; border-top: 1px solid var(--line); padding-top: 11px; font-size: 0.87rem; color: var(--body); }
.product-stats strong { color: var(--navy); }
.product-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--navy); margin-top: auto; }
.product-link:hover { color: var(--accent); }
.product-cta { background: linear-gradient(to bottom, #f8fafc, #fff); border-style: dashed; }

/* ---------- 12. Contacto ---------- */
.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.contact-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: var(--navy); margin-bottom: 10px; letter-spacing: -0.02em;
}
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 19px 0; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-weight: 600; font-size: 0.9rem; }
.contact-meta span { display: inline-flex; align-items: center; gap: 0.45rem; }

/* Formulario — espaciado y foco accesible */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px 22px 18px;
  display: flex; flex-direction: column; gap: 13px;
  border-top: 3px solid var(--navy);
}
.form-card h3 { font-family: var(--serif); font-size: 1.18rem; font-weight: 800; color: var(--navy); line-height: 1.2; }
.form-card > p { color: var(--muted); font-size: 0.86rem; line-height: 1.55; }
.form-card form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { font-size: 0.82rem; font-weight: 700; color: #1e293b; line-height: 1.3; }
.field .req { color: var(--accent); }
.field input, .field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  font: 400 0.92rem/1.5 var(--sans);
  color: var(--text);
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.13);
}
.field textarea { resize: vertical; min-height: 112px; line-height: 1.6; }
.form-status {
  min-height: 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: 8px;
}
.form-status.ok { color: #065f46; background: var(--success-bg); border: 1px solid var(--success-line); padding: 0.6rem 0.8rem; }
.form-status.err { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; padding: 0.6rem 0.8rem; }
.form-foot {
  margin: 0; padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center; font-size: 0.84rem; color: var(--muted);
}

/* ---------- 13. Footer ---------- */
.footer { background: var(--navy); color: #cbd5e1; padding: 38px 0 18px; margin-top: 44px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 24px; }
.footer-brand p { color: #94a3b8; font-size: 0.93rem; line-height: 1.7; margin-top: 11px; max-width: 430px; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: #fff; color: var(--navy); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.footer-badges .badge { background: rgba(255, 255, 255, 0.08); color: #e2e8f0; border-color: rgba(255, 255, 255, 0.14); }
.footer h4 { color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 13px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a { color: #cbd5e1; font-weight: 500; font-size: 0.92rem; }
.footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 24px; padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #94a3b8; font-size: 0.86rem;
}

/* ---------- 14. Reveal (animación sutil) ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 15. Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner, .profile-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .values-note { max-width: none; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card.featured { grid-column: span 2; }
  .edu-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 54px 0; }
  .container, .nav-container, .hero-inner, .trust-inner { padding-left: 16px; padding-right: 16px; }

  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch;
    padding: 12px 16px 14px; gap: 3px;
    box-shadow: 0 22px 44px rgba(10, 37, 64, 0.09);
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 0.85rem 1rem; }
  .nav-cta { text-align: center; }
  .mobile-menu-btn { display: inline-flex; }
  .hide-mobile { display: none; }

  .hero { padding-top: 22px; }
  .hero-desc { font-size: 0.98rem; }
  .hero-actions .btn { flex: 1 1 100%; }

  .skills-grid, .products-grid, .edu-grid { grid-template-columns: 1fr; }
  .product-card.featured { grid-column: span 1; }

  .timeline::before { left: 7px; }
  .t-item { padding-left: 28px; }
  .t-dot { left: 0; }
  .t-head { flex-direction: column; }
  .t-date { align-self: flex-start; }

  .trust-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .metric-value { font-size: 1.35rem; }
  .hero-name { font-size: 2rem; }
  .metrics-grid { gap: 10px; }
  .btn { width: 100%; }
  .hero-kicker { font-size: 0.76rem; }
}

/* ---------- 16. Print (web) ---------- */
@media print {
  #navbar, .trust-bar, .hero-actions, .contact-actions, .form-card, .footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .section-alt { background: #fff; border: none; padding: 26px 0; }
  .hero { background: #fff; border: none; padding: 16px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .contact-card, .metric, .t-card, .skill-card, .product-card, .edu-card, .profile-card {
    box-shadow: none;
    border: 1px solid #d1d5db;
    break-inside: avoid;
  }
  a { color: #000; text-decoration: none; }
  .hero-name, .section-header h2, .t-role, .product-card h3 { color: #000; }
}

/* ---------- 17. Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
