/* ===== RESET BÁSICO DE LINKS (evita el azul/morado subrayado por defecto del navegador) ===== */
a {
  color: inherit;
  text-decoration: none;
}

/* ===== HEADER ===== */

.strand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px !important;
  height: 65px !important;
  border-bottom: 1px solid var(--strand-grey-line);
  position: sticky;
  top: 0;
  background: var(--strand-white);
  z-index: 1000;
  box-sizing: border-box !important;
  overflow: visible !important;
}


.strand-header__left { display: flex; align-items: center; gap: 16px; }
.strand-shop-link { font-size: 12px; font-weight: 600; letter-spacing: 0.05em; color: var(--strand-black); }
.strand-mobile-toggle { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--strand-black); }

/* ===== NAV DESPLEGABLE ===== */
.strand-nav { position: relative; }

.strand-nav__toggle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.strand-nav__toggle::after {
  content: '▾';
  font-size: 10px;
}

.strand-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 16px; /* área de transición para que el mouse llegue sin cerrar */
  background: transparent;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
}

.strand-nav__dropdown-inner {
  background: var(--strand-white);
  border: 1px solid var(--strand-grey-line);
  display: flex;
  flex-direction: column;
}

.strand-nav:hover .strand-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.strand-nav__item {
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  color: var(--strand-black);
  text-transform: uppercase;
  transition: background 0.15s;
}
.strand-nav__item:hover { background: var(--strand-grey-bg); }

.site-logo { display: block; }
.site-logo__img { height: 24px; width: auto; display: block; }
.strand-reg { font-size: 12px; vertical-align: super; }

.strand-header__right { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 20px; }
.strand-icon { font-size: 11px; letter-spacing: 0.05em; color: var(--strand-black); display: flex; align-items: center; }
.strand-header__right a:focus,
.strand-header__right a:focus-visible,
.strand-header__right a[aria-current],
.strand-header__right a.strand-contact {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
}

.strand-contact { font-weight: 500; }
.strand-cart svg { display: block; }
.strand-cart { position: relative; }
.strand-cart-count {
  position: absolute; top: -8px; right: -10px;
  background: var(--strand-black); color: var(--strand-white);
  font-size: 9px; width: 15px; height: 15px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ===== HEADER TRANSPARENTE SOBRE EL HERO (solo Home) ===== */
.strand-header--transparent {
  position: fixed; /* se queda pegado arriba al hacer scroll, en vez de irse con la página */
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  border-bottom: none;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.strand-hero {
  margin-top: 0;
}

/* Iconos y texto en blanco mientras el header está sobre el hero (arriba del todo) */
.strand-header--transparent .strand-shop-link,
.strand-header--transparent .strand-nav__toggle,
.strand-header--transparent .strand-icon,
.strand-header--transparent .strand-mobile-toggle {
  color: var(--strand-white);
  transition: color 0.25s ease;
}

.strand-header--transparent .strand-cart-count {
  background: var(--strand-white);
  color: var(--strand-black);
  transition: background 0.25s ease, color 0.25s ease;
}

/* Al hacer scroll hacia abajo: fondo blanco + texto/iconos negros (clase agregada por JS) */
.strand-header--transparent.strand-header--scrolled {
  background: var(--strand-white);
  border-bottom: 1px solid var(--strand-grey-line);
}

.strand-header--transparent.strand-header--scrolled .strand-shop-link,
.strand-header--transparent.strand-header--scrolled .strand-nav__toggle,
.strand-header--transparent.strand-header--scrolled .strand-icon,
.strand-header--transparent.strand-header--scrolled .strand-mobile-toggle {
  color: var(--strand-black);
}

.strand-header--transparent.strand-header--scrolled .strand-cart-count {
  background: var(--strand-black);
  color: var(--strand-white);
}

/* ===== FOOTER ===== */
.strand-footer { padding: 60px 40px 30px; border-top: 1px solid var(--strand-grey-line); margin-top: 60px; }
.strand-footer__columns { display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; gap: 30px; margin-bottom: 60px; }
.strand-footer__col h4 { font-size: 11px; letter-spacing: 0.05em; margin-bottom: 16px; }
.strand-footer__col ul { list-style: none; padding: 0; margin: 0; }
.strand-footer__col li { margin-bottom: 10px; }
.strand-footer__col a { font-size: 12px; color: var(--strand-black); opacity: 0.8; }
.strand-footer__col a:hover { opacity: 1; text-decoration: underline; }

/* Shop: 2 columnas internas */
.strand-footer__shop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}
.strand-footer__shop-grid a { font-size: 12px; color: var(--strand-black); opacity: 0.8; display: block; }
.strand-footer__shop-grid a:hover { opacity: 1; text-decoration: underline; }

.strand-footer__newsletter p { font-size: 12px; opacity: 0.7; margin-bottom: 14px; line-height: 1.4; }

.strand-footer__brand {
  display: flex; justify-content: space-between; align-items: flex-end;
}
.strand-footer__logo { display: block; }
.strand-footer__logo-img { height: 90px; width: auto; display: block; }
.strand-footer__rights { font-size: 10px; color: var(--strand-grey-line); }

/* ===== NEWSLETTER FORM ===== */
.strand-newsletter-form { display: flex; align-items: center; border-bottom: 1px solid var(--strand-black); max-width: 260px; }
.strand-newsletter-form input { flex: 1; border: none; background: none; padding: 8px 0; font-size: 13px; }
.strand-newsletter-form input:focus { outline: none; }
.strand-newsletter-submit { background: none; border: none; cursor: pointer; padding: 4px; color: var(--strand-black); }
.strand-newsletter-message { font-size: 11px; margin-top: 6px; }
.strand-newsletter-message.is-success { color: green; }
.strand-newsletter-message.is-error { color: var(--strand-sale-red); }

/* ===== RESPONSIVE HEADER/FOOTER ===== */
@media (max-width: 768px) {
  .strand-header { padding: 16px 20px !important; }

  /* Logo se mueve a la derecha en mobile */
  .strand-header__center { order: 3; }
  .strand-header__left   { order: 1; }
  .strand-header__right  { order: 2; }

  .strand-mobile-toggle { display: block; }
  .strand-shop-link { display: none; }
  .strand-nav { display: none; }
  .strand-contact { display: none; } /* CONTACTO va dentro del menú mobile */
  .site-logo__img { height: 18px; }

  .strand-footer { padding: 40px 20px 20px; }
  .strand-footer__columns { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; margin-bottom: 40px; }
  .strand-footer__logo-img { height: 48px; }
}

/* ===== MENÚ MOBILE ===== */
.strand-mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  width: 100%;
  height: calc(100vh - 65px);
  background: var(--strand-white);
  z-index: 999;
  flex-direction: column;
  padding: 20px 0;
  overflow-y: auto;
}
.strand-mobile-menu.is-open { display: flex; }

.strand-mobile-menu__item {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-bottom: 1px solid var(--strand-grey-line);
  color: var(--strand-black);
  text-decoration: none;
  display: block;
}
.strand-mobile-menu__item--sub {
  font-size: 12px;
  font-weight: 400;
  padding-left: 40px;
  opacity: 0.7;
}
.strand-mobile-menu__item:hover { background: var(--strand-grey-bg); }

