/* ============================================================
   Global — header, footer, componentes compartidos
   (archivo del orquestador — los builders NO lo tocan)
   ============================================================ */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252, 250, 247, 0.92);
  border-bottom: 1px solid var(--linea);
}
/* backdrop-filter va en ::before para no romper hijos fixed (gotcha ADN) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-height: 44px; }
.brand-icon { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-wordmark { width: 118px; height: auto; }
.brand-sub {
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--violeta);
}

.site-nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.site-nav a {
  text-decoration: none; font-weight: 600; font-size: 14px; letter-spacing: 0.04em;
  color: var(--ciruela); padding: 10px 2px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent; transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover { color: var(--violeta); }
.site-nav a[aria-current="page"] { color: var(--violeta); border-bottom-color: var(--lavanda); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; background: none; border: 0; color: var(--ciruela);
}
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violeta); color: var(--crema); font-size: 11px; border-radius: 50%;
  padding: 0 4px;
}
.cart-count.is-empty { display: none; }

.burger { display: none; width: 48px; height: 48px; background: none; border: 0; position: relative; }
.burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ciruela);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.burger span:nth-child(1) { top: 19px; }
.burger span:nth-child(2) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ciruela); color: var(--ciruela-texto-footer); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 0.8fr 1fr;
  gap: clamp(32px, 4vw, 72px); padding-top: 88px; padding-bottom: 56px;
}
.footer-brand img { filter: none; opacity: 0.95; }
.footer-sub {
  margin-top: 14px; font-weight: 600; font-size: 11px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--lavanda);
}
.footer-desc { margin-top: 14px; font-size: 14px; line-height: 1.7; max-width: 34ch; }
.footer-h {
  font-weight: 700; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--crema); margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 14px; font-size: 14.5px; line-height: 1.6; }
.footer-col a { color: var(--ciruela-texto-footer); text-decoration: none; border-bottom: 1px solid rgba(207,200,214,0.35); transition: color var(--transition); }
.footer-col a:hover { color: var(--lavanda-claro); }
.footer-legal { border-top: 1px solid rgba(252,250,247,0.14); padding-top: 28px; padding-bottom: 40px; }
.footer-legal p { font-size: 12.5px; line-height: 1.7; color: var(--ciruela-texto-footer-tenue); max-width: 110ch; }
.footer-legal p + p { margin-top: 10px; }
.demo-tag { color: var(--lavanda); }

/* ---------- Secciones compartidas ---------- */
.section { padding-top: var(--sect-y); padding-bottom: var(--sect-y); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 64px); }
.section-head .eyebrow { display: block; margin-bottom: 16px; }
.section-head .h2 { margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .header-inner { height: 72px; }
  .burger { display: block; }
  .site-nav {
    position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
    display: none; flex-direction: column; gap: 0;
    background: var(--crema); border-bottom: 1px solid var(--linea);
    padding: 12px var(--pad-x) 24px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 17px; padding: 14px 2px; border-bottom: 1px solid var(--linea); }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 64px; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-wordmark { width: 104px; }
}

/* ---------- Marca propia: Flores de Bach (v4 — sin logo Manoma) ---------- */
.brand-flor { color: var(--lavanda-logo); flex-shrink: 0; }
.brand-name {
  font-family: var(--serif-display); font-size: 21px; color: var(--ciruela);
  letter-spacing: 0.01em; white-space: nowrap;
}
.footer-flor { color: var(--lavanda); }
.footer-name { font-family: var(--serif-display); font-size: 26px; color: var(--crema); margin-top: 12px; }
@media (max-width: 560px) {
  .brand-name { font-size: 18px; }
}
