html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


body {
    background-color: #f8f9fa;
    font-family: 'Poppins', sans-serif;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/*ESTILOS PARA LA PAGINA PRINCIPAL(HOME/INDEX)*/
/* Ajustado a 25px para que la barra fina no tape contenido */
body {
    padding-bottom: 25px;
}

/* Barra más delgada, texto más pequeño y apagado (estilo sutil/premium) */
.barra-legal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 15, 15, 0.85); /* Negro ligeramente transparente */
    color: rgba(255, 255, 255, 0.4); /* Gris apagado, no resalta */
    text-align: center;
    padding: 4px 10px; /* Mucho más delgada */
    font-size: 0.55rem; /* Letra pequeña que no estorba */
    letter-spacing: 0.5px;
    z-index: 1050;
    text-transform: uppercase;
    backdrop-filter: blur(5px); /* Efecto de cristal sutil */
}

.hero-premium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85vh;
    background-image: url('https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 60%, #f4f7f6 100%);
    z-index: -1;
}

.btn-miembro {
    color: #fff;
    border: 1px solid #fff;
    background-color: transparent;
    transition: all 0.3s ease;
}

    .btn-miembro:hover {
        background-color: #fff;
        color: #000;
    }

.text-entregas {
    color: rgba(255, 255, 255, 0.6);
}

@media (min-width: 768px) {
    .btn-miembro {
        color: #212529 !important;
        border-color: #212529 !important;
    }

        .btn-miembro:hover {
            background-color: #212529 !important;
            color: #fff !important;
        }

    .text-entregas {
        color: #6c757d !important;
    }
}

/* ANIMACIÓN DE TARJETA REACTIVADA */
.product-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05) !important;
}

    .product-card:hover, .product-card:active {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    }

        .product-card:hover .product-img-anim, .product-card:active .product-img-anim {
            transform: scale(1.1) rotate(2deg);
        }

/* FIX BOTÓN AGREGAR ANDROID CHROME */
.product-btn {
    transition: all 0.3s ease;
}

    .product-btn.btn-dark {
        background-color: #212529 !important;
        border-color: #212529 !important;
        color: white !important;
    }

@media (hover: hover) and (pointer: fine) {
    .product-btn.btn-dark:hover {
        background-color: #d4af37 !important;
        border-color: #d4af37 !important;
    }
}

.product-btn.btn-dark:active {
    background-color: #d4af37 !important;
    border-color: #d4af37 !important;
    transform: scale(0.95);
}

.product-btn.btn-dark:focus, .product-btn.btn-dark:focus-visible {
    background-color: #212529 !important;
    border-color: #212529 !important;
    box-shadow: none !important;
}

.glow-gold {
    animation: pulseGlow 3s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        text-shadow: 0 0 10px rgba(212,175,55,0.2);
    }

    100% {
        text-shadow: 0 0 20px rgba(212,175,55,0.8), 0 0 30px rgba(212,175,55,0.4);
    }
}

.jump-anim {
    animation: jump 2s infinite;
    display: inline-block;
}

@keyframes jump {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.animate-fade-in {
    animation: fadeInDown 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-img-anim {
    transition: transform 0.5s ease;
}

.text-gold {
    color: #d4af37 !important;
}

.bg-gold-light {
    background-color: #fffdf5;
}

.nav-pills::-webkit-scrollbar {
    display: none;
}

.btn-filtro {
    background-color: transparent !important;
    color: #000 !important;
    border: 2px solid #000 !important;
    border-radius: 20px !important;
    font-weight: bold;
    padding: 6px 16px !important;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .btn-filtro:hover {
        background-color: rgba(0,0,0,0.05) !important;
    }

    .btn-filtro.active {
        background-color: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
    }

.slider-horizontal {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    padding-top: 0.5rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

    .slider-horizontal::-webkit-scrollbar {
        display: none;
    }

.tarjeta-slider {
    flex: 0 0 auto;
    width: 65%;
}

.overlay-ranking {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: transparent;
    z-index: 900;
    display: none;
}

    .overlay-ranking.active {
        display: block;
    }

.ranking-card {
    width: 100%;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    z-index: 5;
    background-color: white;
    border: 2px solid #000 !important;
    border-radius: 1.2rem !important;
    overflow: hidden !important;
}

.header-ranking {
    border-bottom: 2px solid #000 !important;
}

.footer-ranking {
    border-top: 2px solid #000 !important;
}

.ranking-card.expandido {
    width: 155%;
    transform: translateX(-38%);
    z-index: 1000;
    box-shadow: 0 20px 80px 30px rgba(0,0,0,0.6) !important;
}

.ranking-scroll-container {
    height: 150px;
    transition: height 0.5s ease;
    overflow-y: auto;
    scrollbar-width: none;
}

    .ranking-scroll-container::-webkit-scrollbar {
        display: none;
    }

.ranking-card.expandido .ranking-scroll-container {
    height: 400px !important;
}

.btn-expandir {
    cursor: pointer;
    user-select: none;
    transition: 0.3s;
}

/* Ajustes PC */
@media (min-width: 992px) {
    .tarjeta-slider {
        width: 23%;
    }

    .ranking-card.expandido {
        width: 120%;
        transform: translateX(-10%);
    }

    .ranking-scroll-container {
        height: 215px;
    }

    .home-title {
        font-size: 4.5rem;
    }

    .home-subtitle {
        font-size: 1.5rem;
    }

    .btn-home {
        font-size: 1.1rem;
        padding: 15px !important;
    }
}

@media (max-width: 991px) {
    .home-title {
        font-size: 1.7rem;
    }

    .home-subtitle {
        font-size: 0.85rem;
    }

    .btn-home {
        font-size: 0.8rem;
        padding: 8px 4px !important;
    }
}
