/* ═══════════════════════════════════════════════════════════
   JUNAV CAPITAL — Diseño moderno
   Paleta: navy #0a1628 · gold #c9a84c · surface #f7f8fb
═══════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --navy:        #0a1628;
  --navy-800:    #0f2040;
  --navy-700:    #152c55;
  --gold:        #c9a84c;
  --gold-2:      #e4c06e;
  --gold-3:      #f5d98b;
  --white:       #ffffff;
  --surface:     #f7f8fb;
  --surface-2:   #eef0f5;
  --text:        #111827;
  --text-muted:  #6b7280;
  --border:      rgba(0,0,0,.08);

  --font: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-pill: 100px;

  --header-h:    68px;
  --ease:        cubic-bezier(.4, 0, .2, 1);
  --duration:    220ms;
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3 { line-height: 1.15; }

/* ── Layout helpers ────────────────────────────────────── */
.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}
.section { padding-block: 96px; }

/* Section label */
.label {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  padding: .3rem .75rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section-header {
  text-align: center;
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 56px;
}
.section-header h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; margin-bottom: .75rem; }
.section-header p { color: var(--text-muted); font-size: 1.0625rem; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font);
  font-weight: 600;
  font-size: .9375rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--duration) var(--ease),
              color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  box-shadow: 0 6px 24px rgba(201,168,76,.35);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border-color: rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}
.btn-full { width: 100%; justify-content: center; }


/* ══════════════════════════════════════════════ HEADER ══ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10,22,40,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: border-color var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease);
}
.site-header.scrolled {
  border-bottom-color: rgba(201,168,76,.2);
  box-shadow: 0 4px 32px rgba(0,0,0,.25);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo monograma */
.logo-link { display: inline-flex; align-items: center; text-decoration: none; }
.logo-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
}
.lm-mono {
  display: flex;
  align-items: baseline;
}
.lm-j, .lm-c {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  display: block;
}
.lm-j { margin-right: -.15em; }
.lm-divider {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}
.lm-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lm-name {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--white);
  line-height: 1;
}
.lm-sub {
  font-size: .5625rem;
  font-weight: 400;
  letter-spacing: .18em;
  color: var(--gold);
  line-height: 1;
}
.logo-link--sm .lm-j,
.logo-link--sm .lm-c { font-size: 1.6rem; }
.logo-link--sm .lm-divider { height: 20px; }
.logo-link--sm .lm-name { font-size: .5625rem; }
.logo-link--sm .lm-sub  { font-size: .5rem; }

.main-nav ul { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  transition: color var(--duration) var(--ease);
  white-space: nowrap;
}
.main-nav a:hover { color: var(--white); }
.main-nav .nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  color: var(--navy);
  padding: .5rem 1.125rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: box-shadow var(--duration), transform var(--duration);
}
.main-nav .nav-cta:hover {
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201,168,76,.4);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ════════════════════════════════════════════════ HERO ══ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background:
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1800&q=80&auto=format')
    center/cover no-repeat;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,22,40,.94) 0%,
    rgba(15,32,64,.80) 50%,
    rgba(10,22,40,.70) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 740px;
  padding-block: 80px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(201,168,76,.12);
  border: 1px solid rgba(201,168,76,.3);
  color: var(--gold-2);
  font-size: .8125rem;
  font-weight: 600;
  padding: .4rem 1rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
  letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: rgba(255,255,255,.7);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }


/* ══════════════════════════════════════════════ PILLARS ══ */
.pillars {
  background: var(--navy-800);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding-block: 36px;
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 20px 24px;
  border-right: 1px solid rgba(255,255,255,.07);
}
.pillar:last-child { border-right: none; }
.pillar-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(201,168,76,.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.pillar-icon svg { width: 20px; height: 20px; }
.pillar strong {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .2rem;
}
.pillar span { font-size: .8125rem; color: rgba(255,255,255,.5); line-height: 1.5; }


/* ════════════════════════════════════════════ ABOUT ════ */
.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.about-text .label { display: inline-flex; }
.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--navy);
}
.about-text p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.0625rem; }
.about-text .btn { margin-top: .75rem; }

/* Card stack visual */
.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 380px;
}
.about-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.about-card:hover { transform: translateX(6px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.about-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.about-card-icon svg { width: 22px; height: 22px; }
.about-card strong { display: block; font-weight: 700; font-size: .9375rem; color: var(--navy); }
.about-card span { font-size: .8125rem; color: var(--text-muted); }


/* ══════════════════════════════════════════ SERVICIOS ══ */
.services { background: var(--surface); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--duration) var(--ease),
              transform var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
  opacity: 0;
  transform: translateY(16px);
}
.service-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: box-shadow var(--duration) var(--ease),
              transform .4s var(--ease),
              border-color var(--duration) var(--ease),
              opacity .4s var(--ease);
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.1);
  transform: translateY(-5px);
  border-color: rgba(201,168,76,.35);
}
.service-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--icon-color) 10%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--icon-color);
  flex-shrink: 0;
}
.service-icon-wrap svg { width: 24px; height: 24px; }
.service-card h3 { font-weight: 700; font-size: 1.0625rem; color: var(--navy); }
.service-card p  { font-size: .9rem; color: var(--text-muted); line-height: 1.65; flex: 1; }
.service-tag {
  display: inline-block;
  font-size: .725rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: .25rem .75rem;
  border: 1px solid var(--border);
  align-self: flex-start;
}


/* ══════════════════════════════════════════ PROCESS ════ */
.process { background: var(--navy); }
.process .section-header .label { background: rgba(201,168,76,.1); }
.process .section-header h2 { color: var(--white); }
.process .section-header p  { color: rgba(255,255,255,.5); }
.process-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0;
}
.process-step {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.process-step.visible { opacity: 1; transform: translateY(0); }
.step-number {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--gold);
  margin-bottom: 1rem;
}
.step-icon {
  width: 48px;
  height: 48px;
  background: rgba(201,168,76,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.step-icon svg { width: 22px; height: 22px; }
.process-step h3 { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: .75rem; }
.process-step p  { font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.7; }
.process-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  padding-top: 60px;
  color: rgba(201,168,76,.35);
}
.process-connector::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, rgba(201,168,76,.3), rgba(201,168,76,.6), rgba(201,168,76,.3));
  border-radius: 2px;
}


/* ══════════════════════════════════════════ CONTACTO ════ */
.contact { background: var(--navy-800); }
.contact .label { background: rgba(201,168,76,.1); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.contact-info > p { color: rgba(255,255,255,.6); margin-bottom: 2rem; font-size: 1rem; }
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-details li { display: flex; align-items: center; gap: 1rem; }
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.4); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .15rem; }
.contact-details a, .contact-details span { font-size: .9375rem; color: rgba(255,255,255,.8); }
.contact-details a:hover { color: var(--gold-2); }

/* Form */
.contact-form-wrapper {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: .9375rem;
  outline: none;
  transition: border-color var(--duration) var(--ease), background var(--duration) var(--ease);
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.25); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,.09);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #f87171; }
.field-error { font-size: .8rem; color: #fca5a5; min-height: 1rem; }
.form-note { font-size: .8rem; color: rgba(255,255,255,.35); text-align: center; margin-top: -4px; }
.form-status { font-size: .875rem; text-align: center; min-height: 1.4rem; color: var(--gold-2); }
.form-status.error { color: #fca5a5; }


/* ══════════════════════════════════════════ FOOTER ══════ */
.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding-block: 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: .8rem; color: rgba(255,255,255,.3); }


/* ══════════════════════════════════ RESPONSIVE ══════════ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 12px;
  }
  .process-connector { display: none; }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .pillar:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.07); }
  .pillar:nth-last-child(-n+2) { border-bottom: none; }
}

@media (max-width: 900px) {
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
  .about-card-stack { max-width: 100%; }

  /* Header móvil */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(10,22,40,.98);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration) var(--ease);
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-nav a { font-size: 1.125rem; }
  .main-nav .nav-cta { padding: .75rem 2rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .section { padding-block: 64px; }
  .services-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.07); }
  .pillar:last-child { border-bottom: none; }
  .pillar:nth-child(odd) { border-right: none; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 24px 20px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { justify-content: center; text-align: center; }
}
