/* Dorado authoritative storefront theme fix · 2026-09-29
   Loaded last. This file only resolves the remaining header/theme conflict. */

:root{
  --theme-authority-ease-out:cubic-bezier(0.23,1,0.32,1);
  --theme-authority-ui:220ms;
}

/* At the top of the hero the header must float over the image in BOTH themes.
   No opaque dark slab in dark mode, no opaque white slab in light mode. */
html[data-store-theme] .nav:not(.scrolled){
  background:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
}

/* Keep navigation text readable over the hero. */
html[data-store-theme] .nav:not(.scrolled) .navlinks a{
  color:rgba(255,255,255,.78)!important;
  text-shadow:0 1px 12px rgba(0,0,0,.26)!important;
}
html[data-store-theme] .nav:not(.scrolled) .navlinks a.active,
html[data-store-theme] .nav:not(.scrolled) .navlinks a:hover,
html[data-store-theme] .nav:not(.scrolled) .navlinks a:focus-visible{
  color:#fff!important;
}
html[data-store-theme] .nav:not(.scrolled) .navlinks a::after{
  background:#e8b13f!important;
}

/* Header actions over the hero are glass, not solid dark blocks. */
html[data-store-theme] .nav:not(.scrolled) .nav-cta,
html[data-store-theme] .nav:not(.scrolled) .orders-trigger{
  background:rgba(8,20,28,.18)!important;
  color:#fff!important;
  border-color:rgba(255,255,255,.28)!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:blur(10px)!important;
  backdrop-filter:blur(10px)!important;
}
html[data-store-theme] .nav:not(.scrolled) .nav-cta .ui-icon{
  color:#42dc82!important;
}
html[data-store-theme] .nav:not(.scrolled) .orders-trigger .ui-icon{
  color:#eef3f4!important;
}

/* Once the page scrolls, each theme gets its own compact rounded material. */
html[data-store-theme="light"] .nav.scrolled{
  background:rgba(255,253,248,.97)!important;
  color:#18262f!important;
  border:1px solid rgba(24,38,47,.10)!important;
  border-radius:24px!important;
  box-shadow:0 14px 34px rgba(24,38,47,.10)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  backdrop-filter:blur(14px)!important;
}

html[data-store-theme="dark"] .nav.scrolled{
  background:rgba(13,30,41,.94)!important;
  color:#f4f0e8!important;
  border:1px solid rgba(255,255,255,.11)!important;
  border-radius:24px!important;
  box-shadow:0 14px 34px rgba(2,8,12,.24)!important;
  -webkit-backdrop-filter:blur(14px)!important;
  backdrop-filter:blur(14px)!important;
}

/* Smooth color-only changes. No layout animation. */
html.store-theme-transitioning .nav,
html.store-theme-transitioning .nav-cta,
html.store-theme-transitioning .orders-trigger{
  transition:
    background-color var(--theme-authority-ui) ease,
    color var(--theme-authority-ui) ease,
    border-color var(--theme-authority-ui) ease,
    box-shadow var(--theme-authority-ui) ease!important;
}

@media(max-width:700px){
  /* The mobile floating menu button stays visible; this only removes the old solid nav strip. */
  html[data-store-theme] .nav:not(.scrolled){
    background:transparent!important;
  }
}

@media(prefers-reduced-motion:reduce){
  html.store-theme-transitioning .nav,
  html.store-theme-transitioning .nav-cta,
  html.store-theme-transitioning .orders-trigger{
    transition:
      background-color 140ms ease,
      color 140ms ease,
      border-color 140ms ease!important;
  }
}


/* =========================================================
   MOBILE LIGHT FAQ — authoritative contrast/layout fix
   Keeps the dark theme untouched.
   ========================================================= */
@media(max-width:700px){
  html[data-store-theme="light"],
  html[data-store-theme="light"] body{
    background:#f7f4ec!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes.faq-section{
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:42px 0 52px!important;
    background:#f7f4ec!important;
    color:#17242d!important;
    border:0!important;
    overflow:hidden!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-shell{
    box-sizing:border-box!important;
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:0 auto!important;
    padding:0!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:20px!important;
    background:transparent!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro{
    min-width:0!important;
    color:#17242d!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro .section-index,
  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro .section-index b,
  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro .kicker{
    color:#b77a13!important;
    -webkit-text-fill-color:#b77a13!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro h2{
    display:block!important;
    margin:10px 0 0!important;
    color:#17242d!important;
    -webkit-text-fill-color:#17242d!important;
    opacity:1!important;
    visibility:visible!important;
    font-size:clamp(30px,9vw,39px)!important;
    line-height:1!important;
    letter-spacing:-.045em!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro h2 span{
    color:#d49b25!important;
    -webkit-text-fill-color:#d49b25!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-intro p{
    margin:12px 0 0!important;
    color:#6c7980!important;
    -webkit-text-fill-color:#6c7980!important;
    opacity:1!important;
    font-size:10.5px!important;
    line-height:1.6!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list{
    width:100%!important;
    min-width:0!important;
    display:grid!important;
    gap:8px!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list details{
    width:100%!important;
    box-sizing:border-box!important;
    margin:0!important;
    background:#fff!important;
    color:#17242d!important;
    border:1px solid #ddd5c9!important;
    border-radius:14px!important;
    box-shadow:0 6px 18px rgba(23,36,45,.045)!important;
    overflow:hidden!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list details[open]{
    background:#fffaf0!important;
    border-color:#d8b15e!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list summary{
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    box-sizing:border-box!important;
    padding:13px 42px 13px 14px!important;
    color:#22313a!important;
    -webkit-text-fill-color:#22313a!important;
    opacity:1!important;
    font-size:11px!important;
    font-weight:750!important;
    line-height:1.35!important;
    text-wrap:balance!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list summary::after{
    right:14px!important;
    color:#c78918!important;
    -webkit-text-fill-color:#c78918!important;
  }

  html[data-store-theme="light"] #preguntas-frecuentes .faq-list details p{
    margin:0!important;
    padding:0 14px 14px!important;
    color:#65737a!important;
    -webkit-text-fill-color:#65737a!important;
    opacity:1!important;
    font-size:10px!important;
    line-height:1.6!important;
  }
}
