/*
==========================================================================
 Archivo: prompts.css — Página de Prompts y Gemas
==========================================================================

 Estilos para template-prompts.php.
 Reutiliza las clases .lide-* de recursos-lide.css para mantener
 consistencia visual con el resto del sitio. Como el enqueue es
 condicional por plantilla, este archivo es AUTOCONTENIDO: incluye
 una copia de los estilos base compartidos (tarjetas, banner, headers).

 Estructura:
   1. Tokens y tipografía local (.lide-prompts-page)
   2. Override de font-family para scope completo
   3. Layout principal (.lide-prompts-main)
   4. Encabezados de sección estandarizados (.lide-section-header)
   5. Grid de tarjetas de acceso (.lide-cards / .lide-card)
   6. Banner Gemini (reutiliza .lide-yt-banner-*)
   7. Categorías de prompts (.lide-prompts-category)
   8. Bloques de código copiables (.lide-prompt-code-wrapper)
   9. Botón copiar (.lide-prompt-copy-btn)
  10. Responsive (768px, 480px)
  11. Accesibilidad (prefers-reduced-motion)

 Skills aplicados:
   [SKILL: ui-ux-pro-max] Paleta institucional, tipografía, hover states
   [SKILL: web-design-guidelines] Focus states, contraste WCAG, aria, cursor
   [SKILL: code-refactoring] DRY — clases .lide-* reutilizadas

 @package AstraChild
*/

/* -----------------------------------------------------------------------
   1. TOKENS Y TIPOGRAFÍA LOCAL
   ----------------------------------------------------------------------- */
.lide-prompts-page {
  --uabc-green: #006341;
  --uabc-green-dark: #004d32;
  --uabc-green-light: #007a4d;
  --uabc-gold: #d4af37;
  --uabc-gold-light: #d4b000;
  --lide-bg: #f6f1e7;
  --lide-text: #1f2937;
  --lide-muted: #64748b;
  font-family: "Montserrat", sans-serif;
  color: var(--lide-text);
  background: var(--lide-bg);
}

/* -----------------------------------------------------------------------
   2. OVERRIDE DE FONT-FAMILY
   ----------------------------------------------------------------------- */
.lide-prompts-page *,
.lide-prompts-page h1,
.lide-prompts-page h2,
.lide-prompts-page h3,
.lide-prompts-page h4,
.lide-prompts-page p,
.lide-prompts-page li,
.lide-prompts-page a,
.lide-prompts-page button,
.lide-prompts-page span {
  font-family: inherit;
}

/* -----------------------------------------------------------------------
   3. LAYOUT PRINCIPAL
   ----------------------------------------------------------------------- */
.lide-prompts-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 18px 46px;
}

/* -----------------------------------------------------------------------
   4. ENCABEZADOS DE SECCIÓN ESTANDARIZADOS
   [SKILL: code-refactoring] Duplicado de recursos-lide.css para
   independencia de carga condicional.
   ----------------------------------------------------------------------- */
.lide-prompts-page .lide-section-header {
  text-align: center;
  margin: 70px 0 30px;
  padding: 0 20px;
}

.lide-prompts-page .lide-section-header h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: var(--uabc-green);
  font-weight: 900;
  text-transform: uppercase;
}

.lide-prompts-page .lide-section-header h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--uabc-gold), var(--uabc-green));
}

.lide-prompts-page .lide-section-header p {
  margin: 15px auto 0;
  max-width: 600px;
  color: var(--lide-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.lide-prompts-page .lide-section-divider {
  border: none;
  height: 2px;
  background: #827458;
  max-width: 800px;
  margin: 60px auto 0;
  opacity: 0.5;
}

/* -----------------------------------------------------------------------
   5. GRID DE TARJETAS
   [SKILL: code-refactoring] Duplicado de recursos-lide.css
   ----------------------------------------------------------------------- */
.lide-prompts-page .lide-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lide-prompts-page .lide-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.lide-prompts-page .lide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
  border-color: var(--uabc-green);
}

.lide-prompts-page .lide-card-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--uabc-green), var(--uabc-green-light));
  color: #fff;
  border-bottom: 3px solid var(--uabc-gold);
  text-align: center;
}

.lide-prompts-page .lide-card-tag {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  color: #103f2e;
  background: #f7dd7b;
}

.lide-prompts-page .lide-card-tag-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lide-prompts-page .lide-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.lide-prompts-page .lide-card-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.lide-prompts-page .lide-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  color: #fff;
}

.lide-prompts-page .lide-card-body {
  padding: 20px 20px 12px;
  background: #f8fafc;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.lide-prompts-page .lide-card-body p {
  margin: 0 0 14px;
  color: var(--lide-muted);
  line-height: 1.6;
  font-size: 0.92rem;
}

.lide-prompts-page .lide-card-body ul {
  margin: 0 0 16px;
  padding-left: 18px;
  text-align: left;
}

.lide-prompts-page .lide-card-body li {
  margin: 0 0 8px;
  color: #334155;
  font-size: 0.88rem;
}

.lide-prompts-page .lide-card-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--uabc-green), var(--uabc-green-dark));
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin-top: auto;
}

.lide-prompts-page .lide-card-btn:hover {
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 99, 65, 0.28);
  transform: translateY(-1px);
}

.lide-prompts-page .lide-card-btn:focus-visible {
  outline: 2px solid var(--uabc-gold);
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   6. BANNER GEMINI (reutiliza .lide-yt-banner-*)
   [SKILL: code-refactoring] Duplicado de recursos-lide.css
   ----------------------------------------------------------------------- */
.lide-prompts-page .lide-yt-banner {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 99, 65, 0.15);
}

.lide-prompts-page .lide-yt-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 39px 45px;
  background: linear-gradient(135deg, var(--uabc-green), var(--uabc-green-dark));
}

.lide-prompts-page .lide-yt-banner-info {
  display: flex;
  align-items: center;
  gap: 25px;
}

.lide-prompts-page .lide-yt-banner-icon {
  width: 67px;
  height: 67px;
  border-radius: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.lide-prompts-page .lide-yt-banner-icon svg {
  width: 39px;
  height: 39px;
}

/* Isotipo oficial de Gemini */
.lide-prompts-page .lide-gemini-logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.lide-prompts-page .lide-yt-banner-title {
  margin: 0 0 6px;
  font-size: 1.82rem;
  font-weight: 800;
  color: #fff;
}

.lide-prompts-page .lide-yt-banner-desc {
  margin: 0;
  font-size: 1.26rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.lide-prompts-page .lide-yt-banner-btn {
  display: inline-block;
  padding: 17px 39px;
  border-radius: 999px;
  background: var(--uabc-gold);
  color: #103f2e;
  font-weight: 700;
  font-size: 1.29rem;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}

.lide-prompts-page .lide-yt-banner-btn:hover {
  background: var(--uabc-gold-light);
  color: #103f2e;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.lide-prompts-page .lide-yt-banner-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* -----------------------------------------------------------------------
   7. CATEGORÍAS DE PROMPTS (.lide-prompts-category)
   [SKILL: ui-ux-pro-max] Cada categoría es una sección siempre
   visible con header + lista de prompts copiables.
   ----------------------------------------------------------------------- */
.lide-prompts-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.lide-prompts-wrapper .lide-section-header p {
  color: #1a1a1a;
  font-weight: 700;
}

.lide-prompts-category {
  margin-bottom: 32px;
  border: 1px solid rgba(0, 99, 65, 0.12);
  border-left: 4px solid var(--uabc-gold);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #faf8f2 100%);
  transition: box-shadow 0.3s ease, border-left-color 0.3s ease;
}

.lide-prompts-category:hover {
  box-shadow: -4px 4px 16px rgba(0, 99, 65, 0.08);
  border-left-color: var(--uabc-green);
}

.lide-prompts-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 25px;
  background: linear-gradient(135deg, var(--uabc-green), var(--uabc-green-dark));
  color: #fff;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}

.lide-prompts-category-header h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
}

/* Ícono temático del encabezado de categoría */
.lide-prompts-page .lide-accordion-theme-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.lide-prompts-page .lide-accordion-theme-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
}

/* -----------------------------------------------------------------------
   8. BLOQUES DE CÓDIGO COPIABLES (.lide-prompt-code-wrapper)
   [SKILL: ui-ux-pro-max] Fondo oscuro, tipografía monoespaciada,
   bordes redondeados, scroll horizontal.
   ----------------------------------------------------------------------- */
.lide-prompts-list {
  padding: 20px 25px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lide-prompt-item {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.lide-prompt-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--uabc-green-dark);
}

.lide-prompt-code-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.lide-prompt-code {
  flex-grow: 1;
  margin: 0;
  padding: 20px 60px 20px 20px;
  background: #1e293b;
  color: #e2e8f0;
  border-radius: 8px;
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  border: 1px solid #334155;
}

.lide-prompt-code code {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  padding: 0;
}

/* -----------------------------------------------------------------------
   9. BOTÓN COPIAR (.lide-prompt-copy-btn)
   [SKILL: ui-ux-pro-max] Posicionado absolute en esquina superior
   derecha del bloque de código. Feedback visual al copiar.
   [SKILL: web-design-guidelines] cursor-pointer, focus-visible.
   ----------------------------------------------------------------------- */
.lide-prompt-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
  color: #94a3b8;
  font-family: "Montserrat", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lide-prompt-copy-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.lide-prompt-copy-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.lide-prompt-copy-btn:focus-visible {
  outline: 2px solid var(--uabc-gold);
  outline-offset: 2px;
}

/* Estado "copiado" — feedback visual verde */
.lide-prompt-copy-btn.copied {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: rgba(34, 197, 94, 0.4);
}

.lide-prompt-copy-btn.copied svg {
  stroke: #4ade80;
}

/* -----------------------------------------------------------------------
   10. GRID DE GEMAS (.lide-gemas-grid)
   ----------------------------------------------------------------------- */
.lide-gemas-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px 40px;
}

.lide-gemas-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lide-gema-card .lide-card-body {
  position: relative;
}

/* -----------------------------------------------------------------------
   11. BOTONES DE ADMINISTRACIÓN (.lide-admin-*)
   Solo visibles para administradores logueados.
   ----------------------------------------------------------------------- */
.lide-admin-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
  padding: 0 4px;
}

.lide-admin-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px dashed var(--uabc-green);
  border-radius: 10px;
  background: rgba(0, 99, 65, 0.06);
  color: var(--uabc-green);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.lide-admin-action-btn:hover {
  background: rgba(0, 99, 65, 0.12);
  border-color: var(--uabc-green-dark);
  transform: translateY(-1px);
}

.lide-admin-action-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Botones inline (editar/eliminar) en tarjetas y prompts */
.lide-admin-item-actions,
.lide-admin-inline-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}

.lide-admin-inline-actions {
  margin-top: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.lide-admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  padding: 0;
}

.lide-admin-btn svg {
  width: 14px;
  height: 14px;
}

.lide-admin-btn-edit:hover {
  background: rgba(0, 99, 65, 0.08);
  border-color: var(--uabc-green);
}

.lide-admin-btn-edit svg {
  stroke: var(--uabc-green);
}

.lide-admin-btn-delete:hover {
  background: rgba(220, 38, 38, 0.08);
  border-color: #dc2626;
}

.lide-admin-btn-delete svg {
  stroke: #dc2626;
}

/* Botones de admin en header de categoría (sobre fondo oscuro) */
.lide-admin-header-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.lide-admin-btn-edit-light,
.lide-admin-btn-delete-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.lide-admin-btn-edit-light svg,
.lide-admin-btn-delete-light svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.lide-admin-btn-edit-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lide-admin-btn-delete-light:hover {
  background: rgba(220, 38, 38, 0.4);
}

/* Botón "Añadir prompt" (ancho completo, borde punteado) */
.lide-admin-add-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  margin-top: 16px;
  border: 2px dashed rgba(0, 99, 65, 0.3);
  border-radius: 8px;
  background: rgba(0, 99, 65, 0.03);
  color: var(--uabc-green);
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lide-admin-add-btn:hover {
  background: rgba(0, 99, 65, 0.08);
  border-color: var(--uabc-green);
}

.lide-admin-add-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Fila de título de prompt con acciones inline */
.lide-prompt-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.lide-prompt-title-row .lide-prompt-title {
  margin: 0;
}

/* -----------------------------------------------------------------------
   12. MODAL DE EDICIÓN (.lide-admin-modal)
   ----------------------------------------------------------------------- */
.lide-admin-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal-admin, 3000);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lide-admin-modal[hidden] {
  display: none;
}

.lide-admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.lide-admin-modal-panel {
  position: relative;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalSlideIn 0.25s ease-out;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lide-admin-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, var(--uabc-green), var(--uabc-green-dark));
}

.lide-admin-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.lide-admin-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.lide-admin-modal-close svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.lide-admin-modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lide-admin-modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.lide-admin-field {
  margin-bottom: 18px;
}

.lide-admin-field:last-child {
  margin-bottom: 0;
}

.lide-admin-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lide-admin-field input,
.lide-admin-field textarea,
.lide-admin-field select {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.92rem;
  color: #1f2937;
  background: #f9fafb;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.lide-admin-field input:focus,
.lide-admin-field textarea:focus,
.lide-admin-field select:focus {
  outline: none;
  border-color: var(--uabc-green);
  background: #fff;
}

.lide-admin-field textarea {
  min-height: 120px;
  resize: vertical;
  font-family: 'Fira Code', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.lide-admin-modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 24px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

.lide-admin-modal-btn {
  padding: 10px 24px;
  border-radius: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  border: none;
}

.lide-admin-modal-btn-cancel {
  background: #e5e7eb;
  color: #374151;
}

.lide-admin-modal-btn-cancel:hover {
  background: #d1d5db;
}

.lide-admin-modal-btn-save {
  background: var(--uabc-green);
  color: #fff;
}

.lide-admin-modal-btn-save:hover {
  background: var(--uabc-green-dark);
  transform: translateY(-1px);
}

/* -----------------------------------------------------------------------
   13. BOTÓN "VOLVER A" (.lide-back-to-section)
   ----------------------------------------------------------------------- */
.lide-back-to-section {
  display: flex;
  justify-content: center;
  margin-top: 32px;
  padding-bottom: 10px;
}

.lide-back-to-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 2px solid rgba(0, 99, 65, 0.2);
  border-radius: 999px;
  color: var(--uabc-green);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}

.lide-back-to-btn:hover {
  background: rgba(0, 99, 65, 0.06);
  border-color: var(--uabc-green);
  color: var(--uabc-green);
  transform: translateY(-2px);
}

.lide-back-to-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* -----------------------------------------------------------------------
   14. ESTADO VACÍO (.lide-empty-state)
   ----------------------------------------------------------------------- */
.lide-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 20px;
  color: var(--lide-muted);
  font-style: italic;
}

.lide-empty-state-small {
  padding: 20px;
}

/* -----------------------------------------------------------------------
   15. RESPONSIVE
   ----------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* Tarjetas → 1 columna */
  .lide-prompts-page .lide-cards {
    grid-template-columns: 1fr;
  }

  .lide-prompts-page .lide-card-header {
    padding: 18px 20px;
  }

  /* Banner → vertical */
  .lide-prompts-page .lide-yt-banner-content {
    flex-direction: column;
    text-align: center;
    padding: 34px 28px;
    gap: 25px;
  }

  .lide-prompts-page .lide-yt-banner-info {
    flex-direction: column;
    gap: 17px;
  }

  .lide-prompts-page .lide-yt-banner-btn {
    width: 100%;
    text-align: center;
  }

  /* Grid → 2 columnas en tablet */
  .lide-gemas-grid,
  .lide-prompts-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Prompts ajustes */
  .lide-prompts-wrapper {
    padding: 0 12px 30px;
  }

  .lide-prompts-category-header {
    padding: 16px 18px;
    font-size: 0.95rem;
  }

  .lide-prompts-list {
    padding: 16px 16px;
  }

  .lide-prompt-code {
    font-size: 0.82rem;
    padding: 16px 50px 16px 16px;
  }

  .lide-prompts-page .lide-section-header {
    margin: 50px 0 24px;
  }
}

@media (max-width: 480px) {
  .lide-prompts-page .lide-card-body {
    padding: 16px;
  }

  .lide-prompts-page .lide-card-body p {
    font-size: 0.85rem;
  }

  .lide-prompts-page .lide-yt-banner-content {
    padding: 28px 22px;
  }

  .lide-prompts-page .lide-yt-banner-title {
    font-size: 1.54rem;
  }

  /* Grid → 1 columna en móvil */
  .lide-gemas-grid,
  .lide-prompts-list {
    grid-template-columns: 1fr;
  }

  .lide-prompts-category-header {
    padding: 14px 14px;
    font-size: 0.9rem;
  }

  .lide-prompt-code {
    font-size: 0.78rem;
    padding: 14px 44px 14px 14px;
  }

  .lide-prompt-copy-btn {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .lide-prompt-copy-btn svg {
    width: 12px;
    height: 12px;
  }

  /* Prompt title row stacks on small screens */
  .lide-prompt-title-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .lide-admin-inline-actions {
    margin-left: 0;
  }

  /* Modal full-width on mobile */
  .lide-admin-modal-panel {
    width: 95%;
    max-height: 90vh;
  }
}

/* -----------------------------------------------------------------------
   16. ACCESIBILIDAD: respetar preferencias de movimiento reducido
   ----------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .lide-prompts-page .lide-card,
  .lide-prompts-page .lide-card-btn,
  .lide-prompts-page .lide-yt-banner-btn,
  .lide-prompts-category,
  .lide-prompt-copy-btn,
  .lide-admin-action-btn,
  .lide-admin-btn,
  .lide-admin-add-btn,
  .lide-admin-modal-btn,
  .lide-back-to-btn {
    transition: none;
    animation: none;
  }

  .lide-prompts-page .lide-card:hover,
  .lide-prompts-page .lide-card-btn:hover,
  .lide-prompts-page .lide-yt-banner-btn:hover,
  .lide-prompt-copy-btn:hover,
  .lide-prompts-category:hover,
  .lide-admin-action-btn:hover,
  .lide-admin-modal-btn-save:hover,
  .lide-back-to-btn:hover {
    transform: none;
  }

  .lide-admin-modal-panel {
    animation: none;
  }
}

/* Smooth scrolling for anchor links */
html {
  scroll-behavior: smooth;
}

