/*
 Theme Name:   Apuntes de Oposiciones (GeneratePress Child)
 Theme URI:    https://apuntesdeoposiciones.com
 Description:  Tema hijo ultra-optimizado para SEO, GEO (Generative Engine Optimization) y WooCommerce Digital Downloads.
 Author:       apuntesdeoposiciones.com
 Author URI:   https://apuntesdeoposiciones.com
 Template:     generatepress
 Version:      1.0.0
 Text Domain:  generatepress-child
*/

/* STREAMING_CHUNK:Configurando variables globales de diseño y tipografía... */
:root {
  --ao-primary: #2563eb;
  --ao-primary-hover: #1d4ed8;
  --ao-indigo: #4f46e5;
  --ao-sky: #0ea5e9;
  --ao-slate-900: #0f172a;
  --ao-slate-800: #1e293b;
  --ao-slate-600: #475569;
  --ao-slate-200: #e2e8f0;
  --ao-slate-50: #f8fafc;
  --ao-emerald-bg: #ecfdf5;
  --ao-emerald-border: #6ee7b7;
  --ao-emerald-text: #065f46;
  --ao-amber-bg: #fffbeb;
  --ao-amber-border: #fcd34d;
  --ao-amber-text: #92400e;
  --ao-radius-xl: 16px;
  --ao-radius-2xl: 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--ao-slate-50);
  color: var(--ao-slate-800);
  -webkit-font-smoothing: antialiased;
}

/* STREAMING_CHUNK:Estilizando la barra superior y cabecera con efecto cristal... */
.ao-topbar {
  background-color: var(--ao-slate-900);
  color: #cbd5e1;
  font-size: 12px;
  padding: 8px 16px;
  border-bottom: 1px solid #1e293b;
}

.ao-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ao-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ao-slate-200);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

/* STREAMING_CHUNK:Diseñando las tarjetas de oposiciones del catálogo WooCommerce... */
.woocommerce ul.products li.product,
.ao-product-card {
  background: #ffffff;
  border: 1px solid var(--ao-slate-200);
  border-radius: var(--ao-radius-xl);
  padding: 24px !important;
  transition: all 0.22s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.woocommerce ul.products li.product.ao-status-open {
  border-color: var(--ao-emerald-border);
}

.woocommerce ul.products li.product:hover,
.ao-product-card:hover {
  border-color: #60a5fa;
  transform: translateY(-3px);
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
}

/* Badges de Estado de Convocatoria BOE */
.ao-boe-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
}

.ao-boe-badge.is-open {
  background-color: var(--ao-emerald-bg);
  border: 1px solid var(--ao-emerald-border);
  color: var(--ao-emerald-text);
}

.ao-boe-badge.is-upcoming {
  background-color: var(--ao-amber-bg);
  border: 1px solid var(--ao-amber-border);
  color: var(--ao-amber-text);
}

.ao-boe-badge.is-closed {
  background-color: #f1f5f9;
  border: 1px solid var(--ao-slate-200);
  color: #64748b;
}

/* STREAMING_CHUNK:Estilizando la tabla técnica E-E-A-T y botones de acción... */
.ao-tech-box {
  background-color: var(--ao-slate-50);
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  margin: 14px 0;
  color: var(--ao-slate-600);
}

.ao-tech-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px dashed var(--ao-slate-200);
}

.ao-tech-row:last-child {
  border-bottom: none;
  padding-top: 6px;
}

/* Botones de Compra Directa y Tema 1 Gratis */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.ao-btn-buy {
  background-color: var(--ao-primary) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-size: 14px !important;
  text-align: center;
  box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.25);
  transition: background-color 0.2s ease, transform 0.15s ease !important;
  border: none !important;
}

.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.ao-btn-buy:hover {
  background-color: var(--ao-primary-hover) !important;
  transform: translateY(-1px);
}

.ao-btn-sample {
  background-color: #ffffff;
  color: var(--ao-slate-800);
  border: 1px solid #cbd5e1;
  font-weight: 700;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.ao-btn-sample:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

/* STREAMING_CHUNK:Configurando el contenedor de lectura pública del Tema 1 (GEO)... */
.ao-public-sample-reader {
  background: #ffffff;
  border: 2px solid var(--ao-slate-200);
  border-radius: var(--ao-radius-2xl);
  padding: 32px;
  margin-top: 32px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
}

.ao-public-sample-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--ao-slate-200);
}

.ao-public-sample-body {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
  max-height: 620px;
  overflow-y: auto;
  padding-right: 12px;
}

/* Barra del filtro interactivo en el catálogo */
.ao-filter-bar {
  background: #ffffff;
  border: 1px solid var(--ao-slate-200);
  border-radius: var(--ao-radius-xl);
  padding: 20px;
  margin-bottom: 32px;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.03);
}