/* Home Redesign v4.6.2
 * - Hero rotación
 * - Colecciones (enlace textual)
 * - Productos (alineación uniforme)
 * - UGC Masonry (pantallazos ratios variables, sin forzar 1:1)
 * - Trending / Why / etc.
 */

/* ---- VARIABLES Y BASE ---- */
:root {
  --cs-primary: #6A21BF;
  --cs-primary-hover: #54189f;
  --cs-accent: #EA9350;
  --cs-success: #059669;
  --cs-bg: #ffffff;
  --cs-bg-alt: #f5f7fa;
  --cs-border: #e2e6ec;
  --cs-text: #1a1f29;
  --cs-text-sec: #4b5563;
  --cs-radius: 14px;
  --cs-radius-sm: 6px;
  --cs-transition: 220ms cubic-bezier(.4, 0, .2, 1);
  --cs-gradient: linear-gradient(135deg, #6A21BF, #EA9350);
  --cs-shadow: 0 6px 22px -8px rgba(0, 0, 0, .20);
  --cs-shadow-sm: 0 2px 8px -3px rgba(0, 0, 0, .10);
  --cs-max-wide: 1660px;
  --cs-edge-pad: clamp(1rem, 4vw, 4rem);
  --cs-overlay-strength: .14;
  --cs-hero-offset: clamp(2rem, 10vw, 13rem);
  font-family: var(--cs-font-ui);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--cs-primary);
  transition: color var(--cs-transition);
}

a:hover {
  color: var(--cs-primary-hover);
}

body.page-template-page-home-redesign #primary,
body.page-template-page-home-redesign .site-content,
body.page-template-page-home-redesign .site-main,
body.page-template-page-home-redesign .entry-content>.wp-block-group:first-child,
body.page-template-page-home-redesign .entry-content>.wp-block-cover:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.page-template-page-home-redesign .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.cs-top-bar,
#cs-top-bar-msg {
  display: none !important;
}

.cs-container {
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: var(--cs-edge-pad);
}

.screen-reader-text {
  position: absolute;
  left: -9999px;
}

/* ---- HERO ---- */
.cs-hero {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  min-height: 680px;
  display: flex;
  align-items: center;
  background: #14151c;
  overflow: hidden;
  isolation: isolate;
}

.cs-hero-bg {
  display: none;
}

.cs-hero-bg-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.cs-hero-bg-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  filter: brightness(.93) saturate(1.05);
  will-change: opacity;
}

.cs-hero-bg-slide.is-active {
  opacity: 1;
}

@media (prefers-reduced-motion:reduce) {
  .cs-hero-bg-slide {
    transition: none;
  }
}

.cs-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(15, 16, 24, .82), rgba(106, 33, 191, .62) 55%, rgba(234, 147, 80, .38)),
    radial-gradient(at 88% 20%, rgba(255, 255, 255, .08), transparent 60%);
  z-index: 1;
}

.cs-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding-inline: 0;
  margin-left: var(--cs-hero-offset);
}

.cs-hero h1 {
  font-family: var(--cs-font-ui);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.7rem);
  line-height: 1.07;
  margin: 0 0 1.2rem;
  color: #fff;
}

.cs-hero-keyword {
  display: inline-block;
  background: #fff;
  color: var(--cs-accent);
  font-style: italic;
  font-weight: 800;
  padding: .6rem 1.55rem .7rem;
  border-radius: 3px;
  box-shadow: 0 3px 10px -4px rgba(0, 0, 0, .35);
  transform: skewX(-4deg);
}

.cs-hero-keyword-inner {
  display: inline-block;
  transform: skewX(4deg);
}

.cs-hero-sub {
  color: #f1f4f8;
  font-size: clamp(.97rem, 1.05vw, 1.05rem);
  line-height: 1.45;
  margin: 0 0 1.7rem;
  max-width: 640px;
}

.cs-hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 0 0 1.3rem;
}

.cs-hero-ctas>*:not(:first-child) {
  display: none !important;
}

.cs-hero-badges {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: #fff;
  margin: 0;
  padding: 0;
}

.cs-hero-badges li {
  background: rgba(0, 0, 0, .46);
  padding: .55rem .85rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  line-height: 1;
  color: #e8ecf4;
  white-space: nowrap;
}

/* ---- BOTONES ---- */
.cs-btn {
  --bg: var(--cs-primary);
  --bg-hover: var(--cs-primary-hover);
  --color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--color);
  border: 1px solid var(--bg);
  font-weight: 700;
  font-family: var(--cs-font-ui);
  font-size: .78rem;
  letter-spacing: .5px;
  padding: .9rem 1.45rem;
  border-radius: 6px;
  transition: var(--cs-transition);
  cursor: pointer;
  line-height: 1;
  position: relative;
}

.cs-btn:hover {
  background: var(--bg-hover);
  border-color: var(--bg-hover);
}

.cs-btn-outline {
  --bg: transparent;
  --color: var(--cs-primary);
  background: transparent;
  border-color: var(--cs-primary);
}

.cs-btn-outline:hover {
  background: var(--cs-primary);
  color: #fff;
}

.cs-btn:focus-visible {
  outline: 2px solid var(--cs-accent);
  outline-offset: 2px;
}

/* ---- SECCIONES ---- */
.cs-section {
  padding: 4.5rem 0;
}

.cs-section-alt {
  background: var(--cs-bg-alt);
}

.cs-section-head {
  text-align: center;
  margin: 0 auto 2.7rem;
  max-width: 760px;
}

.cs-section-head h2 {
  font-family: var(--cs-font-ui);
  font-weight: 800;
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  margin: 0 0 .75rem;
  color: var(--cs-text);
}

.cs-section-head p {
  color: var(--cs-text-sec);
  font-size: .98rem;
  margin: 0;
}

/* ---- COLECCIONES ---- */
.cs-collections-grid {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.cs-collection-card {
  position: relative;
  border: 0;
  background: #111;
  border-radius: 22px;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 12px 34px -18px rgba(20, 16, 44, .55);
  cursor: pointer;
  transition: var(--cs-transition);
  isolation: isolate;
}

.cs-collection-card picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cs-collection-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s ease;
  filter: brightness(.97);
}

.cs-collection-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(185deg, rgba(10, 11, 20, .06), rgba(10, 11, 20, .40) 78%),
    linear-gradient(145deg, hsla(var(--col-hsl, 265 64% 45%) / var(--cs-overlay-strength)), rgba(0, 0, 0, .2) 65%, transparent 85%);
  z-index: 1;
  transition: opacity .6s ease;
}

.cs-collection-card:hover {
  transform: translateY(-6px);
}

.cs-collection-card:hover img {
  transform: scale(1.09);
}

.cs-collection-card:hover::before {
  opacity: .9;
}

.cs-collection-body {
  position: relative;
  z-index: 2;
  padding: 1.4rem 1.25rem 1.55rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: #fff;
}

.cs-col-title {
  font-size: 1.05rem;
  font-weight: 800;
  font-family: var(--cs-font-ui);
  margin: 0;
  line-height: 1.1;
  color: #fff;
  transition: color var(--cs-transition);
  text-shadow: 0 2px 6px rgba(0, 0, 0, .38);
}

.cs-col-desc {
  font-size: .70rem;
  line-height: 1.38;
  color: rgba(255, 255, 255, .90);
  margin: 0 0 .55rem;
  max-width: 90%;
  transition: color var(--cs-transition);
}

.cs-col-link {
  --link-color: rgba(255, 255, 255, .85);
  --link-hover: var(--cs-accent);
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .45px;
  text-decoration: none;
  color: var(--link-color);
  position: relative;
  padding: .25rem 0 .2rem;
  transition: color var(--cs-transition);
}

.cs-col-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  width: 0;
  background: linear-gradient(90deg, var(--cs-primary), var(--cs-accent));
  transition: width .45s var(--cs-transition);
  opacity: .85;
}

.cs-col-link-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  transition: transform .55s cubic-bezier(.6, .05, .2, 1);
}

.cs-collection-card:hover .cs-col-link {
  color: var(--link-hover);
}

.cs-collection-card:hover .cs-col-link::after {
  width: 100%;
}

.cs-collection-card:hover .cs-col-link-icon {
  transform: translateX(6px);
}

.cs-collection-card:hover .cs-col-title {
  color: var(--cs-accent);
}

.cs-collection-card:hover .cs-col-desc {
  color: rgba(255, 255, 255, .92);
}

.cs-col-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.cs-collection-card[data-color="selecciones"] {
  --col-hsl: 210 60% 50%;
}

.cs-collection-card[data-color="leyendas"] {
  --col-hsl: 140 45% 42%;
}

.cs-collection-card[data-color="personalizacion"] {
  --col-hsl: 265 64% 54%;
}

.cs-collection-card[data-color="clubes"] {
  --col-hsl: 15 70% 52%;
}

.cs-collection-card[data-color="retro"] {
  --col-hsl: 40 85% 54%;
}

/* ---- PRODUCTOS (grid + uniformidad) ---- */
.cs-products-grid {
  display: grid;
  gap: 1.3rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  min-height: 80px;
  align-items: stretch;
}

.cs-loading {
  font-size: .85rem;
  color: var(--cs-text-sec);
}

.cs-product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: var(--cs-radius-sm);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--cs-shadow-sm);
  transition: var(--cs-transition);
  height: 100%;
}

.cs-product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cs-shadow);
}

.cs-product-card picture {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #f1f3f6;
  overflow: hidden;
}

.cs-product-card picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .8s;
}

.cs-product-card:hover picture img {
  transform: scale(1.06);
}

.cs-product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .95rem .95rem 1.05rem;
  gap: .65rem;
}

.cs-product-meta {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.cs-product-name {
  --cs-name-lines: 3;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: var(--cs-name-lines);
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.25em * var(--cs-name-lines));
}

.cs-price-row {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  margin: 0;
}

.cs-price-current {
  font-size: 1.05rem;
  font-family: var(--cs-font-display);
  line-height: 1;
}

.cs-price-old {
  font-size: .62rem;
  color: var(--cs-text-sec);
  text-decoration: line-through;
  line-height: 1;
}

.cs-product-actions {
  margin-top: auto;
}

.cs-product-actions .cs-btn {
  width: 100%;
  justify-content: center;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .4px;
  padding: .85rem 1rem;
}

.cs-btn-buy {
  --bg: var(--cs-primary);
  --bg-hover: var(--cs-primary-hover);
  background: var(--bg);
  color: #fff;
  border: 1px solid var(--cs-primary);
}

.cs-btn-buy:hover {
  background: var(--bg-hover);
  border-color: var(--bg-hover);
  color: #fff;
}

.cs-discount {
  position: absolute;
  top: .55rem;
  right: .55rem;
  background: #dc2626;
  color: #fff;
  font-size: .52rem;
  font-weight: 700;
  padding: .33rem .5rem;
  border-radius: 6px;
  letter-spacing: .55px;
}

/* Oculta restos */
.cs-product-team,
.cs-product-rating,
.cs-add-cart {
  display: none !important;
}

/* ---- BLOQUE TRENDING ---- */
.cs-trending {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  padding: 4.5rem 0;
  background: linear-gradient(180deg, #faf9fd, #f4f0fa);
}

.cs-trending-banner {
  padding: 0;
  height: 600px;
  position: relative;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.cs-trending-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.95;
}

/* Degradado oscuro a la derecha para mejor legibilidad */
.cs-trending-banner-bg::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
}

.cs-trending-banner-inner {
  position: relative;
  z-index: 2;
  max-width: var(--cs-max-wide);
  margin: 0 auto;
  padding-inline: var(--cs-edge-pad);
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.cs-trending-banner-content {
  max-width: 500px;
  text-align: right;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1.5rem;
  margin-top: 5%;
  /* Adjust to align with eyes */
}

.cs-trending-banner-content h2 {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.9;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), 0 1px 3px rgba(0, 0, 0, 0.9);
}

.cs-trending-banner-content p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.4;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  margin: 0;
}

.cs-btn-banner {
  background: #6A21BF;
  color: #ffffff;
  border: 2px solid #6A21BF;
}

.cs-btn-banner:hover {
  background: #d67d38;
  color: #ffffff;
  border-color: #d67d38;
}

@media (max-width: 768px) {
  .cs-trending-banner {
    height: auto;
    padding: 4rem 0;
  }

  .cs-trending-banner-inner {
    justify-content: center;
  }

  .cs-trending-banner-content {
    align-items: center;
    text-align: center;
    margin-top: 0;
  }

  /* En móvil, degradado vertical */
  .cs-trending-banner-bg::after {
    width: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  }
}

/* Old Card Styles (kept for reference or fallback) */
.cs-trending-inner {
  max-width: var(--cs-max-wide);
  margin: 0 auto;
  padding-inline: var(--cs-edge-pad);
}

.cs-trending-card {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  min-height: 470px;
  display: grid;
  grid-template-columns: 1.15fr .9fr;
  background: #111;
  isolation: isolate;
  box-shadow: 0 28px 60px -28px rgba(22, 16, 40, .55);
}

@media (max-width:1100px) {
  .cs-trending-card {
    grid-template-columns: 1fr;
    min-height: unset;
  }
}

.cs-trending-media {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(17, 18, 27, .80), rgba(106, 33, 191, .65) 55%, rgba(234, 147, 80, .40)), var(--trend-img, #000);
  background-size: cover;
  background-position: center;
  filter: brightness(.95);
  z-index: 0;
}

.cs-trending-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(at 90% 15%, rgba(255, 255, 255, .08), transparent 60%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 7px);
  mix-blend-mode: overlay;
}

.cs-trending-content {
  position: relative;
  z-index: 2;
  padding: 2.4rem clamp(1.2rem, 3vw, 3.2rem) 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  color: #fff;
}

.cs-trend-badge {
  background: var(--cs-accent);
  color: #111;
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .7px;
  padding: .55rem .85rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .35);
}

.cs-trending-content h3 {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.1rem, 3.7vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 4px 14px rgba(0, 0, 0, .4);
}

.cs-trending-content h3 span {
  display: block;
  color: var(--cs-accent);
}

.cs-trending-content p {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, .9);
  font-size: .92rem;
  line-height: 1.45;
}

.cs-trend-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}

.cs-trend-points li {
  font-size: .7rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #fff;
  position: relative;
  padding-left: 1.15rem;
}

.cs-trend-points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .38em;
  width: .65em;
  height: .65em;
  background: var(--cs-accent);
  border-radius: 3px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
}

.cs-trending-side {
  position: relative;
  z-index: 2;
  padding: 2.4rem 2.2rem 2.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(0, 0, 0, .55));
  backdrop-filter: blur(8px);
}

@media (max-width:1100px) {
  .cs-trending-side {
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .65));
    padding-top: 0;
  }
}

.cs-trend-price-box {
  background: rgba(17, 18, 27, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 1.4rem 1.55rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 360px;
  color: #fff;
}

.cs-price-line {
  display: flex;
  align-items: baseline;
  gap: .9rem;
}

.cs-price-current {
  font-size: 2.1rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .5), rgba(255, 255, 255, .04));
}

.cs-timer {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  font-size: .66rem;
  letter-spacing: .5px;
  font-weight: 600;
  color: #fff;
}

.cs-timer-block {
  background: rgba(255, 255, 255, .17);
  padding: .55rem .7rem .5rem;
  border-radius: 10px;
  min-width: 62px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-family: 'Montserrat', sans-serif;
}

.cs-timer-block strong {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
}

/* ---- UGC (Masonry variable ratio) ---- */
.cs-ugc {
  background: linear-gradient(180deg, #ffffff, #f7f5fb);
}

.cs-ugc-inner {
  max-width: var(--cs-max-wide);
  margin-inline: auto;
  padding-inline: var(--cs-edge-pad);
}

/* Masonry columns */
.cs-ugc-grid {
  column-count: 5;
  column-gap: 16px;
  margin: 0 0 2rem;
  padding: 0;
}

@media (max-width:1400px) {
  .cs-ugc-grid {
    column-count: 4;
  }
}

@media (max-width:1100px) {
  .cs-ugc-grid {
    column-count: 3;
  }
}

@media (max-width:760px) {
  .cs-ugc-grid {
    column-count: 2;
  }
}

@media (max-width:460px) {
  .cs-ugc-grid {
    column-count: 1;
  }
}

.cs-ugc-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  position: relative;
  display: block;
  background: #0d0d0f;
  border-radius: 16px;
  overflow: hidden;
  margin: 0 0 16px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35);
  isolation: isolate;
  cursor: pointer;
  transition: var(--cs-transition);
}

.cs-ugc-item img {
  width: 100%;
  height: auto;
  display: block;
  /* Usa contain para mostrar pantallazo completo sin recorte */
  object-fit: contain;
  background: #000;
  transition: transform .9s, filter .6s;
  filter: brightness(.96);
}

.cs-ugc-item:hover img {
  transform: scale(1.02);
  filter: brightness(1);
}

/* Overlay ligero sólo si quieres oscurecer (opcional)
.cs-ugc-item::before{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.05),rgba(0,0,0,.4));
  opacity:.15;
  transition:opacity var(--cs-transition);
}
.cs-ugc-item:hover::before{opacity:.35;}
*/

.cs-ugc-tag {
  position: absolute;
  left: .55rem;
  top: .55rem;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .52rem;
  padding: .38rem .55rem;
  font-weight: 600;
  border-radius: 8px;
  z-index: 2;
  letter-spacing: .4px;
}

.cs-ugc-cta {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  background: var(--cs-gradient);
  color: #fff;
  padding: 1.25rem 1.4rem 1.4rem;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .8rem;
  line-height: 1.35;
  box-shadow: 0 10px 28px -12px rgba(106, 33, 191, .5);
  margin: 0 0 16px;
}

.cs-ugc-cta h3 {
  margin: 0;
  font-size: 1.05rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

.cs-ugc-cta p {
  margin: 0;
  font-size: .66rem;
  line-height: 1.35;
  max-width: 240px;
}

.cs-ugc-cta .cs-btn {
  --bg: #fff;
  --bg-hover: #f2f4f7;
  --color: var(--cs-primary);
  background: #fff;
  color: var(--cs-primary);
  border: 0;
  font-size: .62rem;
  padding: .65rem 1rem;
  font-weight: 700;
  letter-spacing: .45px;
  box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .25);
}

.cs-ugc-cta .cs-btn:hover {
  background: var(--cs-primary);
  color: #fff;
}

/* ---- POR QUÉ ELEGIRNOS ---- */
.cs-why {
  background: linear-gradient(180deg, #f6f7f9, #f2f4f8);
}

.cs-why-card {
  background: #fff;
  border: 1px solid var(--cs-border);
  border-radius: 28px;
  padding: 3.2rem clamp(1.5rem, 4vw, 3.8rem) 3.6rem;
  box-shadow: 0 10px 32px -14px rgba(20, 25, 40, .12);
  max-width: var(--cs-max-wide);
  margin: 0 auto;
  position: relative;
}

.cs-why-head h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.65rem, 2.7vw, 2.15rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 2.8rem;
  color: var(--cs-text);
}

.cs-why-grid {
  display: grid;
  gap: 2.5rem clamp(1rem, 4vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin: 0;
  padding: 0;
  align-items: start;
  text-align: center;
}

.cs-why-grid li {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  align-items: center;
  font-size: .75rem;
  line-height: 1.35;
  color: var(--cs-text-sec);
}

.cs-why-grid h3 {
  font-size: .9rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  color: var(--cs-text);
}

.cs-why-grid p {
  margin: 0;
  max-width: 200px;
}

.cs-why-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg, #E6F9F0, #DAF4EB);
  position: relative;
  box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .18);
}

.cs-why-icon svg {
  width: 44px;
  height: 44px;
  stroke-linecap: round;
}

.cs-why-divider {
  margin: 3.2rem auto 2.2rem;
  max-width: 70%;
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .12), rgba(0, 0, 0, 0));
}

.cs-why-brands-wrap {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cs-why-brands-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .9px;
  color: var(--cs-text-sec);
  margin: 0;
}

.cs-why-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.4rem;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: #a1a6ae;
}

.cs-why-brands li {
  white-space: nowrap;
}

/* ---- TOAST ---- */
.cs-toast {
  position: fixed;
  bottom: 1.2rem;
  right: 1.2rem;
  background: var(--cs-primary);
  color: #fff;
  padding: .85rem 1.15rem;
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 600;
  box-shadow: var(--cs-shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: var(--cs-transition);
  z-index: 1000;
}

.cs-toast.show {
  opacity: 1;
  transform: none;
}

:focus-visible {
  outline: 2px solid var(--cs-primary);
  outline-offset: 2px;
}

/* ---- RESPONSIVE ---- */
@media (max-width:1100px) {
  .cs-hero {
    min-height: 560px;
  }

  .cs-hero-inner {
    margin-left: var(--cs-edge-pad);
  }

  .cs-collections-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }

  .cs-collection-card {
    min-height: 260px;
  }

  .cs-why-card {
    padding: 2.7rem 1.6rem 3rem;
  }

  .cs-why-grid {
    gap: 2rem 1.2rem;
  }
}

@media (max-width:700px) {
  .cs-hero {
    min-height: 520px;
  }

  .cs-hero-sub {
    font-size: .92rem;
  }

  .cs-collections-grid {
    gap: 1.2rem;
  }

  .cs-why-divider {
    max-width: 90%;
  }
}

@media (max-width:640px) {
  .cs-collection-card {
    min-height: 240px;
  }

  .cs-col-title {
    font-size: .95rem;
  }

  .cs-col-desc {
    font-size: .66rem;
  }

  .cs-col-link {
    font-size: .6rem;
  }
}

/* ---- ANIMACIONES ---- */
@media (prefers-reduced-motion:no-preference) {
  .fade-in {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeIn .6s forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* === UGC Tag (banderas) v4.6.3 ===
   - Sin fondo / sin blur
   - Tamaño mayor
   - Soporta emoji o <img>
*/
.cs-ugc-tag {
  position: absolute;
  top: .55rem;
  left: .55rem;
  /* quitamos fondo / blur */
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
  /* tipografía para emoji bandera */
  font-size: 1.55rem;
  /* ajusta tamaño bandera emoji */
  line-height: 1;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  color: #fff;
  /* por si añades texto corto */
  font-weight: 600;
  letter-spacing: .4px;
  text-shadow: 0 0 4px rgba(0, 0, 0, .55);
  /* opcional: ligero halo para contraste */
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .45));
}

/* Si SOLO quieres mostrar la bandera y nada de texto */
.cs-ugc-tag[data-flag-only="1"] {
  font-size: 1.85rem;
  text-shadow: none;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
  color: transparent;
  /* por si queda texto accidental */
}

/* Si usas una imagen de bandera dentro del tag */
.cs-ugc-tag img {
  width: 34px;
  height: 24px;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 5px -1px rgba(0, 0, 0, .5);
  border: 1px solid rgba(255, 255, 255, .35);
  /* quita esta línea si no quieres borde */
  /* Para versión sin borde:  border:none; */
}

/* Variante circular (descomenta si prefieres círculo)
.cs-ugc-tag img{
  width:40px;height:40px;
  border-radius:50%;
  border:2px solid #fff;
  box-shadow:0 3px 7px -2px rgba(0,0,0,.55);
}
*/

/* Ajuste responsivo menor en pantallas muy pequeñas */
@media (max-width:520px) {
  .cs-ugc-tag {
    font-size: 1.3rem;
  }

  .cs-ugc-tag img {
    width: 30px;
    height: 20px;
  }
}

/* Override: título CTA UGC en blanco */
.cs-ugc-cta h3 {
  color: #ffffff !important;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .35);
  /* opcional: mejora contraste */
}

.cs-ugc-cta:hover h3 {
  filter: brightness(1.05);
}

/* === Hotfix botón hero: mantener texto blanco en hover === */

/* 1. Evita que la regla global a:hover afecte a los botones */
a:hover:not(.cs-btn) {
  color: var(--cs-primary-hover);
}

/* 2. Fuerza color blanco para botones sólidos (no outline) en todos los estados interactivos */
.cs-btn:not(.cs-btn-outline),
.cs-btn:not(.cs-btn-outline):hover,
.cs-btn:not(.cs-btn-outline):focus,
.cs-btn:not(.cs-btn-outline):focus-visible,
.cs-btn:not(.cs-btn-outline):active {
  color: #fff !important;
}

/* 3. (Opcional) Mejora de contraste si el fondo morado oscuro se ve muy similar al texto */
.cs-btn:not(.cs-btn-outline) {
  text-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

/* 4. (Opcional) Transición suave solo del background (no del color para evitar parpadeo) */
.cs-btn {
  transition: background var(--cs-transition), border-color var(--cs-transition), transform var(--cs-transition);
}

/* (Se mantiene todo tu CSS actual v4.6.2 + ajustes previos + banderas + hotfix hero)
   ... (TU CONTENIDO ACTUAL PEGADO AQUÍ SIN CAMBIOS) ...
   Coloca este bloque NUEVO al FINAL del archivo existente
*/

/* ============================== */
/* === ADAPTACIONES SOLO MÓVIL === */
/* Breakpoint principal: <=640px  */
/* No se altera escritorio        */
/* ============================== */
@media (max-width:640px) {

  /* Hero: ajustar tipografía secundaria (el texto se reemplaza vía JS si hay hero_sub_mobile) */
  .cs-hero {
    min-height: 560px;
  }

  .cs-hero-inner {
    margin-left: var(--cs-edge-pad);
    max-width: 95%;
  }

  .cs-hero h1 {
    font-size: clamp(2rem, 8vw, 2.55rem);
  }

  #cs-hero-sub.cs-hero-sub {
    font-size: .8rem;
    line-height: 1.38;
    max-width: 95%;
    margin-bottom: 1.25rem;
  }

  .cs-hero-badges {
    font-size: .5rem;
    gap: .45rem;
  }

  /* Productos: 3 columnas compactas */
  .cs-products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .85rem;
  }

  /* Ocultar del 5º en adelante */
  .cs-products-grid .cs-product-card:nth-of-type(n+5) {
    display: none !important;
  }

  .cs-product-card {
    border-radius: 10px;
  }

  .cs-product-info {
    padding: .55rem .55rem .65rem;
    gap: .45rem;
  }

  .cs-product-name {
    --cs-name-lines: 2;
    font-size: .68rem;
    min-height: calc(1.25em * 2);
  }

  .cs-price-current {
    font-size: .85rem;
  }

  .cs-price-old {
    font-size: .75rem;
  }

  .cs-product-actions .cs-btn {
    padding: .6rem .55rem;
    font-size: .6rem;
    letter-spacing: .3px;
  }

  .cs-discount {
    font-size: .45rem;
    padding: .25rem .4rem;
    border-radius: 4px;
  }

  /* UGC: forzar 3 columnas en móvil (en lugar de caer a 1) */
  .cs-ugc-grid {
    column-count: 3 !important;
    column-gap: 10px;
  }

  .cs-ugc-item {
    margin: 0 0 10px;
    border-radius: 10px;
  }

  .cs-ugc-item img {
    /* Miniaturizamos un poco visualmente con max-height opcional */
    /* max-height:240px; (Descomenta si quisieras limitar) */
  }

  .cs-ugc-tag {
    top: .35rem;
    left: .35rem;
    font-size: 1.1rem;
  }

  .cs-ugc-cta {
    padding: .9rem .9rem 1rem;
    min-height: 180px;
    font-size: .7rem;
  }

  .cs-ugc-cta h3 {
    font-size: .85rem;
  }

  .cs-ugc-cta p {
    font-size: .55rem;
    line-height: 1.3;
  }

  .cs-ugc-cta .cs-btn {
    font-size: .55rem;
    padding: .5rem .75rem;
  }

  /* Why: 4 columnas en una fila */
  .cs-why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem .65rem;
  }

  .cs-why-grid li {
    font-size: .6rem;
    gap: .55rem;
  }

  .cs-why-grid h3 {
    font-size: .72rem;
  }

  .cs-why-icon {
    width: 58px;
    height: 58px;
  }

  .cs-why-icon svg {
    width: 30px;
    height: 30px;
  }

  /* Trending: ya pasa a 1 columna en <=1100, solo refinamos paddings */
  .cs-trending-content {
    padding: 1.9rem 1.2rem 2.1rem;
    gap: 1.1rem;
  }

  .cs-trending-content h3 {
    font-size: clamp(1.7rem, 8vw, 2.1rem);
  }

  .cs-trending-side {
    padding: 1.2rem 1.2rem 2rem;
    gap: 1.2rem;
  }

  .cs-trend-price-box {
    padding: 1.1rem 1.2rem 1.3rem;
  }

  /* Colecciones: tarjetas algo más compactas */
  .cs-collections-grid {
    gap: 1.1rem;
  }

  .cs-collection-card {
    min-height: 230px;
  }

  .cs-collection-body {
    padding: 1.05rem .95rem 1.15rem;
  }

  .cs-col-title {
    font-size: .92rem;
  }

  .cs-col-desc {
    font-size: .62rem;
    margin: 0 0 .4rem;
  }

  .cs-col-link {
    font-size: .55rem;
  }
}

/* Ajuste muuuy estrecho: si <380px, pasar UGC a 2 columnas para evitar celdas microscópicas */
/* === GALAXIA DE LEYENDAS BANNER === */
.cs-legends-banner {
  position: relative;
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  background-color: #0b0f19;
  color: #fff;
  overflow: hidden;
  padding: 5rem 0;
  isolation: isolate;
}

.cs-legends-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1518091043644-c1d4457512c6?q=80&w=2830&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) brightness(0.4);
  mix-blend-mode: luminosity;
  z-index: 0;
  /* Start with a fallback dark color if image fails */
  background-color: #0b0f19;
}


/* Noise texture using SVG data URI */
.cs-legends-noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.cs-legends-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: 500px;
}

/* Left Column */
.cs-legends-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.cs-legends-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  color: #D4AF37;
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  animation: cs-pulse 3s infinite;
}

@keyframes cs-pulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.1);
  }
}

.cs-legends-title {
  font-family: 'Arial Black', 'Impact', sans-serif;
  /* Fallback for Anton */
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0;
  background: linear-gradient(180deg, #F3E5AB 0%, #D4AF37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.5));
}

.cs-legends-cta {
  background: linear-gradient(135deg, #D4AF37, #B48811);
  color: #000;
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cs-legends-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
  color: #000;
}

/* Right Column - Cloud */
.cs-legends-right {
  position: relative;
  height: 500px;
  perspective: 1000px;
}

.cs-legend-name {
  position: absolute;
  font-family: 'Arial Black', sans-serif;
  text-transform: uppercase;
  white-space: nowrap;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  user-select: none;
}

.cs-legend-name.layer-0 {
  color: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
  filter: blur(1px);
  z-index: 1;
}

.cs-legend-name.layer-1 {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.5rem;
  z-index: 5;
}

.cs-legend-name.layer-2 {
  color: #fff;
  font-size: 2.5rem;
  z-index: 10;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.cs-legend-name:hover {
  color: #D4AF37 !important;
  z-index: 50 !important;
  transform: scale(1.2) !important;
  filter: blur(0) !important;
  opacity: 1 !important;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* Animations */
@keyframes cs-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

@keyframes cs-float-slow {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.cs-anim-float {
  animation: cs-float 4s ease-in-out infinite;
}

.cs-anim-float-slow {
  animation: cs-float-slow 7s ease-in-out infinite;
}

/* Player Card (Face) */
.cs-player-card-wrapper {
  position: absolute;
  z-index: 10;
  display: none;
}

@media (min-width: 768px) {
  .cs-player-card-wrapper {
    display: block;
  }
}

.cs-player-card {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.3);
  filter: grayscale(100%) contrast(120%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  background: #000;
}

.cs-player-card:hover {
  filter: grayscale(0%);
  border-color: #D4AF37;
  transform: scale(1.1);
}

.cs-player-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Product Carousel in Cloud */
.cs-legends-product {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 280px;
  height: 280px;
  pointer-events: none;
}

.cs-legends-jersey {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: all 0.8s ease;
  transform: translateX(50px) scale(0.9);
}

.cs-legends-jersey.active {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.cs-legends-jersey.exit {
  opacity: 0;
  transform: translateX(-50px) scale(0.9);
}

@media (max-width: 900px) {
  .cs-legends-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .cs-legends-left {
    align-items: center;
  }

  .cs-legends-right {
    height: 350px;
    overflow: hidden;
  }

  .cs-legends-title {
    font-size: 3rem;
  }

  .cs-legend-name.layer-0 {
    display: none;
  }

  /* Reduce clutter on mobile */
  .cs-legend-name {
    font-size: 80% !important;
  }
}

@media (max-width:380px) {
  .cs-ugc-grid {
    column-count: 2 !important;
  }

  .cs-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === FIX CENTRADO COLECCIONES MÓVIL (Forzado v2 – FLEX) === */
@media (max-width:760px) {
  body.page-template-page-home-redesign #colecciones .cs-collections-grid {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body.page-template-page-home-redesign #colecciones .cs-collections-grid>.cs-collection-card {
    width: clamp(260px, 92vw, 360px);
    max-width: 360px;
  }
}