body {
  margin: 0;
  padding: 20px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(135deg, #f4f4f4 0%, #f9f9f9 100%);
  min-height: 100vh;
}

/* MAIN WRAPPER CON BANNERS */
.main-wrapper {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  position: relative;
}

.banner-left,
.banner-right {
  width: 300px;
  flex-shrink: 0;
  position: sticky;
  top: 70px;
  height: auto;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.banner-left {
  order: -1;
}

.banner-right {
  order: 1;
}

.ad-container {
  background: #ffffff;
  border: 1px solid #e2e2ea;
  border-radius: 18px;
  padding: 1rem;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #777777;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
}

.ad-container:empty::before {
  content: "Ad Space Available\A300x600px";
  white-space: pre;
  display: block;
  padding: 1rem;
  font-size: 0.85rem;
}

.ad-unit {
  min-height: 250px;
  border: 2px dashed rgba(230, 57, 70, 0.2);
  border-radius: 12px;
  background: rgba(230, 57, 70, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 1rem;
}

/* NAVBAR STYLES */
.pokemon-header-bar {
  background: linear-gradient(to right, #ffffff, #fafbfc);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar-custom {
  display: flex;
  align-items: center;
  padding: 0.8rem 2rem;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #e63946;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 150ms ease;
}

.navbar-brand:hover {
  transform: scale(1.05);
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-item .nav-link {
  color: #222222;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 150ms ease;
  position: relative;
}

.nav-item .nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e63946;
  transition: width 200ms ease;
}

.nav-item .nav-link:hover {
  color: #e63946;
}

.nav-item .nav-link:hover::after {
  width: 100%;
}

/* MAIN EXPANSION SECTION */
.main-expansion {
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;
}

/* Título */
#titulo {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

#titulo img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

/* GRID DE CARTAS */
#cartas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.8rem;
  justify-content: center;
  align-items: start;
  font-size: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.carta {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  font-size: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease,
              filter 0.3s ease;
  cursor: zoom-in;
  z-index: 1;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.05);
}

/* HOVER DE CARTA */
.carta:hover {
  transform: scale(1.35) translateY(-8px);
  z-index: 100;
  box-shadow: 0 20px 50px rgba(230,57,70,0.2);
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.15));
}

/* MODAL OVERLAY */
#modal {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.85) 100%);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* IMAGEN GRANDE */
#modal img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.8);
  cursor: zoom-out;
  animation: zoomIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive para tablets y móviles */
@media (max-width: 1400px) {
  .main-expansion {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .banner-left,
  .banner-right {
    display: none;
  }

  .main-wrapper {
    gap: 0;
  }

  #cartas {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 0.8rem;
  }

  .carta:hover {
    transform: scale(1.3) translateY(-6px);
  }
}

@media (max-width: 768px) {
  #cartas {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.2rem;
    padding: 0.5rem;
  }

  body {
    padding: 12px;
  }

  .pokemon-header-bar {
    padding: 0.6rem 1rem;
  }

  .navbar-custom {
    padding: 0.5rem 0;
  }

  .navbar-brand {
    font-size: 1.1rem;
  }

  .navbar-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  #titulo {
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
  }

  #titulo img {
    max-width: 80%;
  }

  .carta:hover {
    transform: scale(1.25) translateY(-5px);
  }

  #modal img {
    max-width: 95vw;
    max-height: 95vh;
  }
}

@media (max-width: 640px) {
  #cartas {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    padding: 0.5rem;
  }

  body {
    padding: 8px;
  }

  .pokemon-header-bar {
    padding: 0.5rem 0.8rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .navbar-nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  #titulo {
    margin-bottom: 1rem;
    margin-top: 0.3rem;
  }

  #titulo img {
    max-width: 70%;
  }

  .carta:hover {
    transform: scale(1.2) translateY(-4px);
  }

  .pokemon-footer {
    padding: 1rem 0.8rem;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-text {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }

  .footer-copy {
    font-size: 0.6rem;
  }
}

@media (max-width: 480px) {
  #cartas {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
    padding: 0.4rem;
  }

  body {
    padding: 6px;
  }

  .pokemon-header-bar {
    padding: 0.4rem 0.6rem;
  }

  .navbar-brand {
    font-size: 0.9rem;
  }

  .navbar-nav {
    gap: 0.6rem;
    font-size: 0.75rem;
  }

  #titulo {
    margin-bottom: 0.8rem;
    font-size: 1rem;
  }

  #titulo img {
    max-width: 60%;
  }

  .carta:hover {
    transform: scale(1.15) translateY(-3px);
  }

  .pokemon-footer {
    padding: 0.8rem 0.6rem;
  }
}

@media (max-width: 360px) {
  #cartas {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .navbar-brand {
    font-size: 0.8rem;
  }

  .navbar-nav {
    display: none;
  }
}


