body {
  font-family: 'Merriweather', serif;
  background: linear-gradient(135deg, #4a148c, #6a1b9a, #8e24aa);
  color: #f5f5f5;
  margin: 0;
  padding: 0;
}

.navbar {
  background: rgba(74, 20, 140, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: 2px solid #9575cd;
}

.navbar-brand {
  font-family: 'Great Vibes', cursive;
  font-size: 1.8rem;
  color: #f3e5f5 !important;
}

.nav-link {
  color: #e1bee7 !important;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff !important;
}

.hero-section {
  background: url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(74, 20, 140, 0.6);
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  margin-bottom: 20px;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.btn-primary {
  background-color: #7b1fa2;
  border: none;
}

.btn-primary:hover {
  background-color: #9c27b0;
}

.btn-outline-light:hover {
  background-color: #7b1fa2;
  color: #fff;
}

h2 {
  font-family: 'Merriweather', serif;
  color: #ede7f6;
  margin-bottom: 20px;
}

.card {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0px 10px 20px rgba(0,0,0,0.4);
}

.card img {
  border-radius: 15px 15px 0 0;
}

footer {
  background: #311b92;
  color: #d1c4e9;
}

footer h5 {
  color: #fff;
  margin-bottom: 15px;
}

footer a {
  color: #b39ddb;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

body {
  transition: background 0.5s, color 0.5s;
}

.dark-mode {
  background: #121212 !important;
  color: #eee !important;
}

.dark-mode .card {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #fff !important;
}

 :root{
      --violet-700:#6f42c1; --violet-600:#7b2cbf; --violet-500:#8a4fff;
      --bg-warm:#f7f3fc; --ink:#2b2b2b; --muted:#6b6b6b;
    }
    /* Fix navbar superpuesto */
    body{ padding-top: 72px; background: var(--bg-warm); color: var(--ink); font-family: 'Merriweather', serif; }

    /* Navbar */
    .navbar{ background: #222; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
    .navbar-brand{ font-family: 'Great Vibes', cursive; font-size: 1.9rem; letter-spacing:.5px }
    .navbar .nav-link{ color:#e9dffb !important; opacity:.9 }
    .navbar .nav-link:hover{ color:#fff !important }

    /* Hero (arreglado: .hero-section y .hero apuntan al mismo estilo) */
    .hero, .hero-section{
      position: relative; min-height: 78vh; display:flex; align-items:center; justify-content:center;
      text-align:center; color:#fff; border-radius: 0 0 24px 24px; overflow:hidden;
      background: linear-gradient(135deg, #5e17eb 0%, #7b2cbf 40%, #9333ea 100%);
    }
    .hero::before{
      content:""; position:absolute; inset:0;
      background:url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
      opacity:.18; filter: blur(2px);
    }
    .hero .content{ position:relative; z-index:2; max-width: 920px; padding: 0 16px; }
    .hero h1{ font-size: clamp(2.4rem, 6vw, 4rem); font-weight:700; text-shadow: 0 6px 24px rgba(0,0,0,.35) }
    .hero p.lead{ font-size: clamp(1.05rem, 2.6vw, 1.35rem); opacity:.95 }
    .cta-btn{ background: #f0e6ff; color:#3b0764; border:none; padding:.9rem 1.2rem; border-radius:14px; font-weight:700 }
    .cta-btn:hover{ filter: brightness(.95) }

    /* Buscador */
    .search-wrap{ margin-top: 24px }
    .search-wrap .form-control{ border-radius: 999px; padding: .9rem 1.2rem; box-shadow: 0 6px 22px rgba(123,44,191,.25) }
    .search-wrap .btn{ border-radius: 999px; }

    /* Cards “glass” */
    .glass-card{
      background: rgba(255,255,255,.65);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border:1px solid rgba(255,255,255,.5);
      border-radius: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.12);
      transition: transform .25s ease, box-shadow .25s ease;
    }
    .glass-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.18) }
    .book-cover{ border-radius: 14px; width:100%; height: 220px; object-fit:cover }
    .badge-genre{ background: var(--violet-600) }

    /* Recomendaciones carrusel */
    .carousel .card{ border:none }

    /* Reseñas */
    .review{ background:#fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 24px rgba(0,0,0,.08) }

    /* Footer */
    footer{ background:#1f1b2e; color:#e7dcff; border-radius: 20px 20px 0 0 }

    /* Modo oscuro */
    .dark-mode{ background:#12121a !important; color:#e8e8f1 !important }
    .dark-mode .glass-card{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08) }
    .dark-mode .review{ background: rgba(255,255,255,.06) }
    .dark-mode footer{ background:#0e0d14 }
    .hidden{ display:none !important }

    /* Chat en modo oscuro */
    .dark-mode #club .chat-box {
    background: #1e1b29;
    border-color: #5b2fa5;
    }

    .dark-mode #club .chat-messages {
      background: #2a243b;
      color: #eee;
    }

    .dark-mode .message.user {
      background: linear-gradient(135deg, #9333ea, #7b2cbf);
    }

    .dark-mode .message.other {
      background: #3b2a4f;
      color: #f5f5f5;
    }

    .dark-mode #club .input-group .form-control {
      background: #2a243b;
      color: #eee;
      border: 1px solid #5b2fa5;
    }

    .dark-mode #club .input-group .btn {
      background: linear-gradient(135deg, #9333ea, #7b2cbf);
    }

    .dark-mode #catalogo .card {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid rgba(187, 134, 252, 0.2);
    }

    .dark-mode #catalogo .card-title {
      color: #bb86fc;
    }

    .dark-mode #catalogo .btn {
      background: linear-gradient(135deg, #9333ea, #7b2cbf);
    }

    .dark-mode .reviews .review-card {
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid rgba(187, 134, 252, 0.25);
      color: #eee;
    }

    .dark-mode .reviews h2 {
      color: #bb86fc !important;
    }

    .dark-mode #catalogo .card {
      background: rgba(255, 255, 255, 0.06) !important;
      border: 1px solid rgba(187, 134, 252, 0.2);
      color: #eee;
    }

    .dark-mode #catalogo .card-title {
      color: #bb86fc;
    }

    .dark-mode #catalogo .card-text {
      color: #ccc;
    }


    /* General */
h2, h3, h4, h5, h6 {
  color: #4b0082; /* Índigo elegante */
  font-weight: bold;
}

/* Reseñas */
.reviews h2 {
  color: #4b0082 !important; /* Título más visible */
}
.review-card {
  background: #fff;
  color: #333;
  border: none;
  border-radius: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Footer */
footer {
  background: #1e1b29; /* Morado oscuro casi negro */
  color: #eee;
  text-align: center;
  padding: 40px 20px;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}
footer h5 {
  color: #fff;
  font-weight: bold;
}
footer p {
  color: #bbb;
}
footer a {
  color: #c084fc;
  transition: color 0.3s;
}
footer a:hover {
  color: #fff;
}

/* Inputs en el footer */
footer input {
  border-radius: 10px;
  border: none;
  padding: 10px;
  outline: none;
}
footer button {
  border-radius: 10px;
  background: #6a0dad;
  color: #fff;
  font-weight: bold;
  transition: background 0.3s;
}
footer button:hover {
  background: #520a8a;
}

/* Modo oscuro */
.dark-mode h2,
.dark-mode h5 {
  color: #fff !important;
}
.dark-mode .review-card {
  background: #2c2c3a;
  color: #f5f5f5;
}
.dark-mode footer {
  background: #121212;
  color: #ddd;
}
.dark-mode footer h5 {
  color: #fff;
}
.dark-mode footer a {
  color: #bb86fc;
}

    :root{
      --violet-700:#6f42c1; 
      --violet-600:#7b2cbf; 
      --violet-500:#8a4fff;
      --bg-warm:#f7f3fc; 
      --ink:#2b2b2b; 
      --muted:#6b6b6b;
    }
    body{ padding-top: 72px; background: var(--bg-warm); color: var(--ink); font-family: 'Merriweather', serif; transition: background .5s, color .5s; }

    /* Navbar */
    .navbar{ background: #222; box-shadow: 0 2px 14px rgba(0,0,0,.25); }
    .navbar-brand{ font-family: 'Great Vibes', cursive; font-size: 1.9rem; }
    .navbar .nav-link{ color:#e9dffb !important; opacity:.9 }
    .navbar .nav-link:hover{ color:#fff !important }

    /* Hero */
    .hero, .hero-section{
      position: relative; min-height: 78vh; display:flex; align-items:center; justify-content:center;
      text-align:center; color:#fff; border-radius: 0 0 24px 24px; overflow:hidden;
      background: linear-gradient(135deg, #5e17eb 0%, #7b2cbf 40%, #9333ea 100%);
    }
    .hero::before{
      content:""; position:absolute; inset:0;
      background:url('https://images.unsplash.com/photo-1524995997946-a1c2e315a42f?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
      opacity:.18; filter: blur(2px);
    }
    .hero .content{ position:relative; z-index:2; max-width: 920px; padding: 0 16px; }
    .hero h1{ font-size: clamp(2.4rem, 6vw, 4rem); font-weight:700; text-shadow: 0 6px 24px rgba(0,0,0,.35) }
    .hero p.lead{ font-size: clamp(1.05rem, 2.6vw, 1.35rem); opacity:.95 }
    .cta-btn{ background: #f0e6ff; color:#3b0764; border:none; padding:.9rem 1.2rem; border-radius:14px; font-weight:700 }
    .cta-btn:hover{ filter: brightness(.95) }

    /* Buscador */
    .search-wrap{ margin-top: 24px }
    .search-wrap .form-control{ border-radius: 999px; padding: .9rem 1.2rem; box-shadow: 0 6px 22px rgba(123,44,191,.25) }
    .search-wrap .btn{ border-radius: 999px; }

    /* Cards */
    .glass-card{
      background: rgba(255,255,255,.65);
      backdrop-filter: blur(10px);
      border:1px solid rgba(255,255,255,.5);
      border-radius: 18px; box-shadow: 0 10px 28px rgba(0,0,0,.12);
      transition: transform .25s ease, box-shadow .25s ease;
    }
    .glass-card:hover{ transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.18) }
    .book-cover{ border-radius: 14px; width:100%; height: 220px; object-fit:cover }
    .badge-genre{ background: var(--violet-600) }

    /* Fav button */
    .fav-btn{ font-size:.9rem }
    .fav-btn i{ color:#6a1b9a }
    .fav-btn.active{ background:#6a1b9a !important; color:#fff !important }

    /* Reseñas */
    .review{ background:#fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 6px 24px rgba(0,0,0,.08) }

    /* Footer */
    footer{ background:#1f1b2e; color:#e7dcff; border-radius: 20px 20px 0 0 }

    /* Modo oscuro */
    .dark-mode{ background:#12121a !important; color:#e8e8f1 !important }
    .dark-mode .glass-card{ background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.08) }
    .dark-mode .review{ background: rgba(255,255,255,.06) }
    .dark-mode footer{ background:#0e0d14 }
    .hidden{ display:none !important }

    /* CHAT */
.chat-box {
  max-width: 700px;
  margin: auto;
  border-radius: 16px;
}
.chat-messages {
  max-height: 250px;
  overflow-y: auto;
  padding: 10px;
}
.chat-message {
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 14px;
  max-width: 75%;
}
.chat-message.user {
  background: var(--violet-600);
  color: #fff;
  margin-left: auto;
}
.chat-message.bot {
  background: #eee;
  color: #333;
  margin-right: auto;
}

/* BOTÓN DE MÚSICA */
.music-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--violet-600);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 14px 16px;
  font-size: 1.3rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
}
.music-btn:hover {
  background: var(--violet-700);
}

/* 📱 RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 1rem; }
  .chat-box { padding: 1rem; }
}
@media (max-width: 576px) {
  .book-cover { height: 180px; }
  .navbar-brand { font-size: 1.4rem; }
}

#club form .form-control {
  border-radius: 12px;
  padding: 10px 12px;
}

#club button {
  background: var(--violet-600);
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
}
#club button:hover {
  background: var(--violet-700);
}

#formMsg {
  font-weight: bold;
  color: #4b0082; /* índigo */
}

/* Inputs del formulario del Club */
#club form .form-control {
  background: #f3e8ff; /* Violeta muy suave */
  border: 2px solid #d1b3ff;
  color: #2b2b2b;
  border-radius: 12px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

#club form .form-control::placeholder {
  color: #6b4e9b; /* violeta tenue */
  opacity: 0.8;
}

#club form .form-control:focus {
  border-color: #7b2cbf;
  background: #ede7f6;
  box-shadow: 0 0 10px rgba(123, 44, 191, 0.3);
  outline: none;
}

/* Botón del formulario */
#club button {
  background: linear-gradient(135deg, #7b2cbf, #9333ea);
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: bold;
  transition: transform 0.2s ease, background 0.3s ease;
}

#club button:hover {
  background: linear-gradient(135deg, #6a1b9a, #7b2cbf);
  transform: translateY(-2px);
}

/* Caja general del chat */
#club .chat-box {
  background: #f3e8ff; /* violeta muy suave */
  border: 2px solid #d1b3ff;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  max-height: 450px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Área de mensajes */
#club .chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 10px;
  max-height: 250px;
  scrollbar-width: thin;
  scrollbar-color: #c084fc #f3e8ff;
}

#club .chat-messages::-webkit-scrollbar {
  width: 8px;
}
#club .chat-messages::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 10px;
}
#club .chat-messages::-webkit-scrollbar-track {
  background: #f3e8ff;
}

/* Mensajes */
.message {
  padding: 8px 12px;
  margin: 6px 0;
  border-radius: 14px;
  max-width: 80%;
  word-wrap: break-word;
  font-size: 0.95rem;
}

.message.user {
  background: linear-gradient(135deg, #7b2cbf, #9333ea);
  color: #fff;
  align-self: flex-end;
  text-align: right;
}

.message.other {
  background: #ede7f6;
  color: #2b2b2b;
  align-self: flex-start;
}

/* Input del chat */
#club .input-group .form-control {
  background: #fff;
  border: 2px solid #d1b3ff;
  border-radius: 12px 0 0 12px;
  transition: all 0.3s;
}
#club .input-group .form-control:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 10px rgba(123, 44, 191, 0.3);
  outline: none;
}
#club .input-group .btn {
  background: linear-gradient(135deg, #7b2cbf, #9333ea);
  border: none;
  border-radius: 0 12px 12px 0;
  color: #fff;
  transition: background 0.3s;
}
#club .input-group .btn:hover {
  background: linear-gradient(135deg, #6a1b9a, #7b2cbf);
}

/* Sección Recomendaciones */
#catalogo .card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(209, 179, 255, 0.5);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

#catalogo .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(123, 44, 191, 0.25);
}

#catalogo .card-title {
  color: #4b0082; /* Índigo */
  font-weight: bold;
}

#catalogo .btn {
  border-radius: 12px;
  background: linear-gradient(135deg, #7b2cbf, #9333ea);
  border: none;
  color: #fff;
}
#catalogo .btn:hover {
  background: linear-gradient(135deg, #6a1b9a, #7b2cbf);
}

/* Reseñas */
.reviews .review-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(209, 179, 255, 0.5);
  border-radius: 20px;
  padding: 20px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.reviews .review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 22px rgba(123, 44, 191, 0.2);
}

.reviews h2 {
  color: #4b0082 !important;
  font-weight: bold;
}

/* Recomendaciones */
#catalogo .card {
  background: rgba(255, 255, 255, 0.65) !important; /* efecto glass */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(209, 179, 255, 0.5);
  border-radius: 18px !important;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#catalogo .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(123, 44, 191, 0.25);
}

#catalogo .card-title {
  color: #5e17eb; /* violeta */
  font-weight: bold;
}

#catalogo .card-text {
  color: #333;
}

/* Campos de formulario en modo oscuro */
.dark-mode input,
.dark-mode textarea,
.dark-mode select {
  background: #2a2a3b !important; /* gris oscuro suave */
  color: #f5f5f5 !important;      /* texto claro */
  border: 1px solid #6a0dad !important; /* borde violeta */
}

.dark-mode input::placeholder,
.dark-mode textarea::placeholder {
  color: #bbb !important; /* placeholders más visibles */
}

/* Chat en modo oscuro */
.dark-mode .chat-box {
  background: rgba(42, 42, 59, 0.95) !important;
  border: 1px solid rgba(186, 134, 252, 0.3);
  color: #f5f5f5;
}

.dark-mode .chat-box input {
  background: #1e1e2f !important;
  color: #f5f5f5 !important;
  border: 1px solid #7b2cbf !important;
}

.dark-mode .chat-box input::placeholder {
  color: #aaa !important;
}

/* Estilo especial para el título del formulario de inscripción */
#club-form h2 {
  font-size: 2rem; /* más grande */
  font-weight: 800;
  text-align: center;
  color: #6a0dad; /* morado intenso */
  margin-bottom: 1.5rem;

  /* Glow para dar visibilidad */
  text-shadow: 
    0 0 6px rgba(106, 13, 173, 0.6),
    0 0 12px rgba(106, 13, 173, 0.4);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

/* Animación sutil al pasar el mouse */
#club-form h2:hover {
  transform: scale(1.05);
  text-shadow: 
    0 0 8px rgba(155, 89, 182, 0.8),
    0 0 20px rgba(155, 89, 182, 0.6);
}

/* Estilo al bloque del formulario */
#club .glass-card {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(155, 89, 182, 0.15));
  border: 1px solid rgba(106, 13, 173, 0.4);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(106, 13, 173, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#club .glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 25px rgba(106, 13, 173, 0.4);
}

/* Encabezado Inscríbete */
#club h3 {
  font-size: 2rem;
  font-weight: 800;
  color: #6a0dad; /* Morado intenso */
  text-shadow: 
    0 0 5px rgba(106, 13, 173, 0.5),
    0 0 10px rgba(106, 13, 173, 0.3);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

#club h3:hover {
  transform: scale(1.05);
  text-shadow: 
    0 0 8px rgba(155, 89, 182, 0.8),
    0 0 15px rgba(155, 89, 182, 0.6);
}

/* Inputs más visibles en modo claro y oscuro */
#club .form-control {
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(106, 13, 173, 0.4);
  border-radius: 10px;
  padding: 12px;
  transition: all 0.3s ease;
}

body.dark-mode #club .form-control {
  background-color: #2a2235;
  color: #f3f3f3;
  border: 1px solid rgba(155, 89, 182, 0.6);
}

#club .form-control:focus {
  border-color: #9b59b6;
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.5);
}

/* 🌌 Fondo animado */
body.light-mode {
  background: linear-gradient(-45deg, #f7f0ff, #e8ddff, #fff3e6, #ffe9f0);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

body.dark-mode {
  background: linear-gradient(-45deg, #1a1a2e, #2b2b44, #3a0ca3, #2c0735);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* 📚 Hover en portadas */
.book-card img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 10px;
}

.book-card img:hover {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0px 10px 25px rgba(140, 0, 255, 0.6);
}

/* ✨ Animación de aparición */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.pdf-viewer {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

body.dark-mode .pdf-viewer {
  background: rgba(30, 30, 40, 0.9);
}

/* Estilo del modal PDF */
.pdf-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.pdf-content {
  background: #1e1e2f;
  border-radius: 12px;
  padding: 15px;
  width: 80%;
  max-width: 900px;
  animation: fadeIn 0.4s ease;
}

.pdf-content iframe {
  border: none;
  width: 100%;
  height: 70vh;
  border-radius: 8px;
}

.cerrar {
  float: right;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  transition: 0.3s;
}
.cerrar:hover { color: #ff4b5c; }

@keyframes fadeIn {
  from {opacity: 0; transform: scale(0.95);}
  to {opacity: 1; transform: scale(1);}
}
