/* ============================================================
   kennycondezo.com — estilos
   Paleta: navy #0B1F3A → #1F3864 · ámbar #D4A94A · gris #F5F7FA
   Tipografía: Inter (Google Fonts)
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-2: #1F3864;
  --amber: #D4A94A;
  --amber-dark: #9E7826;
  --gray: #4A5568;
  --light: #F5F7FA;
  --border: #E6EBF1;
  --white: #FFFFFF;
  --hero-text: #C9D4E4;
  --radius: 12px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 4px 14px rgba(11, 31, 58, 0.07);
  --grad-navy: linear-gradient(135deg, #0B1F3A 0%, #1F3864 100%);
  --container: 1280px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 80px;
}

section[id] { scroll-margin-top: 84px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { box-shadow: 0 6px 18px rgba(212, 169, 74, 0.4); }
.btn-outline-light { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.1); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { box-shadow: 0 6px 18px rgba(11, 31, 58, 0.3); }
.btn-outline-navy { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline-navy:hover { background: rgba(11, 31, 58, 0.06); }

/* ---------- Overlines / headings ---------- */
.overline {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--amber-dark);
}
.section-title {
  font-size: 34px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-top: 12px;
}
.section-head { margin-bottom: 40px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 12px rgba(11, 31, 58, 0.08); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-badge {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.brand-name { font-weight: 600; font-size: 18px; color: var(--navy); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--gray);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta { padding: 10px 20px; font-size: 15px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { background: var(--grad-navy); color: var(--white); overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  padding-top: 64px;
}
.hero-copy { padding: 40px 0 80px; }
.hero-copy .overline { color: var(--amber); }
.hero-title {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.22;
  max-width: 620px;
  margin-top: 24px;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.58;
  color: var(--hero-text);
  max-width: 560px;
  margin-top: 24px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.hero-photo { align-self: end; }
.hero-photo img {
  width: 480px;
  height: 560px;
  object-fit: cover;
  object-position: top center;
}

/* ---------- Stats ---------- */
.stats { border-bottom: 1px solid var(--border); background: var(--white); }
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.stat { text-align: center; }
.stat::before {
  content: "";
  display: block;
  width: 28px; height: 3px;
  border-radius: 2px;
  background: var(--amber);
  margin: 0 auto 10px;
}
.stat-value { font-size: 36px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-label { font-size: 14.5px; color: var(--gray); margin-top: 6px; }

/* ---------- Sobre mí ---------- */
.sobre-mi { padding: 96px 0; background: var(--white); }
.sobre-mi-inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: center;
}
.sobre-mi-photo { position: relative; }
.sobre-mi-photo::after {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  background: rgba(212, 169, 74, 0.35);
  border-radius: 16px;
  z-index: 0;
}
.sobre-mi-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 16px;
}
.sobre-mi-text p { color: var(--gray); margin-top: 20px; line-height: 1.65; }
.quote {
  display: flex;
  gap: 16px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 24px;
}
.quote::before {
  content: "";
  flex: 0 0 4px;
  border-radius: 2px;
  background: var(--amber);
}
.quote p { margin: 0; font-weight: 500; font-size: 16px; color: var(--navy); }

/* ---------- Trayectoria ---------- */
.trayectoria { padding: 96px 0; background: var(--light); }
.timeline { display: flex; flex-direction: column; gap: 16px; }
.timeline-card {
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
}
.timeline-years {
  flex: 0 0 140px;
  font-weight: 600;
  font-size: 14px;
  color: var(--amber-dark);
}
.timeline-role { font-weight: 600; font-size: 17px; color: var(--navy); }
.timeline-role span { color: var(--gray); font-weight: 500; }
.timeline-desc { font-size: 14.5px; color: var(--gray); margin-top: 4px; line-height: 1.5; }

/* ---------- Formación ---------- */
.formacion { padding: 96px 0; background: var(--white); }
.edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.edu-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.edu-inst {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--amber-dark);
  text-transform: uppercase;
}
.edu-degree { font-weight: 600; font-size: 17px; line-height: 1.4; margin-top: 6px; }
.cert-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.chip {
  padding: 9px 18px;
  border: 1px solid #CCD6E3;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
}

/* ---------- Casos y Perspectivas ---------- */
.perspectivas { padding: 96px 0; background: var(--light); }
.perspectivas .section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.ver-todos { font-weight: 600; font-size: 15px; color: var(--navy-2); white-space: nowrap; }
.ver-todos:hover { color: var(--navy); }
.articles { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.article-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(11, 31, 58, 0.12); }
.tag {
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(212, 169, 74, 0.18);
  color: var(--amber-dark);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.article-title { font-size: 21px; font-weight: 600; line-height: 1.42; color: var(--navy); }
.article-meta { font-size: 14px; font-weight: 500; color: var(--gray); margin-top: auto; }

/* ---------- Charlas ---------- */
.charlas { background: var(--grad-navy); color: var(--white); padding: 72px 0; }
.charlas-inner { display: flex; align-items: center; gap: 48px; }
.charlas-copy { flex: 1; }
.charlas-copy .overline { color: var(--amber); }
.charlas-title { font-size: 30px; font-weight: 700; line-height: 1.27; max-width: 640px; margin-top: 16px; }
.charlas-sub { font-size: 17px; color: var(--hero-text); max-width: 640px; margin-top: 16px; }

/* ---------- Contacto ---------- */
.contacto { padding: 96px 0; background: var(--white); text-align: center; }
.avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber);
  margin: 0 auto;
}
.contacto h2 { font-size: 34px; font-weight: 700; margin-top: 24px; }
.contacto p { color: var(--gray); margin-top: 16px; }
.contacto-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--hero-text); padding: 28px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-links a { color: var(--amber); font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* ---------- Páginas de artículo ---------- */
.article-page { padding: 72px 0 96px; }
.article-page .container { max-width: 800px; }
.article-header .tag { display: inline-block; }
.article-page h1 { font-size: 38px; font-weight: 700; line-height: 1.25; margin-top: 20px; }
.article-page .article-byline { color: var(--gray); font-size: 15px; margin-top: 14px; }
.article-body { margin-top: 40px; }
.article-body p { color: #333F50; margin-bottom: 22px; line-height: 1.75; }
.article-body ol { margin: 0 0 22px 22px; color: #333F50; }
.article-body ol li { margin-bottom: 10px; line-height: 1.7; }
.article-body .destacado { font-weight: 600; color: var(--navy); }
.article-back { display: inline-block; font-weight: 600; font-size: 15px; color: var(--navy-2); margin-bottom: 32px; }
.article-back:hover { color: var(--navy); }
.article-cta {
  margin-top: 48px;
  background: var(--light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.article-cta p { font-weight: 500; margin-bottom: 18px; }

/* ---------- Animación de entrada ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive — mobile-first breakpoints
   ============================================================ */
@media (max-width: 1080px) {
  .container { padding: 0 40px; }
  .hero-photo img { width: 380px; height: 460px; }
  .hero-title { font-size: 38px; }
  .sobre-mi-inner { grid-template-columns: 1fr; gap: 48px; }
  .sobre-mi-photo { max-width: 480px; }
  .edu-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .container { padding: 0 24px; }
  section[id] { scroll-margin-top: 70px; }

  /* Nav mobile */
  .nav-inner { padding-top: 14px; padding-bottom: 14px; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--white);
    box-shadow: 0 12px 24px rgba(11, 31, 58, 0.12);
    padding: 8px 24px 20px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; font-size: 16px; }
  .nav-cta { margin-top: 8px; width: 100%; }

  /* Hero */
  .hero-inner { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-copy { padding: 0; }
  .hero-title { font-size: 30px; margin-top: 20px; }
  .hero-sub { font-size: 16px; margin-top: 20px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-photo { margin-top: 32px; }
  .hero-photo img { width: 100%; height: 380px; }

  /* Stats 2x2 */
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 32px; padding-bottom: 32px; }
  .stat { background: var(--light); border-radius: var(--radius); padding: 16px 14px; }
  .stat::before { display: none; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12.5px; line-height: 1.35; }

  .section-title { font-size: 26px; }
  .sobre-mi, .trayectoria, .formacion, .perspectivas, .contacto { padding: 64px 0; }
  .sobre-mi-photo::after { inset: 12px -10px -10px 12px; }
  .sobre-mi-photo img { height: 400px; border-radius: 14px; }

  /* Timeline mobile: apilado */
  .timeline-card { flex-direction: column; align-items: flex-start; gap: 4px; padding: 18px 20px; }
  .timeline-years { flex: none; font-size: 12.5px; }
  .timeline-role { font-size: 16.5px; }
  .timeline-role span { display: block; font-size: 14px; margin-top: 2px; }
  .timeline-desc { font-size: 13px; }

  .edu-grid { grid-template-columns: 1fr; gap: 14px; }
  .edu-card { padding: 16px 18px; }
  .edu-degree { font-size: 15.5px; }
  .cert-chips { margin-top: 24px; gap: 8px; }
  .chip { padding: 8px 14px; font-size: 13px; }

  .perspectivas .section-head { flex-direction: column; align-items: flex-start; }
  .articles { grid-template-columns: 1fr; gap: 16px; }
  .article-card { padding: 22px; }
  .article-title { font-size: 17.5px; }

  .charlas { padding: 56px 0; }
  .charlas-inner { flex-direction: column; align-items: flex-start; }
  .charlas-title { font-size: 24px; }
  .charlas-sub { font-size: 15px; }
  .charlas .btn { width: 100%; }

  .contacto h2 { font-size: 28px; }
  .contacto-actions { flex-direction: column; align-items: stretch; max-width: 294px; margin-left: auto; margin-right: auto; }

  .footer-inner { flex-direction: column; text-align: center; font-size: 12.5px; }

  .article-page h1 { font-size: 28px; }
}
