/* ====================================================================
   THINKCHIP — BUTTONS.CSS
   Estilos para todos los botones y controles interactivos del proyecto.
   Se carga junto con style.css en todos los HTML.
   ────────────────────────────────────────────────────────────────────
   1. Botón base (.btn) y sus variantes
   2. Botones Funnel (.c-funnel-choice)
   3. Variantes de botón para Comparativas finales (.c-botones-finales-comparador)
   4. Botones Brutalistas (Extraídos de guias-nuevas.css)
==================================================================== */

/* ────────────────────────────────────────────────────────────────────
   1. Botón Base
──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--fuente-titulos);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.22s ease, b ox-shadow 0.22s ease, background-color 0.22s ease;
  color: #fff;
  background-color: var(--color-brand);
  border: none;
  box-shadow: 0 4px 14px rgba(26, 67, 59, 0.18);
  letter-spacing: 0.01em;
}

.btn:hover {
  background-color: var(--color-brand-claro);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 67, 59, 0.22);
}

.btn:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 3px;
}

/* ── Affiliate / CTA primary (Muted Brutalism — black flat) ───────
   ───────────────────────────────────────────────────────────────── */
.btn--affiliate,
.btn--principal {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 0;
  padding: 0.95rem 1.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  filter: none;
}

.btn--affiliate:hover,
.btn--principal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: #fff;
  color: var(--ink);
  filter: none;
}

.btn--affiliate:focus-visible,
.btn--principal:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 3px;
}



/* ────────────────────────────────────────────────────────────────────
   3. Botones Funnel (Explora por Categoría)
──────────────────────────────────────────────────────────────────── */
/* ====================================================================
   2.0 - BOTONES FUNNEL (FILTRO POR CATEGORÍAS)
   - Utilizado en: /html/comparativas.html
   - Función: Botones para filtrar comparativas por tipo de dispositivo
   - Nota: Contiene el estilo redondeado base y el estilo brutalista unificados.
   ==================================================================== */
.c-funnel-choices {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

/* Estilo Redondeado Original */
.c-funnel-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(180deg, #ffffff, #f9fdfa);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--color-texto-secundario);
  padding: 1.25rem 1.7rem;
  border-radius: 16px;
  cursor: pointer;
  min-width: 130px;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.04), inset 0 2px 5px rgba(255, 255, 255, 0.8);
}

.c-funnel-choice::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% -20%, hsla(156, 50%, 58%, 0.15), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.c-funnel-choice:hover {
  color: var(--color-brand);
  border-color: rgba(26, 67, 59, 0.15);
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 16px 30px -8px rgba(26, 67, 59, 0.12), inset 0 2px 5px rgba(255, 255, 255, 0.9);
}

.c-funnel-choice:hover::after {
  opacity: 1;
}

.c-funnel-choice.active {
  color: #fff;
  background: var(--color-brand);
  border-color: var(--color-brand);
  box-shadow: 0 10px 24px rgba(26, 67, 59, 0.25);
}

.c-funnel-choice__icon {
  font-size: 2.3rem;
  margin-bottom: 0.2rem;
  filter: saturate(1.2);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.c-funnel-choice:hover .c-funnel-choice__icon {
  transform: scale(1.15) translateY(-3px);
}

.c-funnel-choice__text {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Estilo Brutalista Original (procedente de guias.css) */
.c-funnel-choices .c-funnel-choice {
  border: 2px solid var(--border);
  border-radius: 0;
  font-weight: 900;
  text-transform: uppercase;
  transition: all 0.2s ease;
  background: var(--color-superficie);
  color: var(--ink);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

.c-funnel-choices .c-funnel-choice.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--border);
}

/* ────────────────────────────────────────────────────────────────────
    5. Variantes de botón para el bloque de Comparativas finales
──────────────────────────────────────────────────────────────────── */
.c-botones-finales-comparador .btn {
  background: var(--ink);
  color: #fff;
  border: 2px solid var(--ink);
  padding: 1rem 2rem;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 280px;
  text-align: center;
  display: inline-block;
}

.c-botones-finales-comparador .btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--color-superficie);
  color: var(--ink);
}

@media (max-width: 768px) {
  .c-botones-finales-comparador .fila-botones {
    gap: 0.7rem;
  }

  .c-botones-finales-comparador .btn {
    width: 100%;
    min-width: 0;
  }
}

/* ────────────────────────────────────────────────────────────────────
    7. Botones Brutalistas (Extraídos de guias-nuevas.css)
──────────────────────────────────────────────────────────────────── */

/* HOVER NEUTRO: fondo oscuro, sin naranja Xiaomi en todas las guías */
.guia-nueva .btn--principal:hover,
.guia-nueva .btn--affiliate:hover {
  background: #1a1714;
  color: #ffffff;
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgba(12, 12, 10, 0.25);
}

/* Xiaomi: mantener naranja solo en páginas con acento Xiaomi */
.guia-nueva[style*='--guia-acento: #ff6700'] .btn--principal:hover,
.guia-nueva[style*='--guia-acento: #ff6700'] .btn--affiliate:hover {
    background: var(--gn-xiaomi);
    box-shadow: 5px 5px 0 var(--gn-ink);
}

.guia-nueva .btn--principal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.06em;
    color: #ffffff;
    background: var(--gn-ink);
    box-shadow: 4px 4px 0 rgba(12, 12, 10, 0.2);
    transition: all 0.2s ease;
    border: 2px solid var(--gn-ink);
    cursor: pointer;
    white-space: nowrap;
}

.guia-nueva .btn--principal:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(12, 12, 10, 0.15);
}

/* Variantes para fondos oscuros (Manifesto) */
.guia-nueva .btn--light {
    background: var(--gn-surface);
    color: var(--gn-ink) !important;
    border-color: var(--gn-surface);
    border-radius: 0;
    box-shadow: 4px 4px 0 rgba(12, 12, 10, 0.2);
}

.guia-nueva .btn--light:hover {
    background: #e6e4de;
    color: var(--gn-ink) !important;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(12, 12, 10, 0.15);
}

.guia-nueva .btn--outline-light {
    background: transparent;
    color: var(--gn-surface);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.guia-nueva .btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gn-surface);
    border-color: var(--gn-surface);
    box-shadow: none;
}