/* Generado por tools/extract-header-css.mjs desde styles.css: la cabecera común de la web. No editar a mano. */
:root {
  --primary-purple: #432969;
  --deep-purple: #2e1a4f;
  --light-purple-bg: #ede6fb;
  --purple-stroke: #bba9f5;
  --purple-selection: #d4c9f6;
  --action-purple-gray: #dcd7f7;
  --gold: #e4c161;
  --gold-cta: #f0c84b;
  --soft-gold: #fff5c0;
  --soft-white: #f5f5f5;
  --white: #ffffff;
  --text: #212121;
  --muted: #5e526c;
  --grid-green: #5f8f4e;
  --grid-orange: #ffc680;
  --grid-gray: #787c7e;
  --shadow-card: 0 9px 18px rgba(67, 41, 105, 0.18);
  --shadow-soft: 0 5px 12px rgba(67, 41, 105, 0.16);
  --radius-card: 10px;
  --radius-small: 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-gate[hidden],
.flag-menu[hidden] {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px clamp(12px, 4vw, 52px);
  background: rgba(237, 230, 251, 0.92);
  border-bottom: 1px solid rgba(187, 169, 245, 0.6);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary-purple);
  font-weight: 900;
  text-decoration: none;
}

.brand__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

.brand__text {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.brand--tagline {
  min-width: 0;
}

.brand--tagline .brand__text {
  font-size: clamp(1.05rem, 2.4vw, 1.7rem);
  line-height: 1.12;
}

.product-switch {
  display: inline-flex;
  align-items: stretch;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  background: rgba(67, 41, 105, 0.07);
  border-radius: 18px;
}

.product-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 5px 14px 5px 5px;
  color: var(--muted);
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.product-tab:hover,
.product-tab:focus-visible {
  color: var(--primary-purple);
  background: rgba(255, 255, 255, 0.6);
  outline: none;
}

.product-tab[aria-current="page"] {
  color: var(--primary-purple);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(67, 41, 105, 0.14);
}

.product-tab__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
}

.product-tab__text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.product-tab__text strong {
  font-size: 1.02rem;
  font-weight: 900;
  white-space: nowrap;
}

.product-tab__text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-tab:not([aria-current="page"]) small,
.product-tab:not([aria-current="page"]) .product-tab__prefix {
  display: none;
}

.header-actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.language-menu {
  position: relative;
}

.flag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 10px 0 7px;
  color: var(--primary-purple);
  background: var(--white);
  border: 1px solid rgba(187, 169, 245, 0.8);
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 900;
}

.flag-toggle img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(67, 41, 105, 0.12);
}

.flag-toggle__chevron {
  font-size: 0.72rem;
  opacity: 0.7;
}

.flag-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 6px;
  background: var(--white);
  border: 1px solid rgba(187, 169, 245, 0.8);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.flag-menu button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--primary-purple);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.flag-menu button:hover,
.flag-menu button:focus-visible,
.flag-menu button.is-active {
  background: var(--light-purple-bg);
  outline: none;
}

.flag-menu img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.store-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 13px;
  color: var(--white);
  background: var(--primary-purple);
  border-radius: 999px;
  box-shadow: 0 3px 10px rgba(67, 41, 105, 0.25);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.store-link:hover,
.store-link:focus-visible {
  background: var(--deep-purple);
  outline: none;
}

.store-link__icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.store-link--soon {
  color: var(--primary-purple);
  background: var(--white);
  border: 1px dashed var(--purple-stroke);
  box-shadow: none;
}

.store-link--soon:hover,
.store-link--soon:focus-visible {
  background: var(--soft-gold);
}

.daily-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px 0 9px;
  color: var(--primary-purple);
  background: var(--soft-gold);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.daily-link:hover,
.daily-link:focus-visible {
  background: #ffeea0;
  outline: none;
}

.daily-link[aria-current="page"] {
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.daily-link__icon {
  flex: none;
  width: 26px;
  height: 26px;
}

.daily-link__dot {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 10px;
  height: 10px;
  background: #e4674f;
  border: 2px solid var(--white);
  border-radius: 50%;
}

.daily-link__dot[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .site-header {
    gap: 8px;
    min-height: 60px;
    padding: 8px 12px;
  }

  .product-tab {
    padding-right: 10px;
  }

  .product-tab:not([aria-current="page"]) {
    padding: 5px;
  }

  .product-tab:not([aria-current="page"]) .product-tab__text {
    display: none;
  }

  .product-tab__icon {
    width: 32px;
    height: 32px;
  }

  .product-tab__text strong {
    font-size: 0.95rem;
  }

  .product-tab__text small {
    font-size: 0.72rem;
  }

  .header-actions {
    gap: 6px;
  }

  .flag-toggle {
    height: 40px;
    padding: 0 7px;
  }

  .flag-toggle [data-selected-code] {
    display: none;
  }

  .store-link {
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .daily-link {
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
  }

  .daily-link__text {
    display: none;
  }

  .store-link span {
    display: none;
  }
}

@media (max-width: 800px) {
  .brand--tagline .brand__text {
    display: none;
  }
}

@media (max-width: 700px) {
  .brand__icon {
    width: 42px;
    height: 42px;
  }

  .brand__text {
    font-size: 1.55rem;
  }

  .brand--tagline .brand__text {
    font-size: 1.05rem;
  }
}

@media (max-width: 430px) {
  .brand__text {
    display: none;
  }
}

@media (max-width: 360px) {
  .brand__icon {
    width: 36px;
    height: 36px;
  }
}
