/* ============================================================
   Estudio Graphica — CSS compartido del blog
   Un solo archivo enlazado desde cada post. Cambiar un color acá
   cambia todo el blog; no copiar este bloque dentro de un post.
   ============================================================ */

@font-face { font-family:'Izmir'; src:url('/fonts/izmir-extrabold.otf') format('opentype'); font-weight:800; font-display:swap; }
@font-face { font-family:'Izmir'; src:url('/fonts/izmir-bold.otf') format('opentype'); font-weight:700; font-display:swap; }

:root {
  --dark: #181818;
  --yellow: #FFDD5A;
  --off-white: #F8F8F8;
  --cream: #F0EDE6;
  --gray-text: #6B6660;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--cream); color: var(--dark); -webkit-font-smoothing: antialiased; }
.cursive { font-family: 'Playfair Display', serif; font-style: italic; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Navegación ---------- */
nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(24,24,24,0.06); padding: 16px 24px; }
nav .inner { max-width: 860px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
nav img { height: 34px; width: auto; object-fit: contain; }
nav a.back { font-size: 13px; color: var(--gray-text); text-decoration: none; }
nav a.back:hover { color: var(--dark); }

/* ---------- Índice del blog (blog/index.html) ---------- */
.header { max-width: 900px; margin: 0 auto; padding: 56px 24px 8px; text-align: center; }
.tag { display: inline-block; background: var(--yellow); color: var(--dark); font-family: 'Izmir', 'Syne', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; padding: 6px 14px; border-radius: 9999px; margin-bottom: 20px; }
.header h1 { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; letter-spacing: -0.025em; font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; margin-bottom: 14px; }
.sub { font-size: 16px; color: var(--gray-text); max-width: 560px; margin: 0 auto; line-height: 1.65; }

.posts { max-width: 1040px; margin: 48px auto 100px; padding: 0 24px; display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) {
  .posts { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); justify-content: center; }
}

.post-card { background: #fff; border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--dark); box-shadow: 0 12px 32px rgba(24,24,24,0.06); border: 1px solid rgba(24,24,24,0.06); transition: transform 0.25s, box-shadow 0.25s; display: block; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(24,24,24,0.12); }
.post-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.post-body { padding: 22px; }
.post-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 10px; }
.post-date { font-size: 11px; color: var(--gray-text); margin-bottom: 10px; }
.post-title { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; line-height: 1.3; margin-bottom: 10px; }
.post-excerpt { font-size: 13.5px; color: rgba(24,24,24,0.65); line-height: 1.6; }

/* ---------- Cabecera de cada post: imagen al lado del título ---------- */
.breadcrumb { max-width: 900px; margin: 0 auto; padding: 24px 24px 0; font-size: 12.5px; color: var(--gray-text); }
.breadcrumb a { color: var(--gray-text); text-decoration: none; }
.breadcrumb a:hover { color: var(--dark); }

.post-hero { max-width: 900px; margin: 0 auto; padding: 18px 24px 8px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; }
.post-hero-text { min-width: 0; }
.eyebrow { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-text); margin-bottom: 14px; }
.post-hero h1 { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.14; letter-spacing: -0.02em; margin-bottom: 16px; }
.meta { font-size: 12.5px; color: var(--gray-text); display: flex; gap: 12px; flex-wrap: wrap; }

.post-hero-img-wrap { width: 100%; }
.hero-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 18px; box-shadow: 0 16px 40px rgba(24,24,24,0.12); display: block; }

@media (max-width: 780px) {
  .post-hero { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; }
  .post-hero-img-wrap { order: -1; max-width: 420px; margin: 0 auto; }
  .hero-img { aspect-ratio: 16/9; max-height: 220px; border-radius: 14px; }
  .post-hero h1 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
}

/* ---------- Cuerpo del artículo ---------- */
article { max-width: 760px; margin: 0 auto; padding: 32px 24px 100px; }
.lead { font-size: 17.5px; line-height: 1.75; color: var(--dark); margin: 8px 0 30px; }
h2 { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem; margin: 40px 0 16px; letter-spacing: -0.015em; }
p { font-size: 15.5px; line-height: 1.8; color: rgba(24,24,24,0.82); margin-bottom: 18px; }
ul.plain { padding-left: 20px; margin-bottom: 20px; }
ul.plain li { font-size: 15.5px; line-height: 1.85; color: rgba(24,24,24,0.82); margin-bottom: 8px; }
strong { color: var(--dark); }

.rank-card { background: #fff; border-radius: 18px; padding: 26px; margin: 20px 0; border: 1px solid rgba(24,24,24,0.06); box-shadow: 0 8px 24px rgba(24,24,24,0.05); }
.rank-card.featured { border: 2px solid var(--dark); background: var(--yellow); }
.rank-num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--dark); color: var(--yellow); font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.rank-title { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; }
.rank-desc { font-size: 14px; line-height: 1.7; color: rgba(24,24,24,0.75); margin-bottom: 12px; }
.rank-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rank-tag { font-size: 11px; font-weight: 600; background: rgba(24,24,24,0.06); padding: 4px 10px; border-radius: 9999px; }
.rank-card.featured .rank-tag { background: rgba(24,24,24,0.12); }

.error-card { background: #fff; border-radius: 18px; padding: 24px; margin: 18px 0; border-left: 4px solid var(--yellow); box-shadow: 0 8px 24px rgba(24,24,24,0.05); }
.error-num { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 12px; color: var(--gray-text); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.error-title { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; margin-bottom: 10px; }
.error-body { font-size: 14.5px; line-height: 1.75; color: rgba(24,24,24,0.78); }

.faq { background: #fff; border-radius: 18px; padding: 8px 26px; margin: 20px 0; border: 1px solid rgba(24,24,24,0.06); }
.faq-item { padding: 20px 0; border-bottom: 1px solid rgba(24,24,24,0.06); }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-family: 'Izmir', 'Syne', sans-serif; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.faq-a { font-size: 14.5px; line-height: 1.75; color: rgba(24,24,24,0.78); }

.callout { background: var(--dark); color: var(--off-white); border-radius: 18px; padding: 28px; margin: 34px 0; text-align: center; }
.callout p { color: rgba(248,248,248,0.8); margin-bottom: 18px; }
.callout .cursive { color: var(--yellow); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: 'Izmir', 'Syne', sans-serif; font-weight: 700; font-size: 14px; padding: 14px 28px; border-radius: 9999px; background: var(--yellow); color: var(--dark); text-decoration: none; }

footer { background: #0A0A0A; color: rgba(248,248,248,0.6); text-align: center; padding: 40px 24px; font-size: 13px; }
footer a { color: var(--yellow); text-decoration: none; }
