/* ============================================================
   WAEL BARBER — HOME EDITORIAL 2026  (scope: .hx)
   Dirección: luxury barber editorial. Espresso + crema + teal,
   tipografía Cormorant a gran escala, ritmo oscuro/claro.
   Se carga SOLO en index.php. Cero impacto en el resto del sitio.
   ============================================================ */

/* Reveal al scroll (usado por home-redesign.js) */
.reveal{opacity:0;transform:translateY(30px);transition:opacity .9s cubic-bezier(.19,1,.22,1),transform .9s cubic-bezier(.19,1,.22,1)}
.reveal.in{opacity:1;transform:none}
.reveal.d1{transition-delay:.09s}.reveal.d2{transition-delay:.18s}.reveal.d3{transition-delay:.27s}
.reveal.d4{transition-delay:.36s}.reveal.d5{transition-delay:.45s}
@media (prefers-reduced-motion: reduce){ .reveal{opacity:1;transform:none;transition:none} }

.hx{--cream:#f4efe7;--cream-dim:rgba(244,239,231,.64);--line-dark:rgba(244,239,231,.14);overflow-x:clip}
.hx .eyebrow-x{display:inline-flex;align-items:center;gap:12px;font-size:.72rem;font-weight:600;letter-spacing:.22em;text-transform:uppercase;color:var(--gold)}
.hx .eyebrow-x::before{content:"";width:30px;height:1px;background:currentColor;display:inline-block}
.hx .serif{font-family:'Cormorant',serif}

/* ============ HERO ============ */
.hx-hero{position:relative;isolation:isolate;color:var(--cream);display:flex;align-items:center;min-height:clamp(560px,82vh,780px);
  background:linear-gradient(90deg, rgba(11,18,16,.97) 0%, rgba(11,18,16,.88) 28%, rgba(11,18,16,.58) 56%, rgba(11,18,16,.22) 100%), url('../img/categorias/banner-hero.jpg');
  background-size:cover;background-position:center right;
  padding:clamp(70px,10vw,120px) 0;overflow:hidden}
.hx-hero-copy{position:relative;z-index:2;max-width:620px}
@media (max-width:768px){
  .hx-hero{min-height:auto;background:linear-gradient(rgba(11,18,16,.9), rgba(11,18,16,.78)), url('../img/categorias/banner-hero.jpg');background-position:center}
}
.hx-hero::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.5;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);background-size:4px 4px}
.hx-hero::after{content:"";position:absolute;top:-25%;right:-10%;width:60vw;height:60vw;max-width:720px;max-height:720px;z-index:-1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side, rgba(21,127,112,.42), transparent 72%);filter:blur(10px);animation:hxGlow 12s ease-in-out infinite alternate}
@keyframes hxGlow{from{transform:translate(0,0) scale(1)}to{transform:translate(-4%,4%) scale(1.12)}}

.hx-hero-grid{display:grid;grid-template-columns:1fr;gap:32px;align-items:center}
@media (min-width:992px){.hx-hero-grid{grid-template-columns:1.05fr .95fr;gap:48px}}
/* Entrada solo por movimiento (nunca deja el contenido invisible) */
.hx-hero-eyebrow{display:inline-flex;animation:hxRise .7s .05s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-title{font-family:'Cormorant',serif;font-weight:700;line-height:.98;letter-spacing:-.01em;margin:18px 0 0;
  font-size:clamp(2.8rem,7vw,6.2rem);color:var(--cream);animation:hxRise .9s .16s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-title em{font-style:italic;color:var(--gold)}
.hx-hero-sub{max-width:44ch;margin:22px 0 0;color:var(--cream-dim);font-size:1.05rem;line-height:1.7;animation:hxRise .9s .28s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-cta{display:flex;flex-wrap:wrap;gap:14px;margin-top:32px;animation:hxRise .9s .4s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-meta{display:flex;flex-wrap:wrap;gap:26px;margin-top:38px;padding-top:26px;border-top:1px solid var(--line-dark);animation:hxRise .9s .52s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-meta .m{display:flex;flex-direction:column;line-height:1.1}
.hx-hero-meta .m b{font-family:'Cormorant',serif;font-size:1.9rem;color:#fff}
.hx-hero-meta .m span{font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:var(--cream-dim);margin-top:3px}
@keyframes hxRise{from{transform:translateY(26px)}to{transform:none}}
@media (prefers-reduced-motion: reduce){.hx-hero-eyebrow,.hx-hero-title,.hx-hero-sub,.hx-hero-cta,.hx-hero-meta,.hx-hero-visual{animation:none}}

/* Botones del hero */
.hx .btn-hx{display:inline-flex;align-items:center;gap:9px;padding:15px 30px;border-radius:999px;font-weight:600;font-size:.92rem;
  text-decoration:none;transition:transform .3s,box-shadow .3s,background .3s,color .3s;position:relative;overflow:hidden}
.hx .btn-hx-solid{background:var(--gold);color:#fff;box-shadow:0 12px 30px -12px rgba(21,127,112,.7)}
.hx .btn-hx-solid:hover{transform:translateY(-3px);box-shadow:0 18px 38px -12px rgba(21,127,112,.8)}
.hx .btn-hx-solid::after{content:"";position:absolute;top:0;left:-140%;width:55%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);transform:skewX(-18deg)}
.hx .btn-hx-solid:hover::after{animation:hxShine .8s ease}
@keyframes hxShine{to{left:150%}}
.hx .btn-hx-ghost{background:transparent;color:var(--cream);border:1px solid var(--line-dark)}
.hx .btn-hx-ghost:hover{border-color:var(--gold);color:#fff;transform:translateY(-3px)}

/* Visual del hero: producto flotante enmarcado */
.hx-hero-visual{position:relative;animation:hxRise 1s .34s cubic-bezier(.19,1,.22,1) backwards}
.hx-hero-frame{position:relative;border-radius:20px;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 30%, #16211e 0%, #0d1512 70%);
  border:1px solid rgba(255,255,255,.06);box-shadow:0 46px 100px -40px rgba(0,0,0,.85), inset 0 0 120px rgba(21,127,112,.14)}
.hx-hero-frame img{display:block;width:100%;height:clamp(320px,46vw,520px);object-fit:contain;padding:12px;animation:hxFloat 7s ease-in-out infinite}
@keyframes hxFloat{50%{transform:scale(1.03)}}
.hx-hero-tag{position:absolute;left:18px;bottom:18px;z-index:2;display:inline-flex;align-items:center;gap:8px;
  padding:9px 16px;border-radius:999px;background:rgba(16,28,26,.72);backdrop-filter:blur(8px);color:var(--cream);font-size:.78rem;font-weight:600}
.hx-hero-tag i{color:var(--gold)}
.hx-scroll{display:none}
@media (min-width:992px){
  .hx-scroll{display:flex;align-items:center;gap:10px;justify-content:center;margin-top:40px;color:var(--cream-dim);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase}
  .hx-scroll span{width:34px;height:34px;border:1px solid var(--line-dark);border-radius:50%;display:flex;align-items:center;justify-content:center;animation:hxBob 1.8s ease-in-out infinite}
}
@keyframes hxBob{50%{transform:translateY(6px)}}

/* ============ TICKER ============ */
.hx-ticker{background:var(--gold);color:#fff;overflow:hidden;padding:13px 0}
.hx-ticker-track{display:flex;align-items:center;gap:26px;width:max-content;animation:hxMarquee 26s linear infinite}
.hx-ticker:hover .hx-ticker-track{animation-play-state:paused}
.hx-ticker-item{display:inline-flex;align-items:center;gap:26px;font-size:.8rem;font-weight:600;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.hx-ticker-item i{opacity:.7}
@keyframes hxMarquee{to{transform:translateX(-50%)}}

/* ============ SECCIONES base ============ */
.hx-sec{padding:clamp(64px,10vw,132px) 0}
.hx-sec-dark{background:#13211f;color:var(--cream)}
.hx-sec-dark .hx-head-title{color:#fff}
.hx-sec-cream{background:var(--bg)}
.hx-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:clamp(30px,5vw,54px)}
.hx-head-title{font-family:'Cormorant',serif;font-weight:700;line-height:.98;letter-spacing:-.02em;margin:14px 0 0;font-size:clamp(2.3rem,6vw,4.2rem);color:var(--text)}
.hx-more{display:inline-flex;align-items:center;gap:8px;color:var(--gold);font-weight:600;text-decoration:none;white-space:nowrap;font-size:.92rem}
.hx-more i{transition:transform .3s}
.hx-more:hover i{transform:translateX(6px)}

/* ============ CATEGORÍAS · bloques fotográficos ============ */
.hx-cats .hx-head-title{color:#fff}
.hx-cat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.hx-cat-card{position:relative;display:block;border-radius:16px;overflow:hidden;aspect-ratio:16/10;background:#0d1512;text-decoration:none;isolation:isolate}
.hx-cat-card.is-wide{grid-column:1 / -1;aspect-ratio:24/9}
.hx-cat-media{position:absolute;inset:0}
.hx-cat-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.19,1,.22,1)}
.hx-cat-card:hover .hx-cat-media img{transform:scale(1.06)}
.hx-cat-shade{position:absolute;inset:0;background:linear-gradient(180deg, rgba(11,18,16,.52) 0%, rgba(11,18,16,.66) 45%, rgba(11,18,16,.96) 100%);transition:background .45s}
.hx-cat-card:hover .hx-cat-shade{background:linear-gradient(180deg, rgba(11,18,16,.42) 0%, rgba(21,127,112,.34) 60%, rgba(11,18,16,.97) 100%)}
.hx-cat-media img{filter:saturate(1.05) contrast(1.04)}
.hx-cat-info{position:absolute;left:24px;right:24px;bottom:22px;z-index:2;display:flex;flex-direction:column;gap:4px}
.hx-cat-kicker{font-size:.66rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);font-weight:600}
.hx-cat-title{font-family:'Cormorant',serif;font-weight:700;line-height:1;color:#fff;font-size:clamp(1.5rem,3vw,2.5rem)}
.hx-cat-card.is-wide .hx-cat-title{font-size:clamp(2rem,5vw,3.6rem)}
.hx-cat-cta{display:inline-flex;align-items:center;gap:7px;margin-top:8px;font-size:.82rem;font-weight:600;color:#fff;opacity:0;transform:translateY(8px);transition:opacity .4s,transform .4s}
.hx-cat-cta i{transition:transform .3s}
.hx-cat-card:hover .hx-cat-cta{opacity:1;transform:none}
.hx-cat-card:hover .hx-cat-cta i{transform:translateX(4px)}
@media (max-width:640px){
  .hx-cat-grid{grid-template-columns:1fr;gap:12px}
  .hx-cat-card,.hx-cat-card.is-wide{aspect-ratio:16/10;grid-column:auto}
  .hx-cat-cta{opacity:1;transform:none}
}

/* ============ SELECCIÓN (productos) ============ */
.hx .card-producto{transition:transform .4s cubic-bezier(.19,1,.22,1),box-shadow .4s,border-color .4s}
.hx .card-producto:hover{transform:translateY(-8px);box-shadow:0 26px 50px -24px rgba(19,33,31,.5);border-color:rgba(21,127,112,.4)}
.hx .card-producto .img-wrap{overflow:hidden}
.hx .card-producto .img-wrap img{transition:transform .7s cubic-bezier(.19,1,.22,1)}
.hx .card-producto:hover .img-wrap img{transform:scale(1.08)}

/* ============ MARCAS marquee ============ */
.hx-brands{overflow:hidden;position:relative;-webkit-mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);mask:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.hx-brand-track{display:flex;align-items:center;gap:58px;width:max-content;animation:hxMarquee 32s linear infinite}
.hx-brands:hover .hx-brand-track{animation-play-state:paused}
.hx-brand{flex:0 0 auto;opacity:.55;filter:grayscale(1);transition:opacity .3s,filter .3s,transform .3s}
.hx-brand:hover{opacity:1;filter:none;transform:scale(1.06)}
.hx-brand img{height:36px;width:auto;object-fit:contain}
.hx-brand span{font-family:'Cormorant',serif;font-size:1.5rem;font-weight:700;color:var(--muted)}

/* ============ PASOS ============ */
.hx-step{height:100%;padding:34px 28px;border-radius:18px;background:rgba(244,239,231,.04);border:1px solid var(--line-dark);transition:transform .4s,background .4s,border-color .4s}
.hx-step:hover{transform:translateY(-6px);background:rgba(21,127,112,.1);border-color:rgba(21,127,112,.5)}
.hx-step-num{font-family:'Cormorant',serif;font-size:1rem;color:var(--gold);letter-spacing:.2em}
.hx-step-ico{width:56px;height:56px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:rgba(21,127,112,.16);color:var(--gold);font-size:1.6rem;margin:16px 0 18px}
.hx-step h3{font-family:'Cormorant',serif;font-size:1.55rem;font-weight:700;margin-bottom:8px;color:#fff}
.hx-step p{color:var(--cream-dim);font-size:.92rem;line-height:1.6;margin:0}

/* ============ ART feature ============ */
.hx-art-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
.hx-art-card{position:relative;border-radius:16px;overflow:hidden;aspect-ratio:1/1;display:block}
.hx-art-card:first-child{grid-row:span 2;aspect-ratio:auto}
.hx-art-card img,.hx-art-card video{width:100%;height:100%;object-fit:cover;transition:transform .7s cubic-bezier(.19,1,.22,1)}
.hx-art-card:hover img,.hx-art-card:hover video{transform:scale(1.06)}
.hx-art-play{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:2.4rem;text-shadow:0 4px 14px rgba(0,0,0,.5)}

/* ============ CTA cierre ============ */
.hx-cta{position:relative;isolation:isolate;background:radial-gradient(120% 130% at 20% 0%, #1c2f2a, #13211f 60%);color:var(--cream);text-align:center;overflow:hidden}
.hx-cta::after{content:"";position:absolute;bottom:-30%;left:50%;transform:translateX(-50%);width:70vw;height:40vw;max-width:800px;z-index:-1;border-radius:50%;background:radial-gradient(closest-side,rgba(21,127,112,.35),transparent 70%);filter:blur(12px)}
.hx-cta-title{font-family:'Cormorant',serif;font-weight:700;line-height:1;font-size:clamp(2.4rem,6vw,4.4rem);margin:14px 0}
.hx-cta-title em{font-style:italic;color:var(--gold)}

/* Móvil: índice de categorías más compacto + índice thumb como fondo */
@media (max-width:991px){
  .hx-cat{gap:14px}
  .hx-cat-count{display:none}
}

/* ============ Profundidad / riqueza (menos plano) ============ */
.hx-sec-dark{position:relative;isolation:isolate;overflow:hidden}
.hx-sec-dark::before{content:"";position:absolute;inset:0;z-index:-1;opacity:.6;pointer-events:none;
  background-image:radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px);background-size:4px 4px}
.hx-sec-dark::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:55vw;height:55vw;max-width:680px;max-height:680px;
  top:-18%;right:-12%;border-radius:50%;background:radial-gradient(closest-side, rgba(21,127,112,.20), transparent 70%);filter:blur(26px)}

/* Manifiesto / diferenciadores */
.hx-statement .eyebrow-x{color:var(--gold)}
.hx-statement-title{font-family:'Cormorant',serif;font-weight:700;line-height:1.02;letter-spacing:-.01em;color:#fff;
  font-size:clamp(1.9rem,4.8vw,3.6rem);max-width:22ch;margin:14px 0 clamp(32px,5vw,58px)}
.hx-statement-title em{font-style:italic;color:var(--gold)}
.hx-statement-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(20px,3vw,44px)}
.hx-stmt{border-top:1px solid var(--line-dark);padding-top:22px}
.hx-stmt-num{font-family:'Cormorant',serif;font-size:.95rem;color:var(--gold);letter-spacing:.18em}
.hx-stmt i{font-size:1.8rem;color:var(--gold);display:block;margin:14px 0 12px}
.hx-stmt h3{font-family:'Cormorant',serif;font-size:1.4rem;font-weight:700;color:#fff;margin-bottom:6px}
.hx-stmt p{font-size:.9rem;line-height:1.65;color:var(--cream-dim);margin:0}
@media (max-width:768px){.hx-statement-grid{grid-template-columns:1fr;gap:20px}}

/* ============ Ancho completo (dejar de centrar/encajonar) ============ */
.hx .container{max-width:100%;padding-left:clamp(16px,4vw,72px);padding-right:clamp(16px,4vw,72px)}

/* ============ Página categorías (grilla auto) ============ */
.cat-all-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:16px}
@media (max-width:640px){.cat-all-grid{grid-template-columns:repeat(2,1fr);gap:10px}}

/* Fallback categoría sin foto */
.hx-cat-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:linear-gradient(145deg,#16241f,#0d1512);color:var(--gold);font-size:2rem}
