/*-----------------------------------*\
  #CUSTOM PROPERTY
\*-----------------------------------*/
:root {
  /**
   * COLORS
   */

  /* background color */
  --bg-purple: hsla(267, 100%, 63%, 1);
  --bg-purple-alpha-30: hsla(267, 100%, 63%, 0.3);
  --bg-dark-purple: hsla(279, 42%, 9%, 1);
  --bg-oxford-blue: hsla(240, 63%, 13%, 1);
  --bg-oxford-blue-alpha-95: hsla(240, 63%, 13%, 0.95);
  --bg-oxford-blue-alpha-90: hsla(240, 63%, 13%, 0.9);
  --bg-oxford-blue-alpha-80: hsla(240, 63%, 13%, 0.8);

  /* gradient color */
  --gradient-1: linear-gradient(
    to right bottom,
    hsl(299, 100%, 52%),
    hsl(291, 100%, 58%),
    hsl(283, 100%, 60%),
    hsl(273, 100%, 62%),
    hsl(262, 100%, 63%),
    hsl(242, 100%, 69%),
    hsl(223, 100%, 62%),
    hsl(210, 100%, 50%),
    hsl(203, 100%, 50%),
    hsl(198, 100%, 50%),
    hsl(192, 100%, 48%),
    hsl(185, 90%, 48%)
  );
  --gradient-2: linear-gradient(
    90deg,
    transparent 0%,
    #9841ff 50%,
    transparent 100%
  );

  /* text color */
  --text-white: hsla(0, 0%, 100%, 1);
  --text-gainsboro: hsla(0, 0%, 87%, 1);
  --text-champagne-pink: hsla(23, 61%, 86%, 1);
  --text-purple: hsla(267, 100%, 63%, 1);

  /* border color */
  --border-space-cadet: hsl(240, 45%, 17%);
  --border-purple-alpha-30: hsla(267, 100%, 63%, 0.3);

  /**
   * TYPOGRAPHY
   */

  /* font family */
  --fontFamily-oxanium: "Oxanium", cursive;
  --fontFamily-work-sans: "Work Sans", sans-serif;

  /* font size */
  --fontSize-1: 3.6rem;
  --fontSize-2: 2.4rem;
  --fontSize-3: 2rem;
  --fontSize-4: 1.7rem;
  --fontSize-5: 1.6rem;
  --fontSize-6: 1.5rem;
  --fontSize-7: 1.4rem;
  --fontSize-8: 1.2rem;

  /* font weight */
  --weight-regular: 400;
  --weight-semiBold: 600;
  --weight-bold: 700;

  /**
   * SPACING
   */

  --section-spacing: 60px;

  /**
   * BOX SHADOW
   */

  --shadow: 0px 2px 5px 0px hsla(0, 0%, 0%, 0.2);

  /**
   * BORDER RADIUS
   */

  --radius-circle: 50%;
  --radius-5: 5px;
  --radius-3: 3px;

  /**
   * CLIP PATH
   */

  --clip-path-1: polygon(0 0, 100% 0, 100% 0, 0 0);
  --clip-path-2: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  --clip-path-3: polygon(0% 0%, 90% 0, 100% 30%, 100% 100%, 0 100%);
  --clip-path-4: polygon(90% 0, 100% 40%, 100% 100%, 0 100%, 0 0);
  --clip-path-5: polygon(100% 0, 100% 100%, 10% 100%, 0 60%, 0 0);
  --clip-path-6: polygon(10% 0, 100% 0, 100% 100%, 0 100%, 0 40%);
  --clip-path-7: polygon(100% 0, 100% 60%, 90% 100%, 0 100%, 0 0);
  --clip-path-8: polygon(0% 0%, 70% 0, 100% 30%, 100% 100%, 0 100%);
  --clip-path-9: polygon(0 0, 90% 0, 100% 100%, 0% 100%);

  /**
   * TRANSITION
   */

  --transition-1: 250ms ease;
  --transition-2: 500ms ease;
  --cubic-out: cubic-bezier(0.05, 0.83, 0.52, 0.97);

  --card-height: 400px;
  --card-width: calc(var(--card-height) / 1.5);
}
* {
  box-sizing: border-box;
}

/*-----------------------------------*\
  #RESET
\*-----------------------------------*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

li {
  list-style: none;
}

a,
img,
time,
span,
input,
button,
textarea,
ion-icon {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  height: auto;
}

input,
button,
textarea {
  background: none;
  border: none;
  font: inherit;
}

input,
textarea {
  width: 100%;
}

button {
  cursor: pointer;
}

ion-icon {
  pointer-events: none;
}

address {
  font-style: normal;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  padding-top: 120px; /* 🔥 evita que el contenido suba debajo */

  background-color: rgba(0, 102, 255, 0.7); /* azul con opacidad */
  background-image: url("./assets/images/body-bg.jpg");
  background-repeat: repeat;
  background-blend-mode: multiply; /* o overlay, soft-light, etc */
  color: var(--text-gainsboro);
  font-family: var(--fontFamily-oxanium);
  font-size: var(--fontSize-4);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  overflow-x: hidden;
}


::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background-color: var(--bg-dark-purple);
}

::-webkit-scrollbar-thumb {
  background-color: var(--bg-purple);
}

/*-----------------------------------*\
  #REUSED STYLE
\*-----------------------------------*/

.container {
  padding-inline: 12px;
}

.has-before,
.has-after {
  position: relative;
  z-index: 1;
}

.has-before::before,
.has-after::after {
  content: "";
  position: absolute;
}

.title {
  color: var(--text-white);
}

.h1,
.h3 {
  line-height: 1.3;
}

.h1 {
  font-size: var(--fontSize-1);
  font-weight: var(--weight-semiBold);
}

.h2 {
  font-size: var(--fontSize-2);
  line-height: 1.4;
}

.h3 {
  font-size: var(--fontSize-3);
}

.section-title,
.section-subtitle,
.section-text {
  text-align: center;
}

.section-subtitle {
  color: var(--text-white);
  font-weight: var(--weight-semiBold);
  font-size: 30px;
  text-transform: uppercase;
}

.btn {
  position: relative;
  background-image: var(--gradient-1);
  color: var(--text-white);
  font-size: var(--fontSize-6);
  font-weight: var(--weight-semiBold);
  max-width: max-content;
  min-width: 180px;
  height: 50px;
  display: grid;
  place-items: center;
  padding-inline: 30px;
  clip-path: var(--clip-path-3);
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: var(--top, 50%);
  left: var(--left, 50%);
  width: 250%;
  padding-block-end: 250%;
  background-color: var(--bg-purple);
  transform: translate(-50%, -50%) scale(0);
  border-radius: var(--radius-circle);
  z-index: -1;
  transition: transform var(--transition-2);
}

.btn:is(:hover, :focus-visible)::before {
  transform: translate(-50%, -50%) scale(1);
}

.w-100 {
  width: 100%;
}

.section {
  padding-block: var(--section-spacing);
}

.section-title {
  margin-block: 10px;
  text-transform: uppercase;
}

.section-title .span {
  display: inline;
  color: var(--text-purple);
}

.section-text {
  margin-block-end: 40px;
  max-width: 480px;
  margin-inline: auto;
}

.social-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-holder {
  background-color: var(--bg-purple);
  aspect-ratio: var(--width) / var(--height);
  overflow: hidden;
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

[data-reveal] {
  opacity: 0;
  transition: var(--transition-2);
}

[data-reveal="left"] {
  transform: translateX(-20px);
}

[data-reveal="right"] {
  transform: translateX(20px);
}

[data-reveal="bottom"] {
  transform: translateY(20px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0);
}

/*-----------------------------------*\
  #HEADER
\*-----------------------------------*/

/*-----------------------------------*\
  #HEADER (FIX LAYERS)
\*-----------------------------------*/

.header {
  position: fixed;              /* 🔥 siempre fijo */
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-oxford-blue);
  padding: 10px 12px;
  z-index: 9999;                /* 🔥 PRIMERA CAPA ABSOLUTA */
}

.header.active {
  animation: slideUP 1s ease forwards;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.header .btn {
  display: none;
}



@keyframes slideUP {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-toggle-btn .line {
  height: 3px;
  width: 10px;
  margin-block: 4px;
  background-color: var(--text-gainsboro);
  border-radius: 8px;
  transition: var(--transition-1);
}

.nav-toggle-btn .line-2 {
  width: 20px;
}

.nav-toggle-btn .line-3 {
  margin-inline-start: auto;
}

.nav-toggle-btn.active .line-2 {
  transform: rotate(-45deg);
}

.nav-toggle-btn.active .line-1 {
  transform: rotate(45deg) translate(4px, 1.5px);
}

.nav-toggle-btn.active .line-3 {
  transform: rotate(45deg) translate(-3px, -1px);
}

.navbar {
  position: absolute;
  top: calc(100% - 1px);
  right: 12px;
  left: 12px;
  background-color: var(--bg-oxford-blue);
  padding: 0 15px;
  clip-path: var(--clip-path-1);
  visibility: hidden;
  transition: clip-path 500ms var(--cubic-out);
}

.navbar.active {
  clip-path: var(--clip-path-2);
  visibility: visible;
}

.navbar-link {
  padding: 12px 25px;
  text-transform: uppercase;
  font-size: var(--fontSize-4);
  font-weight: var(--weight-semiBold);
  color: var(--text-white);
}

.navbar-item {
  border-block-start: 1px solid var(--border-space-cadet);
}

.navbar-item:last-child {
  border-block-end: 1px solid var(--border-space-cadet);
}

/* Header icon buttons styling */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon-btn {
  position: relative;
  width: 45px;
  height: 45px;
  background: transparent;
  border: 2px solid var(--border-purple-alpha-30);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-size: 2rem;
  transition: var(--transition-1);
  overflow: hidden;
}

.icon-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background-color: var(--bg-purple);
  border-radius: var(--radius-circle);
  transform: translate(-50%, -50%);
  transition: var(--transition-2);
  z-index: -1;
}

.icon-btn:hover::before {
  width: 100%;
  height: 100%;
}

.icon-btn:hover {
  border-color: var(--bg-purple);
  color: var(--text-white);
  transform: translateY(-2px);
}

.icon-btn ion-icon {
  pointer-events: none;
  transition: var(--transition-1);
}

.icon-btn:hover ion-icon {
  transform: scale(1.1);
}

/* Specific button hover effects */
.wishlist-btn:hover {
  border-color: #ff4757;
}

.wishlist-btn:hover::before {
  background-color: #ff4757;
}

.profile-btn:hover {
  border-color: var(--bg-purple);
}

.cart-btn:hover {
  border-color: #2ed573;
}

.cart-btn:hover::before {
  background-color: #2ed573;
}

/*-----------------------------------*\
  #HERO
\*-----------------------------------*/

.hero {
  padding-block-start: 170px;
  text-align: center;
}

.hero .section-subtitle {
  letter-spacing: 5px;
}

.hero-title {
  margin-block: 20px 25px;
}

.hero .btn {
  margin-inline: auto;
}

.hero::before {
  background-image: var(--gradient-2);
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1;
}

.hero-banner {
  position: relative;
  margin-block-start: 50px;
}

.hero-banner-bg {
  display: none;
}

/*-----------------------------------*\
  #UPCOMING
\*-----------------------------------*/

.upcoming-item:not(:last-child) {
  margin-block-end: 90px;
}

.upcoming-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upcoming-card::before {
  top: 50%;
  background-image: var(--gradient-1);
  transform: translateY(-50%);
  width: 90%;
  height: 80px;
  z-index: -1;
  opacity: 0.3;
  border-radius: var(--radius-5);
}

.upcoming-card .card-title {
  text-transform: uppercase;
}

.upcoming-card .card-meta {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-image: var(--gradient-1);
  width: max-content;
  padding: 6px 20px;
  font-size: var(--fontSize-7);
  font-weight: var(--weight-semiBold);
  text-transform: uppercase;
  border-radius: var(--radius-3);
}

.upcoming-card .card-banner {
  width: 30%;
}

.upcoming-card.right .card-banner {
  order: 1;
}

.upcoming-time {
  margin-block: 50px 30px;
}

.upcoming-time :is(.time, .date) {
  text-align: center;
}

.upcoming-time .time {
  color: var(--text-white);
  font-size: var(--fontSize-1);
  font-weight: var(--weight-bold);
  line-height: 1;
}

.upcoming-time .date {
  font-size: var(--fontSize-7);
  font-weight: var(--weight-semiBold);
  margin-block: 5px;
}

.upcoming-item .social-wrapper {
  justify-content: center;
}

.upcoming-item .social-link {
  color: var(--text-white);
  font-size: 2.5rem;
  transition: var(--transition-1);
}

.upcoming-item .social-link:is(:hover, :focus-visible) {
  color: var(--text-purple);
}

/*-----------------------------------*\
  #NEWS
\*-----------------------------------*/

.upgame-list {
  display: grid;
  gap: 30px;
}

.upgame-card {
  background-color: var(--bg-oxford-blue-alpha-90);
  box-shadow: var(--shadow);
}

.upgame-card .card-content {
  position: relative;
  padding: 30px;
}

.card-tag {
  position: absolute;
  bottom: 100%;
  left: 0;
  background-image: var(--gradient-1);
  color: var(--text-white);
  font-size: var(--fontSize-8);
  font-weight: var(--weight-semiBold);
  text-transform: uppercase;
  height: 30px;
  line-height: 32px;
  padding-inline: 20px;
  clip-path: var(--clip-path-3);
}

.upgame-card :is(.card-meta-list, .card-meta-item) {
  display: flex;
  align-items: center;
}

.upgame-card .card-meta-list {
  flex-wrap: wrap;
  gap: 5px 10px;
}

.upgame-card .card-meta-item {
  gap: 5px;
}

.upgame-card .card-meta-item ion-icon {
  color: var(--text-purple);
}

.upgame-card .card-meta-text,
.upgame-card .link {
  color: var(--text-champagne-pink);
  font-size: var(--fontSize-7);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
}

.upgame-card .h3 {
  margin-block: 15px 10px;
}

.upgame-card .card-title {
  display: inline;
  background-image: linear-gradient(
    to left,
    var(--bg-purple),
    var(--bg-purple)
  );
  background-repeat: no-repeat;
  background-position: left bottom;
  background-size: 0% 4px;
  transition: var(--transition-2);
}

.upgame-card .card-title:is(:hover, :focus-visible) {
  background-size: 100% 4px;
}

.upgame-card .link {
  max-width: max-content;
  margin-block-start: 15px;
  padding-inline-start: 30px;
  transition: var(--transition-1);
}

.upgame-card .link::before {
  top: 50%;
  left: 0;
  transform: translateY(-100%);
  width: 20px;
  height: 4px;
  background-color: var(--bg-purple);
}

.upgame-card .link:is(:hover, :focus-visible) {
  color: var(--text-purple);
}

/* Card container and row styling for proper layout */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: center;
  margin-top: 50px;
  padding: 20px;
  width: 100%;
  max-width: 1500px; /* Increased from 1200px for better spread */
  margin-left: auto;
  margin-right: auto;
}

.card-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px; /* Increased gap for 360px cards */
  flex-wrap: nowrap; /* Keep all 4 cards in one row */
  max-width: 1450px; /* Wider row container */
  width: 100%;
  padding: 0 20px;
  /* Add padding for better spacing */
}

/* Update card styling to work better with the new layout */
.card {
  width: var(--card-width);
  height: var(--card-height);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 36px;
  perspective: 2500px;
  margin: 0 8px; /* Reduced margin since we use larger gaps */
  cursor: pointer;
  flex-shrink: 0;
  /* Prevent cards from shrinking */
}

.cover-image {
  width: 265px;
  height: 410px;
  object-fit: cover;
}

.wrapper {
  transition: all 0.5s;
  position: absolute;
  width: 100%;
  z-index: -1;
}

.card:hover .wrapper {
  transform: perspective(900px) translateY(-5%) rotateX(25deg) translateZ(0);
  box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  -webkit-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px 35px 32px -8px rgba(0, 0, 0, 0.75);
}

.wrapper::before,
.wrapper::after {
  content: "";
  opacity: 0;
  width: 100%;
  height: 80px;
  transition: all 0.5s;
  position: absolute;
  left: 0;
}

.wrapper::before {
  top: 0;
  height: 100%;
  background-image: linear-gradient(
    to top,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}

.wrapper::after {
  bottom: 0;
  opacity: 1;
  background-image: linear-gradient(
    to bottom,
    transparent 46%,
    rgba(12, 13, 19, 0.5) 68%,
    rgba(12, 13, 19) 97%
  );
}

.card:hover .wrapper::before,
.wrapper::after {
  opacity: 1;
}

.card:hover .wrapper::after {
  height: 120px;
}

.title {
  width: 100%;
  transition: transform 0.5s;
}

.card:hover .title {
  transform: translate3d(0%, -50px, 100px);
}

.character {
  height: 360px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character {
  opacity: 1;
  transform: translate3d(0%, -30%, 100px);
}

.car {
  height: 190px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .car {
  opacity: 1;
  transform: translate3d(0%, -80%, 100px);
}

.character-retro {
  height: 230px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character-retro {
  opacity: 1;
  transform: translate3d(0%, -30%, 100px);
}

.character-break {
  height: 95px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character-break {
  opacity: 1;
  transform: translate3d(0%, -100%, 100px);
}

.character-tower {
  height: 170px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character-tower {
  opacity: 1;
  transform: translate3d(0%, -30%, 100px);
}

.character-fruit {
  height: 280px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character-fruit {
  opacity: 1;
  transform: translate3d(0%, -2%, 100px);
}

.character-memory {
  height: 240px;
  opacity: 0;
  transition: all 0.5s;
  position: absolute;
  z-index: -1;
}

.card:hover .character-memory {
  opacity: 1;
  transform: translate3d(0%, -10%, 100px);
}

.retro-games-section .card {
  width: 250px !important;
  height: 250px !important;
}

.retro-games-section .wrapper {
  width: 250px;
  height: 250px;
}

.retro-games-section .cover-image {
  width: 250px;
  height: 250px;
}

/*-----------------------------------*\
  #FOOTER
\*-----------------------------------*/

.footer-top .container {
  display: grid;
  gap: 35px;
}

.footer-text {
  margin-block: 20px 25px;
}

.social-list {
  display: flex;
  gap: 10px;
}

.footer .social-link {
  width: 40px;
  height: 40px;
  background-color: var(--bg-purple-alpha-30);
  display: grid;
  place-items: center;
  clip-path: var(--clip-path-8);
  transition: var(--transition-1);
}

.footer .social-link:is(:hover, :focus-visible) {
  background-color: var(--bg-purple);
  transform: translateY(-2px);
}

.footer-list-title {
  font-size: var(--fontSize-3);
  font-weight: var(--weight-semiBold);
  line-height: 1;
  position: relative;
  padding-block-end: 10px;
  margin-block-end: 20px;
  max-width: max-content;
}

.footer-list-title::after {
  bottom: 0;
  left: 0;
  width: 50%;
  height: 4px;
  background-color: var(--bg-purple);
}

.footer-link {
  padding-block: 5px;
  color: var(--text-white);
  transition: var(--transition-1);
}

.footer-link:is(:hover, :focus-visible) {
  color: var(--text-purple);
}

.contact-item .span {
  color: var(--text-purple);
  font-size: var(--fontSize-7);
  text-transform: uppercase;
  font-weight: var(--weight-semiBold);
}

.contact-item:not(:last-child) {
  margin-block-end: 15px;
}

.input-field {
  background-color: var(--bg-oxford-blue-alpha-90);
  color: var(--text-white);
  font-size: var(--fontSize-5);
  padding: 18px 12px;
  box-shadow: var(--shadow);
  border: 2px solid var(--border-purple-alpha-30);
  margin-block-end: 15px;
  outline: none;
}

.input-field::placeholder {
  color: var(--text-white);
}

.footer-bottom {
  clip-path: var(--clip-path-9);
  background-color: var(--bg-oxford-blue-alpha-80);
}

.copyright {
  padding: 30px 20px;
}

/*-----------------------------------*\
  #BACK TO TOP
\*-----------------------------------*/

.back-top-btn {
  position: fixed;
  bottom: 10px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-image: var(--gradient-1);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  clip-path: var(--clip-path-8);
  opacity: 0;
  transition: var(--transition-1);
  z-index: 4;
}

.back-top-btn.active {
  opacity: 1;
  transform: translateY(-20px);
}

/*-----------------------------------*\
  #CUSTOM CURSOR
\*-----------------------------------*/

.cursor {
  display: none;
}

/*-----------------------------------*\
#MEDIA QUERIES
\*-----------------------------------*/

/* Additional responsive styles for card layout */
/* Enhanced responsive design for 360px cards */
@media (max-width: 1500px) {
  .card-container {
    max-width: 1300px;
    padding: 20px 15px;
  }

  .card-row {
    gap: 25px;
    max-width: 1300px;
  }
}

@media (max-width: 1200px) {
  .card-row {
    gap: 20px;
    max-width: 1100px;
  }

  .card {
    width: calc(var(--card-width) * 0.95);
    height: calc(var(--card-height) * 0.95);
  }
}

@media (max-width: 1000px) {
  .card-row {
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }

  .card {
    width: calc(var(--card-width) * 0.9);
    height: calc(var(--card-height) * 0.9);
  }
}

/**
 * responsive for large than 575px screen
 */
@media (min-width: 575px) {
  /**
   * REUSED STYLE
   */
  .container {
    max-width: 540px;
    width: 100%;
    margin-inline: auto;
  }

  /**
   * HEADER
   */
  .header .logo img {
    width: 100px;
  }

  /**
   * UPCOMING
   */
  .upcoming-card.left .card-meta {
    left: auto;
    right: -15%;
  }

  .upcoming-card.right .card-meta {
    left: 25%;
  }

  /**
   * FOOTER
   */
  .footer-top .container {
    grid-template-columns: 1fr 1fr;
  }
}

/**
 * responsive for large than 768px screen
 */
@media (min-width: 768px) {
  /**
   * CUSTOM PROPERTY
   */
  :root {
    /**
     * TYPOGRAPHY
     */
    /* font size */
    --fontSize-1: 6.5rem;
    --fontSize-2: 3.2rem;
  }

  /**
   * REUSED STYLE
   */
  .container {
    max-width: 720px;
  }

  .h1 {
    line-height: 1;
  }

  /**
   * HERO
   */
  .hero .section-subtitle {
    letter-spacing: 10px;
  }

  .hero-banner-bg {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    transform: scale(1.3);
    transform-origin: bottom;
    z-index: -1;
  }

  /**
   * UPCOMING
   */
  .upcoming-card::before {
    height: 110px;
  }

  .upcoming-card .card-meta {
    padding-block: 12px;
    bottom: 20px;
  }

  .upcoming-card .card-title {
    --fontSize-3: 2.8rem;
  }

  .upcoming-card.left .card-meta {
    right: -10%;
  }

  .upcoming-card.right .card-meta {
    left: 20%;
  }

  .upcoming-time .time {
    --fontSize-1: 5rem;
  }

  /**
   * NEWS
   */
  .upgame-list {
    grid-template-columns: 1fr 1fr;
  }

  /**
   * CUSTOM CURSOR
   */
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    background-color: var(--bg-purple);
    border-radius: var(--radius-circle);
    transform: translate(-50%, -50%);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    transition: var(--transition-1);
    transition-property: opacity, transform;
  }

  body:hover .cursor {
    opacity: 0.5;
  }

  body .cursor.hovered {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.75;
  }
}

/**
 * responsive for large than 992px screen
 */
@media (min-width: 992px) {
  /**
   * CUSTOM PROPERTY
   */
  :root {
    /**
     * TYPOGRAPHY
     */
    /* font size */
    --fontSize-2: 4.5rem;

    /**
     * SPACING
     */
    --section-spacing: 100px;
  }

  /**
   * REUSED STYLE
   */
  .container {
    max-width: 960px;
  }

  .h2 {
    line-height: 1.1;
  }

  /**
   * HEADER
   */
  .nav-toggle-btn {
  display: none;
}

.navbar,
.navbar.active {
  all: unset;
  display: block;
}

.navbar-item,
.navbar-item:last-child {
  border: none;
}

.navbar-list {
  display: flex;
}

.header .btn {
  display: grid;
  text-align: center;
}


  /**
   * HERO
   */
  .hero-banner-bg {
    transform: scale(1.2);
  }

  /**
   * UPCOMING
   */
  .upcoming-item {
    display: grid;
    grid-template-columns: 1fr 0.5fr 1fr;
    align-items: center;
  }

  .upcoming-time {
    margin-block: 0;
  }

  .upcoming-card .card-meta {
    left: 50%;
    bottom: -30px;
    transform: translateX(-50%);
  }

  .upcoming-card.right .card-meta {
    left: 50%;
  }

  /**
   * NEWS
   */
  .upgame-list {
    grid-template-columns: repeat(3, 1fr);
  }

  /**
   * FOOTER
   */
  .footer-top .container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/**
 * responsive for large than 1200px screen
 */
@media (min-width: 1200px) {
  /**
   * REUSED STYLE
   */
  .container {
    max-width: 1140px;
  }

  .section-text {
    margin-block-end: 60px;
  }

  /**
   * HERO
   */
  .hero {
    padding-block-start: 250px;
  }

  .hero-banner-bg {
    transform: scale(1.2);
  }

  .hero-banner .w-100 {
    max-width: max-content;
    margin-inline: auto;
  }

  /**
   * UPCOMING
   */
  .upcoming-card .card-banner {
    max-height: 180px;
    width: auto;
  }

  .upcoming-card .card-meta {
    bottom: 0;
  }

  .upcoming-card.right .card-meta {
    left: 35%;
  }

  .upcoming-time .time {
    --fontSize-1: 6.2rem;
  }

  /**
   * FOOTER
   */
  .footer-top .container {
    grid-template-columns: 1fr 0.5fr 0.5fr 1fr;
  }

  .footer .logo img {
    width: 225px;
  }
}
/* Contenedor del efecto SOLO EN HERO */
.container {
  position: relative;
}

/* Área de destellos */
.star-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 320px; /* controla el área del hero */
  pointer-events: none;
  overflow: hidden;
}

/* Destello real */
.sparkle {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #ffffff 0%, #ffd6ff 30%, rgba(255,182,255,.1) 70%);
  opacity: 0;
  transform: scale(0.3) rotate(45deg);
  filter: blur(.4px);
  transition: opacity .3s ease, transform .5s ease;
}

.sparkle::before,
.sparkle::after {
  content: "";
  position: absolute;
  background: linear-gradient(90deg, transparent, white, transparent);
  width: 28px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: .9;
}

.sparkle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.sparkle.show {
  opacity: 1;
  transform: scale(2.2) rotate(45deg);
}

/* Texto kawaii */
.sparkle-text {
  position: absolute;
  color: #ffb3ec;
  font-family: "Baloo 2", cursive;
  font-size: 22px;
  text-shadow: 0 0 8px rgba(255, 170, 255, .9);
  opacity: 0;
  transition: opacity .7s ease;
}

.sparkle-text.show {
  opacity: 1;
}

/* Sección limpia */
.manga-real {
  padding: 120px 0;
}

/* Título */
.manga-real-title {
  text-align: center;
  font-family: 'Baloo 2', cursive;
  margin-bottom: 40px;
}

/* Libro */
.manga-book {
  position: relative;
  width: 360px;
  height: 480px;
  margin: 0 auto;
  perspective: 1200px;
}

/* Página */
.manga-page {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border: 1px solid #000;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: rotateY(180deg);
  transform-origin: left;
  transition: transform 1s ease, opacity .5s ease;
}

/* Página visible */
.manga-page.active {
  opacity: 1;
  transform: rotateY(0deg);
  z-index: 2;
}

/* Imagen estilo manga */
.manga-page img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  filter: grayscale(100%) contrast(120%);
  border: 1px solid #000;
}

/* Texto tipo manga */
.manga-page p {
  font-family: "Baloo 2", cursive;
  font-size: 18px;
  color: #000;
  margin-top: 12px;
  line-height: 1.4;
}
.hero-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-banner-bg {
  width: 100%;
  display: block;
}

.hero-img {
  position: absolute;
  width: 700px;        /* tamaño del ícono */
  height: auto;
  z-index: 2;
}

/* Mantiene EXACTAMENTE el tamaño original en desktop */
@media (min-width: 700px) {
  .hero-banner img {
    width: auto;
  }
}

/* Ajuste suave SOLO si la pantalla es menor */
@media (max-width: 768px) {
  .hero-banner img {
    width: 100%;
  }
}

.manga-onomatopeyas {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 15;
}

/* Estilo base */
.manga-onomatopeyas span {
  position: absolute;
  font-family: 'Comic Neue', 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #000;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  padding: 10px 14px;
  box-shadow: 4px 4px 0 #000;
  opacity: 0;
  animation: floatSFX 6s infinite ease-in-out;
}

/* POSICIONES (como estrellitas) */
.manga-onomatopeyas span:nth-child(1) {
  left: 15%;
  top: 30%;
}

.manga-onomatopeyas span:nth-child(2) {
  right: 18%;
  top: 45%;
}

/* SEGUNDA PAREJA */
.manga-onomatopeyas span:nth-child(3) {
  left: 25%;
  top: 60%;
  animation-delay: 3s;
}

.manga-onomatopeyas span:nth-child(4) {
  right: 22%;
  top: 25%;
  animation-delay: 3s;
}

/* Animación tipo estrellita */
@keyframes floatSFX {
  0% {
    transform: scale(0.5) translateY(10px);
    opacity: 0;
  }
  15% {
    transform: scale(1.1) translateY(0);
    opacity: 1;
  }
  40% {
    transform: scale(1) translateY(-10px);
    opacity: 1;
  }
  60% {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  100% {
    opacity: 0;
  }
}
/* ===== CONTENEDOR DEL PRODUCTO ===== */
.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

/* ===== CARD ===== */
.card {
  position: relative;
  margin-bottom: 60px; /* 🔥 REDUCIDO: elimina el hueco negro */
}

/* ===== INFO DEL PRODUCTO ===== */
.product-info {
  position: relative;
  z-index: 5;
  margin-top: 0; /* 🔥 pegado a la card */
  text-align: center;
  max-width: 280px;
  padding: 0 10px;
}

/* ===== TEXTO ===== */
.product-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
}

.product-description {
  font-size: 1rem;
  color: var(--text-gainsboro);
  margin: 6px 0;
  line-height: 1.45;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: #4fd1ff;
  margin-bottom: 10px;
}

/* ===== BOTÓN WHATSAPP ===== */
.buy-btn {
  display: inline-block;
  padding: 10px 22px;
  background: linear-gradient(135deg, #25D366, #1ebe5d);
  color: #fff;
  border-radius: 22px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.buy-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.6);
}

/* ===== FILAS DE CARTAS ===== */
.card-row {
  row-gap: 100px; /* 🔥 reduce separación vertical real */
}
.redes-sociales {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

.red-social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icono-social {
  width: 26px;
  height: 26px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.red-social:hover .icono-social {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .icono-social {
    width: 22px;
    height: 22px;
  }
}

/* ===== ZONA INFLUENCER ===== */
.influencer-zone {
  padding: 80px 6%;
}

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 50px;
  color: #fff;
}

/* GRID PRINCIPAL */
.influencer-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1fr; /* centro MÁS GRANDE */
  gap: 40px;
  align-items: center;
}

/* ITEMS */
.influencer-item {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
}

/* ===== VIDEOS ===== */
.video-box video {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 14px;
}

/* ===== FACEBOOK ===== */
.facebook-box {
  height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-container {
  width: 100%;
  height: 100%;
  overflow-y: auto; /* 🔥 scroll activo */
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .influencer-grid {
    grid-template-columns: 1fr;
  }

  .video-box video,
  .facebook-box {
    height: 680px;
  }
}
/* ===== FOOTER LOGO ===== */
.footer-brand {
  display: flex;
  align-items: center;
}

.footer-brand .logo img {
  max-width: 180px;   /* tamaño máximo */
  width: 100%;        /* se adapta */
  height: auto;       /* mantiene proporción */
  display: block;
}

/* Tablets */
@media (max-width: 768px) {
  .footer-brand .logo img {
    max-width: 150px;
  }
}

/* Móviles */
@media (max-width: 480px) {
  .footer-brand {
    justify-content: center;
  }

  .footer-brand .logo img {
    max-width: 120px;
  }
}

/* ===== SEARCH BAR ===== */
.search-bar {
  position: fixed;
  top: 80px; /* debajo del header */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 420px;
  display: none;
  z-index: 9999;
}

.search-bar.active {
  display: block;
}

/* INPUT */
.search-bar input {
  width: 100%;
  padding: 12px 42px 12px 16px; /* espacio para la ❌ */
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 1rem;
  background: #111;
  color: #fff;
  box-shadow: 0 0 20px rgba(0,0,0,.4);
}

/* BOTÓN CERRAR ❌ */
.search-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.search-close:hover {
  opacity: 0.7;
}

/* Icon buttons */
.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  color: #fff;
}

/* ===== BUSCADOR ===== */
.product-item.hidden {
  display: none !important;
}
/* ===== BOTÓN LUPA PNG ===== */
.search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(255, 255, 255);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 
    transform 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

/* IMAGEN PNG */
.search-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(1) drop-shadow(0 0 4px rgb(255, 255, 255));
  transition: transform 0.25s ease;
}

/* HOVER */
.search-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.12);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
}

.search-btn:hover .search-icon-img {
  transform: rotate(-8deg) scale(1.1);
}

/* CLICK */
.search-btn:active {
  transform: scale(0.95);
}
.responsive-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}