@charset "UTF-8";

/* ============================================================
   OposSCS V3 - Diseño Moderno & Kawaii
   Inspirado en la identidad amigable y cercana de OposSCS
   ============================================================ */

:root {
  /* Paleta amigable & pastel-kawaii */
  --primary: #1e3a8a;
  --primary-light: #2563eb;
  --primary-soft: #eff6ff;
  --primary-hover: #1d4ed8;
  
  --accent-pink: #ec4899;
  --pastel-pink: #fdf2f8;
  --pastel-pink-border: #fbcfe8;
  --pastel-pink-text: #be185d;
  
  --accent-yellow: #f59e0b;
  --pastel-yellow: #fefce8;
  --pastel-yellow-border: #fde047;
  --pastel-yellow-text: #854d0e;
  
  --pastel-blue: #f0f9ff;
  --pastel-blue-border: #bae6fd;
  --pastel-blue-text: #0369a1;
  
  --pastel-mint: #f0fdf4;
  --pastel-mint-border: #bbf7d0;
  --pastel-mint-text: #065f46;
  
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fbff;
  --white: #ffffff;
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.12);
  --shadow-colored: 0 8px 25px rgba(37, 99, 235, 0.25);
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  
  font-family: var(--font-sans);
  color: var(--body);
  background-color: var(--paper);
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 28px 28px;
  font-synthesis: none;
  scroll-behavior: smooth;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: none;
}

button, select {
  font-family: var(--font-sans);
}

button, a, select {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button {
  cursor: pointer;
  border: none;
}

a:focus-visible, button:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: 3px;
}

h1, h2, h3, p {
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.wrap {
  width: min(1180px, calc(100% - 60px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--white);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 700;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ── Barra de prueba superior ── */
.preview-bar {
  background: linear-gradient(90deg, #1e3a8a 0%, #2563eb 100%);
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 500;
}

.preview-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
  padding-block: 4px;
}

.preview-bar strong {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  margin-right: 8px;
}

.preview-bar a {
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease;
}

.preview-bar a:hover {
  background: rgba(255, 255, 255, 0.25);
}

.preview-bar a span {
  margin-left: 6px;
}

/* ── Header & Navegación ── */
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(30, 58, 138, 0.03);
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.25s var(--bounce);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: none;
  transition: transform 0.35s var(--bounce);
  flex-shrink: 0;
  display: block;
}

.brand:hover .brand-logo {
  transform: rotate(10deg) scale(1.12);
}

.brand-scs {
  color: #3b82f6;
  font-weight: 800;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.main-nav a:hover {
  color: var(--primary-light);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.main-nav [aria-current] {
  color: var(--primary);
  background: #e0e7ff;
  font-weight: 700;
}

.pro-link,
.pro-access-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
  transition: all 0.2s ease;
}

.pro-link:hover,
.pro-access-btn-v2:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  box-shadow: 0 6px 14px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
  color: #ffffff !important;
  text-decoration: none;
}

.pro-crown-svg {
  display: inline-block;
  vertical-align: -0.125em;
  fill: currentColor;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 16px;
  position: relative;
}

.menu-toggle-bars span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1e293b;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: absolute;
}

.menu-toggle-bars span:nth-child(1) { top: 0; }
.menu-toggle-bars span:nth-child(2) { top: 7px; }
.menu-toggle-bars span:nth-child(3) { top: 14px; }

.menu-toggle.is-active .menu-toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
  background-color: #0284c7;
}

.menu-toggle.is-active .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
  transform: translateX(-8px);
}

.menu-toggle.is-active .menu-toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
  background-color: #0284c7;
}

.menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.menu-backdrop.is-visible {
  display: block;
  opacity: 1;
}

@keyframes v3DropdownSlideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Animación Kawaii: Wave / Saludo ── */
.wave-emoji {
  display: inline-block;
  animation: wave-animation 2.2s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave-animation {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

/* ── Hero Section ── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  padding: 68px 0 54px;
  align-items: center;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}

.canary-mark {
  width: 18px;
  height: 12px;
  border-left: 6px solid #ffffff;
  border-right: 6px solid #facc15;
  background: #38bdf8;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.hero-copy h1 {
  font-size: clamp(38px, 4.2vw, 56px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  color: var(--primary);
}

.hero-highlight {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 900;
}

.hero-description {
  max-width: 470px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  margin-bottom: 28px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-align: center;
  line-height: 1.5;
  transition: all 0.25s var(--bounce);
  border: none;
}

.button-primary {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: var(--shadow-colored);
}

.button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.38);
  color: #ffffff;
}

.hero-note {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  margin-top: 26px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.source-link:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

/* ── Panel de Práctica ("¿Qué oposición preparas?") ── */
.practice-panel {
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: var(--radius-xl);
  padding: 30px 32px 0;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  scroll-margin-top: 24px;
}

.practice-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 33.333%,
    #0768a9 33.333%,
    #0768a9 66.666%,
    #fcd116 66.666%,
    #fcd116 100%
  );
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  margin-bottom: 14px;
}

.panel-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: #fef3c7;
  color: #854d0e;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.panel-mascot-peek {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 60px;
  height: 60px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.panel-mascot-peek img {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  box-shadow: none;
  transition: transform 0.35s var(--bounce);
  display: block;
}

.practice-panel:hover .panel-mascot-peek img {
  transform: rotate(10deg) scale(1.08);
}

.practice-panel h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.practice-panel > p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.practice-panel form {
  margin-top: 20px;
}

.practice-panel label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.practice-panel select {
  width: 100%;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-md);
  color: #1e293b;
  padding: 12px 36px 12px 14px;
  font-size: 14px;
  font-weight: 600;
  min-height: 48px;
  transition: all 0.2s ease;
  outline: none;
  cursor: pointer;
}

.practice-panel select:focus {
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

.practice-panel button {
  width: 100%;
  margin-top: 14px;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
}

.quick-categories {
  margin-top: 24px;
}

.small-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin-bottom: 10px;
}

.quick-categories-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.quick-category-chip:hover {
  background: #e2e8f0;
  color: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-category-chip--fav {
  background: #fffdf5;
  color: #92400e;
  border: 1px solid #fde68a;
  font-weight: 600;
}

.quick-category-chip--fav:hover {
  background: #fef3c7;
  color: #78350f;
  border-color: #fcd34d;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
  transform: translateY(-1px);
}

.all-categories {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f7ff;
  border-top: 1px solid #e0e7ff;
  margin: 22px -32px 0;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  transition: all 0.2s ease;
}

.all-categories:hover {
  background: #e0effe;
}

/* ── Pasos de Estudio (3 Tarjetas Kawaii) ── */
.study-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 40px 0;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--bounce);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-card--blue {
  border-color: #e0f2fe;
}
.step-card--blue:hover {
  border-color: #7dd3fc;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
}

.step-card--yellow {
  border-color: #fef3c7;
}
.step-card--yellow:hover {
  border-color: #fde047;
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.12);
}

.step-card--pink {
  border-color: #fce7f3;
}
.step-card--pink:hover {
  border-color: #f472b6;
  box-shadow: 0 10px 24px rgba(244, 114, 182, 0.14);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 12px;
  flex-shrink: 0;
}

.step-card--blue .step-badge {
  background: #e0f2fe;
  color: #0369a1;
}

.step-card--yellow .step-badge {
  background: #fef3c7;
  color: #854d0e;
}

.step-card--pink .step-badge {
  background: #fce7f3;
  color: #be185d;
}

.step-content strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.step-content span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Herramientas de Estudio (Reto Diario & Super Test) ── */
.study-tools {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.tool-copy h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  line-height: 1.25;
  max-width: 260px;
  margin-top: 10px;
}

.eyebrow-pill--amber {
  background: #fef3c7;
  color: #854d0e;
}

.tool-link {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 2px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--bounce);
  text-decoration: none;
}

.tool-link:hover {
  transform: translateY(-4px);
}

.tool-link--challenge:hover {
  border-color: #fde047;
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.15);
}

.tool-link--supertest:hover {
  border-color: #c4b5fd;
  box-shadow: 0 12px 28px rgba(139, 92, 246, 0.15);
}

.tool-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s var(--bounce);
}

.tool-link:hover .tool-icon {
  transform: scale(1.15) rotate(8deg);
}

.tool-link--challenge .tool-icon {
  background: #fef3c7;
}

.tool-link--supertest .tool-icon {
  background: #ede9fe;
}

.tool-body strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
}

.tool-body span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.tool-arrow {
  margin-left: auto;
  font-size: 18px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
}

.tool-link:hover .tool-arrow {
  color: #2563eb;
  transform: translateX(4px);
}

/* ── Sección de Novedades ── */
.news-section {
  padding: 60px 0 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  margin-top: 6px;
}

.text-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-pill);
  transition: all 0.2s ease;
}

.text-link:hover {
  background: #dbeafe;
  transform: translateY(-1px);
}

.news-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
}

.news-row {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 22px;
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: all 0.25s var(--bounce);
  position: relative;
}

.news-row:hover {
  border-color: #fbcfe8;
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(244, 114, 182, 0.12);
}

.news-row time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  color: #be185d;
  width: 62px;
  height: 62px;
  border-radius: 16px;
  flex-shrink: 0;
  text-align: center;
}

.news-row time strong {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.news-row time span {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-top: 2px;
}

.news-row h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
}

.news-row h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.news-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.5;
}

.news-arrow {
  margin-left: auto;
  color: #cbd5e1;
  font-size: 18px;
  align-self: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.news-row:hover .news-arrow {
  color: #ec4899;
  transform: translateX(4px);
}

.resources-note {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 2px solid #bbf7d0;
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
}

.resources-note h3 {
  font-size: 24px;
  font-weight: 800;
  color: #065f46;
  line-height: 1.25;
  margin: 14px 0 10px;
}

.resources-note p {
  font-size: 13px;
  line-height: 1.7;
  color: #047857;
  margin-bottom: 20px;
}

.resources-note .text-link {
  background: #ffffff;
  color: #059669;
  border-color: #a7f3d0;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.15);
}

.resources-note .text-link:hover {
  background: #f0fdf4;
}

.news-empty {
  padding: 36px 0;
}

.news-empty h3 {
  font-size: 22px;
  font-weight: 700;
}

.news-empty p {
  font-size: 14px;
  max-width: 420px;
  margin: 14px 0;
  color: var(--muted);
}

/* ── Servicios de Salud (SCS, SERMAS, SAS) ── */
.services-section {
  padding-top: 60px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--bounce);
  text-decoration: none;
}

.service-item:hover {
  border-color: #93c5fd;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.service-item img {
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.service-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.service-name small {
  font-size: 11px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 6px;
}

.service-description {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}

/* ── App Móvil & PRO (Ficha cálida pastel kawaii y botones oficiales) ── */
.app-section {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 46px;
  background: linear-gradient(145deg, #fffef9 0%, #fef9ec 50%, #fef3c7 100%);
  border: 2px solid #fde68a;
  border-radius: var(--radius-xl);
  margin-top: 60px;
  padding: 46px 50px;
  box-shadow: 0 16px 40px rgba(217, 119, 6, 0.09);
  position: relative;
  overflow: hidden;
}

.app-section::after {
  content: "";
  position: absolute;
  right: -50px;
  top: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.4) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow-pill--light {
  background: #ffffff;
  color: #b45309;
  border: 1.5px solid #fde68a;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.app-copy h2 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.18;
  color: var(--primary);
  margin: 16px 0 14px;
}

.highlight-warm {
  color: #d97706;
}

.app-copy > p:not(.eyebrow-pill) {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  max-width: 440px;
}

/* ── Botones oficiales de tiendas (Estilo normal OposSCS) ── */
.store-links-kawaii {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.store-links-kawaii > a {
  transition: transform 0.2s var(--bounce), box-shadow 0.2s ease;
}

.cat-store-links {
  flex-direction: column;
  align-items: flex-start;
  margin-top: 18px;
}

.store-links-kawaii > a:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.app-store-badge-kawaii {
  box-sizing: border-box;
  min-width: 184px;
  height: 54px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #ffffff;
  background: #050505;
  border: 1px solid #a6a6a6;
  border-radius: 9px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
}

.app-store-badge-kawaii:hover,
.app-store-badge-kawaii:visited {
  color: #ffffff;
}

.app-store-badge-kawaii .apple-store-svg {
  width: 22px;
  height: 26px;
  flex-shrink: 0;
  fill: #ffffff;
}

.app-store-badge-kawaii span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.app-store-badge-kawaii small {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.app-store-badge-kawaii strong {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.store-image-link-kawaii {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 9px;
  overflow: hidden;
}

.store-image-link-kawaii img {
  display: block;
  height: 54px;
  width: auto;
  border-radius: 9px;
}

/* ── Tarjeta PRO interior ── */
.pro-copy {
  align-self: center;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.pro-badge-kawaii {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #78350f;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.25);
}

.pro-copy h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 14px 0 10px;
}

.pro-copy p {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
}

.pro-copy .pro-detail {
  font-size: 12px;
  line-height: 1.55;
  color: #64748b;
  margin-top: 10px;
}

.button-pro {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #78350f;
  font-weight: 800;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
  margin-top: 18px;
}

.button-pro:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  color: #78350f;
}

/* ── Comunidad (Facebook / Ko-Fi) ── */
.community {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 44px 0;
  margin: 20px 0 0;
}

.community h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.community p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.community-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.community-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.25s var(--bounce);
  text-decoration: none;
}

.community-btn--fb {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.community-btn--fb:hover {
  background: #dbeafe;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.15);
}

.community-btn--kofi {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.community-btn--kofi:hover {
  background: #d1fae5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.15);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--line);
  background: #ffffff;
  padding: 38px 0 28px;
  margin-top: 40px;
  width: 100%;
  padding-inline: max(20px, calc((100% - 1180px) / 2));
}

.footer-top, .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-top nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 600;
}

.footer-top nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-top nav a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
}

/* ── Pantalla de Salida (Exit Screen) ── */
.exit-screen {
  max-width: 640px;
  margin: 70px auto;
  padding: 42px;
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.exit-screen h1 {
  font-size: 32px;
  margin: 16px 0 14px;
}

.exit-screen p {
  font-size: 15px;
  color: var(--body);
  line-height: 1.6;
}

.exit-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ── Responsive Queries ── */
@media (max-width: 1050px) {
  .wrap {
    width: calc(100% - 40px);
  }
  .hero {
    gap: 36px;
    padding-top: 44px;
  }
  .hero-copy h1 {
    font-size: 46px;
  }
  .main-nav {
    gap: 10px;
  }
  .site-header {
    gap: 20px;
  }
  .practice-panel {
    padding: 24px 22px 0;
  }
  .all-categories {
    margin-inline: -22px;
    padding-inline: 22px;
  }
  .news-layout {
    gap: 24px;
  }
  .app-section {
    gap: 36px;
    padding: 38px;
  }
  .service-item {
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    flex-wrap: nowrap;
    justify-content: space-between;
    min-height: 62px;
    padding: 10px 16px;
    position: sticky;
    top: 0;
    z-index: 1000;
  }
  .header-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .pro-link,
  .pro-access-btn-v2 {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 36px 0;
  }
  .hero-copy h1 {
    font-size: clamp(34px, 7vw, 44px);
    margin: 18px 0 16px;
  }
  .hero-description {
    font-size: 15px;
    max-width: 100%;
    margin-bottom: 22px;
  }
  .study-steps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px 0;
  }
  .study-tools {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }
  .tool-copy h2 {
    max-width: none;
    font-size: 22px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 28px;
  }
  .news-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .service-list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .app-section {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 40px;
    padding: 32px 24px;
  }
  .app-copy h2 {
    font-size: 32px;
  }
  .community {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 30px 0;
  }
  .footer-top, .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .footer-top nav {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  .exit-screen {
    margin: 40px 0 60px;
    padding: 28px 20px;
  }
  .exit-screen h1 {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Página de Categorías V3 Kawaii
   ============================================================ */

.cat-page-hero {
  background: #ffffff;
  border-radius: 0 0 32px 32px;
  padding: 52px 20px 44px;
  text-align: center;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.03);
}

.cat-page-hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  margin: 12px 0;
  letter-spacing: -0.03em;
}

.cat-page-hero p {
  font-size: 15px;
  color: var(--body);
  max-width: 580px;
  margin: 0 auto;
}

.cat-search-wrap {
  max-width: 560px;
  margin: 28px auto 0;
  position: relative;
}

.cat-search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.cat-search-box input {
  width: 100%;
  padding: 16px 52px 16px 50px;
  font-size: 15px;
  font-weight: 500;
  font-family: var(--font-sans);
  border: 3px solid #ffffff;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
  outline: none;
  transition: all 0.25s ease;
  color: var(--primary);
}

.cat-search-box input:focus {
  border-color: #93c5fd;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.cat-search-icon {
  position: absolute;
  left: 20px;
  font-size: 18px;
  pointer-events: none;
  color: #64748b;
}

.cat-clear-btn {
  position: absolute;
  right: 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-clear-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}



.cat-section {
  background: #ffffff;
  border-radius: 28px;
  padding: 32px 34px;
  border: 2px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  transition: all 0.3s ease;
}

.cat-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f1f5f9;
}

.cat-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-section-count {
  font-size: 12px;
  font-weight: 800;
  background: #f0f7ff;
  color: #0369a1;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
}

.cat-subgroup-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  margin: 24px 0 14px 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.cat-card-wrap {
  position: relative;
  display: flex;
}

.cat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 52px 16px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  color: #1e293b;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-height: 70px;
}

.cat-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.cat-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}

.cat-card:hover .cat-card-icon {
  transform: none;
  background: #f1f5f9;
  color: #334155;
}

.cat-fav-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s var(--bounce);
  z-index: 2;
}

.cat-fav-toggle:hover {
  transform: translateY(-50%) scale(1.14);
  border-color: #f59e0b;
  color: #f59e0b;
}

.cat-fav-toggle.is-fav {
  background: #fef3c7;
  border-color: #fde047;
  color: #d97706;
}

.empty-search-kawaii {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: 28px;
  border: 2px dashed #cbd5e1;
  margin: 30px 0;
}

.empty-search-kawaii .mascot-icon {
  font-size: 48px;
  margin-bottom: 12px;
  display: block;
}

.empty-search-kawaii h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 8px;
}

.empty-search-kawaii p {
  color: var(--muted);
  font-size: 14px;
}

/* ── Selector desplegable de categorías (Escritorio y Móvil) ── */
.cat-filter-select-bar {
  display: flex;
  justify-content: center;
  margin-top: 22px;
  width: 100%;
}

.cat-select-box {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 480px;
}

.cat-select-icon {
  position: absolute;
  left: 18px;
  font-size: 18px;
  pointer-events: none;
  z-index: 2;
}

.cat-select-arrow {
  position: absolute;
  right: 20px;
  font-size: 13px;
  color: var(--primary);
  pointer-events: none;
  z-index: 2;
}

.cat-select-box select {
  width: 100%;
  padding: 13px 44px 13px 48px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  background: #ffffff;
  border: 2px solid #e0e7ff;
  border-radius: var(--radius-pill);
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s var(--bounce);
}

.cat-select-box select:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.14);
}

.cat-select-box select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

/* ── Ajustes Responsive para Móvil (max-width: 768px) ── */
@media (max-width: 768px) {
  .cat-page-hero {
    padding: 34px 16px 26px;
    border-radius: 0 0 28px 28px;
    margin-bottom: 20px;
  }
  
  .cat-page-hero h1 {
    font-size: 26px;
    margin: 8px 0;
  }

  .cat-page-hero p {
    font-size: 13px;
    line-height: 1.5;
  }

  .cat-search-wrap {
    margin-top: 16px;
  }

  .cat-search-box input {
    padding: 12px 42px 12px 44px;
    font-size: 13.5px;
  }

  .cat-search-icon {
    left: 16px;
    font-size: 16px;
  }

  .cat-filter-select-bar {
    margin-top: 14px;
  }

  .cat-select-box {
    max-width: 100%;
  }

  .cat-select-box select {
    padding: 12px 38px 12px 42px;
    font-size: 13.5px;
  }

  .cat-select-icon {
    left: 14px;
    font-size: 16px;
  }

  .cat-select-arrow {
    right: 16px;
  }

  .cat-section {
    padding: 20px 16px;
    border-radius: 20px;
    margin-bottom: 18px;
  }

  .cat-section-header {
    margin-bottom: 14px;
    padding-bottom: 10px;
  }

  .cat-section-title {
    font-size: 16px;
  }

  .cat-section-count {
    font-size: 11px;
    padding: 3px 10px;
  }

  .cat-subgroup-title {
    margin: 16px 0 10px 2px;
    font-size: 10.5px;
  }

  .cat-cards-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cat-card {
    padding: 12px 46px 12px 14px;
    font-size: 13.5px;
    min-height: 60px;
  }

  .cat-card-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
    border-radius: 12px;
  }
}

/* ── Publicidad V3 (Banners Horizontales y Vertical) ── */
.v3-ad-slot {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1.5px dashed #cbd5e1;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px 20px;
  overflow: hidden;
  transition: all 0.25s ease;
}

.v3-ad-slot:hover {
  border-color: #94a3b8;
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%);
}

.v3-ad-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.v3-ad-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.v3-ad-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #475569;
}

.v3-ad-sub {
  font-size: 11.5px;
  color: #64748b;
}

.v3-ad-pro-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-top: 6px;
  text-decoration: none;
  transition: transform 0.2s var(--bounce);
}

.v3-ad-pro-pill:hover {
  transform: translateY(-2px);
  background: #fde68a;
}

/* Formatos de banner */
.v3-ad-slot--horizontal {
  width: 100%;
  max-width: 970px;
  min-height: 100px;
  margin: 34px auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.v3-ad-slot--vertical {
  width: 100%;
  min-height: 280px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  padding: 24px 18px;
}

.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Espacio publicitario dentro del artículo y en el feed de noticias */
.v3-ad-slot--in-article {
  max-width: 100%;
  margin: 28px 0;
  border-radius: var(--radius-md);
  background: #f8fafc;
}

.journal-feed .v3-ad-slot--horizontal {
  margin: 22px 0;
  max-width: 100%;
}

.journal-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.journal-sidebar .v3-ad-slot--vertical {
  margin: 0;
  width: 100%;
}

.journal-service-link {
  display: flex !important;
  align-items: center;
  gap: 14px;
  transition: transform 0.2s ease;
}

.journal-service-link:hover {
  transform: translateX(4px);
}

.journal-service-link img {
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

/* ── Página de Convocatorias V3 ── */
.conv-resolutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  margin: 28px 0 36px;
}

.conv-res-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.conv-res-card:hover {
  transform: translateY(-2px);
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.conv-res-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #0369a1;
  background: #f0f7ff;
  border: 1px solid #bae6fd;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  width: fit-content;
  margin-bottom: 12px;
}

.conv-res-card h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.conv-res-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-boc-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s var(--bounce);
}

.btn-boc-download:hover {
  background: #fee2e2;
  border-color: #f87171;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.2);
}

.conv-catalog-section {
  background: #ffffff;
  border: 2px solid #f1f5f9;
  border-radius: 28px;
  padding: 32px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.conv-catalog-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.conv-catalog-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.conv-catalog-header p {
  font-size: 14px;
  color: #64748b;
}

.conv-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.conv-search-box {
  position: relative;
  flex: 1 1 280px;
  display: flex;
  align-items: center;
}

.conv-search-box input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-pill);
  color: var(--body);
  outline: none;
  transition: all 0.2s ease;
}

.conv-search-box input:focus {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.conv-search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  pointer-events: none;
  color: #64748b;
}

.conv-clear-btn {
  position: absolute;
  right: 14px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
}

.conv-select-box {
  position: relative;
  flex: 0 1 280px;
  display: flex;
  align-items: center;
}

.conv-select-box select {
  width: 100%;
  padding: 12px 38px 12px 38px;
  font-size: 13.5px;
  font-weight: 700;
  font-family: var(--font-sans);
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-pill);
  color: var(--primary);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all 0.2s var(--bounce);
}

.conv-select-box select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.conv-select-icon {
  position: absolute;
  left: 14px;
  font-size: 15px;
  pointer-events: none;
}

.conv-select-arrow {
  position: absolute;
  right: 16px;
  font-size: 12px;
  color: var(--primary);
  pointer-events: none;
}

.conv-counter-pill {
  font-size: 12px;
  font-weight: 800;
  background: #f0f7ff;
  color: #0369a1;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Tabla moderna de Convocatorias */
.conv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.conv-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 14px;
}

.conv-table thead th {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  border: none;
}

.conv-table tbody tr {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.conv-table tbody tr:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.conv-table tbody td {
  padding: 16px;
  vertical-align: middle;
}

.conv-table tbody td:first-child {
  border-radius: 16px 0 0 16px;
}

.conv-table tbody td:last-child {
  border-radius: 0 16px 16px 0;
}

.conv-cat-title {
  font-weight: 700;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 8px;
}

.conv-cat-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.conv-badge-group {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: #eff6ff;
  color: #1e40af;
  display: inline-block;
  white-space: nowrap;
}

.conv-badge-questions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #15803d;
  font-weight: 800;
  font-size: 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.btn-pdf-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s var(--bounce);
}

.btn-pdf-download:hover {
  background: #fee2e2;
  border-color: #f87171;
  color: #991b1b;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.18);
}

@media (max-width: 768px) {
  .v3-ad-slot--horizontal {
    min-height: 85px;
    margin: 22px auto;
    padding: 12px;
  }

  .v3-ad-slot--vertical {
    min-height: 220px;
    margin-top: 14px;
    padding: 18px 12px;
  }

  .conv-catalog-section {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .conv-filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .conv-select-box {
    flex: 1 1 auto;
  }

  .conv-table thead {
    display: none;
  }

  .conv-table, .conv-table tbody, .conv-table tr, .conv-table td {
    display: block;
    width: 100%;
  }

  .conv-table tbody tr {
    margin-bottom: 14px;
    border: 1.5px solid #e2e8f0;
    padding: 14px;
  }

  .conv-table tbody td {
    padding: 8px 0;
    border-radius: 0 !important;
    border-left: none !important;
  }

  .conv-table-action {
    padding-top: 12px !important;
    border-top: 1px dashed #e2e8f0;
    margin-top: 8px;
    display: flex;
    justify-content: flex-end;
  }
}

/* ============================================================
   Hub de Noticias y Servicios Sanitarios V3
   ============================================================ */

/* ── Selector de Servicios de Salud (Tabs) ── */
.service-nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -10px auto 30px;
  max-width: 820px;
  justify-content: center;
}

.service-nav-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.service-nav-chip img {
  width: 20px;
  height: 14px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  object-fit: cover;
}

.service-nav-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.service-nav-chip.active {
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.service-nav-chip--all.active {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.service-nav-chip--scs.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #1e3a8a;
}

.service-nav-chip--sas.active {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #14532d;
}

.service-nav-chip--sermas.active {
  background: #fef2f2;
  border-color: #dc2626;
  color: #991b1b;
}

/* ── Ficha Destacada del Servicio Sanitario Activo ── */
.service-spotlight-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 32px;
  margin-bottom: 34px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: all 0.25s ease;
}

.service-spotlight-card--scs {
  border-top: 4px solid #2563eb;
}

.service-spotlight-card--sas {
  border-top: 4px solid #16a34a;
}

.service-spotlight-card--sermas {
  border-top: 4px solid #dc2626;
}

.service-spotlight-info {
  flex: 1;
}

.service-spotlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 10px;
}

.service-spotlight-card--scs .service-spotlight-badge {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.service-spotlight-card--sas .service-spotlight-badge {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.service-spotlight-card--sermas .service-spotlight-badge {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.service-spotlight-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-spotlight-title img {
  width: 28px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.service-spotlight-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  max-width: 680px;
  margin: 0 0 18px;
}

.service-spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-service-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-service-action--primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-service-action--primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-service-action--secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.btn-service-action--secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

/* ── Layout de Noticias (Contenido + Barra Lateral) ── */
.news-page-grid {
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Buscador y Filtro de Noticias ── */
.news-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  align-items: center;
}

.news-search-box {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.news-search-box input {
  width: 100%;
  padding: 13px 44px 13px 44px;
  font-size: 14px;
  font-family: var(--font-sans);
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  outline: none;
  transition: all 0.2s ease;
  color: var(--body);
}

.news-search-box input:focus {
  border-color: #93c5fd;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

.news-search-icon {
  position: absolute;
  left: 16px;
  font-size: 16px;
  color: var(--muted);
  pointer-events: none;
}

.news-clear-btn {
  position: absolute;
  right: 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.news-clear-btn:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.news-counter-pill {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

/* ── Feed de Noticias (Cards) ── */
.news-cards-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-card-v3 {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.news-card-v3:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.news-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.news-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.news-service-tag--scs {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.news-service-tag--sas {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.news-service-tag--sermas {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.news-date-text {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.news-cat-badge {
  font-size: 11px;
  font-weight: 700;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.news-card-v3 h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.35;
  margin: 0 0 10px;
}

.news-card-v3 p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.news-read-link {
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.news-read-link:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

/* ── Sidebar de Noticias V3 ── */
.news-page-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar-widget {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sidebar-widget-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1.5px solid #f1f5f9;
}

.sidebar-widget-header h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
}

.services-mini-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.service-mini-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.service-mini-flag {
  width: 34px;
  height: 24px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
  object-fit: cover;
}

.service-mini-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.service-mini-text span {
  font-size: 11.5px;
  color: var(--muted);
}

.service-mini-arrow {
  margin-left: auto;
  font-size: 13px;
  color: #94a3b8;
}

/* ── Responsive para Móvil (Noticias) ── */
@media (max-width: 860px) {
  .news-page-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-spotlight-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
  }

  .service-nav-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .service-nav-chip {
    white-space: nowrap;
    flex-shrink: 0;
  }
}


/* Actualidad: the SCS is the default reading experience; other regions are secondary. */
.news-editorial-page { background: #f8fbff; }
.journal-main { padding-bottom: 32px; }
.journal-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 38px 0 30px; }
.journal-heading h1 { font-size: clamp(32px, 3.5vw, 46px); letter-spacing: -.04em; line-height: 1.15; margin: 16px 0 12px; }
.journal-heading-dot { color: #e7b850; }
.journal-heading p { max-width: 620px; font-size: 15px; line-height: 1.65; color: #475569; }
.journal-heading .eyebrow-pill { gap: 9px; box-shadow: none; font-size: 11px; }
.journal-study-link { flex-shrink: 0; display: flex; align-items: center; gap: 14px; padding: 18px; border: 1px solid #e3eaf2; background: white; border-radius: 18px; color: #64748b; font-size: 12px; }
.journal-study-link > span:first-child { font-size: 25px; }
.journal-study-link strong { display: block; color: var(--primary); font-size: 14px; margin-top: 4px; }
.journal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 34px; align-items: start; }
.journal-feed { min-width: 0; }
.journal-filters { display: flex; align-items: end; gap: 10px; }
.journal-filters .journal-query { flex: 1; min-width: 0; }
.journal-filters label { display: block; font-size: 11px; font-weight: 650; margin-bottom: 6px; color: #475569; }
.journal-filters input, .journal-filters select { font: inherit; font-size: 13px; min-height: 44px; width: 100%; border: 1px solid #bccbdd; border-radius: 10px; background: white; color: var(--body); padding: 10px 12px; }
.journal-filters select { max-width: 175px; }
.journal-filters .button { min-height: 44px; padding: 10px 18px; font-size: 13px; box-shadow: none; border-radius: 10px; background: var(--primary-light); }
.journal-filters input:focus-visible, .journal-filters select:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.journal-result-count { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 16px 0; font-size: 11px; color: #64748b; }
.journal-result-count a { text-decoration: underline; color: var(--primary); text-underline-offset: 3px; }
.journal-story { padding: 25px 4px; border-bottom: 1px solid #dfe7f0; }
.journal-story--featured { padding: 26px 28px; background: white; border: 1px solid #dce6f3; border-top: 3px solid #5083dc; border-radius: 20px; margin-bottom: 6px; }
.journal-story--featured.journal-story--sermas,
[data-service="sermas"] .journal-story--featured { border-top-color: #dc2626; }
.journal-story--featured.journal-story--sas,
[data-service="sas"] .journal-story--featured { border-top-color: #16a34a; }
.journal-story--featured.journal-story--sermas .journal-latest,
[data-service="sermas"] .journal-story--featured .journal-latest { background: #fef2f2; color: #b91c1c; }
.journal-story--featured.journal-story--sas .journal-latest,
[data-service="sas"] .journal-story--featured .journal-latest { background: #f0fdf4; color: #15803d; }
.journal-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 11px; color: #586b83; }
.journal-latest { background: #edf4ff; color: #284f92; padding: 4px 8px; border-radius: 6px; font-weight: 650; }
.journal-story h3 { font-size: 19px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--primary); margin: 10px 0; }
.journal-story--featured h3 { font-size: 25px; line-height: 1.3; }
.journal-story h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.journal-story p { font-size: 14px; line-height: 1.7; color: #475569; margin: 0; }
.journal-read { display: inline-flex; gap: 16px; align-items: center; color: #2657aa; font-size: 12px; font-weight: 700; padding: 10px 0 4px; }
.journal-resource { padding: 24px; background: #eef5ff; border: 1px solid #d6e4f7; border-radius: 20px; }
.journal-resource .panel-tag { box-shadow: none; font-size: 11px; }
.journal-resource h2 { font-size: 24px; line-height: 1.25; color: var(--primary); margin: 18px 0 10px; letter-spacing: -.03em; }
.journal-resource p { font-size: 13px; line-height: 1.6; color: #51647c; margin-bottom: 12px; }
.journal-resource > a { display: block; padding: 16px 0; border-bottom: 1px solid #d2def0; }
.journal-resource > a:last-child { border: 0; padding-bottom: 0; }
.journal-resource strong { display: block; font-size: 13px; color: #244783; }
.journal-resource a span { display: block; font-size: 11px; color: #546980; margin-top: 4px; }
.journal-independent { margin: 18px 8px 0; font-size: 11px; line-height: 1.7; color: #64748b; }
.journal-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; padding: 26px 0; font-size: 12px; }
.journal-pagination a { display: inline-block; padding: 10px 14px; background: white; border: 1px solid #cfdaeb; border-radius: 10px; color: var(--primary); font-weight: 650; }
.journal-empty { padding: 40px 24px; background: white; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 24px; }
.journal-empty h1, .journal-empty h3 { font-size: 24px; line-height: 1.35; margin: 12px 0; }
.journal-empty p { margin: 12px 0; font-size: 14px; }
.journal-other { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid #dae4f0; border-bottom: 1px solid #dae4f0; padding: 26px 0; margin-top: 38px; }
.journal-kicker { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #566b83; }
.journal-other h2 { font-size: 21px; line-height: 1.3; color: var(--primary); margin: 7px 0; letter-spacing: -.03em; }
.journal-other p { font-size: 12px; color: #64748b; margin: 0; }
.journal-other nav { display: flex; gap: 16px; flex-shrink: 0; }
.journal-other nav a { display: flex; align-items: center; gap: 13px; padding: 14px 18px; background: white; border: 1px solid #e0e7f1; border-radius: 14px; font-size: 13px; font-weight: 650; }
.journal-other nav a[aria-current] { border-color: #7c9bca; background: #eef5ff; }
.journal-other small { display: block; font-size: 10px; font-weight: 400; color: #64748b; margin-top: 3px; }
.journal-other img { object-fit: cover; border-radius: 2px; }
.journal-breadcrumb { display: flex; flex-wrap: wrap; gap: 20px; padding: 28px 0; font-size: 12px; color: #5b6f89; }
.journal-breadcrumb a { color: var(--primary); font-weight: 650; }
.journal-article { max-width: 820px; margin: 0 auto 28px; padding: 36px 45px; background: white; border: 1px solid #dde6f3; border-radius: 22px; }
.journal-article h1 { font-size: clamp(27px, 3vw, 38px); line-height: 1.25; letter-spacing: -.035em; margin: 16px 0 20px; overflow-wrap: anywhere; }
.journal-standfirst { margin: 25px 0; font-size: 18px; line-height: 1.75; color: #52627a; }
.journal-cover { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 24px auto; }
.journal-article-body { font-size: 16px; line-height: 1.85; color: #334155; overflow-wrap: anywhere; margin-top: 24px; }
.journal-article-body p, .journal-article-body ul, .journal-article-body ol { margin: 0 0 20px; }
.journal-article-body h2 { font-size: 24px; line-height: 1.4; margin: 30px 0 14px; }
.journal-article-body h3, .journal-article-body h4 { font-size: 20px; line-height: 1.4; margin: 25px 0 12px; }
.journal-article-body a { color: #2454a2; text-decoration: underline; text-underline-offset: 3px; }
.journal-article-body table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin-block: 20px; }
.journal-article-body td, .journal-article-body th { border: 1px solid #dce3eb; padding: 10px; }
.journal-article-body blockquote { border-left: 3px solid #abc6eb; padding-left: 20px; margin-left: 0; color: #5c6a7d; }
.journal-source-note { font-size: 12px; color: #53657e; padding: 18px; background: #f2f6fc; border-radius: 12px; margin-top: 28px; }
.journal-article-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.journal-article-actions .button { font-size: 13px; min-height: 44px; box-shadow: none; }
/* Catalogue pages put useful controls before promotional or reference material. */
.catalog-page .cat-page-hero { padding: 28px 20px; margin-bottom: 22px; }
.catalog-page .cat-page-hero h1 { font-size: clamp(27px, 3.3vw, 37px); }
.catalog-page .cat-search-wrap { margin-top: 19px; }
.catalog-page .cat-filter-select-bar { margin-top: 15px; }
.catalog-page .conv-catalog-header { margin-bottom: 18px; }
.conv-legal-sources { margin: 36px 0; }
.conv-legal-sources > h2 { font-size: 24px; color: var(--primary); margin-bottom: 18px; }
.conv-practice-link { display: block; font-size: 12px; font-weight: 700; color: #2456a4; padding: 9px 0; }
@media (max-width: 950px) {
  .journal-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
  .journal-filters { flex-wrap: wrap; }
  .journal-filters .journal-query { flex-basis: 100%; }
  .journal-filters select { max-width: none; }
  .journal-filters > div:not(.journal-query) { flex: 1; }
  .journal-other { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .journal-heading { padding: 26px 0 22px; gap: 16px; flex-direction: column; align-items: flex-start; }
  .journal-heading h1 { font-size: 33px; }
  .journal-heading p { font-size: 14px; }
  .journal-study-link { display: none; }
  .journal-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .journal-sidebar { order: 2; }
  .journal-filters { gap: 10px; }
  .journal-story--featured { padding: 21px; }
  .journal-story--featured h3 { font-size: 22px; }
  .journal-story h3 { font-size: 19px; }
  .journal-story p { font-size: 13px; }
  .journal-other { margin-top: 26px; gap: 18px; }
  .journal-other nav { flex-wrap: wrap; width: 100%; gap: 10px; }
  .journal-other nav a { flex: 1; padding: 13px; min-width: 145px; }
  .journal-article { padding: 23px 19px; border-radius: 16px; }
  .journal-article h1 { font-size: 27px; }
  .journal-standfirst { font-size: 16px; }
  .journal-article-body { font-size: 15px; }
  .journal-breadcrumb { padding: 20px 0; }
  .catalog-page .cat-page-hero { padding: 24px 16px; }
  .catalog-page .cat-page-hero h1 { font-size: 28px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .site-header .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 2px solid #e2e8f0;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.16);
    padding: 16px 18px 20px;
    flex-direction: column;
    gap: 8px;
    z-index: 999;
    animation: v3DropdownSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .site-header .main-nav.is-open {
    display: flex;
  }
  .site-header .main-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
    font-weight: 600;
    color: #334155;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    min-height: 48px;
    white-space: nowrap;
    transition: all 0.15s ease;
  }
  .site-header .main-nav a:hover,
  .site-header .main-nav a:active {
    background: #f1f5f9;
    color: #0284c7;
    border-color: #cbd5e1;
    transform: translateX(4px);
  }
  .site-header .main-nav a.is-active,
  .site-header .main-nav a[aria-current="page"] {
    background: #eff6ff;
    color: #0284c7;
    border-color: #93c5fd;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
  }
}

/* ============================================================
   Páginas de Apoyo V3: FAQ, Contacto y Legal
   ============================================================ */

/* ── FAQ Acordeón & Buscador ── */
.faq-section {
  max-width: 920px;
  margin: 0 auto 60px;
}

.faq-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-chip:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}

.faq-chip.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.faq-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.faq-item[open] {
  border-color: #93c5fd;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.08);
}

.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-summary-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.faq-chevron {
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: #2563eb;
}

.faq-content {
  padding: 0 24px 22px 54px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  border-top: 1px dashed #f1f5f9;
  margin-top: 4px;
  padding-top: 16px;
}

.faq-content p {
  margin: 0 0 12px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content a {
  color: #2563eb;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-content a:hover {
  color: #1d4ed8;
}

/* ── Contacto V3 ── */
.contact-container {
  max-width: 980px;
  margin: 0 auto 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 32px;
  align-items: start;
}

.contact-info-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 30px 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-info-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-email-box {
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 18px;
  padding: 20px;
  text-align: center;
  margin: 20px 0;
  transition: all 0.2s ease;
}

.contact-email-box:hover {
  border-color: #93c5fd;
  background: #f0f7ff;
}

.contact-email-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.contact-email-address {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  display: block;
  word-break: break-all;
  margin-bottom: 10px;
}

.btn-copy-email {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  color: var(--body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-copy-email:hover {
  background: #e2e8f0;
  color: var(--primary);
}

.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  text-decoration: none;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.contact-channel-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.contact-channel-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-channel-icon--fb {
  background: #e7f0ff;
  color: #1877f2;
}

.contact-channel-icon--kofi {
  background: #fef2f2;
  color: #ef4444;
}

.contact-channel-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--body);
}

.contact-channel-text span {
  font-size: 12px;
  color: var(--muted);
}

/* Formulario de Contacto V3 */
.contact-form-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.contact-form-card h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 8px;
}

.contact-form-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.5;
}

.contact-field-group {
  margin-bottom: 18px;
}

.contact-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--body);
  margin-bottom: 6px;
}

.contact-input, .contact-textarea, .contact-select {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
  color: var(--body);
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.contact-input:focus, .contact-textarea:focus, .contact-select:focus {
  background: #ffffff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.25);
}

.contact-textarea {
  min-height: 130px;
  resize: vertical;
}

.btn-contact-submit {
  width: 100%;
  padding: 14px 20px;
  background: var(--primary);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-contact-submit:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(30, 58, 138, 0.35);
}

/* ── Documentos Legales: Privacidad y Términos V3 ── */
.legal-container {
  max-width: 860px;
  margin: 0 auto 60px;
}

.legal-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 28px;
  padding: 40px 44px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  line-height: 1.7;
}

.legal-update-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}

.legal-callout-warning {
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-left: 5px solid #f43f5e;
  border-radius: 18px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.legal-callout-warning h3 {
  color: #9f1239;
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legal-callout-warning p {
  color: #881337;
  font-size: 13.5px;
  line-height: 1.6;
  margin: 0 0 8px;
}

.legal-callout-warning p:last-child {
  margin-bottom: 0;
}

.legal-callout-info {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-left: 5px solid #0284c7;
  border-radius: 18px;
  padding: 20px 24px;
  margin: 24px 0;
}

.legal-callout-info h4 {
  color: #0369a1;
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 6px;
}

.legal-callout-info p {
  color: #075985;
  font-size: 13.5px;
  margin: 0;
  line-height: 1.6;
}

.legal-section-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--primary);
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-card h4 {
  font-size: 15.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 22px 0 8px;
}

.legal-card p {
  font-size: 14.5px;
  color: #475569;
  margin: 0 0 16px;
}

.legal-card ul {
  padding-left: 22px;
  margin: 0 0 20px;
  color: #475569;
  font-size: 14.5px;
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card a {
  color: #2563eb;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-card a:hover {
  color: #1d4ed8;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .legal-card {
    padding: 26px 20px;
    border-radius: 20px;
  }
  .faq-summary {
    padding: 16px 18px;
    font-size: 14.5px;
  }
  .faq-content {
    padding: 0 18px 18px 40px;
    font-size: 13.5px;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   PANTALLA DE CONFIGURACIÓN DE TEST POR CATEGORÍA (V3)
   ══════════════════════════════════════════════════════════════════════ */

/* Hero de Categoría */
.cat-detail-hero {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 32px 0 36px;
}

.cat-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 18px;
}

.cat-breadcrumbs a {
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}

.cat-breadcrumbs a:hover {
  color: #0284c7;
  text-decoration: underline;
}

.cat-breadcrumbs-sep {
  color: #cbd5e1;
  font-size: 11px;
}

.cat-breadcrumbs-current {
  color: #0f172a;
  font-weight: 600;
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-hero-header {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.cat-hero-icon-box {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.cat-hero-info {
  flex: 1;
}

.cat-hero-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.cat-badge-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.cat-badge-pill--group {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.cat-badge-pill--questions {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.cat-hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.cat-hero-subtitle {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

.cat-hero-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.cat-hero-stat-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-hero-stat-icon {
  font-size: 22px;
  line-height: 1;
}

.cat-hero-stat-meta {
  display: flex;
  flex-direction: column;
}

.cat-hero-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.cat-hero-stat-val {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

/* Layout Grid de Configuración */
.test-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  margin: 32px 0 40px;
}

/* Tarjeta Principal de Configuración */
.test-config-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.test-config-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f1f5f9;
}

.test-config-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}

.test-config-title span {
  font-size: 1.3rem;
}

.test-config-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* Pasos del Formulario */
.test-step {
  margin-bottom: 28px;
}

.test-step-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.test-step-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.test-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eff6ff;
  color: #0284c7;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.test-step-hint {
  font-size: 12.5px;
  color: #64748b;
}

/* Grilla de Chips de Preguntas */
.question-chips-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.q-chip-item {
  position: relative;
}

.q-chip-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.q-chip-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  border-radius: 16px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  user-select: none;
}

.q-chip-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.q-chip-card--pro {
  background: #fffdf5;
  border-color: #fde68a;
}

.q-chip-card--pro:hover {
  background: #fffbeb;
  border-color: #f59e0b;
}

.q-chip-input:checked + .q-chip-card {
  background: #f0f9ff;
  border-color: #0284c7;
  box-shadow: 0 0 0 1.5px #0284c7, 0 6px 16px rgba(2, 132, 199, 0.12);
  transform: translateY(-2px);
}

.q-chip-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 4px;
}

.q-chip-input:checked + .q-chip-card .q-chip-number {
  color: #0284c7;
}

.q-chip-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 3px;
}

.q-chip-pro-badge {
  font-size: 10px;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* Barra de Tiempo Estimado */
.test-estimate-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-size: 13.5px;
  color: #334155;
}

.test-estimate-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.test-estimate-time {
  font-weight: 800;
  color: #0284c7;
}

.test-estimate-right {
  font-size: 12px;
  color: #64748b;
}

/* Modos de Práctica (Super Test, Examen) */
.test-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.test-mode-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.test-mode-card:hover {
  background: #ffffff;
  border-color: #cbd5e1;
}

.test-mode-card.is-active {
  background: #fffbeb;
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b;
}

.test-mode-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
}

.test-mode-icon {
  font-size: 24px;
  line-height: 1;
  margin-top: 2px;
}

.test-mode-texts {
  display: flex;
  flex-direction: column;
}

.test-mode-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.test-mode-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.test-mode-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #b45309;
}

.test-mode-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

/* Switch Toggle Moderno */
.modern-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
  flex-shrink: 0;
  margin-left: 14px;
}

.modern-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.modern-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: 0.25s;
  border-radius: 26px;
}

.modern-switch-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.modern-switch input:checked + .modern-switch-slider {
  background-color: #f59e0b;
}

.modern-switch input:checked + .modern-switch-slider:before {
  transform: translateX(22px);
}

/* Botón CTA de Generar Test */
.btn-generate-test {
  width: 100%;
  padding: 18px 24px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-generate-test:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1, #075985);
  color: #ffffff;
}

.btn-generate-test:active {
  transform: translateY(0);
}

.btn-generate-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Garantías / Badges bajo el botón */
.test-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
  font-size: 12.5px;
  color: #64748b;
}

.test-feature-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.test-feature-item svg {
  color: #16a34a;
  flex-shrink: 0;
}

/* Tarjetas de la Columna Lateral (Sidebar) */
.cat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cat-sidebar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.cat-sidebar-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
}

.cat-official-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cat-official-item {
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.cat-official-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.cat-official-prop {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  margin-bottom: 3px;
  display: block;
}

.cat-official-val {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  display: block;
}

/* Botón de Descarga PDF Oficial */
.btn-download-pdf {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-bottom: 10px;
}

.btn-download-pdf:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
  transform: translateY(-1px);
}

.btn-download-pdf svg {
  color: #dc2626;
}

.btn-secondary-link {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.btn-secondary-link:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

/* Selector rápido de categorías */
.sidebar-cat-switcher {
  margin-top: 14px;
}

.sidebar-cat-switcher select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.sidebar-cat-switcher select:focus {
  border-color: #0284c7;
  outline: none;
}

/* Sección de Noticias Relacionadas */
.cat-related-news-section {
  margin: 32px 0 0;
}

.cat-related-news-section > header { padding: 0 4px; }
.cat-related-news-section .cat-section-heading { display: block; margin-top: 6px; }
.cat-related-news-section .journal-story { overflow-wrap: anywhere; }

.cat-study-guide {
  margin-top: 24px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8fbff, #fffdf8);
  box-shadow: 0 12px 30px rgba(30, 64, 175, .06);
}
.cat-study-guide h2 { margin: 7px 0 12px; font-size: clamp(1.25rem, 2.4vw, 1.7rem); color: #17395c; }
.cat-study-guide p { margin: 0; color: #475569; line-height: 1.72; }
.cat-study-guide p + p { margin-top: 10px; }

.cat-section-title-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cat-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.cat-section-more {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
}

.cat-section-more:hover {
  text-decoration: underline;
}

.cat-news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.cat-news-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.cat-news-card:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.cat-news-date {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 8px;
  display: block;
}

.cat-news-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 10px;
  flex: 1;
}

.cat-news-card-desc {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 14px;
}

.cat-news-card-link {
  font-size: 13px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
}

.cat-news-card-link:hover {
  text-decoration: underline;
}

/* Tarjetas Promocionales V3 (PRO, App, Ko-fi) */
.cat-promo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 36px 0;
}

.cat-promo-card {
  border-radius: 20px;
  padding: 24px;
  border: 1px solid transparent;
}

.cat-promo-card--pro {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-color: #bfdbfe;
}

.cat-promo-card--app {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border-color: #fde68a;
}

.cat-promo-card--kofi {
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
  border-color: #fecaca;
}

.cat-promo-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-promo-card--pro .cat-promo-title { color: #1e40af; }
.cat-promo-card--app .cat-promo-title { color: #b45309; }
.cat-promo-card--kofi .cat-promo-title { color: #991b1b; }

.cat-promo-text {
  font-size: 13.5px;
  line-height: 1.55;
  margin: 0 0 16px;
}

.cat-promo-card--pro .cat-promo-text { color: #1e3a8a; }
.cat-promo-card--app .cat-promo-text { color: #78350f; }
.cat-promo-card--kofi .cat-promo-text { color: #7f1d1d; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .test-layout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .cat-hero-header {
    flex-direction: column;
    gap: 14px;
  }
  .cat-hero-icon-box {
    width: 54px;
    height: 54px;
    font-size: 28px;
    border-radius: 16px;
  }
  .cat-hero-title {
    font-size: 1.6rem;
  }
  .test-config-card {
    padding: 22px 18px;
    border-radius: 20px;
  }
  .question-chips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cat-hero-stats-row {
    grid-template-columns: 1fr;
  }
  .cat-promo-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Reto Diario V3 (30 Segundos)
   ========================================================================== */

.challenge-page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.challenge-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

/* Hero / Pantalla inicial */
.challenge-hero-card {
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.challenge-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981, #f59e0b);
}

.challenge-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
}

.challenge-title {
  font-size: 2rem;
  font-weight: 900;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
}

.challenge-desc {
  font-size: 15px;
  color: #64748b;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.challenge-countdown-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 12px 28px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  margin-bottom: 8px;
}

.challenge-countdown-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 4px;
}

.challenge-countdown-time {
  font-size: 1.8rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  color: #0284c7;
}

/* Selector de Categoría */
.challenge-select-group {
  margin: 24px 0 20px;
  text-align: left;
}

.challenge-select-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.challenge-select {
  width: 100%;
  padding: 14px 16px;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.challenge-select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.12);
}

.challenge-start-btn {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(180deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.challenge-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
}

.challenge-start-btn:active {
  transform: translateY(0);
}

/* Grid de Reglas / Características */
.challenge-rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.challenge-rule-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px 18px;
  text-align: center;
}

.challenge-rule-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: inline-block;
}

.challenge-rule-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.challenge-rule-text {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
}

/* Pantalla de Juego Activo */
.challenge-game-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.challenge-meta-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.challenge-cat-badge {
  font-size: 12px;
  font-weight: 700;
  color: #0369a1;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.challenge-score-pill {
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.challenge-streak-pill {
  font-size: 13px;
  font-weight: 800;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: streak-pop 0.3s ease-out;
}

@keyframes streak-pop {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.challenge-meta-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.challenge-sound-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.challenge-sound-btn:hover {
  background: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

.challenge-sound-btn.is-muted {
  color: #94a3b8;
  background: #f1f5f9;
  border-color: #e2e8f0;
}

.challenge-timer-widget {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-pill);
  color: #0284c7;
  font-size: 1.25rem;
  font-weight: 900;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
  font-variant-numeric: tabular-nums;
  min-width: 80px;
  justify-content: center;
  transition: all 0.3s ease;
}

.challenge-timer-widget.is-warning {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626;
  animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Barra de progreso de tiempo */
.challenge-time-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.challenge-time-bar-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #10b981 0%, #0284c7 100%);
  border-radius: 3px;
  transition: width 0.1s linear, background 0.3s ease;
}

.challenge-time-bar-fill.is-warning {
  background: linear-gradient(90deg, #f59e0b 0%, #ef4444 100%);
}

/* Pregunta y Opciones */
.challenge-question-card {
  margin-bottom: 24px;
}

.challenge-question-counter {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 8px;
}

.challenge-question-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.55;
  margin: 0;
  min-height: 4rem;
}

.challenge-answers-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-answer-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  text-align: left;
  line-height: 1.45;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.15s ease;
}

.challenge-answer-btn:hover:not(.is-disabled) {
  border-color: #0284c7;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.challenge-answer-btn.is-disabled {
  cursor: default;
  pointer-events: none;
}

.challenge-answer-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  font-size: 13px;
  font-weight: 800;
  color: #475569;
  flex-shrink: 0;
}

.challenge-answer-btn.is-correct {
  background: #f0fdf4 !important;
  border-color: #22c55e !important;
  color: #15803d !important;
}

.challenge-answer-btn.is-correct .challenge-answer-letter {
  background: #22c55e;
  border-color: #16a34a;
  color: #ffffff;
}

.challenge-answer-btn.is-incorrect {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #b91c1c !important;
  animation: shake-answer 0.45s ease-in-out;
}

.challenge-answer-btn.is-incorrect .challenge-answer-letter {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
}

.challenge-answer-btn.is-revealed {
  background: #f0fdf4 !important;
  border: 2px dashed #22c55e !important;
  color: #15803d !important;
}

@keyframes shake-answer {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* Pantalla de Resultados */
.challenge-result-wrap {
  text-align: center;
}

.challenge-result-header {
  margin-bottom: 24px;
}

.challenge-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.challenge-result-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 8px;
}

.challenge-result-score-text {
  font-size: 1.15rem;
  color: #0284c7;
  font-weight: 800;
  margin: 0 0 20px;
}

/* Tarjeta de Estadísticas Comparativas / Clasificación Diaria */
.challenge-comparison-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px 24px;
  max-width: 580px;
  margin: 0 auto 32px;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.challenge-comparison-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 50%, #f59e0b 100%);
}

.challenge-comparison-header {
  margin-bottom: 22px;
}

.challenge-comparison-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.challenge-comparison-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.challenge-comparison-sub {
  font-size: 0.95rem;
  color: #475569;
  margin: 0;
  line-height: 1.45;
}

.challenge-comparison-sub strong {
  color: #0284c7;
  font-size: 1.15rem;
  font-weight: 900;
}

.challenge-percentile-wrap {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px 20px;
  margin-bottom: 22px;
}

.challenge-percentile-scale-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 12px;
}

.challenge-percentile-pill {
  font-size: 12px;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  padding: 3px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid #bae6fd;
}

.challenge-percentile-track {
  height: 12px;
  background: #cbd5e1;
  border-radius: var(--radius-pill);
  position: relative;
  overflow: visible;
}

.challenge-percentile-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8 0%, #0284c7 60%, #f59e0b 100%);
  border-radius: var(--radius-pill);
  position: relative;
  transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-width: 8px;
}

.challenge-percentile-marker {
  position: absolute;
  right: -14px;
  top: -9px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #0f172a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.35);
  animation: pulse-marker 2s infinite ease-in-out;
}

@keyframes pulse-marker {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.challenge-comparison-insight {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
}

@media (max-width: 640px) {
  .challenge-comparison-card {
    padding: 20px 16px;
    border-radius: 20px;
  }
  .challenge-comparison-title {
    font-size: 1.2rem;
  }
}

.challenge-result-card-inner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 24px;
  max-width: 360px;
  margin: 0 auto 28px;
}

.challenge-grid-squares {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 240px;
  margin: 0 auto 16px;
}

.challenge-square {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.challenge-square.is-correct {
  background: #22c55e;
  border-color: #16a34a;
  color: #ffffff;
}

.challenge-square.is-incorrect {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
}

.challenge-square.is-unanswered {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #94a3b8;
}

/* Compartir acciones */
.challenge-share-box {
  margin-bottom: 32px;
}

.challenge-share-heading {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 12px;
}

.challenge-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.challenge-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.challenge-share-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.challenge-share-btn--copy {
  border-color: #0284c7;
  color: #0284c7;
  background: #f0f9ff;
}

.challenge-share-btn--copy:hover {
  background: #e0f2fe;
}

.challenge-share-btn--whatsapp {
  border-color: #25d366;
  color: #ffffff;
  background: #25d366;
}

.challenge-share-btn--whatsapp:hover {
  background: #128c7e;
  border-color: #128c7e;
}

.challenge-share-btn--x {
  border-color: #000000;
  color: #ffffff;
  background: #000000;
}

.challenge-share-btn--x:hover {
  background: #262626;
}

.challenge-share-btn--img {
  border-color: #e11d48;
  color: #ffffff;
  background: linear-gradient(45deg, #f59e0b, #e11d48, #9333ea);
}

/* Botones de acción final */
.challenge-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 36px;
}

.challenge-btn-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #0284c7;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.challenge-btn-restart:hover {
  background: #0369a1;
  transform: translateY(-1px);
}

.challenge-btn-restart--primary {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
  padding: 14px 28px;
  font-size: 15px;
}

.challenge-btn-restart--primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.45);
  transform: translateY(-2px);
}

.challenge-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: #f1f5f9;
  color: #334155;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.challenge-btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
}

.challenge-btn-practice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: #ffffff;
  color: #334155;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.challenge-btn-practice:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* Lista de correcciones */
.challenge-corrections-section {
  text-align: left;
  border-top: 1px solid #e2e8f0;
  padding-top: 28px;
}

.challenge-corrections-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 16px;
  text-align: center;
}

.challenge-corrections-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.challenge-correction-card {
  padding: 16px 20px;
  border-radius: 14px;
  border-left: 5px solid;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.challenge-correction-card.is-correct {
  border-left-color: #22c55e;
  background: #f0fdf4;
}

.challenge-correction-card.is-incorrect {
  border-left-color: #ef4444;
  background: #fef2f2;
}

.challenge-correction-q {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.challenge-correction-user {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 4px;
}

.challenge-correction-card.is-incorrect .challenge-correction-user {
  text-decoration: line-through;
  color: #b91c1c;
}

.challenge-correction-real {
  font-size: 13px;
  font-weight: 700;
  color: #15803d;
  margin: 0;
}

/* Ripple de clic */
.ripple-fx {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(2, 132, 199, 0.15);
  transform: scale(0);
  animation: ripple-fx 0.5s linear;
  pointer-events: none;
}

@keyframes ripple-fx {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .challenge-page-wrap {
    padding: 20px 14px 60px;
  }
  .challenge-card {
    padding: 24px 18px;
    border-radius: 20px;
  }
  .challenge-title {
    font-size: 1.6rem;
  }
  .challenge-rules-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .challenge-share-buttons {
    flex-direction: column;
  }
  .challenge-share-btn {
    width: 100%;
    justify-content: center;
  }
  .challenge-actions-row {
    flex-direction: column;
  }
  .challenge-btn-restart,
  .challenge-btn-practice {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================================
   ESTILOS OPOSSCS PRO & SUBSCRIBE WITH GOOGLE (V3)
   ============================================================ */

/* ── Insignia PRO en Navbar ── */
.pro-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff !important;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
  margin-left: 6px;
  vertical-align: middle;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Tarjeta Promocional OposSCS-PRO ── */
.v3-pro-card {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #eff6ff 100%);
  border: 2px solid #93c5fd;
  border-radius: var(--radius-lg, 24px);
  padding: 28px 24px;
  margin: 32px 0;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.08);
  position: relative;
  overflow: hidden;
}

.v3-pro-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.v3-pro-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.v3-pro-card__icon {
  font-size: 2rem;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
  flex-shrink: 0;
}

.v3-pro-card__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 4px;
}

.v3-pro-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e3a8a;
  line-height: 1.3;
}

.v3-pro-card__desc {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #1e40af;
}

.v3-pro-card__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.v3-pro-card__perks li {
  font-size: 0.9rem;
  color: #1e3a8a;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
}

.v3-pro-card__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 14px;
  width: 100%;
  text-align: center;
}

.v3-pro-card__price {
  font-size: 0.88rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  display: block;
}

/* ── Chip desbloqueado en modo PRO ── */
.q-chip-card--pro.is-unlocked {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
}

.q-chip-card--pro.is-unlocked .q-chip-pro-badge {
  background: #22c55e !important;
  color: #ffffff !important;
}

/* ════ Contenedores del Botón Oficial Subscribe with Google (SwG) ════ */
.v3-swg-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.v3-swg-container button[swg-standard-button="subscription"] {
  cursor: pointer;
  max-width: 100%;
  margin: 0 auto;
}

/* Estilo para la tarjeta PRO cuando la suscripción ya está activa */
.v3-pro-card--active {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%) !important;
  border-color: #86efac !important;
}

.v3-pro-card--active .v3-pro-card__title {
  color: #166534 !important;
}

/* Production ad containers rendered by httpdocs/ads.php. */
.ad-container-v2 {
  margin: 24px auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 18px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-container-v2--banner { width: 754px; max-width: calc(100% - 24px); min-height: 116px; }
.ad-container-v2--bottom { margin-top: 32px; }
.ad-container-v2--content { width: 326px; max-width: calc(100% - 16px); min-height: 276px; }
@media (max-width: 768px) {
  .ad-container-v2--banner, .ad-container-v2--content { width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .ad-container-v2--top { min-height: 100px; }
  .ad-container-v2--bottom { min-height: 50px; }
  .ad-container-v2--content { min-height: 270px; }
}
