*, *::before, *::after { box-sizing: border-box; }

:root {
  --purple: #6B3FA0;
  --purple-dark: #4A2470;
  --orange: #F97316;
  --green: #22C55E;
  --text: #111827;
  --muted: #6B7280;
  --border: #E5E7EB;
  --bg: #FAFAF8;
  --card-bg: #FFFFFF;
  --dark-bg: #1a0533;
  --max-width: 1160px;
  --font: system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 0.75rem;
}

body { font-family: var(--font); color: var(--text); background: var(--bg); margin: 0; line-height: 1.7; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
a { color: inherit; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.logo { text-decoration: none; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0; }
.logo .logo-mentes { color: var(--purple-dark); }
.logo .logo-plurais { color: var(--orange); }
.main-nav { display: flex; gap: 1.25rem; overflow-x: auto; scrollbar-width: none; flex: 1; justify-content: center; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { text-decoration: none; color: var(--muted); font-size: 0.8rem; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; transition: color 0.2s; white-space: nowrap; flex-shrink: 0; }
.main-nav a:hover { color: var(--purple); }
.btn-newsletter {
  background: var(--dark-bg);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-newsletter:hover { background: var(--purple); }
.nav-mobile-toggle { display: none; background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--text); flex-shrink: 0; }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #FAFAF8 60%, #F3EFF9 100%);
  padding: 4rem 0 3rem;
}
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #ECFDF5; color: #065F46; font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.85rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 1.25rem;
}
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--green); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title {
  font-size: clamp(2rem, 4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--text);
}
.hero-title em { font-style: italic; color: var(--orange); }
.hero-desc { font-size: 1.05rem; color: var(--muted); margin: 0 0 2rem; max-width: 480px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--dark-bg); color: #fff; text-decoration: none;
  padding: 0.75rem 1.75rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--purple); }
.btn-outline {
  background: transparent; color: var(--text); text-decoration: none;
  padding: 0.75rem 1.75rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 2px solid var(--border); transition: border-color 0.2s;
}
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }

/* Hero posts (right side) */
.hero-posts { display: flex; flex-direction: column; gap: 0.85rem; }
.hero-post-featured {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); text-decoration: none; display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-post-featured:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.12); }
.hero-post-featured .post-thumb-wrap {
  height: 180px; background: linear-gradient(135deg, #6B3FA0, #9B5DE5);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-post-featured .post-thumb-wrap img { width:100%; height:100%; object-fit:cover; }
.hero-post-featured .post-thumb-icon { font-size: 3rem; opacity: 0.6; }
.hero-post-featured .card-body { padding: 1rem 1.25rem; }
.hero-post-featured .card-cats { font-size: 0.7rem; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 0.4rem; }
.hero-post-featured .card-title { font-size: 1rem; font-weight: 700; line-height: 1.35; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-post-featured .card-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }

.hero-post-small {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06); text-decoration: none; display: flex; gap: 0;
  transition: box-shadow 0.2s;
}
.hero-post-small:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.hero-post-small .post-thumb-wrap {
  width: 90px; flex-shrink: 0; background: linear-gradient(135deg, #F97316, #FBBF24);
  display: flex; align-items: center; justify-content: center;
}
.hero-post-small .post-thumb-wrap img { width:100%; height:100%; object-fit:cover; }
.hero-post-small .post-thumb-icon { font-size: 1.5rem; opacity: 0.6; }
.hero-post-small .card-body { padding: 0.85rem 1rem; }
.hero-post-small .card-cats { font-size: 0.65rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 0.25rem; }
.hero-post-small .card-title { font-size: 0.875rem; font-weight: 700; line-height: 1.35; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-post-small .card-meta { font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }

/* ── CATEGORY FILTER ─────────────────────────────────── */
.filter-section { background: var(--text); padding: 0; }
.filter-tabs { display: flex; overflow-x: auto; gap: 0; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tab {
  flex-shrink: 0; text-decoration: none; color: #9CA3AF;
  padding: 1rem 1.5rem; font-size: 0.85rem; font-weight: 500;
  border-bottom: 3px solid transparent; transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.filter-tab:hover, .filter-tab.active { color: #fff; border-bottom-color: var(--orange); }

/* ── FEATURED SECTION ────────────────────────────────── */
.featured-section { padding: 3.5rem 0; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.75rem; }
.section-header h2 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.section-header .ver-todos { font-size: 0.875rem; font-weight: 600; color: var(--orange); text-decoration: none; }
.section-header .ver-todos:hover { text-decoration: underline; }

.featured-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.featured-grid .row-3 { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ── POST CARD ───────────────────────────────────────── */
.post-card {
  background: var(--card-bg); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.post-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.09); transform: translateY(-2px); }
.post-card .thumb-wrap {
  height: 180px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.post-card.card-sm .thumb-wrap { height: 140px; }
.post-card .thumb-wrap img { width:100%; height:100%; object-fit:cover; }
.post-card .thumb-icon { font-size: 2.5rem; opacity: 0.55; }
.post-card .card-body { padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card-badge { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.badge {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
  padding: 0.2rem 0.6rem; border-radius: 999px;
}
.badge-cat { background: #EDE9FE; color: var(--purple); }
.badge-tag { background: #FEF3C7; color: #92400E; }
.post-card .card-title { font-size: 1rem; font-weight: 700; line-height: 1.4; margin: 0 0 0.5rem; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.card-lg .card-title { font-size: 1.15rem; -webkit-line-clamp: 4; }
.post-card .card-excerpt { font-size: 0.875rem; color: var(--muted); margin: 0 0 0.75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-author { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; }
.author-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  background: var(--purple); color: #fff; display: flex; align-items: center;
  justify-content: center; font-size: 0.75rem; font-weight: 700; flex-shrink: 0;
}
.card-author-name { font-size: 0.78rem; color: var(--muted); }
.card-read-time { font-size: 0.75rem; color: var(--muted); margin-left: auto; }

/* Thumb color palettes */
.thumb-purple  { background: linear-gradient(135deg, #6B3FA0, #9B5DE5); }
.thumb-orange  { background: linear-gradient(135deg, #F97316, #FBBF24); }
.thumb-green   { background: linear-gradient(135deg, #059669, #34D399); }
.thumb-teal    { background: linear-gradient(135deg, #0D9488, #2DD4BF); }
.thumb-indigo  { background: linear-gradient(135deg, #4F46E5, #818CF8); }
.thumb-rose    { background: linear-gradient(135deg, #E11D48, #FB7185); }

/* ── QUOTE SECTION ───────────────────────────────────── */
.quote-section {
  background: var(--dark-bg);
  padding: 4.5rem 0;
  text-align: center;
}
.quote-section blockquote {
  font-size: clamp(1.25rem, 3vw, 1.85rem);
  font-weight: 700;
  font-style: italic;
  color: #fff;
  max-width: 760px;
  margin: 0 auto 1rem;
  line-height: 1.45;
}
.quote-section cite { font-size: 0.9rem; color: #A78BFA; font-style: normal; letter-spacing: .05em; }

/* ── NEWSLETTER SECTION ──────────────────────────────── */
.newsletter-section { padding: 4rem 0; }
.newsletter-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 1.25rem; padding: 3rem 2rem;
  text-align: center; max-width: 560px; margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.newsletter-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.newsletter-card h3 { font-size: 1.5rem; font-weight: 800; margin: 0 0 0.75rem; }
.newsletter-card p { color: var(--muted); margin: 0 0 1.75rem; font-size: 0.95rem; }
.newsletter-form { display: flex; gap: 0; border: 1.5px solid var(--border); border-radius: 999px; overflow: hidden; }
.newsletter-form input {
  flex: 1; border: none; padding: 0.75rem 1.25rem; font-size: 0.95rem;
  outline: none; background: transparent; color: var(--text);
}
.newsletter-form button {
  background: var(--dark-bg); color: #fff; border: none; cursor: pointer;
  padding: 0.75rem 1.5rem; font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s; white-space: nowrap;
}
.newsletter-form button:hover { background: var(--purple); }

/* ── FOOTER ──────────────────────────────────────────── */
.site-footer { background: #111827; color: #9CA3AF; padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 2.5rem; }
.footer-brand .footer-logo { font-size: 1.25rem; font-weight: 800; text-decoration: none; display: block; margin-bottom: 0.75rem; }
.footer-brand .footer-logo .logo-mentes { color: #E5E7EB; }
.footer-brand .footer-logo .logo-plurais { color: var(--orange); }
.footer-brand p { font-size: 0.875rem; line-height: 1.7; margin: 0; }
.footer-col h4 { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #6B7280; margin: 0 0 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul li a { font-size: 0.875rem; color: #9CA3AF; text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #F9FAFB; }
.footer-bottom { border-top: 1px solid #1F2937; padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.footer-bottom p { font-size: 0.8rem; margin: 0; }
.footer-bottom .made-with { font-size: 0.8rem; color: #6B7280; }
.footer-bottom .made-with span { color: var(--orange); }

/* ── SINGLE POST ─────────────────────────────────────── */
.post-page { padding: 3rem 0 5rem; }
.single-post { max-width: 740px; margin: 0 auto; }
.post-header { margin-bottom: 2rem; }
.post-header .post-category-link { font-size: 0.75rem; font-weight: 700; color: var(--purple); text-transform: uppercase; letter-spacing: .07em; text-decoration: none; display: inline-block; margin-bottom: 0.75rem; }
.post-header .post-title { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 1rem; }
.post-header .post-meta { color: var(--muted); font-size: 0.875rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.post-header .post-meta .author-chip { display: flex; align-items: center; gap: 0.5rem; }
.post-header .post-meta .author-chip img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-featured-image { margin: 0 0 2.5rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-image img { width: 100%; max-height: 500px; object-fit: cover; display: block; }
.post-content { font-size: 1.075rem; }
.post-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.5rem 0 0.75rem; }
.post-content h3 { font-size: 1.25rem; font-weight: 600; margin: 2rem 0 0.5rem; }
.post-content p { margin-bottom: 1.35rem; }
.post-content ul, .post-content ol { padding-left: 1.5rem; margin-bottom: 1.35rem; }
.post-content li { margin-bottom: 0.4rem; }
.post-content blockquote { border-left: 4px solid var(--orange); padding: 0.5rem 1.25rem; color: var(--muted); font-style: italic; margin: 2rem 0; background: #FFF7ED; border-radius: 0 0.5rem 0.5rem 0; }
.post-content a { color: var(--purple); text-decoration: underline; }
.post-content img { max-width: 100%; border-radius: 0.5rem; }
.post-content .post-inline-image { margin: 2rem 0; text-align: center; }
.post-content .post-inline-image img { max-width: 100%; border-radius: 0.5rem; }
.post-content .post-inline-image figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); font-style: italic; }
.post-content .video-embed { margin: 2rem 0; position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); background: #000; }
.post-content .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* Tags */
.post-tags { margin: 2.5rem 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag { background: #F3F4F6; color: var(--muted); font-size: 0.8rem; padding: 0.3rem 0.85rem; border-radius: 999px; text-decoration: none; }
.tag:hover { background: #EDE9FE; color: var(--purple); }

/* Author Box */
.author-box { background: #F9FAFB; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-top: 2.5rem; }
.author-box-inner { display: flex; gap: 1.25rem; align-items: flex-start; }
.author-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.author-photo-placeholder { width: 72px; height: 72px; border-radius: 50%; background: var(--purple); color: white; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; font-weight: 700; flex-shrink: 0; }
.author-label { margin: 0; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.author-name { margin: 0.15rem 0 0; font-size: 1rem; font-weight: 700; }
.author-expertise { margin: 0.2rem 0 0; font-size: 0.8rem; color: var(--purple); font-weight: 500; }
.author-bio { margin: 0.5rem 0 0; font-size: 0.9rem; color: var(--muted); }

/* Category page */
.category-page { padding: 2.5rem 0 5rem; }
.category-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border); }
.category-header h1 { font-size: 1.75rem; font-weight: 800; margin: 0; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; }
.pagination-btn { padding: 0.5rem 1.5rem; background: var(--dark-bg); color: #fff; border-radius: 999px; text-decoration: none; font-size: 0.9rem; transition: background 0.2s; }
.pagination-btn:hover { background: var(--purple); }
.pagination-info { color: var(--muted); font-size: 0.9rem; }

/* Preview Banner */
.preview-banner { background: #FEF3C7; border-bottom: 2px solid #F59E0B; padding: 0.75rem 1.5rem; text-align: center; font-size: 0.875rem; font-weight: 600; color: #92400E; }

/* 404 */
.page-404 { text-align: center; padding: 5rem 1.5rem; }
.page-404 h1 { font-size: 5rem; font-weight: 900; color: var(--purple); margin: 0; }
.page-404 p { color: var(--muted); font-size: 1.1rem; }
.page-404 a { color: var(--purple); font-weight: 600; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 2rem; }
  .hero-posts { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-post-featured { grid-column: 1 / -1; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-grid .row-3 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .main-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 1rem 1.5rem; gap: 0.75rem; border-bottom: 1px solid var(--border); z-index: 99; }
  .main-nav.open { display: flex; }
  .nav-mobile-toggle { display: block; }
  .hero { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 1.85rem; }
  .hero-posts { grid-template-columns: 1fr; }
  .featured-grid .row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .quote-section { padding: 3rem 0; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form button { border-radius: 0 0 var(--radius) var(--radius); }
}
