/* ============================== */
/* ESTILOS GENERALES Y ESTRUCTURA */
/* ============================== */
body {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

header.sticky-top {
    position: sticky !important;
    top: 0 !important;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ============================== */
/* BANNERS Y CATEGORÍAS */
/* ============================== */
.banner-principal {
    position: relative;
    height: 65vh;
    overflow: hidden;
}
.banner-principal img {
    object-fit: cover;
    height: 100%;
}
.overlay-text {
    z-index: 10;
}
.shadow-text {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.img-categoria {
    height: 320px !important;
}
.precio-categoria {
    font-size: 1.4rem;
}

/* ============================== */
/* BOTONES PERSONALIZADOS */
/* ============================== */
.btn-gold,
.btn-gold:focus {
    background-color: transparent;
    border: 2px solid #C89D46;
    color: #C89D46;
    transition: background-color 0.3s, color 0.3s;
}
.btn-gold:hover {
    background-color: #C89D46;
    color: white;
}

.btn-gold-a,
.btn-gold-b,
.btn-gold-c {
    background-color: #d4af37;
    color: #FFFFFF;
    border: 1px solid #d4af37;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-gold-a:hover,
.btn-gold-b:hover,
.btn-gold-c:hover {
    background-color: transparent;
    color: #d4af37;
}

.btn-gold-b {
    border-radius: 0;
    margin-left: 2rem;
}
.btn-gold-c {
    border-radius: 0;
    width: 100%;
    display: block;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.btn-gold-outline {
    color: #d4af37;
    border: 1px solid #d4af37;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}
.btn-gold-outline:hover {
    background-color: #d4af37;
    color: white;
}

.btn-outline-secondary.limpiar:hover {
    color: black;
    background-color: #C89D46;
    border-color: #C89D46;
}

.boton-aplicar {
  transition: background-color 0.3s, color 0.3s;
}

.boton-aplicar:hover {
  background-color: #d4af37 !important;
  color: #000 !important;
  border-color: #d4af37 !important;
}

.btn-share-compact {
  padding: .25rem .5rem;  /* más angosto */
  font-size: .85rem;      /* texto un poco más chico */
  line-height: 1.2;
}
.btn-share-compact i {
  font-size: 1rem;        /* ícono proporcionado */
}

/* ============================== */
/* ICONOS */
/* ============================== */
.icono-carrito-categoria i {
    font-size: 1.4rem;
}
.carrito-icon:hover i {
    color: #C89D46;
    transition: color 0.3s ease;
}
.icono-dorado {
	color: #C89D46;
}
.payment-icon {
    width: 38px;
    height: auto;
    transition: transform 0.3s ease;
}
.payment-icon:hover {
    transform: scale(1.15);
}
.social-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}
.social-icon:hover {
    transform: scale(1.2);
    color: #C89D46 !important;
}
.hover-toggle {
    transition: border-color 0.3s ease;
}
.hover-toggle:hover {
    border-bottom-color: #000;
}

/* ============================== */
/* NAVBAR / MENÚ */
/* ============================== */
.navbar .btn-coleccionables {
    color: #C89D46;
    border: 1px solid #C89D46;
    background-color: transparent;
    padding: 0.5rem 1rem;
    height: 100%;
    border-radius: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
    margin-left: 2rem;
}
.navbar .btn-coleccionables:hover {
    background-color: #C89D46;
    color: white;
}

/* ============================== */
/* MODAL CARRITO */
/* ============================== */
#modal-carrito {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 460px;
    background-color: #1A1A1A;
    color: #f8f9fa;
    border: 1px solid gold;
    border-radius: 8px;
    z-index: 1080;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    padding: 1.25rem;
    display: none;
    animation: slideDownFade 0.4s ease forwards;
}
#modal-carrito .modal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 1.75rem;
    color: gold;
}
#modal-carrito img {
    width: 80px;
    height: auto;
    object-fit: contain;
    border: 1px solid #ccc;
    background-color: white;
    padding: 2px;
}
#modal-carrito .info {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}
#modal-carrito .info div {
    margin-bottom: 0.3rem;
}
#modal-carrito .acciones {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
}
#modal-carrito .acciones a {
    flex: 1;
    text-align: center;
    font-weight: bold;
    padding: 0.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}
#modal-carrito .acciones .btn-ir {
    background-color: transparent;
    border: 1px solid gold;
    color: gold;
}
#modal-carrito .acciones .btn-ir:hover {
    background-color: gold;
    color: #1A1A1A;
}
#modal-carrito .acciones .btn-checkout {
    background-color: gold;
    color: #1A1A1A;
    border: none;
}
#modal-carrito .acciones .btn-checkout:hover {
    background-color: #e6c200;
}
#modal-carrito .cerrar {
    position: absolute;
    top: 6px;
    right: 10px;
    color: #f8f9fa;
    font-size: 1.2rem;
    cursor: pointer;
}
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================== */
/* COMPONENTES Y ELEMENTOS */
/* ============================== */
#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: none;
    background-color: #C89D46;
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 20px;
    transition: opacity 0.3s ease-in-out;
}
#scrollToTopBtn:hover {
    background-color: #b38733;
}

.scroll-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    padding-bottom: 8px;
}
.scroll-container::-webkit-scrollbar {
    height: 6px;
}
.scroll-container::-webkit-scrollbar-thumb {
    background-color: #C89D46;
    border-radius: 10px;
}

.buscador-central {
    max-width: 800px;
}

/* ============================== */
/* PRODUCTOS */
/* ============================== */
.ficha-card .imagenes {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
    cursor: pointer;
}
.ficha-card .imagenes img {
    height: 190px;
    object-fit: contain;
}
.etiquetas {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.75rem;
    color: #666;
}
.etiquetas span {
    border-radius: 12px;
    padding: 2px 8px;
    background: #f0f0f0;
}
.precio-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1rem;
    margin-top: 16px;
}
.precio-carrito i {
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
}
.nombre-producto-carrito {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    line-height: 1.2;
}

/* ============================== */
/* FRANJAS Y COMPONENTES RELACIONADOS */
/* ============================== */
.franja-relacionados {
    background-color: #1A1A1A;
}
.franja-relacionados h4 {
    color: #fff;
}
.franja-relacionados .card-body {
    background-color: #ffffff;
}

/* ============================== */
/* ESTILOS VARIOS */
/* ============================== */
.gold-accent {
    color: #d4af37;
    font-size: 2rem;
    font-weight: bolder;
}
.goldlight-accent {
    color: #c89d46;
    font-size: 1.5rem;
    font-weight: bolder;
}
.fila-stock-bajo {
    color: red !important;
    font-weight: bold;
}

/* ===================================================== */
/* LOGO ANIMADO DORADO (MISMO LOOK & FEEL QUE ¡EUREKA!)  */
/* ===================================================== */
.marca-arnumis {
  font-weight: bolder; /* igual que goldlight-accent */
  font-size: 1.5rem;   /* igual que goldlight-accent */
  background: linear-gradient(
    -45deg,
    #c89d46,
    #e3e4e5,
    #f6f2df,
    #c89d46,
    #fff8dc
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: shimmerGlow 6s ease-in-out infinite;
}

@keyframes shimmerGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Respeto por usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce){
  .marca-arnumis{ animation: none; background-position: 50% 50%; }
}

/* (Opcional) efecto hover sutil: acelera un toque el brillo */
.marca-arnumis:hover{ animation-duration: 3.5s; }

.marca-arnumis-footer {
  font-weight: bold; /* un poco más discreto que bolder */
  font-size: 1rem;   /* más pequeño para el footer */
  background: linear-gradient(
    -45deg,
    #c89d46,
    #e3e4e5,
    #f6f2df,
    #c89d46,
    #fff8dc
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
          color: transparent;
  animation: shimmerGlow 6s ease-in-out infinite;
}

@keyframes shimmerGlow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================================================================ */
/* BANNER WA – LOOK DORADO CON ANIMACIÓN SUAVE Y BLOQUE CLICKEABLE */
/* =============================================================== */
/* Banner clickeable (mismo look) */
.wa-callout-link{
  display:block;
  text-decoration:none;
  /* Forzamos texto oscuro dentro del banner */
  color:#111 !important;
  background: linear-gradient(90deg,#c89d46,#f6f2df,#c89d46);
  background-size: 200% 100%;
  animation: waSheen 8s ease-in-out infinite;
  border-radius: .75rem;
  padding: .75rem 1rem;
  box-shadow: 0 6px 24px rgba(200,157,70,.18);
}
.wa-callout-link:hover{ text-decoration:none }

@keyframes waSheen{
  0%{ background-position: 0% 50% }
  50%{ background-position: 100% 50% }
  100%{ background-position: 0% 50% }
}
@media (prefers-reduced-motion: reduce){
  .wa-callout-link{ animation: none; background-position: 50% 50% }
}

/* Texto del banner en negro para contraste */
.wa-callout-link .wa-title{ color:#111 !important; font-weight:800; letter-spacing:.3px; font-size:1rem }
.wa-callout-link .wa-sub  { color:#222 !important; font-size:.875rem; opacity:.95 }

/* ~20% más compacto */
.wa-compact{ padding: .6rem .8rem; }        /* 0.75→0.60 y 1→0.8 ≈ -20% */
.wa-compact .wa-title{ font-size:.9rem !important; }   /* 1rem → 0.9rem */
.wa-compact .wa-sub  { font-size:.75rem !important; }  /* .875rem → .75rem */

/* Títulos/subtítulos siempre oscuros y centrados */
.wa-title{ color:#111 !important; font-weight:800; letter-spacing:.3px; }
.wa-sub  { color:#222 !important; opacity:.95; }

/* Íconos SIN globo */
.wa-icon{ font-size:1.35rem; line-height:1; color:#128C7E; display:inline-block; }
.wa-icon-img{ height:1.35rem; width:auto; display:inline-block; }

/* Enlaces legales a la derecha "pegados" a la línea */
.footer-legal-links{ margin-top: 0; }

/* Tamaños “XL” solo donde apliques estas clases */
.wa-icon-xl     { font-size: 1.9rem; line-height: 1; }
.wa-icon-img-xl { height: 1.9rem; width: auto; }

@media (min-width: 768px){
  .wa-icon-xl     { font-size: 2.6rem; }
  .wa-icon-img-xl { height: 2.8rem; }
}

/* Sutileza visual opcional */
.wa-icon-xl { text-shadow: 0 1px 0 rgba(0,0,0,.08); }
.wa-icon-img-xl { filter: drop-shadow(0 1px 0 rgba(0,0,0,.08)); }

/* Animación */
@keyframes waSheen{
  0%{ background-position: 0% 50% }
  50%{ background-position: 100% 50% }
  100%{ background-position: 0% 50% }
}
@media (prefers-reduced-motion: reduce){
  .wa-callout-link{ animation: none; background-position: 50% 50% }
}

/* Copys */
.wa-title{ font-weight:800; letter-spacing:.3px; font-size:1rem; }
.wa-sub{ font-size:.875rem; opacity:.9; }

/* Responsive */
@media (max-width: 576px){
  .wa-title{ font-size:.95rem }
  .wa-sub{ font-size:.8rem }
}

/* Forzar texto legible (tema claro) dentro del modal */
#waSubscribeModal .modal-content { background:#fff; color:#111; }
#waSubscribeModal .form-label,
#waSubscribeModal .form-check-label,
#waSubscribeModal .modal-title { color:#111; }
#waSubscribeModal .form-text { color:#6c757d; }

/* Asegurar que textos largos no se corten */
#waSubscribeModal .form-check-label { white-space: normal; }

/* (Opcional) mejorar foco para accesibilidad */
#waSubscribeModal .form-control:focus,
#waSubscribeModal .form-check-input:focus {
  box-shadow: 0 0 0 .2rem rgba(200,157,70,.25);
  border-color: #c89d46;
}

/* ============================== */
/* PAGINADOR */
/* ============================== */
.paginador-custom .page-link {
    color: #333;
    border-radius: 0.5rem;
    margin: 0 4px;
    transition: all 0.2s ease-in-out;
}
.paginador-custom .page-item.active .page-link {
    background-color: #c9a538;
    border-color: #c9a538;
    color: #fff;
}
.paginador-custom .page-link:hover {
    background-color: #f5f5f5;
    color: #000;
    text-decoration: none;
}

/* ======= */
/* 404 */
/* ======= */

.hero-404 {
  height: 480px;
  overflow: hidden;
  background-color: #1A1A1A;
}

.banner-img-404 {
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

.hero-overlay {
  color: white;
  max-width: 600px;
  padding: 20px;
}

.hero-overlay h1 {
  color: #FFD700; /* Oro Brillante */
  text-shadow: 2px 2px 4px #000;
}

.text-gold {
  color: #C89D46;
}

.btn-gold-c {
  background-color: #C89D46;
  color: #fff;
  border: none;
}

.btn-gold-c:hover {
  background-color: #A6732D;
  color: #fff;
}

/* ===================== */
/* HISTORIAL DE COMPRAS */
/* ==================== */

#historial-float input::placeholder {
  font-size: 0.9rem;
  color: #ccc;
}

#historial-float .btn {
  font-size: 0.9rem;
}

#form-historial input::placeholder {
  font-style: italic;
}

button:hover i.bi-search {
  color: #000 !important;
}

