/* Guías Individuales - Estilos Específicos */

/* Light Theme Overrides for Guides */
:root {
  --bg-color: #f8fafc;
  --text-color: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --surface-light: #ffffff;
  --surface-hover: #f1f5f9;
}

body {
  background-color: var(--bg-color) !important;
  color: var(--text-color) !important;
}

/* Ensure specific elements use the new variables */
.guide-main p,
.guide-main li {
  color: #334155;
  /* Slate-700 for better readability */
}

.guide-main h2,
.guide-main h3,
.guide-main h4 {
  color: #0f172a;
  /* Slate-900 */
}

/* Force white background - override Tailwind's bg-bg class */
body.bg-bg {
  background-color: #ffffff !important;
}

html {
  background-color: #ffffff !important;
}

#app {
  background-color: #ffffff !important;
}

main {
  background-color: #ffffff !important;
}

/* Force white background on all Section components in guide pages */
.guide-content,
.guide-container,
.guide-main,
.guide-sidebar,
.content-section,
section {
  background-color: #ffffff !important;
}

/* Override any dark backgrounds on divs within guides */
.guide-content div,
.guide-container div,
.guide-main div {
  background-color: transparent !important;
}

/* Specific white backgrounds for card elements */
.guide-card,
.stat-card,
.info-card,
.warning-card,
.related-card {
  background-color: #ffffff !important;
}

/* Override Tailwind background classes on sections */
section.bg-bg,
section.bg-bg-surface,
section.bg-bg-card,
.bg-bg,
.bg-bg-surface,
.bg-bg-card {
  background-color: #ffffff !important;
}

/* Container overrides */
.container {
  background-color: transparent !important;
}


/* Container overrides */
.container {
  background-color: transparent !important;
}

/* IMPORTANT: Preserve dark hero section */
.guide-hero,
section.guide-hero,
.guide-hero.bg-bg {
  background: linear-gradient(135deg, var(--brand-dark, #0f172a) 0%, var(--brand-primary, #3b82f6) 100%) !important;
}

.business-hero,
section.business-hero {
  background: linear-gradient(135deg, var(--brand-emerald, #10b981) 0%, var(--accent, #0f172a) 100%) !important;
}

/* Hero Section */
.guide-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-primary) 100%);
  color: white;
  padding: 6rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.guide-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 30%);
  background-size: 100% 100%;
  pointer-events: none;
}

.guide-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.4;
  pointer-events: none;
}

.guide-hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.guide-breadcrumb {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.guide-breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.guide-breadcrumb a:hover {
  color: white;
  border-bottom-color: white;
}

.guide-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #e2e8f0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.guide-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f1f5f9;
}

.guide-meta {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.guide-meta span {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.guide-meta span:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Layout Principal */
.guide-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Sidebar */
.guide-sidebar {
  position: sticky;
  top: 6rem;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.guide-toc {
  background: #ffffff;
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.guide-toc h3 {
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guide-toc li {
  margin: 0;
}

.guide-toc a {
  color: var(--text-secondary) !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border-left: none;
}

.guide-toc a:hover {
  color: var(--brand-primary) !important;
  background: var(--brand-surface);
  transform: translateX(4px);
}

/* Typography & Content */
.guide-main {
  min-width: 0;
}

.guide-section {
  margin-bottom: 4rem;
  scroll-margin-top: 6rem;
}

.guide-main h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin: 0 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
}

.guide-main h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 1.25rem 0;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.guide-main h4 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2rem 0 1rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-main p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* Cards & Grids */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guide-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-light);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border-color: var(--brand-primary);
}

.guide-card h4 {
  margin-top: 0;
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Highlight Boxes */
.guide-highlight {
  background: linear-gradient(to right, var(--brand-surface), #ffffff);
  border: 1px solid var(--brand-primary-light);
  border-left: 4px solid var(--brand-primary);
  border-radius: 12px;
  padding: 2rem;
  margin: 2.5rem 0;
}

.guide-highlight h4 {
  color: var(--brand-primary-dark);
  margin-top: 0;
}

/* Tables */
.guide-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.95rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.guide-table th {
  background: #f8fafc;
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-light);
}

.guide-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  vertical-align: top;
}

.guide-table tr:last-child td {
  border-bottom: none;
}

.guide-table tr:hover td {
  background: #f8fafc;
}

/* Responsive */
@media (max-width: 1024px) {
  .guide-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .guide-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .guide-hero {
    padding: 4rem 0 3rem;
  }

  .guide-container {
    padding: 2rem 1rem;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }
}



.type-content strong {
  color: #0f172a;
  font-weight: 600;
}

.type-example {
  background: #f0fdf4;
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--brand-emerald);
  font-size: 0.9rem;
  color: #065f46;
  margin-top: 1rem;
}

.type-example strong {
  color: #047857;
  display: block;
  margin-bottom: 0.25rem;
}

/* Pasos y Procedimientos */
.step {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface-light);
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.step:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.step-number {
  background: linear-gradient(135deg, var(--brand-emerald), var(--accent));
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.step-content h4 {
  color: #000000;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Tablas */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
}

.guide-table th,
.guide-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #d1d5db;
  color: #1f2937;
}

.guide-table th {
  background: #f8fafc;
  font-weight: 700;
  color: #111827;
  position: relative;
  border-bottom: 2px solid #10b981;
}

.guide-table th::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent));
}

.guide-table tbody tr:hover {
  background: rgba(16, 185, 129, 0.08);
}

.guide-table tbody tr:nth-child(even) {
  background: #f9fafb;
}

.guide-table tbody tr:nth-child(even):hover {
  background: rgba(16, 185, 129, 0.12);
}

/* Identification Guide */
.identification-guide {
  margin: 2rem 0;
}

.check-category {
  margin-bottom: 2rem;
}

.check-category h3 {
  color: #111827;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.check-items {
  display: grid;
  gap: 1rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
}

.check-item:hover {
  border-color: var(--brand-emerald);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.check-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.check-text {
  color: #1f2937;
  line-height: 1.6;
}

.check-text strong {
  color: #111827;
  font-weight: 700;
}

/* Elementos Específicos */
.example-box {
  background: var(--surface-light);
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.9rem;
  border-left: 3px solid var(--brand-emerald);
  position: relative;
}

.example-box::before {
  content: '📝';
  position: absolute;
  top: -8px;
  left: -8px;
  background: var(--brand-emerald);
  padding: 0.25rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.strategy-card {
  background: var(--surface-light);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--brand-emerald);
  transition: all 0.3s ease;
}

.strategy-card:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Plantillas */
.template-section {
  background: linear-gradient(135deg, var(--surface-light) 0%, var(--brand-emerald-light) 100%);
  padding: 2rem;
  border-radius: 12px;
  margin: 2rem 0;
  border: 1px solid var(--brand-emerald);
  position: relative;
}

.template-section::before {
  content: '📋';
  position: absolute;
  top: -15px;
  left: 30px;
  background: var(--brand-emerald);
  padding: 0.5rem;
  border-radius: 8px;
  font-size: 1.2rem;
}

.template-features ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.template-features li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.template-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-emerald);
  font-weight: bold;
}

.template-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Guías Relacionadas */
.related-guides {
  background: var(--surface-light);
  padding: 3rem 0;
  margin-top: 4rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.related-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-link {
  color: var(--brand-emerald);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.related-link:hover {
  text-decoration: underline;
  color: var(--accent);
}

/* Elementos Interactivos */
.cycle-diagram {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.cycle-step {
  display: flex;
  align-items: center;
  background: var(--surface-light);
  padding: 1rem;
  border-radius: 8px;
  flex: 1;
  min-width: 200px;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.cycle-step:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cycle-icon {
  font-size: 1.5rem;
  margin-right: 1rem;
}

.cycle-text h5 {
  margin: 0;
  color: #000000;
  font-weight: 700;
}

.cycle-text p {
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 500;
}

.cycle-arrow {
  font-size: 1.5rem;
  color: #334155;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* ========== RESPONSIVE DESIGN - OPTIMIZADO ========== */

/* Tablet - 1024px */
@media (max-width: 1024px) {
  .guide-container {
    grid-template-columns: 240px 1fr;
    gap: 2rem;
  }

  .guide-hero h1 {
    font-size: clamp(2rem, 4vw, 2.5rem);
  }

  .guide-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* Mobile - 768px */
@media (max-width: 768px) {
  .guide-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .guide-sidebar {
    position: static;
    order: 2;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(16, 185, 129, 0.2);
  }

  .guide-main {
    order: 1;
  }

  /* Hero Section Mobile */
  .guide-hero {
    padding: 2.5rem 1rem;
  }

  .guide-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .guide-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .guide-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .meta-item {
    font-size: 0.9rem;
  }

  /* Typography Mobile */
  .guide-container h2,
  .guide-main h2 {
    font-size: clamp(1.5rem, 4vw, 1.875rem);
    margin: 2.5rem 0 1.25rem 0;
    padding-bottom: 0.625rem;
  }

  .guide-container h3,
  .guide-main h3 {
    font-size: clamp(1.25rem, 3.5vw, 1.5rem);
    margin: 2rem 0 1rem 0;
  }

  .guide-container h4,
  .guide-main h4 {
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin: 1.5rem 0 0.75rem 0;
  }

  .guide-container h5,
  .guide-main h5 {
    font-size: clamp(1rem, 2.5vw, 1.125rem);
    margin: 1.25rem 0 0.625rem 0;
  }

  .guide-container p,
  .guide-main p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }

  /* Grids Mobile */
  .guide-grid,
  .checklist-grid,
  .tools-grid,
  .maturity-levels,
  .kpis-grid,
  .security-benefits,
  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Cards Mobile */
  .guide-card,
  .type-card,
  .tool-card,
  .benefit-item,
  .related-card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  /* Steps Mobile */
  .step {
    flex-direction: column;
    text-align: left;
    padding: 1.5rem;
    gap: 1rem;
  }

  .step-number {
    align-self: flex-start;
    margin-bottom: 0.5rem;
  }

  .step-content {
    text-align: left;
  }

  /* Tables Mobile */
  .guide-table {
    font-size: 0.9rem;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .guide-table th,
  .guide-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  /* Actions Mobile */
  .template-actions,
  .final-cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .template-actions button,
  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }

  /* Diagrams Mobile */
  .cycle-diagram {
    flex-direction: column;
    align-items: stretch;
  }

  .cycle-arrow {
    transform: rotate(90deg);
    margin: 1rem 0;
    width: 40px;
    align-self: center;
  }

  /* TOC Mobile - Collapsible */
  .table-of-contents {
    max-height: none;
    position: relative;
  }

  .table-of-contents h3 {
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .table-of-contents h3::after {
    content: '▼';
    font-size: 0.8rem;
    transition: transform 0.3s ease;
  }

  .table-of-contents.collapsed ul {
    display: none;
  }

  .table-of-contents.collapsed h3::after {
    transform: rotate(-90deg);
  }
}

/* Small Mobile - 480px */
@media (max-width: 480px) {
  .guide-hero {
    padding: 2rem 0.75rem;
  }

  .guide-hero h1 {
    font-size: clamp(1.5rem, 6vw, 2rem);
    line-height: 1.15;
  }

  .guide-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .guide-container {
    padding: 0 0.75rem;
  }

  .guide-section {
    padding: 1.5rem 0;
  }

  .guide-section h2 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem 0;
  }

  .guide-section h3 {
    font-size: 1.2rem;
  }

  .guide-section h4 {
    font-size: 1.05rem;
  }

  /* Cards Extra Small */
  .guide-card,
  .type-card,
  .tool-card {
    padding: 1.25rem;
    border-radius: 12px;
  }

  /* Buttons Mobile Small */
  .cta-primary,
  .cta-secondary {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
    min-height: 48px;
  }

  /* Icons Smaller */
  .heading-icon,
  .inline-icon {
    width: 18px;
    height: 18px;
  }

  h2 .heading-icon,
  h2 .inline-icon {
    width: 20px;
    height: 20px;
  }

  /* Lists Mobile */
  .guide-container ul,
  .guide-main ul,
  .guide-container ol,
  .guide-main ol {
    padding-left: 1.25rem;
    margin: 1rem 0;
  }

  .guide-container li,
  .guide-main li {
    margin-bottom: 0.625rem;
    font-size: 0.95rem;
  }

  /* Spacing Adjustments */
  .guide-highlight,
  .info-box,
  .warning-box {
    padding: 1rem;
    margin: 1.25rem 0;
    border-radius: 10px;
  }

  /* Type Cards Specific */
  .type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .type-content h4 {
    font-size: 1.1rem;
  }

  .type-content p {
    font-size: 0.9rem;
  }
}

/* Extra Small Mobile - 360px */
@media (max-width: 360px) {
  .guide-hero h1 {
    font-size: 1.35rem;
  }

  .guide-container h2 {
    font-size: 1.25rem;
  }

  .guide-container h3 {
    font-size: 1.1rem;
  }

  .guide-card,
  .type-card {
    padding: 1rem;
  }

  .cta-primary,
  .cta-secondary {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
}

/* Estilos específicos para títulos dentro de secciones de guía */
.guide-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
  font-weight: 700 !important;
  color: #111827 !important;
  line-height: 1.3 !important;
  margin: 2rem 0 1rem 0 !important;
  letter-spacing: -0.01em !important;
  border-bottom: 2px solid var(--brand-emerald) !important;
  padding-bottom: 0.5rem !important;
}

.guide-section h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
  font-weight: 700 !important;
  color: #1f2937 !important;
  line-height: 1.4 !important;
  margin: 1.5rem 0 0.75rem 0 !important;
  letter-spacing: -0.005em !important;
}

.guide-section h4 {
  font-size: clamp(1.1rem, 2vw, 1.25rem) !important;
  font-weight: 700 !important;
  color: #374151 !important;
  line-height: 1.4 !important;
  margin: 1rem 0 0.5rem 0 !important;
}

.guide-section h5 {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
  line-height: 1.4 !important;
  margin: 0.75rem 0 0.5rem 0 !important;
}

.guide-section h6 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
  margin: 0.5rem 0 0.25rem 0 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .guide-grid {
    grid-template-columns: 1fr;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .guide-toc {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }

  .guide-toc a {
    color: #e5e7eb;
  }

  .guide-toc a:hover {
    color: #f9fafb;
  }

  .guide-card,
  .step,
  .strategy-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }

  /* Tablas mantienen fondo claro para mejor legibilidad */
  .guide-table {
    background: #ffffff;
    border-color: #e5e7eb;
  }

  .guide-table th {
    background: #f8fafc;
    color: #111827;
    border-bottom-color: #10b981;
  }

  .guide-table th,
  .guide-table td {
    border-bottom-color: #d1d5db;
    color: #1f2937;
  }

  .guide-table tbody tr:nth-child(even) {
    background: #f9fafb;
  }

  .guide-table tbody tr:hover {
    background: rgba(16, 185, 129, 0.08);
  }

  .guide-table tbody tr:nth-child(even):hover {
    background: rgba(16, 185, 129, 0.12);
  }

  .related-card {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }

  .example-box {
    background: var(--surface-dark);
  }

  .cycle-step {
    background: var(--surface-dark);
    border-color: var(--border-dark);
  }
}

/* Print Styles */
@media print {
  .guide-sidebar {
    display: none;
  }

  .guide-container {
    grid-template-columns: 1fr;
  }

  .guide-hero {
    background: none !important;
    color: black !important;
  }

  .related-guides {
    display: none;
  }

  .template-actions {
    display: none;
  }

  .guide-actions {
    display: none;
  }
}

/* Fondo oscuro suave para toda la página de guías, acorde a la web */
body {
  background-color: white;
}

/* ===== Auditoría de Seguridad - estilos reutilizables de guías ===== */
.checklist {
  list-style: none;
  padding: 0;
  color: #0f172a;
}

.checklist li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  color: #0f172a !important;
}

.checklist li:last-child {
  border-bottom: none;
}

/* Estilos específicos para checklist-item */
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.checklist-item:last-child {
  border-bottom: none;
}

.checklist-item span {
  color: #1e293b;
  font-weight: 500;
  line-height: 1.6;
  font-size: 1rem;
}

/* Refuerzo de contraste para checklist genérico */
.checklist-item,
label.checklist-item {
  color: #0f172a !important;
  font-weight: 600;
}

.checklist-item svg,
.checklist-item path {
  color: #0f172a !important;
  fill: #0f172a !important;
  stroke: #0f172a !important;
  opacity: 0.9;
}

/* Variantes usadas en guías de usuarios (final checklist) */
.final-checklist,
.final-checklist .checklist-section h4,
.final-checklist .checklist-items,
.final-checklist .checklist-item {
  color: #0f172a !important;
}

/* Asegurar contraste si checklist aparece dentro de CTA u otras secciones con texto claro */
.final-cta .checklist,
.final-cta .final-checklist,
.final-cta .checklist-section h4,
.final-cta .checklist-items,
.final-cta .checklist-item {
  color: #0f172a !important;
}

.followup-checklist .checklist-item {
  background: rgba(var(--brand-emerald-rgb), 0.05);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(var(--brand-emerald-rgb), 0.15);
}

.followup-checklist .checklist-item span {
  color: #0f172a;
  font-weight: 600;
}

/* ========== CTA FINAL - DISEÑO PROFESIONAL Y ELEGANTE ========== */
.final-cta-section {
  margin: 5rem 0 3rem 0;
  padding: 0;
}

.final-cta {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: linear-gradient(to bottom, #fafafa, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  position: relative;
  text-align: center;
}

/* Acento superior elegante */
.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-emerald), #059669);
  border-radius: 16px 16px 0 0;
}

.final-cta h3 {
  font-size: 1.75rem;
  margin: 0 0 1rem 0;
  color: #111827;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.final-cta>p {
  font-size: 1.05rem;
  margin: 0 0 2rem 0;
  color: #6b7280;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.security-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.benefit-item:hover {
  border-color: var(--brand-emerald);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.08);
}

.benefit-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-emerald);
}

.benefit-text {
  text-align: center;
}

.benefit-text strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #111827;
}

.benefit-text span {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.4;
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.cta-primary,
.cta-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid transparent;
}

.cta-primary {
  background: var(--brand-emerald);
  color: white;
  border-color: var(--brand-emerald);
}

.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.cta-secondary {
  background: #ffffff;
  color: #374151;
  border-color: #d1d5db;
}

.cta-secondary:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cta-guarantee {
  display: none;
  /* Eliminado para diseño minimalista */
}

/* Estilos para iconos y elementos de configuración */
.config-categories {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.config-category {
  background: var(--surface-light);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
}

.category-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--brand-emerald);
}

.category-header svg {
  color: var(--brand-emerald);
  flex-shrink: 0;
}

.category-header h3 {
  color: #0f172a;
  font-weight: 700;
  margin: 0;
}

.config-steps {
  display: grid;
  gap: 1rem;
}

.config-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(var(--brand-emerald-rgb), 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--brand-emerald);
}

.step-number {
  background: var(--brand-emerald);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.config-step h4 {
  color: #0f172a;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 1rem;
}

.config-step p {
  color: #1e293b;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Métodos de bloqueo */
.lock-methods {
  display: grid;
  gap: 1rem;
}

.lock-method {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid transparent;
}

.lock-method.recommended {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
}

.lock-method.recommended svg {
  color: #10b981;
}

.lock-method.good {
  background: rgba(59, 130, 246, 0.1);
  border-color: #3b82f6;
}

.lock-method.good svg {
  color: #3b82f6;
}

.lock-method.avoid {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.lock-method.avoid svg {
  color: #ef4444;
}

.lock-method h4 {
  color: #0f172a;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 0.95rem;
}

.lock-method p {
  color: #1e293b;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Configuraciones de ubicación */
.location-settings {
  display: grid;
  gap: 0.75rem;
}

.setting-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.setting-item.essential {
  background: rgba(16, 185, 129, 0.08);
  border-left-color: #10b981;
}

.setting-item.essential svg {
  color: #10b981;
}

.setting-item.important {
  background: rgba(245, 158, 11, 0.08);
  border-left-color: #f59e0b;
}

.setting-item.important svg {
  color: #f59e0b;
}

.setting-item.optional {
  background: rgba(107, 114, 128, 0.08);
  border-left-color: #6b7280;
}

.setting-item.optional svg {
  color: #374151;
}

.setting-item h4 {
  color: #0f172a;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  font-size: 0.9rem;
}

.setting-item p {
  color: #1e293b;
  margin: 0;
  font-size: 0.825rem;
  line-height: 1.4;
}

/* Asegurar que todos los iconos SVG tengan buen contraste */
.guide-container svg,
.guide-main svg {
  color: inherit;
}

/* Iconos en secciones específicas */
.category-header svg,
.config-step svg,
.lock-method svg,
.setting-item svg {
  flex-shrink: 0;
}

.cta-guarantee strong {
  color: white;
  font-weight: 700;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.tool-card {
  padding: 1.5rem;
  background: var(--surface-light);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}

.tool-card h5 {
  margin: 0 0 0.5rem 0;
  color: var(--brand-emerald);
}

.tool-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

/* Tabla de riesgos por criticidad */
.risk-table .risk-critical {
  background-color: rgba(220, 53, 69, 0.10);
}

.risk-table .risk-high {
  background-color: rgba(253, 126, 20, 0.10);
}

.risk-table .risk-medium {
  background-color: rgba(255, 193, 7, 0.10);
}

.risk-table .risk-low {
  background-color: rgba(40, 167, 69, 0.10);
}

.maturity-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.maturity-level {
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
}

.level-1 {
  background: linear-gradient(135deg, #dc3545, #e74c3c);
  color: white;
}

.level-2 {
  background: linear-gradient(135deg, #fd7e14, #f39c12);
  color: white;
}

.level-3 {
  background: linear-gradient(135deg, #ffc107, #f1c40f);
  color: #000;
}

.level-4 {
  background: linear-gradient(135deg, #20c997, #1abc9c);
  color: white;
}

.level-5 {
  background: linear-gradient(135deg, #198754, #27ae60);
  color: white;
}

.maturity-level h5 {
  margin: 0 0 1rem 0;
  font-size: 1.1rem;
}

.maturity-level ul {
  text-align: left;
  margin: 0;
  padding-left: 1.2rem;
}

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

.kpi-card {
  padding: 1.5rem;
  background: var(--surface-light);
  border-radius: 8px;
  border-top: 4px solid var(--brand-emerald);
}

.kpi-card h5 {
  margin: 0 0 1rem 0;
  color: var(--brand-emerald);
}

.kpi-card ul {
  margin: 0;
  padding-left: 1.2rem;
}

.kpi-card li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {

  .checklist-grid,
  .tools-grid,
  .maturity-levels,
  .kpis-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
  }

  .step-number {
    align-self: center;
  }

  .step-content {
    text-align: center;
  }

  .guide-meta {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .guide-container {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .guide-sidebar {
    position: static;
  }

  .benefit-item {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ========================================
   ESTILOS DE GUÍAS CONSOLIDADOS
   ======================================== */

/* Guides Grid - Consolidado desde resources.css */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.guide-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.guide-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.guide-card:hover::before {
  transform: scaleX(1);
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.guide-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.guide-icon {
  padding: 0.75rem;
  background: var(--surface-secondary);
  border-radius: var(--radius-md);
  color: var(--brand-emerald);
  transition: all 0.3s ease;
}

.guide-card:hover .guide-icon {
  background: var(--brand-emerald);
  color: white;
  transform: scale(1.1);
}

.guide-meta {
  text-align: right;
}

.guide-category {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.guide-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.guide-duration {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.guide-difficulty {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
}

.difficulty-básico,
.difficulty-basic {
  background: var(--success-bg);
  color: var(--success);
}

.difficulty-intermedio,
.difficulty-intermediate {
  background: var(--warning-bg);
  color: var(--warning);
}

.difficulty-avanzado,
.difficulty-advanced {
  background: var(--error-bg);
  color: var(--error);
}

.guide-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  transition: color 0.3s ease;
}

.guide-card:hover h3 {
  color: var(--brand-emerald);
}

.guide-description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.guide-topics {
  flex: 1;
  margin-bottom: 1.5rem;
}

.guide-topics h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.guide-topics ul {
  list-style: none;
  padding: 0;
}

.guide-topics li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

.guide-topics li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-emerald);
  font-weight: 600;
}

.guide-card:hover .guide-topics li {
  color: var(--text-primary);
}

.guide-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
}

.business-guide {
  border-left: 4px solid var(--brand-emerald);
}

.user-guide {
  border-left: 4px solid var(--accent);
}

/* Incident Checklist - Consolidado desde incident-detail.css */
.incident-checklist {
  margin-bottom: var(--incident-spacing, 2rem);
}

.incident-checklist h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color, var(--text-primary));
  margin: 0 0 1.5rem 0;
}

.checklist-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
}

.checklist-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary, var(--brand-emerald));
}

.checklist-label {
  flex: 1;
  font-weight: 500;
  color: var(--text-color, var(--text-primary));
  cursor: pointer;
}

/* ==========================================================================
   INTRODUCTION STATISTICS - Estadísticas de introducción
   ========================================================================== */

.intro-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.intro-stats .stat {
  text-align: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.8);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(124, 247, 212, 0.2);
  transition: all 0.3s ease;
}

.intro-stats .stat:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 247, 212, 0.4);
  box-shadow: 0 8px 25px rgba(124, 247, 212, 0.15);
}

.intro-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

/* ==========================================================================
   DARK TEXT AND ICONS - Texto e iconos oscuros
   ========================================================================== */

/* Oscurecer texto general */
.guide-main p,
.guide-main li,
.section-intro,
.phase-content p,
.verification-checklist p,
.app-sources p,
.guide-content p,
.guide-section p,
.content-section p,
.config-category p,
.config-step p,
.lock-method p,
.setting-item p,
.tool-card p,
.method-content p,
.pros-cons p,
.best-practices-grid p,
.practice-card p,
.common-mistakes p,
.mistake-item p,
.tools-grid p,
.tool-item p {
  color: #0f172a !important;
  font-weight: 500;
}

/* Oscurecer encabezados de fase y categoría */
.phase-header,
.phase-header h3,
.app-security-guide h3,
.security-phase h3,
.guide-content h3,
.guide-section h3,
.content-section h3,
.config-category h3,
.config-step h3,
.lock-method h3,
.setting-item h3,
.tool-card h3,
.method-content h3,
.pros-cons h3,
.best-practices-grid h3,
.practice-card h3,
.common-mistakes h3,
.mistake-item h3,
.tools-grid h3,
.tool-item h3,
.guide-content h4,
.guide-section h4,
.content-section h4,
.config-category h4,
.config-step h4,
.lock-method h4,
.setting-item h4,
.tool-card h4,
.method-content h4,
.pros-cons h4,
.best-practices-grid h4,
.practice-card h4,
.common-mistakes h4,
.mistake-item h4,
.tools-grid h4,
.tool-item h4 {
  color: #0f172a !important;
  font-weight: 700;
}

/* Oscurecer iconos */
.phase-header svg,
.source-item svg,
.verification-checklist svg,
.app-security-guide svg,
.security-phase svg,
.guide-content svg,
.guide-section svg,
.content-section svg,
.config-category svg,
.config-step svg,
.lock-method svg,
.setting-item svg,
.tool-card svg,
.method-content svg,
.pros-cons svg,
.best-practices-grid svg,
.practice-card svg,
.common-mistakes svg,
.mistake-item svg,
.tools-grid svg,
.tool-item svg {
  color: #0f172a !important;
  opacity: 0.8;
}

/* Oscurecer elementos de fuente de aplicaciones */
.source-item h4,
.source-item p {
  color: #0f172a !important;
  font-weight: 600;
}

.source-item.recommended h4 {
  color: #059669 !important;
}

.source-item.caution h4 {
  color: #d97706 !important;
}

.source-item.avoid h4 {
  color: #dc2626 !important;
}

/* Oscurecer elementos de verificación */
.verification-checklist .checklist-item,
.verification-checklist .checklist-item p {
  color: #0f172a !important;
  font-weight: 500;
}

/* Oscurecer todos los iconos SVG en la guía */
.guide-main svg,
.content-section svg,
.config-category svg,
.config-step svg,
.lock-method svg,
.setting-item svg,
.tool-card svg {
  color: #0f172a !important;
  opacity: 0.9;
}

/* Oscurecer texto en elementos específicos */
.tool-card h5,
.tool-card p,
.setting-item h4,
.setting-item p {
  color: #0f172a !important;
  font-weight: 500;
}

/* Oscurecer enlaces y elementos interactivos */
.guide-main a,
.content-section a,
.guide-content a,
.guide-section a {
  color: #0f172a !important;
  font-weight: 600;
}

/* Oscurecer elementos de lista */
.guide-main ul li,
.guide-main ol li,
.guide-content ul li,
.guide-content ol li,
.guide-section ul li,
.guide-section ol li,
.content-section ul li,
.content-section ol li {
  color: #0f172a !important;
  font-weight: 500;
}

/* Oscurecer instrucciones de plataforma específicas */
.platform-instructions,
.platform-instructions .platform,
.platform-instructions .platform h4,
.instruction-steps,
.instruction-steps span {
  color: #0f172a !important;
  font-weight: 600;
}

.platform-instructions .platform h4 {
  color: #059669 !important;
  font-weight: 700;
}

.instruction-steps span {
  display: block;
  margin: 0.25rem 0;
  padding: 0.5rem;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 4px;
  border-left: 3px solid #059669;
}

/* Oscurecer contenido de pasos */
.step-content,
.step-content p,
.step-content span {
  color: #0f172a !important;
  font-weight: 500;
}

/* Oscurecer estadísticas */
.intro-stats .stat-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a !important;
  opacity: 0.9;
  line-height: 1.4;
}

.intro-stats .stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 0.5rem;
  line-height: 1;
}

/* Oscurecer elementos específicos de contraseñas seguras */
.password-criteria,
.criteria-item,
.criteria-content,
.password-strength-examples,
.strength-examples,
.example-item,
.example-password,
.example-strength,
.strength-text,
.crack-time,
.stats-grid,
.stat-card,
.highlight-box,
.highlight-box h4,
.highlight-box p,
.password-examples,
.password-example,
.password-text,
.strength-bar,
.strength-fill,
.strength-label,
.table-of-contents,
.table-of-contents h3,
.table-of-contents a,
.quick-actions,
.quick-actions h3,
.action-btn,
.action-btn span,
.sidebar-content {
  color: #0f172a !important;
}

/* Oscurecer elementos de phishing */
.phishing-demo,
.email-example,
.email-header,
.sender,
.warning-badge,
.safe-badge,
.email-subject,
.red-flags,
.green-flags,
.flag,
.phishing-process,
.process-steps,
.process-step,
.step-content,
.impact-stats,
.stat-item,
.phishing-types,
.type-card,
.type-icon,
.type-content,
.type-example,
.hero-visual,
.checklist-section,
.checklist-items,
.warning-box,
.info-box,
.success-box,
.danger-box {
  color: #0f172a !important;
}

/* Oscurecer elementos de auditoría de empresas */
.intro-highlight,
.intro-highlight p,
.intro-highlight strong,
.cta-box,
.cta-box h4,
.cta-box p,
.cta-buttons,
.main-cta-btn,
.secondary-cta-btn,
.audit-benefits,
.audit-benefits h4,
.planning-process,
.planning-process h4,
.audit-types,
.strategy-card,
.strategy-card h4,
.strategy-card p,
.strategy-card ul,
.strategy-card li,
.step,
.step-content,
.step-number,
.print-btn,
.print-btn,
.btn-icon,
.heading-icon {
  color: #0f172a !important;
}

/* Oscurecer elementos de criterios y estadísticas */
.criteria-icon,
.stat-number,
.stat-label {
  color: #0f172a !important;
}

/* Oscurecer elementos de ejemplos de contraseñas */
.example-item.weak .example-password,
.example-item.weak .strength-text,
.example-item.medium .example-password,
.example-item.medium .strength-text,
.example-item.strong .example-password,
.example-item.strong .strength-text {
  color: #0f172a !important;
}

/* Oscurecer elementos de tipos de phishing */
.type-card h4,
.type-content p,
.type-example,
.process-step h4,
.process-step p,
.step-content h4,
.step-content p,
.impact-stats .stat-number,
.impact-stats .stat-label {
  color: #0f172a !important;
  font-weight: 600;
}

/* Oscurecer enlaces del sidebar */
.table-of-contents a,
.action-btn {
  color: #059669 !important;
  font-weight: 600;
}

.table-of-contents a:hover,
.action-btn:hover {
  color: #047857 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .intro-stats .stat {
    padding: 1.25rem;
  }

  .intro-stats .stat-number {
    font-size: 2rem;
  }
}

/* ========== GUÍAS RELACIONADAS ========== */

/* Guías Relacionadas Section */
.related-guides {
  margin: 3rem 0 2rem 0;
  padding: 0;
}

.related-guides h2 {
  color: #0f172a;
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 2rem 0;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--brand-emerald);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.related-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.75rem;
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-emerald), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.15);
  border-color: var(--brand-emerald);
}

.related-card:hover::before {
  transform: scaleX(1);
}

.related-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-emerald);
  transition: all 0.3s ease;
}

.related-card:hover .related-icon {
  background: linear-gradient(135deg, var(--brand-emerald), #059669);
  color: white;
  transform: scale(1.1) rotate(5deg);
}

.related-content {
  flex: 1;
}

.related-content h4 {
  color: #111827;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.related-card:hover .related-content h4 {
  color: var(--brand-emerald);
}

.related-content p {
  color: #6b7280;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.5;
}

.related-arrow {
  flex-shrink: 0;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.related-card:hover .related-arrow {
  color: var(--brand-emerald);
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
  .final-cta {
    padding: 2rem 1.5rem;
  }

  .final-cta h3 {
    font-size: 1.4rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .final-cta>p {
    font-size: 0.95rem;
  }

  .security-benefits {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .related-card {
    padding: 1.25rem;
  }

  .related-icon {
    width: 48px;
    height: 48px;
  }

  .related-content h4 {
    font-size: 1.05rem;
  }

  .related-content p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .final-cta {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .final-cta h3 {
    font-size: 1.25rem;
  }

  .benefit-item {
    padding: 1.25rem;
  }

  .benefit-text {
    text-align: center;
  }

  .cta-guarantee {
    padding: 1rem;
    font-size: 0.9rem;
  }
}

/* Password Guide Specific Styles */
.password-strength-demo {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.password-example {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
}

.password-text {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  min-width: 200px;
}

.strength-bar {
  width: 100px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
}

.strength-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.strength-fill.weak {
  width: 25%;
  background: #ef4444;
}

.strength-fill.strong {
  width: 100%;
  background: #10b981;
}

.strength-label {
  font-size: 0.875rem;
  font-weight: 600;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary-color, #0f172a);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
}

.password-criteria {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.criteria-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.criteria-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary, #0f172a);
}

.criteria-content p {
  margin: 0;
  color: var(--text-muted, #64748b);
}

.password-strength-examples {
  margin: 2rem 0;
}

.strength-examples {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.example-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--card-bg, #ffffff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.example-password {
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.example-strength {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.example-strength .strength-bar {
  width: 80px;
  height: 6px;
}

.example-strength .fill.weak {
  width: 20%;
  background: #ef4444;
}

.example-strength .fill.medium {
  width: 60%;
  background: #f59e0b;
}

.example-strength .fill.strong {
  width: 100%;
  background: #10b981;
}

.crack-time {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  text-align: right;
}

.method-tabs {
  margin: 2rem 0;
}

.tab-buttons {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted, #64748b);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: var(--primary-color, #0f172a);
  border-bottom-color: var(--primary-color, #0f172a);
}

.tab-content {
  display: none;
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.tab-content.active {
  display: block;
}

.method-steps {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.step {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--primary-color, #0f172a);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.substitution-table {
  margin: 1rem 0;
}

.sub-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.letter {
  padding: 0.5rem 1rem;
  background: var(--primary-color, #0f172a);
  color: white;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-weight: bold;
}

.pattern-example {
  padding: 1.5rem;
  background: rgba(var(--primary-rgb, 15, 23, 42), 0.1);
  border-radius: 8px;
  border-left: 4px solid var(--primary-color, #0f172a);
  margin: 1rem 0;
}

.password-managers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.manager-card {
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

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

.manager-header h4 {
  margin: 0;
  color: var(--text-primary, #0f172a);
}

.price {
  color: var(--primary-color, #0f172a);
  font-weight: bold;
}

.manager-features {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
}

.setup-guide {
  margin: 2rem 0;
}

.setup-steps {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--primary-color, #0f172a);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary, #0f172a);
}

.step-content p {
  margin: 0;
  color: var(--text-muted, #64748b);
}

.auth-methods {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.auth-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.auth-method.warning {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.method-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.method-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary, #0f172a);
}

.method-content p {
  margin: 0 0 1rem 0;
  color: var(--text-muted, #64748b);
}

.pros-cons {
  font-size: 0.875rem;
}

.pros {
  color: #10b981;
}

.cons {
  color: #ef4444;
}

.best-practices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.practice-card {
  padding: 1.5rem;
  background: var(--card-bg, #ffffff);
  border-radius: 12px;
  border: 1px solid var(--border-color, #e2e8f0);
  text-align: center;
}

.practice-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.practice-card h4 {
  margin: 0 0 1rem 0;
  color: var(--text-primary, #0f172a);
}

.practice-card p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.875rem;
}

.common-mistakes {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
}

.mistake-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 4px solid #ef4444;
}

.mistake-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.mistake-content h4 {
  margin: 0 0 0.5rem 0;
  color: var(--text-primary, #0f172a);
}

.mistake-content p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.875rem;
}

.tools-grid {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

.tool-category h3 {
  margin: 0 0 1rem 0;
  color: var(--text-primary, #0f172a);
}

.tool-list {
  display: grid;
  gap: 1rem;
}

.tool-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--card-bg, #ffffff);
  border-radius: 8px;
  border: 1px solid var(--border-color, #e2e8f0);
}

.tool-item h4 {
  margin: 0 0 0.25rem 0;
  color: var(--text-primary, #0f172a);
}

.tool-item p {
  margin: 0;
  color: var(--text-muted, #64748b);
  font-size: 0.875rem;
}

.tool-link {
  color: var(--primary-color, #0f172a);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.tool-link:hover {
  color: var(--primary-dark, #1e293b);
}

@media (max-width: 768px) {
  .password-strength-demo {
    padding: 1rem;
  }

  .password-example {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .password-text {
    min-width: auto;
    word-break: break-all;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .example-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tab-buttons {
    flex-direction: column;
  }

  .password-managers {
    grid-template-columns: 1fr;
  }

  .best-practices-grid {
    grid-template-columns: 1fr;
  }

  .tool-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .security-benefits {
    grid-template-columns: 1fr;
  }

  .final-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-primary,
  .cta-secondary {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
}

/* Estilos para CTA final */
.final-cta-section {
  margin: 3rem 0;
}

.final-cta {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border: 2px solid var(--primary-color, #0f172a);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.final-cta h3 {
  color: var(--primary-color, #0f172a);
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
}

.final-cta>p {
  font-size: 1.1rem;
  margin: 0 0 2rem 0;
  color: var(--text-color, #334155);
}

.security-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: white;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefit-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.benefit-text strong {
  display: block;
  color: var(--primary-color, #0f172a);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.benefit-text span {
  color: var(--text-muted, #64748b);
  font-size: 0.9rem;
}

.final-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.cta-primary,
.cta-secondary {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.cta-primary {
  background: var(--primary-color, #0f172a);
  color: white;
}

.cta-primary:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--primary-color, #0f172a);
  border-color: var(--primary-color, #0f172a);
}

.cta-secondary:hover {
  background: var(--primary-color, #0f172a);
  color: white;
  transform: translateY(-2px);
}

.cta-guarantee {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.cta-guarantee p {
  margin: 0;
  color: #059669;
  font-size: 0.9rem;
}