/* ═══════════════════════════════════════════════════════════
   HOME v2 — inicio tipo app curada, paleta oscura + coral
   ═══════════════════════════════════════════════════════════ */

/* ── Brand title (navbar, sin icono) ── */
.nav-brand .brand-title {
  display: inline-flex; align-items: baseline; gap: 6px;
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.5px;
  line-height: 1;
}
.nav-brand .brand-main {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #fff 50%, #fda4af 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-brand .brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  padding: 3px 8px;
  background: linear-gradient(135deg, #f43f5e, #ec4899);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(244,63,94,.35);
}

.hx {
  position: relative;
  padding: 24px 0 40px;
  color: #e8ecf5;
  overflow: hidden;
}

/* ───── Fondo ───── */
.hx-bg {
  position: absolute; inset: -20px;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hx-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  animation: hxBlob 16s ease-in-out infinite;
}
.hx-blob.b1 { width: 460px; height: 460px; top: -140px; left: -160px;
  background: radial-gradient(circle,#f43f5e 0%,transparent 70%); }
.hx-blob.b2 { width: 380px; height: 380px; top: 20%; right: -120px;
  background: radial-gradient(circle,#ec4899 0%,transparent 70%); animation-delay:-5s; }
.hx-blob.b3 { width: 320px; height: 320px; bottom: -80px; left: 30%;
  background: radial-gradient(circle,#a855f7 0%,transparent 70%); animation-delay:-10s; opacity:.35; }
@keyframes hxBlob {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(40px,-30px) scale(1.08); }
  66%     { transform: translate(-30px,40px) scale(.95); }
}
.hx-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(244,63,94,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(244,63,94,.04) 1px,transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 85%);
}

/* ───── HERO ───── */
.hx-hero {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 36px 16px 44px;
  max-width: 1160px;
  margin: 0 auto;
}
.hx-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  background: rgba(244,63,94,.12);
  border: 1px solid rgba(244,63,94,.35);
  color: #fda4af;
  font-size: 12px; font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.hx-h1 {
  margin: 20px 0 14px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
}
.hx-accent {
  background: linear-gradient(135deg,#f43f5e,#ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hx-sub {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  max-width: 500px;
  margin: 0 0 28px;
}
.hx-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hx-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: linear-gradient(135deg,#f43f5e,#ec4899);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(244,63,94,.4), inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .15s, box-shadow .18s, filter .15s;
}
.hx-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(244,63,94,.55), inset 0 1px 0 rgba(255,255,255,.3);
  filter: brightness(1.05);
}
.hx-cta-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 24px;
  background: rgba(255,255,255,.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.hx-cta-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

/* ── Visual del hero: "phone" rotatorio ── */
.hx-hero-visual {
  position: relative;
  display: flex; justify-content: center;
  padding: 20px;
}
.hx-phone {
  position: relative;
  width: 280px; height: 480px;
  background: linear-gradient(145deg,#1a1f2e,#0f1320);
  border-radius: 40px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow:
    0 30px 80px rgba(244,63,94,.25),
    0 0 0 8px rgba(255,255,255,.02),
    inset 0 1px 0 rgba(255,255,255,.08);
  padding: 14px;
  animation: hxFloat 6s ease-in-out infinite;
}
@keyframes hxFloat {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-14px) rotate(1deg); }
}
.hx-phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 22px;
  background: #000; border-radius: 0 0 14px 14px;
  z-index: 2;
}
.hx-phone-screen {
  position: relative;
  width: 100%; height: 100%;
  background: #0b0e17;
  border-radius: 28px;
  overflow: hidden;
}

/* rotador hero */
.hx-rotator { position: relative; width: 100%; height: 100%; }
.hx-rot-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .8s, transform .8s;
  display: flex; flex-direction: column;
}
.hx-rot-slide.is-on { opacity: 1; transform: scale(1); }
.hx-rot-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.hx-rot-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(244,63,94,.1),rgba(236,72,153,.08));
  color: rgba(255,255,255,.3);
  z-index: 0;
}
.hx-rot-ph svg { width: 42%; height: 42%; }
.hx-rot-info { z-index: 2; }
.hx-rot-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 18px 20px;
  background: linear-gradient(to top, rgba(0,0,0,.85) 30%, transparent);
  color: #fff;
}
.hx-rot-name {
  font-size: 15px; font-weight: 700;
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hx-rot-price {
  font-size: 18px; font-weight: 800;
  color: #fb7185;
}

/* badges flotantes */
.hx-float {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: rgba(17,25,40,.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  color: #fff; font-size: 12px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.hx-float svg { color: #10b981; }
.hx-float-1 { top: 18%; left: -18px; animation: hxFloat1 4s ease-in-out infinite; }
.hx-float-2 { bottom: 20%; right: -14px; animation: hxFloat2 5s ease-in-out infinite; }
.hx-float-2 svg { color: #fbbf24; }
@keyframes hxFloat1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes hxFloat2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(12px)} }

/* ───── BENEFICIOS ───── */
.hx-benefits {
  position: relative; z-index: 1;
  max-width: 1160px;
  margin: 10px auto 40px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hx-bene {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 20px 14px;
  background: rgba(17,25,40,.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  text-align: center;
  color: rgba(255,255,255,.85);
  font-size: 13px; font-weight: 600; line-height: 1.3;
  text-decoration: none;
  transition: transform .18s, border-color .18s, background .18s;
}
.hx-bene:hover {
  transform: translateY(-3px);
  border-color: rgba(244,63,94,.4);
  background: rgba(17,25,40,.85);
}
.hx-bene-ic {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg,rgba(244,63,94,.18),rgba(236,72,153,.1));
  border: 1px solid rgba(244,63,94,.35);
  color: #fb7185;
  border-radius: 14px;
}
.hx-bene-ic svg { width: 22px; height: 22px; }

/* ───── CATEGORIA / PRODUCTOS ───── */
.hx-cat {
  position: relative; z-index: 1;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.hx-cat-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.hx-h2 {
  font-size: 24px; font-weight: 800;
  margin: 0;
  color: #fff;
  letter-spacing: -.5px;
}
.hx-view-all {
  display: inline-flex; align-items: center; gap: 6px;
  color: #fb7185; font-size: 13px; font-weight: 700;
  text-decoration: none;
}
.hx-view-all:hover { color: #f43f5e; }

.hx-carrusel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hx-card-rot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(17,25,40,.6);
  border: 1px solid rgba(255,255,255,.08);
}
.hx-card-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity .7s cubic-bezier(.22,.9,.3,1.1), transform .9s;
  text-decoration: none;
  color: #fff;
}
.hx-card-slide.is-on { opacity: 1; transform: scale(1); }
.hx-card-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,#1a1f2e,#0f1320);
  overflow: hidden;
}
.hx-card-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s;
  z-index: 1;
}
.hx-card-slide:hover .hx-card-img img { transform: scale(1.08); }
.hx-card-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.2);
  z-index: 0;
}
.hx-card-ph svg { width: 38%; height: 38%; }
.hx-card-stock {
  position: absolute; top: 10px; right: 10px;
  padding: 4px 10px;
  background: rgba(16,185,129,.9);
  color: #fff; font-size: 10px; font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: .5px;
  backdrop-filter: blur(6px);
  z-index: 3;
}
.hx-card-stock.out { background: rgba(244,63,94,.9); }
.hx-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,.92), transparent);
  z-index: 2;
}
.hx-card-name {
  font-size: 13px; font-weight: 700;
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hx-card-price {
  font-size: 16px; font-weight: 800;
  color: #fb7185;
}

/* ───── BANNER PROMO ───── */
.hx-promo {
  position: relative; z-index: 1;
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.hx-promo > * {
  display: inline-block; vertical-align: middle;
}
.hx-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px 36px;
  background: linear-gradient(135deg, rgba(244,63,94,.15), rgba(168,85,247,.08));
  border: 1px solid rgba(244,63,94,.3);
  border-radius: 28px;
  overflow: hidden;
  margin: 0 16px 40px;
  max-width: calc(1160px - 32px);
  margin-left: auto; margin-right: auto;
}
.hx-promo-tag {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 11px; font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.hx-promo-title {
  font-size: 30px; font-weight: 800;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #fff;
  letter-spacing: -.5px;
}
.hx-promo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  border-radius: 999px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: background .18s;
}
.hx-promo-btn:hover { background: rgba(255,255,255,.2); }

.hx-promo-vis {
  position: relative;
  height: 180px;
}
.hx-promo-ball {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 140px; height: 140px;
  background: linear-gradient(135deg,#f43f5e,#ec4899);
  border-radius: 50%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: #fff;
  font-size: 32px; font-weight: 800;
  box-shadow: 0 20px 50px rgba(244,63,94,.5);
  animation: hxBallFloat 5s ease-in-out infinite;
  z-index: 2;
}
.hx-promo-ball small { font-size: 14px; letter-spacing: 2px; margin-top: -4px; }
@keyframes hxBallFloat {
  0%,100% { transform: translate(-50%,-50%) rotate(-5deg); }
  50%     { transform: translate(-50%,-55%) rotate(5deg); }
}
.hx-promo-cube {
  position: absolute;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  animation: hxCubeSpin 8s linear infinite;
}
.hx-promo-cube.c1 { top: 15%; left: 10%; animation-delay: 0s; }
.hx-promo-cube.c2 { top: 70%; left: 20%; width: 30px; height: 30px; animation-delay: -2s; }
.hx-promo-cube.c3 { top: 30%; right: 12%; width: 35px; height: 35px; animation-delay: -4s; }
@keyframes hxCubeSpin {
  from { transform: rotate(0) translateY(0); }
  50%  { transform: rotate(180deg) translateY(-12px); }
  to   { transform: rotate(360deg) translateY(0); }
}

/* ───── STATS ───── */
.hx-stats {
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 16px;
  display: flex; justify-content: space-around;
  gap: 20px;
  background: rgba(17,25,40,.5);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
}
.hx-stat { text-align: center; }
.hx-n {
  display: block;
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg,#f43f5e,#ec4899);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.hx-l {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ───── MOBILE ───── */
@media (max-width: 860px) {
  /* Se mantiene el teléfono AL LADO del texto, solo más compacto */
  .hx-hero { grid-template-columns: 1.15fr 0.85fr; gap: 16px; padding: 20px 16px 24px; }
  .hx-phone { width: 180px; height: 340px; margin-left: auto; }
  .hx-h1 { font-size: 34px; }
  .hx-sub { font-size: 14px; max-width: 100%; }
  .hx-benefits { grid-template-columns: repeat(2, 1fr); }
  .hx-carrusel { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hx-promo { grid-template-columns: 1fr; padding: 28px 24px; text-align: center; }
  .hx-promo-vis { height: 160px; }
  .hx-promo-title { font-size: 24px; }
  .hx-stats { flex-direction: row; flex-wrap: wrap; padding: 18px 12px; gap: 10px; }
  .hx-n { font-size: 24px; }
  .hx-l { font-size: 10px; }
  /* badges flotantes más chicos y pegados al teléfono */
  .hx-float { font-size: 10px; padding: 7px 10px; }
  .hx-float-1 { top: 12%; left: -6px; }
  .hx-float-2 { bottom: 16%; right: -6px; }
}
@media (max-width: 560px) {
  .hx-hero { gap: 10px; }
  .hx-phone { width: 140px; height: 270px; }
  .hx-h1 { font-size: 26px; }
  .hx-sub { font-size: 12.5px; }
  .hx-eyebrow { font-size: 10px; padding: 5px 10px; }
  .hx-cta, .hx-cta-ghost { padding: 10px 16px; font-size: 13px; }
  .hx-actions { gap: 8px; }
  .hx-float { display: none; } /* en muy angosto, ocultar badges para que no estorben */
}
@media (max-width: 400px) {
  .hx-phone { width: 118px; height: 230px; }
  .hx-h1 { font-size: 23px; }
  .hx-benefits { gap: 10px; }
  .hx-bene { padding: 16px 10px; font-size: 12px; }
  .hx-bene-ic { width: 40px; height: 40px; }
  .hx-promo-ball { width: 110px; height: 110px; font-size: 26px; }
}
