/* =========================================================
   Hernán López Archila — sitio personal v6
   Brand: navy #010F36 · electric #232DDD · azure #0C60F7
   Fonts: Plus Jakarta Sans (Nekst fallback) · Inter (Articulat CF fallback)
   ========================================================= */

:root {
  --navy: #010F36;
  --navy-90: rgba(1, 15, 54, 0.92);
  --navy-70: rgba(1, 15, 54, 0.7);
  --navy-50: rgba(1, 15, 54, 0.5);
  --navy-12: rgba(1, 15, 54, 0.12);
  --navy-06: rgba(1, 15, 54, 0.06);

  --electric: #232DDD;
  --azure: #0C60F7;
  --sky: #4799FF;
  --soft: #6997EC;

  --paper: #FBFCFF;
  --paper-2: #F4F6FB;
  --line: #E5E9F2;
  --white: #FFFFFF;

  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 12px rgba(1, 15, 54, 0.05);
  --shadow-md: 0 12px 40px rgba(1, 15, 54, 0.08);
  --shadow-lg: 0 30px 80px rgba(1, 15, 54, 0.12);

  --maxw: 1180px;
  --maxw-narrow: 820px;

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

::selection { background: var(--electric); color: #fff; }

/* ---------- layout ---------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}
.container.narrow { max-width: var(--maxw-narrow); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--electric);
  margin-bottom: 18px;
}
.eyebrow.center { display: block; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--navy);
}
.section-sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--navy-70);
  max-width: 620px;
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
}

.muted { color: var(--navy-50); font-weight: 700; }
.accent { color: var(--electric); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 18px 32px; font-size: 16px; }

.btn-primary {
  background: var(--electric);
  color: #fff;
  box-shadow: 0 12px 28px rgba(35, 45, 221, 0.28);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(35, 45, 221, 0.34);
  background: #1a23c8;
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy-12);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 40px);
  background: rgba(251, 252, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.brand-text { font-size: 15px; letter-spacing: -0.01em; }

.site-nav {
  display: flex;
  gap: 28px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-70);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--navy); }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .brand-text { display: none; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: clamp(60px, 10vw, 120px) 0 clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -200px -200px auto auto;
  width: 700px;
  height: 700px;
  background: radial-gradient(closest-side, rgba(71, 153, 255, 0.18), rgba(71, 153, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -240px;
  left: -240px;
  width: 600px;
  height: 600px;
  background: radial-gradient(closest-side, rgba(35, 45, 221, 0.10), rgba(35, 45, 221, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  color: var(--navy);
}
.hero-copy .lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--navy-70);
  margin: 0 0 32px;
  max-width: 56ch;
}
.hero-copy .lead strong {
  color: var(--navy);
  font-weight: 600;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-trust {
  font-size: 13px;
  color: var(--navy-50);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  border: 6px solid #fff;
}
.photo-aura {
  position: absolute;
  inset: -8% -8% -8% -8%;
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(35, 45, 221, 0.18), transparent 60%),
    radial-gradient(60% 60% at 75% 80%, rgba(71, 153, 255, 0.22), transparent 65%);
  filter: blur(12px);
  z-index: 1;
  border-radius: 40px;
}
.photo-tag {
  position: absolute;
  bottom: -16px;
  right: 4%;
  z-index: 3;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { max-width: 320px; }
}

/* ---------- mision ---------- */

.mision {
  padding: clamp(60px, 9vw, 110px) 0;
  background: var(--paper-2);
  border-block: 1px solid var(--line);
  text-align: center;
}
.manifesto {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--navy-70);
  max-width: 720px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  line-height: 1.6;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
@media (max-width: 800px) {
  .pillars { grid-template-columns: 1fr; }
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft);
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(12, 96, 247, 0.10);
  color: var(--azure);
  margin-bottom: 18px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 0 10px;
  color: var(--navy);
  line-height: 1.25;
}
.pillar p {
  font-size: 15px;
  color: var(--navy-70);
  margin: 0;
  line-height: 1.55;
}

/* ---------- contenido / canales ---------- */

.contenido {
  padding: clamp(70px, 10vw, 120px) 0;
}

.channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .channels { grid-template-columns: 1fr; }
}
.channel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.channel::before {
  content: "";
  position: absolute;
  inset: auto -40% -40% auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(closest-side, rgba(71, 153, 255, 0.18), rgba(71, 153, 255, 0));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.channel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--soft);
}
.channel:hover::before { opacity: 1; }

.channel-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--navy-06);
  color: var(--navy);
}
.channel-icon svg { width: 22px; height: 22px; }
.channel-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy-70);
}
.channel h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.channel p {
  margin: 0;
  font-size: 15px;
  color: var(--navy-70);
  line-height: 1.55;
}
.channel-link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--electric);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.channel-feature {
  background: linear-gradient(135deg, var(--navy) 0%, #0a1e60 100%);
  color: #fff;
  border-color: transparent;
}
.channel-feature::before {
  background: radial-gradient(closest-side, rgba(71, 153, 255, 0.30), rgba(71, 153, 255, 0));
}
.channel-feature .channel-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.channel-feature .channel-name { color: rgba(255, 255, 255, 0.7); }
.channel-feature h3 { color: #fff; }
.channel-feature p { color: rgba(255, 255, 255, 0.78); }
.channel-feature .channel-link { color: var(--sky); }
.channel-feature:hover { border-color: transparent; }

/* ---------- quote ---------- */

.quote {
  padding: clamp(60px, 8vw, 100px) 0;
  text-align: center;
  background:
    linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}
.quote blockquote {
  margin: 0;
  padding: 0;
}
.quote p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin: 0 0 18px;
}
.quote cite {
  font-style: normal;
  font-size: 14px;
  color: var(--navy-50);
  letter-spacing: 0.04em;
}

/* ---------- cta ---------- */

.cta {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0;
  background: linear-gradient(135deg, var(--navy) 0%, #061c5a 60%, var(--electric) 130%);
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(closest-side, rgba(71, 153, 255, 0.28), rgba(71, 153, 255, 0) 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}
.cta p {
  max-width: 620px;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.1rem);
}
.cta .btn-primary {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.cta .btn-primary:hover {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 20px 50px rgba(71, 153, 255, 0.45);
}
.cta-fine {
  margin-top: 22px !important;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding: clamp(48px, 6vw, 70px) 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr auto 1.2fr;
  align-items: center;
  gap: 32px;
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
}
.site-footer .brand-mark {
  background: rgba(255, 255, 255, 0.10);
  margin-bottom: 12px;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  margin: 0;
}
.footer-line {
  margin: 4px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.02em;
}
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.footer-social a:hover {
  background: var(--electric);
  border-color: var(--electric);
  color: #fff;
  transform: translateY(-2px);
}
.footer-copy {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
  text-align: right;
}
@media (max-width: 720px) {
  .footer-copy { text-align: center; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
