/* ==========================================================================
   NOVAFIX - GUÍA DE INSTALACIÓN OFFICE 365
   Diseño Web Moderno, Responsivo y Optimizado para Impresión / PDF
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  /* NovaFix Color System */
  --bg-primary: #061122;
  --bg-secondary: #0b1a30;
  --bg-card: rgba(13, 27, 48, 0.75);
  --bg-card-hover: rgba(18, 38, 66, 0.85);
  --border-color: rgba(255, 255, 255, 0.1);
  --border-highlight: rgba(0, 255, 179, 0.3);
  
  --mint-primary: #00ffb3;
  --mint-glow: rgba(0, 255, 179, 0.35);
  --cyan-primary: #00d9ff;
  --cyan-glow: rgba(0, 217, 255, 0.35);
  --ms-blue: #0078d4;
  --ms-blue-glow: rgba(0, 120, 212, 0.4);
  
  --text-main: #ffffff;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.5);
  --shadow-neon: 0 0 25px var(--mint-glow);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables (Switch / Print Mode) */
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border-color: #e2e8f0;
  --border-highlight: #0078d4;
  
  --mint-primary: #00a876;
  --mint-glow: rgba(0, 168, 118, 0.15);
  --cyan-primary: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.15);
  --ms-blue: #0078d4;
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-neon: 0 0 15px rgba(0, 120, 212, 0.15);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color-scheme: dark;
}

body.light-theme {
  color-scheme: light;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 17, 34, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.85rem 0;
  transition: var(--transition);
}

body.light-theme header {
  background: rgba(255, 255, 255, 0.9);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.header-logo-img {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 255, 179, 0.25));
  transition: transform 0.3s ease;
}

.header-logo-img:hover {
  transform: scale(1.04);
}

.footer-logo-img {
  height: 42px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.pdf-logo-img {
  height: 50px;
  width: auto;
  max-width: 240px;
  margin: 0 auto 10px;
  display: block;
  object-fit: contain;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 179, 0.1);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--mint-primary);
  font-family: 'Space Grotesk', monospace;
}

.badge-live .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--mint-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--mint-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 179, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 255, 179, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 179, 0); }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--mint-primary), var(--cyan-primary));
  color: #061122;
  box-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 255, 179, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.theme-toggle-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--mint-primary);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mint-primary);
  background: rgba(0, 255, 179, 0.08);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 255, 179, 0.2);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--mint-primary), var(--cyan-primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.7;
}

.hero-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.feature-icon {
  color: var(--mint-primary);
  flex-shrink: 0;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-highlight);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
}

.hero-image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

/* Prerequisites Section */
.section-title-wrap {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

.section-tag {
  color: var(--cyan-primary);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.prereq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.prereq-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
}

.prereq-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-neon);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(0, 255, 179, 0.1);
  border: 1px solid rgba(0, 255, 179, 0.2);
  color: var(--mint-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.prereq-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.prereq-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tabs & System Switcher */
.platform-switcher-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.platform-tabs {
  display: inline-flex;
  background: rgba(11, 26, 48, 0.9);
  padding: 0.35rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--mint-primary), var(--cyan-primary));
  color: #061122;
  box-shadow: 0 0 20px rgba(0, 255, 179, 0.3);
}

/* Progress Tracker Bar */
.progress-bar-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 3rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.progress-counter {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.9rem;
  color: var(--mint-primary);
  font-weight: 700;
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint-primary), var(--cyan-primary));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

/* Steps Timeline */
.steps-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  break-inside: avoid;
  page-break-inside: avoid;
}

.step-card:hover {
  border-color: rgba(0, 255, 179, 0.3);
}

.step-card.completed {
  border-color: rgba(0, 255, 179, 0.4);
  background: rgba(0, 255, 179, 0.03);
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0, 255, 179, 0.1);
  border: 2px solid var(--mint-primary);
  color: var(--mint-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-card.completed .step-number {
  background: var(--mint-primary);
  color: #061122;
}

.step-title-wrap {
  flex-grow: 1;
}

.step-title-wrap h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.step-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.step-check-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.step-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--mint-primary);
  cursor: pointer;
}

.step-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.step-instructions {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.step-instructions p {
  margin-bottom: 1rem;
}

.bullet-list {
  list-style: none;
  margin-bottom: 1.25rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
  font-size: 0.98rem;
}

.bullet-list li::before {
  content: "➔";
  position: absolute;
  left: 0;
  color: var(--mint-primary);
  font-size: 0.9rem;
}

.tip-box {
  background: rgba(0, 120, 212, 0.1);
  border-left: 4px solid var(--ms-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1rem;
  font-size: 0.9rem;
  color: #93c5fd;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.tip-box.warning {
  background: rgba(245, 158, 11, 0.1);
  border-left-color: #f59e0b;
  color: #fde047;
}

.step-media {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.step-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* NovaFix Live Assistance Box */
.assistance-banner {
  background: linear-gradient(135deg, rgba(6, 17, 34, 0.95), rgba(11, 26, 48, 0.95));
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: var(--shadow-neon);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  break-inside: avoid;
  page-break-inside: avoid;
}

.assistance-text h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.assistance-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 650px;
}

/* FAQ & Troubleshooting Section */
.search-faq-wrap {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 1.1rem 1.5rem 1.1rem 3.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--mint-primary);
  box-shadow: var(--shadow-neon);
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  break-inside: avoid;
  page-break-inside: avoid;
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-toggle-icon {
  transition: transform 0.3s ease;
  color: var(--mint-primary);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem;
}

/* Floating Action Bar */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-float {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: none;
}

.btn-float-pdf {
  background: linear-gradient(135deg, var(--mint-primary), var(--cyan-primary));
  color: #061122;
}

.btn-float-whatsapp {
  background: #25d366;
  color: #ffffff;
}

/* Footer */
footer {
  background: #030914;
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .step-content-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .assistance-banner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .assistance-text p {
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .header-actions .btn-text-hide {
    display: none;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-features-list {
    grid-template-columns: 1fr;
  }
  .platform-tabs {
    width: 100%;
  }
  .tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  .floating-actions {
    bottom: 1rem;
    right: 1rem;
  }
}

/* ==========================================================================
   REGLAS EXCLUSIVAS PARA GENERACIÓN DE PDF Y MODO IMPRESIÓN
   ========================================================================== */

body.pdf-rendering {
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  font-size: 10.5pt !important;
}

body.pdf-rendering #pdfContentArea {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.pdf-rendering .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

/* Ocultar elementos interactivos/navegación durante la generación del PDF */
body.pdf-rendering header,
body.pdf-rendering .floating-actions,
body.pdf-rendering .header-actions,
body.pdf-rendering .platform-switcher-wrap,
body.pdf-rendering .search-faq-wrap,
body.pdf-rendering .theme-toggle-btn,
body.pdf-rendering .badge-live,
body.pdf-rendering .btn,
body.pdf-rendering .progress-bar-container,
body.pdf-rendering .step-check-label,
body.pdf-rendering footer {
  display: none !important;
}

/* Texto y títulos sin gradientes truncados */
body.pdf-rendering .gradient-text {
  background: none !important;
  -webkit-text-fill-color: #0078d4 !important;
  color: #0078d4 !important;
}

body.pdf-rendering .hero-subtitle {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #16a34a !important;
}

body.pdf-rendering .hero-section {
  padding: 1rem 0 !important;
}

body.pdf-rendering .hero-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
}

body.pdf-rendering .hero-title {
  color: #0f172a !important;
  font-size: 22pt !important;
  line-height: 1.2 !important;
}

body.pdf-rendering .hero-desc {
  color: #334155 !important;
  font-size: 11pt !important;
  max-width: 100% !important;
}

body.pdf-rendering .hero-features-list {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.5rem !important;
}

body.pdf-rendering .feature-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.pdf-rendering .hero-image-wrapper {
  max-width: 500px !important;
  margin: 0 auto !important;
}

body.pdf-rendering .section-title-wrap {
  margin: 1.5rem auto 1.5rem !important;
}

body.pdf-rendering .section-title {
  color: #0f172a !important;
  font-size: 18pt !important;
}

body.pdf-rendering .section-desc {
  color: #475569 !important;
}

body.pdf-rendering .prereq-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 1rem !important;
  margin-bottom: 2rem !important;
}

body.pdf-rendering .prereq-card {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: none !important;
  padding: 1.25rem !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

body.pdf-rendering .prereq-card h3,
body.pdf-rendering .step-card h3,
body.pdf-rendering .faq-question span,
body.pdf-rendering .assistance-text h3 {
  color: #0f172a !important;
}

body.pdf-rendering .prereq-card p,
body.pdf-rendering .step-instructions,
body.pdf-rendering .assistance-text p {
  color: #334155 !important;
}

body.pdf-rendering .step-card {
  background: #ffffff !important;
  border: 1px solid #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: none !important;
  margin-bottom: 1.25rem !important;
  padding: 1.25rem !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

body.pdf-rendering .step-content-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 1.25rem !important;
  align-items: center !important;
}

body.pdf-rendering .step-number {
  background: #0078d4 !important;
  color: #ffffff !important;
  border-color: #0078d4 !important;
}

body.pdf-rendering .tip-box {
  background: #f0f9ff !important;
  border-left-color: #0078d4 !important;
  color: #0369a1 !important;
}

body.pdf-rendering .tip-box.warning {
  background: #fefce8 !important;
  border-left-color: #eab308 !important;
  color: #854d0e !important;
}

body.pdf-rendering .assistance-banner {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  padding: 1.5rem !important;
  margin-bottom: 2rem !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

body.pdf-rendering .faq-item {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
  margin-bottom: 0.75rem !important;
  break-inside: avoid !important;
  page-break-inside: avoid !important;
}

body.pdf-rendering .faq-answer {
  max-height: none !important;
  padding: 0 1.5rem 1rem !important;
  color: #334155 !important;
}

body.pdf-rendering .pdf-header-watermark {
  display: block !important;
  text-align: center;
  border-bottom: 2px solid #0078d4;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

body.pdf-rendering .pdf-header-watermark h2 {
  color: #0078d4;
  font-size: 16pt;
  margin-bottom: 4px;
}

body.pdf-rendering .pdf-header-watermark p {
  color: #64748b;
  font-size: 9.5pt;
}

/* Reglas nativas @media print */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11pt;
  }

  header, .header-actions, .platform-switcher-wrap, .search-faq-wrap, 
  .floating-actions, .theme-toggle-btn, .progress-bar-container, 
  .step-check-label, .btn, footer, .badge-live {
    display: none !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .gradient-text {
    -webkit-text-fill-color: #0078d4 !important;
    color: #0078d4 !important;
  }

  .step-card, .prereq-card, .faq-item, .assistance-banner {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 1.5rem !important;
    box-shadow: none !important;
  }

  .faq-answer {
    max-height: none !important;
    padding: 0 1.5rem 1.5rem !important;
    color: #334155 !important;
  }

  .pdf-header-watermark {
    display: block !important;
    text-align: center;
    border-bottom: 2px solid #0078d4;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }
}

.pdf-header-watermark {
  display: none;
}
