/* ===== Encabezado premium ===== */
.encabezado {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.25);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  border-bottom: 1px solid rgba(58, 41, 142, 0.08);
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.encabezado.esta-scrolleado {
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 45px rgba(33, 22, 79, .08);
  border-bottom-color: rgba(58,41,142,.12);
}

.encabezado__barra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
  transition: min-height .35s var(--easing);
}

.encabezado.esta-scrolleado .encabezado__barra { min-height: 68px; }

.encabezado__logo {
  display: flex;
  align-items: center;
  min-width: 160px;
}

.encabezado__logo img {
  width: 168px;
  height: auto;
  max-height: 56px;
  filter: drop-shadow(0 4px 14px rgba(58,41,142,.08));
  transition: transform .35s var(--easing);
}

.encabezado__logo:hover img { transform: scale(1.025); }

.encabezado__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.encabezado__nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .3rem;
  border-radius: 999px;
  background: rgba(247,245,255,.72);
  border: 1px solid rgba(58,41,142,.08);
}

.encabezado__nav a {
  position: relative;
  display: block;
  padding: .62rem .9rem;
  border-radius: 999px;
  font-weight: 720;
  font-size: .87rem;
  color: #393546;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.encabezado__nav a:hover {
  color: var(--color-morado);
  background: rgba(58,41,142,.07);
}

.encabezado__nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(135deg, var(--color-morado-vivo), var(--color-morado));
  box-shadow: 0 8px 22px rgba(58,41,142,.22);
}

.encabezado__cta { white-space: nowrap; min-height: 44px; padding: .7rem 1.2rem; }

.encabezado__movil {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-borde-morado);
  background: #fff;
  cursor: pointer;
  padding: .6rem;
}

.encabezado__movil span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-morado);
  margin: 4px auto;
  border-radius: 999px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ===== Pie ===== */
.pie {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(91,69,199,.25), transparent 24%),
    linear-gradient(145deg, #171030, #0f0b21 70%);
  color: rgba(251,250,255,.72);
  padding: 4.8rem 0 1.5rem;
}

.pie::before {
  content: "HALCA";
  position: absolute;
  right: -1vw;
  bottom: -5vw;
  font-size: clamp(7rem, 17vw, 16rem);
  font-weight: 900;
  letter-spacing: -.08em;
  color: rgba(255,255,255,.025);
  pointer-events: none;
}

.pie__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--espacio-lg);
  padding-bottom: var(--espacio-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.pie__marca img {
  width: 190px;
  height: auto;
  margin-bottom: var(--espacio-sm);
  filter: none;
  opacity: 1;
  object-fit: contain;
}

.pie h4 {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}

.pie a {
  display: block;
  width: fit-content;
  padding: .32rem 0;
  font-size: var(--texto-sm);
  color: inherit;
  transition: color .2s ease, transform .2s ease;
}
.pie a:hover { color: #fff; transform: translateX(3px); }

.pie__inferior {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--espacio-md);
  font-size: var(--texto-xs);
}

/* ===== WhatsApp flotante ===== */
.whatsapp-flotante {
  position: fixed;
  right: clamp(1rem, 2.5vw, 1.8rem);
  bottom: clamp(1rem, 2.5vw, 1.8rem);
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 35px rgba(37,211,102,.3);
  transition: transform .3s var(--easing), box-shadow .3s var(--easing);
}
.whatsapp-flotante::before {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(37,211,102,.35);
  border-radius: inherit;
  animation: whatsappPulse 2.3s ease-out infinite;
}
@keyframes whatsappPulse { 0% { transform: scale(.9); opacity: .8; } 70%,100% { transform: scale(1.25); opacity: 0; } }
.whatsapp-flotante:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 18px 42px rgba(37,211,102,.4); }
.whatsapp-flotante svg { width: 28px; height: 28px; fill: #fff; }

/* ===== Grid de productos ===== */
.productos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.55rem);
}

/* ===== Tarjeta de producto ===== */
.tarjeta-producto {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  isolation: isolate;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(58,41,142,.11);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: 0 12px 35px rgba(33,22,79,.055);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
  transition: box-shadow .45s var(--easing), transform .45s var(--easing), border-color .35s ease;
}

.tarjeta-producto::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(143,125,240,.11), transparent 40%);
  opacity: 0;
  transition: opacity .35s ease;
}

.tarjeta-producto:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-8px);
  box-shadow: 0 25px 70px rgba(33,22,79,.15);
  border-color: rgba(91,69,199,.28);
}
.tarjeta-producto:hover::after { opacity: 1; }

.tarjeta-producto__imagen {
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, #fff 0%, #faf9ff 56%, #f0ecff 100%);
  padding: 1rem;
}

.tarjeta-producto__imagen::after {
  content: "";
  position: absolute;
  inset: auto 12% 8% 12%;
  height: 12%;
  border-radius: 50%;
  background: rgba(31,23,69,.08);
  filter: blur(16px);
  transform: scaleX(.9);
  transition: transform .5s var(--easing), opacity .5s ease;
}

.tarjeta-producto__imagen img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .65s var(--easing), filter .5s ease;
}

.tarjeta-producto:hover .tarjeta-producto__imagen img { transform: scale(1.065) translateY(-3px); }
.tarjeta-producto:hover .tarjeta-producto__imagen::after { transform: scaleX(1.05); opacity: .75; }

.tarjeta-producto__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: .36rem .68rem;
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(58,41,142,.11);
  color: var(--color-morado);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tarjeta-producto__cuerpo {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .52rem;
  flex: 1;
}

.tarjeta-producto__categoria {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--color-morado-vivo);
  font-weight: 800;
}

.tarjeta-producto__nombre {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  line-height: 1.16;
  letter-spacing: -.025em;
  margin: 0;
}

.tarjeta-producto__specs {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: .2rem 0 .15rem;
}

.tarjeta-producto__spec {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .38rem .58rem;
  border-radius: 10px;
  background: var(--color-lavanda-suave);
  border: 1px solid rgba(58,41,142,.08);
  color: #514c61;
  font-size: .76rem;
  line-height: 1;
}
.tarjeta-producto__spec b { color: var(--color-morado); font-weight: 800; }

.tarjeta-producto__cuerpo > p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .88rem;
  line-height: 1.5;
  min-height: 2.65em;
}

.tarjeta-producto__acciones {
  display: flex;
  gap: .55rem;
  margin-top: auto;
  padding-top: .35rem;
}
.tarjeta-producto__acciones .boton { flex: 1; min-height: 43px; padding: .65rem .9rem; font-size: .82rem; }
.tarjeta-producto__acciones .boton--whatsapp { flex: .9; }

/* ===== Tarjeta de categoría ===== */
.tarjeta-categoria {
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  border: 1px solid rgba(58,41,142,.1);
  box-shadow: 0 16px 40px rgba(33,22,79,.08);
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
  transition: transform .45s var(--easing), box-shadow .45s var(--easing);
}

.tarjeta-categoria::before {
  content: attr(data-numero);
  position: absolute;
  top: 16px;
  right: 18px;
  z-index: 3;
  font-family: var(--fuente-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  color: rgba(255,255,255,.74);
}

.tarjeta-categoria::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,13,45,.08) 15%, rgba(18,13,45,.3) 48%, rgba(18,13,45,.96) 100%),
    linear-gradient(140deg, rgba(91,69,199,.05), rgba(58,41,142,.16));
  transition: background .4s ease;
}

.tarjeta-categoria:hover {
  transform: perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-7px);
  box-shadow: 0 26px 70px rgba(33,22,79,.2);
}
.tarjeta-categoria:hover::after { background: linear-gradient(180deg, rgba(91,69,199,.08), rgba(18,13,45,.97)); }

.tarjeta-categoria__imagen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .75s var(--easing), filter .6s ease;
}
.tarjeta-categoria:hover .tarjeta-categoria__imagen { transform: scale(1.08); filter: saturate(1.06); }

.tarjeta-categoria__contenido {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.45rem;
}
.tarjeta-categoria__contenido h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.tarjeta-categoria__contenido p { color: rgba(255,255,255,.76); font-size: .88rem; margin-bottom: 1rem; }
.tarjeta-categoria__enlace {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .84rem;
  font-weight: 800;
}
.tarjeta-categoria__enlace::after { content: "→"; transition: transform .25s ease; }
.tarjeta-categoria:hover .tarjeta-categoria__enlace::after { transform: translateX(5px); }

/* Cargadores */
.halca-skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: #f1eef9;
}
.halca-skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  animation: skeletonMove 1.35s infinite;
}
@keyframes skeletonMove { 100% { transform: translateX(100%); } }


/* ===== HERO FLYERS HALCA V10 ===== */
.flyer-hero {
  position: relative;
  background: #120b32;
  overflow: hidden;
}
.flyer-hero__media {
  position: relative;
  width: 100%;
  background: #120b32;
  overflow: hidden;
}
.flyer-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 -48px 72px rgba(9, 5, 26, .12);
}
.flyer-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  background: #120b32;
}
.flyer-hero__bar {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(90deg, #10082c 0%, #1b0f4d 55%, #291779 100%);
  box-shadow: 0 -16px 44px rgba(9, 4, 28, .22);
}
.flyer-hero__bar-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.flyer-hero__bar p {
  margin: 0;
  max-width: 58ch;
  color: rgba(245, 242, 255, .82);
  font-size: .96rem;
  line-height: 1.55;
}
.flyer-hero__bar p strong {
  color: #fff;
  font-size: 1.25rem;
  margin-right: .25rem;
}
.flyer-hero__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex: 0 0 auto;
}
.flyer-hero__actions .boton {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .flyer-hero__bar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1.15rem;
  }
  .flyer-hero__actions { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .flyer-hero__media {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .flyer-hero__media::-webkit-scrollbar { display: none; }
  .flyer-hero__media img {
    width: auto;
    max-width: none;
    height: 58vw;
    min-height: 300px;
    object-fit: cover;
    object-position: center;
  }
  .flyer-hero__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .flyer-hero__actions .boton { width: 100%; justify-content: center; }
}
