/* ============================================================
   Finally Cars — Blog theme
   Coherente con finallycars.com (mismos tokens, nav y footer)
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f5f5f5;
  --card-bg:   #ffffff;
  --border:    #e0e0e0;
  --ink:       #0a0a0a;
  --gray:      #666666;
  --gray-dk:   #333333;
  --gold:      #C9A84C;
  --gold-lt:   #E8C96C;
  --gold-dim:  rgba(201, 168, 76, 0.12);
  --red:       #e03030;
  --nav-bg:    rgba(8, 8, 8, 0.97);
  --footer-bg: #0a0a0a;
  --font-display: 'Bebas Neue', 'Oswald', sans-serif;
  --font-body:    'Inter', sans-serif;
  --nav-h: 72px;
  --radius: 4px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 760px; }

/* ---------- Botones (idénticos al sitio) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; border: none;
  transition: all 0.3s var(--ease-out);
}
.btn--primary { background: var(--gold); color: #0a0a0a; }
.btn--primary:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid rgba(0,0,0,0.2); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ---------- Nav (réplica exacta del header del sitio) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
}
.nav__container {
  display: flex; align-items: center; height: 100%;
  max-width: 1280px; margin: 0 auto; padding: 0 32px; gap: 48px;
}
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo-img {
  height: 64px; width: auto; object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.15));
  transition: opacity 0.2s;
}
.nav__logo:hover .nav__logo-img { opacity: 0.85; }
.nav__links { display: flex; gap: 36px; margin-left: auto; list-style: none; }
.nav__links a {
  font-size: 11px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__cta { flex-shrink: 0; }

/* Hamburguesa (oculta en desktop) */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: #ffffff;
  transition: all 0.3s var(--ease-out);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Overlay de menú móvil */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  background: #0a0a0a;
  z-index: 9998;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mobile-menu.active { display: flex; }
.mobile-menu__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.mobile-menu__close:hover { background: var(--gold); color: #0a0a0a; border-color: var(--gold); }
.mobile-menu__nav {
  display: flex; flex-direction: column;
  align-items: center; gap: 36px;
  margin-bottom: 48px;
}
.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 32px; letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.mobile-menu__link:hover,
.mobile-menu__link:active { color: var(--gold); }
.mobile-menu__cta { font-size: 13px; }

/* Nav en móvil: oculta links + CTA, muestra hamburguesa */
@media (max-width: 900px) {
  .nav__container { justify-content: space-between; gap: 20px; padding: 0 20px; }
  .nav__logo-img { height: 44px; max-width: 150px; }
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; margin-left: 0; flex-shrink: 0; }
}

/* ---------- Blog header ---------- */
.blog-hero {
  margin-top: var(--nav-h);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 72px 0 56px;
  text-align: center;
}
.blog-hero__kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.blog-hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(48px, 7vw, 88px); line-height: 0.95;
  letter-spacing: 0.01em; color: var(--ink);
}
.blog-hero__desc { margin: 16px auto 0; max-width: 560px; color: var(--gray); font-size: 16px; }

/* ---------- Grid de posts ---------- */
.posts { padding: 72px 0 96px; }
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  background: transparent;
}
@media (max-width: 900px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .post-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; background: var(--card-bg);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); z-index: 2; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 24px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.card__tag {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}
.card__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; line-height: 1.05; color: var(--ink); margin-bottom: 10px;
}
.card__excerpt { font-size: 14px; color: var(--gray); flex: 1; }
.card__meta {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gray);
}

/* ---------- Artículo ---------- */
.article { margin-top: var(--nav-h); }
.article__header { background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 72px 0 48px; text-align: center; }
.article__tag { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.article__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 6vw, 76px); line-height: 0.98; color: var(--ink); max-width: 900px; margin: 0 auto; }
.article__meta { margin-top: 20px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); }
.article__feature { max-width: 1100px; margin: -0px auto 0; }
.article__feature img { width: 100%; }
.article__feature { margin-top: 40px; }

.prose { padding: 56px 0 80px; font-size: 18px; color: var(--gray-dk); }
.prose > * { margin-bottom: 1.4em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.05; color: var(--ink); margin-top: 1.6em; letter-spacing: 0.01em; }
.prose h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.prose a:hover { border-bottom-color: var(--gold); }
.prose img { border-radius: var(--radius); margin: 1.6em auto; }
.prose blockquote { border-left: 3px solid var(--gold); padding-left: 24px; color: var(--gray); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.5em; }
.prose code { background: var(--bg-alt); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }

.article__footer { border-top: 1px solid var(--border); padding: 40px 0 0; text-align: center; }
.article__back { color: var(--gold); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- Paginación ---------- */
.pagination { display: flex; justify-content: center; gap: 16px; margin-top: 56px; }
.pagination a, .pagination span {
  font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 12px 24px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Footer (réplica del sitio) ---------- */
.footer { background: var(--footer-bg); border-top: 3px solid var(--gold); color: #fff; }
.footer__top { padding: 64px 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__logo-img { height: 56px; width: auto; margin-bottom: 18px; }
.footer__brand p { color: rgba(255,255,255,0.6); font-size: 14px; max-width: 380px; }
.footer__social { display: flex; gap: 14px; margin-top: 20px; }
.footer__social a {
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; color: #fff; transition: all 0.2s;
}
.footer__social a:hover { background: var(--gold); border-color: var(--gold); color: #0a0a0a; }
.footer__social svg { width: 18px; height: 18px; }
.footer__col h4 { font-family: var(--font-display); font-weight: 400; font-size: 20px; letter-spacing: 0.05em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer__col a { display: block; color: rgba(255,255,255,0.6); font-size: 14px; margin-bottom: 12px; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; text-align: center; }
.footer__bottom p { color: rgba(255,255,255,0.4); font-size: 12px; letter-spacing: 0.05em; }

/* ---------- Estado vacío ---------- */
.empty { text-align: center; padding: 120px 0; color: var(--gray); }
