/* ========================================
   ARCHERO 2 CODES - IMPROVED GAMING STYLES
   ======================================== */

/* Variables globales */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --border-color: #e5e7eb;
    --text-dark: #1f2937;
    --text-muted: #6b7280;
    --bg-light: #f9fafb;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ========================================
   TABLA DE CÓDIGOS - SIMPLE Y ATRACTIVA
   ======================================== */

.table-container {
    margin: 10px 0;
    border-radius: 12px;
    overflow: hidden;
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

/* ========================================
   ENCABEZADO
   ======================================== */

.codes-table__header-row {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.codes-table__header {
    text-align: left;
    padding: 16px 20px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   FILAS
   ======================================== */

.codes-table__row {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.codes-table__row:last-child {
    border-bottom: none;
}

.codes-table__row:hover {
    background: #f9fafb;
    transform: translateX(4px);
}

/* ========================================
   CELDAS
   ======================================== */

.codes-table__cell {
    padding: 16px 20px;
    font-size: 0.95rem;
    color: #374151;
}

/* Celda del CÓDIGO */
.codes-table__cell:first-child {
    font-weight: 700;
}

/* Celda de RECOMPENSA */
.codes-table__cell:last-child {
    font-weight: 500;
    color: #6b7280;
}

/* ========================================
   BADGE NEW
   ======================================== */

.new-badge {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-left: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.3);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    
    
    .new-badge {
        display: block;
        margin-left: 0;
        margin-top: 6px;
        width: fit-content;
    }
}
/* Badge NEW mejorado */
.new-badge {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 12px;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
    animation: pulse 2s infinite;
    display: inline-block;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 12px #6a11cb;
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 16px #2575fc;
    }
}

/* ========================================
   CONTENEDOR DE TABLA
   ======================================== */

#faq h3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 25px;
    box-shadow: var(--shadow-sm);
}

/* ========================================
   CÓDIGOS EXPIRADOS
   ======================================== */

p[style*="letter-spacing"] {
    background: #fef3c7;
    border-left: 4px solid var(--warning-color);
    padding: 20px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    color: #78350f;
    box-shadow: var(--shadow-sm);
    word-break: break-word;
}

/* ========================================
   CONTENEDOR PRINCIPAL
   ======================================== */

.container-principal {
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

/* ========================================
   BOTÓN BACK TO TOP
   ======================================== */

#backToTop {
    background: var(--primary-gradient);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: pointer;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .container-principal {
        padding: 10px;
        margin: 15px;
    }
    
    .new-badge {
        display: block;
        margin-left: 0;
        margin-top: 8px;
        width: fit-content;
    }
}

/* ========================================
   ANIMACIONES EXTRAS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.container-principal > * {
    animation: fadeInUp 0.6s ease-out;
}


/* ========================================
   RELATED ARTICLES - ESTILO GAMING MEJORADO
   ======================================== */

.related-articles {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 320px;
  width: 25%;
  align-self: flex-start;
  margin-top: 20px;
  margin-left: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* ========================================
   TÍTULO
   ======================================== */

.related-articles h2 {
  font-size: 1.1rem;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ========================================
   LISTA
   ======================================== */

.related-articles ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-articles li {
  margin-left: 0;
}

.related-articles li:first-child {
  margin-top: 0;
}

/* ========================================
   ENLACES
   ======================================== */

.related-articles a {
  display: block;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

/* ========================================
   TÍTULO DEL ARTÍCULO
   ======================================== */

.related-articles .title {
  font-size: 0.8rem;
  color: #1f2937;
  font-weight: 600;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
  line-height: 1.4;
}

.related-articles li:last-child .title {
  border-bottom: none;
  padding-bottom: 0;
}

.related-articles a:hover .title {
  color: #667eea;
}
/* ========================================
   NÚMERO
   ======================================== */

.rel-number {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.70rem;
  margin-right: 10px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}


/* ========================================
   RESPONSIVE
   ======================================== */

@media screen and (max-width: 820px) {
  .container {
    flex-direction: column;
    align-items: center;
  }
  
  .related-articles {
    margin-left: 0;
    margin-top: 30px;
    max-width: 100%;
    width: auto;
    position: static;
  }
}

/* ========================================
   VARIANTE CON ÍCONOS (OPCIONAL)
   ======================================== */

/* Si querés agregar íconos antes del número */
.related-articles .title::after {
  content: '→';
  margin-left: auto;
  color: #9ca3af;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-4px);
}


/* ========================================
   TABLE OF CONTENTS - ESTILO GAMING MEJORADO
   ======================================== */

.toc {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin: 30px 0;
  background: #fff;
  max-width: 320px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.toc:hover {
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
}

/* ========================================
   HEADER
   ======================================== */

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.toc-header span {
  font-weight: 800;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
}

/* ========================================
   BOTÓN TOGGLE
   ======================================== */

.toc-toggle {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: none;
  font-size: 12px;
  cursor: pointer;
  color: #fff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

.toc-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.toc-toggle:active {
  transform: translateY(0);
}

/* ========================================
   CONTENIDO
   ======================================== */

.toc-content {
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  max-height: 2000px;
  opacity: 1;
}

.toc.collapsed .toc-content {
  max-height: 0;
  opacity: 0;
}

/* ========================================
   LISTA
   ======================================== */

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: section;
}

.toc ol li ol {
  margin-left: 20px;
  margin-top: 8px;
}

.toc li {
  counter-increment: section;
  margin-top: 8px;
}

.toc li:first-child {
  margin-top: 0;
}

/* ========================================
   ENLACES
   ======================================== */

.toc a {
  display: flex;
  align-items: center;
  padding: 5px;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  color: #374151;
  font-weight: 500;
  border: 1px solid transparent;
  position: relative;
}


.toc a:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
  color: #667eea;
  border-color: #667eea;
  transform: translateX(4px);
  padding-left: 14px;
}

/* Indicador de item activo (opcional) */
.toc a.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.toc a.active::before {
  color: #fff;
}

/* ========================================
   SUB-ITEMS (nivel 2)
   ======================================== */

.toc ol li ol a {
  font-size: 0.85rem;
  color: #6b7280;
}


.toc ol li ol a:hover {
  color: #667eea;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .toc {
    max-width: 100%;
    margin: 20px 0;
  }

  .toc:not(.collapsed) {
    border-bottom: 1px solid #e5e7eb;
  }

  .toc-header span {
    font-size: 0.95rem;
  }

  .toc-toggle {
    font-size: 11px;
    padding: 5px 10px;
  }

  .toc a {
    font-size: 0.85rem;
  }
}

/* ========================================
   ANIMACIÓN DE COLAPSO
   ======================================== */

@keyframes slideDown {
  from {
    max-height: 0;
    opacity: 0;
  }
  to {
    max-height: 2000px;
    opacity: 1;
  }
}

.toc:not(.collapsed) .toc-content {
  animation: slideDown 0.4s ease;
}

/* ========================================
   VARIANTE CON ICONOS (OPCIONAL)
   ======================================== */

/* Agregar ícono de documento antes del texto */
.toc a::after {
  content: '→';
  margin-left: auto;
  color: #9ca3af;
  font-weight: 700;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-4px);
}

.toc a:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   VERSIÓN COMPACTA (OPCIONAL)
   ======================================== */

.toc.compact {
  padding: 16px;
  max-width: 280px;
}

.toc.compact .toc-header span {
  font-size: 0.95rem;
}

.toc.compact a {
  padding: 6px 8px;
  font-size: 0.85rem;
}


/* ========================================
   SUMMARY BOX (IN SHORT) - ESTILO GAMING MEJORADO
   ======================================== */

.summary-box {
  max-width: 700px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e5e7eb;
  border-left: 5px solid #667eea;
  margin: 30px 0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Efecto de brillo sutil en el fondo */
.summary-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.summary-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
  border-left-color: #764ba2;
}

/* ========================================
   TÍTULO "IN SHORT"
   ======================================== */

.summary-box span {
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 8px;
}

/* Línea decorativa debajo del título */
.summary-box span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

/* ========================================
   LISTA
   ======================================== */

.pretty-list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.pretty-list li {
  padding-left: 32px;
  margin-bottom: 14px;
  position: relative;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
  font-weight: 500;
}

.pretty-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   BULLET PERSONALIZADO
   ======================================== */

.pretty-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
}

/* Efecto hover en cada item */
.pretty-list li:hover {
  color: #1f2937;
}

.pretty-list li:hover::before {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* ========================================
   VARIANTE CON NÚMEROS (OPCIONAL)
   ======================================== */

.pretty-list.numbered {
  counter-reset: item;
}

.pretty-list.numbered li::before {
  content: counter(item);
  counter-increment: item;
  font-size: 12px;
  font-weight: 700;
}

/* ========================================
   VARIANTE CON ICONOS (OPCIONAL)
   ======================================== */

/* Para usar emojis o íconos específicos */
.pretty-list.icons li::before {
  content: "🎮"; /* Cambiá esto por el ícono que quieras */
  background: none;
  box-shadow: none;
  font-size: 18px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
  .summary-box {
    padding: 20px;
    margin: 20px 0;
    max-width: 100%;
  }

  .summary-box span {
    font-size: 1.15rem;
  }

  .pretty-list li {
    font-size: 0.9rem;
    padding-left: 28px;
    margin-bottom: 12px;
  }

  .pretty-list li::before {
    width: 20px;
    height: 20px;
    font-size: 12px;
  }
}

/* ========================================
   TEMA ALTERNATIVO - SUCCESS (VERDE)
   ======================================== */

.summary-box.success {
  border-left-color: #10b981;
}

.summary-box.success span {
  background: linear-gradient(135deg, #10b981, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-box.success span::after {
  background: linear-gradient(90deg, #10b981, #059669);
}

.summary-box.success .pretty-list li::before {
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.summary-box.success:hover {
  border-left-color: #059669;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

/* ========================================
   TEMA ALTERNATIVO - WARNING (NARANJA)
   ======================================== */

.summary-box.warning {
  border-left-color: #f59e0b;
}

.summary-box.warning span {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-box.warning span::after {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.summary-box.warning .pretty-list li::before {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3);
}

.summary-box.warning:hover {
  border-left-color: #d97706;
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

/* ========================================
   TEMA ALTERNATIVO - INFO (AZUL)
   ======================================== */

.summary-box.info {
  border-left-color: #3b82f6;
}

.summary-box.info span {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.summary-box.info span::after {
  background: linear-gradient(90deg, #3b82f6, #2563eb);
}

.summary-box.info .pretty-list li::before {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.summary-box.info:hover {
  border-left-color: #2563eb;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15);
}



/* ============================ TABLAS ========================== */
.table-container {
            overflow-x: auto;
        }

        table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            background: white;
        }

        thead th {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px 15px;
            text-align: center;
            font-size: 1.1em;
            font-weight: 600;
            border: none;
            position: sticky;
            top: 0;
            z-index: 10;
        }

        thead th:first-child {
            border-top-left-radius: 10px;
        }

        thead th:last-child {
            border-top-right-radius: 10px;
        }

        tbody th {
            background: #f8f9fa;
            color: #495057;
            max-width: 150px;
            padding: 15px;
            text-align: left;
            font-weight: 600;
            border-right: 3px solid #e9ecef;
        }

        tbody td {
            padding: 15px;
            text-align: center;
            min-width: 200px;
            border-bottom: 1px solid #e9ecef;
            transition: background-color 0.3s ease;
        }

        tbody tr:hover td {
            background-color: #f1f3ff;
        }

        tbody tr:last-child td {
            border-bottom: none;
        }

        tbody td img {
            max-width: 120px;
            max-height: 120px;
            object-fit: contain;
            transition: transform 0.3s ease;
            cursor: pointer;
        }

        tbody td img:hover {
            transform: scale(1.15);
        }

        .muted {
            color: #6c757d;
            font-style: italic;
        }

        tbody tr:nth-child(odd) {
            background-color: #fafbfc;
        }



        caption {
            padding: 20px;
            color: #6c757d;
            font-style: italic;
            font-size: 0.9em;
            text-align: center;
            background: #f8f9fa;
        }

        /* Badges para valores especiales */
        tbody tr:nth-child(n+2) td {
            font-weight: 500;
        }

        /* Responsive */
        @media (max-width: 768px) {

            tbody td, thead th, tbody th {
                padding: 10px;
                font-size: 0.9em;
            }

            tbody td img {
                max-width: 80px;
                max-height: 80px;
            }
        }

        /* Animación sutil de entrada */
        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        section {
            animation: fadeIn 0.6s ease-out;
        }


/* ============================ FIN TABLAS ========================== */


.collapsible-box {
  margin: 20px 0;
}

.toggle-btn {
  background: #111827;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.toggle-btn:hover {
  background: #1f2937;
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 10px;
}

.collapsible-box.open .collapsible-content {
  max-height: 5000px; /* suficiente para todo el contenido */
}

    