/* === Nueva gama de fondo con más variaciones === */
body {
  background: linear-gradient(-45deg, #e48ff3, #acbcfd, #ffb2d8, #a9effb, #fdc989);
  background-size: 600% 600%;
  animation: gradientBG 20s ease infinite;
}

.h1 {
  margin: 5px 0 5px 0;
  font-size: 2.5rem;
}
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 0;
  scroll-snap-type: x mandatory;
}
.card {
  width: 240px !important;
  height: 350px;
  perspective: 1000px;
  scroll-snap-align: center;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.4s;
  background: transparent !important;
  box-shadow: 0 10px 20px rgb(237, 103, 255);
  position: relative;
  cursor: pointer;
}
.card:hover {
  transform: scale(1.05) rotateY(5deg);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.5), transparent);
  mix-blend-mode: screen;
  transition: all 0.5s;
}
.card:hover::before {
  background: radial-gradient(circle at 70% 70%, rgba(255,255,255,0.6), transparent);
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: transparent !important;
  border-radius: 8px;
  transform: scale(1.04) !important;
}

footer {
  margin-top: 150px;
  padding: 20px;
  background: linear-gradient(135deg, #5a5280 0%, #443d68 100%);
  color: #fff;
  font-weight: bold;
  position: relative;
  text-align: center;
  width: 100%;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
  margin-bottom: 0;
  padding-bottom: 50px;
  overflow: visible !important;
  left: 0;
  transform: none;
}

@font-face {
  font-family: 'CenturyGothicBold';
  src: url('./fonts/centurygothic_bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/*h5 texto del footer */
h5 {
  font-family: 'CenturyGothicBold', sans-serif;
  margin-top: 5px;       /* Ajusta según el espacio que necesites */
  line-height: 1.6;
  margin-inline-end: auto;
  letter-spacing: 0.5px;
  text-align: center;
}

/* Efecto divisor decorativo */
footer::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #f2264f 0%, #6171fb 50%, #79d4f3 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
  z-index: 1;
  pointer-events: none;
  opacity: 0.98;
}

footer::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(90deg, #f2264f 0%, #6171fb 50%, #79d4f3 100%);
  box-shadow: 0 -6px 14px rgba(0, 0, 0, 0.12);
  z-index: 1;
  pointer-events: none;
  opacity: 0.98;
}


@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Animaciones */
@keyframes pulseIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes countIncrement {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

a:-webkit-any-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  text-align: justify;
}

.carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card.selected {
  border: 4px solid #bafcff;
  transform: scale(1.1);
  z-index: 1;
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* === Efectos únicos por tarjeta === */
.card:nth-child(1):hover { transform: rotateZ(2deg) scale(1.05); box-shadow: 0 0 30px #ffea00;}
.card:nth-child(2):hover { transform: rotateZ(2deg) scale(1.05); box-shadow: 0 0 30px #99ff0a;}
.card:nth-child(3):hover { transform: scale(1.15) rotateY(10deg); box-shadow: 0 0 30px #18ff4a; }
.card:nth-child(4):hover { box-shadow: 0 0 25px #77ffeb; }
.card:nth-child(5):hover { filter: brightness(1.2);box-shadow: 0 0 30px #ff551ca1}
.card:nth-child(6):hover { transform: rotate(-3deg) scale(1.08); box-shadow: 0 0 30px #a885ff; }
.card:nth-child(7):hover { filter: contrast(1.3); box-shadow: 0 0 30px #66e3ff; }
.card:nth-child(8):hover { transform: scale(1.1) skewX(3deg); box-shadow: 0 0 30px #e2762ef9; }
.card:nth-child(9):hover { box-shadow: 0 0 30px #ff2222; }
.card:nth-child(10):hover { filter: contrast(1.3); box-shadow: 0 0 30px #ffd165; }
.card:nth-child(11):hover { transform: rotateZ(-5deg) scale(1.1); }

/* === Redes sociales con íconos mejorados === */
.social {
  margin-top: 50px;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.social a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #e591ff, #ff76aa, #ffc874);
  padding: 12px 25px;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(255, 73, 255, 0.477);
  position: relative;
  overflow: hidden;
  border: 2px linear-gradient(135deg, #7ab3fd, #ff70b1, #ff4d4d);
}

.social a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.692), transparent);
  transition: 0.5s;
}

.social a:hover {
  background: linear-gradient(135deg, #ff80ce, #ff87bd);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgb(255, 64, 64);
  color: #fff;
}

.social a:hover::before {
  left: 100%;
}

.social img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.54));
}

.social a:hover img {
  transform: scale(1.2) rotate(10deg);
}

/* Animaciones específicas para cada red social */
.social a:nth-child(1) { /*whatsapp */
  background: linear-gradient(135deg, #06e44c, #14d166, #70ea93);
  box-shadow: 0 4px 15px rgba(59, 152, 70, 0.433);
}
.social a:nth-child(1):hover {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 8px 25px rgba(59, 152, 70, 0.522);
}
.social a:nth-child(2) { /* Facebook */
  background: linear-gradient(135deg, #3b5998, #368bfa, #78b2fe);
  box-shadow: 0 4px 15px rgba(59, 88, 152, 0.437);
}
.social a:nth-child(2):hover {
  background: linear-gradient(135deg, #1877f2, #3b5998);
  box-shadow: 0 8px 25px rgba(63, 99, 178, 0.59);
}
.social a:nth-child(3) { /* Instagram */
  background: linear-gradient(135deg, #ba52ff, #ff59cd, #ffcb51, #ff5f52, #8352ff);
  background-size: 200% 200%;
  box-shadow: 0 4px 15px rgba(137, 43, 200, 0.493);
  animation: instagramGradient 8s ease infinite;
}
.social a:nth-child(3):hover {
  background: linear-gradient(135deg, #db78ff, #ff8ddb, #ffcc80, #fd8f83, #b88fff);
  box-shadow: 0 8px 25px rgba(59, 89, 152, 0.4);
}

.social a:nth-child(4) { /* YouTube */
  background: linear-gradient(135deg, #ff5959, #c72c2c);
  box-shadow: 0 4px 15px rgba(167, 11, 11, 0.601);
}
.social a:nth-child(4):hover {
  background: linear-gradient(135deg, #cc0000, #ff0000);
  box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}
.social a:nth-child(5) { /* Pinterest */
  background: linear-gradient(135deg, #f40156, #bb002f, #fb2e5a);
  box-shadow: 0 4px 15px rgba(170, 13, 60, 0.597);
}
.social a:nth-child(5):hover {
  background: linear-gradient(135deg, #ff2a6e, #ff1d46, #b9033d);
  box-shadow: 0 8px 25px rgba(229, 17, 102, 0.641);
}
.social a:nth-child(6) { /* Mail */
  background: linear-gradient(135deg, #00eeff, #56a5f0, #88dbff);
  box-shadow: 0 4px 15px rgba(0, 139, 177, 0.693);
}
.social a:nth-child(6):hover {
  background: linear-gradient(135deg, #4298bb, #64d3ff);
  box-shadow: 0 8px 25px rgba(0, 106, 177, 0.4);
}
.social a:nth-child(7) { /* Google Maps */
  background: linear-gradient(135deg, #4285f4, #2eab4f, #fbbc05, #ea4335);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.381);
}
.social a:nth-child(7):hover {
  background: linear-gradient(135deg, #34a853, #fbbc05, #f76255, #538ae3);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.332);
}

@keyframes instagramGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Efecto de onda al hacer clic */
.social a:active {
  animation: clickWave 0.4s ease-out;
}

@keyframes clickWave {
  0% { transform: translateY(-5px) scale(1.05); }
  50% { transform: translateY(0) scale(0.95); }
  100% { transform: translateY(-5px) scale(1.05); }
}

/* === MEJORAS PARA CELULARES - CARRUSEL === */
@media (max-width: 768px) {
  .carousel-container {
    width: 100%;
    padding: 0 5px !important;
    margin: 0 auto 20px !important;
    overflow: visible !important;
  }
  
  .carousel {
    display: flex;
    gap: 12px;
    padding: 12px 5px;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
  }
  
  /* OCULTAR SCROLLBAR EN MÓVILES */
  .carousel::-webkit-scrollbar {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
  }
  
  .card {
    min-width: 145px !important;
    max-width: 145px !important;
    height: 200px !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    scroll-snap-align: start;
    touch-action: pan-y;
  }
  
  /* Eliminar efectos hover que bloquean en móviles */
  .card:hover {
    transform: none !important;
  }
  
  .card:before,
  .card:after {
    display: none !important;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .carousel {
    gap: 10px;
    padding: 10px 5px;
  }
  
  .card {
    min-width: 135px !important;
    max-width: 135px !important;
    height: 190px !important;
  }
}

/* === Animaciones al cargar las cartas === */
.card {
  opacity: 0;
  transform: scale(0.8);
  animation: fadeInCard 0.6s ease-out forwards;
}
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }
.card:nth-child(10) { animation-delay: 1.0s; }
.card:nth-child(11) { animation-delay: 1.1s; }

@keyframes fadeInCard {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* === Diseño responsivo === */
@media (max-width: 780px) {
  .carousel {
    gap: 10px;
    padding: 10px;
  }
  .card {
    min-width: 180px;
    height: 250px;
  }
  .social a {
    font-size: 1rem;
    padding: 8px 10px;
  }
  .social img {
    width: 20px;
    height: 20px;
  }
}


/* === HOLO EFFECT STYLES === */
:root {
  --color1: rgb(0, 231, 255);
  --color2: rgb(255, 0, 231);
  --back: url(https://cdn2.bulbagarden.net/upload/1/17/Cardback.jpg);
  --charizard1: #fac;
  --charizard2: #ddccaa;
  --charizardfront: url(https://assets.codepen.io/13471/charizard-gx.webp);
  --pika1: #33fdf3;
  --pika2: #ffe551;
  --pikafront: url(https://assets.codepen.io/13471/pikachu-gx.webp);
  --eevee1: #efb2fb;
  --eevee2: #acc6f8;
  --eeveefront: url(https://assets.codepen.io/13471/eevee-gx.webp);
  --mewtwo1: #efb2fb;
  --mewtwo2: #acc6f8;
  --mewtwofront: url(https://assets.codepen.io/13471/mewtwo-gx.webp);
}

.card {
  width: 71.5vw;
  height: 100vw;
  position: relative;
  overflow: hidden;
  margin: 15px;
  overflow: hidden;
  z-index: 10;
  touch-action: none;
  isolation: isolate;
  border-radius: 5%/3.5%;
  box-shadow: -5px -5px 5px -5px var(--color1), 5px 5px 5px -5px var(--color2), -7px -7px 10px -5px transparent, 7px 7px 10px -5px transparent, 0 0 5px 0px rgba(255, 255, 255, 0), 0 55px 35px -20px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease, box-shadow 0.2s ease;
  will-change: transform, filter;
  background-color: #12040d;
  background-image: var(--front);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  transform-origin: center;
}
@media screen and (min-width: 600px) {
  .card {
    width: clamp(12.9vw, 61vh, 18vw);
    height: clamp(18vw, 85vh, 25.2vw);
  }
}

.card:hover {
  box-shadow: -20px -20px 30px -25px var(--color1), 20px 20px 30px -25px var(--color2), -7px -7px 10px -5px var(--color1), 7px 7px 10px -5px var(--color2), 0 0 13px 4px rgba(255, 255, 255, 0.3), 0 55px 35px -20px rgba(0, 0, 0, 0.5);
}

.card.charizard {
  --color1: var(--charizard1);
  --color2: var(--charizard2);
  --front: var(--charizardfront);
}

.card.pika {
  --color1: var(--pika1);
  --color2: var(--pika2);
  --front: var(--pikafront);
}

.card.mewtwo {
  --color1: var(--mewtwo1);
  --color2: var(--mewtwo2);
  --front: var(--mewtwofront);
}

.card.eevee {
  --color1: #ec9bb6;
  --color2: #ccac6f;
  --color3: #e46969;
  --color4: #8ec5d6;
  --color5: #b98cce;
  --front: var(--eeveefront);
}

.card:before,
.card:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  background-repeat: no-repeat;
  opacity: 0.5;
  mix-blend-mode: color-dodge;
  transition: all 0.33s ease;
}

.card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  opacity: 0.5;
  mix-blend-mode: color-dodge;
  transition: all 0.33s ease;
  background-position: 50% 50%;
  background-size: 150% 150%; /* Reducido de 300% para mejor cobertura */
  background-image: linear-gradient(
    115deg, 
    transparent 0%, 
    var(--color1) 25%, 
    transparent 47%, 
    transparent 53%, 
    var(--color2) 75%, 
    transparent 100%
  );
  filter: brightness(0.6) contrast(1.2); /* Ajustado */
  z-index: 1;
  border-radius: inherit; /* Hereda el border-radius de la tarjeta */
}

/* Versión móvil del gradiente */
@media (max-width: 768px) {
  .card:before {
    background-size: 120% 120%; /* Más pequeño para móviles */
    opacity: 0.4; /* Más transparente */
    background-image: linear-gradient(
      115deg,
      transparent 10%,
      var(--color1) 30%,
      transparent 50%,
      transparent 60%,
      var(--color2) 80%,
      transparent 100%
    );
  }
}

.card:after {
  opacity: 1;
  background-image: url("https://assets.codepen.io/13471/sparkles.gif"), url(https://assets.codepen.io/13471/holo.png), linear-gradient(125deg, #ff008450 15%, #fca40040 30%, #ffff0030 40%, #00ff8a20 60%, #00cfff40 70%, #cc4cfa50 85%);
  background-position: 50% 50%;
  background-size: 160%;
  background-blend-mode: overlay;
  z-index: 2;
  filter: brightness(1) contrast(1);
  transition: all 0.33s ease;
  mix-blend-mode: color-dodge;
  opacity: 0.75;
}

.card.active:after,
.card:hover:after {
  filter: brightness(1) contrast(1);
  opacity: 1;
}

.card.active,
.card:hover {
  -webkit-animation: none;
          animation: none;
  transition: box-shadow 0.1s ease-out;
}

.card.active:before,
.card:hover:before {
  -webkit-animation: none;
          animation: none;
  background-image: linear-gradient(110deg, transparent 25%, var(--color1) 48%, var(--color2) 52%, transparent 75%);
  background-position: 50% 50%;
  background-size: 250% 250%;
  opacity: 0.88;
  filter: brightness(0.66) contrast(1.33);
  transition: none;
}

.card.active:before,
.card:hover:before,
.card.active:after,
.card:hover:after {
  -webkit-animation: none;
          animation: none;
  transition: none;
}

.card.animated {
  transition: none;
  -webkit-animation: holoCard 12s ease 0s 1;
          animation: holoCard 12s ease 0s 1;
}
.card.animated:before {
  transition: none;
  -webkit-animation: holoGradient 12s ease 0s 1;
          animation: holoGradient 12s ease 0s 1;
}
.card.animated:after {
  transition: none;
  -webkit-animation: holoSparkle 12s ease 0s 1;
          animation: holoSparkle 12s ease 0s 1;
}

@-webkit-keyframes holoSparkle {
  0%, 100% {
    opacity: 0.75;
    background-position: 50% 50%;
    filter: brightness(1.2) contrast(1.25);
  }
  5%, 8% {
    opacity: 1;
    background-position: 40% 40%;
    filter: brightness(0.8) contrast(1.2);
  }
  13%, 16% {
    opacity: 0.5;
    background-position: 50% 50%;
    filter: brightness(1.2) contrast(0.8);
  }
  35%, 38% {
    opacity: 1;
    background-position: 60% 60%;
    filter: brightness(1) contrast(1);
  }
  55% {
    opacity: 0.33;
    background-position: 45% 45%;
    filter: brightness(1.2) contrast(1.25);
  }
}

@keyframes holoSparkle {
  0%, 100% {
    opacity: 0.75;
    background-position: 50% 50%;
    filter: brightness(1.2) contrast(1.25);
  }
  5%, 8% {
    opacity: 1;
    background-position: 40% 40%;
    filter: brightness(0.8) contrast(1.2);
  }
  13%, 16% {
    opacity: 0.5;
    background-position: 50% 50%;
    filter: brightness(1.2) contrast(0.8);
  }
  35%, 38% {
    opacity: 1;
    background-position: 60% 60%;
    filter: brightness(1) contrast(1);
  }
  55% {
    opacity: 0.33;
    background-position: 45% 45%;
    filter: brightness(1.2) contrast(1.25);
  }
}
@-webkit-keyframes holoGradient {
  0%, 100% {
    opacity: 0.5;
    background-position: 50% 50%;
    filter: brightness(0.5) contrast(1);
  }
  5%, 9% {
    background-position: 100% 100%;
    opacity: 1;
    filter: brightness(0.75) contrast(1.25);
  }
  13%, 17% {
    background-position: 0% 0%;
    opacity: 0.88;
  }
  35%, 39% {
    background-position: 100% 100%;
    opacity: 1;
    filter: brightness(0.5) contrast(1);
  }
  55% {
    background-position: 0% 0%;
    opacity: 1;
    filter: brightness(0.75) contrast(1.25);
  }
}
@keyframes holoGradient {
  0%, 100% {
    opacity: 0.5;
    background-position: 50% 50%;
    filter: brightness(0.5) contrast(1);
  }
  5%, 9% {
    background-position: 100% 100%;
    opacity: 1;
    filter: brightness(0.75) contrast(1.25);
  }
  13%, 17% {
    background-position: 0% 0%;
    opacity: 0.88;
  }
  35%, 39% {
    background-position: 100% 100%;
    opacity: 1;
    filter: brightness(0.5) contrast(1);
  }
  55% {
    background-position: 0% 0%;
    opacity: 1;
    filter: brightness(0.75) contrast(1.25);
  }
}
@-webkit-keyframes holoCard {
  0%, 100% {
    transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
  }
  5%, 8% {
    transform: rotateZ(0deg) rotateX(6deg) rotateY(-20deg);
  }
  13%, 16% {
    transform: rotateZ(0deg) rotateX(-9deg) rotateY(32deg);
  }
  35%, 38% {
    transform: rotateZ(3deg) rotateX(12deg) rotateY(20deg);
  }
  55% {
    transform: rotateZ(-3deg) rotateX(-12deg) rotateY(-27deg);
  }
}
@keyframes holoCard {
  0%, 100% {
    transform: rotateZ(0deg) rotateX(0deg) rotateY(0deg);
  }
  5%, 8% {
    transform: rotateZ(0deg) rotateX(6deg) rotateY(-20deg);
  }
  13%, 16% {
    transform: rotateZ(0deg) rotateX(-9deg) rotateY(32deg);
  }
  35%, 38% {
    transform: rotateZ(3deg) rotateX(12deg) rotateY(20deg);
  }
  55% {
    transform: rotateZ(-3deg) rotateX(-12deg) rotateY(-27deg);
  }
}
.card.eevee:hover {
  box-shadow: 0 0 30px -5px white, 0 0 10px -2px white, 0 55px 35px -20px rgba(0, 0, 0, 0.5);
}

.card.eevee:hover:before,
.card.eevee.active:before {
  background-image: linear-gradient(115deg, transparent 20%, var(--color1) 36%, var(--color2) 43%, var(--color3) 50%, var(--color4) 57%, var(--color5) 64%, transparent 80%);
}

.cards .three-d-wrapper {
  perspective: 750px;
  isolation: isolate;
  transform: translate3d(0.1px, 0.1px, 0.1px);
}

.demo .card {
  background-image: var(--back);
  font-size: 2vh;
}

.demo .card > span {
  position: relative;
  top: 45%;
}

.demo .card:nth-of-type(1),
.demo .card:nth-of-type(2),
.demo .card:nth-of-type(3) {
  width: 20vh;
  height: 27.5vh;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4), 0 25px 15px -10px rgba(0, 0, 0, 0.5);
  -webkit-animation: none;
          animation: none;
}

.demo .card:nth-of-type(1):before, .demo .card:nth-of-type(1):after,
.demo .card:nth-of-type(2):before,
.demo .card:nth-of-type(2):after,
.demo .card:nth-of-type(3):before,
.demo .card:nth-of-type(3):after {
  -webkit-animation: none;
          animation: none;
}

.demo .card:nth-of-type(1):before, .demo .card:nth-of-type(1):after {
  display: none;
}

.demo .card:nth-of-type(2) {
  background: none;
}
.demo .card:nth-of-type(2):before {
  display: none;
}

.demo .card:nth-of-type(3) {
  background: none;
}
.demo .card:nth-of-type(3):after {
  display: none;
}

.operator {
  display: inline-block;
  vertical-align: middle;
  font-size: 6vh;
}

body {
  color: rgb(0, 0, 0);
  font-family: "Heebo", sans-serif;
  text-align: center;
}

p {
  margin-top: 5px;
  font-weight: 200;
}

#app {
  position: relative;
}

.demo,
.cards {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  z-index: 1;
}

.demo {
  flex-direction: row;
  justify-content: center;
}

@media screen and (min-width: 600px) {
  .cards {
    flex-direction: row;
  }
}
.cards .card:nth-child(2), .cards .card:nth-child(2):before, .cards .card:nth-child(2):after {
  -webkit-animation-delay: 0.25s;
          animation-delay: 0.25s;
}
.cards .card:nth-child(3), .cards .card:nth-child(3):before, .cards .card:nth-child(3):after {
  -webkit-animation-delay: 0.5s;
          animation-delay: 0.5s;
}
.cards .card:nth-child(4), .cards .card:nth-child(4):before, .cards .card:nth-child(4):after {
  -webkit-animation-delay: 0.75s;
          animation-delay: 0.75s;
}

.promo {
  margin-top: 50px;
}

.promo img {
  margin-top: 10px;
  max-width: 80%;
}

p a {
  color: cyan;
}

html, body, main {
  min-height: 100%;
}

@-webkit-keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
  to {
    transform: scale3d(1, 1, 1);
  }
}

@keyframes rubberBand {
  from {
    transform: scale3d(1, 1, 1);
  }
  30% {
    transform: scale3d(1.25, 0.75, 1);
  }
  40% {
    transform: scale3d(0.75, 1.25, 1);
  }
  50% {
    transform: scale3d(1.15, 0.85, 1);
  }
  65% {
    transform: scale3d(0.95, 1.05, 1);
  }
  75% {
    transform: scale3d(1.05, 0.95, 1);
  }
  to {
    transform: scale3d(1, 1, 1);
  }
}

/* Animación del logo eco-monsters */
.logo-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
  animation: fadeInLogo 2s ease-in-out;
}
.logo-title img {
  width: 60px;
  height: auto;
  animation: spin 6s linear infinite;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fadeInLogo {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tarjeta centrada resaltada sin desaparecer */
.carousel {
  scroll-snap-type: x mandatory;
}
.card {
  scroll-snap-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card.selected {
  transform: scale(1.15);
  box-shadow: 0 0 25px rgba(105, 105, 105, 0.723);
  z-index: 10;
}

/* Redes sociales interactivas renovadas */
.social {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -25px;
  padding: 30px;
}
.social a {
  border-radius: 15px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);;
  transition: all 0.3s ease;
}
.social a:hover {
  transform: scale(1.05);
}
.social img {
  width: 24px;
  height: 24px;
}

/* Carta misteriosa */
.card.mystery {
  background-image: url('/icons/VERDE_SIMBOL.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(1);
}


/* Título con logo principal */
.logo-header {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 30px;
  animation: fadeInCalm 2s ease;
}
.logo-header img {
  width: clamp(250px, 40vw, 380px);
  animation: floatLogo 6s ease-in-out infinite;
}

@keyframes fadeInCalm {
  from { opacity: 0; transform: translateY(-40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

/* Evita ocultar cartas, pero resalta al pasar cursor */
.card {
  opacity: 1 !important;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card:hover {
  transform: scale(1.15);
  z-index: 10;
  box-shadow: 0 0 25px rgba(255,255,255,0.7);
}

/* Ajustes generales para móviles */
@media (max-width: 768px) {
  .logo-header img {
    width: 80%;
    max-width: 300px;
  }
  
  .card {
    min-width: 180px;
    height: 250px;
  }
  
  .social a {
    font-size: 1rem;
    padding: 15px 15px;
  }
}

/* Ajustes para móviles pequeños */
@media (max-width: 480px) {
  .carousel-container {
    padding: 0 10px;
  }
  
  .card {
    min-width: 150px;
    height: 200px;
  }
  
  .social {
    flex-direction: row;
    align-items: center;
  }
  
  .social a {
    width: 10%;
    justify-content: center;
  }
}

/* Mejoras de tactil para móviles */
@media (hover: none) {
  .card {
    transform: none !important;
  }
  
  .scroll-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
}

/* Previene zoom no deseado en inputs móviles */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px;
  }
}

/* Contenedor principal responsivo */
.carousel-container {
  width: 90vw; /* Usa el 90% del ancho visible */
  max-width: 1400px; /* Límite máximo para pantallas grandes */
  margin: 0 auto;
  padding: 0 100px; /* Padding relativo al ancho de la ventana */
  transition: all 0.3s ease; /* Transición suave al redimensionar */
}

/* Tarjetas con tamaño flexible */
.card {
  min-width: 15vw; /* Ancho relativo al viewport */
  max-width: 250px; /* Tamaño máximo original */
  height: 22vw; /* Altura relativa */
  max-height: 350px; /* Altura máxima original */
  transition: all 0.3s ease; /* Incluye transición para redimensionamiento */
}

/* Efectos hover solo para desktop */
@media (hover: hover) {
  .card:hover {
    transform: scale(1.05) rotateY(5deg) !important; /* Mantiene tus efectos */
  }
}

/* Ajustes para pantallas muy anchas */
@media (min-width: 1920px) {
  .carousel-container {
    max-width: 1800px;
  }
  .card {
    min-width: 280px;
    height: 380px;
  }
}

/* Ajustes progresivos para diferentes tamaños */
@media (max-width: 1600px) {
  .card {
    min-width: 14vw;
    height: 20vw;
  }
}

@media (max-width: 1200px) {
  .card {
    min-width: 16vw;
    height: 24vw;
  }
}

/* Mantiene tus efectos específicos por tarjeta */
.card:nth-child(1):hover { transform: rotateZ(2deg) scale(1.05) !important; }
.card:nth-child(2):hover { transform: rotateZ(-2deg) scale(1.05) !important; }
.card:nth-child(3):hover { transform: rotateZ(2deg) scale(1.05) !important; }
.card:nth-child(4):hover { transform: rotateZ(-2deg) scale(1.05) !important; }
.card:nth-child(5):hover { transform: rotateZ(2deg) scale(1.05) !important; }
.card:nth-child(6):hover { transform: rotateZ(-2deg) scale(1.05) !important; }
.card:nth-child(7):hover { transform: rotateZ(2deg) scale(1.05) !important; }
.card:nth-child(8):hover { transform: rotateZ(-2deg) scale(1.05) !important; }
.card:nth-child(9):hover { transform: rotateZ(2deg) scale(1.05) !important; }
.card:nth-child(10):hover { transform: rotateZ(-2deg) scale(1.05) !important; }
.card:nth-child(11):hover { transform: rotateZ(2deg) scale(1.05) !important; }

/* Contenedor principal */
.school-title-container {
  display: flex;
  justify-content: center; /* Centrado horizontal */
  align-items: center;     /* Centrado vertical */
  flex-wrap: wrap;         /* Permite apilamiento en móviles */
  gap: 15px;               /* Espacio entre imágenes */
  margin: 10px 0;
  padding: 10px;
}

/* Logo original */
.school-logo {
  width: 80px;
  height: 90px;
  transition: all 0.3s ease;
  padding: 5px;
  object-fit: contain; /* Mantiene proporciones */
}

/* Efectos hover para el logo */
.school-logo:hover {
  transform: scale(1.2) rotate(5deg);
  filter: brightness(1.1);
}

/* Nueva imagen (reemplazo del título) */
.school-logo-2 {
  height: 90px;          /* Misma altura que el logo */
  width: auto;           /* Ancho proporcional */
  max-width: 400px;      /* Ancho máximo inicial */
  transition: all 0.3s ease;
  padding: 5px;
  object-fit: contain;
  position: relative;
  top: 3px;
  
  /* Ajuste de alineación vertical */
  position: relative;
  top: 3px; /* Compensa diferencia visual de altura */
}

/* Responsive */
@media (max-width: 900px) {
  .school-logo-2 {
    max-width: 350px;
  }
}

@media (max-width: 768px) {
  .school-title-container {
    flex-direction: column; /* Apilamiento vertical */
    gap: 10px;
  }
  
  .school-logo-2 {
    max-width: 300px;
    top: 0; /* Restablece ajuste vertical */
  }
}

@media (max-width: 480px) {
  .school-logo-2 {
    max-width: 250px;
  }
  
  .school-logo {
    width: 70px;
    height: 80px;
  }
}

/* responsive */
@media (max-width: 768px) {
  .school-title-container {
    flex-direction: column; /* Apila las imágenes verticalmente en móviles */
  }
  
  .school-logo-2 {
    max-width: 250px; /* Reduce el tamaño máximo en tablets */
  }
}

@media (max-width: 480px) {
  .school-logo-2 {
    max-width: 200px; /* Reduce aún más en móviles pequeños */
  }
}

/* Efecto decorativo opcional para el título */
.school-title::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

/* === ESTILOS PARA CONTADOR MEJORADO === */
.visit-counter {
  position: absolute;
  bottom: 15px;
  right: 0px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(10px);
  border-top-left-radius: 30px;
  border-bottom-left-radius: 30px;
  padding: 5px 2px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(88, 255, 177, 0.995),
              inset 0 0 10px rgba(255, 255, 255, 0.1);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  font-family: 'Segoe UI', sans-serif;
  min-width: 120px;
}

.visit-counter:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.4),
              0 0 0 2px rgba(121, 212, 243, 0.6),
              inset 0 0 15px rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.75);
}

.counter-icon {
  background: linear-gradient(135deg, #61fbb8, #59b182);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseIcon 2.5s ease infinite;
  box-shadow: 0 0 10px rgba(97, 113, 251, 0.5);
}

.counter-icon i {
  font-size: 16px;
  color: white;
}

#visit-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

#visit-count {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.loading-icon {
  width: 24px;
  height: 24px;
  transition: all 0.3s ease;
}

@keyframes pulseIcon {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 10px rgba(97, 113, 251, 0.5);
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 0 15px rgba(97, 113, 251, 0.8);
  }
}

/* Efecto de brillo al completar */
@keyframes countComplete {
  0% { text-shadow: 0 0 5px rgba(247, 247, 247, 0.7); }
  50% { text-shadow: 0 0 15px rgb(72, 157, 255); }
  100% { text-shadow: 0 0 5px rgba(183, 183, 183, 0.873); }
}

/* === MEJORAS PARA CELULARES - CARRUSEL === */

/* Contenedor principal en móviles */
@media (max-width: 768px) {
  .carousel-container {
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 10px !important; /* Sobreescribe otros estilos */
    overflow-x: auto;
  }
  
  .carousel {
    display: flex;
    gap: 12px;
    padding: 15px 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; /* Mejor scroll en iOS */
    scrollbar-width: none; /* Firefox */
  }
  
  .carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }
  
  /* Tarjetas optimizadas para móviles */
  .card {
    min-width: 160px !important; /* Fuerza tamaño en móviles */
    max-width: 160px !important;
    height: 220px !important;
    flex-shrink: 0;
    margin: 0;
    scroll-snap-align: start;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  /* Elimina efectos 3D complejos en móviles */
  .card:hover {
    transform: scale(1.05) !important; /* Efecto más simple */
    transform: rotateY(0deg) !important; /* Elimina rotación 3D */
  }
  
  /* Elimina efectos hover específicos en móviles */
  .card:nth-child(1):hover,
  .card:nth-child(2):hover,
  .card:nth-child(3):hover,
  .card:nth-child(4):hover,
  .card:nth-child(5):hover,
  .card:nth-child(6):hover,
  .card:nth-child(7):hover,
  .card:nth-child(8):hover,
  .card:nth-child(9):hover,
  .card:nth-child(10):hover,
  .card:nth-child(11):hover {
    transform: scale(1.05) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25) !important;
  }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
  .card {
    min-width: 140px !important;
    max-width: 140px !important;
    height: 190px !important;
  }
  
  .carousel {
    gap: 8px;
    padding: 10px 8px;
  }
}

/* Desactiva efectos hover en dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
  .card:hover {
    transform: none !important;
  }
  
  .card::before,
  .card::after {
    display: none !important; /* Oculta efectos de superposición */
  }
}

/* FIX PARA FOOTER EN PARTE INFERIOR */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 100px; /* Mantiene espacio para header fijo */
    box-sizing: border-box;
}

/* Contenedor principal para el contenido */
.main-content {
    flex: 1 0 auto; /* Ocupa todo el espacio disponible */
    width: 100%;
}

footer {
    flex-shrink: 0; /* Evita que se reduzca */
    margin-top: auto; /* Empuja el footer hacia abajo */
    position: relative;
    width: 100%;
}
