
/* Animación para la aparición de las tarjetas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.8s ease-in-out;
}
.card-img {
    height: 250px; /* Ancho fijo */
    width: 100px; /* Alto fijo */
    object-fit: contain; /* Ajusta la imagen dentro del contenedor sin recortes */
    background-color: #fff; /* Fondo blanco para llenar el espacio vacío si la imagen no llena el contenedor */
}


/* SPINNER CSS */
.lds-ellipsis {
    display: inline-block;
    position: fixed; /* Cambiar a fixed para centrarlo en la pantalla */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centrar el spinner */
    width: 80px;
    height: 80px;
  }

  .lds-ellipsis div {
    box-sizing: border-box;
    position: absolute;
    top: 33.33333px;
    width: 13.33333px;
    height: 13.33333px;
    border-radius: 50%;
    background: #00AEEF; /* Cambia el color según el diseño */
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
  }

  .lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
  }

  .lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
  }

  @keyframes lds-ellipsis1 {
    0% {
      transform: scale(0);
    }
    100% {
      transform: scale(1);
    }
  }

  @keyframes lds-ellipsis3 {
    0% {
      transform: scale(1);
    }
    100% {
      transform: scale(0);
    }
  }

  @keyframes lds-ellipsis2 {
    0% {
      transform: translate(0, 0);
    }
    100% {
      transform: translate(24px, 0);
    }
  }
/* SPINNER CSS */


/* LOGO WHATSAPP */
  #whatsapp-chat {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
}

#whatsapp-chat img {
    width: 60px; /* Ajusta el tamaño del logo aquí */
    height: auto;
}


/* === NUEVA EXPERIENCIA DE TARJETA ESTILO SHADCN / PIRÁ PARÁ === */

.pira-card-wrapper {
    text-decoration: none !important;
    display: block;
    cursor: pointer;
}

.pira-card {
    background-color: #07111F;
    border: 1px solid rgba(0, 174, 239, 0.18);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
}

.pira-card:hover {
    border-color: rgba(0, 174, 239, 0.55);
    box-shadow: 0 18px 50px rgba(0, 174, 239, 0.16);
    transform: translateY(-5px);
}

/* Contenedor de Imagen */
.pira-card-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    background-color: #07111F;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pira-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pira-card:hover .pira-card-img {
    transform: scale(1.05);
}

/* Badge de marca */
.pira-card-brand-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 174, 239, 0.35);
    background-color: rgba(5, 11, 20, 0.75);
    padding: 6px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    pointer-events: none;
}

.pira-card-brand-badge i {
    color: #00AEEF;
}

/* Contenido / Cuerpo */
.pira-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Título */
.pira-card-title {
    font-family: 'Rajdhani', 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Microcopy */
.pira-card-microcopy {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(0, 174, 239, 0.9);
    margin-bottom: 12px;
}

/* Fila de precio */
.pira-card-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
    margin-bottom: 16px;
}

.pira-card-price {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: 0.03em;
    margin: 0;
}

.pira-card-price-hidden {
    font-size: 12px;
    font-weight: 500;
    color: #8FA3B8;
    margin: 0;
}

/* Badge de seguridad */
.pira-card-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 9999px;
    background-color: rgba(0, 174, 239, 0.1);
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 800;
    color: #D9E2EC;
    border: 1px solid rgba(0, 174, 239, 0.2);
}

.pira-card-secure-badge i {
    color: #00AEEF;
}

/* Pie / Botón de Acción */
.pira-card-footer {
    width: 100%;
}

.pira-card-btn {
    display: flex;
    height: 42px;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    background: linear-gradient(90deg, #00AEEF, #43D6FF, #0057B8);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(0, 174, 239, 0.28);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.pira-card:hover .pira-card-btn {
    box-shadow: 0 16px 38px rgba(0, 174, 239, 0.42);
    transform: translateY(-1px);
}

.pira-card-btn-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}



@media (max-width: 768px) {
    #whatsapp-chat img {
        width: 50px; /* Ajusta el tamaño del logo para pantallas más pequeñas */
    }
}

/* === MODERNO HERO BANNER === */
.pira-hero {
    background: radial-gradient(circle at 80% 20%, rgba(0, 174, 239, 0.15), transparent 45%),
                radial-gradient(circle at 20% 80%, rgba(0, 87, 184, 0.12), transparent 50%),
                rgba(7, 17, 31, 0.6);
    border: 1px solid rgba(0, 174, 239, 0.15);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 2.5rem;
}

.pira-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.25);
    color: #43D6FF;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.pira-hero-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: 2.75rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.3);
}

.pira-hero-desc {
    font-size: 1.05rem;
    color: #8FA3B8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    font-weight: 400;
    line-height: 1.5;
}

/* === CONTENEDOR DE BÚSQUEDA === */
.pira-search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.pira-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.pira-search-input {
    width: 100%;
    background-color: rgba(5, 11, 20, 0.8) !important;
    border: 1px solid rgba(0, 174, 239, 0.3) !important;
    border-radius: 14px !important;
    padding: 14px 20px 14px 48px !important;
    color: #ffffff !important;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.pira-search-input::placeholder {
    color: #52667A;
}

.pira-search-input:focus {
    border-color: #00AEEF !important;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.25), 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.pira-search-icon {
    position: absolute;
    left: 18px;
    color: rgba(0, 174, 239, 0.7);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.3s ease;
}

.pira-search-input:focus + .pira-search-icon {
    color: #43D6FF;
}

/* === HORIZONTAL CATEGORY CHIPS === */
.pira-category-section {
    margin-bottom: 2rem;
}

.pira-category-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #00AEEF;
    margin-bottom: 0.75rem;
    text-align: left;
}

.pira-category-chips-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 4px 4px 12px 4px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.pira-category-chips-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.pira-category-chip {
    flex-shrink: 0;
    border-radius: 12px;
    background-color: rgba(7, 17, 31, 0.6);
    border: 1px solid rgba(0, 174, 239, 0.15);
    color: #8FA3B8;
    padding: 10px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pira-category-chip:hover {
    color: #ffffff;
    border-color: rgba(0, 174, 239, 0.45);
    background-color: rgba(7, 17, 31, 0.85);
    transform: translateY(-1px);
}

.pira-category-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, #00AEEF, #0057B8);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.35);
    font-weight: 700;
}

@media (max-width: 576px) {
    .pira-hero {
        padding: 2rem 1rem;
        margin-bottom: 1.5rem;
    }
    .pira-hero-title {
        font-size: 2rem;
    }
    .pira-hero-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .pira-category-chip {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
}

