.top-right--minimal {
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.header-logged-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.top-right--minimal .header-user-avatar {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.header-user-menu {
  position: relative;
  flex-shrink: 0;
  z-index: 6;
}

.header-user-profile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  position: relative;
  z-index: 1;
}

.header-user-greeting {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.header-user-profile:hover .header-user-greeting,
.header-user-menu.is-open .header-user-greeting {
  color: var(--color-brand-gold-light);
}

.header-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 1200;
  min-width: 200px;
  padding: 6px;
  background: var(--color-surface, #ffffff);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  box-sizing: border-box;
}

header.site-header > nav {
  position: relative;
  z-index: 1;
}

.header-user-dropdown[hidden] {
  display: none !important;
}

.header-user-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-text, #222);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.header-user-dropdown__item i {
  width: 1.1em;
  text-align: center;
  color: var(--color-accent, #901010);
  flex-shrink: 0;
}

.header-user-dropdown__item:hover,
.header-user-dropdown__item:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  outline: none;
}

.header-user-dropdown__item--danger {
  color: #b42318;
}

.header-user-dropdown__item--danger i {
  color: inherit;
}

.header-user-dropdown__item--danger:hover,
.header-user-dropdown__item--danger:focus-visible {
  background: rgba(180, 35, 24, 0.08);
}

@media (max-width: 640px) {
  .header-user-greeting {
    display: none;
  }

  .header-logged-bar {
    gap: 8px;
  }
}

.top-right--minimal .header-action-link--ingresar {
  color: #ffffff;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.top-right--minimal .header-action-link--ingresar i {
  font-size: 1.15rem;
}

.top-right--minimal .header-action-link--ingresar:hover {
  color: var(--color-brand-gold-light);
}

header.site-header .top-bar {
  position: relative;
  z-index: 1100;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--color-brand-primary-dark, #901010);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(16px, calc((100% - var(--container-max, 1320px)) / 2));
  padding-right: max(16px, calc((100% - var(--container-max, 1320px)) / 2));
  box-sizing: border-box;
}

header.site-header .top-bar:has(.header-weather),
header.site-header .top-bar:has(.header-top-trailing) {
  display: grid;
  align-items: center;
}

/* Clima fijo al centro; redes y usuario en el tercio derecho sin solaparse */
header.site-header .top-bar:has(.header-weather) {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

header.site-header .top-bar:has(.header-top-trailing):not(:has(.header-weather)) {
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
}

header.site-header .top-bar:has(.header-weather) .top-left,
header.site-header .top-bar:has(.header-top-trailing) .top-left {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

header.site-header .top-bar:has(.header-weather) .header-weather {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  min-width: 0;
  max-width: 100%;
}

header.site-header .top-bar:has(.header-weather) .header-top-trailing,
header.site-header .top-bar:has(.header-top-trailing):not(:has(.header-weather)) .header-top-trailing {
  grid-column: 3;
  grid-row: 1;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

.header-site-map-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #ffffff;
  text-decoration: none;
  font-size: 1.15rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: color .15s ease, background .15s ease;
}

.header-site-tools {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-site-map-link:hover,
.header-site-map-link:focus-visible {
  color: var(--color-brand-gold-light, #e8d4a0);
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.header-site-map-link.is-active {
  color: var(--color-brand-gold-light, #e8d4a0);
  background: rgba(255, 255, 255, 0.16);
}

button.header-site-qr-btn {
  font: inherit;
}

.header-top-trailing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-width: 0;
}

.header-top-trailing .header-top-social {
  justify-self: center;
  position: relative;
  z-index: 1;
}

.header-top-trailing .top-right {
  justify-self: end;
  position: relative;
  z-index: 5;
  margin-left: 0;
}

.header-top-trailing:not(:has(.header-top-social)) {
  grid-template-columns: auto;
  justify-content: end;
}

/* Clima Chincha Alta — bloque propio (clima + fecha) */
.header-weather {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  text-align: center;
}

/* Cabecera: acciones usuario logueado */
.header-actions-logged {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 6px;
  flex-shrink: 0;
}

.header-auth-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: 6px;
}

.header-action-link--ingresar {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.header-action-link--ingresar i {
  font-size: 1.15rem;
}

.header-action-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--color-header-btn-dos-text);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  transition: color 0.15s ease;
}

.header-action-link i {
  font-size: 1.35rem;
  color: inherit;
}

.header-action-link span {
  white-space: nowrap;
}

.header-action-link:hover {
  color: var(--color-header-btn-dos-hover);
}

.header-user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--color-primary) 35%, transparent);
  box-sizing: border-box;
}

.header-user-avatar:hover {
  filter: brightness(1.05);
}

.header-user-profile:hover .header-user-avatar {
  filter: brightness(1.05);
}

.header-user-avatar--photo {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

header.site-header .header-user-avatar--photo .header-user-avatar-img,
.header-user-avatar--photo .header-user-avatar-img {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: 0;
  background: #fff;
  display: block !important;
  pointer-events: none;
}

.user-greeting--hidden {
  display: none !important;
}

/* Barra de búsqueda tipo pill */
.header-search-wrap {
  flex: 1;
  min-width: 0;
  max-width: 560px;
  margin: 0 20px 0 50px;
}

.header-search-pill {
  display: flex;
  align-items: center;
  background: var(--color-surface);
  border-radius: 999px;
  border: 1px solid var(--color-border-light);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: visible;
  min-height: 38px;
}

.header-search-categoria {
  /* Ancho fijo respecto al pill: si no, al cargar opciones largas por AJAX el <select> cambia de tamaño */
  flex: 0 0 30%;
  width: 30%;
  min-width: 96px;
  max-width: 30%;
  box-sizing: border-box;
  padding: 5px 8px 5px 12px;
  border: none;
  background: transparent;
  font-family: 'var(--font-body)';
  font-size: 0.85rem;
  color: var(--color-text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7060' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  outline: none;
}

.header-search-categoria:focus,
.header-search-categoria:focus-visible,
.header-search-categoria:active {
  outline: none;
  box-shadow: none;
  border: none;
}

.header-search-divider {
  width: 1px;
  align-self: stretch;
  min-height: 22px;
  background: var(--color-input-border);
  flex-shrink: 0;
}

.header-search-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  max-width: none;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.header-search-input-wrap input#header-search {
  width: 100%;
  height: 34px;
  padding: 0 12px;
  border: none;
  border-radius: 0;
  font-size: 0.95rem;
  line-height: 34px;
  outline: none;
  background: transparent;
  box-shadow: none;
  vertical-align: middle;
}

.header-search-input-wrap input#header-search:focus {
  box-shadow: none;
}

.header-search-submit {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  min-width: 34px;
  margin: 2px;
  align-self: center;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.header-search-submit:hover {
  background: var(--color-primary-dark);
}

.header-search-submit i {
  font-size: 1rem;
}

/* Resultados bajo el input (+10px solo hacia la derecha) */
.header-search-input-wrap .search-results {
  left: 0;
  right: auto;
  width: calc(100% + 10px);
  box-sizing: border-box;
  margin-top: 1px;
}

/* Carrito pill con total */
.btn-cart-header-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 8px 12px;
  min-width: 9rem;
  min-height: 42px;
  box-sizing: border-box;
  background: var(--color-primary);
  border: none;
  border-radius: var(--radius-btn, 8px);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.btn-cart-header-pill:hover {
  filter: brightness(1.06);
}

.cart-header-total {
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 4.2rem;
  display: inline-block;
  text-align: right;
  flex: 0 0 auto;
}

.btn-cart-header-pill .cart-header-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: visible;
}

.btn-cart-header-pill .cart-header-icon {
  font-size: 1.38rem;
  flex-shrink: 0;
  line-height: 1;
  color: inherit;
}

.btn-cart-header-pill .cart-header-icon-wrap .cart-badge {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background-color: var(--color-cart-badge);
  color: var(--color-surface);
  font-size: 0.65rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--color-primary);
  pointer-events: none;
}

.cart-badge {
  position: absolute;
}

.cart-badge--hidden {
  display: none !important;
}

/* Legado: botón carrito circular (otros temas) */
.btn-cart-header {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background-color: var(--color-surface);
  border: 1px solid var(--color-input-border);
  border-radius: 999px;
  cursor: pointer;
}

.drawer-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

.drawer-logout-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.drawer-quick-links {
  margin-top: 10px;
}

/* Monedero en perfil del drawer (celular) */
.drawer-monedero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.drawer-monedero-badge i {
  font-size: 1rem;
  color: inherit;
  flex-shrink: 0;
}

.drawer-monedero-badge > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
  min-width: 0;
}

.drawer-monedero-saldo,
.drawer-monedero-badge [data-credito-saldo] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.drawer-monedero-badge:hover {
  background: #d1fae5;
  color: #047857;
}

/* Sigue tu pedido — cabecera */
.header-action-link--btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--color-header-btn-dos-text);
}

.header-action-link--btn:hover {
  color: var(--color-header-btn-dos-hover);
}

@media (min-width: 1025px) {
  /* Invitado: visible en escritorio. Logueado: solo el de .header-actions-logged */
  .header-actions-logged ~ .header-seguimiento-guest {
    display: none !important;
  }
}

@media (max-width: 1024px) {
  .header-seguimiento-logged {
    display: none !important;
  }

  .header-mis-direcciones-logged {
    display: none !important;
  }

  /* Celular: estas acciones salen de la cabecera y pasan a la barra inferior */
  .header-auth-buttons,
  .header-mis-direcciones-guest,
  .header-seguimiento-guest,
  .header-mis-direcciones-mobile {
    display: none !important;
  }
}

.header-mis-direcciones-mobile {
  display: none;
}

/* Barra inferior tipo app (solo celular) */
.mobile-app-bar {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-app-bar {
    position: fixed;
    left: 0;
    right: 0;
    /* responsive.css define "nav { top: 0 }" en móvil; anularlo para anclar abajo */
    top: auto !important;
    bottom: 0;
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    height: 50px;
    box-sizing: content-box;
    background: var(--color-primary);
    padding: 0 4px env(safe-area-inset-bottom);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.18);
    z-index: 980;
  }

  .mobile-app-bar-item {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 3px 2px;
    border: none;
    background: transparent;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
  }

  .mobile-app-bar-item i {
    font-size: 1.25rem;
    color: inherit;
  }

  .mobile-app-bar-item span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-app-bar-item:active,
  .mobile-app-bar-item:hover {
    color: #fff;
    opacity: 0.85;
  }

  .mobile-app-bar-item.is-active {
    opacity: 1;
    font-weight: 700;
  }

  /* Dejar espacio para que la barra no tape el contenido ni el footer */
  body.site-public {
    padding-bottom: calc(50px + env(safe-area-inset-bottom));
  }

  /* Subir botones flotantes (WhatsApp / ir arriba) por encima de la barra */
  .whatsapp-float {
    bottom: calc(66px + env(safe-area-inset-bottom)) !important;
  }

  .btn-scroll-top {
    bottom: calc(122px + env(safe-area-inset-bottom)) !important;
  }
}

/* Modal seguimiento pedido */
.seguimiento-pedido-modal {
  align-items: flex-start;
  padding-top: 8vh;
}

.seguimiento-pedido-modal-content {
  max-width: 480px;
  width: calc(100% - 32px);
  padding: 22px 24px 24px;
  border-radius: 12px;
  position: relative;
}

.seguimiento-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 1.6rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-medium, #6b7280);
}

.seguimiento-modal-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.seguimiento-modal-intro {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--color-text-medium, #6b7280);
  line-height: 1.45;
}

.seguimiento-buscar-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seguimiento-buscar-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-dark, #111827);
  margin-top: 6px;
}

.seguimiento-buscar-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--color-input-border, #d1d5db);
  border-radius: 8px;
  font-size: 0.95rem;
}

.seguimiento-buscar-form input#seguimiento-codigo {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.seguimiento-error {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.85rem;
}

.seguimiento-btn-submit {
  margin-top: 12px;
  width: 100%;
}

.seguimiento-loading,
.seguimiento-vacio {
  text-align: center;
  padding: 16px 8px;
  color: var(--color-text-medium, #6b7280);
  font-size: 0.9rem;
}

.seguimiento-lista-pedidos {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
}

.seguimiento-lista-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border-light, #e5e7eb);
  border-radius: 10px;
  background: var(--color-surface, #fff);
}

.seguimiento-lista-item-main {
  min-width: 0;
  flex: 1;
}

.seguimiento-lista-meta {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--color-text-medium, #6b7280);
  line-height: 1.35;
}

.seguimiento-lista-codigo {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
}

.seguimiento-lista-fecha {
  font-size: 0.78rem;
}

.seguimiento-lista-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 0.82rem;
}

.header-credito-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #6ee7b7;
  color: #065f46;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-credito-badge i {
  font-size: 0.95rem;
  color: inherit;
}

.header-credito-badge > span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25em;
}

.header-credito-badge__text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35em;
}

.header-credito-saldo,
.header-credito-badge [data-credito-saldo] {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1;
  letter-spacing: 0;
}

.header-credito-badge:hover {
  background: #d1fae5;
  color: #047857;
}

.drawer-credito-saldo {
  font-size: 0.78rem;
  color: #059669;
  margin-left: 4px;
}

@media (max-width: 900px) {
  .header-credito-badge__label {
    display: none;
  }

  .header-credito-badge {
    padding: 7px 9px;
  }
}

/* Clima Chincha Alta — misma fila que logo y login */
.header-weather__climate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  min-width: 0;
  color: inherit;
}

a.header-weather__climate--link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.15s ease;
}

a.header-weather__climate--link:hover {
  opacity: 0.9;
}

a.header-weather__climate--link:focus-visible {
  outline: 2px solid var(--color-brand-gold-light, #f5d78e);
  outline-offset: 2px;
  border-radius: 6px;
}

.header-weather__flag {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.header-weather__flag svg {
  display: block;
  width: 20px;
  height: 13px;
}

.header-weather__icon {
  font-size: 1rem;
  color: var(--color-brand-gold-light, #f5d78e);
  flex-shrink: 0;
}

.header-weather__temp {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  flex-shrink: 0;
}

.header-weather__label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.2;
  white-space: nowrap;
}

.header-weather__desc {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.2;
  white-space: nowrap;
}

.header-weather__desc::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.65;
}

.header-weather__date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  flex-shrink: 0;
}

.header-weather__date::before {
  content: '·';
  margin-right: 6px;
  opacity: 0.65;
}

/* Redes sociales — centradas entre fecha y saludo/usuario */
.header-top-social {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.header-top-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.72rem;
  line-height: 1;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.header-top-social__link:hover {
  transform: scale(1.08);
  filter: brightness(1.08);
}

.header-top-social__link--wa { background: #25d366; }
.header-top-social__link--tiktok { background: #010101; }
.header-top-social__link--youtube { background: #ff0000; }
.header-top-social__link--x { background: #000000; }
.header-top-social__link--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.header-top-social__link--facebook { background: #1877f2; }

@media (max-width: 1100px) {
  .header-weather__desc {
    display: none;
  }
}

/* Celular / tablet: sin clima, bandera ni redes; liberar espacio para hamburguesa */
@media (max-width: 1024px) {
  .header-weather,
  .header-top-social {
    display: none !important;
  }

  header.site-header .top-bar:has(.header-weather),
  header.site-header .top-bar:has(.header-top-trailing) {
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto !important;
  }

  header.site-header .top-bar:has(.header-weather) .header-top-trailing,
  header.site-header .top-bar:has(.header-top-trailing):not(:has(.header-weather)) .header-top-trailing {
    grid-column: 2 !important;
    grid-row: 1;
    justify-self: end;
    width: auto;
    max-width: 100%;
  }

  .hamburger {
    display: inline-flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 36px;
    margin-right: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    cursor: pointer;
  }

  .hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 999px;
  }
}

@media (max-width: 640px) {
  .header-user-greeting {
    display: none;
  }
}
