/* NEXA V3 — Inicio v2: orden de secciones, destacados con tarjetas del catálogo, ofertas y franja de pureza.
   Lo sirve el cargador condicional (5610) solo en la home. Mantener INACTIVO en WPCode. */

/* ---- Orden de secciones (contenedor flex de Elementor) ---- */
.nexa-v3 > .elementor-element-5ae5465{order:1}
.nexa-v3 > .elementor-element-fba58b6{order:2}
.nexa-v3 > .elementor-element-cbf0b8d{order:3}
.nexa-v3 > .nx-home-extras{order:4;display:block;width:100%}
.nexa-v3 > .elementor-element-658dd1a{order:5}
.nexa-v3 > .elementor-element-a6fe409{order:6}
.nexa-v3 > .elementor-element-5d23d40{order:7}
.nexa-v3 > .nx-home-bulk{order:8;display:block;width:100%}
.nexa-v3 > .elementor-element-a6455ab{order:9}
.nexa-v3 > .elementor-element-210e2ac{order:10}
/* Antes de reubicarse con JS, no se muestran en su lugar original */
.nexa-v3 .elementor-element .nx-home-extras{display:none}
.nexa-v3 > .elementor-element-5ae5465 .nexa-bulk-section{display:none!important}

/* ---- Destacados: tarjetas del catálogo en carrusel ---- */
html body .nexa-v3-catalog-page.nx-home-feat,html body .nexa-v3-catalog-page.nx-home-promo{background:none!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;margin-top:0!important}
.nx-home-feat{max-width:1240px;margin:0 auto!important;padding:0 20px!important;box-sizing:border-box;width:100%}
.nx-home-feat .nexa-catalog-grid{padding:0!important;margin:0!important;background:none!important}
html body .nexa-v3-catalog-page.nx-home-feat .nexa-catalog-grid__items{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:calc((100% - 72px)/4)!important;grid-template-columns:none!important;gap:24px!important;overflow-x:auto!important;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;padding:8px 4px 26px!important}
html body .nexa-v3-catalog-page.nx-home-feat .nexa-catalog-grid__items::-webkit-scrollbar{display:none}
html body .nexa-v3-catalog-page.nx-home-feat .nexa-catalog-grid__items .nexa-product-card{scroll-snap-align:start}
@media (max-width:1099px){html body .nexa-v3-catalog-page.nx-home-feat .nexa-catalog-grid__items{grid-auto-columns:calc((100% - 40px)/3)!important}}
@media (max-width:600px){.nx-home-feat{padding:0 12px!important}html body .nexa-v3-catalog-page.nx-home-feat .nexa-catalog-grid__items{grid-auto-columns:72%!important;gap:12px!important}}

/* ---- Ofertas ---- */
.nx-home-promo{max-width:1240px;margin:20px auto 70px!important;padding:0 20px!important;box-sizing:border-box;width:100%}
@media (max-width:860px){.nx-home-promo{margin:10px auto 50px!important;padding:0 12px!important}}

/* ---- Franja de pureza (COA) ---- */
.nx-home-coa{padding:70px 20px;background:linear-gradient(180deg,#f5f9fd,#eef5fb)}
.nx-home-coa__inner{max-width:1100px;margin:0 auto;display:grid;grid-template-columns:1.2fr 1fr;gap:48px;align-items:center;font-family:"DM Sans",Arial,sans-serif}
html body .nx-home-coa .nx-home-coa__eyebrow{margin:0 0 8px;font-family:"DM Sans",Arial,sans-serif!important;font-size:12px!important;font-weight:900!important;letter-spacing:.16em!important;text-transform:uppercase!important;color:#3f9f8b!important}
html body .nx-home-coa h2{margin:0 0 12px;font-family:"DM Sans",Arial,sans-serif!important;font-size:clamp(28px,3.2vw,42px)!important;line-height:1.08!important;font-weight:900!important;letter-spacing:-.025em!important;text-transform:none!important;color:#0c2742!important}
html body .nx-home-coa .nx-home-coa__copy > p:not(.nx-home-coa__eyebrow){margin:0 0 22px;font-family:"DM Sans",Arial,sans-serif!important;font-size:16px;line-height:1.6;color:#5b6d84;max-width:480px}
.nx-home-coa__btn{display:inline-flex;align-items:center;gap:8px;padding:14px 24px;border-radius:999px;background:linear-gradient(135deg,#123f6e,#0c2742);color:#fff!important;font-weight:900;text-decoration:none!important;box-shadow:0 12px 26px rgba(12,39,66,.22);transition:transform .25s}
.nx-home-coa__btn:hover{transform:translateY(-2px)}
.nx-home-coa__card{position:relative;overflow:hidden;display:flex;align-items:center;gap:22px;padding:30px;border-radius:28px;background:linear-gradient(160deg,#fff,#f4f9ff);border:1px solid rgba(12,39,66,.08);box-shadow:0 24px 50px rgba(12,39,66,.10);text-decoration:none!important;transition:transform .35s,box-shadow .35s}
.nx-home-coa__card::after{content:"";position:absolute;width:260px;height:260px;right:-100px;top:-100px;border-radius:50%;background:radial-gradient(circle,rgba(137,217,200,.3),transparent 65%);pointer-events:none}
.nx-home-coa__card:hover{transform:translateY(-4px);box-shadow:0 30px 60px rgba(12,39,66,.14)}
.nx-home-coa__ring{position:relative;width:118px;height:118px;flex:none}
.nx-home-coa__ring svg{width:118px;height:118px;transform:rotate(-90deg)}
.nx-home-coa__ring .bg{fill:none;stroke:#e6eef7;stroke-width:9}
.nx-home-coa__ring .fg{fill:none;stroke:url(#nxHomeGrad);stroke-width:9;stroke-linecap:round;stroke-dasharray:264;stroke-dashoffset:2;transition:stroke-dashoffset 1.8s cubic-bezier(.2,.7,.2,1);filter:drop-shadow(0 0 6px rgba(137,217,200,.55))}
.nx-home-coa__card.js-anim .nx-home-coa__ring .fg{stroke-dashoffset:264}
.nx-home-coa__check{position:absolute;inset:0;display:flex;align-items:center;justify-content:center}
.nx-home-coa__check::before{content:"";position:absolute;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#2fb592,#89d9c8);box-shadow:0 6px 16px rgba(47,181,146,.4);transition:transform .5s cubic-bezier(.3,1.6,.5,1) 1.6s}
.nx-home-coa__check::after{content:"✓";position:relative;z-index:2;color:#fff;font-size:22px;font-weight:900;transition:opacity .3s 1.8s}
.nx-home-coa__card.js-anim .nx-home-coa__check::before{transform:scale(0)}
.nx-home-coa__card.js-anim .nx-home-coa__check::after{opacity:0}
.nx-home-coa__card.js-anim.is-in .nx-home-coa__check::before{transform:scale(1)}
.nx-home-coa__card.js-anim.is-in .nx-home-coa__check::after{opacity:1}
.nx-home-coa__data{position:relative;z-index:1;display:flex;flex-direction:column;gap:3px;transition:opacity .35s}
.nx-home-coa__data.is-swap{opacity:0}
.nx-home-coa__data b{font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:#4b9e8d}
.nx-home-coa__data strong{font-size:50px;line-height:1;font-weight:900;letter-spacing:-.035em;background:linear-gradient(135deg,#0c2742,#1f67d2 60%,#2fb592);-webkit-background-clip:text;background-clip:text;color:transparent}
.nx-home-coa__data strong small{font-size:24px;margin-left:2px}
.nx-home-coa__data > span{font-size:13px;font-weight:700;color:#7a8ca3}
.nx-home-coa__count{margin-top:6px;font-style:normal;font-size:12px;font-weight:800;color:#1f67d2}
@media (max-width:860px){.nx-home-coa__inner{grid-template-columns:1fr;gap:26px}.nx-home-coa{padding:50px 16px}.nx-home-coa__card{padding:22px}.nx-home-coa__ring,.nx-home-coa__ring svg{width:92px;height:92px}.nx-home-coa__data strong{font-size:40px}}
@media (prefers-reduced-motion:reduce){.nx-home-coa__ring .fg,.nx-home-coa__check::before,.nx-home-coa__check::after{transition:none!important}}
