/* Tema farmacéutico claro aplicado después del bundle de producción. */
:root {
  --bg-void: #f7fcff;
  --bg-base: #ffffff;
  --bg-surface: #f2f9fc;
  --bg-surface-elevated: #ffffff;
  --bg-surface-hover: #e7f5fb;
  --border-subtle: rgba(11, 126, 181, .14);
  --border-active: rgba(11, 126, 181, .34);
  --border-gold: rgba(11, 126, 181, .42);
  --text-primary: #102f43;
  --text-secondary: #4f7084;
  --text-tertiary: #7893a3;
  --text-gold: #087fbd;
  --text-gold-dim: rgba(8, 127, 189, .48);
  --gold-50: rgba(8, 127, 189, .05);
  --gold-100: rgba(8, 127, 189, .1);
  --gold-200: rgba(8, 127, 189, .18);
  --gold-400: rgba(8, 127, 189, .34);
  --gold-600: rgba(8, 127, 189, .58);
  --gold-800: rgba(8, 127, 189, .8);
  --gold-1000: #087fbd;
  --accent-pharma: #078aa8;
  --accent-pharma-dim: rgba(7, 138, 168, .12);
  --accent-cyan: #19a9df;
  --accent-cyan-dim: rgba(25, 169, 223, .12);
  --fog-color: rgba(25, 169, 223, .025);
  --glow-gold: rgba(8, 127, 189, .24);
  --glow-cyan: rgba(25, 169, 223, .25);
  --dragon-color: rgba(8, 127, 189, .08);
  --dragon-eye: rgba(8, 127, 189, .65);
  --shadow-card: 0 12px 32px rgba(16, 47, 67, .08);
  --shadow-modal: 0 22px 60px rgba(16, 47, 67, .16);
  --shadow-nav: 0 8px 28px rgba(16, 47, 67, .07);
  --glow-gold-sm: 0 0 12px rgba(8, 127, 189, .12);
  --glow-gold-md: 0 0 24px rgba(8, 127, 189, .15);
  --glow-gold-lg: 0 0 48px rgba(8, 127, 189, .1);
}

html, body { background: #fff; color-scheme: light; }
body { color: var(--text-secondary); }
.hero-section { background: #f7fcff; }
.hero-bg img { opacity: 1; }
.hero-chinese { color: #087fbd; opacity: .045; }
.hero-overline, .hero-subheadline { color: #087fbd; }
.navbar-scrolled { background: rgba(255,255,255,.92); border-bottom: 1px solid var(--border-subtle); }
.btn-gold { color: #fff; background: linear-gradient(135deg,#087fbd,#19a9df); border-color: transparent; box-shadow: 0 10px 24px rgba(8,127,189,.2); }
.btn-gold:hover { color: #fff; background: linear-gradient(135deg,#066d9f,#087fbd); }
.category-card, .product-card, .advisor-card { box-shadow: var(--shadow-card); }
.product-card img, .category-card img { mix-blend-mode: multiply; }
.philosophy-section { background-image: radial-gradient(ellipse at center,rgba(25,169,223,.08),transparent 62%); }
.footer { background: #eff9fd; }
.audio-toggle { display: none !important; }
.fx-root, .fog-layer, .glow-layer, .dragon-layer { display: none !important; }
::selection { background: rgba(25,169,223,.24); color: #102f43; }
::-webkit-scrollbar-track { background: #f1f9fc; }
::-webkit-scrollbar-thumb { background: rgba(8,127,189,.32); }

@media (max-width: 767px) {
  .hero-section { min-height: 92svh; }
  .hero-bg img { object-position: 58% center; }
}

/* Hero repotenciado + catálogo APX + buscador conversacional. */
.hero-content { width: min(1120px, 100%); max-width: 1120px; padding-top: 6rem; }
.apx-hero-brand { margin: 0 0 .15em; color: #102f43; font: 800 clamp(5rem,16vw,11rem)/.72 var(--font-body); letter-spacing: -.085em; }
.apx-hero-brand::first-letter { color: #087fbd; }
.hero-headline { max-width: 840px; margin-inline: auto; font-size: clamp(2.25rem,5vw,4.6rem); color: #102f43; }
.hero-subheadline { margin-bottom: 1.5rem; }

.apx-assistant { width: min(800px,100%); margin: 2rem auto 0; padding: 1rem; border: 1px solid rgba(8,127,189,.2); border-radius: 22px; background: rgba(255,255,255,.9); box-shadow: 0 22px 60px rgba(16,47,67,.13); backdrop-filter: blur(14px); text-align: left; }
.apx-assistant-head { display: flex; align-items: center; gap: .55rem; padding: 0 .35rem .55rem; color: #102f43; }
.apx-assistant-head small { margin-left: auto; color: #087fbd; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.apx-ai-dot { width: 9px; height: 9px; border-radius: 50%; background: #18a9df; box-shadow: 0 0 0 5px rgba(24,169,223,.12); }
.apx-assistant-intro { margin: 0 .35rem .75rem; color: #5d7a8c; font-size: .84rem; }
.apx-assistant-form { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
.apx-assistant-input,.apx-catalog-input { min-width: 0; border: 1px solid #cfe6f0; border-radius: 999px; background: #f8fcfe; color: #102f43; font: 500 .93rem/1.3 var(--font-body); outline: none; }
.apx-assistant-input { padding: .85rem 1.1rem; }
.apx-catalog-input { width: min(660px,100%); padding: .95rem 1.2rem; }
.apx-assistant-input:focus,.apx-catalog-input:focus { border-color: #149bd1; box-shadow: 0 0 0 4px rgba(20,155,209,.1); }
.apx-assistant-send,.apx-add { border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg,#087fbd,#19a9df); font-weight: 750; cursor: pointer; box-shadow: 0 8px 20px rgba(8,127,189,.2); }
.apx-assistant-send { padding: 0 1.35rem; }
.apx-assistant-send:disabled { opacity: .58; cursor: wait; }
.apx-assistant-quick { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .65rem; }
.apx-assistant-quick button,.apx-chip { padding: .45rem .78rem; border: 1px solid rgba(8,127,189,.18); border-radius: 999px; background: #fff; color: #547489; font: 650 .72rem/1 var(--font-body); cursor: pointer; }
.apx-assistant-quick button:hover,.apx-chip:hover,.apx-chip.is-active { color: #fff; border-color: #087fbd; background: #087fbd; }
.apx-assistant-messages { display: grid; gap: .45rem; margin-top: .75rem; }
.apx-message { max-width: 88%; padding: .65rem .8rem; border-radius: 13px; font-size: .83rem; line-height: 1.48; }
.apx-message-user { justify-self: end; color: #fff; background: #087fbd; }
.apx-message-ai { justify-self: start; color: #294c61; background: #eaf7fc; }
.apx-assistant-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .45rem; margin-top: .65rem; }
.apx-assistant-result { display: flex; align-items: center; min-width: 0; padding: .42rem; border: 1px solid #d9eaf2; border-radius: 13px; background: #fff; text-align: left; cursor: pointer; }
.apx-assistant-result:hover { border-color: #64bee1; background: #f3fbfe; }
.apx-assistant-result img { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 10px; object-fit: contain; background: linear-gradient(145deg,#102f43,#0b7dac); }
.apx-assistant-result-copy { min-width: 0; padding-left: .55rem; display: grid; }
.apx-assistant-result-copy strong { overflow: hidden; color: #173b50; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.apx-assistant-result-copy span { overflow: hidden; color: #668497; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }

.apx-catalog-page { min-height: 100vh; padding: 8.5rem clamp(1rem,4vw,4rem) 5rem; background: linear-gradient(180deg,#f5fbfe,#fff 35rem); }
.apx-catalog-hero { max-width: 1180px; margin: 0 auto 2rem; }
.apx-eyebrow { color: #087fbd; font-size: .72rem; font-weight: 750; letter-spacing: .16em; }
.apx-catalog-hero h1 { margin: .25rem 0; color: #102f43; font: 750 clamp(3.4rem,9vw,7.5rem)/.95 var(--font-body); letter-spacing: -.07em; }
.apx-catalog-hero p { max-width: 640px; color: #5f7d8e; }
.apx-catalog-tools { max-width: 1180px; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.apx-catalog-count { color: #638195; font-size: .78rem; }
.apx-family-chips { max-width: 1180px; margin: 0 auto 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.apx-products-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill,minmax(245px,1fr)); gap: 1.25rem; }
.apx-product-card { min-width: 0; overflow: hidden; border: 1px solid #d9eaf2; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(16,47,67,.07); transition: transform .22s ease,box-shadow .22s ease,border-color .22s ease; }
.apx-product-card:hover { transform: translateY(-4px); border-color: rgba(8,127,189,.42); box-shadow: 0 18px 42px rgba(8,127,189,.14); }
.apx-product-image { position: relative; height: 260px; display: grid; place-items: center; isolation: isolate; overflow: hidden; background: radial-gradient(circle at 68% 30%,rgba(28,176,225,.68),transparent 34%),radial-gradient(circle at 30% 78%,rgba(8,20,30,.72),transparent 42%),linear-gradient(145deg,#102633,#0b82b5 58%,#dff6fd); }
.apx-product-image::before { content: ""; position: absolute; inset: 14% 12%; z-index: -1; border-radius: 32px; background: linear-gradient(135deg,rgba(3,11,18,.72),rgba(35,184,230,.52)); box-shadow: -22px 20px 46px rgba(4,19,29,.34),22px -18px 42px rgba(47,195,236,.34); transform: rotate(-3deg); }
.apx-product-img { width: calc(100% - 34px); height: calc(100% - 34px); object-fit: contain; border-radius: 15px; filter: drop-shadow(0 12px 18px rgba(3,18,27,.22)); }
.apx-product-live { position: absolute; top: .75rem; left: .75rem; padding: .32rem .55rem; border-radius: 999px; color: #fff; background: rgba(7,34,48,.72); font-size: .6rem; font-weight: 750; letter-spacing: .08em; backdrop-filter: blur(6px); }
.apx-product-info { display: flex; min-height: 265px; flex-direction: column; padding: 1rem; }
.apx-product-category { color: #087fbd; font-size: .64rem; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.apx-product-name { margin: .35rem 0; color: #16394d; font: 700 1rem/1.3 var(--font-body); }
.apx-product-desc { display: -webkit-box; overflow: hidden; margin: 0; color: #6a8595; font-size: .79rem; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.apx-product-components { margin: .55rem 0 0; color: #365f75; font-size: .73rem; }
.apx-product-bottom { margin-top: auto; padding-top: .9rem; display: flex; align-items: end; justify-content: space-between; gap: .6rem; }
.apx-price-slot { display: grid; color: #087fbd; }
.apx-price-slot small { color: #7c97a6; font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; }
.apx-price-slot strong { font-size: .92rem; }
.apx-add { padding: .58rem .9rem; font-size: .72rem; }
.apx-no-results { grid-column: 1/-1; padding: 4rem 1rem; color: #668496; text-align: center; }
.apx-toast { position: fixed; left: 50%; bottom: 1.4rem; z-index: 999; padding: .75rem 1.1rem; border-radius: 999px; color: #fff; background: #102f43; box-shadow: 0 14px 36px rgba(16,47,67,.24); opacity: 0; transform: translate(-50%,10px); transition: .2s ease; }
.apx-toast.is-visible { opacity: 1; transform: translate(-50%,0); }

.apx-account-button { max-width: 126px; overflow: hidden; padding: .48rem .78rem; border: 1px solid rgba(8,127,189,.24); border-radius: 999px; background: rgba(255,255,255,.76); color: #27546c; font: 700 .7rem/1 var(--font-body); text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.apx-account-button:hover,.apx-account-button.is-authenticated { color: #fff; border-color: #087fbd; background: #087fbd; }
.apx-account-overlay { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 1rem; background: rgba(9,32,45,.42); backdrop-filter: blur(8px); }
.apx-account-panel { position: relative; width: min(430px,100%); padding: 2rem; border: 1px solid rgba(26,165,217,.22); border-radius: 24px; background: #fff; box-shadow: 0 26px 80px rgba(8,40,58,.24); }
.apx-account-panel h2 { margin: .25rem 0 .65rem; color: #12384d; font: 750 clamp(2rem,8vw,3rem)/1 var(--font-body); letter-spacing: -.05em; }
.apx-account-close { position: absolute; top: .7rem; right: .8rem; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #edf8fc; color: #27546c; font-size: 1.35rem; cursor: pointer; }
.apx-account-copy { margin: 0 0 1rem; color: #668395; font-size: .84rem; line-height: 1.55; }
.apx-account-form { display: grid; gap: .7rem; }
.apx-account-input { width: 100%; padding: .9rem 1rem; border: 1px solid #d3e8f1; border-radius: 13px; background: #f8fcfe; color: #153b50; outline: none; }
.apx-account-input:focus { border-color: #149bd1; box-shadow: 0 0 0 4px rgba(20,155,209,.1); }
.apx-account-submit { width: 100%; padding: .88rem 1rem; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg,#087fbd,#19a9df); font-weight: 750; cursor: pointer; }
.apx-account-submit:disabled { opacity: .55; cursor: wait; }
.apx-account-error { min-height: 1rem; color: #b33d4f; font-size: .74rem; }
.apx-account-switch { width: 100%; margin-top: .8rem; border: 0; background: transparent; color: #087fbd; font-weight: 700; cursor: pointer; }
.apx-account-switch:disabled { opacity: .5; cursor: wait; }
.apx-account-code { text-align: center; font: 750 1.45rem/1 var(--font-mono); letter-spacing: .42em; }
.apx-account-back { margin-top: .25rem; color: #668395; font-weight: 600; }
.apx-account-summary { display: flex; align-items: baseline; gap: .5rem; margin: 1rem 0 1.3rem; padding: 1rem; border-radius: 16px; background: #eaf7fc; color: #426a80; }
.apx-account-summary strong { color: #087fbd; font-size: 2rem; }
.apx-language-button { width: 36px; height: 30px; border: 1px solid rgba(8,127,189,.24); border-radius: 999px; background: #fff; color: #087fbd; font: 800 .68rem/1 var(--font-body); cursor: pointer; }
.apx-language-button:hover { color: #fff; background: #087fbd; }
.apx-account-panel { max-height: min(90vh,760px); overflow-y: auto; }
.apx-form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
.apx-form-row-phone { grid-template-columns: 1.2fr .65fr 1.35fr; }
.apx-profile-form { padding-top: .2rem; }
.apx-checkout-panel { width: min(620px,100%); }
.apx-checkout-summary { display: grid; gap: .35rem; max-height: 150px; overflow-y: auto; margin: 0 0 1rem; padding: .8rem; border: 1px solid #d9eaf2; border-radius: 14px; background: #f5fbfe; }
.apx-checkout-line { display: flex; align-items: center; justify-content: space-between; gap: .8rem; color: #365f75; font-size: .76rem; }
.apx-checkout-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.apx-checkout-line strong { flex: 0 0 auto; color: #087fbd; }
.apx-checkout-notes { resize: vertical; font-family: var(--font-body); }

@media (max-width: 767px) {
  .hero-content { padding: 5.8rem 1rem 2rem; }
  .apx-hero-brand { font-size: clamp(4.5rem,27vw,7rem); }
  .hero-headline { font-size: clamp(1.8rem,8.7vw,2.7rem); }
  .apx-assistant { margin-top: 1.2rem; padding: .75rem; border-radius: 17px; }
  .apx-assistant-intro { display: none; }
  .apx-assistant-results { grid-template-columns: 1fr; }
  .apx-catalog-tools { align-items: stretch; flex-direction: column; }
  .apx-products-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .7rem; }
  .apx-product-image { height: 180px; }
  .apx-product-info { min-height: 260px; padding: .78rem; }
  .apx-product-name { font-size: .86rem; }
  .apx-product-desc { font-size: .72rem; -webkit-line-clamp: 2; }
  .apx-product-bottom { align-items: stretch; flex-direction: column; }
  .apx-add { width: 100%; }
  .apx-account-button { max-width: 82px; padding-inline: .55rem; }
  .apx-language-button { width: 32px; }
  .apx-account-panel { padding: 1.35rem; }
  .apx-form-row,.apx-form-row-phone { grid-template-columns: 1fr; }
  .navbar-chinese { display: none !important; }
}
