/* Variables CSS - Paleta de colores */
:root {
  /* Colores base */
  --bg-primary: #faf9f7;
  --bg-secondary: #f5f3f0;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --text-muted: #888888;
  
  /* Colores vibrantes */
  --turquoise: #00B3B3;
  --fuchsia: #ff3e8e;
  --orange: #ff7a00;
  --purple: #7b61ff;
  --emerald: #10b981;
  
  /* Transparencias */
  --glass: rgba(255, 255, 255, 0.9);
  --glass-dark: rgba(255, 255, 255, 0.1);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  
  /* Tipografías */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', serif;
  --font-script: 'Dancing Script', cursive;
}

/* Tema oscuro */
[data-theme="dark"] {
  --bg-primary: #0f0e12;
  --bg-secondary: #1a1820;
  --text-primary: #f0f0f0;
  --text-secondary: #b0b0b0;
  --text-muted: #808080;
  --glass: rgba(20, 18, 24, 0.8);
  --glass-dark: rgba(0, 0, 0, 0.3);
  --shadow-light: rgba(255, 255, 255, 0.05);
  --shadow-medium: rgba(255, 255, 255, 0.1);
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Decoraciones de fondo */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.canvas-texture {
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent 0px,
      rgba(0, 0, 0, 0.02) 2px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(0, 0, 0, 0.01) 2px,
      transparent 4px
    );
  opacity: 0.5;
}

/* Manchas de pintura */
.paint-splash {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.splash-1 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--turquoise) 0%, transparent 70%);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.splash-2 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--fuchsia) 0%, transparent 70%);
  top: 60%;
  right: -10%;
  animation-delay: 7s;
}

.splash-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--orange) 0%, transparent 70%);
  bottom: 20%;
  left: 70%;
  animation-delay: 14s;
}

/* Pinceladas */
.brush-stroke {
  position: absolute;
  height: 80px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--purple) 20%,
    var(--turquoise) 50%,
    var(--fuchsia) 80%,
    transparent 100%
  );
  opacity: 0.15;
  filter: blur(2px);
  border-radius: 40px;
}

.stroke-1 {
  width: 400px;
  top: 25%;
  left: 15%;
  transform: rotate(15deg);
}

.stroke-2 {
  width: 350px;
  bottom: 30%;
  right: 10%;
  transform: rotate(-20deg);
}

/* Formas geométricas */
.geometric-shapes {
  position: absolute;
  inset: 0;
}

.shape {
  position: absolute;
  opacity: 0.3;
  animation: geometricFloat 15s ease-in-out infinite;
}

.circle-shape {
  width: 120px;
  height: 120px;
  border: 3px solid var(--purple);
  border-radius: 50%;
  top: 15%;
  right: 20%;
}

.square-shape {
  width: 80px;
  height: 80px;
  border: 2px solid var(--emerald);
  bottom: 40%;
  left: 10%;
  transform: rotate(45deg);
}

.triangle-shape {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--orange);
  top: 50%;
  right: 40%;
  opacity: 0.2;
}

.line-shape {
  width: 200px;
  height: 2px;
  background: var(--fuchsia);
  top: 70%;
  left: 30%;
  transform: rotate(-45deg);
}

/* Iconos flotantes */
.floating-icons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.icon-wrapper {
  position: absolute;
  width: 60px;
  height: 60px;
  opacity: 0.4;
  animation: iconFloat 12s ease-in-out infinite;
}

.icon-wrapper svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.icon-chat {
  color: var(--turquoise);
  top: 20%;
  left: 8%;
  animation-delay: 0s;
}

.icon-camera {
  color: var(--fuchsia);
  top: 60%;
  right: 15%;
  animation-delay: 3s;
}

.icon-mic {
  color: var(--orange);
  bottom: 25%;
  left: 20%;
  animation-delay: 6s;
}

.icon-palette {
  color: var(--purple);
  bottom: 15%;
  right: 25%;
  animation-delay: 9s;
}

/* Botón de tema */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-light);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--shadow-medium);
}

.theme-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-primary);
  transition: opacity 0.3s ease;
}

.moon-icon {
  opacity: 0;
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
}

/* Contenedor principal */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  margin-bottom: 6rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.highlight {
  font-family: var(--font-script);
  color: var(--fuchsia);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0.2em;
  left: -0.1em;
  right: -0.1em;
  height: 0.3em;
  background: linear-gradient(90deg, var(--turquoise), var(--fuchsia), var(--orange));
  opacity: 0.3;
  border-radius: 2px;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 50ch;
}

/* Galería virtual */
.virtual-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  perspective: 1200px;
  height: 400px;
}

.gallery-frame {
  background: var(--glass);
  backdrop-filter: blur(15px);
  border: 8px solid rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  padding: 1rem;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  box-shadow: 
    0 20px 40px var(--shadow-light),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
  overflow: hidden;
}

.frame-1 {
  transform: rotateY(-5deg) rotateX(2deg);
  grid-column: 1;
  grid-row: 1 / 3;
}

.frame-2 {
  transform: rotateY(2deg) rotateX(-3deg);
  grid-column: 2;
  grid-row: 1;
}

.frame-3 {
  transform: rotateY(8deg) rotateX(1deg);
  grid-column: 3;
  grid-row: 1 / 3;
}

.gallery-frame:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.artwork {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  position: relative;
}

.abstract-art {
  background: 
    radial-gradient(circle at 30% 30%, var(--turquoise) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, var(--fuchsia) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, var(--orange) 0%, transparent 35%),
    linear-gradient(135deg, rgba(123, 97, 255, 0.1) 0%, transparent 100%);
}

.storyboard-art {
  background: 
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 10px,
      transparent 10px,
      transparent 20px
    ),
    linear-gradient(135deg, var(--purple) 0%, var(--turquoise) 100%);
}

.sound-waves {
  background: 
    repeating-linear-gradient(
      90deg,
      var(--orange) 0px,
      var(--orange) 4px,
      transparent 4px,
      transparent 12px
    ),
    radial-gradient(circle at center, var(--fuchsia) 0%, transparent 50%);
}

/* Programas */
.programs-section {
  margin-top: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--turquoise), var(--fuchsia));
  border-radius: 2px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.program-card {
  background: var(--glass);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px var(--shadow-light);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(50px);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px var(--shadow-medium);
}

.card-header {
  position: relative;
  padding: 2rem;
  background: linear-gradient(135deg, 
    rgba(0, 179, 179, 0.1) 0%, 
    rgba(255, 62, 142, 0.1) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-icon {
  width: 80px;
  height: 80px;
  color: var(--purple);
  margin-bottom: 1rem;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 1.5;
}

.card-decoration {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, var(--fuchsia) 0%, transparent 70%);
  border-radius: 50%;
  opacity: 0.1;
  filter: blur(20px);
}

.card-content {
  padding: 2rem;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.level-tag {
  background: linear-gradient(135deg, var(--turquoise), var(--emerald));
  color: white;
  border: none;
}

.focus-tag {
  background: linear-gradient(135deg, var(--orange), var(--fuchsia));
  color: white;
  border: none;
}

/* Animaciones */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(1deg); }
  50% { transform: translateY(-10px) rotate(-0.5deg); }
  75% { transform: translateY(-15px) rotate(0.5deg); }
}

@keyframes geometricFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  33% { transform: translateY(-15px) rotate(120deg); opacity: 0.2; }
  66% { transform: translateY(-5px) rotate(240deg); opacity: 0.4; }
}

@keyframes iconFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.1); }
}

/* Cursor artístico personalizado */
.artistic-cursor-active,
.artistic-cursor-active * {
  cursor: none !important;
}

.artistic-cursor {
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.cursor-effects {
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.cursor-particle {
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

/* Botón de tema artístico personalizado */
.theme-toggle.artistic-theme {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, 
    rgba(0, 179, 179, 0.15) 0%, 
    rgba(255, 62, 142, 0.15) 50%,
    rgba(255, 122, 0, 0.15) 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
}

.theme-toggle.artistic-theme::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: conic-gradient(
    from 0deg,
    var(--turquoise),
    var(--fuchsia),
    var(--orange),
    var(--purple),
    var(--turquoise)
  );
  border-radius: 50%;
  z-index: -1;
  animation: rotateGradient 3s linear infinite;
}

.theme-toggle.artistic-theme::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--glass);
  border-radius: 50%;
  z-index: -1;
}

.theme-toggle.artistic-theme:hover {
  transform: scale(1.15);
  box-shadow: 
    0 8px 32px rgba(0, 179, 179, 0.3),
    0 16px 64px rgba(255, 62, 142, 0.2);
}

.theme-toggle.artistic-theme svg {
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.theme-toggle.artistic-theme .sun-icon {
  stroke: var(--orange);
}

.theme-toggle.artistic-theme .moon-icon {
  stroke: var(--purple);
}

/* Animación del gradiente rotativo */
@keyframes rotateGradient {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .virtual-gallery {
    grid-template-columns: repeat(2, 1fr);
    height: 300px;
  }
  
  .frame-1, .frame-3 {
    grid-row: auto;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 1rem;
  }
  
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}
/* ============================
   CORRECCIÓN DE CONTRASTE MODO OSCURO - VERSIÓN CORREGIDA
   ============================ */

/* Modo Oscuro - Tarjetas de Programa */
[data-theme="oscuro"] .program-card,
[data-bs-theme="oscuro"] .program-card {
  background: rgba(30, 41, 59, 0.95) !important;
  border: 1px solid rgba(71, 85, 105, 0.3) !important;
  color: #F8FAFC !important;
}

[data-theme="oscuro"] .card-header,
[data-bs-theme="oscuro"] .card-header {
  background: linear-gradient(135deg, 
    rgba(30, 41, 59, 0.8) 0%, 
    rgba(51, 65, 85, 0.6) 100%) !important;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3) !important;
}

[data-theme="oscuro"] .card-content,
[data-bs-theme="oscuro"] .card-content {
  background: rgba(30, 41, 59, 0.9) !important;
  color: #F8FAFC !important;
}

[data-theme="oscuro"] .card-icon,
[data-bs-theme="oscuro"] .card-icon {
  color: #60A5FA !important;
}

[data-theme="oscuro"] .card-decoration,
[data-bs-theme="oscuro"] .card-decoration {
  background: radial-gradient(circle, rgba(96, 165, 250, 0.3) 0%, transparent 70%) !important;
}

[data-theme="oscuro"] .card-title,
[data-bs-theme="oscuro"] .card-title {
  color: #F8FAFC !important;
  font-weight: 700 !important;
}

[data-theme="oscuro"] .card-description,
[data-bs-theme="oscuro"] .card-description {
  color: #E2E8F0 !important;
  font-weight: 500 !important;
}

[data-theme="oscuro"] .card-tags,
[data-bs-theme="oscuro"] .card-tags {
  background: transparent !important;
}

[data-theme="oscuro"] .tag,
[data-bs-theme="oscuro"] .tag {
  border: 1px solid rgba(71, 85, 105, 0.5) !important;
  background: rgba(51, 65, 85, 0.8) !important;
  color: #F8FAFC !important;
  font-weight: 600 !important;
}

[data-theme="oscuro"] .level-tag,
[data-bs-theme="oscuro"] .level-tag {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.6), rgba(74, 222, 128, 0.6)) !important;
  color: #0F172A !important;
  border: 1px solid rgba(96, 165, 250, 0.5) !important;
  font-weight: 700 !important;
}

[data-theme="oscuro"] .focus-tag,
[data-bs-theme="oscuro"] .focus-tag {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.6), rgba(248, 113, 113, 0.6)) !important;
  color: #0F172A !important;
  border: 1px solid rgba(251, 146, 60, 0.5) !important;
  font-weight: 700 !important;
}

/* Hover mejorado en modo oscuro */
[data-theme="oscuro"] .program-card:hover,
[data-bs-theme="oscuro"] .program-card:hover {
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6) !important;
  border-color: rgba(96, 165, 250, 0.4) !important;
}

/* Hero Section - Modo Oscuro */
[data-theme="oscuro"] .hero-title,
[data-bs-theme="oscuro"] .hero-title {
  color: #F8FAFC !important;
}

[data-theme="oscuro"] .highlight,
[data-bs-theme="oscuro"] .highlight {
  color: #F472B6 !important;
}

[data-theme="oscuro"] .hero-subtitle,
[data-bs-theme="oscuro"] .hero-subtitle {
  color: #CBD5E1 !important;
}

/* Sección Title - Modo Oscuro */
[data-theme="oscuro"] .section-title,
[data-bs-theme="oscuro"] .section-title {
  color: #F8FAFC !important;
}

[data-theme="oscuro"] .section-title::after,
[data-bs-theme="oscuro"] .section-title::after {
  background: linear-gradient(90deg, #60A5FA, #F472B6) !important;
}

/* Galería Virtual - Modo Oscuro */
[data-theme="oscuro"] .gallery-frame,
[data-bs-theme="oscuro"] .gallery-frame {
  background: rgba(30, 41, 59, 0.8) !important;
  border: 8px solid rgba(51, 65, 85, 0.6) !important;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(71, 85, 105, 0.4) !important;
}

/* Elementos de fondo - Modo Oscuro */
[data-theme="oscuro"] .paint-splash,
[data-bs-theme="oscuro"] .paint-splash {
  opacity: 0.25 !important;
}

[data-theme="oscuro"] .brush-stroke,
[data-bs-theme="oscuro"] .brush-stroke {
  opacity: 0.1 !important;
}

[data-theme="oscuro"] .shape,
[data-bs-theme="oscuro"] .shape {
  opacity: 0.2 !important;
}

[data-theme="oscuro"] .icon-wrapper,
[data-bs-theme="oscuro"] .icon-wrapper {
  opacity: 0.3 !important;
}
/* ============================
   ESTILOS DE IMPRESIÓN
   ============================ */

@media print {
  /* Reset general para impresión */
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  /* Ocultar elementos innecesarios */
  #header-placeholder,
  #footer-placeholder,
  #theme-toggle-placeholder,
  #arrow-button-placeholder,
  .theme-toggle,
  .bg-decorations,
  .floating-icons,
  .canvas-texture,
  .paint-splash,
  .brush-stroke,
  .geometric-shapes,
  .icon-wrapper,
  #cursor-follower,
  .skip-link,
  #preloader-placeholder {
    display: none !important;
  }

  /* Configuración de página */
  @page {
    margin: 2cm;
    size: A4 portrait;
  }

  body {
    font-family: 'Inter', Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    color: black;
    background: white;
    margin: 0;
    padding: 0;
  }

  /* Contenedor principal */
  .container {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    margin-bottom: 1.5cm;
    page-break-after: avoid;
  }

  .hero-content {
    display: block;
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hero-text {
    margin-bottom: 1cm;
  }

  .hero-title {
    font-size: 24pt;
    font-weight: bold;
    margin-bottom: 0.5cm;
    color: black;
    line-height: 1.2;
  }

  .highlight {
    color: black;
    font-style: italic;
  }

  .highlight::after {
    display: none;
  }

  .hero-subtitle {
    font-size: 12pt;
    color: black;
    margin-bottom: 0.5cm;
  }

  /* Ocultar galería virtual en impresión */
  .virtual-gallery {
    display: none;
  }

  /* Sección de programas */
  .programs-section {
    margin-top: 1cm;
  }

  .section-title {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 0.75cm;
    color: black;
    text-align: left;
    border-bottom: 2pt solid black;
    padding-bottom: 0.25cm;
  }

  .section-title::after {
    display: none;
  }

  /* Grid de programas */
  .programs-grid {
    display: block;
  }

  /* Tarjetas de programa */
  .program-card {
    background: white;
    border: 1pt solid black;
    border-radius: 0;
    padding: 0.5cm;
    margin-bottom: 0.75cm;
    page-break-inside: avoid;
    box-shadow: none;
    opacity: 1;
    transform: none;
  }

  .program-card:hover {
    transform: none;
    box-shadow: none;
  }

  .card-header {
    background: white;
    border: none;
    padding: 0;
    margin-bottom: 0.3cm;
  }

  .card-icon {
    display: none;
  }

  .card-decoration {
    display: none;
  }

  .card-content {
    padding: 0;
  }

  .card-title {
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 0.3cm;
    color: black;
    line-height: 1.3;
  }

  .card-description {
    font-size: 11pt;
    color: black;
    margin-bottom: 0.3cm;
    line-height: 1.5;
  }

  .card-tags {
    display: flex;
    gap: 0.3cm;
    flex-wrap: wrap;
  }

  .tag {
    padding: 0.1cm 0.3cm;
    border: 1pt solid black;
    border-radius: 0;
    font-size: 10pt;
    font-weight: normal;
    background: white;
    color: black;
  }

  .level-tag,
  .focus-tag {
    background: white;
    color: black;
    border: 1pt solid black;
  }

  /* Evitar saltos de página no deseados */
  h1, h2, h3, h4, h5, h6 {
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  article {
    page-break-inside: avoid;
  }

  /* Links */
  a {
    color: black;
    text-decoration: underline;
  }

  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 10pt;
  }

  /* Optimización de imágenes */
  img {
    max-width: 100%;
    height: auto;
    page-break-inside: avoid;
  }
}
