/* ========================================================
   HEADER, BUSCADOR & HERO
   ======================================================== */

/* 1. Barra superior fija (Sticky) */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle, rgba(226, 222, 214, 0.7));
  padding: 0.85rem 1.2rem;
  width: 100%;
}

.header-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

/* 2. Logotipo / Marca */
.brand {
  font-family: var(--font-main, 'Inter', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main, #111215);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-block;
}

.brand span {
  font-weight: 400;
  color: var(--accent-red, #e1281a);
}

/* 3. Barra de acciones: Buscador y Bolsa */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 450px;
}

.search-bar {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.search-bar i.search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-subtle, #8f929d);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-bar input {
  width: 100%;
  height: 42px;
  padding: 0 2.2rem 0 2.4rem;
  font-size: 0.85rem;
  font-family: inherit;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(238, 234, 227, 0.65);
  border: 1px solid rgba(226, 222, 214, 0.85);
  outline: none;
  color: var(--text-main, #111215);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar input:focus {
  background: #ffffff;
  border-color: var(--accent-red, #e1281a);
  box-shadow: 0 0 0 3px var(--accent-glow, rgba(225, 40, 26, 0.18));
}

.btn-clear {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted, #5e6068);
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* 4. Botón de la bolsa de compras */
.btn-cart {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-subtle, rgba(226, 222, 214, 0.7));
  color: var(--text-main, #111215);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.btn-cart:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--accent-red, #e1281a);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill, 9999px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

/* 5. Hero Compacto */
.brand-hero-compact {
  padding: 1.8rem 1.2rem 0.8rem;
  text-align: center;
  width: 100%;
}

.brand-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.brand-tagline-badge {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--accent-red, #e1281a);
  background: rgba(225, 40, 26, 0.08);
  border: 1px solid rgba(225, 40, 26, 0.15);
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-pill, 9999px);
  margin-bottom: 0.6rem;
  backdrop-filter: blur(4px);
}

.brand-headline {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main, #111215);
}

.headline-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--accent-red, #e1281a);
}

@media (max-width: 650px) {
  .brand-headline {
    font-size: 1.6rem;
  }
}