/* =============================================
   EL RELATOR OSCURO — Design System
   Paleta: Branco, Cinza, Vermelho (#D32F2F)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&family=Special+Elite&display=swap');

/* ── CSS VARIABLES ──────────────────────────── */
:root {
  --white: #FFFFFF;
  --gray-50: #FAFAFA;
  --gray-100: #F5F5F5;
  --gray-200: #E5E5E5;
  --gray-300: #D4D4D4;
  --gray-400: #A3A3A3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #EF5350;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-logo: 'Special Elite', 'Courier New', monospace;

  --max-width: 1200px;
  --content-width: 780px;
  --sidebar-width: 340px;
  --gap: 40px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);

  --transition: 0.25s ease;
}



/* ── RESET & BASE ───────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

strong,
b {
  color: var(--gray-900);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

button {
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--gray-900);
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.35rem;
}

/* ── UTILITY ────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ── HEADER ─────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: none;
  box-shadow: none;
}

/* ── SUBNAV ────────────────────────────────── */
.subnav {
  position: sticky;
  top: 68px;
  z-index: 99;
  background: var(--gray-900);
  border-bottom: 1px solid var(--gray-800);
  box-shadow: var(--shadow-sm);
}

.subnav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 42px;
}

.subnav__link {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-300);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.subnav__link:hover {
  color: var(--red);
  background: rgba(255, 255, 255, 0.06);
}

.subnav__link--active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 -2px 0 var(--red);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo img {
  height: 42px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-logo);
  font-size: 1.3rem;
  color: var(--gray-900);
  letter-spacing: 1px;
  white-space: nowrap;
}

.header__logo-text span {
  color: var(--red);
}

/* Search */
.header__search {
  flex: 1;
  max-width: 420px;
  position: relative;
}

.header__search input {
  width: 100%;
  height: 40px;
  padding: 0 48px 0 16px;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  transition: border-color var(--transition);
  outline: none;
}

.header__search input:focus {
  border-color: var(--gray-400);
}

.header__search input::placeholder {
  color: var(--gray-400);
}

.header__search-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  border: none;
  border-radius: 0 4px 4px 0;
  color: var(--white);
  cursor: pointer;
  transition: background var(--transition);
}

.header__search-btn:hover {
  background: var(--red-dark);
}

.header__search-btn svg {
  width: 16px;
  height: 16px;
}

/* Admin Button */
.header__admin-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: var(--gray-900);
  color: var(--white);
  border: none;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.header__admin-btn:hover {
  background: var(--gray-700);
  color: var(--white);
}

.header__admin-btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile hamburger - search */
.header__mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--gray-800);
  padding: 4px;
}

@media (max-width: 768px) {
  .header__search {
    display: none;
  }

  .header__logo-text {
    font-size: 1.05rem;
  }

  .header__admin-btn span {
    display: none;
  }

  .header__admin-btn {
    padding: 8px 12px;
  }

  .header__mobile-toggle {
    display: flex;
  }

  .header__search.active {
    display: block;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    padding: 12px 24px;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    max-width: 100%;
  }

  .subnav__inner {
    height: 36px;
  }

  .subnav__link {
    font-size: 0.72rem;
    padding: 0 12px;
    letter-spacing: 0;
  }
}

/* ── MAIN LAYOUT ────────────────────────────── */
.main-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--gap);
  padding-top: 32px;
  padding-bottom: 60px;
}

.main-layout--full {
  grid-template-columns: 1fr;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

/* ── HERO / FEATURED POST ───────────────────── */
.hero {
  margin-bottom: 40px;
}

.hero__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--gray-900);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.hero__image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.hero__card:hover .hero__image {
  opacity: 0.4;
}



.hero__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 32px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero__category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 12px;
  transition: all var(--transition);
}

.hero__category:hover {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.hero__title {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.hero__card:hover .hero__title {
  color: var(--red-light);
}

.hero__meta {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .hero__image {
    height: 280px;
  }

  .hero__title {
    font-size: 1.35rem;
  }

  .hero__content {
    padding: 24px 20px;
  }
}

/* ── POST CARDS ─────────────────────────────── */
.posts-section__title {
  font-size: 1.4rem;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 8px;
}

.posts-section__title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--red);
  border-radius: 2px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.post-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--gray-100);
  transition: opacity var(--transition);
}

.post-card:hover .post-card__image {
  opacity: 0.8;
}

.post-card__body {
  padding: 20px;
}

.post-card__category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 8px;
  transition: all var(--transition);
}

.post-card__category:hover {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.post-card__title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition);
}

.post-card:hover .post-card__title {
  color: var(--red);
}

.post-card__summary {
  font-size: 0.9rem;
  color: var(--gray-500);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.post-card__meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-card__meta svg {
  width: 14px;
  height: 14px;
}

/* ── SINGLE POST PAGE ───────────────────────── */
.post-header {
  margin-bottom: 32px;
}

.post-header__category {
  display: inline-block;
  padding: 4px 14px;
  background: var(--red);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: all var(--transition);
}

.post-header__category:hover {
  background: transparent;
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.post-header__title {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--gray-500);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.post-header__meta svg {
  width: 16px;
  height: 16px;
  margin-right: 4px;
}

.post-featured-image {
  width: 100%;
  border-radius: var(--radius-lg);
  margin-bottom: 32px;
  max-height: 480px;
  object-fit: cover;
}

/* Post content typography */
.post-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--gray-700);
}

.post-content h2 {
  margin: 36px 0 16px;
  font-size: 1.6rem;
}

.post-content h3 {
  margin: 28px 0 12px;
  font-size: 1.25rem;
}

.post-content p {
  margin-bottom: 18px;
}

.post-content blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--red);
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}

.post-content ul,
.post-content ol {
  margin: 16px 0;
  padding-left: 28px;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content strong,
.post-content b {
  color: var(--gray-900) !important;
  font-weight: 600;
}

.post-content [style*="color"] {
  color: inherit !important;
}

.post-content a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Ad slots — reserved blank space for future AdSense */
.ad-slot {
  margin: 36px 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot--sidebar {
  min-height: 250px;
  position: sticky;
  top: 88px;
}

.ad-slot--leaderboard {
  min-height: 90px;
}

/* YouTube embed */
.youtube-embed {
  margin: 40px 0;
}

.youtube-embed__title {
  font-size: 1.1rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
}

.youtube-embed__title svg {
  color: var(--red);
  width: 24px;
  height: 24px;
}

.youtube-embed__wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.youtube-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Related posts */
.related-posts {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--gray-200);
}

.related-posts__title {
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-posts__title::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--red);
  border-radius: 2px;
}

/* ── SIDEBAR ────────────────────────────────── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar__section {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.sidebar__title {
  font-size: 1.05rem;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--red);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sidebar__category-link {
  display: block;
  padding: 8px 0;
  color: var(--gray-600);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-200);
  text-decoration: none;
  transition: color var(--transition);
}

.sidebar__category-link:hover {
  color: var(--red);
}

.sidebar__post-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  cursor: pointer;
  transition: background var(--transition);
}

.sidebar__post-item:last-child {
  border-bottom: none;
}

.sidebar__post-thumb {
  width: 70px;
  height: 52px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: var(--gray-200);
  transition: opacity var(--transition);
}

.sidebar__post-item:hover .sidebar__post-thumb {
  opacity: 0.8;
}

.sidebar__post-info {
  flex: 1;
}

.sidebar__post-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  transition: color var(--transition);
}

.sidebar__post-item:hover .sidebar__post-title {
  color: var(--red);
}

.sidebar__post-date {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ── CATEGORIES PAGE ───────────────────────── */
.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}

.categories-list__item:first-child {
  border-top: 1px solid var(--gray-200);
}

.categories-list__item a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
}

.categories-list__item a:hover {
  text-decoration: underline;
  color: var(--red);
}

.categories-list__item span {
  color: var(--gray-500);
  font-size: 0.85rem;
  white-space: nowrap;
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand-name {
  font-family: var(--font-logo);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.footer__brand-name span {
  color: var(--red);
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-400);
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  color: var(--gray-400);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--red);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: 50%;
  color: var(--gray-400);
  transition: background var(--transition), color var(--transition);
}

.footer__social a:hover {
  background: var(--red);
  color: var(--white);
}

.footer__social a svg {
  width: 18px;
  height: 18px;
}

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ── COOKIE BANNER ──────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--gray-900);
  color: var(--gray-300);
  padding: 20px 24px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  display: none;
  animation: slideUp 0.4s ease;
}

.cookie-banner.active {
  display: block;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.cookie-banner__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner__text {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.5;
}

.cookie-banner__text a {
  color: var(--red-light);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 10px 24px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition);
}

.cookie-banner__btn--accept {
  background: var(--red);
  color: #ffffff;
}

.cookie-banner__btn--accept:hover {
  background: var(--red-dark);
}

.cookie-banner__btn--reject {
  background: var(--gray-700);
  color: var(--gray-300);
}

.cookie-banner__btn--reject:hover {
  background: var(--gray-600);
}

/* ── ADMIN PANEL ────────────────────────────── */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}

.admin-login__card {
  width: 100%;
  max-width: 400px;
  background: var(--white);
  padding: 48px 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login__logo {
  font-family: var(--font-logo);
  font-size: 1.6rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.admin-login__logo span {
  color: var(--red);
}

.admin-login__subtitle {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.admin-login__error {
  display: none;
  padding: 10px 16px;
  background: rgba(211, 47, 47, 0.1);
  color: var(--red);
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 16px;
  text-align: left;
}

.admin-login__error.active {
  display: block;
}

/* Form controls */
.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gray-400);
}

.form-group textarea {
  min-height: 200px;
  resize: vertical;
  line-height: 1.6;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background var(--transition), transform 0.15s ease;
  cursor: pointer;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--red);
  color: #ffffff;
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
}

.btn--secondary:hover {
  background: var(--gray-200);
}

.btn--danger {
  background: transparent;
  color: var(--red);
  border: 1px solid var(--red);
}

.btn--danger:hover {
  background: var(--red);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

/* Admin dashboard */
.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--gray-900);
  padding: 24px 0;
  flex-shrink: 0;
}

.admin-sidebar__logo {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  color: var(--white);
  padding: 0 24px;
  margin-bottom: 32px;
}

.admin-sidebar__logo span {
  color: var(--red);
}

.admin-sidebar__nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  color: var(--gray-400);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.admin-sidebar__nav a:hover,
.admin-sidebar__nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.admin-sidebar__nav a.active::before {
  content: '';
  width: 3px;
  height: 100%;
  background: var(--red);
  position: absolute;
  left: 0;
  top: 0;
}

.admin-sidebar__nav a {
  position: relative;
}

.admin-sidebar__nav a svg {
  width: 18px;
  height: 18px;
}

.admin-main {
  flex: 1;
  background: var(--gray-50);
  padding: 32px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.admin-header h1 {
  font-size: 1.5rem;
}

.admin-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

/* Post table */
.posts-table {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.posts-table thead {
  background: var(--gray-50);
}

.posts-table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-200);
}

.posts-table td {
  padding: 14px 20px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: middle;
}

.posts-table tr:last-child td {
  border-bottom: none;
}

.posts-table tr:hover td {
  background: var(--gray-50);
}

.posts-table__actions {
  display: flex;
  gap: 8px;
}

.posts-table__status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 600;
}

.posts-table__status--published {
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
}

.posts-table__status--draft {
  background: rgba(237, 108, 2, 0.1);
  color: #ed6c02;
}

/* Admin editor */
.editor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}

.editor-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-200);
}

.editor-toolbar {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  padding: 8px;
  background: var(--gray-50);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--gray-300);
  border-bottom: none;
  flex-wrap: wrap;
}

.editor-toolbar button {
  padding: 6px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--gray-600);
  font-size: 0.85rem;
  transition: all var(--transition);
}

.editor-toolbar button:hover {
  background: var(--gray-200);
  border-color: var(--gray-300);
}

.form-group textarea.editor-content {
  border-radius: 0 0 var(--radius) var(--radius);
  min-height: 350px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Admin mobile layout */
.admin-mobile-header {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--gray-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.admin-mobile-header__logo {
  font-family: var(--font-logo);
  font-size: 1.2rem;
}

.admin-mobile-header__logo span {
  color: var(--red);
}

.admin-mobile-header__btn {
  background: none;
  border: none;
  color: var(--white);
  padding: 4px;
  cursor: pointer;
  display: flex;
}

.admin-mobile-header__btn svg {
  width: 24px;
  height: 24px;
}

.admin-sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.admin-sidebar-backdrop.active {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .admin-wrapper {
    flex-direction: column;
  }

  .admin-mobile-header {
    display: flex;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.2);
  }

  .admin-sidebar.active {
    transform: translateX(0);
  }

  .admin-main {
    padding: 20px 16px;
    width: 100%;
  }

  .posts-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    margin-bottom: 24px;
  }

  .posts-table {
    min-width: 480px;
  }

  .posts-table th,
  .posts-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  .posts-table th {
    font-size: 0.75rem;
  }

  .posts-table__actions {
    gap: 4px;
  }

  .posts-table__actions .btn--sm {
    padding: 6px 10px;
  }
}

/* ── LEGAL PAGES ────────────────────────────── */
.legal-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.legal-page h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.legal-page__updated {
  color: var(--gray-400);
  font-size: 0.85rem;
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 32px 0 12px;
  color: var(--gray-800);
}

.legal-page p {
  margin-bottom: 16px;
  color: var(--gray-600);
  line-height: 1.7;
}

.legal-page ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-page li {
  margin-bottom: 8px;
  color: var(--gray-600);
}

/* ── CONTACT PAGE ───────────────────────────── */
.contact-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.contact-page h1 {
  text-align: center;
  margin-bottom: 8px;
}

.contact-page__subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 36px;
}

.contact-success {
  display: none;
  text-align: center;
  padding: 40px;
}

.contact-success.active {
  display: block;
}

.contact-success svg {
  color: #2e7d32;
  margin-bottom: 16px;
}

/* ── ABOUT PAGE ─────────────────────────────── */
.about-page {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.about-page h1 {
  text-align: center;
  margin-bottom: 8px;
}

.about-page__subtitle {
  text-align: center;
  color: var(--gray-500);
  margin-bottom: 40px;
}

.about-page__content {
  line-height: 1.8;
  color: var(--gray-600);
}

.about-page__content p {
  margin-bottom: 18px;
}

.about-page__content h2 {
  margin: 36px 0 16px;
  color: var(--gray-800);
}

.about-highlight {
  background: var(--gray-50);
  border-left: 4px solid var(--red);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 28px 0;
}

/* ── SEARCH RESULTS ─────────────────────────── */
.search-results__header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-200);
}

.search-results__query {
  color: var(--red);
  font-style: italic;
}

.search-results__count {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-top: 4px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

.no-results svg {
  width: 64px;
  height: 64px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

/* ── LOADING & STATES ───────────────────────── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* ── TOAST NOTIFICATIONS ────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 14px 20px;
  background: var(--gray-900);
  color: #ffffff;
  border-radius: var(--radius);
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 360px;
}

.toast--success {
  border-left: 4px solid #2e7d32;
}

.toast--error {
  border-left: 4px solid var(--red);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ── PAGINATION ─────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination__btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.pagination__btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.pagination__btn.active {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}

.pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── RICH TEXT EDITOR ───────────────────────── */
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-300);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  flex-wrap: wrap;
}

.rich-toolbar__group {
  display: flex;
  align-items: center;
  gap: 2px;
}

.rich-toolbar__sep {
  width: 1px;
  height: 24px;
  background: var(--gray-300);
  margin: 0 6px;
}

.rich-toolbar__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 32px;
  padding: 0 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  color: var(--gray-700);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.rich-toolbar__btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-400);
  color: var(--gray-900);
}

.rich-toolbar__btn:active {
  background: var(--gray-200);
}

.rich-editor {
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--gray-300);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--white);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--gray-800);
  outline: none;
  cursor: text;
}

.rich-editor:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.1);
}

.rich-editor:empty::before {
  content: 'Escribe tu artículo aquí...';
  color: var(--gray-400);
  pointer-events: none;
}

.rich-editor h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 20px 0 10px;
  color: var(--gray-900);
}

.rich-editor h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 16px 0 8px;
  color: var(--gray-900);
}

.rich-editor strong,
.rich-editor b {
  color: var(--gray-900) !important;
}

.rich-editor [style*="color"] {
  color: inherit !important;
}

.rich-editor p {
  margin-bottom: 12px;
}

.rich-editor blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--red);
  background: var(--gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--gray-600);
}

.rich-editor ul,
.rich-editor ol {
  margin: 12px 0;
  padding-left: 24px;
}

.rich-editor ul {
  list-style: disc;
}

.rich-editor ol {
  list-style: decimal;
}

.rich-editor li {
  margin-bottom: 6px;
}

.rich-editor a {
  color: var(--red);
  text-decoration: underline;
}

.rich-editor hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: 20px 0;
}

/* ── PRINT ──────────────────────────────────── */
@media print {

  .header,
  .footer,
  .cookie-banner,
  .ad-slot,
  .sidebar {
    display: none !important;
  }

  .main-layout {
    grid-template-columns: 1fr !important;
  }

  body {
    font-size: 12pt;
  }
}

/* ── DARK THEME ────────────────────────────── */
[data-theme="dark"] {
  --white: #171717;
  --gray-50: #262626;
  --gray-100: #262626;
  --gray-200: #404040;
  --gray-300: #525252;
  --gray-400: #737373;
  --gray-500: #A3A3A3;
  --gray-600: #D4D4D4;
  --gray-700: #E5E5E5;
  --gray-800: #F5F5F5;
  --gray-900: #FAFAFA;
}

.header__theme-toggle {
  background: none;
  border: none;
  color: var(--gray-800);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__theme-toggle svg {
  width: 20px;
  height: 20px;
  stroke: var(--gray-800);
}

.theme-icon-sun {
  display: block;
}

.theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-icon-moon {
  display: block;
}

.header__inner {
  gap: 12px;
}

/* Social Original Colors */
.footer__social a[href*="x.com"],
.footer__social a[href*="twitter.com"] {
  color: #FFFFFF !important;
}

[data-theme="dark"] .footer__social a[href*="x.com"],
[data-theme="dark"] .footer__social a[href*="twitter.com"] {
  color: #000000 !important;
}

.footer__social a[href*="spotify.com"] {
  color: #1DB954 !important;
}

.footer__social a[href*="youtube.com"] {
  color: #FF0000 !important;
}