/* =============================================================================
   TECHRIDERS — DESIGN SYSTEM
   Paleta: Dark Navy (#07111D) + TechRiders Blue (#00AEEF) + White
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ============================================================================= */
:root {
  /* Brand Colors — TechRiders */
  --tr-blue:       #00AEEF;
  --tr-blue-light: #33C3F5;
  --tr-blue-dark:  #0088CC;
  --tr-blue-glow:  rgba(0, 174, 239, 0.30);
  --tr-navy:       #0B1929;
  --tr-navy-deep:  #07111D;
  --tr-navy-mid:   #112035;

  /* Dark Mode Palette (default) */
  --bg-canvas:   #07111D;
  --bg-default:  #0B1929;
  --bg-overlay:  #0F2236;
  --bg-subtle:   #112035;
  --bg-muted:    #1A3252;
  --bg-elevated: #0D1E30;

  --border-default: rgba(0, 174, 239, 0.14);
  --border-muted:   rgba(0, 174, 239, 0.08);
  --border-subtle:  rgba(0, 174, 239, 0.06);

  --text-primary:    #E8EDF3;
  --text-secondary:  #8BA4BC;
  --text-tertiary:   #5C7A96;
  --text-disabled:   #3A5674;
  --text-inverse:    #07111D;
  --text-link:       #00AEEF;
  --text-link-hover: #33C3F5;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
               Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  --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;

  --leading-tight:   1.25;
  --leading-snug:    1.375;
  --leading-normal:  1.5;
  --leading-relaxed: 1.625;

  --weight-normal:    400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-bold:      700;
  --weight-extrabold: 800;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   16px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md:   0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg:   0 8px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 28px var(--tr-blue-glow);
  --shadow-card: 0 1px 0 var(--border-default);
  --inset-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.2, 0, 0, 1);
  --transition-normal: 200ms cubic-bezier(0.2, 0, 0, 1);
  --transition-slow:   350ms cubic-bezier(0.2, 0, 0, 1);

  /* Z-index */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-nav:     200;
  --z-modal:   300;
  --z-top:     400;

  /* Layout */
  --nav-height:       64px;
  --container-max:    1280px;
  --container-wide:   1440px;
  --container-narrow: 768px;
}

/* Light Mode */
[data-theme="light"] {
  --bg-canvas:   #F0F7FD;
  --bg-default:  #FFFFFF;
  --bg-overlay:  #E4F3FB;
  --bg-subtle:   #EBF5FC;
  --bg-muted:    #D6EDF8;
  --bg-elevated: #FFFFFF;

  --border-default: rgba(0, 136, 204, 0.20);
  --border-muted:   rgba(0, 136, 204, 0.12);
  --border-subtle:  rgba(0, 136, 204, 0.08);

  --text-primary:    #07111D;
  --text-secondary:  #2E5A7A;
  --text-tertiary:   #4A7A9B;
  --text-disabled:   #8ABCD4;
  --text-inverse:    #FFFFFF;
  --text-link:       #0088CC;
  --text-link-hover: #006699;

  --shadow-sm: 0 1px 3px rgba(7, 17, 29, 0.10);
  --shadow-md: 0 4px 16px rgba(7, 17, 29, 0.12);
  --shadow-lg: 0 8px 40px rgba(7, 17, 29, 0.16);
  --inset-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-4));
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
}

p { color: var(--text-secondary); line-height: var(--leading-relaxed); }
a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--text-link-hover); text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--tr-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
button:focus-visible {
  outline: 2px solid var(--tr-blue);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* =============================================================================
   3. ACCESSIBILITY
   ============================================================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--tr-blue);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  z-index: var(--z-top);
  transition: top var(--transition-fast);
}
.skip-link:focus { top: var(--space-4); color: var(--text-inverse); text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =============================================================================
   4. LAYOUT UTILITIES
   ============================================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

section { padding-block: var(--space-20); }
section:first-of-type { padding-top: 0; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tr-blue);
  padding: var(--space-1) var(--space-3);
  background: rgba(0, 174, 239, 0.10);
  border: 1px solid rgba(0, 174, 239, 0.22);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-heading {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subheading {
  font-size: clamp(var(--text-base), 2vw, var(--text-xl));
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 640px;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =============================================================================
   5. NAVIGATION
   ============================================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: rgba(7, 17, 29, 0.85);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}
[data-theme="light"] #navbar { background: rgba(240, 247, 253, 0.92); }
[data-theme="light"] .about-logo-wrap {
  background: #FFFFFF;
  border-color: rgba(0, 174, 239, 0.25);
  box-shadow: 0 4px 24px rgba(0, 174, 239, 0.12);
}
#navbar.scrolled {
  border-bottom-color: var(--border-default);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}

#main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  gap: var(--space-6);
}

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

.nav-logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--tr-blue-glow));
}

.nav-logo-text {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-muted); text-decoration: none; }
.nav-link.active { color: var(--tr-blue); background: rgba(0, 174, 239, 0.10); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.btn-theme-toggle {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
}
.btn-theme-toggle:hover { background: var(--bg-muted); color: var(--text-primary); }

.nav-mobile-toggle {
  display: none;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 9px;
  transition: all var(--transition-fast);
}
.nav-mobile-toggle span {
  width: 100%; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  display: block;
}
.nav-mobile-toggle:hover { background: var(--bg-muted); color: var(--text-primary); }
.nav-mobile-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0; bottom: 0;
  background: var(--bg-canvas);
  z-index: var(--z-nav);
  padding: var(--space-4);
  overflow-y: auto;
}
.nav-mobile-overlay.open { display: flex; flex-direction: column; gap: var(--space-2); }
.nav-mobile-link {
  display: block;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  text-decoration: none;
  transition: all var(--transition-fast);
}
.nav-mobile-link:hover { background: var(--bg-muted); border-color: var(--border-default); text-decoration: none; }
.nav-mobile-cta {
  display: block;
  padding: var(--space-3) var(--space-4);
  margin-top: var(--space-4);
  text-align: center;
  font-weight: var(--weight-semibold);
  background: var(--tr-blue);
  color: var(--text-inverse);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.nav-mobile-cta:hover { background: var(--tr-blue-dark); color: var(--text-inverse); text-decoration: none; }

/* =============================================================================
   6. BUTTONS
   ============================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--tr-blue); outline-offset: 2px; }

.btn-primary {
  background: var(--tr-blue);
  color: var(--text-inverse);
  border-color: var(--tr-blue);
}
.btn-primary:hover {
  background: var(--tr-blue-dark);
  border-color: var(--tr-blue-dark);
  color: var(--text-inverse);
  text-decoration: none;
  box-shadow: 0 0 20px var(--tr-blue-glow);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-default);
}
.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--tr-blue);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-outline-blue {
  background: transparent;
  color: var(--tr-blue);
  border-color: var(--tr-blue);
}
.btn-outline-blue:hover {
  background: rgba(0, 174, 239, 0.10);
  color: var(--tr-blue-light);
  text-decoration: none;
}

.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* =============================================================================
   7. HERO
   ============================================================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 174, 239, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 90% 50%, rgba(0, 136, 204, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-canvas) 0%, var(--bg-default) 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 174, 239, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 174, 239, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
  padding-block: var(--space-20);
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tr-blue);
  padding: var(--space-1) var(--space-4);
  background: rgba(0, 174, 239, 0.10);
  border: 1px solid rgba(0, 174, 239, 0.25);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--tr-blue) 0%, var(--tr-blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  max-width: 680px;
  margin: 0 auto var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-6) var(--space-8);
  background: rgba(0, 174, 239, 0.05);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-16);
  max-width: 700px;
  margin-inline: auto;
}
.hero-stat { text-align: center; }
.hero-stat-icon { font-size: 1.5rem; margin-bottom: var(--space-1); }
.hero-stat-value {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--tr-blue);
  display: block;
}
.hero-stat-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Role cards en el Hero */
.hero-roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 960px;
  margin-inline: auto;
}

.role-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}
.role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}
.role-card:hover { border-color: rgba(0, 174, 239, 0.35); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.role-card:hover::before { opacity: 1; }

.role-card-icon { font-size: 2.5rem; margin-bottom: var(--space-4); display: block; }
.role-card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}
.role-card-subtitle {
  font-size: var(--text-sm);
  color: var(--tr-blue);
  font-weight: var(--weight-semibold);
  margin-bottom: var(--space-4);
}
.role-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
}

/* =============================================================================
   8. ABOUT / QUIÉNES SOMOS
   ============================================================================= */
#about { background: var(--bg-default); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: stretch;
}

.about-text .section-label { display: inline-flex; }
.about-text .section-heading { text-align: left; }

.about-paragraphs {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}
.about-paragraphs p { font-size: var(--text-lg); }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.value-card {
  padding: var(--space-5);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.value-card:hover { border-color: rgba(0, 174, 239, 0.30); transform: translateY(-2px); }
.value-icon { font-size: 1.5rem; margin-bottom: var(--space-2); }
.value-title { font-size: var(--text-base); font-weight: var(--weight-semibold); margin-bottom: var(--space-1); }
.value-desc { font-size: var(--text-sm); color: var(--text-secondary); }

.about-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-10);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-glow);
  margin-top: var(--space-5);
  margin-bottom: var(--space-6);
}
.about-logo-wrap img {
  max-width: 220px;
  filter: drop-shadow(0 0 32px var(--tr-blue-glow));
}

.about-right-col {
  display: flex;
  flex-direction: column;
  padding-top: var(--space-1);
}

/* =============================================================================
   9. TUTORIALES
   ============================================================================= */
#tutoriales { background: var(--bg-canvas); }

.tutorials-controls {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: var(--space-6);
}

.search-box {
  flex: 1;
  min-width: 240px;
  position: relative;
}
.search-box input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) 40px;
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-family: inherit;
  transition: border-color var(--transition-fast);
}
.search-box input:focus { outline: none; border-color: var(--tr-blue); box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.12); }
.search-box input::placeholder { color: var(--text-tertiary); }
.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
  pointer-events: none;
}

.category-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.filter-chip {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-chip:hover { border-color: var(--tr-blue); color: var(--tr-blue); }
.filter-chip.active {
  background: rgba(0, 174, 239, 0.14);
  border-color: var(--tr-blue);
  color: var(--tr-blue);
}

.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-4);
}

.tutorial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-normal);
  text-decoration: none;
}
.tutorial-card:hover {
  border-color: rgba(0, 174, 239, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.tutorial-card-cats {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.tutorial-cat-badge {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0, 174, 239, 0.12);
  color: var(--tr-blue);
  border: 1px solid rgba(0, 174, 239, 0.20);
}

.tutorial-card-title {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tutorial-card-excerpt {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tutorial-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-muted);
}

.tutorials-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.page-btn {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-default);
  background: var(--bg-overlay);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover { border-color: var(--tr-blue); color: var(--tr-blue); }
.page-btn.active { background: var(--tr-blue); border-color: var(--tr-blue); color: var(--text-inverse); }
.page-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.tutorials-empty {
  text-align: center;
  padding: var(--space-20) var(--space-4);
  color: var(--text-secondary);
}
.tutorials-empty-icon { font-size: 3rem; margin-bottom: var(--space-4); }

/* =============================================================================
   10. EVENTOS
   ============================================================================= */
#eventos { background: var(--bg-default); }

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.event-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.event-card:hover { border-color: rgba(0, 174, 239, 0.35); transform: translateY(-3px); box-shadow: var(--shadow-md); }

.event-card-badge {
  display: inline-flex;
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.badge-upcoming { background: rgba(0, 174, 239, 0.20); color: var(--tr-blue); border: 1px solid rgba(0, 174, 239, 0.35); }
.badge-past     { background: rgba(90, 120, 150, 0.15); color: var(--text-secondary); border: 1px solid var(--border-default); }

.event-card-header {
  background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-muted) 100%);
  padding: var(--space-4) var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--border-default);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.event-header-main {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.event-date-box {
  flex-shrink: 0;
  width: 52px;
  background: var(--tr-blue);
  border-radius: var(--radius-md);
  text-align: center;
  padding: var(--space-2) var(--space-1);
}
.event-date-box .day   { display: block; font-size: var(--text-xl); font-weight: var(--weight-extrabold); color: var(--text-inverse); line-height: 1; }
.event-date-box .month { display: block; font-size: var(--text-xs);  font-weight: var(--weight-bold);      color: rgba(7,17,29,0.7); text-transform: uppercase; }

.event-card-title { font-size: var(--text-lg); font-weight: var(--weight-bold); color: var(--text-primary); }

.event-card-body { padding: var(--space-5) var(--space-6); flex: 1; display: flex; flex-direction: column; gap: var(--space-3); }

.event-card-desc  { font-size: var(--text-sm); color: var(--text-secondary); line-height: var(--leading-relaxed); flex: 1; }

.event-meta { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-xs); color: var(--text-tertiary); }

.event-tags { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.event-tag {
  font-size: var(--text-xs);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}

.event-card-footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--border-muted);
}

/* =============================================================================
   11. VÍDEOS
   ============================================================================= */
#videos { background: var(--bg-canvas); }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-overlay);
  display: block;
  text-decoration: none;
  border: 1px solid var(--border-default);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}
.video-thumb:hover { border-color: var(--tr-blue); transform: translateY(-2px); }
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-overlay) 0%, var(--bg-muted) 100%);
  color: var(--tr-blue);
  opacity: 0.5;
}
.video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 17, 29, 0.3);
  transition: background var(--transition-fast);
}
.video-thumb:hover .video-play-overlay { background: rgba(7, 17, 29, 0.1); }
.video-card-body { display: flex; flex-direction: column; gap: var(--space-2); }
.video-card-title { font-size: var(--text-base); font-weight: var(--weight-semibold); color: var(--text-primary); }
.video-card-title a { color: inherit; }
.video-card-title a:hover { color: var(--tr-blue); }
.video-card-desc  { font-size: var(--text-sm); color: var(--text-secondary); }
.video-card-date  { font-size: var(--text-xs); color: var(--text-tertiary); }

.videos-cta { text-align: center; }

/* =============================================================================
   12. PODCAST
   ============================================================================= */
#podcast { background: var(--bg-section); }

.podcast-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
  margin-top: var(--space-10);
}

.podcast-cover-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  position: sticky;
  top: 96px;
}

.podcast-cover {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-2xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.podcast-platforms {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.btn-podcast-ivoox,
.btn-podcast-spotify {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: opacity 0.2s, transform 0.2s;
  text-decoration: none;
  width: 100%;
}

.btn-podcast-ivoox {
  background: var(--tr-blue);
  color: #fff;
  border: 1px solid var(--tr-blue);
}

.btn-podcast-spotify {
  background: transparent;
  color: var(--tr-blue);
  border: 1px solid var(--tr-blue);
}

.btn-podcast-ivoox:hover {
  background: var(--tr-blue-dark);
  border-color: var(--tr-blue-dark);
  box-shadow: 0 0 16px var(--tr-blue-glow);
  transform: translateY(-1px);
  opacity: 1;
}

.btn-podcast-spotify:hover {
  background: rgba(0, 174, 239, 0.10);
  color: var(--tr-blue-light);
  transform: translateY(-1px);
  opacity: 1;
}

.podcast-episodes-col { min-width: 0; }

.podcast-episodes-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: var(--space-3);
}

.podcast-episodes {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.podcast-episode-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: var(--space-4);
  align-items: start;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-6);
  transition: border-color 0.2s, transform 0.2s;
}

.podcast-episode-card:hover {
  border-color: var(--tr-blue);
  transform: translateY(-2px);
}

.podcast-ep-play {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2px;
  flex-shrink: 0;
}

.podcast-ep-body { min-width: 0; }

.podcast-ep-title {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
  line-height: 1.4;
}

.podcast-ep-title a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.podcast-ep-title a:hover { color: var(--tr-blue); }

.podcast-ep-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podcast-ep-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .podcast-layout {
    grid-template-columns: 1fr;
  }
  .podcast-cover-col {
    position: static;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .podcast-cover { max-width: 160px; }
  .podcast-platforms { flex-direction: row; }
}

/* =============================================================================
   13. CONTACTO
   ============================================================================= */
#contacto { background: var(--bg-default); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.contact-info .section-heading { text-align: left; }
.contact-info .section-subheading { margin-bottom: var(--space-8); }

.social-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.social-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: all var(--transition-fast);
}
.social-link:hover { border-color: var(--tr-blue); color: var(--tr-blue); transform: translateX(4px); text-decoration: none; }
.social-link svg { color: var(--tr-blue); flex-shrink: 0; }
.social-link-label { font-weight: var(--weight-semibold); color: var(--text-primary); }
.social-link-handle { color: var(--text-tertiary); font-size: var(--text-xs); }

.contact-card {
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  box-shadow: var(--shadow-glow);
}
.contact-card-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.contact-card h3 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.contact-card p  { margin-bottom: var(--space-6); color: var(--text-secondary); }

/* =============================================================================
   13. FOOTER
   ============================================================================= */
#site-footer {
  background: var(--bg-canvas);
  border-top: 1px solid var(--border-default);
  padding-block: var(--space-12);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.footer-brand-logo { width: 32px; height: 32px; object-fit: contain; }
.footer-brand-name { font-size: var(--text-base); font-weight: var(--weight-bold); color: var(--text-primary); }
.footer-desc { font-size: var(--text-sm); color: var(--text-secondary); max-width: 320px; line-height: var(--leading-relaxed); }

.footer-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}
.footer-link:hover { color: var(--tr-blue); text-decoration: none; }

.footer-social {
  display: flex;
  gap: var(--space-3);
}
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}
.footer-social-link:hover { background: rgba(0, 174, 239, 0.12); border-color: var(--tr-blue); color: var(--tr-blue); }

.footer-bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--border-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* =============================================================================
   14. ANSWER CAPSULES (SEO 2026)
   ============================================================================= */
.answer-capsule {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--bg-card);
  border-left: 3px solid var(--tr-blue);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-4) 0 var(--space-8);
  border-radius: var(--radius-md);
  max-width: 720px;
}
.footer-updated {
  color: var(--text-tertiary);
  font-size: 0.85rem;
}
.footer-updated time {
  font-style: italic;
}

/* =============================================================================
   15. FAQ SECTION
   ============================================================================= */
#faq {
  padding: var(--space-24) 0;
  border-top: 1px solid var(--border-muted);
}

.faq-list {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--bg-overlay);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-normal);
}

.faq-item[open] {
  border-color: var(--tr-blue);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  cursor: pointer;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq-question::-webkit-details-marker { display: none; }

.faq-item[open] .faq-question { color: var(--tr-blue); }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--tr-blue);
}

.faq-answer {
  padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* =============================================================================
   16. BACK TO TOP
   ============================================================================= */
#back-to-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  background: var(--tr-blue);
  color: var(--text-inverse);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-fast);
  z-index: var(--z-raised);
  box-shadow: 0 2px 12px rgba(0, 174, 239, 0.4);
}
#back-to-top.visible { opacity: 1; transform: translateY(0); }
#back-to-top:hover { box-shadow: 0 4px 20px rgba(0, 174, 239, 0.6); transform: translateY(-2px); }

/* =============================================================================
   STAFF
   ============================================================================= */
.staff-section {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.staff-heading {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--space-6);
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--space-4);
  flex: 1;
  align-items: stretch;
}

.staff-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.staff-photo-wrap {
  flex: 1;
  min-height: 100px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-elevated);
}

.staff-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.staff-photo--illustration {
  object-fit: cover;
  object-position: center center;
}

.staff-card:hover .staff-photo { transform: scale(1.04); }

.staff-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
  line-height: var(--leading-snug);
  margin: 0;
}

.staff-role {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.staff-socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-1);
}

.staff-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--tr-blue);
  background: rgba(0, 174, 239, 0.08);
  border: 1px solid rgba(0, 174, 239, 0.2);
  transition: all var(--transition-fast);
}

.staff-social-link:hover {
  background: var(--tr-blue);
  color: #fff;
  border-color: var(--tr-blue);
}

/* =============================================================================
   15. SCROLL REVEAL
   ============================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-stagger.visible > *:nth-child(1)  { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2)  { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3)  { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4)  { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5)  { opacity: 1; transform: translateY(0); transition-delay: 300ms; }
.reveal-stagger.visible > *:nth-child(6)  { opacity: 1; transform: translateY(0); transition-delay: 360ms; }
.reveal-stagger.visible > *:nth-child(7)  { opacity: 1; transform: translateY(0); transition-delay: 420ms; }
.reveal-stagger.visible > *:nth-child(8)  { opacity: 1; transform: translateY(0); transition-delay: 480ms; }
.reveal-stagger.visible > *:nth-child(9)  { opacity: 1; transform: translateY(0); transition-delay: 540ms; }
.reveal-stagger.visible > *:nth-child(10) { opacity: 1; transform: translateY(0); transition-delay: 600ms; }
.reveal-stagger.visible > *:nth-child(11) { opacity: 1; transform: translateY(0); transition-delay: 660ms; }
.reveal-stagger.visible > *:nth-child(12) { opacity: 1; transform: translateY(0); transition-delay: 720ms; }

/* =============================================================================
   16. RESPONSIVE
   ============================================================================= */
@media (max-width: 1024px) {
  .hero-roles { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
  .about-inner { grid-template-columns: 1fr; }
  .about-right-col { display: none; }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-mobile-toggle { display: flex; }

  .hero-roles { grid-template-columns: 1fr; max-width: 400px; }
  .hero-stats { gap: var(--space-5); padding: var(--space-5); }

  .about-values { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .events-grid   { grid-template-columns: 1fr; }
  .videos-grid   { grid-template-columns: 1fr; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: var(--space-4); }
}

@media (max-width: 480px) {
  .container { padding-inline: var(--space-4); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stat-value { font-size: var(--text-xl); }
}

@media (prefers-reduced-motion: reduce) {
  *, .reveal, .reveal-stagger > * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
