/* ============================================================================
   VIVELACITY ACADEMY - EDUCATIONAL PLATFORM THEME
   Based on Select styles, customized for Academy branding
   ============================================================================ */

:root {
  /* === ACADEMY BRAND COLORS === */

  /* Blue - Primary (Professional, Educational, Trustworthy) */
  --academy-primary: #182085;
  --academy-primary-dark: #0f1555;

  /* Yellow - Accent (Energy, Attention, CTAs) */
  --academy-accent: #ffcb05;
  --academy-accent-hover: #e6b800;
  --academy-accent-light: #fff8e1;

  /* === SISTEMA BASE (UI KIT) === */

  /* Sistema de Fondos */
  --bg-main: #F5F7FA;
  --bg-surface: #FFFFFF;
  --bg-input: #F0F4F8;

  /* Sistema de Texto */
  --text-dark: #111827;
  --text-medium: #4B5563;
  --text-light: #9CA3AF;
  --text-on-accent: #FFFFFF;

  /* UI Helpers */
  --border-light: #E5E7EB;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --header-height: 72px;

  /* Sombras de Alta Calidad */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.05), 0 10px 15px -5px rgba(0,0,0,0.05);
  --shadow-float: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
  --shadow-sticky: 0 4px 20px rgba(0,0,0,0.08);

  --font-stack: 'Inter', system-ui, -apple-system, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-stack);
  background-color: white;
  color: var(--text-medium);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

button { font-family: inherit; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.2s; }

/* Layout Container */
.academy-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================================
   HEADER
   ============================================================================ */
.academy-header {
  background-color: var(--academy-primary);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sticky);
}

.header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo { height: 48px; width: auto; }

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.lang-selector {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-stack);
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.lang-selector:hover {
  background-color: white;
  color: var(--academy-primary);
  transform: translateY(-1px);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: white;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 32, 133, 0.5),
    rgba(24, 32, 133, 0.85)
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 0;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  color: #E2E8F0;
}

.btn-hero {
  background-color: var(--academy-accent);
  color: var(--academy-primary);
  border: none;
  padding: 1.1rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: all 0.2s;
  box-shadow: 0 4px 10px rgba(255, 203, 5, 0.3);
}

.btn-hero:hover {
  background-color: var(--academy-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(255, 203, 5, 0.4);
}

/* ============================================================================
   SECTIONS LAYOUT
   ============================================================================ */
.sections-area {
  padding: 5rem 0;
  background-color: var(--bg-main);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-medium);
  margin-top: 0.5rem;
}

/* ============================================================================
   SECTION CARDS (Articles, Tutorials, Podcasts)
   ============================================================================ */
.section-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 5rem;
}

.section-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

.section-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
  border-color: var(--academy-primary);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--academy-primary) 0%, var(--academy-primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
  transition: transform 0.3s;
}

.section-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.section-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--academy-primary);
}

.section-card p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
}

/* ============================================================================
   HIGHLIGHTS SECTION
   ============================================================================ */
.highlights-section {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.highlight-card {
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.highlight-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-float);
}

.highlight-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s;
}

.highlight-card:hover .highlight-image {
  transform: scale(1.05);
}

.highlight-content {
  padding: 2rem;
}

.highlight-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.highlight-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.highlight-excerpt {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-highlight {
  background: var(--academy-accent);
  color: var(--academy-primary);
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
}

.btn-highlight:hover {
  background: var(--academy-accent-hover);
  transform: translateY(-2px);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.academy-footer {
  background: #0F172A;
  color: white;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 180px;
  height: auto;
}

.footer-tagline {
  font-size: 0.95rem;
  opacity: 0.7;
  line-height: 1.5;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all 0.3s;
}

.social-link:hover {
  background: var(--academy-accent);
  color: var(--academy-primary);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: white;
  opacity: 0.7;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--academy-accent);
}

.footer-legal {
  margin-top: 1.5rem;
  text-align: center;
}

.footer-legal p {
  font-size: 0.8rem;
  opacity: 0.5;
  line-height: 1.6;
  margin: 0.25rem 0;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 1024px) {
  .section-cards-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Botón hamburguesa - oculto en desktop */
.mobile-menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  /* Botón hamburguesa visible en móvil */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
  }

  .hamburger-line {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
  }

  /* Animación cuando el menú está abierto */
  .mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Menú de navegación en móvil */
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--academy-primary) 0%, #3730a3 100%);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
  }

  .nav-links.active {
    max-height: 500px;
    opacity: 1;
  }

  .nav-links .nav-link {
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.1rem;
    justify-content: flex-start;
  }

  .nav-links .nav-link:last-child {
    border-bottom: none;
  }

  .hero-section {
    min-height: 60vh;
  }

  .hero-content {
    padding: 2rem 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .sections-area,
  .highlights-section {
    padding: 3rem 0;
  }
}

@media (max-width: 600px) {
  .academy-container {
    padding: 0 1rem;
  }

  .academy-header {
    height: 60px;
  }

  .header-inner {
    gap: 1rem;
    padding: 0 1rem;
  }

  .logo {
    height: 40px;
  }

  .lang-selector {
    padding: 0.4rem 0.75rem;
    font-size: 0.8rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .section-card {
    padding: 2rem;
  }

  .highlight-image {
    height: 200px;
  }

  .highlight-content {
    padding: 1.5rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(50px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   ARTICLE STYLES - Estilos reutilizables para artículos, tutoriales, podcasts
   ============================================================================ */

.article-header {
  background: linear-gradient(135deg, var(--academy-primary) 0%, var(--academy-primary-dark) 100%);
  color: white;
  padding: 4rem 0 3rem;
  margin-bottom: 3rem;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.article-category {
  background: var(--academy-accent);
  color: var(--academy-primary);
  padding: 0.35rem 1rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
}

.article-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.article-excerpt {
  font-size: 1.25rem;
  opacity: 0.95;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.article-image-hero {
  width: 100%;
  max-width: 1200px;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 2rem auto;
  display: block;
  box-shadow: var(--shadow-float);
}

.article-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.article-content h2 {
  font-size: 2rem;
  color: var(--academy-primary);
  font-weight: 700;
  margin: 3rem 0 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-content h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  line-height: 1.4;
}

.article-content p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
}

.article-content strong {
  color: var(--text-dark);
  font-weight: 600;
}

.article-content em {
  font-style: italic;
  color: var(--academy-primary);
}

.article-content ul,
.article-content ol {
  margin: 1.5rem 0 1.5rem 1.5rem;
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-medium);
}

.article-content li {
  margin-bottom: 1rem;
  padding-left: 0.5rem;
}

.article-content ul li::marker {
  color: var(--academy-accent);
}

.article-content blockquote {
  background: var(--academy-accent-light);
  border-left: 4px solid var(--academy-accent);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--text-dark);
}

.article-content blockquote p {
  margin-bottom: 0;
  font-size: 1.125rem;
  color: var(--text-dark);
  font-weight: 500;
}

.article-content blockquote footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text-medium);
  font-weight: 400;
}

.article-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2.5rem 0;
  box-shadow: var(--shadow-card);
}

.article-image-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.75rem;
  font-style: italic;
}

.requirement-card {
  background: var(--bg-main);
  border-left: 4px solid var(--academy-primary);
  padding: 2rem;
  margin: 2.5rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.requirement-card h2 {
  margin-top: 0;
  color: var(--academy-primary);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}

.requirement-card h3 {
  margin-top: 1.5rem;
  color: var(--academy-primary);
  font-size: 1.35rem;
}

.requirement-card h4 {
  color: var(--text-dark);
  font-size: 1.1rem;
  margin-top: 1rem;
}

.requirement-card p {
  color: var(--text-medium);
  line-height: 1.7;
}

.requirement-card ul,
.requirement-card ol {
  color: var(--text-medium);
}

.requirement-card strong {
  color: var(--text-dark);
  font-weight: 600;
}

.requirement-card em {
  color: var(--academy-primary);
  font-style: italic;
}

.example-list {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
}

.example-list h4 {
  font-size: 1.1rem;
  color: var(--academy-primary);
  margin-bottom: 1rem;
  margin-top: 0;
  font-weight: 600;
}

.example-list ul,
.example-list ol {
  margin: 0;
  padding-left: 1.5rem;
}

.example-list li {
  margin-bottom: 0.75rem;
  color: var(--text-medium);
  line-height: 1.7;
}

.example-list li:last-child {
  margin-bottom: 0;
}

.example-list strong {
  color: var(--text-dark);
  font-weight: 600;
}

/* Checklist styles - Interactive checklists without bullet points */
ul.checklist,
.checklist {
  list-style: none !important;
  padding-left: 0 !important;
}

ul.checklist li,
.checklist li {
  list-style-type: none !important;
  padding-left: 0;
}

ul.checklist li::marker,
.checklist li::marker {
  content: none;
}

.highlight-box {
  background: linear-gradient(135deg, var(--academy-primary) 0%, var(--academy-primary-dark) 100%);
  color: white;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
  text-align: center;
}

.highlight-box h2,
.highlight-box h3,
.highlight-box h4 {
  color: white;
  margin-top: 0;
}

.highlight-box h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.highlight-box h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.highlight-box h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1.1rem;
}

.highlight-box ul,
.highlight-box ol {
  text-align: left;
  margin: 1rem auto;
  max-width: 600px;
  color: white;
  list-style: none;
  padding-left: 0;
}

.highlight-box li {
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.highlight-box strong {
  color: var(--academy-accent);
  font-weight: 700;
}

.highlight-box pre {
  text-align: left;
  font-size: 0.95rem;
  line-height: 1.6;
}

.article-author {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  background: var(--bg-main);
  border-radius: var(--radius-md);
  margin: 3rem 0;
}

.article-author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.article-author-info h4 {
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.article-author-info p {
  font-size: 1rem;
  color: var(--text-medium);
  margin: 0;
}

/* ============================================================================
   IMAGE COMPARISON SLIDER - Componente interactivo Before/After
   ============================================================================ */

.vlc-comparison-slider {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 2rem auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-float);
  cursor: col-resize;
  aspect-ratio: 16 / 9;
  user-select: none;
  -webkit-user-select: none;
}

.vlc-image-wrapper {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
}

.vlc-image-wrapper.modified {
  width: 50%;
  z-index: 2;
  border-right: 2px solid white;
}

.vlc-image-wrapper.original {
  width: 100%;
  z-index: 1;
}

.vlc-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.vlc-label {
  position: absolute;
  top: 1rem;
  background: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  z-index: 3;
  pointer-events: none;
}

.vlc-label.label-before {
  left: 1rem;
}

.vlc-label.label-after {
  right: 1rem;
}

.vlc-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  z-index: 4;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.vlc-handle-line {
  flex: 1;
  width: 2px;
  background: white;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

.vlc-handle-circle {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  gap: 2px;
  padding: 0 4px;
}

.vlc-handle-circle svg {
  flex-shrink: 0;
}

.vlc-handle-circle svg:first-child {
  transform: translateX(-2px);
}

.vlc-handle-circle svg:last-child {
  transform: translateX(2px);
}

/* Estados de interacción */
.vlc-comparison-slider:active {
  cursor: grabbing;
}

.vlc-comparison-slider:focus {
  outline: 3px solid var(--academy-accent);
  outline-offset: 2px;
}

/* Responsive para slider */
@media (max-width: 768px) {
  .vlc-comparison-slider {
    border-radius: var(--radius-sm);
  }

  .vlc-handle-circle {
    width: 40px;
    height: 40px;
  }

  .vlc-label {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
  }
}

/* ============================================================================
   UTILITY GRIDS - Grids reutilizables para contenido del tutorial
   ============================================================================ */

/* Export Grid - Para las tarjetas de configuración de exportación */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

/* Image Grid - Para mosaicos de imágenes */
.image-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.image-grid .article-image {
  margin: 0;
}

/* Comparison Grid - Para comparaciones lado a lado */
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: var(--radius-sm);
}

.comparison-grid h3,
.comparison-grid h4 {
  margin-top: 0;
}

/* ============================================================================
   PODCASTS - Reproductor de audio integrado
   ============================================================================ */

/* Grid de podcasts */
.podcasts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Tarjeta de podcast (estilo player) */
.podcast-card {
  position: relative;
  background: linear-gradient(135deg,
    var(--academy-primary) 0%,
    var(--academy-primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: white;
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  cursor: default;
  user-select: none;
}

.podcast-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-float),
              0 0 30px rgba(24, 32, 133, 0.3);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Header del podcast */
.podcast-header {
  margin-bottom: 1rem;
}

.podcast-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.podcast-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.podcast-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.5rem 0;
}

/* Controles del reproductor */
.player-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.play-btn {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    var(--academy-accent) 0%,
    var(--academy-accent-hover) 100%);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 203, 5, 0.4),
              inset 0 -4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.play-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 203, 5, 0.5),
              inset 0 -4px 8px rgba(0, 0, 0, 0.15);
}

.play-btn:active {
  transform: translateY(0);
}

.play-btn:focus-visible {
  outline: 3px solid white;
  outline-offset: 3px;
}

.play-btn i {
  color: var(--academy-primary);
  width: 28px;
  height: 28px;
  stroke-width: 2.5;
}

/* Timeline del reproductor */
.player-timeline {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  margin-bottom: 0.5rem;
}

.timeline-track {
  position: relative;
  height: 10px;
  width: 100%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.12));
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
}

.timeline-buffer {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0.35),
    rgba(255, 255, 255, 0.18));
  transition: width 0.3s ease;
}

.timeline-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg,
    var(--academy-accent) 0%,
    var(--academy-accent-hover) 100%);
  box-shadow: 0 0 12px rgba(255, 203, 5, 0.5);
}

.timeline-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  border: 3px solid var(--academy-accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3),
              0 0 0 4px rgba(255, 203, 5, 0.25);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.player-timeline:hover .timeline-thumb {
  transform: translate(-50%, -50%) scale(1.1);
}

/* Tiempos del reproductor */
.player-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   RESPONSIVE DESIGN - Mobile First Improvements
   ============================================================================ */

@media (max-width: 768px) {
  /* Utility grids responsive */
  .export-grid,
  .image-grid,
  .comparison-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .export-grid {
    gap: 2rem;
  }

  /* Header más compacto */
  .article-header {
    padding: 2rem 0 1.5rem;
  }

  .article-meta {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .article-title {
    font-size: 1.75rem;
    line-height: 1.3;
  }

  .article-excerpt {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Hero image más apropiado */
  .article-image-hero {
    height: 220px;
    margin: 1.5rem auto;
    border-radius: var(--radius-sm);
  }

  /* Content con mejor espaciado */
  .article-content {
    padding: 1.5rem 1rem 3rem;
  }

  .article-content h2 {
    font-size: 1.5rem;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
  }

  .article-content h3 {
    font-size: 1.2rem;
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
  }

  .article-content h4 {
    font-size: 1.05rem;
  }

  .article-content p {
    font-size: 1rem;
    line-height: 1.7;
  }

  .article-content ul,
  .article-content ol {
    font-size: 1rem;
    margin-left: 1rem;
  }

  /* Requirement cards más compactas */
  .requirement-card {
    padding: 1.25rem;
    margin: 2rem 0;
  }

  .requirement-card h2 {
    font-size: 1.4rem;
  }

  .requirement-card h3 {
    font-size: 1.15rem;
  }

  /* Example lists optimizadas */
  .example-list {
    padding: 1rem;
  }

  .example-list h4 {
    font-size: 1rem;
  }

  /* Highlight boxes mejoradas */
  .highlight-box {
    padding: 1.75rem 1.25rem;
    margin: 2rem 0;
    border-radius: var(--radius-sm);
  }

  .highlight-box h2 {
    font-size: 1.35rem;
    line-height: 1.3;
  }

  .highlight-box h3 {
    font-size: 1.15rem;
  }

  .highlight-box h4 {
    font-size: 1rem;
  }

  .highlight-box p {
    font-size: 1rem;
  }

  .highlight-box pre {
    font-size: 0.85rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Blockquotes más compactas */
  .article-content blockquote {
    padding: 1.25rem 1rem;
    margin: 1.5rem 0;
  }

  .article-content blockquote p {
    font-size: 1rem;
  }

  /* Author bio responsive */
  .article-author {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }

  .article-author-avatar {
    width: 64px;
    height: 64px;
  }

  /* Imágenes en móvil */
  .article-image {
    margin: 1.5rem 0;
    border-radius: var(--radius-sm);
  }
  .podcast-card {
    padding: 1.5rem;
    border-radius: var(--radius-md);
  }

  .podcast-title {
    font-size: 1.25rem;
  }

  .podcast-desc {
    font-size: 0.95rem;
  }

  .play-btn {
    width: 60px;
    height: 60px;
  }

  .play-btn i {
    width: 24px;
    height: 24px;
  }

  .timeline-track {
    height: 8px;
  }

  .timeline-thumb {
    width: 16px;
    height: 16px;
  }
}

/* Mobile muy pequeño (iPhone SE, etc) */
@media (max-width: 375px) {
  .article-content {
    padding: 1rem 0.75rem 2rem;
  }

  .highlight-box {
    padding: 1.5rem 1rem;
  }

  .requirement-card {
    padding: 1rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .article-content h3 {
    font-size: 1.1rem;
  }

  .highlight-box pre,
  pre {
    font-size: 0.8rem;
  }
    .podcast-card {
    padding: 1.25rem;
  }

  .play-btn {
    width: 56px;
    height: 56px;
  }
}