/* ============================================
   VUME — Blog
   Mismos tokens que la home (index.html). Si cambia la marca allí,
   se cambia aquí también.
   Pensado para publicar poco: cada artículo ocupa todo el ancho y
   manda la portada. No hay rejillas de tarjetas pequeñas.
   ============================================ */
:root {
  --vume-red: #FD293B;
  --vume-orange: #FF512F;
  --vume-gradient: linear-gradient(135deg, #FD293B 0%, #FF512F 100%);
  --vume-gradient-h: linear-gradient(90deg, #FD293B 0%, #FF512F 100%);

  --ink: #0B0B0F;
  --ink-soft: #4A4A52;
  --ink-mute: #6B6B73;
  --line: #E8E6E1;
  --cream: #FAF7F2;
  --cream-2: #F5F0E7;
  --white: #FFFFFF;
  --rose-soft: #FFEDE7;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 1180px;
  --read-w: 680px;
  --pad-x: clamp(1.25rem, 4vw, 3rem);
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(253, 41, 59, 0.45);
  outline-offset: 4px;
}
::selection { background: var(--vume-red); color: var(--white); }

.gradient {
  background: var(--vume-gradient-h);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Logo ---------- */
.vume-logo { display: inline-block; height: 28px; width: 107px; flex-shrink: 0; }
@media (max-width: 480px) { .vume-logo { height: 24px; width: 91px; } }

/* ---------- Nav: COPIA EXACTA de index.html. Si cambia allí, cambiar aquí. ---------- */
/* ============================================
   NAVEGACIÓN
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(250, 247, 242, 0.82);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(11, 11, 15, 0.05);
}

.nav-inner {
  padding: 0 var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 1rem;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-shrink: 0;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--vume-red); }

.nav-socials {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-left: -0.55rem;
}

.nav-social-link {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--ink) !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.nav-social-link:hover {
  color: var(--ink) !important;
  background: rgba(11, 11, 15, 0.07);
  transform: translateY(-1px);
}

.social-icon-instagram {
  width: 19px;
  height: 19px;
  display: block;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.social-icon-instagram::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  top: 50%;
  left: 50%;
  border: 2px solid currentColor;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.social-icon-instagram::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  top: 3px;
  right: 3px;
  border-radius: 50%;
  background: currentColor;
}

.social-icon-facebook {
  width: 19px;
  height: 19px;
  display: block;
  position: relative;
  border-radius: 50%;
  background: currentColor;
}

.social-icon-facebook::before {
  content: "f";
  position: absolute;
  left: 50%;
  bottom: -1px;
  color: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-46%);
}

@media (max-width: 768px) {
  .nav-links { gap: 0.35rem; }
  .nav-links > a:not(.btn-nav) { display: none; }
  .nav-socials { margin-left: 0; gap: 0; }
}

@media (max-width: 480px) {
  .nav { padding: 0.75rem 0; }
  .nav-inner { padding: 0 1.1rem; }
  .nav-links { gap: 0.2rem; }
  .nav-social-link { width: 34px; height: 34px; }
}

.btn-nav {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 0.7rem 1.25rem;
  border-radius: 100px;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.25s !important;
  white-space: nowrap;
}

.btn-nav:hover {
  background: var(--vume-red) !important;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(253, 41, 59, 0.4);
}

@media (max-width: 480px) {
  .btn-nav {
    padding: 0.6rem 1rem;
    font-size: 0.82rem !important;
  }
}


/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 1rem 1.75rem; border-radius: 100px;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  text-decoration: none; white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.btn-primary {
  background: var(--vume-gradient); color: var(--white);
  box-shadow: 0 8px 24px -8px rgba(253, 41, 59, 0.5);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(253, 41, 59, 0.6); }
.btn-secondary { background: var(--white); color: var(--ink); border: 1.5px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--vume-red);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px;
  background: var(--vume-gradient-h); border-radius: 2px;
}

/* ============================================
   PORTADA — foto o composición de marca
   Si el artículo tiene foto: <img class="cover-photo">.
   Si no: .cover-brand con una o dos capturas de la app dentro.
   ============================================ */
.cover {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cream-2);
  border: 1px solid rgba(11, 11, 15, 0.06);
}
.cover-photo { width: 100%; height: 100%; object-fit: cover; }
.cover-brand {
  position: absolute; inset: 0;
  /* Mismo escenario que "Así es Vume" en la home */
  background: linear-gradient(145deg, #F0EADF 0%, #FFFFFF 55%, #FFE9DF 100%);
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding: 0 1.5rem;
}
.cover-phone {
  width: clamp(120px, 22%, 250px);
  aspect-ratio: 946 / 2048;
  padding: 6px;
  border-radius: 38px 38px 0 0;
  background: #101014;
  box-shadow: 0 30px 60px -24px rgba(11, 11, 15, 0.35);
  transform: translateY(18%);
}
.cover-phone img {
  width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 32px 32px 0 0;
}
.cover-phone:nth-child(2) { transform: translateY(32%) rotate(3deg); }
.cover-phone:nth-child(1):not(:only-child) { transform: translateY(26%) rotate(-3deg); }

@media (max-width: 600px) {
  .cover { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
  .cover-phone { width: 38%; border-radius: 26px 26px 0 0; }
  .cover-phone img { border-radius: 21px 21px 0 0; }
}

.meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem 0.9rem;
  font-size: 0.95rem; font-weight: 500; color: var(--ink-soft);
}
.meta .tag {
  color: var(--vume-red); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8rem;
}
.meta .sep { color: var(--line); }

/* ============================================
   LISTADO (blog/index.html)
   ============================================ */
.blog-head {
  max-width: var(--max-w); margin: 0 auto;
  padding: 9rem var(--pad-x) 4rem;
}
.blog-head h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800; line-height: 0.95; letter-spacing: -0.05em;
  margin: 1.25rem 0 1.5rem;
}
.blog-head p {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--ink-soft); max-width: 640px; line-height: 1.55;
}

.post-list {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-x);
  display: grid; gap: clamp(5rem, 10vw, 8rem);
}

.post-card { display: block; color: inherit; text-decoration: none; }
.post-card .cover { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s; }
.post-card:hover .cover {
  transform: translateY(-6px);
  box-shadow: 0 40px 80px -40px rgba(253, 41, 59, 0.45);
}
.post-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.5rem clamp(2rem, 5vw, 4.5rem);
  margin-top: 2.25rem;
  align-items: start;
}
.post-card .meta { grid-column: 1 / -1; }
.post-card h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.045em;
}
.post-card-excerpt p {
  font-size: 1.18rem; line-height: 1.6; color: var(--ink-soft);
  margin-bottom: 1.5rem;
}
.read-more {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1.05rem; color: var(--ink);
  border-bottom: 2px solid var(--vume-red); padding-bottom: 2px;
}
.read-more .arrow { color: var(--vume-red); transition: transform 0.25s; }
.post-card:hover .read-more .arrow { transform: translateX(5px); }

@media (max-width: 820px) {
  .post-card-body { grid-template-columns: 1fr; margin-top: 1.5rem; }
}

/* Cierre del listado: escribimos poco, a propósito */
.blog-outro {
  max-width: var(--max-w); margin: clamp(5rem, 10vw, 8rem) auto 0;
  padding: 0 var(--pad-x);
}
.blog-outro-card {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3.5rem);
}
.blog-outro h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}
.blog-outro p { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.6; max-width: 560px; }
.blog-outro-ctas { display: flex; flex-direction: column; gap: 0.75rem; }
@media (max-width: 820px) {
  .blog-outro-card { grid-template-columns: 1fr; }
  .blog-outro-ctas { flex-direction: row; flex-wrap: wrap; }
}

/* ============================================
   ARTÍCULO (blog/<slug>.html)
   ============================================ */
.article-head {
  max-width: 980px; margin: 0 auto;
  padding: 9rem var(--pad-x) 3rem;
}
.back-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  margin-bottom: 2.5rem;
}
.back-link:hover { color: var(--vume-red); }
.article-head h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 800; line-height: 0.98; letter-spacing: -0.05em;
  margin: 1.1rem 0 1.5rem;
}
.article-head .dek {
  font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.45;
  color: var(--ink-soft); max-width: 760px; margin-bottom: 2.25rem;
}
.byline { display: flex; align-items: center; gap: 0.85rem; }
.byline-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--vume-gradient); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.05rem;
}
.byline strong { display: block; font-size: 1rem; }
.byline span { display: block; font-size: 0.95rem; color: var(--ink-soft); }

.article-cover { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); }
.article-cover figcaption {
  font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.85rem; text-align: center;
}
.article-cover figcaption a { color: var(--ink); font-weight: 600; text-decoration-color: var(--vume-red); text-underline-offset: 3px; }

.prose {
  max-width: calc(var(--read-w) + var(--pad-x) * 2);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad-x) 0;
  font-size: 1.19rem; line-height: 1.75; color: #26262C;
}
.prose > * + * { margin-top: 1.4em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.12; letter-spacing: -0.035em;
  margin-top: 2.4em;
}
.prose h2 + * { margin-top: 0.8em; }
.prose strong { color: var(--ink); }
.prose a {
  color: var(--ink); font-weight: 600;
  text-decoration: underline; text-decoration-color: var(--vume-red);
  text-underline-offset: 3px; text-decoration-thickness: 2px;
}
.prose a:hover { color: var(--vume-red); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--vume-red); font-weight: 700; }
.prose .lede::first-letter {
  float: left; font-family: var(--font-display); font-weight: 800;
  font-size: 4.2em; line-height: 0.85; margin: 0.08em 0.12em 0 0;
  color: var(--vume-red);
}

/* Cita destacada: más ancha que el texto, como en la home */
.prose blockquote {
  margin: 2.4em 0;
  padding-left: 1.6rem; border-left: 3px solid var(--vume-red);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; letter-spacing: -0.03em;
  color: var(--ink);
}
.prose blockquote cite {
  display: block; margin-top: 1rem;
  font-family: var(--font); font-style: normal; font-weight: 500;
  font-size: 0.95rem; letter-spacing: 0; color: var(--ink-soft);
}

/* Figura con capturas de la app, sale del ancho de lectura */
.prose figure.wide {
  margin: 2.8em calc(-1 * min(12vw, 140px));
  background: var(--cream-2); border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 0;
  overflow: hidden;
  display: flex; justify-content: center; gap: clamp(0.75rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.prose figure.wide .cover-phone { width: min(220px, 40%); transform: none; }
.prose figure.wide figcaption {
  flex-basis: 100%; order: -1; text-align: center;
  font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 0.5rem;
}
@media (max-width: 820px) { .prose figure.wide { margin-left: 0; margin-right: 0; } }

/* Llamada al final del artículo */
.article-end {
  max-width: calc(var(--read-w) + var(--pad-x) * 2);
  margin: 4.5rem auto 0; padding: 0 var(--pad-x);
}
.article-end-card {
  background: var(--vume-gradient); color: var(--white);
  border-radius: var(--r-xl); padding: clamp(2rem, 5vw, 3rem);
}
.article-end-card h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
}
.article-end-card p { font-size: 1.1rem; line-height: 1.55; font-weight: 500; margin-bottom: 1.75rem; }
.article-end-card .btn-primary { background: var(--white); color: var(--ink); }
.article-end-card .btn-primary:hover { background: var(--ink); color: var(--white); }
.article-end-card .btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.article-end-card .btn-secondary:hover { background: var(--white); color: var(--ink); }
.article-end-card .ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Footer (versión corta de la home) ---------- */
footer {
  background: var(--ink); color: var(--cream);
  margin-top: clamp(5rem, 10vw, 8rem);
  padding: 3.5rem var(--pad-x) 2rem;
}
.footer-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap;
}
.footer-inner p { color: rgba(250, 247, 242, 0.75); max-width: 340px; margin-top: 1rem; font-size: 1rem; }
.footer-links { display: flex; gap: 0.6rem 1.75rem; flex-wrap: wrap; }
.footer-links a { color: rgba(250, 247, 242, 0.8); text-decoration: none; font-size: 1rem; }
.footer-links a:hover { color: var(--vume-red); }
.footer-bottom {
  max-width: var(--max-w); margin: 2.5rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  font-size: 0.95rem; color: rgba(250, 247, 242, 0.6);
}
.footer-bottom a { color: inherit; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
