/* Estilos del blog "¿Qué Hacemos?" — mismos colores y tipografías que chilpe.cl */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --fire: #e05b1a; --ember: #b83c0e; --smoke: #4a2e1a; --ash: #2c1810;
  --cream: #f5ede0; --gold: #c8922a; --charcoal: #1a0f07;
}
body { font-family: 'Lato', sans-serif; background: var(--charcoal); color: var(--cream); line-height: 1.7; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
img { max-width: 100%; }
a { color: var(--gold); }

/* Nav (igual al home) */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem; background: rgba(26,15,7,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(200,146,42,0.25); }
.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.nav-brand { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 900; color: var(--cream); letter-spacing: 0.05em; }
.nav-brand span { color: var(--fire); }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { color: var(--cream); text-decoration: none; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.8; transition: opacity .2s, color .2s; }
.nav-links a:hover, .nav-links a.activo { opacity: 1; color: var(--gold); }
.nav-cta { background: var(--fire); color: #fff !important; opacity: 1 !important; padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 700; }
.nav-cta:hover { background: var(--ember); }

/* Botones */
.btn-primary, .btn-outline { display: inline-block; padding: 0.85rem 2rem; border-radius: 4px; font-weight: 700; font-size: 1rem;
  text-decoration: none; letter-spacing: 0.04em; transition: background .25s, border-color .25s, color .25s, transform .15s; }
.btn-primary { background: var(--fire); color: #fff; }
.btn-primary:hover { background: var(--ember); transform: translateY(-2px); }
.btn-outline { color: var(--cream); border: 2px solid rgba(245,237,224,0.5); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem 80px; }
.section-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.section-line { width: 60px; height: 3px; background: linear-gradient(to right, var(--fire), var(--gold)); margin: 0 auto 1.5rem; }

/* Portada del blog */
.blog-hero { text-align: center; padding: 140px 1.5rem 60px;
  background: linear-gradient(135deg, var(--ash) 0%, var(--smoke) 55%, #3a1e0e 100%); border-bottom: 1px solid rgba(200,146,42,0.2); margin-bottom: 60px; }
.blog-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; margin-bottom: 1rem; }
.blog-hero h1 span { color: var(--fire); }
.blog-intro { max-width: 640px; margin: 0 auto; font-size: 1.1rem; color: rgba(245,237,224,0.8); }

/* Tarjetas */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.tarjeta { background: var(--ash); border: 1px solid rgba(200,146,42,0.15); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.tarjeta:hover { transform: translateY(-4px); border-color: rgba(200,146,42,0.45); box-shadow: 0 16px 32px rgba(0,0,0,0.35); }
.tarjeta-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--smoke); }
.tarjeta-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.tarjeta:hover .tarjeta-img img { transform: scale(1.04); }
.tarjeta-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tarjeta time, .nota-header time { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); }
.tarjeta h2 { font-size: 1.35rem; }
.tarjeta h2 a { color: var(--cream); text-decoration: none; }
.tarjeta h2 a:hover { color: var(--fire); }
.tarjeta p { color: rgba(245,237,224,0.72); font-size: 0.97rem; flex: 1; }
.leer-mas { color: var(--fire); font-weight: 700; text-decoration: none; font-size: 0.9rem; }
.leer-mas:hover { color: var(--gold); }
.vacio { text-align: center; color: rgba(245,237,224,0.7); padding: 3rem 0; }

/* Nota */
.nota { max-width: 820px; margin: 0 auto; padding: 120px 1.5rem 80px; }
.migas { font-size: 0.85rem; color: rgba(245,237,224,0.5); margin-bottom: 2rem; }
.migas a { color: rgba(245,237,224,0.7); text-decoration: none; }
.migas a:hover { color: var(--gold); }
.nota-header h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 900; margin: 0.5rem 0 1rem; }
.nota-resumen { font-size: 1.2rem; color: rgba(245,237,224,0.8); font-family: 'Playfair Display', serif; font-style: italic; margin-bottom: 2rem; }
.nota-portada { width: 100%; border-radius: 12px; margin-bottom: 2.5rem; display: block; aspect-ratio: 16 / 9; object-fit: cover; }
.nota-cuerpo { font-size: 1.08rem; color: rgba(245,237,224,0.88); }
.nota-cuerpo > * + * { margin-top: 1.25rem; }
.nota-cuerpo h2 { font-size: 1.7rem; color: var(--cream); margin-top: 2.5rem; }
.nota-cuerpo h3 { font-size: 1.3rem; color: var(--gold); margin-top: 2rem; }
.nota-cuerpo a { color: var(--fire); text-underline-offset: 3px; }
.nota-cuerpo a:hover { color: var(--gold); }
.nota-cuerpo a.btn-primary { color: #fff; } .nota-cuerpo a.btn-outline { color: var(--cream); }
.nota-cuerpo ul, .nota-cuerpo ol { padding-left: 1.4rem; }
.nota-cuerpo li + li { margin-top: 0.4rem; }
.nota-cuerpo strong { color: var(--cream); }
.nota-cuerpo blockquote { border-left: 3px solid var(--fire); padding: 0.5rem 0 0.5rem 1.25rem; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.25rem; color: var(--gold); }
.nota-cuerpo img { border-radius: 10px; display: block; }
.nota-botones { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }

/* Galería */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.g-item { margin: 0; }
.g-wide { grid-column: 1 / -1; }
.g-link { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 8px; background: var(--smoke); }
.g-link img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .3s, opacity .3s; }
.g-link:hover img { transform: scale(1.05); opacity: 0.9; }
.g-item figcaption { font-size: 0.82rem; color: rgba(245,237,224,0.55); margin-top: 0.4rem; }
.g-item video { width: 100%; border-radius: 8px; background: #000; display: block; }
.g-video-file { text-align: center; }
.g-video-file video { width: auto; max-width: 100%; max-height: 80vh; margin: 0 auto; }
.g-video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.g-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,6,3,0.94); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; border-radius: 6px; }
.lightbox figcaption { color: rgba(245,237,224,0.8); margin-top: 0.6rem; font-size: 0.95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,0.08); color: var(--cream); border: 1px solid rgba(200,146,42,0.3);
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--fire); }
.lb-cerrar { top: 1rem; right: 1rem; } .lb-prev { left: 1rem; top: 50%; } .lb-next { right: 1rem; top: 50%; }

/* CTA final y navegación entre notas */
.cta-final { margin-top: 4rem; padding: 2.5rem; border-radius: 14px; text-align: center;
  background: linear-gradient(135deg, var(--ash) 0%, var(--smoke) 70%, #3a1e0e 100%); border: 1px solid rgba(200,146,42,0.25); }
.cta-final h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.75rem; }
.cta-final h2 span { color: var(--fire); }
.cta-final p { color: rgba(245,237,224,0.75); max-width: 560px; margin: 0 auto; }
.cta-final .nota-botones { justify-content: center; margin-bottom: 0; }
.nota-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(200,146,42,0.15); }
.nota-nav a { color: rgba(245,237,224,0.7); text-decoration: none; font-size: 0.95rem; max-width: 48%; }
.nota-nav a:hover { color: var(--gold); }
.nn-next { text-align: right; margin-left: auto; }

/* Footer */
footer { background: #0e0804; border-top: 1px solid rgba(200,146,42,0.15); padding: 50px 1.5rem 30px; text-align: center; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { width: 90px; margin: 0 auto 0.75rem; display: block; }
footer p { font-size: 0.9rem; color: rgba(245,237,224,0.5); }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.75rem; margin: 1.5rem 0; }
.footer-links a { color: rgba(245,237,224,0.6); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--cream); }
.tienda-link { color: var(--gold) !important; font-weight: 700; }
.footer-copy { font-size: 0.8rem !important; color: rgba(245,237,224,0.3) !important; }

/* ── Menú desplegable móvil ── */
.nav-toggle { display: none; background: none; border: 1px solid rgba(200,146,42,0.4); border-radius: 6px;
  width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 11px; width: 20px; height: 2px; background: var(--cream); border-radius: 2px;
  transition: transform .25s, opacity .2s, background .2s; content: ''; }
.nav-toggle span { top: 20px; }
.nav-toggle span::before { left: 0; top: -6px; }
.nav-toggle span::after { left: 0; top: 6px; }
nav.abierto .nav-toggle span { background: transparent; }
nav.abierto .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
nav.abierto .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav .nav-links { display: flex !important; flex-direction: column; align-items: stretch; gap: 0; position: absolute; top: 100%; left: 0; right: 0;
    background: #140b05; border-bottom: 1px solid rgba(200,146,42,0.25); padding: 0.5rem 1.25rem 1.25rem; box-shadow: 0 18px 30px rgba(0,0,0,0.5);
    max-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-height .3s ease, opacity .2s, visibility .3s; }
  nav.abierto .nav-links { max-height: 80vh; opacity: 1; visibility: visible; }
  nav .nav-links li { display: block !important; border-bottom: 1px solid rgba(200,146,42,0.12); }
  nav .nav-links li:last-child { border-bottom: none; padding-top: 1rem; }
  nav .nav-links a { display: block; padding: 0.9rem 0.25rem; font-size: 0.95rem; opacity: 0.9; }
  nav .nav-links a.nav-cta { text-align: center; padding: 0.8rem; }
}

@media (max-width: 768px) {
  nav { padding: 0.9rem 1.25rem; }
  .nota { padding-top: 100px; }
  .cta-final { padding: 1.75rem 1.25rem; }
  .lb-prev, .lb-next { top: auto !important; bottom: 1rem; }
}
