/* ====================================================================
   COMPONENTS.CSS — THINKCHIP
   Componentes globales reutilizables en todas las páginas.
   ────────────────────────────────────────────────────────────────────
   4.3   Cabecera (.c-header)
   4.4   Pie de Página (.c-footer)
   4.5   Miga de Pan (.c-breadcrumb)
   4.6   Acordeón FAQs (.c-faq)
   4.7   Formulario Suscripción (wrapper + input)
   4.9   Tarjeta de Información (.c-info-card)
   4.9.1 Introducción de Sección (.c-section-intro)
   4.8   Icono Stamp (.c-icon-stamp)
   Badge (.badge) · Fecha Actualización (.c-last-updated) 
   Autor (.c-author-byline)
==================================================================== */


/* ====================================================================
   4.3 - Cabecera Principal (Estilo editorial sólido, guías-nav)
==================================================================== */

.c-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  /* Fondo sólido editorial — sin glassmorphism */
  background-color: #f2f0eb;
  background-image: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  border-bottom: 1.5px solid #0c0c0a;

  display: flex;
  align-items: center;
  height: 64px;
  padding: 0;

  /* Sin transiciones de scroll — siempre igual */
  transition: none;
}

/* El canvas detrás del header ya no es necesario con fondo sólido */
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.c-header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
}

.c-header__title {
  font-family: var(--fuente-logos);
  font-size: 16px;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Logo — tinta oscura, no esmeralda */
.c-header__logo {
  color: #0c0c0a;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.c-header__logo:hover {
  opacity: 0.6;
}

.c-header__menu {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.c-header__menu-item {
  position: relative;
}

/* Links: tinta muted, hover tinta */
.c-header__menu-link {
  color: #6b6960;
  text-decoration: none;
  font-family: var(--fuente-principal);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 2px 0;
  display: block;
  transition: color 0.15s ease;
  border-bottom: 1.5px solid transparent;
}

.c-header__menu-link:hover {
  color: #0c0c0a;
}

.c-header__menu-link.active,
.c-header__menu-link[aria-current="page"] {
  color: #0c0c0a;
  border-bottom: 1.5px solid #0c0c0a;
}

/* DROPDOWN: sólido, sin glass */
.c-header__dropdown {
  display: block;
  position: absolute;
  top: 140%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #f2f0eb;
  border: 1.5px solid #0c0c0a;
  border-radius: 0;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.06);
  min-width: 200px;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
  padding: 0.5rem;
}

.c-header__menu-item--has-dropdown:hover .c-header__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.c-header__dropdown-item {
  list-style: none;
}

.c-header__dropdown-link {
  display: block;
  padding: 0.7rem 1rem;
  color: #0c0c0a;
  text-decoration: none;
  font-family: var(--fuente-principal);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.c-header__dropdown-link:hover {
  background: transparent;
  color: var(--color-brand);
  padding-left: 1.25rem;
}

.c-header__hamburger {
  display: none;
  background: transparent;
  border: 0;
  padding: 4px;
  cursor: pointer;
  z-index: 1001;
}

/* Hamburger: tinta oscura */
.c-header__hamburger-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #0c0c0a;
  margin: 5px 0;
  transition: background 0.3s ease;
}

/* ====================================================================
   4.4 - Pie de Página (Schematic/Light Technical)
==================================================================== */
.c-footer {
  /* Beige unificado del nuevo sistema editorial — global */
  background-color: #f2f0eb;
  color: var(--color-texto-principal);
  padding: 8rem 0 4rem 0;
  margin-top: 0;
  border-top: 1px solid #0c0c0a;
  font-family: var(--fuente-principal);
}

.c-footer__container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
}

.c-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 6rem;
}

/* Columna Marca */
.c-footer__column--brand {
  max-width: 400px;
  text-align: left;
}

.c-footer__logo {
  font-family: var(--fuente-logos);
  font-size: 1.5rem;
  color: var(--color-brand);
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.c-footer__tagline {
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  color: var(--color-texto-secundario);
}

.c-footer__social a {
  color: var(--color-brand);
  font-size: 1.4rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.c-footer__social a:hover {
  opacity: 1;
  transform: translateY(-3px);
}

/* Títulos de sección */
.c-footer__title {
  color: var(--color-brand);
  font-family: var(--fuente-titulos);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 2.5rem;
  font-weight: 800;
  text-align: left;
  border-bottom: 1px solid var(--color-borde);
  padding-bottom: 0.75rem;
  display: inline-block;
  width: 100%;
}

/* Listas de Navegación */
.c-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  text-align: left;
}

.c-footer__link {
  color: var(--color-texto-secundario);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.25s ease;
  width: fit-content;
}

.c-footer__link:hover {
  color: var(--color-brand);
  transform: translateX(5px);
}

/* Barra Inferior: Legal & Credits */
.c-footer__bottom {
  border-top: 1px solid var(--color-borde);
  padding-top: 4rem;
  text-align: center;
}

.c-footer__legal-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.c-footer__legal-links a {
  color: var(--color-texto-secundario);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.c-footer__legal-links a:hover {
  color: var(--color-brand);
}

.c-footer__disclosure {
  max-width: 800px;
  margin: 0 auto 2.5rem auto;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--gris-500);
  font-style: normal;
  border: 1px dashed var(--color-borde);
  padding: 1.5rem;
  border-radius: 4px;
}

.c-footer__copyright {
  font-size: 0.75rem;
  color: var(--gris-500);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: var(--fuente-titulos);
  font-weight: 700;
}

/* ====================================================================
   4.5 - Miga de Pan (Editorial — tracked uppercase, separador ·)
==================================================================== */
.c-breadcrumb {
  display: none; /* Eliminado globalmente por nuevo diseño editorial */
  font-family: 'DM Sans', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6960;
  margin: 28px 0 32px;
  padding: 0;
  border: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.c-breadcrumb::-webkit-scrollbar {
  display: none;
}

.c-breadcrumb__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  white-space: nowrap;
}

.c-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  white-space: nowrap;
}

.c-breadcrumb__item:not(:last-child)::after {
  content: '·';
  margin: 0 12px;
  color: rgba(12, 12, 10, 0.35);
  font-size: 14px;
  line-height: 1;
}

.c-breadcrumb__link {
  color: #6b6960;
  text-decoration: none;
  transition: color 0.2s ease;
}

.c-breadcrumb__link:hover {
  color: #0c0c0a;
}

.c-breadcrumb__current {
  color: #0c0c0a;
  font-weight: 600;
}

/* ====================================================================
   4.6 - Acordeón de FAQs
==================================================================== */
/* FAQ styles removed: `comp-faq` component in Svelte is canonical now. */

/* --------------------------------------------------------------------
   Global override: unify legacy white backgrounds to editorial surface
   This avoids editing many files immediately; source-level replacements
   can follow. Use sparingly and remove after full migration.
   ------------------------------------------------------------------ */
.comp-info-card,
.c-info-card,
.p-card,
.p-card__b,
.g-card,
.adc-card,
.verdict-card,
.card-featured-editorial,
.card-featured-editorial .card,
.comp-faq__item,
.c-faq,
.c-faq * {
  background: var(--color-superficie) !important;
  border-color: rgba(0,0,0,0.03) !important;
}

/* Ensure comparison header product images appear on surface */
.comp-hero,
.comp-hero .comp-hero__image,
.comparison-table__cell--product {
  background: transparent !important;
}

/* Legacy helpers: opt-out when `data-no-surface` is present */
[data-no-surface] { background: transparent !important; }

/* Neutralize inline background declarations that use hard-coded white
   so we don't need to edit every template immediately. This maps
   `style="... background: #fff ..."` or `#ffffff` to the editorial
   surface token. Remove after migrating source files. */
*[style*="background: #fff"] , *[style*="background:#fff"],
*[style*="background: #ffffff"], *[style*="background:#ffffff"],
*[style*="#fff"] , *[style*="#ffffff"] {
  background: var(--color-superficie) !important;
  border-color: rgba(0,0,0,0.03) !important;
}

/* Comparison layout: table left, comparator/aside right */
.comp-compare-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1.5rem;
  align-items: start;
  margin: 2rem 0;
}
.comp-compare-layout .comp-compare-aside {
  position: sticky;
  top: 100px;
}
@media (max-width: 1024px) {
  .comp-compare-layout {
    grid-template-columns: 1fr;
  }
  .comp-compare-layout .comp-compare-aside { position: static; }
}

/* Ensure the main column can shrink and let the table scroll horizontally
   instead of forcing the aside below. Targets the ComparisonTable wrapper. */
.comp-compare-layout > .comp-compare-main { min-width: 0; overflow: hidden; }
.comp-compare-layout .comp-compare-main .comp-table-wrapper { overflow-x: auto; }
.comp-compare-layout .comp-compare-main .comp-table { min-width: 700px; }

/* Site-level content max-width helper. Use `.site-container` inside pages to center content */
.site-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Make legacy brutalist faceoff components use surface token by default */
.comp-faceoff, .comp-faceoff__side { background: var(--color-superficie); border-color: rgba(0,0,0,0.06); box-shadow: 0 6px 18px rgba(2,6,23,0.06); }


/* FAQ: migrate legacy brutalist styles to component-scoped `comp-faq`.
   We keep a minimal compatibility layer but remove aggressive global
   selectors that caused mixed visuals. Use `comp-faq` (Svelte) as
   canonical source of truth; component CSS will style details items
   and set background via --color-superficie. */

/* Compatibility helpers for legacy markup — limited and transparent */
.c-faq-section { margin: 80px 0 56px; padding: 0; }
.c-faq-list { border: 0; list-style: none; padding: 0; margin: 0; }

/* Remove heavy brutalist visuals — keep simple focus/marker fallback */
.c-faq-brutalist,
.c-faq-brutalist summary { background: transparent; color: inherit; }
.c-faq-brutalist summary::after { content: '+'; color: inherit; }

@media (max-width: 720px) { .c-faq-brutalist summary { font-size: 16px; } }



/* ====================================================================
   4.9 - Tarjeta de Información (.c-info-card)
==================================================================== */
.c-info-card {
  border: 2px solid var(--ink, #0a0a0a);
  background: var(--color-superficie);
  padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
    height: 100%;
    text-decoration: none;
    color: inherit;
    box-shadow: 4px 4px 0 var(--ink, #0a0a0a);
}

.c-info-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0 var(--ink, #0a0a0a);
    border-color: var(--guia-acento, var(--ink, #0a0a0a));
}

.c-info-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.c-info-card__title {
    margin: 0 0 1.5rem 0;
    font-family: var(--fuente-titulos);
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--ink, #0a0a0a);
    font-weight: 900;
}

.c-info-card__text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink, #0a0a0a);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    display: block;
}

@media (max-width: 768px) {
  .c-info-card {
    padding: 1.5rem 1.25rem;
    gap: 1rem;
  }
}

/* ====================================================================
   4.8 - Icono Stamp (.c-icon-stamp)
   Estilo "Sello/Pegatina": icono blanco en círculo negro con sombra dura
==================================================================== */
.c-icon-stamp {
  display: inline-block;
  width: 48px;
  height: 48px;
  padding: 11px;
  background: var(--color-texto-principal);
  border-radius: 50%;
  stroke: #ffffff;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(4px 4px 0px var(--color-brand));
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  flex-shrink: 0;
}

/* Modificadores de Marca */
.c-icon-stamp--beats {
  filter: drop-shadow(4px 4px 0 var(--color-marca-beats-red));
}

.c-icon-stamp--xiaomi {
  filter: drop-shadow(4px 4px 0 var(--color-marca-xiaomi-industrial));
}

.c-icon-stamp--samsung {
  filter: drop-shadow(4px 4px 0px var(--color-marca-samsung-blue));
}

.c-icon-stamp--apple {
  filter: drop-shadow(4px 4px 0 #1d1d1f);
}

.c-icon-stamp--google {
  filter: drop-shadow(4px 4px 0 var(--color-marca-google-blue, #4285f4));
}

.c-icon-stamp--microsoft {
  filter: drop-shadow(4px 4px 0 #0078d4);
}


.c-info-card:hover .c-icon-stamp {
  box-shadow: 5px 5px 0 var(--color-brand);
  transform: translate(-2px, -2px);
}

.c-info-card__link {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--ink, #0a0a0a);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    background: transparent;
    padding: 1.5rem 0 0 0;
    border: none;
    border-top: 1px solid rgba(0,0,0,0.15);
    width: 100%;
}

.c-info-card__link:hover {
  color: var(--guia-acento, var(--ink, #0a0a0a));
  gap: 0.8rem;
}

.c-info-card__arrow {
    transition: transform 0.2s ease;
    display: inline-block;
}

.c-info-card:hover .c-info-card__arrow {
    transform: translateX(5px);
}

.c-info-card__icon-feature {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-acento);
  display: block;
  text-align: center;
}

.c-info-card__figure {
  width: 100%;
  height: 170px;
  margin: 0 0 0.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.c-info-card__product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  display: block;
}

.c-info-card--transparent {
  background-color: var(--bg-2, #F5F4F0);
}

.c-info-card--transparent:hover {
  transform: translateY(-6px);
  border-color: var(--color-brand-sage);
  box-shadow: 0 10px 28px -6px rgba(26, 67, 59, 0.12);
}

/* 4.9.1 - Introducción de Sección Estándar */
.c-section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0.5rem auto 3.5rem auto;
  width: 100%;
  color: var(--color-texto-principal);
  font-size: 1.1rem;
  line-height: 1.75;
  font-weight: 500;
}

/* Overrides específicos para sección Pixel 10 essentials */
#pixel10-essentials .c-info-card {
  position: relative;
  overflow: hidden;
}

#pixel10-essentials .c-info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  opacity: .65;
}

#pixel10-essentials .is-camara::before {
  background: linear-gradient(90deg, #f472b6, #fb7185);
}

#pixel10-essentials .is-pantalla::before {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

#pixel10-essentials .is-bateria::before {
  background: linear-gradient(90deg, #34d399, #10b981);
}

#pixel10-essentials .is-ia::before {
  background: linear-gradient(90deg, #a78bfa, #8b5cf6);
}

#pixel10-essentials .is-seguridad::before {
  background: linear-gradient(90deg, #93c5fd, #60a5fa);
}

#pixel10-essentials .is-camara .c-info-card__title {
  color: #f8a6c5;
}

#pixel10-essentials .is-pantalla .c-info-card__title {
  color: #8ecbff;
}

#pixel10-essentials .is-bateria .c-info-card__title {
  color: #6ee7b7;
}

#pixel10-essentials .is-ia .c-info-card__title {
  color: #c4b5fd;
}

#pixel10-essentials .is-seguridad .c-info-card__title {
  color: #a7d8ff;
}

#pixel10-essentials ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

#pixel10-essentials li {
  background: rgba(255, 255, 255, .05);
  padding: .8rem 1rem;
  border-radius: 10px;
  margin-bottom: .8rem;
  line-height: 1.6;
  transition: transform .2s ease, background .2s ease;
}

#pixel10-essentials li:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateX(4px);
}

#pixel10-essentials .c-info-card__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .75rem;
}

#pixel10-essentials p,
#pixel10-essentials li {
  font-size: .97rem;
}

@media (min-width: 1024px) {
  #pixel10-essentials .grid-destacado {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  #pixel10-essentials .grid-destacado {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Eliminada Tarjeta Unificada para Guías obsoleta */


.c-botones-finales-comparador .fila-botones {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Eliminada Tabla Comparativa HUD obsoleta */


/* Eliminada Tarjeta de Guía obsoleta */


/* Eliminada Tarjeta Recomendación obsoleta */


.c-guia__titulo {
  font-family: var(--fuente-logos);
  font-size: 1.15rem;
  margin: 0 0 .25rem;
}

.badge {
  display: inline-block;
  padding: .25rem .6rem;
  border-radius: 999px;
  font-size: .75rem;
  letter-spacing: .02em;
  border: 1px solid var(--color-borde);
  color: var(--gris-200);
  margin-left: .5rem;
  vertical-align: middle;
}

.badge--google {
  border-color: var(--color-marca-google-blue);
}

.c-guia__features-list li.pro::before {
  filter: drop-shadow(0 0 6px rgba(66, 133, 244, .25));
}

.c-guia__features-list li.contra::before {
  filter: drop-shadow(0 0 6px rgba(234, 67, 53, .25));
}

/* Eliminados Overrides iPad obsoletos */


/* ====================================================================
   Fecha de Última Actualización y Author Byline
==================================================================== */
.c-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-texto-secundario);
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--color-borde);
  border-radius: 6px;
  background-color: var(--color-brand-sage-claro);
}

.c-author-byline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0 auto 1.5rem auto;
  padding: 0.4rem 0.9rem;
  background: var(--color-brand-sage-claro);
  border: 1px solid var(--color-brand-sage);
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.c-author-byline:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(26, 67, 59, 0.1);
}

.c-author-byline__avatar {
  background: var(--color-brand);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.7rem;
  box-shadow: 0 2px 8px rgba(26, 67, 59, 0.25);
}

.c-author-byline__text {
  font-size: 0.8rem;
  color: var(--color-texto-principal);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.c-author-byline__text span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-last-updated__icon {
  font-size: 1rem;
  color: var(--color-brand);
}
