:root{
  --card-bg: rgba(255,255,255,0.7);
  --text: #2a2a2a;
  --blue-dark: #1277b3;
  --blue-dark-rgb: 18, 119, 179;
}

#view-disfraces {
  --accent-color: rgb(var(--blue-rgb));
  --accent-color-rgb: var(--blue-rgb);
  --accent-bg: #eef7ff;

  display: flex;
  flex-direction: column;
  align-items: center;
} 

.nav-blue {
  --nav-bg: rgb(var(--blue-rgb));
  --nav-shadow: rgba(0, 0, 0, 0.3);
  --nav-text: white;
  --nav-text2: white;

  --nav-tiktok-bg: rgb(var(--blue-rgb));
  --nav-tiktok-border-color: rgba(255, 255, 255, 0.5);

  --nav-ig-bg: rgb(var(--blue-rgb));
  --nav-ig-border-color: rgba(255, 255, 255, 1);

  --nav-wsp-bg: rgb(var(--blue-rgb));
  --nav-wsp-border-color: rgba(255, 255, 255, 1);
  --nav-wsp-color: white;
}

.dis-hero{
  display:flex;
  flex-direction:column;
  align-items:center;
  font-family:"Poppins",sans-serif;
  color:var(--text);
  width: 70%;
}

.dis-view-title {
  color: var(--accent-color);
  font-size: 6rem;
  text-shadow: 0 5px 15px rgba(var(--accent-color-rgb), 0.15);
  transition: opacity 0.2s ease;
  margin-top: 6.5rem;
  text-shadow: 0 5px 15px rgba(var(--blue-rgb),0.15);
}

.dis-hero-subtitle{

  font-size:1.2rem;

  text-align:center;

  max-width:700px;

  color:#4d4d4d;
}

/* =========================
   PROMO BOX
========================= */

.dis-promo-box{

  position:relative;

  width:100%;
  margin-top:3rem;
  padding:2rem;
  border-radius:2rem;
  background:var(--card-bg);
  border: 2px solid rgba(var(--blue-rgb),0.15);
  box-shadow:
  0 20px 40px rgba(var(--blue-rgb),0.1);
  overflow:hidden;
}

.dis-promo-title{
  margin-left: 1.5rem;
  position:relative;

  font-family:"Baloo 2",cursive;

  font-size:2rem;

  color:var(--accent-color);

  margin-bottom:1.5rem;
}

/* =========================
   PROMO ITEMS
========================= */

.dis-promo-list{

  position:relative;

  display:flex;
  flex-direction:column;

  gap:1rem;
}

.dis-promo-item{

  display:flex;
  align-items:center;

  gap:1rem;

  padding:1rem 1.2rem;

  border-radius:1.2rem;

  background:
  rgba(var(--blue-rgb),0.06);

  transition:
  transform .25s ease,
  background .25s ease;
}

.dis-promo-item:hover{

  transform:translateY(-3px);

  background:
  rgba(var(--blue-rgb),0.1);
}

.dis-promo-icon{

  width:3rem;
  height:3rem;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  background:
  rgba(var(--blue-rgb),0.15);

  font-size:1.4rem;

  flex-shrink:0;
}

.dis-promo-text strong{

  color:var(--accent-color);

  font-weight:700;
}

.dis-promo-text{

  line-height:1.5;
}

/* =========================
   CTA
========================= */

.dis-promo-cta{

  margin-top:2rem;
  margin-left: 1.5rem;

  display:inline-flex;
  align-items:center;
  justify-content:center;

  gap:.7rem;

  background:var(--accent-color);

  color:white;

  text-decoration:none;

  padding:1rem 1.5rem;

  border-radius:999px;

  font-weight:600;

  box-shadow:
  0 10px 20px rgba(var(--blue-rgb),0.25);

  transition:
  transform .25s ease,
  box-shadow .25s ease;
}

.dis-promo-cta:hover{

  transform:scale(1.04);

  box-shadow:
  0 14px 28px rgba(var(--blue-rgb),0.35);
}


/* =========================
   SEARCH SECTION
========================= */

.search-section{

  width: min(1100px, 92%);
  margin: 2rem auto 0;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =========================
   SEARCH BAR
========================= */

.search-bar{
  width: 100%;
}

.search-bar input{

  width: 100%;

  border: 3px solid transparent;
  outline: none;

  background: white;

  padding: 1.2rem 1.5rem;

  border-radius: 999px;

  font-size: 1rem;

  color: #234;

  box-shadow:
      0 8px 24px rgba(var(--accent-color-rgb), .12);

  transition:
      transform .25s ease,
      box-shadow .25s ease,
      border-color .25s ease,
      background-color .25s ease;
}

/* placeholder */

.search-bar input::placeholder{
  color: #7a94a8;
}

/* focus */

.search-bar input:focus{

  transform: translateY(-3px);

  border-color: rgba(var(--accent-color-rgb), .5);


}

/* =========================
   QUICK CATEGORIES
========================= */

.quick-categories{

  display: flex;
  flex-wrap: wrap;
  justify-content: center;

  gap: 1rem;
}

.category{

  background: white;

  border: none;

  padding: .8rem 1.2rem;
  align-items: center;

  border-radius: 999px;

  font-family: "Nunito", sans-serif;
  font-weight: 800;

  color: var(--accent-color);

  cursor: pointer;

  box-shadow:
      0 6px 18px rgba(var(--accent-color-rgb), .1);

  transition: .25s ease;
  font-size: .85rem;
}

.category:hover {

  background: var(--accent-color);
  color: white;

  transform: translateY(-3px);
}

.category.active {

  background: var(--accent-color);
  color: white;

  transform: translateY(-3px);
}

.dis-category-icon{

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 1.8rem;
  font-size: 1.1rem;
  margin-left:.1rem;
}

/* =========================
   CARDS
========================= */

.cards-grid{

    width: min(1300px, 94%);
    margin: 2.5rem auto 5rem;

    display: grid;

    grid-template-columns: repeat(auto-fill, 170px);
    justify-content: center;

    gap: 1.2rem;
}


.card{

  background: white;
  color: var(--blue-dark);

  border-radius: 24px;

  overflow: hidden;

  box-shadow:
      0 10px 25px rgba(var(--accent-color-rgb), .12);

  transition: .28s ease;

  cursor: pointer;
}

.card:hover{

  transform:
      translateY(-8px)
      scale(1.02);

  box-shadow:
      0 18px 35px rgba(var(--accent-color-rgb), .18);
}

/* imagen */

.card-image {

  width: 100%;

  aspect-ratio: 12 / 16;



  background: white;

  overflow: hidden;
}

.card-image img {

  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.card-content{
  display: flex;
  padding: 1.2rem;
  justify-content: center;
}

.card-title{

  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: .6rem;
  text-align: center;
}

/* =========================
   NO RESULTS
========================= */

.no-results{

  width: min(560px, 92%);
  margin: 4rem auto 5rem;

  padding: 2.8rem 2rem;

  border-radius: 32px;

  background:
      linear-gradient(
          145deg,
          rgba(var(--accent-color-rgb), .16),
          rgba(var(--accent-color-rgb), .07)
      );

  border:
      2px solid rgba(var(--accent-color-rgb), .18);

  box-shadow:
      0 18px 45px rgba(var(--accent-color-rgb), .12);


  text-align: center;

  animation:
      noResultsAppear .35s ease;
}


/* linea decorativa */

.no-results-line{

  width: 90px;
  height: 8px;

  margin: 0 auto 1.5rem;

  border-radius: 999px;

  background:
      rgb(var(--accent-color-rgb));

  box-shadow:
      0 0 24px rgba(var(--accent-color-rgb), .5);
}


/* titulo */

.no-results-title{

  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;

  color: rgb(var(--accent-color-rgb));

  margin-bottom: .8rem;

  font-family: "Fredoka", sans-serif;
}


/* texto */

.no-results-text{

  font-size: 1rem;
  line-height: 1.7;

  color: #4f5560;

  max-width: 420px;
  margin: 0 auto 1.8rem;
}

/* POPUP */

.popup-overlay{

  position: fixed;
  inset: 0;

  background: rgba(0,0,0,.55);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 2rem;

  z-index: 99999;

  opacity: 1;
  transition: .25s ease;
}

.popup-card{

  width: min(1000px, 100%);

  max-height: 90vh;

  overflow-y: auto;

  background: white;

  border-radius: 32px;

  padding: 2rem;

  position: relative;

  box-shadow:
      0 30px 80px rgba(0,0,0,.25);

  animation: popupEnter .25s ease;
}

.popup-close{

  position: absolute;

  top: 1rem;
  right: 1rem;

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(0,0,0,.08);

  cursor: pointer;

  font-size: 1rem;

  transition: .2s ease;
}

.popup-close:hover{

  background: rgba(0,0,0,.15);

  transform: rotate(90deg);
}

.popup-image{

  width: 100%;

  border-radius: 24px;

  overflow: hidden;

  background:
      rgba(var(--accent-color-rgb), .06);

  aspect-ratio: 16 / 9;

  margin-bottom: 1.5rem;
}

.popup-image img{

  width: 100%;
  height: 100%;

  object-fit: contain;

  display: block;
}

.popup-info{

  text-align: center;

  margin-bottom: 2rem;
}

.popup-title{

  font-size: 2rem;
  font-weight: 800;

  margin-bottom: 1rem;
}

.popup-btn{

  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 1.5rem;

  border-radius: 999px;

  text-decoration: none;

  background: var(--accent-color);

  color: white;

  font-weight: 700;

    transition: .25s ease;
}

.popup-btn:hover{

  transform: translateY(-3px);
  
  box-shadow: 0 12px 24px rgba(var(--accent-color-rgb), .3);
}

.popup-related h3{

  margin-bottom: 1rem;

  font-size: 1.2rem;
}

.related-grid{

  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  justify-content: center;

  gap: 1rem;
}

.related-card{

  background: #f7f9ff;

  border-radius: 18px;

  overflow: hidden;

  cursor: pointer;

  transition: .2s ease;
}

.related-card:hover{

  transform: translateY(-4px);
}

.related-card img{

  width: 100%;
  aspect-ratio: 12 / 16;

  object-fit: cover;

  display: block;
}

.related-card p{

  padding: .8rem;

  text-align: center;

  font-weight: 600;

  font-size: .9rem;
}

/* ==================================
   MOBILE — VIEW DISFRACES
================================== */

@media (max-width: 768px) {

  /* =========================
     HERO
  ========================= */

  .dis-hero {

    width: min(94%, 700px);

    margin-top: 5rem;
  }

  .dis-view-title {

    font-size:
      clamp(3rem, 13vw, 4.5rem);

    text-align: center;

    line-height: .95;

    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .dis-hero-subtitle {

    font-size: 1rem;

    line-height: 1.7;

    max-width: 100%;

    padding: 0 .5rem;
  }

  /* =========================
     PROMO BOX
  ========================= */

  .dis-promo-box {

    margin-top: 2rem;

    padding: 1.2rem;

    border-radius: 1.5rem;
  }

  .dis-promo-title {

    margin-left: 0;

    font-size: 1.6rem;

    text-align: center;

    margin-bottom: 1.2rem;

    line-height: 1.1;
  }

  .dis-promo-list {

    gap: .8rem;
  }

  .dis-promo-item {

    align-items: flex-start;

    padding: 1rem;

    border-radius: 1rem;
  }

  .dis-promo-icon {

    width: 2.6rem;
    height: 2.6rem;

    font-size: 1.15rem;

    flex-shrink: 0;
  }

  .dis-promo-text {

    font-size: .95rem;

    line-height: 1.5;
  }

  .dis-promo-cta {

    width: 100%;

    margin-left: 0;
    margin-top: 1.5rem;

    text-align: center;

    padding: 1rem 1.2rem;

    font-size: .95rem;
  }

  /* =========================
     SEARCH
  ========================= */

  .search-section {

    width: min(94%, 700px);

    margin-top: 2rem;

    gap: 1rem;
  }

  .search-bar input {

    padding: 1rem 1.2rem;

    font-size: .95rem;
  }

  /* =========================
     CATEGORIES
  ========================= */

  .quick-categories {

    gap: .7rem;
  }

  .category {

    padding: .7rem 1rem;

    font-size: .8rem;
  }

  .dis-category-icon {

    width: 1.4rem;

    font-size: .95rem;
  }

  #dibujitos-btn,
  #disney-btn,
  #animales-btn {
    display: none;
  }

  /* =========================
     CARDS GRID
  ========================= */

  .cards-grid {

    width: min(96%, 700px);

    margin-top: 2rem;
    margin-bottom: 4rem;

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: .9rem;
  }

  .card {

    border-radius: 20px;
  }

  .card-content {

    padding: .9rem;
  }

  .card-title {

    font-size: 1rem;

    line-height: 1.2;

    margin-bottom: 0;
  }

  /* =========================
     NO RESULTS
  ========================= */

  .no-results {

    padding: 2rem 1.2rem;

    border-radius: 24px;

    margin: 3rem auto 4rem;
  }

  .no-results-title {

    font-size: 1.7rem;
  }

  .no-results-text {

    font-size: .95rem;
  }

  /* =========================
     POPUP
  ========================= */

  .popup-overlay {

    padding: 1rem;
  }

  .popup-card {

    padding: 1.2rem;

    border-radius: 24px;

    max-height: 88vh;
  }

  .popup-close {

    width: 38px;
    height: 38px;

    top: .8rem;
    right: .8rem;
  }

  .popup-image {

    border-radius: 18px;

    aspect-ratio: 4 / 5;
  }

  .popup-title {

    font-size: 1.5rem;

    line-height: 1.1;
  }

  .popup-info {

    margin-bottom: 1.5rem;
  }

  .popup-btn {

    width: 100%;

    padding: 1rem;
  }

  /* =========================
     RELATED
  ========================= */

  .popup-related h3 {

    text-align: center;
  }

  .related-grid {

    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: .8rem;
  }

  .related-card {

    border-radius: 16px;
  }

  .related-card p {

    padding: .7rem;

    font-size: .82rem;
  }
}

@media (hover: none) {

  .category:hover {

    background: white;
    color: var(--accent-color);

    transform: none;
  }

  .category.active {
    background: var(--accent-color) !important;
    color: white !important;
    transform: translateY(-3px) !important;
  }
}