/* ============================================
   BWN Estudio — hoja de estilos compartida
   ============================================ */

:root {
  --cream: #faf5ee;
  --cream-2: #f2e9db;
  --ink: #2b2622;
  --ink-soft: #56504a;
  --terracotta: #c1613d;
  --terracotta-dark: #a34d2e;
  --sage: #7c8b6f;
  --gold: #cf9f4f;
  --border: #e6dcc9;
  --max-w: 1120px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(43, 38, 34, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span { color: var(--terracotta); }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--terracotta); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}

.nav-cta {
  background: var(--terracotta);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.9rem !important;
}

.nav-cta:hover { background: var(--terracotta-dark); color: #fff !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(193,97,61,0.14), transparent 70%);
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -140px; left: -140px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,139,111,0.16), transparent 70%);
}

.hero .wrap { position: relative; z-index: 2; }

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 780px;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 20px 0 32px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary { background: var(--terracotta); color: #fff; }
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin: 0; }
.section-head p { color: var(--ink-soft); margin: 8px 0 0; max-width: 520px; }

.section-head a.see-all {
  font-weight: 600;
  color: var(--terracotta);
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: rgba(124,139,111,0.12);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Grid / cards ---------- */

.grid {
  display: grid;
  gap: 28px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card-media {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--cream-2), var(--border));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}

/* ---------- Lightbox ---------- */

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 13, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 60px 24px;
  cursor: zoom-out;
}

.lightbox-overlay.active { display: flex; }

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 24px;
  right: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.card-body { padding: 20px; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.card-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 14px;
}

/* ---------- Portfolio filter ---------- */

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
}

.filter-btn.active,
.filter-btn:hover { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }

/* ---------- Video / vlog ---------- */

.video-card .card-media { aspect-ratio: 16/9; font-size: 2rem; }

/* ---------- Bitacora / timeline ---------- */

.timeline { border-left: 2px solid var(--border); padding-left: 28px; margin-left: 6px; }

.timeline-item { position: relative; padding-bottom: 40px; }

.timeline-item::before {
  content: "";
  position: absolute;
  left: -34px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--terracotta);
  border: 3px solid var(--cream);
}

.timeline-item .date {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
}

/* ---------- Newsletter / monetización ---------- */

.newsletter {
  background: var(--ink);
  color: var(--cream);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
}

.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(250,245,238,0.75); max-width: 520px; margin: 12px auto 28px; }

.form-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.form-row input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  min-width: 280px;
  font-size: 0.95rem;
}

.support-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 22px;
  flex-wrap: wrap;
}

.support-links a {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  border: 1px solid rgba(207,159,79,0.4);
  padding: 8px 16px;
  border-radius: 999px;
}

.support-links a:hover { background: rgba(207,159,79,0.12); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--terracotta); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
}
.social-row a:hover { border-color: var(--terracotta); color: var(--terracotta); }

/* ---------- Page header (non-home pages) ---------- */

.page-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-header p { color: var(--ink-soft); max-width: 620px; margin-top: 12px; }

/* ---------- Blog post ---------- */

.post-body {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.post-body h2 { margin-top: 1.4em; }
.post-body p { margin: 0 0 1.2em; color: var(--ink-soft); }

.badge-coming-soon {
  display: inline-block;
  background: rgba(207,159,79,0.15);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform 0.25s;
  }
  .nav-links.open { transform: translateY(0); }
  .menu-toggle { display: block; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .newsletter { padding: 36px 24px; }
  .form-row input { min-width: 0; width: 100%; }
}
