/* ─────────────────────────────────────────────
   Konfronta Online — styles.css
   Design system v2 — clean, grounded, premium
   ───────────────────────────────────────────── */

/* ─── Design Tokens ─── */
:root {
  /* Colors */
  --navy:        #122549;
  --navy-deep:   #0d1c38;
  --gold:        #C9A02A;
  --gold-dark:   #b08920;
  --offwhite:    #F8F7F4;
  --white:       #ffffff;
  --dark:        #1A1A1A;
  --muted:       #6B7280;
  --border:      rgba(18, 37, 73, 0.09);

  /* Layout */
  --nav-h:       72px;
  --max-w:       1200px;
  --pad-h:       2.5rem;   /* horizontal page padding */

  /* Spacing scale */
  --s-section:   5rem;     /* standard section padding desktop */
  --s-section-sm: 3rem;   /* standard section padding mobile */

  /* Radius */
  --r-card:      8px;
  --r-btn:       4px;

  /* Transitions */
  --t-fast:      0.18s ease;
  --t-mid:       0.28s ease;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--offwhite);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─────────────────────────────────────────────
   TYPOGRAPHY SCALE
   ───────────────────────────────────────────── */

/* Display — hero h1 */
.t-display {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

/* Heading — section h2 */
.t-heading {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* Subheading — card h3 */
.t-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
}

/* Body */
.t-body { font-size: 1rem; line-height: 1.68; }

/* Small */
.t-small { font-size: 0.875rem; line-height: 1.55; }


/* ─────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────── */

#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-h);
  background: transparent;
  transition: background var(--t-mid), box-shadow var(--t-mid);
}

#navbar.scrolled {
  background: var(--navy-deep);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 24px rgba(0, 0, 0, 0.28);
}

.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 40px; width: auto; }
.logo-fallback {
  display: none;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}
.nav-login {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 500;
  transition: color var(--t-fast);
  white-space: nowrap;
}
.nav-login:hover { color: var(--gold); }

.lang-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  transition: border-color var(--t-fast);
  line-height: 1;
}
.lang-pill:hover { border-color: var(--gold); }
.lang-opt { color: rgba(255, 255, 255, 0.45); transition: color var(--t-fast); }
.lang-opt.active { color: var(--gold); }
.lang-divider { color: rgba(255, 255, 255, 0.2); font-weight: 300; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */

#footer {
  background: var(--navy-deep);
  color: #fff;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem var(--pad-h) 2.5rem;
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-logo { height: 44px; width: auto; }
.footer-tagline {
  margin-top: 0.9rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 0.2rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.88rem;
  transition: color var(--t-fast);
}
.footer-nav a:hover { color: #fff; }

.footer-contact p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.87rem;
  line-height: 1.65;
}
.footer-contact a {
  display: inline-block;
  margin-top: 0.55rem;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color var(--t-fast);
}
.footer-contact a:hover { color: #fff; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 0.2rem;
}
.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.87rem;
  transition: color var(--t-fast);
}
.social-link:hover { color: #fff; }
.social-link svg { width: 16px; height: 16px; flex-shrink: 0; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.2rem var(--pad-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.35);
}
.footer-bottom-inner a { color: rgba(255, 255, 255, 0.35); transition: color var(--t-fast); }
.footer-bottom-inner a:hover { color: var(--gold); }


/* ─────────────────────────────────────────────
   MAIN (inner pages)
   ───────────────────────────────────────────── */

main {
  min-height: 70vh;
  padding: calc(var(--nav-h) + 3rem) var(--pad-h) 5rem;
  max-width: var(--max-w);
  margin: 0 auto;
}

main.home-main      { padding: 0; min-height: 0; max-width: none; margin: 0; }
main.sections-layout { padding: 0; min-height: 0; max-width: none; margin: 0; }


/* ─────────────────────────────────────────────
   SHARED COMPONENTS
   ───────────────────────────────────────────── */

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-btn);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-wa:hover {
  background: #1dba59;
  border-color: #1dba59;
}

.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover {
  background: #1c3568;
  border-color: #1c3568;
}

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── Section title ── */
.section-title {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 1rem;
}

/* Section title light (on dark bg) */
.section-title-light {
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 1rem;
}

/* Reusable section header block */
.section-header { margin-bottom: 3rem; }
.section-header p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 0.75rem;
}
.section-header.centered { text-align: center; }
.section-header.centered p { max-width: 540px; margin-left: auto; margin-right: auto; }


/* ─────────────────────────────────────────────
   HOME PAGE
   ───────────────────────────────────────────── */

/* 1. HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../img/hero/DSC08006.jpg');
  background-size: cover;
  background-position: center top;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(13, 28, 56, 0.65);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 7rem) var(--pad-h) 7rem;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 160, 42, 0.15);
  border: 1px solid rgba(201, 160, 42, 0.4);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 820px;
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2.75rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* 2. STATS BAR */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0;
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-divider { border-right: 1px solid var(--border); }
.stat-divider:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.stat-number sup { font-size: 0.5em; vertical-align: super; color: var(--gold); }
.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* 3. PROBLEM SECTION */
.problem {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.problem-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.problem-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.problem-body p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}
.problem-body p.lead {
  font-size: 1.05rem;
  color: var(--dark);
  font-weight: 500;
}

/* Culture comparison card */
.culture-card {
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(18, 37, 73, 0.1);
  border: 1px solid var(--border);
}
.culture-card-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.culture-head-bad {
  background: #f3f4f6;
  padding: 0.85rem 1.1rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.culture-head-good {
  background: var(--navy);
  padding: 0.85rem 1.1rem;
  text-align: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.culture-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid #e5e7eb;
}
.culture-row:nth-child(even) .culture-bad  { background: #f9fafb; }
.culture-row:nth-child(even) .culture-good { background: rgba(18, 37, 73, 0.02); }
.culture-bad,
.culture-good {
  padding: 0.85rem 1.1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  background: #fff;
}
.culture-bad  { color: #9ca3af; }
.culture-bad::before  { content: '✗'; color: #ef4444; font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }
.culture-good { color: var(--navy); font-weight: 500; }
.culture-good::before { content: '✓'; color: #10b981; font-weight: 700; flex-shrink: 0; margin-top: 0.05rem; }

/* 4. SERVICES */
.services {
  background: var(--white);
  padding: var(--s-section) 0;
}
.services-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.services-header { text-align: center; margin-bottom: 3rem; }
.services-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--offwhite);
  border-radius: var(--r-card);
  padding: 2rem;
  display: block;
  color: inherit;
  border: 1px solid var(--border);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.service-card:hover {
  box-shadow: 0 6px 28px rgba(18, 37, 73, 0.1);
  border-color: rgba(18, 37, 73, 0.18);
}
.service-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 160, 42, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.service-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.service-arrow {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.01em;
}

/* 5. AI BOOK BANNER */
.book-banner {
  background: var(--navy);
  padding: var(--s-section) 0;
}
.book-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
}
.book-cover-wrap { flex-shrink: 0; }
.book-cover {
  width: 200px;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.book-text h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.book-text p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.72;
  margin-bottom: 2rem;
  max-width: 500px;
}

/* 6. CLIENT LOGOS */
.logos {
  background: var(--offwhite);
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.logos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.logos-header { text-align: center; margin-bottom: 2.75rem; }
.logos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem 3rem;
  align-items: center;
}
.logo-item img {
  width: 100%;
  max-height: 52px;
  object-fit: contain;
  filter: grayscale(1) opacity(0.45);
  transition: filter var(--t-mid);
}
.logo-item img:hover { filter: grayscale(0) opacity(1); }

/* 7. TIKTOK STATS */
.tiktok-bar {
  background: var(--white);
  padding: 4rem 0;
}
.tiktok-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.tiktok-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.tiktok-brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.tiktok-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
.tiktok-brand-handle {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 400;
}
.tiktok-stats-row {
  display: flex;
  gap: 3.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.tiktok-stat { text-align: center; }
.tiktok-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.tiktok-stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.3rem;
}
.tiktok-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  transition: color var(--t-fast);
}
.tiktok-cta-link:hover { color: var(--gold); }

/* 8. FINAL CTA */
.final-cta {
  background: var(--navy-deep);
  padding: var(--s-section) 0;
  text-align: center;
}
.final-cta-inner {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.final-cta h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.final-cta p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1rem;
  line-height: 1.72;
  margin-bottom: 2.25rem;
}


/* ─────────────────────────────────────────────
   ABOUT PAGE (nosotros.html)
   ───────────────────────────────────────────── */

/* ── Page Hero (navy) ── */
.page-hero {
  background: var(--navy-deep);
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  text-align: center;
  color: #fff;
}
.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.page-hero .hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.72;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Team ── */
.team-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.team-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.team-header { text-align: center; margin-bottom: 3.5rem; }
.team-header p { font-size: 1rem; color: var(--muted); max-width: 500px; margin: 0.75rem auto 0; line-height: 1.7; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  text-align: center;
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.team-card:hover {
  box-shadow: 0 8px 36px rgba(18, 37, 73, 0.12);
  border-color: rgba(18, 37, 73, 0.16);
}
.team-photo {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
}
.team-info { padding: 1.6rem 1.5rem; }
.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  border: 1.5px solid rgba(18, 37, 73, 0.22);
  border-radius: var(--r-btn);
  padding: 0.46rem 1.1rem;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.team-link:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

/* ── Mission ── */
.mission-section {
  background: var(--white);
  padding: var(--s-section) 0;
}
.mission-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
  text-align: center;
}
.mission-inner .eyebrow { margin-bottom: 1rem; }
.mission-quote {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.62;
  font-style: italic;
  position: relative;
  padding: 1.5rem 3.5rem;
}
.mission-quote::before,
.mission-quote::after {
  content: '\201C';
  font-size: 6rem;
  color: var(--gold);
  opacity: 0.2;
  font-style: normal;
  line-height: 1;
  position: absolute;
  font-family: Georgia, serif;
}
.mission-quote::after { content: '\201D'; }
.mission-quote::before { top: -0.5rem; left: 0; }
.mission-quote::after  { bottom: -2rem; right: 0; }

/* ── Values ── */
.values-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.values-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.values-header { text-align: center; margin-bottom: 3rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.value-card {
  background: var(--white);
  border-radius: var(--r-card);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.value-card:hover {
  box-shadow: 0 6px 24px rgba(18, 37, 73, 0.09);
  border-color: rgba(18, 37, 73, 0.16);
}
.value-icon {
  width: 44px;
  height: 44px;
  background: rgba(201, 160, 42, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.value-icon svg { width: 20px; height: 20px; stroke: var(--gold); }
.value-name {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}
.value-desc { font-size: 0.84rem; color: var(--muted); line-height: 1.62; }

/* ── Brand Statement ── */
.brand-statement {
  background: var(--navy);
  padding: var(--s-section) 0;
  text-align: center;
}
.brand-statement-inner {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.brand-statement h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.brand-statement p {
  color: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 1.72;
  max-width: 540px;
  margin: 0 auto;
}

/* ── The Model ── */
.model-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.model-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.model-header { text-align: center; margin-bottom: 4rem; }
.model-steps {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: start;
  gap: 0;
}
.model-arrow-col {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 24px;
  color: var(--gold);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.6;
}
.model-step { text-align: center; padding: 0 0.5rem; }
.model-step-circle {
  width: 68px;
  height: 68px;
  background: var(--navy);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.model-step-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--gold);
  text-transform: uppercase;
}
.model-step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.model-step p { font-size: 0.875rem; color: var(--muted); line-height: 1.68; }


/* ─────────────────────────────────────────────
   COURSES PAGE (formacion.html)
   ───────────────────────────────────────────── */

/* ── Login Banner ── */
.login-banner {
  background: var(--gold);
  padding: 0.8rem 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 900;
}
.login-banner-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  text-align: center;
}
.login-banner-inner span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.login-banner-inner a {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: opacity var(--t-fast);
}
.login-banner-inner a:hover { opacity: 0.65; }

/* ── Courses Section ── */
.courses-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.courses-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.courses-header { text-align: center; margin-bottom: 3rem; }
.courses-header p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0.75rem auto 0;
  line-height: 1.7;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* ── Course Card ── */
.course-card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.course-card:hover {
  box-shadow: 0 8px 36px rgba(18, 37, 73, 0.12);
  border-color: rgba(18, 37, 73, 0.16);
}
.course-card-head {
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.course-tag {
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201, 160, 42, 0.12);
  border: 1px solid rgba(201, 160, 42, 0.28);
  border-radius: 2px;
  padding: 0.16rem 0.5rem;
}
.course-lock { color: rgba(255, 255, 255, 0.4); flex-shrink: 0; }
.course-lock svg { width: 15px; height: 15px; display: block; }

.course-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.course-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.course-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
  flex: 1;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.course-lessons {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.course-lessons svg { width: 14px; height: 14px; flex-shrink: 0; }
.course-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 20px;
}
.badge-beginner     { background: rgba(16, 185, 129, 0.1);  color: #059669; }
.badge-intermediate { background: rgba(245, 158, 11, 0.1);  color: #b45309; }
.badge-advanced     { background: rgba(239, 68, 68, 0.1);   color: #dc2626; }

.course-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.course-cta::after { content: '→'; }


/* ─────────────────────────────────────────────
   EVENTS PAGE (eventos.html)
   ───────────────────────────────────────────── */

/* ── Upcoming ── */
.upcoming-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.upcoming-inner {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.upcoming-inner .section-header { text-align: center; margin-bottom: 2.5rem; }
.upcoming-placeholder {
  background: var(--white);
  border-radius: var(--r-card);
  border: 2px dashed rgba(18, 37, 73, 0.12);
  padding: 4rem 2.5rem;
  text-align: center;
}
.upcoming-icon {
  width: 60px;
  height: 60px;
  background: rgba(18, 37, 73, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.upcoming-icon svg { width: 26px; height: 26px; }
.upcoming-placeholder h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
}
.upcoming-placeholder p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Timeline ── */
.timeline-section {
  background: var(--white);
  padding: var(--s-section) 0;
}
.timeline-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.timeline-header { text-align: center; margin-bottom: 4rem; }

.timeline {
  max-width: 700px;
  margin: 0 auto;
}
.timeline-item {
  display: flex;
  gap: 2rem;
  padding-bottom: 3.5rem;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 22px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, rgba(201,160,42,0.5) 0%, rgba(201,160,42,0.06) 100%);
}
.timeline-dot {
  width: 22px;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gold);
  margin-top: 0.25rem;
  position: relative;
  z-index: 1;
}
.timeline-content { flex: 1; }
.timeline-date {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
  margin-bottom: 0.45rem;
}
.timeline-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.87rem;
  color: var(--muted);
}
.timeline-location svg { width: 13px; height: 13px; flex-shrink: 0; }
.timeline-tag {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(18, 37, 73, 0.07);
  border-radius: 2px;
  padding: 0.17rem 0.5rem;
}

/* ── Gallery CTA ── */
.gallery-section {
  background: var(--offwhite);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 1px solid var(--border);
}
.gallery-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.gallery-icon {
  width: 60px;
  height: 60px;
  background: rgba(201,160,42,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.gallery-icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.gallery-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.gallery-inner p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}


/* ─────────────────────────────────────────────
   CONTACT PAGE (contacto.html)
   ───────────────────────────────────────────── */

/* ── WhatsApp CTA (gold bg) ── */
.wa-cta-section {
  background: var(--gold);
  padding: 4.5rem 0;
  text-align: center;
}
.wa-cta-inner {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.wa-cta-section h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.wa-cta-section p {
  color: rgba(18, 37, 73, 0.72);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.btn-wa-dark {
  background: var(--navy);
  color: #fff;
  border: 2px solid var(--navy);
  font-size: 1rem;
  padding: 0.95rem 2rem;
}
.btn-wa-dark:hover {
  background: #1c3568;
  border-color: #1c3568;
}

.contact-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-reassurance {
  max-width: var(--max-w);
  margin: 2.5rem auto 0;
  padding: 0 var(--pad-h);
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* Info column */
.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.contact-info-icon {
  width: 40px;
  height: 40px;
  background: rgba(201, 160, 42, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { width: 18px; height: 18px; stroke: var(--gold); }
.contact-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
}
.contact-info-value a { color: var(--navy); transition: color var(--t-fast); }
.contact-info-value a:hover { color: var(--gold); }

/* Cities grid */
.contact-cities {
  margin-top: 2rem;
}
.contact-cities-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}
.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.city-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 1rem 1.1rem;
}
.city-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.2rem;
}
.city-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Social links */
.contact-social {
  margin-top: 2rem;
}
.contact-social-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.875rem;
}
.contact-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.contact-social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-btn);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.contact-social-link:hover {
  border-color: rgba(18, 37, 73, 0.22);
  background: var(--offwhite);
}
.contact-social-link svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Contact Form */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem;
}
.contact-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.contact-form-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.form-group:last-child { margin-bottom: 0; }
.form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid rgba(18, 37, 73, 0.16);
  border-radius: var(--r-btn);
  outline: none;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  line-height: 1.5;
}
.form-input::placeholder,
.form-textarea::placeholder { color: rgba(107, 114, 128, 0.6); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 37, 73, 0.08);
}
.form-select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; padding-right: 2.5rem; }
.form-textarea { resize: vertical; min-height: 140px; }
.form-submit { width: 100%; margin-top: 0.5rem; justify-content: center; }
.form-note {
  text-align: center;
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 0.875rem;
}


/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */

/* ─────────────────────────────────────────────
   BLOG PAGE (blog.html)
   ───────────────────────────────────────────── */

/* ── Category Filter Tabs ── */
.blog-tabs-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: var(--nav-h);
  z-index: 100;
}
.blog-tabs-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.blog-tabs-inner::-webkit-scrollbar { display: none; }
.blog-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.44rem 1rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1;
}
.blog-tab:hover {
  border-color: rgba(18, 37, 73, 0.22);
  color: var(--navy);
}
.blog-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Blog Card Tag (gold for all categories) ── */
.blog-card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.17rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  width: fit-content;
  background: rgba(201, 160, 42, 0.12);
  border: 1px solid rgba(201, 160, 42, 0.32);
  color: var(--gold-dark);
}

/* ── Featured Article ── */
.blog-featured-section {
  background: var(--white);
  padding: var(--s-section) 0;
}
.blog-featured-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.blog-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--offwhite);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
}
.blog-featured-img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.blog-featured-img-placeholder {
  width: 100%;
  min-height: 340px;
  background: linear-gradient(135deg, var(--navy) 0%, #1c3568 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-featured-img-placeholder svg { width: 56px; height: 56px; opacity: 0.3; color: #fff; }
.blog-featured-body {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.blog-featured-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.blog-featured-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}
.blog-featured-body p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.75rem;
}
.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); }
.blog-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 1px;
  width: fit-content;
  transition: color var(--t-fast);
}
.blog-featured-link:hover { color: var(--gold); }

/* ── Articles Grid ── */
.blog-grid-section {
  background: var(--offwhite);
  padding: var(--s-section) 0;
}
.blog-grid-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.blog-card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--t-mid), border-color var(--t-mid);
}
.blog-card:hover {
  box-shadow: 0 6px 28px rgba(18, 37, 73, 0.1);
  border-color: rgba(18, 37, 73, 0.18);
}
.blog-card-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.blog-card-img-wrap svg { width: 40px; height: 40px; opacity: 0.25; color: #fff; }
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  padding: 0.17rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.tag-liderazgo    { background: rgba(18, 37, 73, 0.08);   color: var(--navy); }
.tag-operaciones  { background: rgba(16, 185, 129, 0.1);  color: #059669; }
.tag-finanzas     { background: rgba(245, 158, 11, 0.1);  color: #b45309; }
.tag-marketing    { background: rgba(139, 92, 246, 0.1);  color: #7c3aed; }
.tag-cultura      { background: rgba(236, 72, 153, 0.1);  color: #be185d; }
.tag-mentalidad   { background: rgba(201, 160, 42, 0.1);  color: var(--gold-dark); }
.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.blog-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.blog-card-link::after { content: '→'; }

/* ── Newsletter CTA ── */
.blog-newsletter {
  background: var(--navy);
  padding: var(--s-section) 0;
  text-align: center;
}
.blog-newsletter-inner {
  max-width: 580px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.blog-newsletter h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 0.875rem;
}
.blog-newsletter p {
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto;
}
.newsletter-input {
  flex: 1;
  padding: 0.78rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--dark);
  background: var(--white);
  border: none;
  border-radius: var(--r-btn);
  outline: none;
}
.newsletter-input::placeholder { color: rgba(107, 114, 128, 0.7); }

@media (max-width: 768px) {
  .blog-featured-card     { grid-template-columns: 1fr; }
  .blog-featured-img-placeholder { min-height: 200px; }
  .blog-featured-body     { padding: 1.75rem 1.5rem; }
  .blog-grid              { grid-template-columns: 1fr; }
  .newsletter-form        { flex-direction: column; }
  .newsletter-input       { width: 100%; }
}

@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ─────────────────────────────────────────────
   PRIVACY POLICY PAGE
   ───────────────────────────────────────────── */

.privacy-section {
  background: var(--white);
  padding: var(--s-section) 0;
}
.privacy-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--pad-h);
}
.privacy-inner h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2.5rem 0 0.75rem;
}
.privacy-inner p,
.privacy-inner li {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.78;
}
.privacy-inner ul { padding-left: 1.25rem; list-style: disc; }
.privacy-inner ul li { margin-bottom: 0.4rem; }
.privacy-inner a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.privacy-inner a:hover { color: var(--gold); }
.privacy-last-updated {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}


@media (max-width: 1280px) {
  :root { --pad-h: 2rem; }
}

@media (max-width: 960px) {
  .footer-inner  { grid-template-columns: 1fr 1fr; }
  .logos-grid    { grid-template-columns: repeat(4, 1fr); }
  .book-inner    { gap: 3rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  :root {
    --pad-h: 1.25rem;
    --s-section: var(--s-section-sm);
  }

  #navbar { padding: 0 1.25rem; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--navy-deep);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }
  .nav-links.open { max-height: 420px; padding: 0.75rem 0 1.5rem; }
  .nav-links a { display: block; padding: 0.75rem 1.5rem; font-size: 1rem; }

  .hamburger { display: flex; }

  .footer-inner       { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .footer-bottom-inner { flex-direction: column; gap: 0.4rem; text-align: center; padding: 1rem 1.25rem; }

  main { padding: calc(var(--nav-h) + 2rem) var(--pad-h) 3rem; }

  /* Home */
  .hero h1            { font-size: 2.2rem; }
  .hero-sub           { font-size: 1rem; }
  .stats-grid         { grid-template-columns: repeat(2, 1fr); }
  .stat-divider       { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; }
  .stat-divider:last-child { border-bottom: none; padding-bottom: 0; }
  .problem-inner      { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-grid      { grid-template-columns: 1fr; }
  .book-inner         { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .book-cover         { width: 160px; margin: 0 auto; }
  .book-text p        { margin-left: auto; margin-right: auto; }
  .logos-grid         { grid-template-columns: repeat(3, 1fr); gap: 1.25rem 1.75rem; }
  .tiktok-inner       { flex-direction: column; text-align: center; gap: 2rem; }
  .tiktok-stats-row   { justify-content: center; gap: 2rem; }

  /* About */
  .team-grid          { grid-template-columns: 1fr; }
  .values-grid        { grid-template-columns: repeat(2, 1fr); }
  .model-steps        { grid-template-columns: 1fr; }
  .model-arrow-col    { display: none; }
  .model-step         { padding: 0; }
  .model-step + .model-step { border-top: 1px solid var(--border); padding-top: 2rem; margin-top: 2rem; }

  /* Courses */
  .courses-grid       { grid-template-columns: 1fr; }
  .login-banner       { position: static; }

  /* Events */
  .timeline-item      { gap: 1.25rem; }
  .timeline-title     { font-size: 1.05rem; }

  /* Contact */
  .form-row           { grid-template-columns: 1fr; }
  .contact-form-card  { padding: 1.75rem 1.25rem; }
  .cities-grid        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .values-grid  { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 2rem; }
  .hero h1      { font-size: 1.9rem; }
}


/* ─────────────────────────────────────────────
   FLOATING WHATSAPP BUTTON
   ───────────────────────────────────────────── */

.wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 9000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
}
.wa-float:hover {
  background: #1dba59;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.5);
}
.wa-float svg { flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION SYSTEM — companion styles for js/animations.js
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Page fade-in on load (pure CSS, no JS dependency) ──────────────────── */
body {
  animation: kfPageIn 0.35s ease forwards;
}
@keyframes kfPageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Scroll Reveal ──────────────────────────────────────────────────────── */
.kf-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  transition-delay: var(--stagger, 0s);
}
.kf-reveal.kf-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero Ken Burns background layer ────────────────────────────────────── */
.hero { overflow: hidden; }

.hero-bg-layer {
  position: absolute;
  inset: -6%;
  background-size: cover;
  background-position: center top;
  z-index: 0;
  animation: kfKenBurns 6s ease-out forwards;
}
@keyframes kfKenBurns {
  from { transform: scale(1.06); }
  to   { transform: scale(1); }
}

/* Ensure overlay + content stay above background layer */
.hero::before { z-index: 1; }
.hero .hero-inner { z-index: 2; }

/* ── Hero text entrance ─────────────────────────────────────────────────── */
.hero-entrance {
  opacity: 0;
  animation: kfHeroFadeUp 0.6s ease-out forwards;
}
@keyframes kfHeroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Navbar: smooth transform + hide on scroll ──────────────────────────── */
#navbar {
  transition: background var(--t-mid), box-shadow var(--t-mid), transform 0.28s ease;
}
#navbar.nav-hidden {
  transform: translateY(-100%);
}

/* Active nav link: gold underline indicator */
.nav-links a { position: relative; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

/* ── Card hover: clean lift + gold border, no shadow ────────────────────── */
.service-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: none;
}

.course-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: none;
}

.blog-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: none;
}

.team-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: none;
}

.value-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: none;
}

/* Card image scale on hover */
.team-photo { transition: transform 0.4s ease; }
.team-card:hover .team-photo { transform: scale(1.03); }

/* ── Buttons: hover transition + click micro-press ──────────────────────── */
.btn {
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform 0.1s ease;
}
.btn:active { transform: scale(0.97); }

/* ── WhatsApp float: pulse every 3s ─────────────────────────────────────── */
@keyframes kfWaPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-1px) scale(1.07); }
  75%       { transform: translateY(0) scale(0.97); }
}
.wa-float.wa-pulse {
  animation: kfWaPulse 0.7s ease;
}

/* ── Language toggle crossfade ──────────────────────────────────────────── */
@keyframes kfLangFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.lang-fade [data-en] {
  animation: kfLangFadeIn 0.2s ease forwards;
}

/* ── Mobile: remove hover lifts on touch devices ─────────────────────────── */
@media (hover: none) {
  .service-card:hover,
  .course-card:hover,
  .blog-card:hover,
  .team-card:hover,
  .value-card:hover {
    transform: none;
    border-color: var(--border);
    box-shadow: none;
  }
  .team-card:hover .team-photo { transform: none; }
}

/* ── Reduced motion: disable all transforms + animations ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  body { animation: none; }

  .kf-reveal,
  .kf-reveal.kf-revealed {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-bg-layer { animation: none; }
  .hero-entrance { opacity: 1; animation: none; }

  #navbar { transition: background var(--t-mid), box-shadow var(--t-mid); }
  #navbar.nav-hidden { transform: none; }

  .service-card, .course-card, .blog-card, .team-card, .value-card {
    transition: border-color var(--t-fast);
  }
  .service-card:hover, .course-card:hover, .blog-card:hover,
  .team-card:hover, .value-card:hover {
    transform: none;
  }

  .team-photo { transition: none; }
  .team-card:hover .team-photo { transform: none; }

  .btn { transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
  .btn:active { transform: none; }

  .wa-float.wa-pulse { animation: none; }
  body.lang-fade [data-en] { animation: none; }
}
