/* ========================================
   Marcel V. Poeta - Estilos Principales
   ======================================== */

/* Variables CSS */
:root {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F5F0E8;
  --text-primary: #2C2C2C;
  --text-secondary: #5A5A5A;
  --accent: #722F37;
  --accent-hover: #8B3A44;
  --accent-light: #f8f0f1;
  --border: #E8E0D5;
  --shadow: rgba(114, 47, 55, 0.1);
  --white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: Georgia, 'Times New Roman', serif;
  --font-ui: system-ui, -apple-system, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  --max-width: 1200px;
  --header-height: 70px;
  --audio-player-height: 80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  padding-bottom: var(--audio-player-height);
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-hover);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

/* Contenedor */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ========================================
   Header y Navegación
   ======================================== */
.header {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  height: var(--header-height);
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.logo span {
  font-weight: 400;
  color: var(--text-secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav a {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: var(--spacing-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Menú hamburguesa */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--accent);
}

.hero-content .subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: var(--spacing-lg);
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 8px;
  box-shadow: 0 20px 60px var(--shadow);
  max-height: 500px;
  width: auto;
  margin: 0 auto;
}

/* Botón */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 500;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--white);
}

/* ========================================
   Sección de Categorías
   ======================================== */
.section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-title h2 {
  color: var(--accent);
  margin-bottom: var(--spacing-xs);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Grid de categorías */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Card de categoría */
.card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px var(--shadow);
}

.card-image {
  height: 160px;
  overflow: hidden;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.card-content {
  padding: var(--spacing-md);
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-xs);
  color: var(--accent);
}

.card-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* Link card (card completa clickeable) */
a.card {
  display: block;
  color: inherit;
}

a.card:hover {
  color: inherit;
}

/* ========================================
   Galería de Poemas
   ======================================== */
.poem-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
  padding: var(--spacing-lg) 0;
}

.poem-item {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  border: 1px solid var(--border);
}

.poem-item img {
  width: 100%;
  height: auto;
}

.poem-item figcaption {
  padding: var(--spacing-sm);
  text-align: center;
  font-style: italic;
  color: var(--text-secondary);
}

/* ========================================
   Reproductor de Audio
   ======================================== */
.audio-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--audio-player-height);
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px var(--shadow);
  z-index: 200;
  display: flex;
  align-items: center;
}

.audio-player .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  height: 100%;
}

.audio-info {
  flex: 0 0 200px;
}

.audio-info .track-title {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.audio-info .track-artist {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.audio-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.audio-btn:hover {
  background: var(--accent);
  color: var(--white);
}

.audio-btn.play-btn {
  width: 52px;
  height: 52px;
  background: var(--accent);
  color: var(--white);
}

.audio-btn.play-btn:hover {
  background: var(--accent-hover);
}

.audio-progress {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear;
  border-radius: 3px;
}

.time {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 45px;
}

.audio-volume {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  flex: 0 0 120px;
}

.volume-slider {
  width: 80px;
  height: 6px;
  -webkit-appearance: none;
  background: var(--bg-secondary);
  border-radius: 3px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: none;
}

/* Audio player oculto inicialmente */
.audio-player.hidden {
  transform: translateY(100%);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--text-primary);
  color: var(--bg-secondary);
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--audio-player-height);
}

.footer .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
}

.footer h4 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
}

.footer p, .footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

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

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-lg);
  margin-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 0.9rem;
}

/* ========================================
   Páginas internas
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding: var(--spacing-xxl) 0;
  text-align: center;
}

.page-header h1 {
  color: var(--accent);
  margin-bottom: var(--spacing-sm);
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: var(--spacing-xxl) 0;
}

/* Lista de contenido (curriculum, bibliografía) */
.content-list {
  list-style: none;
}

.content-list li {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.content-list li::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 8px;
  flex-shrink: 0;
}

.content-section {
  margin-bottom: var(--spacing-xl);
}

.content-section h3 {
  color: var(--accent);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--accent);
  margin-bottom: var(--spacing-md);
}

/* Galería de libros */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.book-item {
  text-align: center;
}

.book-item img {
  max-height: 250px;
  margin: 0 auto var(--spacing-sm);
  border-radius: 4px;
  box-shadow: 0 4px 15px var(--shadow);
}

.book-item h4 {
  font-size: 0.95rem;
  margin-bottom: var(--spacing-xs);
}

.book-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ========================================
   Breadcrumb
   ======================================== */
.breadcrumb {
  padding: var(--spacing-sm) 0;
  font-family: var(--font-ui);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb span {
  color: var(--text-secondary);
  margin: 0 var(--spacing-xs);
}

.breadcrumb strong {
  color: var(--text-primary);
}

/* ========================================
   Utilidades
   ======================================== */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero-content h1 {
    font-size: 2.25rem;
  }

  /* Navegación móvil */
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-md);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    font-size: 1.2rem;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border);
    width: 100%;
  }

  .menu-toggle {
    display: flex;
  }

  /* Audio player móvil */
  .audio-player .container {
    flex-wrap: wrap;
    padding: var(--spacing-sm) var(--spacing-md);
    gap: var(--spacing-sm);
  }

  .audio-info {
    flex: 1;
    order: 1;
  }

  .audio-controls {
    order: 2;
    gap: var(--spacing-sm);
  }

  .audio-progress {
    order: 3;
    flex: 0 0 100%;
  }

  .audio-volume {
    display: none;
  }

  .audio-player {
    height: auto;
    padding: var(--spacing-sm) 0;
  }

  body {
    padding-bottom: 100px;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero {
    padding: var(--spacing-xl) 0;
  }

  .hero-content h1 {
    font-size: 1.75rem;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   Animaciones
   ======================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

/* Loading lazy images */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Creation Icon - replaces old gear GIF */
.creation-icon {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #EDE8E0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  position: relative;
  overflow: hidden;
}

.creation-icon::before {
  content: '';
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: writeLine 2s ease-in-out infinite;
}

.creation-icon svg {
  width: 80px;
  height: 80px;
  color: var(--accent);
  animation: writeMotion 2s ease-in-out infinite;
}

@keyframes writeMotion {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(5deg) translateY(-5px); }
}

@keyframes writeLine {
  0% { width: 0; opacity: 0; }
  50% { width: 120px; opacity: 1; }
  100% { width: 0; opacity: 0; }
}

/* ============================================
   Category Card Headers - CSS-only design
   ============================================ */

.card-header {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(135deg, var(--accent) 0%, #8B3A44 100%);
}

.card-header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Decorative base element */
.card-header::before,
.card-header::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

/* === Theme: Versando (Pluma/Escritura) === */
.card-header[data-theme="versando"] {
  background: linear-gradient(135deg, #722F37 0%, #5A252C 100%);
}
.card-header[data-theme="versando"]::before {
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
}
.card-header[data-theme="versando"]::after {
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: rgba(255,255,255,0.4);
}

/* === Theme: Acrosticos (Letras/Estructura) === */
.card-header[data-theme="acrosticos"] {
  background: linear-gradient(180deg, #8B3A44 0%, #722F37 100%);
}
.card-header[data-theme="acrosticos"]::before {
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
}
.card-header[data-theme="acrosticos"]::after {
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.5), transparent);
}

/* === Theme: Espirituales (Luz/Etereo) === */
.card-header[data-theme="espirituales"] {
  background: radial-gradient(ellipse at center, #9A4A54 0%, #722F37 70%);
}
.card-header[data-theme="espirituales"]::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.card-header[data-theme="espirituales"]::after {
  top: 10px;
  right: 15px;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.3);
  content: '✦';
}

/* === Theme: Alcoy (Montaña/Tierra) === */
.card-header[data-theme="alcoy"] {
  background: linear-gradient(to bottom, #722F37 0%, #5A252C 100%);
}
.card-header[data-theme="alcoy"]::before {
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(135deg,
    transparent 25%, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.08) 50%,
    transparent 50%, transparent 75%, rgba(255,255,255,0.08) 75%);
  background-size: 20px 20px;
}
.card-header[data-theme="alcoy"]::after {
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #D4A574, var(--accent));
}

/* === Theme: Familiares (Calidez/Corazon) === */
.card-header[data-theme="familiares"] {
  background: linear-gradient(145deg, #8B3A44 0%, #722F37 50%, #5A252C 100%);
}
.card-header[data-theme="familiares"]::before {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
  content: '♥';
}
.card-header[data-theme="familiares"]::after {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.25);
  content: '♥';
}

/* === Theme: Naturaleza (Hojas/Organico) === */
.card-header[data-theme="naturaleza"] {
  background: linear-gradient(135deg, #6B4423 0%, #722F37 100%);
}
.card-header[data-theme="naturaleza"]::before {
  top: 8px;
  left: 12px;
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  content: '❧';
}
.card-header[data-theme="naturaleza"]::after {
  bottom: 8px;
  right: 12px;
  font-size: 1rem;
  color: rgba(255,255,255,0.2);
  content: '❧';
  transform: rotate(180deg);
}

/* === Theme: Tresmusas (Triple/Inspiracion) === */
.card-header[data-theme="tresmusas"] {
  background: linear-gradient(135deg, #722F37 0%, #8B3A44 50%, #722F37 100%);
}
.card-header[data-theme="tresmusas"]::before {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.4);
  box-shadow: -25px -8px 0 rgba(255,255,255,0.25), 25px -8px 0 rgba(255,255,255,0.25);
}

/* === Theme: Inmemo (Memoria/Recuerdo) === */
.card-header[data-theme="inmemo"] {
  background: linear-gradient(to bottom, #5A252C 0%, #722F37 100%);
}
.card-header[data-theme="inmemo"]::before {
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}
.card-header[data-theme="inmemo"]::after {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  content: '✧';
  color: rgba(255,255,255,0.3);
}

/* === Theme: Ideal (Suenos/Aspiraciones) === */
.card-header[data-theme="ideal"] {
  background: linear-gradient(180deg, #9A4A54 0%, #722F37 100%);
}
.card-header[data-theme="ideal"]::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 50%;
}

/* === Theme: Reflex (Pensamiento/Espejo) === */
.card-header[data-theme="reflex"] {
  background: linear-gradient(135deg, #722F37 0%, #5A252C 50%, #722F37 100%);
}
.card-header[data-theme="reflex"]::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* === Theme: Sabado (Fin de semana/Descanso) === */
.card-header[data-theme="sabado"] {
  background: linear-gradient(to right, #722F37 0%, #8B3A44 50%, #722F37 100%);
}
.card-header[data-theme="sabado"]::after {
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 1px;
  background: rgba(255,255,255,0.5);
  box-shadow: -20px 0 0 rgba(255,255,255,0.3), 20px 0 0 rgba(255,255,255,0.3);
}

/* === Theme: Ausentes (Nostalgia/Distancia) === */
.card-header[data-theme="ausentes"] {
  background: linear-gradient(180deg, #5A252C 0%, #722F37 50%, #5A252C 100%);
}
.card-header[data-theme="ausentes"]::before {
  top: 0;
  bottom: 0;
  left: 15px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}
.card-header[data-theme="ausentes"]::after {
  top: 0;
  bottom: 0;
  right: 15px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.2), transparent);
}

/* === Theme: Masmusas (Mas Inspiracion) === */
.card-header[data-theme="masmusas"] {
  background: linear-gradient(135deg, #8B3A44 0%, #722F37 100%);
}
.card-header[data-theme="masmusas"]::before {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  content: '❋';
  color: rgba(255,255,255,0.25);
}

/* === Theme: Lafesta (Fiesta/Celebracion) === */
.card-header[data-theme="lafesta"] {
  background: linear-gradient(135deg, #722F37 0%, #9A4A54 50%, #722F37 100%);
}
.card-header[data-theme="lafesta"]::before {
  top: 8px;
  left: 15px;
  content: '✶';
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}
.card-header[data-theme="lafesta"]::after {
  top: 8px;
  right: 15px;
  content: '✶';
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
}

/* === Theme: Gracia (Humor/Alegria) === */
.card-header[data-theme="gracia"] {
  background: linear-gradient(to bottom right, #8B3A44 0%, #722F37 100%);
}
.card-header[data-theme="gracia"]::after {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  content: '~';
  color: rgba(255,255,255,0.4);
  font-size: 1.5rem;
}

/* === Theme: Navidad (Festividad/Invierno) === */
.card-header[data-theme="navidad"] {
  background: linear-gradient(180deg, #5A252C 0%, #722F37 100%);
}
.card-header[data-theme="navidad"]::before {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  content: '✦';
  color: rgba(255,215,0,0.4);
}
.card-header[data-theme="navidad"]::after {
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #722F37, rgba(255,215,0,0.3), #722F37);
}

/* === Theme: Valencia (Ciudad/Costa) === */
.card-header[data-theme="valencia"] {
  background: linear-gradient(135deg, #722F37 0%, #8B4513 100%);
}
.card-header[data-theme="valencia"]::after {
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #FFB347, #FF6B35, #FFB347);
  opacity: 0.6;
}

/* === Theme: Bodas (Amor/Union) === */
.card-header[data-theme="bodas"] {
  background: linear-gradient(135deg, #9A4A54 0%, #722F37 100%);
}
.card-header[data-theme="bodas"]::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.card-header[data-theme="bodas"]::after {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  content: '♥';
  color: rgba(255,255,255,0.2);
  font-size: 0.8rem;
}

/* === Theme: Leyendas (Historia/Mito) === */
.card-header[data-theme="leyendas"] {
  background: linear-gradient(to bottom, #4A1F24 0%, #722F37 100%);
}
.card-header[data-theme="leyendas"]::before {
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  content: '⚜';
  color: rgba(255,255,255,0.25);
}

/* === Theme: Caminante (Viaje/Camino) === */
.card-header[data-theme="caminante"] {
  background: linear-gradient(135deg, #6B4423 0%, #722F37 50%, #5A252C 100%);
}
.card-header[data-theme="caminante"]::after {
  bottom: 15px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* === Theme: Encargos (Dedicatorias/Personal) === */
.card-header[data-theme="encargos"] {
  background: linear-gradient(180deg, #722F37 0%, #8B3A44 100%);
}
.card-header[data-theme="encargos"]::before {
  top: 8px;
  left: 8px;
  width: 20px;
  height: 20px;
  border-left: 2px solid rgba(255,255,255,0.2);
  border-top: 2px solid rgba(255,255,255,0.2);
}
.card-header[data-theme="encargos"]::after {
  bottom: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255,255,255,0.2);
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

/* === Theme: Trucos (Ingenio/Juego) === */
.card-header[data-theme="trucos"] {
  background: linear-gradient(135deg, #722F37 0%, #5A252C 100%);
}
.card-header[data-theme="trucos"]::before {
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  content: '✧';
  color: rgba(255,255,255,0.3);
}
.card-header[data-theme="trucos"]::after {
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  content: '✧';
  color: rgba(255,255,255,0.3);
}

/* === Theme: Senten (Sentencias/Sabiduria) === */
.card-header[data-theme="senten"] {
  background: linear-gradient(to bottom, #722F37 0%, #5A252C 100%);
}
.card-header[data-theme="senten"]::before {
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  content: '"';
  font-size: 2rem;
  color: rgba(255,255,255,0.2);
  font-family: Georgia, serif;
}

/* === Theme: Radio (Audio/Voz) === */
.card-header[data-theme="radio"] {
  background: linear-gradient(135deg, #5A252C 0%, #722F37 100%);
}
.card-header[data-theme="radio"]::before {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}
.card-header[data-theme="radio"]::after {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
}

/* === Theme: Musa (Inspiracion/Destacado) === */
.card-header[data-theme="musa"] {
  background: linear-gradient(135deg, #8B3A44 0%, #722F37 50%, #5A252C 100%);
}
.card-header[data-theme="musa"]::before {
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  content: '✦';
  font-size: 1rem;
  color: rgba(255,255,255,0.3);
}
.card-header[data-theme="musa"]::after {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: rgba(255,255,255,0.3);
}
.card-header[data-theme="musa"] .card-header-title {
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  padding: 0 15px;
}

/* === Default theme (fallback) === */
.card-header[data-theme="default"] {
  background: linear-gradient(135deg, #722F37 0%, #8B3A44 100%);
}
.card-header[data-theme="default"]::after {
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: rgba(255,255,255,0.3);
}
