/* ============================================================
   ARMANDO INTELIGENCIA — STYLESHEET
   Minimalist tech design | Blue + Gold brand palette
   Dark/Light theme via data-theme attribute on <html>
   Brand accent colors injected at runtime from config.js
   ============================================================ */

/* ============================================================
   CSS CUSTOM PROPERTIES — DESIGN TOKENS
   ============================================================ */

/* Dark Theme (default) */
:root,
:root[data-theme="dark"] {
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-tertiary: #1C1C28;
  --bg-nav: rgba(10, 10, 15, 0.88);

  --text-primary: #F0F0F5;
  --text-secondary: #9090A8;
  --text-muted: #5A5A72;

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow-card-hover: 0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-glow-blue: 0 0 36px rgba(26, 108, 246, 0.28);
  --shadow-glow-gold: 0 0 28px rgba(212, 175, 55, 0.22);
  --shadow-nav: 0 1px 0 rgba(255, 255, 255, 0.06);

  --gradient-hero: linear-gradient(155deg, #080810 0%, #0D0D22 60%, #0A0A0F 100%);
  --gradient-card: linear-gradient(145deg, #14141E, #1A1A28);
  --gradient-community: linear-gradient(155deg, #0D0D22 0%, #0A0A0F 100%);

  --color-scheme: dark;
}

/* Light Theme */
:root[data-theme="light"] {
  --bg-primary: #F4F4FA;
  --bg-secondary: #FFFFFF;
  --bg-tertiary: #EBEBF5;
  --bg-nav: rgba(244, 244, 250, 0.92);

  --text-primary: #0D0D1A;
  --text-secondary: #4A4A62;
  --text-muted: #8A8AA2;

  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);

  --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --shadow-glow-blue: 0 0 24px rgba(26, 108, 246, 0.15);
  --shadow-glow-gold: 0 0 20px rgba(212, 175, 55, 0.14);
  --shadow-nav: 0 1px 0 rgba(0, 0, 0, 0.08);

  --gradient-hero: linear-gradient(155deg, #EEEEF8 0%, #F8F8FF 60%, #F4F4FA 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF, #F0F0F8);
  --gradient-community: linear-gradient(155deg, #EAEAF8 0%, #F4F4FA 100%);

  --color-scheme: light;
}

/* Brand Colors — set at runtime from config.js via JS.
   Fallbacks here so the page works even before JS runs. */
:root {
  --color-accent-blue: #1A6CF6;
  --color-accent-gold: #D4AF37;
  --color-accent-blue-light: #4D8EF8;
  --color-accent-gold-light: #E8C84A;
}

/* Typography Tokens */
:root {
  --font-heading: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-black: 900;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --max-width: 1200px;
  --nav-height: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  color-scheme: var(--color-scheme);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-slow), color var(--transition-slow);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================================
   LAYOUT — Container
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

/* ============================================================
   TYPOGRAPHY — Shared headings, labels, body
   ============================================================ */

.section-label {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-bottom: var(--space-3);
}

.section-headline {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.section-subheadline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 56ch;
}

.body-text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-4);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-header .section-subheadline {
  margin: 0 auto;
}

/* Gold accent divider */
.accent-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
  border-radius: var(--radius-pill);
  margin-top: var(--space-6);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  line-height: 1;
  transition:
    background-color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    color var(--transition-fast),
    border-color var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-accent-blue);
  color: #FFFFFF;
  border: 2px solid transparent;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-accent-blue-light);
  box-shadow: var(--shadow-glow-blue);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Gold button variant — used for IA Ejecutiva 90 CTA */
.btn-gold {
  background-color: var(--color-accent-gold);
  color: #0A0A0F;
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background-color: var(--color-accent-gold-light);
  box-shadow: var(--shadow-glow-gold);
  transform: translateY(-2px);
}

.btn-gold:active {
  transform: translateY(0);
}

.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.cta-group-center {
  align-items: center;
  text-align: center;
}

.cta-sub {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-nav);
  transition:
    background-color var(--transition-slow),
    box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(26, 108, 246, 0.3));
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Desktop nav links */
.nav-links {
  display: none;
  align-items: center;
  gap: var(--space-4);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent-gold);
  border-radius: var(--radius-pill);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* "Comunidad" nav link — blue pill style to stand out */
.nav-link-cta-blue {
  color: var(--color-accent-blue);
  padding: var(--space-1) var(--space-4);
  border: 1px solid rgba(26, 108, 246, 0.35);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-bold);
  margin-left: var(--space-2);
}

.nav-link-cta-blue::after {
  display: none;
}

.nav-link-cta-blue:hover {
  color: #F0F0F5;
  /* Matches var(--text-primary) default dark theme text */
  background-color: var(--color-accent-blue);
  border-color: var(--color-accent-blue);
}

/* Mobile version of the Blue CTA nav link */
.mobile-nav-link-cta-blue {
  color: var(--color-accent-blue);
  font-weight: var(--fw-bold);
}

/* "Consultoría" nav link — gold pill style to stand out */
.nav-link-cta {
  color: var(--color-accent-gold);
  padding: var(--space-1) var(--space-4);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  font-weight: var(--fw-bold);
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  color: #0A0A0F;
  background-color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
}

/* Mobile version of the CTA nav link */
.mobile-nav-link-cta {
  color: var(--color-accent-gold);
  font-weight: var(--fw-bold);
}

/* Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  background: transparent;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast);
  cursor: pointer;
}

.toggle-btn:hover,
.toggle-btn:focus-visible {
  color: var(--text-primary);
  border-color: var(--color-accent-gold);
  background-color: rgba(212, 175, 55, 0.08);
}

.lang-btn {
  padding: var(--space-1) var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.06em;
  min-width: 42px;
}

.icon-btn {
  padding: var(--space-2);
  width: 36px;
  height: 36px;
}

/* Theme toggle icon visibility */
.icon-sun {
  display: block;
}

.icon-moon {
  display: none;
}

[data-theme="light"] .icon-sun {
  display: none;
}

[data-theme="light"] .icon-moon {
  display: block;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: var(--space-2);
  border-radius: var(--radius);
  border: 1px solid var(--border-medium);
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-secondary);
  border-radius: var(--radius-pill);
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow);
}

.mobile-menu.open {
  display: block;
  max-height: 300px;
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-4) var(--space-6) var(--space-6);
  gap: var(--space-2);
}

.mobile-nav-link {
  font-size: var(--text-base);
  font-weight: var(--fw-medium);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

.mobile-nav-link:hover {
  color: var(--color-accent-blue);
  padding-left: var(--space-2);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--gradient-hero);
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Dot-grid texture overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle,
      var(--color-accent-blue) 1px,
      transparent 1px);
  background-size: 40px 40px;
  opacity: 0.04;
  pointer-events: none;
}

/* Blue glow orb — top right */
.hero::after {
  content: "";
  position: absolute;
  top: -250px;
  right: -250px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--color-accent-blue) 0%, transparent 65%);
  opacity: 0.1;
  pointer-events: none;
}

/* Gold glow — bottom left */
.hero .container::before {
  content: "";
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-gold) 0%, transparent 65%);
  opacity: 0.06;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--space-5);
  letter-spacing: -0.02em;
}

/* Gold underline on headline last word effect via gradient border */
.hero-headline span {
  background: linear-gradient(135deg, var(--color-accent-blue), var(--color-accent-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: var(--space-2);
}

/* Video */
.hero-video {
  width: 100%;
}

.video-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
  background: var(--bg-tertiary);
  aspect-ratio: 16 / 9;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
  cursor: default;
}

.video-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  opacity: 0.7;
}

.video-play-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(26, 108, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-blue);
  border: 2px solid rgba(26, 108, 246, 0.25);
}

.video-placeholder-text {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.youtube-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   ABOUT
   ============================================================ */

.about {
  background-color: var(--bg-primary);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-12);
}

.about-avatar {
  flex-shrink: 0;
  width: 100%;
  max-width: 340px;
}

.avatar-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card), var(--shadow-glow-blue);
}

.avatar-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.avatar-img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.02);
}

.about-text {
  width: 100%;
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  background-color: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-blue) 0%, transparent 65%);
  opacity: 0.04;
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-gold));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow-blue);
  border-color: var(--color-accent-blue);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: rgba(26, 108, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent-blue);
  border: 1px solid rgba(26, 108, 246, 0.15);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.card:hover .card-icon {
  background: rgba(26, 108, 246, 0.16);
  border-color: rgba(26, 108, 246, 0.3);
}

.card-title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.25;
}

.card-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   COMMUNITY
   ============================================================ */

.community {
  background: var(--gradient-community);
  position: relative;
  overflow: hidden;
}

.community::after {
  content: "";
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--color-accent-gold) 0%, transparent 65%);
  opacity: 0.06;
  pointer-events: none;
}

.community-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  align-items: center;
  position: relative;
  z-index: 1;
}

.community-visual {
  flex-shrink: 0;
  width: 100%;
  max-width: 320px;
}

.community-logo-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(145deg, #14141E, #1A1A28);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45), var(--shadow-glow-gold);
  padding: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.community-logo-img {
  width: 100%;
  height: auto;
}

.community-text {
  width: 100%;
}

.community-text .section-headline {
  font-size: var(--text-3xl);
}

.community-text .section-subheadline {
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}

/* Benefits List */
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.benefit-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-gold);
  margin-top: 1px;
}

/* ============================================================
   IA EJECUTIVA 90
   ============================================================ */

.iaejecutiva {
  background-color: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

/* Gold glow bottom-right for differentiation from other sections */
.iaejecutiva::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--color-accent-gold) 0%, transparent 65%);
  opacity: 0.05;
  pointer-events: none;
}

/* Logo + header block */
.iaejecutiva-header {
  text-align: center;
  margin-bottom: var(--space-12);
  position: relative;
  z-index: 1;
}

.iaejecutiva-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-8);
}

.iaejecutiva-logo {
  max-width: 340px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.25));
}

/* Theme Toggle Support for Logos */
.logo-light-theme {
  display: none;
}

.logo-dark-theme {
  display: block;
}

[data-theme="light"] .logo-light-theme {
  display: block;
}

[data-theme="light"] .logo-dark-theme {
  display: none;
}

.iaejecutiva-header .section-subheadline {
  margin: 0 auto;
  max-width: 60ch;
}

/* 90-day badge */
.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(212, 175, 55, 0.07);
}

.timeline-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: var(--fw-black);
  color: var(--color-accent-gold);
  line-height: 1;
  letter-spacing: -0.03em;
}

.timeline-label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  text-align: left;
  max-width: 20ch;
  line-height: 1.4;
}

/* Services grid (same as .services-grid but scoped to this section) */
.iaejecutiva-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-16);
}

/* Gold icon variant for IA Ejecutiva 90 cards */
.card-icon-gold {
  background: rgba(212, 175, 55, 0.1);
  border-color: rgba(212, 175, 55, 0.2);
  color: var(--color-accent-gold);
}

.iaejecutiva-card:hover .card-icon-gold {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.35);
}

/* Override card hover to use gold glow */
.iaejecutiva-card:hover {
  box-shadow: var(--shadow-card-hover), var(--shadow-glow-gold);
  border-color: var(--color-accent-gold);
}

.iaejecutiva-card::before {
  background: linear-gradient(90deg, var(--color-accent-gold), var(--color-accent-gold-light));
}

/* CTA block at bottom of section */
.iaejecutiva-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.iaejecutiva-cta-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-12) 0 var(--space-8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-logo {
  height: 180px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(26, 108, 246, 0.2));
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 38ch;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.footer-follow {
  font-size: var(--text-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.social-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.social-link:hover,
.social-link:focus-visible {
  color: var(--text-primary);
  border-color: var(--color-accent-blue);
  background-color: rgba(26, 108, 246, 0.08);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow-blue);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-subtle);
  width: 100%;
  text-align: center;
}

/* ============================================================
   FOCUS & ACCESSIBILITY
   ============================================================ */

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

/* ============================================================
   RESPONSIVE — Tablet (768px+)
   ============================================================ */

@media (min-width: 768px) {

  .section-headline {
    font-size: var(--text-4xl);
  }

  /* Nav */
  .nav-logo-text {
    font-size: var(--text-lg);
  }

  .nav-links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .mobile-menu {
    display: none !important;
  }

  /* Hero */
  .hero-headline {
    font-size: var(--text-5xl);
  }

  .hero-subheadline {
    font-size: var(--text-base);
  }

  /* About */
  .about-content {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .about-avatar {
    width: 300px;
    flex-shrink: 0;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Community */
  .community-content {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-16);
  }

  .community-visual {
    width: 280px;
    flex-shrink: 0;
  }

  /* IA Ejecutiva 90 */
  .iaejecutiva-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .footer-brand {
    align-items: center;
    flex-direction: row;
  }

  .footer-social {
    align-items: flex-start;
  }

  .footer-copyright {
    flex-basis: 100%;
    text-align: center;
  }

}

/* ============================================================
   RESPONSIVE — Desktop (1024px+)
   ============================================================ */

@media (min-width: 1024px) {

  .section-headline {
    font-size: var(--text-4xl);
  }

  .hero-headline {
    font-size: var(--text-6xl);
  }

  .hero-subheadline {
    font-size: var(--text-lg);
  }

  /* Hero Layout */
  .hero-content {
    flex-direction: row;
    align-items: center;
    gap: var(--space-10);
  }

  .hero-text {
    flex: 1 1 50%;
  }

  .hero-video {
    flex: 1 1 50%;
  }

  /* Nav */
  .nav-logo-text {
    font-size: var(--text-2xl);
  }

  /* Services */
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* About */
  .about-avatar {
    width: 380px;
  }

  /* Community */
  .community-visual {
    width: 340px;
  }

  /* IA Ejecutiva 90 */
  .iaejecutiva-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .iaejecutiva-logo {
    max-width: 420px;
  }

}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}