/* ALTER EGO STORE — capa visual final 2026-09-15 */
:root{--ae-green:#075c3b;--ae-green2:#0c8a5a;--ae-ink:#122019;--ae-muted:#65736c;--ae-bg:#f5f7f5;--ae-card:#fff;--ae-line:#e2e8e4;--ae-shadow:0 18px 50px rgba(18,32,25,.09);--ae-radius:20px}
*{box-sizing:border-box}html,body{margin:0;max-width:100%;overflow-x:hidden}body:not(.admin-body){font-family:Nunito,Arial,sans-serif!important;background:var(--ae-bg)!important;color:var(--ae-ink)!important;line-height:1.5!important;min-height:100vh}.container{width:min(calc(100% - 40px),1180px)!important;max-width:1180px!important;margin-inline:auto!important;padding:0!important}
a{color:inherit;text-decoration:none}img{max-width:100%;height:auto}.header{position:sticky!important;top:0!important;z-index:1000!important;background:#07140f!important;border-bottom:1px solid rgba(255,255,255,.08)!important;box-shadow:0 8px 30px rgba(0,0,0,.10)!important}.header__content{height:78px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important}.logo{display:flex!important;align-items:center!important;flex:0 0 auto!important}.logo img{display:block!important;width:auto!important;height:38px!important;max-width:170px!important;object-fit:contain!important;opacity:1!important}.nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:28px!important;flex:1!important}.nav>a,.nav-dropdown__toggle{color:#fff!important;font-size:14px!important;font-weight:700!important;letter-spacing:.02em!important}.nav a:hover{color:#a9d8c2!important}.nav-dropdown{position:relative!important}.nav-dropdown__menu{position:absolute!important;top:calc(100% + 18px)!important;left:50%!important;transform:translateX(-50%)!important;min-width:250px!important;background:#fff!important;color:var(--ae-ink)!important;border:1px solid var(--ae-line)!important;border-radius:16px!important;box-shadow:var(--ae-shadow)!important;padding:10px!important}.header__actions{display:flex!important;align-items:center!important;gap:8px!important}.icon-btn{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.15)!important;border-radius:50%!important;background:transparent!important;color:#fff!important;padding:0!important}.icon-btn:hover{background:rgba(255,255,255,.1)!important}.ae-ui-icon{width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}.cart-link{position:relative!important}.cart-link #cartCount{position:absolute!important;right:-3px!important;top:-5px!important;min-width:18px!important;height:18px!important;padding:0 4px!important;border-radius:9px!important;background:var(--ae-green2)!important;color:#fff!important;font-size:10px!important;display:grid!important;place-items:center!important}.menu-btn{display:none!important}.search-panel{display:none;background:#fff!important;border-bottom:1px solid var(--ae-line)!important}.search-panel.active,.search-panel.is-open{display:block!important}.search-panel__inner{display:flex!important;gap:10px!important;padding-block:16px!important}.search-panel input{flex:1!important;min-width:0!important}
.btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:46px!important;padding:11px 20px!important;border-radius:12px!important;border:1px solid transparent!important;font-weight:800!important;cursor:pointer!important}.btn--primary{background:var(--ae-green)!important;color:#fff!important}.btn--primary:hover{background:#064a30!important}.btn--danger{background:#8b3030!important;color:#fff!important}.panel,.glass-panel,.auth-card{background:var(--ae-card)!important;border:1px solid var(--ae-line)!important;border-radius:var(--ae-radius)!important;box-shadow:var(--ae-shadow)!important}.section{padding:48px 0!important;min-height:55vh}.section--soft{background:#eef3f0!important}.page-hero{padding:52px 0 28px!important;background:linear-gradient(180deg,#edf5f0,#f5f7f5)!important}.page-hero h1{font-size:clamp(30px,4vw,48px)!important;line-height:1.08!important;margin:0 0 10px!important}.page-hero p{color:var(--ae-muted)!important;max-width:700px!important}.tag{display:inline-flex!important;align-items:center!important;padding:6px 10px!important;border-radius:999px!important;background:#e6f2ec!important;color:var(--ae-green)!important;font-size:12px!important;font-weight:900!important}.toolbar{display:flex!important;gap:12px!important;align-items:center!important;flex-wrap:wrap!important;margin:0 0 26px!important}.toolbar input,.toolbar select,.form input,.form select,.form textarea,.shop-search-box input,.shop-topbar select{min-height:46px!important;border:1px solid #d8e1dc!important;border-radius:12px!important;background:#fff!important;color:var(--ae-ink)!important;padding:10px 13px!important;outline:none!important}.toolbar input:focus,.toolbar select:focus,.form input:focus,.form select:focus,.form textarea:focus,.shop-search-box input:focus{border-color:var(--ae-green2)!important;box-shadow:0 0 0 4px rgba(12,138,90,.10)!important}
.shop-page{padding:34px 0 60px!important;min-height:70vh!important}.shop-breadcrumb{font-size:12px!important;color:var(--ae-muted)!important;margin:0 0 24px!important}.shop-breadcrumb strong{color:var(--ae-green)!important}.shop-layout{display:grid!important;grid-template-columns:250px minmax(0,1fr)!important;gap:32px!important;align-items:start!important}.shop-sidebar{padding:22px!important;position:sticky!important;top:104px!important;background:#fff!important;color:var(--ae-ink)!important}.shop-sidebar h3{margin:0 0 12px!important;font-size:14px!important;color:var(--ae-ink)!important}.shop-search-box{position:relative!important;margin-bottom:22px!important}.shop-search-box input{width:100%!important}.shop-search-box span{position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;color:var(--ae-muted)!important}.shop-filter-title{margin:20px 0 8px!important;padding-top:16px!important;border-top:1px solid var(--ae-line)!important}.shop-checks{display:grid!important;gap:8px!important;max-height:240px!important;overflow:auto!important}.shop-checks label{display:flex!important;align-items:center!important;gap:9px!important;font-size:13px!important;color:#405048!important;text-shadow:none!important}.shop-checks input{accent-color:var(--ae-green)!important}.shop-filter-actions{display:flex!important;gap:8px!important;margin-top:20px!important}.shop-filter-apply,.shop-filter-clear{flex:1!important;min-height:40px!important;border-radius:10px!important;border:1px solid var(--ae-line)!important;font-weight:800!important}.shop-filter-apply{background:var(--ae-green)!important;color:#fff!important}.shop-filter-clear{background:#fff!important;color:var(--ae-ink)!important}.shop-topbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;margin:0 0 22px!important}.shop-topbar p{margin:0!important;color:var(--ae-muted)!important}.products-grid,.shop-products-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:22px!important;align-items:stretch!important}.product-card,.shop-products-grid .product-card{width:100%!important;max-width:none!important;min-height:0!important;height:auto!important;background:#fff!important;border:1px solid var(--ae-line)!important;border-radius:18px!important;overflow:hidden!important;box-shadow:0 10px 30px rgba(18,32,25,.06)!important;transition:transform .2s ease,box-shadow .2s ease!important}.product-card:hover{transform:translateY(-4px)!important;box-shadow:0 18px 40px rgba(18,32,25,.11)!important}.product-card__img{height:240px!important;min-height:240px!important;background:#f7f9f7!important;display:grid!important;place-items:center!important;padding:20px!important}.product-card__img img{width:100%!important;height:100%!important;max-height:205px!important;object-fit:contain!important}.product-card__body{padding:17px!important}.product-card__title{font-size:15px!important;line-height:1.35!important;color:var(--ae-ink)!important}.product-card__desc{color:var(--ae-muted)!important;font-size:12px!important}.shop-pagination{display:flex!important;justify-content:center!important;gap:7px!important;margin-top:30px!important}
.cart-layout,.checkout-layout,.contact-layout{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(300px,380px)!important;gap:28px!important;align-items:start!important}.cart-layout>.panel,.contact-form-card,.contact-info-card{padding:24px!important}.summary-row{display:flex!important;justify-content:space-between!important;gap:16px!important;padding:10px 0!important;border-bottom:1px solid var(--ae-line)!important}.summary-total{font-size:18px!important;font-weight:900!important}.form{display:grid!important;gap:14px!important}.form-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:12px!important}.form label{display:grid!important;gap:6px!important;font-size:13px!important;font-weight:700!important}.form textarea{min-height:120px!important;resize:vertical!important}.contact-hero{padding:54px 0!important;background:linear-gradient(135deg,#0b2d21,#075c3b)!important;color:#fff!important}.contact-hero p{color:#d4e6de!important}.contact-map-grid,.contact-qr-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:18px!important}.contact-map-grid>* ,.contact-qr-grid>*{min-width:0!important}
.auth-page{min-height:100vh!important;display:grid!important;place-items:center!important;padding:40px 20px!important;background:linear-gradient(145deg,#07140f,#0b3324)!important}.auth-card{width:min(100%,470px)!important;padding:32px!important;margin:auto!important}.auth-logo{display:block!important;max-width:180px!important;max-height:55px!important;object-fit:contain!important;margin:0 auto 24px!important;opacity:1!important}.auth-card h1,.auth-card h2{text-align:center!important;margin:0 0 8px!important}.auth-card>p{text-align:center!important;color:var(--ae-muted)!important;margin-bottom:22px!important}.alert{border-radius:12px!important;padding:11px 13px!important}.footer{background:#07140f!important;color:#fff!important;padding:48px 0 20px!important}.footer__grid{display:grid!important;grid-template-columns:1.5fr repeat(3,1fr)!important;gap:34px!important}.footer__logo{width:auto!important;height:38px!important;max-width:170px!important;object-fit:contain!important;opacity:1!important;margin-bottom:14px!important}.footer h4{margin:0 0 12px!important;color:#fff!important}.footer a,.footer p{display:block!important;color:#b8c5bf!important;font-size:13px!important;margin:0 0 8px!important}.footer a:hover{color:#fff!important}.footer__bottom{text-align:center!important;border-top:1px solid rgba(255,255,255,.1)!important;padding-top:18px!important;margin-top:30px!important}.footer-social{display:flex!important;gap:9px!important;margin-top:14px!important}.footer-social a{width:36px!important;height:36px!important;display:grid!important;place-items:center!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:50%!important}.footer-social img{width:18px!important;height:18px!important;object-fit:contain!important}.whatsapp{position:fixed!important;right:22px!important;bottom:22px!important;width:54px!important;height:54px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#1fbf63!important;box-shadow:0 10px 28px rgba(0,0,0,.22)!important;z-index:900!important}.whatsapp img{width:27px!important;height:27px!important}
@media(max-width:900px){.nav{position:fixed!important;top:78px!important;left:0!important;right:0!important;background:#07140f!important;display:none!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;padding:12px 20px 20px!important;border-top:1px solid rgba(255,255,255,.08)!important}.nav.active,.nav.is-open{display:flex!important}.nav>a,.nav-dropdown__toggle{padding:12px 0!important}.menu-btn{display:grid!important}.shop-layout,.cart-layout,.checkout-layout,.contact-layout{grid-template-columns:1fr!important}.shop-sidebar{position:static!important}.shop-filter-toggle{display:flex!important}.shop-filter-content{display:none!important}.shop-filter-content.active,.shop-filter-content.is-open{display:block!important}.products-grid,.shop-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.footer__grid{grid-template-columns:1fr 1fr!important}.contact-map-grid,.contact-qr-grid{grid-template-columns:1fr 1fr!important}}
@media(max-width:600px){.container{width:min(calc(100% - 24px),1180px)!important}.header__content{height:68px!important}.logo img{height:30px!important;max-width:135px!important}.nav{top:68px!important}.header__actions{gap:5px!important}.icon-btn{width:38px!important;height:38px!important}.profile-link{display:none!important}.section{padding:32px 0!important}.page-hero{padding:34px 0 20px!important}.shop-page{padding:22px 0 42px!important}.shop-topbar{align-items:stretch!important;flex-direction:column!important}.shop-topbar select{width:100%!important}.products-grid,.shop-products-grid{grid-template-columns:1fr!important;gap:16px!important}.product-card,.shop-products-grid .product-card{max-width:420px!important;margin-inline:auto!important}.product-card__img{height:260px!important;min-height:260px!important}.footer__grid,.contact-map-grid,.contact-qr-grid,.form-row{grid-template-columns:1fr!important}.footer{padding-top:36px!important}.auth-card{padding:24px 18px!important}.whatsapp{right:14px!important;bottom:14px!important;width:50px!important;height:50px!important}}

/* === Revisión integral de TODA la tienda — v2 === */
body:not(.admin-body)>main{width:100%}
h1,h2,h3,h4,p{overflow-wrap:break-word}.section-head{display:flex!important;align-items:end!important;justify-content:space-between!important;gap:20px!important;margin-bottom:24px!important}.section-head h2,.section__title{margin:0!important;font-size:clamp(24px,3vw,36px)!important;line-height:1.12!important}.section-kicker{display:block!important;margin-bottom:7px!important;color:var(--ae-green)!important;font-size:11px!important;font-weight:900!important;letter-spacing:.16em!important;text-transform:uppercase!important}
.hero{position:relative!important;min-height:clamp(430px,58vw,680px)!important;background:#dfe8e2!important;overflow:hidden!important}.hero img,.hero video,.hero-carousel img,.hero-carousel video{width:100%!important;height:100%!important;object-fit:cover!important}.hero-carousel>*{max-width:100%!important}.home-discovery,.home-random-products{min-height:0!important}.home-category-brand-strip,.home-managed-banners{width:min(calc(100% - 40px),1180px)!important;margin:28px auto!important}.home-managed-banners img,.home-managed-banners video{display:block!important;width:100%!important;max-height:520px!important;object-fit:cover!important;border-radius:22px!important}.home-view-more{display:flex!important;justify-content:center!important;margin-top:28px!important}.benefits{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:18px!important;padding:32px 0!important}.benefits>*{min-width:0!important;background:#fff!important;border:1px solid var(--ae-line)!important;border-radius:16px!important;padding:20px!important}.cta{padding:54px 0!important;background:#e7efe9!important}.cta__content{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:28px!important}
.panel{padding:24px!important}.panel:empty{min-height:120px!important}.cart-layout{padding-top:0!important}.cart-layout>*,.checkout-layout>*{min-width:0!important}.cart-item{display:grid!important;grid-template-columns:90px minmax(0,1fr) auto!important;gap:18px!important;align-items:center!important;padding:16px 0!important;border-bottom:1px solid var(--ae-line)!important}.cart-item img{width:90px!important;height:90px!important;object-fit:contain!important;background:#f7f9f7!important;border-radius:12px!important}.checkout-form-premium,.checkout-summary-premium{padding:26px!important}.checkout-fields,.payment-fields{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important}.checkout-field--full{grid-column:1/-1!important}.checkout-field label{display:block!important;margin-bottom:6px!important;font-size:12px!important;font-weight:800!important}.checkout-field input,.checkout-field select,.payment-fields input{width:100%!important;min-height:46px!important;border:1px solid #d8e1dc!important;border-radius:12px!important;padding:10px 13px!important;background:#fff!important}.checkout-section{padding:0 0 24px!important;margin:0 0 24px!important;border-bottom:1px solid var(--ae-line)!important}.checkout-section__head{display:flex!important;gap:12px!important;align-items:center!important;margin-bottom:16px!important}.checkout-section__step{display:grid!important;place-items:center!important;width:30px!important;height:30px!important;border-radius:50%!important;background:var(--ae-green)!important;color:#fff!important;font-weight:900!important}.payment-shell{border:1px solid var(--ae-line)!important;border-radius:16px!important;overflow:hidden!important;background:#fff!important}.payment-shell__head,.payment-shell__body{padding:18px!important}.payment-shell__head{background:#f1f5f2!important;border-bottom:1px solid var(--ae-line)!important}.checkout-trust-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:10px!important;margin-top:18px!important}.checkout-trust-grid>*{padding:12px!important;border-radius:12px!important;background:#f5f8f6!important;text-align:center!important;font-size:12px!important}.checkout-submit-wrap{display:grid!important;gap:10px!important;margin-top:20px!important}.checkout-submit-wrap .btn{width:100%!important}.payment-badges{display:flex!important;gap:8px!important;flex-wrap:wrap!important}
#ordersList,#accountContent,#cartItems{display:grid!important;gap:14px!important}.order-card,.account-card{background:#fff!important;border:1px solid var(--ae-line)!important;border-radius:16px!important;padding:20px!important;box-shadow:0 8px 24px rgba(18,32,25,.05)!important}table{width:100%!important;border-collapse:collapse!important;background:#fff!important;border-radius:14px!important;overflow:hidden!important}th,td{padding:13px!important;border-bottom:1px solid var(--ae-line)!important;text-align:left!important;vertical-align:middle!important}th{background:#eef3f0!important;font-size:12px!important;color:#405048!important}td{font-size:13px!important}
.contact-layout{grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr)!important}.contact-form-card,.contact-info-card{padding:26px!important}.contact-form{display:grid!important;gap:14px!important}.contact-form input,.contact-form textarea,.contact-form select{width:100%!important;min-height:46px!important;border:1px solid #d8e1dc!important;border-radius:12px!important;padding:11px 13px!important;background:#fff!important}.contact-form textarea{min-height:130px!important}.contact-map-grid iframe{width:100%!important;min-height:320px!important;border:0!important;border-radius:18px!important}.contact-qr-grid img{display:block!important;max-width:180px!important;margin:auto!important}
.banner-detail{min-height:calc(100vh - 78px)!important;padding:48px 0!important;background:var(--ae-bg)!important}.banner-detail img,.banner-detail video{display:block!important;width:100%!important;max-height:650px!important;object-fit:cover!important;border-radius:22px!important}.banner-detail__status{max-width:760px!important;margin:22px auto!important;padding:18px!important;border:1px solid var(--ae-line)!important;border-radius:14px!important;background:#fff!important;text-align:center!important}
.product-detail-modal{position:fixed!important;inset:0!important;z-index:3000!important;display:none!important;place-items:center!important;padding:20px!important}.product-detail-modal.active,.product-detail-modal.is-open{display:grid!important}.product-detail-modal__backdrop{position:absolute!important;inset:0!important;background:rgba(0,0,0,.62)!important}.product-detail-modal__card{position:relative!important;width:min(920px,100%)!important;max-height:90vh!important;overflow:auto!important;background:#fff!important;border-radius:22px!important;padding:28px!important;box-shadow:0 28px 80px rgba(0,0,0,.28)!important}.product-detail-modal__close{position:absolute!important;right:14px!important;top:14px!important;width:40px!important;height:40px!important;border:0!important;border-radius:50%!important;background:#eef3f0!important;cursor:pointer!important}
@media(max-width:900px){.benefits{grid-template-columns:1fr!important}.cta__content{align-items:flex-start!important;flex-direction:column!important}.checkout-fields,.payment-fields{grid-template-columns:1fr!important}.checkout-field--full{grid-column:auto!important}.checkout-trust-grid{grid-template-columns:1fr!important}.contact-layout{grid-template-columns:1fr!important}.home-category-brand-strip,.home-managed-banners{width:min(calc(100% - 28px),1180px)!important}}
@media(max-width:600px){.hero{min-height:360px!important}.section-head{align-items:flex-start!important;flex-direction:column!important}.panel,.checkout-form-premium,.checkout-summary-premium,.contact-form-card,.contact-info-card{padding:18px!important}.cart-item{grid-template-columns:70px minmax(0,1fr)!important}.cart-item img{width:70px!important;height:70px!important}.cart-item>*:last-child{grid-column:2!important}table{display:block!important;overflow-x:auto!important;white-space:nowrap!important}.home-category-brand-strip,.home-managed-banners{width:calc(100% - 24px)!important}.home-managed-banners img,.home-managed-banners video{border-radius:16px!important}.product-detail-modal__card{padding:22px 16px!important}}

/* === Contraste y legibilidad global — v3 2026-09-15 === */
:root{--ae-text:#17211c;--ae-muted:#5d6b63;--ae-surface:#fff;--ae-soft:#f4f7f5;--ae-border:#d9e2dd}
body:not(.admin-body){color:var(--ae-text)!important;background:var(--ae-bg,#f7f8f6)!important}
body:not(.admin-body) :where(.panel,.card,.product-card,.auth-card,.account-card,.order-card,.contact-form-card,.contact-info-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium,.payment-shell,.banner-detail__status,.product-detail-modal__card){color:#17211c!important}
body:not(.admin-body) :where(.panel,.card,.auth-card,.account-card,.order-card,.contact-form-card,.contact-info-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium,.payment-shell,.banner-detail__status,.product-detail-modal__card){background:#fff!important}
body:not(.admin-body) :where(h1,h2,h3,h4,h5,h6,strong,label,legend,th){color:#17211c!important}
body:not(.admin-body) :where(p,small,.muted,.small-muted,.help-text,.form-help,.product-card__brand,.product-card__meta){color:#5d6b63!important}
body:not(.admin-body) :where(input,select,textarea){color:#17211c!important;background:#fff!important;border-color:#cfd9d3!important;-webkit-text-fill-color:#17211c!important}
body:not(.admin-body) :where(input,textarea)::placeholder{color:#7b8881!important;opacity:1!important}
body:not(.admin-body) select option{color:#17211c!important;background:#fff!important}
body:not(.admin-body) :where(input,select,textarea):focus{outline:2px solid rgba(0,53,41,.18)!important;outline-offset:1px!important;border-color:#315f50!important}
body:not(.admin-body) :where(a:not(.btn):not(.nav__link):not(.icon-btn)){color:#244d40}
body:not(.admin-body) :where(.btn,.primary,.btn-primary){color:#fff!important;background:#003529!important}
body:not(.admin-body) :where(.btn--secondary,.secondary){color:#173d32!important;background:#edf3ef!important;border-color:#cad8d0!important}
body:not(.admin-body) table td{color:#26352e!important;background:#fff!important}body:not(.admin-body) table th{color:#26352e!important;background:#eef3f0!important}
body:not(.admin-body) .header{background:rgba(255,255,255,.97)!important;color:#17211c!important}body:not(.admin-body) .nav a,body:not(.admin-body) .nav button{color:#17211c!important}
body:not(.admin-body) .footer :where(h1,h2,h3,h4,strong){color:#fff!important}body:not(.admin-body) .footer :where(p,a,small,span){color:rgba(255,255,255,.82)!important}
/* Dark mode: surfaces stay intentionally dark and all foregrounds remain readable. */
html[data-theme="dark"] body:not(.admin-body),body.theme-dark:not(.admin-body){--ae-bg:#0d1210!important;--ae-text:#f2f5f3!important;--ae-muted:#b8c2bc!important;background:#0d1210!important;color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) :where(.panel,.card,.product-card,.auth-card,.account-card,.order-card,.contact-form-card,.contact-info-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium,.payment-shell,.banner-detail__status,.product-detail-modal__card),body.theme-dark:not(.admin-body) :where(.panel,.card,.product-card,.auth-card,.account-card,.order-card,.contact-form-card,.contact-info-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium,.payment-shell,.banner-detail__status,.product-detail-modal__card){background:#151b18!important;color:#f2f5f3!important;border-color:#2d3933!important}
html[data-theme="dark"] body:not(.admin-body) :where(h1,h2,h3,h4,h5,h6,strong,label,legend,th),body.theme-dark:not(.admin-body) :where(h1,h2,h3,h4,h5,h6,strong,label,legend,th){color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) :where(p,small,.muted,.small-muted,.help-text,.form-help,.product-card__brand,.product-card__meta),body.theme-dark:not(.admin-body) :where(p,small,.muted,.small-muted,.help-text,.form-help,.product-card__brand,.product-card__meta){color:#b8c2bc!important}
html[data-theme="dark"] body:not(.admin-body) :where(input,select,textarea),body.theme-dark:not(.admin-body) :where(input,select,textarea){background:#0f1512!important;color:#f2f5f3!important;-webkit-text-fill-color:#f2f5f3!important;border-color:#34423b!important}
html[data-theme="dark"] body:not(.admin-body) :where(input,textarea)::placeholder,body.theme-dark:not(.admin-body) :where(input,textarea)::placeholder{color:#9ba8a1!important}
html[data-theme="dark"] body:not(.admin-body) select option,body.theme-dark:not(.admin-body) select option{background:#0f1512!important;color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) table td,html[data-theme="dark"] body:not(.admin-body) table th,body.theme-dark:not(.admin-body) table td,body.theme-dark:not(.admin-body) table th{background:#151b18!important;color:#eef3f0!important;border-color:#2d3933!important}
html[data-theme="dark"] body:not(.admin-body) .header,body.theme-dark:not(.admin-body) .header{background:rgba(13,18,16,.97)!important;color:#f2f5f3!important;border-color:#2d3933!important}
html[data-theme="dark"] body:not(.admin-body) .nav a,html[data-theme="dark"] body:not(.admin-body) .nav button,body.theme-dark:not(.admin-body) .nav a,body.theme-dark:not(.admin-body) .nav button{color:#f2f5f3!important}

/* =====================================================================
   ALTER EGO STORE — CONTRASTE DEFINITIVO POR SUPERFICIE — 2026-09-15 R4
   Evita texto claro sobre superficies claras y texto oscuro sobre botones.
   ===================================================================== */
:root{color-scheme:light dark}

/* Superficies SIEMPRE claras: el texto debe ser oscuro incluso en dark mode */
body:not(.admin-body) :is(.page-hero,.section--soft,.search-panel){
  background:#f4f7f5!important;color:#17211c!important;
}
body:not(.admin-body) :is(.page-hero,.section--soft,.search-panel) :is(h1,h2,h3,h4,h5,h6,strong,label,span,p,a){
  color:#17211c!important;text-shadow:none!important;
}
body:not(.admin-body) .page-hero p{color:#5d6b63!important;opacity:1!important}
body:not(.admin-body) .page-hero h1{display:block!important;visibility:visible!important;opacity:1!important;color:#132019!important}

/* Buscador: contraste consistente en ambos temas */
body:not(.admin-body) .search-panel__inner{background:transparent!important}
body:not(.admin-body) .search-panel input{
  background:#fff!important;color:#17211c!important;-webkit-text-fill-color:#17211c!important;
  border:1px solid #bdcbc3!important;box-shadow:none!important
}
body:not(.admin-body) .search-panel input::placeholder{color:#65736c!important;opacity:1!important}
body:not(.admin-body) .search-panel .btn,
body:not(.admin-body) .search-panel #searchBtn{background:#075c3b!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border-color:#075c3b!important}

/* Todos los botones sólidos deben tener texto blanco legible */
body:not(.admin-body) :is(.btn--primary,.btn--danger,.shop-filter-apply,.checkout-submit,#searchBtn,button[type="submit"]){
  color:#fff!important;-webkit-text-fill-color:#fff!important;text-shadow:none!important
}
body:not(.admin-body) :is(.btn--primary,.btn--danger,.shop-filter-apply,.checkout-submit,#searchBtn,button[type="submit"]) *{color:#fff!important;-webkit-text-fill-color:#fff!important}
body:not(.admin-body) .btn--primary{background:#075c3b!important;border-color:#075c3b!important}
body:not(.admin-body) .btn--danger{background:#8b3030!important;border-color:#8b3030!important}

/* Dark mode: header y contenido oscuro, con contraste alto */
html[data-theme="dark"] body:not(.admin-body) .header,
body.theme-dark:not(.admin-body) .header{background:#08110d!important}
html[data-theme="dark"] body:not(.admin-body) .header :is(a,button,.nav-dropdown__toggle),
body.theme-dark:not(.admin-body) .header :is(a,button,.nav-dropdown__toggle){color:#f7faf8!important;-webkit-text-fill-color:#f7faf8!important}
html[data-theme="dark"] body:not(.admin-body) .header .nav-dropdown__menu,
body.theme-dark:not(.admin-body) .header .nav-dropdown__menu{background:#151b18!important;color:#f2f5f3!important;border-color:#33423a!important}
html[data-theme="dark"] body:not(.admin-body) .header .nav-dropdown__menu *,
body.theme-dark:not(.admin-body) .header .nav-dropdown__menu *{color:#f2f5f3!important}

/* Paneles oscuros: elevar contraste de textos secundarios */
html[data-theme="dark"] body:not(.admin-body) :is(.panel,.card,.order-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium) :is(p,span,small,td,li),
body.theme-dark:not(.admin-body) :is(.panel,.card,.order-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium) :is(p,span,small,td,li){color:#d4ddd8!important;opacity:1!important}
html[data-theme="dark"] body:not(.admin-body) :is(.panel,.card,.order-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium) :is(h1,h2,h3,h4,h5,h6,strong,label,th),
body.theme-dark:not(.admin-body) :is(.panel,.card,.order-card,.cart-summary,.checkout-form-premium,.checkout-summary-premium) :is(h1,h2,h3,h4,h5,h6,strong,label,th){color:#f7faf8!important;opacity:1!important}

/* Carrito vacío y mensajes de estado */
body:not(.admin-body) :is(#cartItems,#ordersBox,.empty-state,.cart-empty,.orders-empty) :is(p,span,strong){opacity:1!important}
html[data-theme="dark"] body:not(.admin-body) :is(#cartItems,#ordersBox,.empty-state,.cart-empty,.orders-empty) :is(p,span),
body.theme-dark:not(.admin-body) :is(#cartItems,#ordersBox,.empty-state,.cart-empty,.orders-empty) :is(p,span){color:#cbd6d0!important}

/* Inputs dentro de superficies oscuras */
html[data-theme="dark"] body:not(.admin-body) :is(.panel,.card,.auth-card,.checkout-form-premium,.contact-form-card) :is(input,select,textarea),
body.theme-dark:not(.admin-body) :is(.panel,.card,.auth-card,.checkout-form-premium,.contact-form-card) :is(input,select,textarea){background:#0c1410!important;color:#f4f7f5!important;-webkit-text-fill-color:#f4f7f5!important;border-color:#3c4c44!important}
html[data-theme="dark"] body:not(.admin-body) :is(.panel,.card,.auth-card,.checkout-form-premium,.contact-form-card) :is(input,textarea)::placeholder,
body.theme-dark:not(.admin-body) :is(.panel,.card,.auth-card,.checkout-form-premium,.contact-form-card) :is(input,textarea)::placeholder{color:#aebbb4!important;opacity:1!important}

/* Footer siempre oscuro y legible */
body:not(.admin-body) .footer{background:#06140e!important}
body:not(.admin-body) .footer :is(h1,h2,h3,h4,h5,h6,strong){color:#fff!important}
body:not(.admin-body) .footer :is(p,a,span,small){color:#d7e1dc!important;opacity:1!important}

/* Accesibilidad básica */
body:not(.admin-body) :focus-visible{outline:3px solid #2ca477!important;outline-offset:3px!important}

/* =========================================================
   ALTER EGO STORE — UNIFICACION VISUAL GLOBAL r5
   Todas las paginas comparten fondo, superficies y contraste.
   ========================================================= */
:root{
  --ae-bg:#07110d;
  --ae-bg-2:#091710;
  --ae-surface:#111b16;
  --ae-surface-2:#18231e;
  --ae-border:rgba(145,190,166,.22);
  --ae-text:#f4f6f4;
  --ae-muted:#b7c2bc;
  --ae-green:#00533f;
  --ae-green-hover:#006b51;
}
html{background:var(--ae-bg)!important;}
body,body.home-page,body.products-page-body,body.checkout-page,body.auth-page{
  background:var(--ae-bg)!important;color:var(--ae-text)!important;min-height:100vh;
}
main,.main,.page,.page-main,.shop-page,.cart-page,.orders-page,.account-page,.contact-page,.checkout-page{
  background:transparent!important;color:var(--ae-text)!important;
}
/* Elimina las franjas blancas que hacian que cada HTML pareciera otra web */
.page-hero,.hero-page,.page-header,.page-intro,.shop-hero,.cart-hero,.orders-hero,
.account-hero,.contact-hero,.auth-hero,.checkout-hero{
  background:linear-gradient(135deg,var(--ae-bg-2),var(--ae-bg))!important;
  color:var(--ae-text)!important;border-color:var(--ae-border)!important;
}
.page-hero h1,.page-hero h2,.page-hero p,.page-header h1,.page-header p,.page-intro h1,.page-intro p{
  color:var(--ae-text)!important;
}
.page-hero p,.page-header p,.page-intro p,.shop-muted,.muted,.text-muted{color:var(--ae-muted)!important;}
/* Superficies consistentes */
.panel,.glass-panel,.auth-card,.checkout-section,.checkout-summary,.cart-summary,.order-card,
.account-card,.contact-card,.card,.search-panel__inner,.toolbar,.shop-sidebar,.shop-topbar,
.empty-state,.orders-list,.profile-card{
  background:var(--ae-surface)!important;color:var(--ae-text)!important;border-color:var(--ae-border)!important;
}
.panel *, .glass-panel *, .auth-card *, .checkout-section *, .checkout-summary *, .cart-summary *,
.order-card *, .account-card *, .contact-card *, .empty-state *{border-color:var(--ae-border);}
/* Formularios siempre legibles */
input,select,textarea,.form-control,.checkout-field input,.checkout-field select,.checkout-field textarea{
  background:#0b1510!important;color:var(--ae-text)!important;border-color:var(--ae-border)!important;
}
input::placeholder,textarea::placeholder{color:#9eaaa4!important;opacity:1!important;}
select option{background:#0b1510!important;color:var(--ae-text)!important;}
label,.form-label,.checkout-field label{color:var(--ae-text)!important;}
/* Botones: nunca texto oscuro sobre verde */
.btn--primary,.btn-primary,button.btn--primary,a.btn--primary,.search-panel button,[type="submit"]{
  background:var(--ae-green)!important;color:#fff!important;border-color:var(--ae-green)!important;
}
.btn--primary:hover,.btn-primary:hover,button.btn--primary:hover,a.btn--primary:hover{background:var(--ae-green-hover)!important;color:#fff!important;}
.btn--primary:disabled,.btn-primary:disabled{color:rgba(255,255,255,.65)!important;opacity:.65;}
/* Cabecera y pie identicos en todas las paginas */
.header{background:#07100c!important;color:#fff!important;border-color:var(--ae-border)!important;}
.header .nav a,.header .nav button,.header__actions,.header__actions a{color:#fff!important;}
.footer{background:#03100a!important;color:var(--ae-text)!important;border-color:var(--ae-border)!important;}
.footer a,.footer p,.footer li,.footer span{color:#c8d1cc!important;}
.footer h2,.footer h3,.footer h4,.footer strong{color:#fff!important;}
/* Tablas / pedidos */
table,thead,tbody,tr,td,th{border-color:var(--ae-border)!important;}
th{color:#fff!important;} td{color:#e7ece9!important;}
/* Enlaces generales dentro del contenido */
main a:not(.btn):not(.icon-btn),.page-main a:not(.btn):not(.icon-btn){color:#d9e8e0;}
/* Mantiene tarjetas de producto claras solo donde la foto/producto lo necesita, con texto oscuro */
.product-card,.shop-product-card{color:inherit;}
/* Evita que cualquier bloque blanco accidental deje texto invisible */
[style*="background: white"],[style*="background:#fff"],[style*="background: #fff"],[style*="background-color: white"]{color:#111a16!important;}
@media(max-width:768px){
  .page-hero,.page-header,.page-intro{padding-top:32px!important;padding-bottom:32px!important;}
  .panel,.glass-panel,.auth-card,.checkout-section,.checkout-summary,.cart-summary{border-radius:16px!important;}
}

/* ALTER EGO STORE R6 — dark uniforme, banner gris y cards responsive */
html[data-theme="dark"] body:not(.admin-body) .home-showcase__inner,body.theme-dark:not(.admin-body) .home-showcase__inner{background:#202824!important;border:1px solid #34413b!important;box-shadow:0 18px 48px rgba(0,0,0,.22)!important}
html[data-theme="dark"] body:not(.admin-body) .home-showcase__copy :is(h2,p,span),body.theme-dark:not(.admin-body) .home-showcase__copy :is(h2,p,span){color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) .home-showcase__copy p,body.theme-dark:not(.admin-body) .home-showcase__copy p{color:#c2cbc6!important}
html[data-theme="dark"] body:not(.admin-body) .home-showcase__copy>span,body.theme-dark:not(.admin-body) .home-showcase__copy>span{background:#2b3530!important;border-color:#526159!important}
html[data-theme="dark"] body:not(.admin-body) :is(.auth-page,.auth-shell,.login-page,.register-page,.account-page,main),body.theme-dark:not(.admin-body) :is(.auth-page,.auth-shell,.login-page,.register-page,.account-page,main){background-color:#0d1210!important}
html[data-theme="dark"] body:not(.admin-body) :is(.page-hero,.section--soft,.search-panel),body.theme-dark:not(.admin-body) :is(.page-hero,.section--soft,.search-panel){background:#202824!important;color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) :is(.page-hero,.section--soft,.search-panel) :is(h1,h2,h3,h4,h5,h6,strong,label,span,p,a),body.theme-dark:not(.admin-body) :is(.page-hero,.section--soft,.search-panel) :is(h1,h2,h3,h4,h5,h6,strong,label,span,p,a){color:#f2f5f3!important}
html[data-theme="dark"] body:not(.admin-body) .page-hero p,body.theme-dark:not(.admin-body) .page-hero p{color:#bdc7c1!important}
@media(min-width:901px){body:not(.admin-body) :is(.products-grid,.shop-products-grid){grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:clamp(10px,1.2vw,18px)!important}}
@media(min-width:701px) and (max-width:900px){body:not(.admin-body) :is(.products-grid,.shop-products-grid){grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important}}
@media(max-width:700px){body:not(.admin-body) :is(.products-grid,.shop-products-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}body:not(.admin-body) :is(.products-grid,.shop-products-grid)>.product-card{max-width:none!important;margin:0!important}}
@media(max-width:430px){body:not(.admin-body) :is(.products-grid,.shop-products-grid){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body:not(.admin-body) :is(.products-grid,.shop-products-grid)>.product-card{max-width:none!important;margin:0!important}}


/* ALTER EGO STORE R7 — CTA final legible + continuidad dark */
html[data-theme="dark"] body:not(.admin-body) .cta,body.theme-dark:not(.admin-body) .cta{background:#202824!important;border-top:1px solid #34413b!important;border-bottom:1px solid #34413b!important}
html[data-theme="dark"] body:not(.admin-body) .cta :is(h1,h2,h3,h4,strong),body.theme-dark:not(.admin-body) .cta :is(h1,h2,h3,h4,strong){color:#f5f7f6!important}
html[data-theme="dark"] body:not(.admin-body) .cta p,body.theme-dark:not(.admin-body) .cta p{color:#c4cec8!important}
html[data-theme="dark"] body:not(.admin-body) .cta .btn--primary,body.theme-dark:not(.admin-body) .cta .btn--primary{background:#08724e!important;color:#fff!important;border-color:#0b8b61!important}
html[data-theme="light"] body:not(.admin-body) .cta{background:#e7efe9!important}
html[data-theme="light"] body:not(.admin-body) .cta h2{color:#101715!important}
html[data-theme="light"] body:not(.admin-body) .cta p{color:#46544d!important}

/* R15 — no mostrar logos estáticos/anteriores mientras llega la configuración vigente */
html:not(.ae-visual-ready) body:not(.admin-body) :is(.logo img,.footer__logo,.auth-logo,.auth-card > img){visibility:hidden!important;}

/* R16: banner completo clicable sin alterar su composición */
.promo-banner__clickable,.home-showcase__clickable{display:block;color:inherit;text-decoration:none}
.promo-banner__clickable .promo-banner__inner,.home-showcase__clickable .home-showcase__inner{cursor:pointer}
\n/* R17 — logos administrados: ninguna regla heredada puede ocultarlos después de cargar configuración */
html.ae-visual-ready body:not(.admin-body) :is(.logo img,.footer__logo,.auth-logo,.auth-card > img):not([hidden]){
  visibility:visible!important;
  opacity:1!important;
  display:block!important;
}


/* === R25 · Auth inputs dark mode legibility === */
html[data-theme="dark"] body.auth-page .auth-card input,
html[data-theme="dark"] body.auth-page .auth-card select,
html[data-theme="dark"] body.auth-page .auth-card textarea{
  background:#0c1714!important;
  color:#eef8f3!important;
  -webkit-text-fill-color:#eef8f3!important;
  border:1px solid rgba(115,193,155,.28)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] body.auth-page .auth-card input::placeholder,
html[data-theme="dark"] body.auth-page .auth-card textarea::placeholder{
  color:rgba(231,243,237,.56)!important;
  -webkit-text-fill-color:rgba(231,243,237,.56)!important;
}
html[data-theme="dark"] body.auth-page .auth-card input:focus,
html[data-theme="dark"] body.auth-page .auth-card select:focus,
html[data-theme="dark"] body.auth-page .auth-card textarea:focus{
  border-color:#2bd386!important;
  box-shadow:0 0 0 3px rgba(43,211,134,.14)!important;
  outline:none!important;
}
html[data-theme="dark"] body.auth-page .auth-card :-webkit-autofill,
html[data-theme="dark"] body.auth-page .auth-card :-webkit-autofill:hover,
html[data-theme="dark"] body.auth-page .auth-card :-webkit-autofill:focus{
  -webkit-text-fill-color:#eef8f3!important;
  transition:background-color 9999s ease-in-out 0s!important;
  box-shadow:0 0 0 1000px #0c1714 inset!important;
}


/* =====================================================================
   R28 — TEXTBOX DEFINITIVO / SIN FONDO BLANCO EN DARK MODE
   Evita el sombreado blanco/azulado del navegador y del autocompletado.
   Aplica a TODOS los campos de texto de la tienda, no al panel admin.
   ===================================================================== */
html[data-theme="dark"] body:not(.admin-body),
body.theme-dark:not(.admin-body){
  color-scheme:dark;
}

html[data-theme="dark"] body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]),
html[data-theme="dark"] body:not(.admin-body) select,
html[data-theme="dark"] body:not(.admin-body) textarea,
body.theme-dark:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="submit"]):not([type="button"]),
body.theme-dark:not(.admin-body) select,
body.theme-dark:not(.admin-body) textarea{
  background:#0b1511!important;
  background-color:#0b1511!important;
  color:#f4f8f6!important;
  -webkit-text-fill-color:#f4f8f6!important;
  border:1px solid rgba(100,190,147,.30)!important;
  box-shadow:none!important;
  text-shadow:none!important;
  caret-color:#f4f8f6!important;
  opacity:1!important;
}

html[data-theme="dark"] body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"])::placeholder,
html[data-theme="dark"] body:not(.admin-body) textarea::placeholder,
body.theme-dark:not(.admin-body) input:not([type="checkbox"]):not([type="radio"])::placeholder,
body.theme-dark:not(.admin-body) textarea::placeholder{
  color:#91a59b!important;
  -webkit-text-fill-color:#91a59b!important;
  opacity:1!important;
}

html[data-theme="dark"] body:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):focus,
html[data-theme="dark"] body:not(.admin-body) select:focus,
html[data-theme="dark"] body:not(.admin-body) textarea:focus,
body.theme-dark:not(.admin-body) input:not([type="checkbox"]):not([type="radio"]):focus,
body.theme-dark:not(.admin-body) select:focus,
body.theme-dark:not(.admin-body) textarea:focus{
  background:#0d1b15!important;
  background-color:#0d1b15!important;
  color:#ffffff!important;
  -webkit-text-fill-color:#ffffff!important;
  border-color:#32c982!important;
  box-shadow:0 0 0 3px rgba(50,201,130,.12)!important;
  outline:none!important;
}

/* Chrome / Edge / Safari autofill: no permitir que el navegador pinte azul o blanco. */
html[data-theme="dark"] body:not(.admin-body) input:-webkit-autofill,
html[data-theme="dark"] body:not(.admin-body) input:-webkit-autofill:hover,
html[data-theme="dark"] body:not(.admin-body) input:-webkit-autofill:focus,
html[data-theme="dark"] body:not(.admin-body) input:-webkit-autofill:active,
body.theme-dark:not(.admin-body) input:-webkit-autofill,
body.theme-dark:not(.admin-body) input:-webkit-autofill:hover,
body.theme-dark:not(.admin-body) input:-webkit-autofill:focus,
body.theme-dark:not(.admin-body) input:-webkit-autofill:active{
  -webkit-text-fill-color:#f4f8f6!important;
  caret-color:#f4f8f6!important;
  -webkit-box-shadow:0 0 0 1000px #0b1511 inset!important;
  box-shadow:0 0 0 1000px #0b1511 inset!important;
  border:1px solid rgba(100,190,147,.30)!important;
  transition:background-color 99999s ease-out 0s!important;
}

/* Disabled/read-only: siguen oscuros y legibles, no se vuelven blancos. */
html[data-theme="dark"] body:not(.admin-body) :is(input,select,textarea):disabled,
html[data-theme="dark"] body:not(.admin-body) :is(input,select,textarea)[readonly],
body.theme-dark:not(.admin-body) :is(input,select,textarea):disabled,
body.theme-dark:not(.admin-body) :is(input,select,textarea)[readonly]{
  background:#101a16!important;
  background-color:#101a16!important;
  color:#becbc4!important;
  -webkit-text-fill-color:#becbc4!important;
  opacity:.82!important;
}

html[data-theme="dark"] body:not(.admin-body) select option,
body.theme-dark:not(.admin-body) select option{
  background:#0b1511!important;
  color:#f4f8f6!important;
}
