/* ============================================
   VARIABLES GLOBALES
   ============================================ */
:root {
    --grad-blue-cyan: linear-gradient(to right, #2563eb, #06b6d4);
    --grad-blue-cyan-hover: linear-gradient(to right, #3b82f6, #22d3ee);
    --grad-price: linear-gradient(to right, #60a5fa, #22d3ee);
}

/* ============================================
   GENERAL
   ============================================ */

html {
    background: #050607;
}

h3.footer-menu-title {
    display: none;
}

li.menuitem-rifa-2 a {
    border-radius: 0.25rem;
    background: linear-gradient(45deg, oklch(62.3% 0.214 259.815), oklch(78.9% 0.154 211.53));
    color: white;
    padding-block: calc(var(--spacing) * 2);
    padding-inline: calc(var(--spacing) * 4);
}

/* Inputs numéricos sin flechas */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

/* ============================================
   HOME
   ============================================ */

body#home, #page.page-promo-oculta {
    background: linear-gradient(to bottom, black, #111827);
}

#page.page-promo-oculta section {
    background: transparent;
    max-width: 1200px;
    margin-bottom: calc(var(--spacing) * 8);
    margin-inline: auto;
}

body#home #footer {
    background: transparent;
}

body#home h3,
body#home h2,
#page.page-promo-oculta h2 {
    color: white;
}

body#home .faq-list .border-b {
    border-color: #364153;
}

body#home p {
    color: var(--color-gray-300);
}

div#evs-floating-ctas {
    display: none;
}

.volume-discount-notice svg {
    display: none;
}

/* ============================================
   PRODUCTOS (PRECIOS, CONTROLES, ETC)
   ============================================ */

.hero-product-info strike.bootic-price-comparison {
    font-size: 40%;
    color: #d4d5d7;
}

.add_to_cart {
    display: flex;
    align-items: center;
}

.product-control {
    width: 100%;
}

/* Botón principal de agregar al carrito */
.product-add-cart {
    background: var(--grad-blue-cyan);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
    transition: all 0.3s ease;
    border-radius: calc(var(--radius) - 2px) !important;
}

.product-add-cart:hover {
    background: var(--grad-blue-cyan-hover);
    transform: scale(1.02);
}

/* ============================================
   QUANTITY CHANGER (+ / -)
   ============================================ */

.product-change-quantity {
    width: 0;
    gap: 0!important;
    overflow: hidden;
    display: flex !important;
    opacity: 0;
    padding: 0 !important;
    height: 0;
    transition: all 300ms var(--default-transition-timing-function);
}

.in-cart .product-change-quantity {
    background: var(--grad-blue-cyan);
    border-radius: 9999px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.5);
    opacity: 1;
    width: auto;
    height: auto;
    min-width: 108px;
    padding: 0 0.5rem !important;
}

.product-change-quantity-btn {
    background: #fff;
    color: #2563eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-change-quantity-btn:hover {
    background: #3b82f6;
    color: #fff;
    transform: scale(1.1);
}

.product-change-quantity-btn:active svg {
    transform: scale(0.9);
}

.wrapper-product-quantity {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart_item_quantity {
    width: 3rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e3a8a;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.cart_item_quantity:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.4);
}

.product-change-quantity:hover {
    background: var(--grad-blue-cyan-hover);
    transform: scale(1.03);
}

/* ============================================
   VOLUME DISCOUNTS
   ============================================ */

.volume-discount-notice.below {
    display: none !important;
}

.cart-not-empty .volume-discount-notice.below {
    display: block !important;
    color: white;
    position: absolute;
    width: 100%;
    bottom: -10px;
}

.hero-product-info .volume-discount-notice.below span {
    font-size: 13px;
}

.slider-input-qty {
    color: #d3d5d7;
    min-height: 28px;
}

/* ============================================
   PAY BUTTON (UNIFICADO Y CORREGIDO)
   ============================================ */

.pay-btn {
    --black: #000000;
    --ch-black: #141414;
    --eer-black: #1b1b1b;
    --night-rider: #2e2e2e;
    --white: #ffffff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    background: #0a0f1f;
    border: none;
    border-radius: 14px;
    color: white;
    font-size: 14px;
    height: 40px;
    min-width: 90px!important;
    font-weight: 600;
    position: relative;
    cursor: pointer;
    transition: transform .2s, box-shadow .25s;
}

/* borde brillante animado */
.pay-btn:before, .pay-btn:after {
    content: "";
    position: absolute;
    left: -2px;
    top: -2px;
    border-radius: 14px;
    background: linear-gradient(45deg, #14141400, #1b1b1b00, #2e2e2e00, #e1e1e199, #2e2e2e00, #1b1b1b00, #14141400);
    background-size: 400%;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    animation: steam 10s linear infinite;
}

.pay-btn:after {
    filter: blur(50px);
}

@keyframes steam {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

.pay-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 0 12px #ffeb3b, inset 0 0 10px rgba(0, 234, 255, 0.15);
}

.pay-btn:hover:before,
.pay-btn:hover:after {
    animation: none !important;
}

.zap-icon {
    min-width: 20px;
    animation: zapMove 1.2s ease-in-out infinite;
    stroke: #fff200;
}

@keyframes zapMove {
    0% {
        transform: translateY(0);
        filter: drop-shadow(0 0 4px #fff200);
    }
    50% {
        transform: translateY(-2px);
        filter: drop-shadow(0 0 10px #ffae00);
    }
    100% {
        transform: translateY(0);
        filter: drop-shadow(0 0 4px #fff200);
    }
}


/* ============================================
   CART — ESTADOS GENERALES
   ============================================ */

body.cart-not-empty .hide-when-cart-not-empty {
    display: none !important;
}
body.cart-not-empty .show-when-cart-not-empty {
    display: flex !important;
}

.expand-when-cart-not-empty {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all .3s ease;
}

body.cart-not-empty .expand-when-cart-not-empty {
    max-height: 160px;
    opacity: 1;
}

.cart-total-box {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s;
    background: rgba(30,30,30,0.5);
    border: 1px solid #333;
    border-radius: 12px;
    padding: 0;
}

@media (width >= 64rem) {
body.cart-not-empty .cart-total-box {
    padding: calc(var(--spacing) * 2);
}}


/* ============================================
   PRECIOS CON GRADIENTE
   ============================================ */

.gradient-text,
.product-price {
    font-weight: 900;
    color: transparent;
    background-image: var(--grad-price);
    -webkit-background-clip: text;
    background-clip: text;
}

/* ============================================
   VISIBLE STATES
   ============================================ */

.visible .img-small-when-visible {
    max-width: 40px !important;
    max-height: 40px !important;
    transition: 0.25s ease;
}

@media (min-width: 1024px) {
    .visible .img-small-when-visible {
        max-width: 80px !important;
        max-height: 80px !important;
    }
}

.visible .visible-flex-row {
    flex-direction: row !important;
}

/* ============================================
   STICKY PRODUCT SECTION
   ============================================ */

.hero-product-info.sticky-fixed-clone.visible {
    height: auto;
    min-height: 0;
}

.sticky-fixed-clone.visible .hidden-when-sticky-visible {
    display: none !important;
}

.sticky-fixed-clone.visible .small-when-sticky {
    font-size: 1.25rem !important;
}

@media (min-width: 1024px) {
    .sticky-fixed-clone.visible .small-when-sticky {
        font-size: 1.75rem !important;
    }
}

.sticky-when-top {
    transition: opacity .3s ease, transform .3s ease;
}

.sticky-when-top.opacity-0 {
    opacity: 0;
    transform: translateY(-16px);
}

.sticky-when-top.opacity-100 {
    opacity: 1;
    transform: translateY(0);
}

.sticky-when-top span.bootic-price-comparison-box {
    font-size: 8px;
    color: #d4d5d7;
}


.fixed-items {
    display: none;
}

/* Simple Product Info — Estilos individuales */

.hero-product-info.sticky-fixed-clone.visible {
    height: auto;
    min-height: 0;
}

/* Ocultar título cuando sticky está visible */
.sticky-fixed-clone.visible .hidden-when-sticky-visible {
    display: none !important;
}

/* Ajustar tamaño del precio cuando está en sticky */
.sticky-fixed-clone.visible .small-when-sticky {
    font-size: 1.25rem !important;
}

@media (min-width: 1024px) {
    .sticky-fixed-clone.visible .small-when-sticky {
        font-size: 1.75rem !important;
    }
}

/* Texto con gradiente exclusivo de esta plantilla */
.gradient-text {
    font-weight: 900;
    color: transparent;
    background: linear-gradient(to right, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
}


.pack-item span.bootic-price-comparison-box.shown {
    display: none;
}

/* ============================================
   HERO RIFA — GRID DE PRODUCTOS (2x2 mobile / 4 desktop)
   ============================================ */

.hero-products-grid{
  display:grid !important;
  grid-template-columns:repeat(2, minmax(0, 1fr)) !important;
  gap:20px !important;
  width:100% !important;
  max-width:1200px !important;
  margin:0 auto !important;
}

@media (min-width:1024px){
  .hero-products-grid{
    grid-template-columns:repeat(4, minmax(0, 1fr)) !important;
  }
}

.hero-products-grid .hero-product-info{
  min-width:0 !important;
  width:100% !important;
  max-width:none !important;
}
