/**
 * Theme Name: Hashtagmix
 * Stylesheet: main.css
 * Description: Editorial Design System inspirado no Gizmodo Brasil 2023.
 */

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --color-canvas: #F2F2F2;
  --color-surface: #FFFFFF;
  --color-text-primary: #111111;
  --color-text-body: #292929;
  --color-text-muted: #666666;
  --color-border: #E5E7EB;

  /* Category Accents */
  --cat-tecnologia: #0055FF;
  --cat-ciencia: #00A86B;
  --cat-cultura: #8A2BE2;
  --cat-internacional: #E65100;
  --cat-ofertas: #107C41;
  --cat-default: #333333;

  /* Typography */
  --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-reading: 'Lora', 'Merriweather', Georgia, serif;

  /* Spacings */
  --container-width: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-sheet: 0 -8px 30px rgba(0, 0, 0, 0.07);
}

/* ==========================================================================
   2. RESET & BASE ELEMENTS
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-canvas);
  color: var(--color-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-ui);
  color: var(--color-text-primary);
  font-weight: 800;
  line-height: 1.25;
}

p {
  margin-bottom: 1.25rem;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* ==========================================================================
   3. CATEGORY BADGES
   ========================================================================== */
.category-badge,
.cat-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--cat-color, var(--cat-default));
  padding-bottom: 2px;
  border-bottom: 2px solid var(--cat-color, var(--cat-default));
  line-height: 1;
  transition: opacity 0.2s ease;
}

.category-badge:hover,
.cat-badge:hover {
  opacity: 0.85;
}

/* ==========================================================================
   4. HEADER & NAVIGATION BAR
   ========================================================================== */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.top-bar {
  padding: 1rem 0 0.85rem;
  border-bottom: 1px solid #F3F4F6;
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Social Icons */
.header-social {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-pill);
  border: 1px solid #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  transition: all 0.2s ease;
}

.social-icon:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  transform: translateY(-1px);
}

/* Logo & Branding */
.site-branding {
  text-align: center;
}

.site-title {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: lowercase;
  margin: 0;
  line-height: 1;
}

.site-title a {
  color: #111111;
}

.site-title .logo-com {
  font-weight: 400;
  color: var(--color-text-muted);
}

.site-description {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
  letter-spacing: 0.01em;
}

/* Newsletter CTA Button */
.header-cta .btn-pill {
  display: inline-block;
  background: #111111;
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-pill);
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.header-cta .btn-pill:hover {
  background: #333333;
  transform: translateY(-1px);
}

/* Main Navigation Bar */
.nav-bar {
  padding: 0.65rem 0;
}

.nav-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Complete Menu Reset & Flex Row */
.main-nav,
.main-navigation {
  flex: 1;
}

.main-nav ul,
.main-navigation ul,
.nav-menu-list {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 2rem !important;
}

.main-nav li,
.main-navigation li,
.nav-menu-list li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main-nav a,
.main-navigation a,
.nav-menu-list a {
  text-decoration: none !important;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 600;
  color: #333333;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
  padding: 0.25rem 0;
  position: relative;
}

.main-nav a::after,
.nav-menu-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: currentColor;
  transition: width 0.2s ease;
}

.main-nav a:hover::after,
.nav-menu-list a:hover::after,
.current-menu-item a::after {
  width: 100%;
}

/* Dynamic Category Colors in Menu (Hover & Active) */
.menu-cat-tecnologia a:hover,
.menu-cat-tecnologia.current-menu-item a { color: var(--cat-tecnologia) !important; }

.menu-cat-ciencia a:hover,
.menu-cat-ciencia.current-menu-item a { color: var(--cat-ciencia) !important; }

.menu-cat-cultura a:hover,
.menu-cat-cultura.current-menu-item a { color: var(--cat-cultura) !important; }

.menu-cat-internacional a:hover,
.menu-cat-internacional.current-menu-item a { color: var(--cat-internacional) !important; }

.menu-cat-ofertas a:hover,
.menu-cat-ofertas.current-menu-item a { color: var(--cat-ofertas) !important; }

/* Quick Search Toggle & Overlay */
.header-search {
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  transition: color 0.2s;
}

.search-toggle:hover {
  color: #111111;
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.search-overlay.active {
  display: flex;
}

.search-overlay .search-form {
  position: relative;
  width: 100%;
  max-width: 600px;
}

.search-overlay .search-field {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid #FFFFFF;
  padding: 1rem 3rem 1rem 0;
  font-family: var(--font-ui);
  font-size: 1.75rem;
  font-weight: 600;
  color: #FFFFFF;
  outline: none;
}

.search-overlay .search-field::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-overlay .search-submit {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 0.5rem;
}

.search-overlay .close-search {
  position: absolute;
  top: -4rem;
  right: 0;
  background: none;
  border: none;
  color: #FFFFFF;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* Mobile Hamburger & Panel */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #111111;
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: #FFFFFF;
  z-index: 1000;
  padding: 4rem 2rem 2rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transition: right 0.3s ease;
}

.mobile-menu-panel.active {
  right: 0;
}

.mobile-menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-navigation ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-navigation a {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.mobile-overlay.active {
  display: block;
}

/* ==========================================================================
   5. HOMEPAGE EDITORIAL GRID (3 Columns)
   ========================================================================== */
.homepage-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
}

.section-title {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6B7280;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

/* Left Column: Recent Posts */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-post {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E5E7EB;
}

.card-post .card-thumb {
  width: 84px;
  height: 84px;
  min-width: 84px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.card-post .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.card-post:hover .card-thumb img {
  transform: scale(1.05);
}

.card-post .card-content {
  flex: 1;
}

.card-post .card-title {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.card-post .card-title a:hover {
  color: var(--cat-tecnologia);
}

/* Center Column: Hero Post */
.hero-post {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.hero-post .hero-image {
  width: 100%;
  height: 320px;
  overflow: hidden;
}

.hero-post .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-post:hover .hero-image img {
  transform: scale(1.03);
}

.hero-post .hero-content {
  padding: 1.75rem;
}

.hero-post .hero-title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0.5rem 0 0.75rem;
  line-height: 1.25;
}

.hero-post .hero-excerpt {
  font-size: 0.95rem;
  color: #4B5563;
  margin-bottom: 1rem;
}

/* Most Read Section */
.most-read {
  background: #FFFFFF;
  padding: 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
}

.most-read-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.most-read-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.most-read-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.most-read-number {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 900;
  color: #D1D5DB;
  line-height: 1;
  min-width: 24px;
}

.most-read-title {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0.2rem;
}

/* Right Column: Offers Cards */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-offer {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid #E5E7EB;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-offer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.card-offer .offer-image {
  height: 160px;
  overflow: hidden;
}

.card-offer .offer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-offer .offer-content {
  padding: 1rem;
}

.card-offer .card-offer-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.35rem 0;
  line-height: 1.35;
}

.card-offer .offer-price {
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cat-ofertas);
  margin-bottom: 0.5rem;
}

.card-offer .offer-link {
  display: inline-block;
  background: var(--cat-ofertas);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  text-align: center;
}

/* ==========================================================================
   6. SINGLE POST PAGE (IMERSIVE HERO BANNER & FOLHA A4 HIERARCHY)
   ========================================================================== */
.post-single-view {
  background-color: var(--color-canvas);
}

/* Immersive Hero Header (Clamp height and optimal object positioning) */
.post-hero {
  position: relative;
  width: 100%;
  height: clamp(520px, 60vh, 680px);
  min-height: 520px;
  background-color: #111111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0.92) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
  padding-bottom: 6.5rem; /* Generous bottom padding accommodates title and metadata above A4 overlap */
}

.hero-content {
  width: 100%;
}

.hero-badge-wrap {
  margin-bottom: 1rem;
}

.hero-badge-wrap .category-badge {
  color: #FFFFFF;
  border-bottom-color: currentColor;
}

.hero-title {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0.75rem 0 1rem 0;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #D1D5DB;
  margin: 0 0 1.5rem 0;
  font-weight: 400;
}

.hero-credit {
  font-size: 0.75rem;
  color: #9CA3AF;
  text-align: right;
  margin-top: 1rem;
}

/* Single Post Layout (Folha A4 + Sidebar) */
.single-layout-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  margin-top: -4.5rem; /* Controlled editorial overlap */
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
  align-items: start;
}

.single-main-column {
  position: relative;
}

/* Sticky Share Bar */
.sticky-share-bar {
  position: sticky;
  top: 100px;
  margin-left: -70px;
  float: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 20;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4B5563;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
}

.share-btn:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Folha A4 White Sheet */
.single-article-sheet,
.article-sheet {
  max-width: 780px;
  width: 100%;
  background-color: var(--color-surface);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.07);
  padding: 3rem 3.5rem;
  position: relative;
  z-index: 10;
  margin: 0;
}

/* Post Meta Inside Sheet */
.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: #6B7280;
  font-family: var(--font-ui);
}

.article-meta .author-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.article-meta .author-avatar img {
  border-radius: var(--radius-pill);
}

.article-meta .date-reading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta .meta-separator {
  color: #D1D5DB;
}

/* Editorial Body Typography (Long Form Articles) */
.article-body p,
.article-content p,
.entry-content p {
  font-family: 'Lora', serif;
  font-size: 1.125rem;
  line-height: 1.85;
  color: #292929;
  margin-bottom: 1.65rem;
  letter-spacing: -0.003em;
  max-width: 720px;
}

.article-body h2,
.article-content h2,
.entry-content h2 {
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 700;
  color: #111111;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-body h3,
.article-content h3,
.entry-content h3 {
  font-family: var(--font-ui);
  font-size: 1.35rem;
  font-weight: 600;
  color: #222222;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.article-body blockquote,
.article-content blockquote,
.entry-content blockquote {
  border-left: 4px solid #111111;
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  background: #F8F9FA;
  font-size: 1.15rem;
  color: #333333;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body ul,
.article-body ol,
.article-content ul,
.article-content ol,
.entry-content ul,
.entry-content ol {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #292929;
  margin: 1.5rem 0 1.75rem 1.5rem;
  padding-left: 1rem;
}

.article-body a,
.article-content a,
.entry-content a {
  color: var(--cat-tecnologia);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.article-tag {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
  background: #F3F4F6;
  color: #4B5563;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
}

.article-tag:hover {
  background: #E5E7EB;
  color: #111111;
}

/* Sidebar in Single View */
.single-sidebar {
  position: sticky;
  top: 100px;
  padding-top: 5rem;
}

.sidebar-heading {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #6B7280;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.related-item {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #E5E7EB;
}

.related-link {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.related-thumb {
  width: 68px;
  height: 68px;
  min-width: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-title {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-text-primary);
}

.related-arrow {
  color: var(--cat-tecnologia);
  margin-left: 2px;
}

.related-date {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* Offers Carousel Section in Single */
.offers-carousel-section {
  padding: 3rem 0;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
}

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

.carousel-title {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 800;
}

.carousel-nav {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  transition: all 0.2s;
}

.carousel-btn:hover {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-card {
  min-width: 220px;
  max-width: 220px;
  flex-shrink: 0;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.carousel-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.carousel-card-image {
  height: 140px;
  overflow: hidden;
}

.carousel-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card-content {
  padding: 0.85rem 1rem 1rem;
}

.carousel-card-content h4 {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.carousel-card-content .offer-price {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cat-ofertas);
}

/* ==========================================================================
   7. ARCHIVE PAGE (CATEGORY VIEW)
   ========================================================================== */
.archive-view {
  padding: 3rem 0;
}

.archive-header {
  margin-bottom: 2.5rem;
}

.category-header-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.15rem;
}

.category-prefix {
  font-family: var(--font-ui);
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--cat-accent, var(--cat-tecnologia));
  line-height: 1;
}

.archive-title {
  font-family: var(--font-ui);
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1;
  font-style: normal;
}

.archive-description {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 650px;
  line-height: 1.5;
}

/* Asymmetric Editorial Grid */
.archive-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
  align-items: start;
}

.archive-featured-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.archive-featured-card .featured-thumb {
  height: 340px;
  overflow: hidden;
}

.archive-featured-card .featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.archive-featured-card:hover .featured-thumb img {
  transform: scale(1.03);
}

.archive-featured-card .featured-content {
  padding: 2rem;
}

.archive-featured-card .featured-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0.75rem 0 1rem;
  line-height: 1.25;
}

.archive-featured-card .featured-excerpt {
  font-size: 1rem;
  color: #4B5563;
  margin-bottom: 1.25rem;
}

.archive-secondary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.archive-standard-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-standard-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.archive-standard-card .standard-thumb {
  height: 160px;
  overflow: hidden;
}

.archive-standard-card .standard-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-standard-card .standard-content {
  padding: 1rem 1.25rem 1.25rem;
}

.archive-standard-card .standard-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0.5rem 0 0.75rem;
}

.card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   8. PAGINATION
   ========================================================================== */
.pagination-wrapper {
  margin: 3rem 0;
  display: flex;
  justify-content: center;
}

.pagination-links,
.pagination .nav-links {
  display: flex;
  gap: 0.5rem;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  color: #333333;
}

.page-numbers.current {
  background: #111111;
  color: #FFFFFF;
  border-color: #111111;
}

.page-numbers:hover:not(.current) {
  background: #F3F4F6;
  border-color: #D1D5DB;
}

/* ==========================================================================
   9. FOOTER & REDESIGNED NEWSLETTER
   ========================================================================== */
.site-footer {
  background-color: #EEEEEE;
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
  border-top: 1px solid #E5E7EB;
}

/* Newsletter Section */
.footer-newsletter {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.newsletter-heading {
  font-family: var(--font-ui);
  font-size: 1.5rem;
  font-weight: 800;
  color: #111111;
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.form-row-email {
  flex: 1;
}

.form-row-email input {
  width: 100%;
  padding: 0.85rem 1.25rem;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #FFFFFF;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-row-email input:focus {
  border-color: #111111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.btn-submit {
  padding: 0.85rem 1.75rem;
  background: #111111;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn-submit:hover {
  background: #333333;
}

.newsletter-feedback {
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.newsletter-feedback.success {
  color: var(--cat-ciencia);
}

.newsletter-feedback.error {
  color: #DC2626;
}

/* Footer Bottom & Watermark */
.footer-bottom-container {
  position: relative;
  padding: 3.5rem 1.5rem 3.5rem;
}

.footer-watermark {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.04);
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-transform: lowercase;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}

.footer-bottom {
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-menu-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer-menu-list a {
  color: #666666;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-menu-list a:hover {
  color: #111111;
}

.footer-copy {
  font-size: 0.85rem;
  color: #777777;
  font-family: var(--font-body);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: #111111;
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: #333333;
}

/* ==========================================================================
   10. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .homepage-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .col-offers {
    grid-column: span 2;
  }
  
  .offers-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .single-layout-wrapper {
    grid-template-columns: 1fr;
  }

  .single-sidebar {
    position: static;
    padding-top: 2rem;
  }

  .sticky-share-bar {
    margin-left: 0;
    position: static;
    flex-direction: row;
    justify-content: center;
    margin-bottom: 2rem;
  }

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

@media (max-width: 768px) {
  .homepage-grid {
    grid-template-columns: 1fr;
  }

  .col-offers {
    grid-column: span 1;
  }

  .top-bar-inner {
    flex-direction: column;
    gap: 1rem;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .post-hero {
    height: auto;
    min-height: 460px;
    padding-bottom: 5.5rem;
  }

  .hero-inner {
    padding-bottom: 4.5rem;
  }

  .hero-title {
    font-size: 1.85rem;
  }

  .single-layout-wrapper {
    margin-top: -3.5rem;
  }

  .single-article-sheet,
  .article-sheet {
    padding: 2rem 1.5rem;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .archive-secondary-grid {
    grid-template-columns: 1fr;
  }
}
