/* ============================================
   LSP PLATFORM — DESIGN SYSTEM
   LEGO Ideas Style · Negro · Preciso · Elegante
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Effra:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS CUSTOM PROPERTIES ─────────────────── */
:root {
  /* ── LEGO Ideas Core Palette ── */
  --black: #000000;
  /* LEGO true black */
  --black-light: #141414;
  /* Off-black surfaces (navbar, hero) */
  --black-card: #1e1e1e;
  /* Dark card surfaces */
  --yellow: #ffd300;
  /* LEGO brand yellow — primary accent */
  --yellow-dark: #f0c000;
  /* Yellow on hover */
  --yellow-light: #fff9cc;
  /* Tinted yellow surface */
  --red: #e63946;
  /* LSP Red — kept for badges/accents */
  --red-light: #f0f4ff;
  /* Light blue-purple that complements purple theme */
  --purple: #4c2f92;
  /* Primary purple accent */
  --purple-light: #f8f4ff;
  /* Light purple background */
  --purple-mid: #6b3fb8;
  /* Medium purple for hover */

  /* ── Neutral System ── */
  --white: #ffffff;
  --surface: #f7f7f7;
  /* Section alternating bg */
  --surface-2: #eeeeee;
  /* Slightly deeper neutral */
  --gray-100: #f2f2f2;
  --gray-200: #e5e5e5;
  --gray-300: #cccccc;
  --gray-500: #888888;
  --gray-700: #444444;
  --gray-900: #1a1a1a;
  /* Near-black text */

  /* ── Semantic Aliases ── */
  --text: var(--gray-900);
  --text-muted: var(--gray-500);
  --text-on-dark: rgba(255, 255, 255, .75);
  --border: var(--gray-200);
  --border-dark: rgba(255, 255, 255, .12);
  --accent: var(--purple);
  --accent-dark: var(--purple-mid);
  --accent-light: var(--purple-light);

  /* ── Legacy aliases (keep internal JS refs working) ── */
  --blue: var(--black);
  /* Maps old blue/red accents to black */
  --blue-dark: #b5212d;
  --blue-light: var(--red-light);
  --blue-mid: #ef6c74;
  --legacy-accent: var(--yellow);
  /* Keep yellow as legacy accent */
  --legacy-accent-dark: var(--yellow-dark);
  --gray: var(--gray-500);
  --gray-light: var(--gray-200);
  --gray-dark: var(--gray-700);

  /* ── Shadows ── */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .10), 0 2px 8px rgba(0, 0, 0, .07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .14), 0 4px 16px rgba(0, 0, 0, .09);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, .20), 0 8px 32px rgba(0, 0, 0, .12);
  --shadow-yellow: 0 4px 24px rgba(255, 211, 0, .45);

  /* ── Geometry ── */
  --radius: 12px;
  --radius-sm: 6px;
  --radius-xl: 20px;
  --radius-pill: 100px;

  /* ── Typography ── */
  --font: 'Effra', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* ── Motion ── */
  --ease: cubic-bezier(.25, .46, .45, .94);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ─── UTILITIES ──────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ─── NAVBAR — LEGO Ideas Style (solid black) ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--black-light);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow .2s var(--ease);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.navbar-logo-img {
  height: 90px;
  width: auto;
  display: block;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  /* white version on dark navbar */
}

/* White version for dark backgrounds */
.logo-img-light {
  height: 56px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.navbar-nav a {
  color: rgba(255, 255, 255, .75);
  font-size: .875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-nav a:hover {
  background: rgba(255, 255, 255, .1);
  color: var(--white);
  text-decoration: none;
}

/* Yellow CTA button (LEGO Ideas primary action) */
.navbar-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px !important;
  transition: background .2s, box-shadow .2s !important;
}

.navbar-cta:hover {
  background: var(--yellow-dark) !important;
  box-shadow: var(--shadow-yellow) !important;
  text-decoration: none !important;
  color: var(--black) !important;
}

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, .8);
}

/* ─── HERO — LEGO Ideas Style (dark full-bleed) ─ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 88px;
  background: var(--black-light);
}

/* Subtle red glow from top-right (LSP brand) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% -10%, rgba(255, 211, 0, .08) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 20% 110%, rgba(230, 57, 70, .06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

/* LEGO-style label chip — yellow on dark */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 211, 0, .12);
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  border: 1.5px solid rgba(255, 211, 0, .25);
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.75);
  }
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 22px;
}

/* Yellow accent word (LEGO style) */
.hero h1 .accent {
  color: var(--yellow);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .65);
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .5), 0 8px 32px rgba(0, 0, 0, .3);
  aspect-ratio: 4/3;
  border: 1px solid rgba(255, 255, 255, .08);
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.hero-img-wrap:hover img {
  transform: scale(1.03);
}

/* Floating stat cards */
.hero-stats {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.stat-card {
  background: rgba(20, 20, 20, .85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.stat-card .num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.stat-card .lbl {
  font-size: .68rem;
  color: rgba(255, 255, 255, .55);
  font-weight: 500;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ─── BUTTONS — LEGO Ideas System ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: .875rem;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all .18s var(--ease);
  text-decoration: none;
  line-height: 1;
  letter-spacing: .01em;
}

/* Primary: Purple accent */
.btn-primary {
  background: var(--purple) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(76, 47, 146, 0.25);
}

.btn-primary:hover {
  background: var(--accent-dark) !important;
  box-shadow: 0 8px 24px rgba(76, 47, 146, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
  color: white !important;
}

/* Specific rule for course buttons */
.curso-card .btn-primary,
.curso-body .btn-primary {
  background: var(--purple) !important;
  color: white !important;
  border-color: var(--purple) !important;
}

.curso-card .btn-primary:hover,
.curso-body .btn-primary:hover {
  background: var(--accent-dark) !important;
  color: white !important;
}

/* Outline: white border on dark bg (hero) */
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .4);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .1);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* Ghost: light on light bg */
.btn-ghost {
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--gray-200);
}

.btn-ghost:hover {
  border-color: var(--black);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--black);
}

/* Dark button on white sections */
.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: var(--white);
}

/* Red accent (events, badges) */
.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #b5212d;
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--white);
}

/* ─── SECTION SHARED — LEGO Ideas ───────────── */
section {
  padding: 88px 0;
}

/* Label chip: yellow on white bg */
.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 14px;
}

/* Label on dark sections */
.section-label-dark {
  color: rgba(255, 211, 0, .85);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.section-title-dark {
  color: var(--white);
}

.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.75;
}

.section-sub-dark {
  color: rgba(255, 255, 255, .6);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

/* ─── TRUST BAR — black strip ─────────────────── */
.trust-bar {
  background: var(--black);
  border-top: none;
  border-bottom: none;
  padding: 32px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, .7);
  font-size: .875rem;
  font-weight: 500;
}

/* Trust icon-badge on dark bg */
.icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(76, 47, 146, 0.1);
  border: 1px solid rgba(76, 47, 146, 0.2);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.icon-badge:hover {
  background: rgba(76, 47, 146, 0.15);
  transform: translateY(-2px);
}

.icon-badge svg {
  width: 18px;
  height: 18px;
}

/* ─── EVENTS CALENDAR ────────────────────────── */
.eventos-section {
  background: var(--surface);
}

.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font);
  font-size: .85rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-700);
  cursor: pointer;
  transition: all .18s var(--ease);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px 28px;
  transition: all .2s var(--ease);
  cursor: default;
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--black);
  transform: translateX(4px);
}

.event-date {
  text-align: center;
  min-width: 56px;
}

.event-date .day {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  line-height: 1;
}

.event-date .month {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray);
}

.event-info .event-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.event-info .event-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.event-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.event-price {
  font-weight: 700;
  font-size: .95rem;
  color: var(--text);
}

/* ─── BADGE CHIPS ────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-presencial {
  background: var(--surface-2);
  color: var(--black);
  border: 1px solid rgba(76, 47, 146, 0.1);
}

.badge-online {
  background: var(--accent-light);
  color: var(--purple);
  border: 1px solid rgba(76, 47, 146, 0.2);
}

.badge-certificado {
  background: var(--black);
  color: var(--yellow);
}

.badge-avanzado {
  background: var(--surface-2);
  color: var(--black);
}

.badge-especializacion {
  background: rgba(255, 211, 0, .15);
  color: var(--black);
}

/* ─── TALLERES LSP GRID ──────────────────────── */
.talleres-section {
  background: var(--white);
}

.talleres-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.taller-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  cursor: pointer;
  transition: all .3s var(--ease);
  display: flex;
  flex-direction: column;
}

.taller-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.taller-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.taller-card:hover .taller-img {
  transform: scale(1.04);
}

.taller-img-wrap {
  overflow: hidden;
  position: relative;
}

.taller-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, transparent 60%);
  opacity: 0;
  transition: opacity .3s var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.taller-card:hover .taller-img-overlay {
  opacity: 1;
}

.taller-see-more {
  color: var(--white);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.taller-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.taller-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.taller-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
}

.taller-desc {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.taller-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--gray-light);
}

.taller-price {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--black);
}

.taller-duration {
  font-size: .8rem;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ─── ONLINE COURSES ─────────────────────────── */
.cursos-section {
  background: var(--surface);
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.curso-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s var(--ease);
  box-shadow: var(--shadow-sm);
}

.curso-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.curso-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.curso-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}

.curso-card:hover .curso-img {
  transform: scale(1.05);
}

.curso-badge-wrap {
  position: absolute;
  top: 12px;
  left: 12px;
}

.curso-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.curso-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.35;
}

.curso-desc {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.curso-stats {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: var(--gray);
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--gray-light);
}

.curso-stat {
  display: flex;
  align-items: center;
  gap: 5px;
}

.curso-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--purple);
  background: var(--accent-light);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(76, 47, 146, 0.2);
  margin-bottom: 16px;
}

/* ─── SKELETON LOADERS ───────────────────────── */
@keyframes shimmer {
  0% {
    background-position: -800px 0;
  }

  100% {
    background-position: 800px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 8px;
}

.skeleton-event {
  height: 84px;
  border-radius: var(--radius);
  margin-bottom: 12px;
}

.skeleton-card {
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
}

/* ─── MODAL ──────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 33, 36, .65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity .25s var(--ease);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-overlay.entering {
  animation: modal-bg-in .25s var(--ease) forwards;
}

@keyframes modal-bg-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--white);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 96px rgba(0, 0, 0, .28);
  transform: scale(.92) translateY(20px);
  opacity: 0;
  transition: all .3s var(--ease-spring);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-header {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.modal-hero-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.modal-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.modal-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.25;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .2);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  transition: background .2s;
  z-index: 2;
}

.modal-close:hover {
  background: rgba(255, 255, 255, .35);
}

.modal-body {
  overflow-y: auto;
  padding: 32px;
  flex: 1;
}

.modal-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-light);
}

.modal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  color: var(--gray-dark);
  font-weight: 500;
  background: var(--surface);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.modal-section-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.modal-objectives {
  list-style: none;
  margin-bottom: 28px;
}

.modal-objectives li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-light);
  line-height: 1.5;
}

.modal-objectives li:last-child {
  border-bottom: none;
}

.modal-objectives li::before {
  content: '✓';
  font-size: .85rem;
  font-weight: 700;
  color: var(--green);
  margin-top: 1px;
  flex-shrink: 0;
}

.modal-temario {
  list-style: none;
  margin-bottom: 28px;
  counter-reset: item;
}

.modal-temario li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .875rem;
  color: var(--text);
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
  counter-increment: item;
}

.modal-temario li:last-child {
  border-bottom: none;
}

.modal-temario li::before {
  content: counter(item, decimal-leading-zero);
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 6px;
  padding: 3px 8px;
  flex-shrink: 0;
  margin-top: 1px;
}

.modal-requisitos {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
  border-left: 3px solid var(--blue);
}

.modal-footer {
  padding: 20px 32px;
  border-top: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  flex-shrink: 0;
}

.modal-price-display {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--blue);
}

.modal-price-label {
  font-size: .8rem;
  color: var(--gray);
  margin-top: 2px;
}

/* ─── CTA SECTION ────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #4c2f92 0%, #6b3fb8 50%, #8b4fd8 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(255, 255, 255, .1) 0%, transparent 60%);
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
  opacity: 0.3;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-label {
  color: rgba(255, 255, 255, .9);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  backdrop-filter: blur(10px);
}

.cta-section .section-title {
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.cta-section .section-sub {
  color: rgba(255, 255, 255, .9);
  margin: 0 auto 48px;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 500px;
}

.cta-section .btn {
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px;
  position: relative;
  overflow: hidden;
}

.cta-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-section .btn:hover::before {
  left: 100%;
}

.cta-section .btn-white {
  background: var(--white);
  color: #4c2f92;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.cta-section .btn:not(.btn-white) {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.cta-section .btn:not(.btn-white):hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.02);
  text-decoration: none;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .cta-section {
    padding: 80px 0;
  }

  .cta-section .section-title {
    font-size: 2rem;
  }

  .cta-section .btn {
    margin: 8px 4px;
    padding: 14px 24px;
    font-size: 0.9rem;
  }
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, .75);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer-brand .footer-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.footer-desc {
  font-size: .875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  text-decoration: none;
  transition: background .2s;
  color: white;
}

.footer-social a:hover {
  background: var(--blue);
}

.footer-col h4 {
  color: var(--white);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, .65);
  font-size: .875rem;
  text-decoration: none;
  transition: color .15s;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .8rem;
}

/* ─── LOGIN PAGE ─────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.login-visual {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/IMG_3607.JPEG') center/cover no-repeat;
  opacity: .2;
}

.login-visual-content {
  position: relative;
  text-align: center;
  color: var(--white);
}

.login-visual h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.login-visual p {
  font-size: 1rem;
  opacity: .85;
  line-height: 1.6;
}

.login-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  background: var(--white);
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  margin-bottom: 40px;
}

.login-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.login-box h1 {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.login-box .subtitle {
  color: var(--gray);
  margin-bottom: 36px;
  font-size: .9rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--gray-dark);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .9rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  outline: none;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, .12);
}

.form-control::placeholder {
  color: var(--gray);
}

.form-error {
  display: none;
  color: var(--black);
  background: var(--yellow-light);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: .8rem;
  margin-top: 8px;
  font-weight: 600;
}

.form-error.visible {
  display: block;
}

.login-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--gray);
  margin-top: 20px;
}

.login-hint a {
  color: var(--blue);
  font-weight: 600;
}

/* ─── CURSOS PAGE ────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2e 100%);
  padding: 64px 0;
  color: var(--white);
}

.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.page-hero p {
  opacity: .85;
  max-width: 520px;
}

.cursos-page-content {
  padding: 48px 0 80px;
  background: var(--surface);
  min-height: 60vh;
}

/* ─── CURSO VIEW PAGE ────────────────────────── */
.curso-view-page {
  display: grid;
  grid-template-columns: 1fr 340px;
  min-height: 100vh;
  padding-top: 64px;
}

.curso-main {
  background: var(--white);
  padding: 40px 48px;
  overflow-y: auto;
}

.curso-sidebar {
  background: var(--surface);
  border-left: 1px solid var(--gray-light);
  padding: 0;
  overflow-y: auto;
  height: calc(100vh - 64px);
  position: sticky;
  top: 64px;
}

.sidebar-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 700;
  font-size: .9rem;
  color: var(--text);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.lesson-item {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-light);
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.lesson-item:hover {
  background: var(--accent-light);
}

.lesson-item.active {
  background: var(--accent-light);
  border-left: 3px solid var(--purple);
}

.lesson-num {
  font-size: .75rem;
  font-weight: 700;
  color: var(--purple);
  background: rgba(76, 47, 146, 0.1);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lesson-title {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.4;
}

.lesson-done .lesson-num {
  background: var(--purple);
  color: var(--white);
}

.video-wrap {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/9;
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.curso-view-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.curso-view-desc {
  font-size: .925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.resources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resource-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .875rem;
  transition: all .2s;
}

.resource-item:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}

.resource-icon {
  font-size: 1.25rem;
}

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding: 64px 0 48px;
  }

  .hero-img-wrap {
    max-width: 560px;
    margin: 0 auto;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .curso-view-page {
    grid-template-columns: 1fr;
  }

  .curso-sidebar {
    height: auto;
    position: static;
    border-left: none;
    border-top: 1px solid var(--gray-light);
  }
}

@media (max-width: 768px) {
  .talleres-grid {
    grid-template-columns: 1fr !important;
  }

  .cursos-grid {
    grid-template-columns: 1fr;
  }

  .navbar-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-light);
  }

  .navbar-nav.open {
    display: flex;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-inner {
    position: relative;
  }

  section {
    padding: 56px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .event-card {
    grid-template-columns: auto 1fr;
  }

  .event-meta {
    display: none;
  }

  .modal-body {
    padding: 20px;
  }

  .modal-footer {
    padding: 16px 20px;
  }

  .login-page {
    grid-template-columns: 1fr;
  }

  .login-visual {
    display: none;
  }

  .login-form-area {
    padding: 48px 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-stats {
    display: none;
  }

  .curso-main {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .trust-bar-inner {
    gap: 24px;
  }

  .modal {
    border-radius: var(--radius);
  }

  .modal-hero-img {
    height: 150px;
  }
}

/* ─── FLAT ICON SYSTEM (Lucide) ──────────────── */
.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm svg {
  width: 16px;
  height: 16px;
}

.icon-md svg {
  width: 22px;
  height: 22px;
}

.icon-lg svg {
  width: 28px;
  height: 28px;
}

/* ─── ABOUT / FACILITADOR SECTION ────────────── */
.about-section {
  background: var(--white);
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

/* Left: Photo + name card */
.about-photo-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-photo-wrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  background: var(--surface-2);
}

.about-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gray);
  font-size: .85rem;
}

.about-photo-placeholder svg {
  width: 64px;
  height: 64px;
  stroke: var(--gray-light);
  stroke-width: 1.5;
  fill: none;
}

.about-name-card {
  background: var(--surface);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  width: 100%;
  max-width: 340px;
}

.about-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.about-role {
  font-size: .85rem;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.about-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.about-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-dark);
  transition: all .15s;
  text-decoration: none;
}

.about-social a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.about-social a svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Right: Bio + certs */

.about-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-bio strong {
  color: var(--text);
  font-weight: 700;
}

/* Certification grid */
.cert-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.cert-card {
  background: var(--surface);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all .2s var(--ease);
}

.cert-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--black);
}

.cert-icon.yellow,
.cert-icon.red,
.cert-icon.green,
.cert-icon.blue {
  background: var(--surface-2);
  color: var(--black);
}

.cert-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cert-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  line-height: 1.3;
}

.cert-issuer {
  font-size: .78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-photo-col {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-photo-wrap {
    max-width: 200px;
  }

  .about-name-card {
    display: none;
  }
}

@media (max-width: 600px) {
  .cert-grid {
    grid-template-columns: 1fr;
  }

  .about-photo-col {
    flex-direction: column;
    align-items: center;
  }
}