    .icon {
      display: inline-block;
      width: 24px;
      height: 24px;
      background-size: contain;
      background-repeat: no-repeat;
      background-position: center;
    }
    
    .icon-brain { 
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2'%3E%3Cpath d='M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z'/%3E%3Cpath d='M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z'/%3E%3C/svg%3E");
    }
    
    .icon-upload {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2360a5fa' stroke-width='2'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' y1='3' x2='12' y2='15'/%3E%3C/svg%3E");
    }
    
    .icon-zap {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2'%3E%3Cpolygon points='13 2 3 14 12 14 11 22 21 10 12 10 13 2'/%3E%3C/svg%3E");
    }
    
    .icon-check {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
    }
    
    .icon-x {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m15 9-6 6'/%3E%3Cpath d='m9 9 6 6'/%3E%3C/svg%3E");
    }
    
    .icon-alert {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    }

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

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      background: linear-gradient(135deg, #5bb3f2 0%, #5273b1 50%, #4d6faf 50%);
      min-height: 100vh;
      padding: 2rem 1rem;
    }

    .container {
      max-width: 1200px;
      margin: 0 auto;
    }

    .header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .header-title {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1rem;
    }

    .header-title svg {
      width: 48px;
      height: 48px;
    }

    .header-title h1 {
      font-size: 2.5rem;
      color: white;
      font-weight: bold;
    }

    .header-subtitle {
      color: #bfdbfe;
      font-size: 1.125rem;
    }

    .header-powered {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      margin-top: 0.75rem;
    }

    .header-powered svg {
      width: 20px;
      height: 20px;
    }

    .header-powered span {
      font-size: 0.875rem;
      color: #214a7c;
    }
    .header-powered a {
        color: #0d4770;
        font-weight: 600;
    }
    .card {
      background: white;
      border-radius: 1rem;
      box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
      overflow: hidden;
    }

    .card-body {
      padding: 2rem;
    }

    .upload-zone {
      border: 4px dashed #93c5fd;
      border-radius: 0.75rem;
      padding: 3rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
      position: relative;
    }

    .upload-zone:hover {
      border-color: #3b82f6;
      background: #eff6ff;
    }

    .upload-zone svg {
      width: 64px;
      height: 64px;
      margin: 0 auto 1rem;
    }

    .upload-zone-title {
      font-size: 1.25rem;
      color: #374151;
      font-weight: 600;
      margin-bottom: 0.5rem;
    }

    .upload-zone-subtitle {
      color: #6b7280;
    }

    .results-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
      margin-top: 2rem;
    }

    .results-grid > div {
      min-width: 0;
    }

    #metadataContent,
    .log-entry,
    .alert-list {
      overflow-wrap: anywhere;
      word-break: break-word;
    }

    @media (min-width: 1024px) {
      .results-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      }
    }

    .section-title {
      font-size: 1.125rem;
      font-weight: 600;
      color: #1f2937;
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .image-preview {
      width: 100%;
      border-radius: 0.5rem;
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
      border: 2px solid #e5e7eb;
    }

    .analyzing-box {
      background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
      border-radius: 0.5rem;
      padding: 1.5rem;
    }

    .spinner-container {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.5rem;
    }

    .spinner {
      position: relative;
      width: 80px;
      height: 80px;
    }

    .spinner-ring {
      border: 4px solid transparent;
      border-top-color: #3b82f6;
      border-bottom-color: #3b82f6;
      border-radius: 50%;
      width: 80px;
      height: 80px;
      animation: spin 1s linear infinite;
    }

    .spinner-icon {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 40px;
      height: 40px;
      color: #3b82f6;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .analyzing-text {
      color: #374151;
      font-weight: 600;
      margin-top: 1rem;
    }

    .log-box {
      background: white;
      border-radius: 0.5rem;
      padding: 1rem;
      max-height: 192px;
      overflow-y: auto;
      margin-top: 1rem;
    }

    .log-title {
      font-size: 0.75rem;
      font-weight: 600;
      color: #4b5563;
      margin-bottom: 0.5rem;
    }

    .log-entry {
      font-size: 0.75rem;
      color: #4b5563;
      margin-bottom: 0.25rem;
      display: flex;
      gap: 0.5rem;
    }

    .log-time {
      color: #3b82f6;
      font-family: monospace;
      flex-shrink: 0;
      white-space: nowrap;
      overflow-wrap: normal;
      word-break: normal;
    }

    .log-entry > span:last-child {
      min-width: 0;
    }

    .verdict-box {
      border-radius: 0.5rem;
      padding: 1.5rem;
      margin-bottom: 1rem;
    }

    .verdict-box.ai {
      background: linear-gradient(135deg, #fef2f2 0%, #fff7ed 100%);
    }

    .verdict-box.real {
      background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    }

    .verdict-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1rem;
    }

    .verdict-icon svg {
      width: 64px;
      height: 64px;
    }

    .verdict-icon.ai svg {
      color: #dc2626;
    }

    .verdict-icon.real svg {
      color: #16a34a;
    }

    .verdict-title {
      text-align: center;
      font-size: 1.875rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
    }

    .verdict-title.ai {
      color: #b91c1c;
    }

    .verdict-title.real {
      color: #15803d;
    }

    .verdict-reasoning {
      text-align: center;
      color: #374151;
      font-size: 0.875rem;
    }

    .metrics-box {
      background: #f9fafb;
      border-radius: 0.5rem;
      padding: 1.5rem;
      margin-bottom: 1rem;
    }

    .metric {
      margin-bottom: 1rem;
    }

    .metric:last-child {
      margin-bottom: 0;
    }

    .metric-header {
      display: flex;
      justify-content: space-between;
      font-size: 0.875rem;
      margin-bottom: 0.5rem;
    }

    .metric-label {
      font-weight: 600;
      color: #374151;
    }

    .metric-value {
      font-weight: bold;
      color: #111827;
    }

    .progress-bar {
      width: 100%;
      height: 16px;
      background: #e5e7eb;
      border-radius: 9999px;
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      transition: width 0.5s ease;
      border-radius: 9999px;
    }

    .progress-fill.ai {
      background: linear-gradient(90deg, #ef4444 0%, #f97316 100%);
    }

    .progress-fill.real {
      background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
    }

    .progress-fill.confidence {
      background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    }

    .alert-box {
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 1rem;
      border: 1px solid;
    }

    .alert-box.red {
      background: #fef2f2;
      border-color: #fecaca;
    }

    .alert-box.green {
      background: #f0fdf4;
      border-color: #bbf7d0;
    }

    .alert-title {
      font-weight: 600;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .alert-title.red {
      color: #991b1b;
    }

    .alert-title.green {
      color: #166534;
    }

    .alert-list {
      font-size: 0.875rem;
      list-style: none;
    }

    .alert-list.red {
      color: #b91c1c;
    }

    .alert-list.green {
      color: #15803d;
    }

    .alert-list li {
      margin-bottom: 0.25rem;
    }

    .footer {
      background: #eff6ff;
      padding: 1.5rem;
      border-top: 1px solid #dbeafe;
    }

    .footer-content {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
    }

    .footer-icon {
      width: 20px;
      height: 20px;
      color: #3b82f6;
      flex-shrink: 0;
      margin-top: 0.125rem;
    }

    .footer-text {
      font-size: 0.875rem;
      color: #374151;
    }

    .footer-title {
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .footer-note {
      font-size: 0.85rem;
      color: #4b5563;
      margin-top: 0.5rem;
    }
    /* Estado "No concluyente" */
    .verdict-box.unsure {
      background: linear-gradient(135deg, #fffbeb 0%, #fef9c3 100%);
    }

    .verdict-icon.unsure svg {
      color: #d97706;
    }

    .verdict-title.unsure {
      color: #b45309;
    }

    .progress-fill.unsure {
      background: linear-gradient(90deg, #f59e0b 0%, #eab308 100%);
    }

    .alert-box.amber {
      background: #fffbeb;
      border-color: #fde68a;
    }

    .alert-box.gray {
      background: #f9fafb;
      border-color: #e5e7eb;
    }

    .error-box {
      background: #fef2f2;
      border: 2px solid #fecaca;
      border-radius: 0.5rem;
      color: #991b1b;
      font-weight: 600;
      margin-top: 1rem;
      padding: 1rem;
    }

    /* Estado "Posiblemente IA" */
    .verdict-box.maybe {
      background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    }

    .verdict-icon.maybe svg {
      color: #ea580c;
    }

    .verdict-title.maybe {
      color: #c2410c;
    }

    .progress-fill.maybe {
      background: linear-gradient(90deg, #f97316 0%, #fb923c 100%);
    }

    /* Páginas de contenido y FAQ (SEO) */
    .article, .faq {
      color: #374151;
      line-height: 1.65;
    }

    .faq {
      padding: 1.5rem;
    }

    .article h1, .faq h2 {
      color: #1f2937;
      margin-bottom: 0.75rem;
    }

    .article h2, .faq h3 {
      color: #1f2937;
      font-size: 1.125rem;
      margin: 1.5rem 0 0.5rem;
    }

    .article ul, .faq ul {
      margin: 0.5rem 0 0.5rem 1.25rem;
    }

    .article a, .faq a {
      color: #2563eb;
    }

    .breadcrumb {
      font-size: 0.8rem;
      color: #6b7280;
      margin-bottom: 1rem;
    }

    .article-cta {
      margin-top: 2rem;
      font-weight: 600;
    }

    /* Menú principal */
    .site-nav {
      display: flex;
      flex-wrap: wrap;
      gap: 0.25rem 1rem;
      justify-content: center;
      padding: 0.75rem 1rem;
      margin-bottom: 1rem;
      background: #fff;
      border-radius: 0.5rem;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .site-nav a {
      color: #374151;
      font-size: 0.875rem;
      font-weight: 600;
      padding: 0.25rem 0.5rem;
      border-bottom: 2px solid transparent;
      text-decoration: none;
    }

    .site-nav a:hover,
    .site-nav a:focus-visible {
      color: #2563eb;
      border-bottom-color: #93c5fd;
    }

    .site-nav a[aria-current="page"] {
      color: #2563eb;
      border-bottom-color: #2563eb;
    }

    /* Acordeones (preguntas frecuentes) */
    .accordion {
      border: 1px solid #e5e7eb;
      border-radius: 0.5rem;
      margin-bottom: 0.5rem;
      background: #fff;
    }

    .accordion summary {
      cursor: pointer;
      font-weight: 600;
      color: #1f2937;
      list-style: none;
      padding: 0.875rem 2.5rem 0.875rem 1rem;
      position: relative;
    }

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

    .accordion summary::after {
      content: "";
      position: absolute;
      right: 1.1rem;
      top: 50%;
      width: 0.5rem;
      height: 0.5rem;
      border-right: 2px solid #6b7280;
      border-bottom: 2px solid #6b7280;
      transform: translateY(-70%) rotate(45deg);
      transition: transform 0.2s ease;
    }

    .accordion[open] summary::after {
      transform: translateY(-30%) rotate(-135deg);
    }

    .accordion[open] summary {
      color: #2563eb;
      border-bottom: 1px solid #e5e7eb;
    }

    .accordion summary:focus-visible {
      outline: 2px solid #3b82f6;
      outline-offset: 2px;
      border-radius: 0.5rem;
    }

    .accordion-body {
      padding: 0.75rem 1rem 0.25rem;
    }

    .accordion-body p {
      margin-bottom: 0.75rem;
    }

    /* Cabecera común en páginas de contenido */
    .header-title .site-title {
      font-size: 2.5rem;
      color: white;
      font-weight: bold;
      text-decoration: none;
    }

    @media (max-width: 640px) {
      .header-title .site-title,
      .header-title h1 {
        font-size: 1.75rem;
      }
    }

    /* Enlaces del menú en el pie */
    .footer-nav {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.25rem 1rem;
      margin: 0.75rem 0;
      font-size: 0.875rem;
    }

    .footer-nav a {
      color: #1d4ed8;
      font-weight: 600;
      text-decoration: none;
    }

    .footer .footer-title {
      text-align: center;
    }

    .footer-nav a:hover,
    .footer-nav a:focus-visible {
      text-decoration: underline;
    }

    /* FAQ + Guías en dos columnas */
    .faq-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 2rem;
    }

    @media (min-width: 900px) {
      .faq-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: start;
      }

      .guides-col {
        position: sticky;
        top: 1rem;
      }
    }

    .faq h2 {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.25rem;
      margin: 0 0 1rem;
    }

    .faq h2::before {
      content: "";
      width: 4px;
      height: 1.25rem;
      border-radius: 9999px;
      background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    }

    /* Acordeones animados */
    .accordion {
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .accordion:hover {
      border-color: #bfdbfe;
    }

    .accordion[open] {
      border-color: #93c5fd;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
    }

    .accordion summary {
      transition: color 0.2s ease, background 0.2s ease;
      border-radius: 0.5rem;
    }

    .accordion summary:hover {
      background: #f8fafc;
    }

    .accordion-body {
      box-sizing: border-box;
      overflow: hidden;
    }

    .accordion[open]:not(.is-closing) summary::after {
      transform: translateY(-30%) rotate(-135deg);
    }

    .accordion.is-closing summary::after {
      transform: translateY(-70%) rotate(45deg);
    }

    .accordion.is-closing summary {
      color: #1f2937;
      border-bottom-color: transparent;
    }

    /* Tarjetas de guías */
    .guide-cards {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 0.75rem;
    }

    .guide-card {
      display: flex;
      align-items: center;
      gap: 0.875rem;
      padding: 0.875rem 1rem;
      background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
      border: 1px solid #dbeafe;
      border-radius: 0.75rem;
      color: #1f2937;
      text-decoration: none;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .faq a.guide-card {
      color: #1f2937;
    }

    .guide-card:hover,
    .guide-card:focus-visible {
      transform: translateY(-2px);
      border-color: #60a5fa;
      box-shadow: 0 8px 20px rgba(59, 130, 246, 0.18);
    }

    .guide-card:focus-visible {
      outline: 2px solid #3b82f6;
      outline-offset: 2px;
    }

    .guide-icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.75rem;
      height: 2.75rem;
      font-size: 1.35rem;
      border-radius: 0.75rem;
      background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    }

    .guide-text {
      display: flex;
      flex-direction: column;
      gap: 0.15rem;
      min-width: 0;
      font-size: 0.8rem;
      color: #4b5563;
      line-height: 1.4;
    }

    .guide-text strong {
      font-size: 0.925rem;
      color: #1f2937;
    }

    .guide-arrow {
      margin-left: auto;
      color: #3b82f6;
      font-weight: 700;
      transition: transform 0.2s ease;
    }

    .guide-card:hover .guide-arrow {
      transform: translateX(4px);
    }

    @media (prefers-reduced-motion: reduce) {
      .accordion,
      .accordion summary::after,
      .guide-card,
      .guide-arrow {
        transition: none;
      }
    }

    /* Pie centrado (todas las páginas) */
    .footer-text {
      flex: 1;
      min-width: 0;
    }

    .footer-center .footer-content {
      justify-content: center;
    }

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

    .footer-center .footer-nav {
      justify-content: center;
    }

    /* ===== Páginas de contenido: diseño moderno ===== */
    .reading-progress {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      z-index: 50;
      background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
      transform-origin: left;
      transform: scaleX(0);
    }

    .article {
      padding: 1.5rem;
    }

    @media (min-width: 768px) {
      .article {
        padding: 2rem 2.5rem;
      }
    }

    .page-hero {
      display: flex;
      align-items: center;
      gap: 1.25rem;
      padding: 1.75rem;
      margin-bottom: 1.5rem;
      color: #374151;
      border-radius: 1rem;
      background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 50%, #faf5ff 100%);
      border: 1px solid #bfdbfe;
    }

    .page-hero h1 {
      color: #1f2937;
      font-size: 1.75rem;
      line-height: 1.25;
      margin: 0 0 0.75rem;
    }

    @media (max-width: 640px) {
      .page-hero {
        flex-direction: column;
        text-align: center;
      }

      .page-hero h1 {
        font-size: 1.4rem;
      }
    }

    .hero-icon {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 4.5rem;
      height: 4.5rem;
      font-size: 2.25rem;
      border-radius: 1.25rem;
      background: #fff;
      border: 1px solid #bfdbfe;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
      animation: floaty 4s ease-in-out infinite;
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      justify-content: inherit;
    }

    .hero-meta span {
      font-size: 0.78rem;
      padding: 0.25rem 0.7rem;
      border-radius: 9999px;
      color: #1d4ed8;
      background: #fff;
      border: 1px solid #bfdbfe;
    }

    .lead {
      font-size: 1.05rem;
      color: #374151;
      margin-bottom: 1.25rem;
    }

    .callout {
      display: flex;
      gap: 0.75rem;
      align-items: flex-start;
      padding: 1rem 1.25rem;
      margin-bottom: 1.75rem;
      border-radius: 0.75rem;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-left: 4px solid #3b82f6;
      color: #1e3a8a;
    }

    .callout p {
      margin: 0;
    }

    .callout-icon {
      font-size: 1.35rem;
      line-height: 1.3;
    }

    .article-section {
      padding: 1.25rem 1.5rem;
      margin-bottom: 1rem;
      background: #fff;
      border: 1px solid #e5e7eb;
      border-radius: 0.875rem;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .article-section:hover {
      border-color: #bfdbfe;
      box-shadow: 0 8px 22px rgba(59, 130, 246, 0.12);
      transform: translateY(-2px);
    }

    .article .article-section h2 {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 1.15rem;
      margin: 0 0 0.75rem;
    }

    .section-badge {
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      font-size: 1.2rem;
      border-radius: 0.75rem;
      background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    }

    .article-section p {
      margin: 0 0 0.75rem;
    }

    .article-section p:last-child {
      margin-bottom: 0;
    }

    .article-section ul {
      list-style: none;
      margin: 0.5rem 0 0;
      padding: 0;
    }

    .article-section li {
      position: relative;
      padding-left: 1.6rem;
      margin-bottom: 0.45rem;
    }

    .article-section li::before {
      content: "✓";
      position: absolute;
      left: 0;
      top: 0.1rem;
      width: 1.1rem;
      height: 1.1rem;
      font-size: 0.7rem;
      font-weight: 700;
      line-height: 1.1rem;
      text-align: center;
      color: #fff;
      border-radius: 50%;
      background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    }

    .article code {
      font-size: 0.85em;
      padding: 0.1rem 0.4rem;
      border-radius: 0.375rem;
      background: #eef2ff;
      color: #4338ca;
    }

    .cta-banner {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      padding: 1.5rem;
      margin: 1.75rem 0;
      border-radius: 1rem;
      color: #fff;
      background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    }

    .cta-banner > div {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .cta-banner strong {
      font-size: 1.1rem;
    }

    .cta-banner span {
      font-size: 0.85rem;
      opacity: 0.9;
    }

    .article a.cta-button {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      padding: 0.7rem 1.25rem;
      font-weight: 700;
      color: #1d4ed8;
      text-decoration: none;
      background: #fff;
      border-radius: 9999px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .article a.cta-button:hover,
    .article a.cta-button:focus-visible {
      transform: translateY(-2px) scale(1.03);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    .related h2 {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.25rem;
      margin: 0 0 1rem;
    }

    .related h2::before {
      content: "";
      width: 4px;
      height: 1.25rem;
      border-radius: 9999px;
      background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    }

    .article a.guide-card {
      color: #1f2937;
    }

    .article .breadcrumb a {
      text-decoration: none;
    }

    /* Animaciones */
    @keyframes floaty {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .article .reveal {
      animation: fadeUp 0.5s ease both;
    }

    /* Con JS: aparecen al entrar en pantalla */
    .has-js .article .reveal {
      animation: none;
      opacity: 0;
      transform: translateY(18px);
      transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .has-js .article .reveal.is-visible {
      opacity: 1;
      transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
      .hero-icon { animation: none; }
      .article .reveal { animation: none; }
      .article-section,
      .article a.cta-button { transition: none; }
    }

    /* Menú: sección padre activa */
    .site-nav a[aria-current="true"],
    .footer-nav a[aria-current="true"] {
      color: #2563eb;
      border-bottom-color: #93c5fd;
    }

    /* Pie: listado de guías */
    .footer-label {
      margin-top: 0.5rem;
      font-size: 0.75rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #6b7280;
    }

    .footer-guides {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.35rem 0.9rem;
      margin: 0.5rem 0 0.75rem;
      font-size: 0.8rem;
    }

    .footer-guides a {
      color: #374151;
      text-decoration: none;
    }

    .footer-guides a:hover,
    .footer-guides a:focus-visible {
      color: #1d4ed8;
      text-decoration: underline;
    }

    /* FAQ dentro de las guías */
    .faq-inline {
      padding: 0;
      margin: 1.75rem 0;
    }

    /* Hub de guías en dos columnas */
    @media (min-width: 768px) {
      .guide-cards.cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    /* Sección "Cómo funciona" de la portada */
    .how {
      padding: 1.5rem;
      color: #374151;
      line-height: 1.65;
      border-top: 1px solid #e5e7eb;
    }

    .how h2 {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 1.25rem;
      color: #1f2937;
      margin: 0 0 0.5rem;
    }

    .how h2::before {
      content: "";
      width: 4px;
      height: 1.25rem;
      border-radius: 9999px;
      background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 100%);
    }

    .how-intro {
      margin-bottom: 1.25rem;
    }

    .how-grid {
      display: grid;
      grid-template-columns: minmax(0, 1fr);
      gap: 1rem;
    }

    @media (min-width: 768px) {
      .how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (min-width: 1100px) {
      .how-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    .how-card {
      padding: 1.1rem 1.25rem;
      background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
      border: 1px solid #dbeafe;
      border-radius: 0.875rem;
      transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    }

    .how-card:hover {
      transform: translateY(-2px);
      border-color: #60a5fa;
      box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
    }

    .how-card h3 {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 1rem;
      color: #1f2937;
      margin: 0 0 0.5rem;
    }

    .how-card h3 span {
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      width: 2.25rem;
      height: 2.25rem;
      font-size: 1.1rem;
      border-radius: 0.65rem;
      background: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    }

    .how-card p {
      font-size: 0.875rem;
      margin: 0;
    }

    .how a {
      color: #2563eb;
    }

    @media (prefers-reduced-motion: reduce) {
      .how-card {
        transition: none;
      }
    }

    /* ===== Resultados en acordeones ===== */
    .result-acc {
      margin-bottom: 0.75rem;
    }

    .result-acc summary {
      font-size: 0.9rem;
    }

    .result-acc .accordion-body {
      padding-top: 0.75rem;
    }

    .result-acc .alert-list {
      margin: 0 0 0.5rem;
    }

    .result-acc.red { background: #fef2f2; border-color: #fecaca; }
    .result-acc.red summary,
    .result-acc.red[open] summary { color: #991b1b; }

    .result-acc.green { background: #f0fdf4; border-color: #bbf7d0; }
    .result-acc.green summary,
    .result-acc.green[open] summary { color: #166534; }

    .result-acc.amber { background: #fffbeb; border-color: #fde68a; }
    .result-acc.amber summary,
    .result-acc.amber[open] summary { color: #92400e; }
    .result-acc.amber .alert-list { color: #78350f; }

    .result-acc.blue { background: #f0f9ff; border-color: #bfdbfe; }
    .result-acc.blue summary,
    .result-acc.blue[open] summary { color: #1e40af; }

    .result-acc.gray { background: #fff; border-color: #e5e7eb; }
    .result-acc.gray summary,
    .result-acc.gray[open] summary { color: #374151; }

    .result-acc[open] summary,
    .result-acc.is-closing summary {
      border-bottom-color: rgba(0, 0, 0, 0.08);
    }

    .metadata-content {
      font-size: 0.85rem;
      color: #1e3a8a;
      overflow-wrap: anywhere;
    }

    /* ===== Móvil: menos scroll ===== */
    @media (max-width: 1023px) {
      .image-preview {
        display: block;
        width: auto;
        max-width: 100%;
        max-height: 42vh;
        margin: 0 auto;
        object-fit: contain;
      }

      .results-grid {
        gap: 1rem;
        margin-top: 1rem;
      }

      .verdict-box {
        padding: 1rem;
        margin-bottom: 0.75rem;
      }

      .verdict-icon {
        margin-bottom: 0.5rem;
      }

      .verdict-icon .icon {
        width: 44px !important;
        height: 44px !important;
      }

      .verdict-title {
        font-size: 1.4rem;
      }

      .metrics-box {
        padding: 1rem;
        margin-bottom: 0.75rem;
      }

      .upload-zone {
        padding: 1.25rem 1rem;
      }
    }

    @media (max-width: 767px) {
      /* «Cómo funciona»: carrusel horizontal en lugar de una columna larga */
      .how {
        padding: 1rem;
      }

      .how-grid {
        display: flex;
        gap: 0.75rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
      }

      .how-card {
        flex: 0 0 84%;
        scroll-snap-align: start;
      }

      .how-card:hover {
        transform: none;
      }

      /* Guías de la portada: solo títulos */
      .guides-col .guide-text > span {
        display: none;
      }

      .guides-col .guide-card {
        padding: 0.65rem 0.85rem;
      }

      .guides-col .guide-icon {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
      }

      .faq {
        padding: 1rem;
      }

      .faq-grid {
        gap: 1.25rem;
      }

      .footer-guides {
        gap: 0.25rem 0.75rem;
        font-size: 0.75rem;
      }
    }

    /* Con resultados visibles se oculta la información general */
    .has-results .how,
    .has-results .faq {
      display: none;
    }

    .result-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
      margin-top: 1rem;
    }

    .result-actions button {
      flex: 1 1 12rem;
      padding: 0.7rem 1rem;
      border: none;
      border-radius: 0.5rem;
      font-size: 0.875rem;
      font-weight: 600;
      cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .result-actions button:hover,
    .result-actions button:focus-visible {
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(59, 130, 246, 0.25);
    }

    .result-actions .btn-primary {
      color: #fff;
      background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    }

    .result-actions .btn-secondary {
      color: #1d4ed8;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
    }

    .how-more {
      margin: 1rem 0 0;
      text-align: center;
    }

    .how a.how-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.6rem 1.25rem;
      font-weight: 600;
      color: #1d4ed8;
      text-decoration: none;
      background: #eff6ff;
      border: 1px solid #bfdbfe;
      border-radius: 9999px;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    }

    .how a.how-link:hover,
    .how a.how-link:focus-visible {
      background: #dbeafe;
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(59, 130, 246, 0.2);
    }

    /* ===== «Cómo funciona»: slider horizontal de una sola fila ===== */
    .how-slider {
      position: relative;
    }

    .how .how-grid {
      display: flex;
      flex-wrap: nowrap;
      gap: 0.75rem;
      overflow-x: auto;
      overflow-y: hidden;
      padding: 0.25rem 0.25rem 0.75rem;
      scroll-snap-type: x mandatory;
      scroll-padding: 0 0.25rem;
      scrollbar-width: thin;
      scrollbar-color: #bfdbfe transparent;
      -webkit-overflow-scrolling: touch;
    }

    .how .how-grid::-webkit-scrollbar {
      height: 6px;
    }

    .how .how-grid::-webkit-scrollbar-thumb {
      background: #bfdbfe;
      border-radius: 9999px;
    }

    .how .how-grid:focus-visible {
      outline: 2px solid #3b82f6;
      outline-offset: 2px;
      border-radius: 0.5rem;
    }

    .how .how-card {
      flex: 0 0 min(300px, 84%);
      scroll-snap-align: start;
    }

    .how-nav {
      position: absolute;
      top: calc(50% - 0.5rem);
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 2.5rem;
      height: 2.5rem;
      padding: 0 0 0.15rem;
      font-size: 1.6rem;
      line-height: 1;
      color: #1d4ed8;
      background: #fff;
      border: 1px solid #bfdbfe;
      border-radius: 50%;
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
      cursor: pointer;
      transform: translateY(-50%);
      transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    }

    .how-prev { left: -0.9rem; }
    .how-next { right: -0.9rem; }

    .how-nav:hover:not(:disabled),
    .how-nav:focus-visible {
      background: #eff6ff;
      box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
    }

    .how-nav:disabled {
      opacity: 0;
      pointer-events: none;
    }

    .how-slider.no-scroll .how-nav {
      display: none;
    }

    @media (max-width: 767px) {
      .how-prev { left: -0.4rem; }
      .how-next { right: -0.4rem; }

      .how-nav {
        width: 2.1rem;
        height: 2.1rem;
        font-size: 1.4rem;
      }
    }

    /* Icono de la cabecera: trazo blanco (mismo color que el fondo del menú) */
    .header-title .icon-brain {
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 2A2.5 2.5 0 0 1 12 4.5v15a2.5 2.5 0 0 1-4.96.44 2.5 2.5 0 0 1-2.96-3.08 3 3 0 0 1-.34-5.58 2.5 2.5 0 0 1 1.32-4.24 2.5 2.5 0 0 1 1.98-3A2.5 2.5 0 0 1 9.5 2Z'/%3E%3Cpath d='M14.5 2A2.5 2.5 0 0 0 12 4.5v15a2.5 2.5 0 0 0 4.96.44 2.5 2.5 0 0 0 2.96-3.08 3 3 0 0 0 .34-5.58 2.5 2.5 0 0 0-1.32-4.24 2.5 2.5 0 0 0-1.98-3A2.5 2.5 0 0 0 14.5 2Z'/%3E%3C/svg%3E");
    }

    /* Historial de análisis: aspecto de consola */
    #finalLog .log-entry > span:last-child {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    }

    .log-new {
      animation: logIn 0.18s ease-out both;
    }

    @keyframes logIn {
      from { opacity: 0; transform: translateX(-6px); }
      to { opacity: 1; transform: none; }
    }

    .log-caret {
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 0.75rem;
      line-height: 1;
      color: #3b82f6;
      animation: caretBlink 1s steps(1) infinite;
    }

    @keyframes caretBlink {
      50% { opacity: 0; }
    }

    @media (prefers-reduced-motion: reduce) {
      .log-new,
      .log-caret {
        animation: none;
      }
    }
