/* Black Friday 2026 - landing /black-friday. Fondo negro (UX s36 ATR-05), cian #00d2ff, boton #4e67cb (T2.1) */
body:has(.bf-landing), .bf-landing { background: #0d0d0d; }
.bf-landing { padding: 0 0 40px; }

/* --- Portada solo de texto (T1.1 / UX ATR-02) --- */
.bf-hero { background: #000; color: #fdfeff; text-align: center; padding: 20px 12px 16px; }
.bf-hero__kicker { font: 600 14px/1.2 var(--font-family-barlow_condensed), 'Barlow Condensed', sans-serif; letter-spacing: 1.4px; text-transform: uppercase; color: #00d2ff; margin: 0 0 4px; }
.bf-hero h1 { font: 600 34px/1 var(--font-family-barlow_condensed), 'Barlow Condensed', sans-serif; letter-spacing: -.64px; text-transform: uppercase; color: #fdfeff; margin: 0 0 14px; }
.bf-hero__precio { color: #00d2ff; }
.bf-hero__sub { font: 600 22px/1.1 var(--font-family-barlow_condensed), 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: .2px; color: #fdfeff; margin: 0; }
.bf-hero__fechas { font: 400 13px/1.45 var(--font-family-poppins), Poppins, sans-serif; color: rgba(253, 254, 255, .82); margin: 12px 0 0; }
.bf-hero__fechas b { font-weight: 600; color: #fdfeff; }
@media (min-width: 768px) {
  .bf-hero { padding: 30px 16px 26px; }
  .bf-hero h1 { font-size: 52px; margin-bottom: 18px; }
  .bf-hero__sub { font-size: 30px; }
  .bf-hero__fechas { font-size: 14px; }
  .bf-seccion__titulo { font-size: 40px; }
}

/* --- Pildoras (T1.1 / T2.1 / UX ATR-03) --- */
.bf-filtros { position: relative; z-index: 8; background: #0d0d0d; }
/* Fijas por encima del pie (#contenido_pie lleva z-index 10): en iPhone, el rebote del final del scroll lo subia por
   encima de las pildoras */
.bf-filtros.bf-fija { position: fixed; left: 0; right: 0; top: 0; z-index: 11; box-shadow: 0 6px 14px rgba(0, 0, 0, .45); }
.bf-pildoras-1, .bf-pildoras-2 {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0;
  -webkit-mask-image: linear-gradient(90deg, var(--bf-mi, #000) 0, var(--bf-mi, #000) 12px, #000 40px, #000 85%, var(--bf-md, transparent));
  mask-image: linear-gradient(90deg, var(--bf-mi, #000) 0, var(--bf-mi, #000) 12px, #000 40px, #000 85%, var(--bf-md, transparent));
}
.bf-pildoras-1::-webkit-scrollbar, .bf-pildoras-2::-webkit-scrollbar { display: none; }
.bf-pildoras-1.ini, .bf-pildoras-2.ini { --bf-mi: transparent; }
.bf-pildoras-1.fin, .bf-pildoras-2.fin { --bf-md: #000; }
.bf-pildoras-1.cabe, .bf-pildoras-2.cabe { -webkit-mask-image: none; mask-image: none; }
.bf-pildoras-1 { padding: 16px 15px 0; }
.bf-pildoras-2 { padding: 12px 15px 0; }
.bf-pildoras-2[hidden] { display: none; }
.bf-pildoras-1 button {
  flex: 0 0 auto; border-radius: 999px; padding: 10px 18px; font: 700 14px/1 Poppins, sans-serif;
  white-space: nowrap; cursor: pointer; background: #fff; color: #111; border: 2px solid #111;
}
.bf-pildoras-1 button.on { background: #00d2ff; border-color: #00d2ff; color: #111; }
/* 2a fila en contorno */
.bf-pildoras-2 button {
  flex: 0 0 auto; border-radius: 999px; padding: 7px 18px; font: 600 13px/1 Poppins, sans-serif;
  white-space: nowrap; cursor: pointer; background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .45);
}
.bf-pildoras-2 button.on { background: #fff; border-color: #fff; color: #111; }

/* Sin subcategorias, la 2a fila deja su hueco (salvo en "Ver tod0" y con las pildoras fijas) (T1.1 "Espacios") */
/* Lo que mide la 2a fila : 43px en PC y 42px en movil */
.bf-landing.bf-con-filtro:not(.bf-con-sub) .bf-pildoras-2-hueco { min-height: 43px; }
@media (max-width: 767px) { .bf-landing.bf-con-filtro:not(.bf-con-sub) .bf-pildoras-2-hueco { min-height: 42px; } }
.bf-filtros.bf-fija .bf-pildoras-2-hueco { min-height: 0 !important; }
/* Fijas : entre filas 12px, como sin fijar, y 12px debajo de la ultima. La barra de FILTRAR ya no va en la zona fija */
.bf-filtros.bf-fija { padding-bottom: 12px; }

/* PC: centradas */
@media (min-width: 992px) {
  .bf-pildoras-1 > button:first-child, .bf-pildoras-2 > button:first-child { margin-left: auto; }
  .bf-pildoras-1 > button:last-child, .bf-pildoras-2 > button:last-child { margin-right: auto; }
}
@media (max-width: 767px) {
  .bf-pildoras-1 { padding: 10px 12px 0; gap: 8px; }
  .bf-pildoras-1 button { padding: 9px 14px; font-size: 13px; }
  .bf-pildoras-2 { padding: 12px 12px 0; gap: 8px; }
  .bf-pildoras-2 button { padding: 7px 14px; font-size: 12px; }
}

/* --- Ver tod0 / filtrado --- */
.bf-landing:not(.bf-con-filtro) .bf-filtrado { display: none; }
.bf-landing.bf-con-filtro .bf-ver-todo { display: none; }

/* Espacios: de las pildoras a lo siguiente (titulo o subcategorias) 18px; de ahi a los productos 22px PC / 13px movil */
.bf-seccion { padding-top: 18px; }
.bf-seccion__titulo { margin: 0 0 22px; text-align: center; text-transform: uppercase; color: #fff; font: 600 26px/1.15 var(--font-family-barlow_condensed), 'Barlow Condensed', sans-serif; letter-spacing: -.96px; }
@media (min-width: 768px) {
  .bf-seccion__titulo { font-size: 40px; }
}
.bf-seccion:not(:has(.bf-seccion__titulo)) .bf-grid { margin-top: 22px; }
@media (max-width: 767px) {
  .bf-seccion__titulo { margin-bottom: 13px; }
  .bf-seccion:not(:has(.bf-seccion__titulo)) .bf-grid { margin-top: 13px; }
}

/* 5 por fila en PC, a tod0 el ancho; 2 en movil */
.bf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0 12px; }
@media (min-width: 992px) { .bf-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; padding: 0 21px; } }
/* en PC 5x5 = 25. Llegan 26 (2x13 en movil): la 26 no se ve mientras sea la ultima y quede "Mostrar mas" */
@media (min-width: 992px) {
  .bf-seccion:has(.bf-mostrar-mas) .bf-grid > .bf-celda:nth-child(26):last-child { display: none; }
}
/* Foto con la proporcion de la web (720x800) aunque sea cuadrada: todas las tarjetas miden igual */
.bf-grid .product-card .product-imagen, .bf-grid .product-card .overlap-group-1 { aspect-ratio: 720 / 800; }
.bf-grid .product-card .img-product { width: 100%; height: 100%; object-fit: cover; }

/* Boton "Ver todas las..." como el "COMPRAR" del banner (T2.1) */
.bf-seccion__mas { text-align: center; margin: 22px 0 8px; }
.bf-boton {
  display: inline-block; background: #4e67cb; color: #fff !important; border: 2px solid #00d2ff;
  border-radius: 999px; padding: 10px 28px; font: 700 16px/24px Poppins, sans-serif; text-decoration: none;
}

/* Black Friday 2026 (marketing 09/11): boton de los bloques de "Ver tod0", como la pildora "Ver tod0" encendida */
.bf-boton--cian { background: #00d2ff; border-color: #00d2ff; color: #111 !important; }
/* "Mostrar mas" es un <button>: que se vea igual que el enlace */
button.bf-boton { cursor: pointer; }
button.bf-boton:disabled { opacity: .6; cursor: progress; }

.bf-cargando { min-height: 60vh; }

/* Pestaña sin productos */
.bf-vacio { color: #fdfeff; text-align: center; font: 400 15px/1.5 Poppins, sans-serif; padding: 48px 16px 64px; margin: 0; }

/* --- Filtros de talla y color (marketing 16/11, UX Lab s36) --- */
/* Barra debajo de las pildoras: FILTRAR (gris; cian y con contador si hay filtros) y el resumen */
.bf-barra { display: flex; align-items: center; gap: 14px; padding: 12px 15px 0; }
.bf-filtrar {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; background: none; border: 0; padding: 4px 0; cursor: pointer;
  color: #c3cad3; font: 600 12px/1 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .6px;
}
.bf-filtrar svg { width: 18px; height: 18px; flex: 0 0 18px; }
.bf-filtrar.activo { color: #00d2ff; }
.bf-filtrar__n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #00d2ff; color: #000; font: 700 11px/18px Poppins, sans-serif; text-align: center; }
.bf-filtrar__n[hidden] { display: none; }
.bf-resumen { color: #cfd6df; font: 400 13px/1.3 Poppins, sans-serif; }
.bf-resumen b { color: #fff; font-weight: 700; }
.bf-resumen .bf-quitar-filtros { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 767px) {
  .bf-barra { padding: 12px 12px 0; }
  .bf-resumen { font-size: 12px; }
  .bf-resumen__detalle { display: none; } /* en movil solo "5 productos" */
}

/* Panel: hoja desde abajo en movil (max. 86% del alto) y cajon lateral izquierdo de 380px en PC */
html.bf-panel-abierto, html.bf-panel-abierto body { overflow: hidden; }
.bf-panel { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 1100; }
.bf-panel[hidden] { display: none; }
.bf-panel__fondo { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(0, 0, 0, .6); }
.bf-panel__caja {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; display: flex; flex-direction: column;
  background: #fff; color: #111; border-radius: 18px 18px 0 0; font-family: Poppins, sans-serif;
}
@media (min-width: 768px) {
  .bf-panel__caja { top: 0; right: auto; width: 380px; max-width: 92%; max-height: none; border-radius: 0 16px 16px 0; }
}
.bf-panel__cab { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid #e6e6e6; }
.bf-panel__cab h2 { margin: 0; font: 700 16px/1 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .6px; color: #111; }
.bf-panel__x { background: none; border: 0; padding: 0 4px; font: 400 30px/1 Poppins, sans-serif; color: #111; cursor: pointer; }
.bf-panel__cuerpo { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px 20px; }
.bf-panel__cargando { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.bf-panel__cargando::after { content: ''; width: 28px; height: 28px; border: 3px solid #e5e7eb; border-top-color: #111; border-radius: 50%; animation: bf-girar .8s linear infinite; }
@keyframes bf-girar { to { transform: rotate(360deg); } }
/* Con el panel de filtros o el pop-up de talla abiertos, el botón flotante de Cookiebot tapaba "Limpiar"
   y "Añadir a la cesta" (marketing 18/11) */
html.bf-panel-abierto #CookiebotWidget,
html:has(#popupFichaPrev.show) #CookiebotWidget { display: none !important; }
/* Landing BF: sin el boton flotante de Cookiebot (marketing 18/11) */
/*#CookiebotWidget { display: none !important; }*/
/* Pildora FILTRAR fija abajo (marketing 18/11, UX Lab s36): sale cuando la barra de arriba deja de verse */
.bf-flota {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 1000;
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 22px;
  background: #111; color: #fff; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5); cursor: pointer;
  font: 700 13px/1 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .8px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.bf-flota--ver { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.bf-flota svg { width: 18px; height: 18px; flex: 0 0 18px; }
@media (min-width: 768px) {
  .bf-flota { height: 52px; bottom: 24px; padding: 0 26px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .bf-flota { transition: none; } }
.bf-panel__grupo h3 { margin: 18px 0 10px; font: 600 12px/1 Poppins, sans-serif; text-transform: uppercase; letter-spacing: .8px; color: #6b7280; }
.bf-panel__grupo h4 { margin: 12px 0 8px; font: 600 13px/1 Poppins, sans-serif; color: #111; }

/* Tallas: 4 columnas, borde negro de 2px. Marcada: cian. Sin stock: tachada al 28% */
.bf-tallas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bf-talla { padding: 10px 4px; border: 2px solid #111; border-radius: 8px; background: #fff; color: #111; font: 600 13px/1.2 Poppins, sans-serif; cursor: pointer; }
.bf-talla.on { background: #00d2ff; border-color: #00d2ff; }

/* Colores: 2 columnas, circulo + nombre. Marcado: pastilla con borde cian y fondo cian muy claro */
.bf-colores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.bf-color {
  display: flex; align-items: center; gap: 10px; padding: 6px 10px 6px 6px; border: 2px solid transparent; border-radius: 999px;
  background: none; color: #111; font: 500 13px/1.2 Poppins, sans-serif; text-align: left; cursor: pointer;
}
.bf-color i { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.bf-color.on { border-color: #00d2ff; background: #e6faff; }
.bf-color--extra { display: none; }
.bf-panel--todos .bf-color--extra { display: flex; }
.bf-panel--todos .bf-ver-colores { display: none; }
.bf-ver-colores { margin: 12px 0 0; padding: 0; background: none; border: 0; color: #111; font: 600 13px/1 Poppins, sans-serif; text-decoration: underline; cursor: pointer; }
.bf-talla.no, .bf-color.no { opacity: .28; text-decoration: line-through; }
.bf-talla:disabled, .bf-color:disabled { cursor: not-allowed; }

/* Pie: "Limpiar" subrayado (apagado si no hay nada marcado) y "Ver N productos" cian, a tod0 el ancho que queda */
.bf-panel__pie { display: flex; align-items: center; gap: 16px; padding: 14px 20px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e6e6e6; }
.bf-panel__limpiar { background: none; border: 0; padding: 0; color: #111; font: 600 14px/1 Poppins, sans-serif; text-decoration: underline; cursor: pointer; }
.bf-panel__limpiar:disabled { opacity: .35; cursor: default; }
.bf-panel__ver { flex: 1 1 auto; padding: 14px 16px; border: 0; border-radius: 999px; background: #00d2ff; color: #111; font: 700 15px/1 Poppins, sans-serif; cursor: pointer; }
.bf-panel__ver:disabled { opacity: .5; cursor: default; }

/* Sin resultados con filtros: titulo Barlow Condensed 24px en mayusculas, texto gris y "Quitar filtros" */
.bf-sin-resultados { text-align: center; padding: 48px 16px 64px; color: #cfd6df; }
.bf-sin-resultados h2 { margin: 0 0 10px; color: #fff; text-transform: uppercase; font: 600 24px/1.15 var(--font-family-barlow_condensed), 'Barlow Condensed', sans-serif; }
.bf-sin-resultados p { margin: 0 0 22px; font: 400 15px/1.5 Poppins, sans-serif; }


/* --- Añadir al carrito desde la tarjeta en móvil y tablet (pantallas tactiles, sin hover) --- */
@media (max-width: 767px), (hover: none) {
  /* El boton de la tarjeta, siempre visible (no hay hover): circulo blanco con "+" centrado abajo de la foto.
     El texto "Anadir al carrito" sigue en el HTML pero no se ve (font-size 0); el "+" son dos lineas de fondo */
  .bf-grid .product-card .boton_meter_carrito {
    display: block; opacity: 1; visibility: visible;
    top: auto; bottom: calc(100% + 12px); left: 50%; right: auto;
    width: 40px; height: 40px; margin-left: -20px; padding: 0;
    border-radius: 50%; font-size: 0; color: transparent; overflow: hidden;
    background-color: #fff;
    background-image: linear-gradient(#1d1d1b, #1d1d1b), linear-gradient(#1d1d1b, #1d1d1b);
    background-size: 14px 2px, 2px 14px;
    background-position: center; background-repeat: no-repeat;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  }
  /* Mientras llegan los datos del pop-up de talla (marketing 19/11): el "+" pasa a circulito girando */
  .bf-grid .product-card .boton_meter_carrito.cargando { background-image: none; }
  .bf-grid .product-card .boton_meter_carrito.cargando::after {
    content: ''; position: absolute; inset: 11px;
    border: 2px solid #d9d9d9; border-top-color: #1d1d1b; border-radius: 50%;
    animation: bf-girar .8s linear infinite;
  }
}

/* --- Pop-up de talla en tablet vertical: globals.css (max-width 940px) le pone top 80px pero deja el
   translate(-50%,-50%) del centrado y se sale por arriba. Aqui vuelve al centro de la pantalla --- */
@media (min-width: 768px) and (max-width: 940px) {
  #popupFichaPrev { top: 50%; max-height: 90vh; max-height: 90dvh; }
}

/* --- Pop-up de talla en móvil --- */
@media (max-width: 767px) {
  /* Pop-up de talla: hoja desde abajo, compacta y con "Añadir a la cesta" siempre a la vista */
  #popupFichaPrev {
    top: auto; bottom: 0; left: 0; right: 0; width: 100%; max-width: none; height: auto; min-height: 0;
    max-height: 90vh; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
    transform: translateY(100%); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .35);
    opacity: 1;
    transition: transform .3s ease, box-shadow .3s ease, visibility 0s linear .3s;
  }
  #popupFichaPrev.show { transform: none; transition: transform .3s ease, box-shadow .3s ease, visibility 0s; }
  #popupFichaPrev .popup-header h4 { font-size: 19px; line-height: 1.1; text-align: left !important; padding: 18px 50px 0 18px; margin: 0 0 4px; }
  /*la 'equis X' de cerrar globals.css (max-width 540px) la fija arriba de la pantalla: aqui va dentro de la hoja, arriba a la derecha */
  #popupFichaPrev .popup-header .canvas_close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; background: none; border-radius: 0; z-index: 3; font-size: 22px; }
  #popupFichaPrev .popup-ficha-prev { padding: 8px 18px 16px; margin: 0; }
  #popupFichaPrev .popup-ficha-prev > [class*="col-"] { padding: 0; }
  /* Producto en una fila: foto pequeña a la izquierda y nombre, autor y precio al lado */
  /* Marketing 19/11: la foto pegada al borde y abajo a la izquierda. Relleno en la caja y la foto sin el margin-top de globals.css */
  #popupFichaPrev .popup-ficha-prev article.product-card { display: flex; align-items: center; gap: 12px; height: auto; margin: 0 0 6px; padding: 10px; box-shadow: none; background: none; border-radius: 10px; }
  #popupFichaPrev .popup-ficha-prev article.product-card .product-imagen { flex: 0 0 64px; width: 64px; height: 72px; margin: 0; aspect-ratio: auto; border-radius: 6px; overflow: hidden; background: #f5f5f5 !important; }
  #popupFichaPrev .popup-ficha-prev article.product-card .overlap-group-1 { width: 100%; height: 100%; aspect-ratio: auto; }
  #popupFichaPrev .popup-ficha-prev article.product-card .product-imagen img { min-height: 0; width: 100%; height: 100%; object-fit: cover; }
  #popupFichaPrev .popup-ficha-prev article.product-card .product-textos { padding: 0; flex: 1 1 auto; min-width: 0; background: none; }
  #popupFichaPrev .popup-ficha-prev article.product-card .nombre-producto { font-size: 17px; }
  #popupFichaPrev .bloque-categorias, #popupFichaPrev .bloque-tallas, #popupFichaPrev .bloque-cantidad { margin-left: 0; margin-right: 0; }
  /* Sin el margen interior de Bootstrap (.row > *): tallas, color y cantidad alineados con lo demás */
  #popupFichaPrev .bloque-categorias > *, #popupFichaPrev .bloque-tallas > *, #popupFichaPrev .bloque-cantidad > * { padding-left: 0; padding-right: 0; }
  #popupFichaPrev .bloque-categorias { padding: 4px 0 6px; width: auto; }
  #popupFichaPrev .bloque-categorias .cat { padding: 4px 14px; margin: 0 8px 0 0; }
  #popupFichaPrev .bloque-tallas { padding: 2px 0; }
  #popupFichaPrev .selecciona-tu-talla { font-size: 14px; margin: 4px 0; padding: 0; }
  /* Tallas en una fila (XS-3XL caben en 375px) */
  #popupFichaPrev .lista-tallas { display: flex; flex-wrap: wrap; gap: 6px; }
  #popupFichaPrev .talla, #popupFichaPrev .talla:last-child, #popupFichaPrev .talla:nth-child(6) { height: 36px; min-width: 40px; font-size: 14px; padding: 4px 6px; margin: 0; }
  #popupFichaPrev .bloque-cantidad { padding: 10px 0 4px; gap: 16px; }
  /* Avisos ("Producto añadido", error de talla) a tod0 el ancho y separados del botón */
  #popupFichaPrev #aviso_producto_anadido_cesta, #popupFichaPrev #aviso_error_talla { width: auto; margin: 10px 0 0; padding-left: 12px; padding-right: 12px; }
  /* El botón se queda pegado abajo si hubiera que hacer scroll */
  #popupFichaPrev .btn-meter-cesta {
    position: sticky; bottom: 12px; z-index: 2; width: 100%; margin: 14px 0 0;
    box-shadow: 0 0 0 12px #fff;
  }
  /* Con la hoja abierta, la web de detras se oscurece (como en UX Lab s36) */
  #popupFichaPrev.show { box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  /* Tocar lo oscuro solo cierra la hoja (lo hace meter_carrito_popup.js al pulsar fuera): sin esto, el toque
     también abriría la tarjeta o el enlace que hay debajo */
  html:has(#popupFichaPrev.show) .bf-landing { pointer-events: none; }
  /* La píldora FILTRAR de abajo no se queda por encima de lo oscuro */
  html:has(#popupFichaPrev.show) .bf-flota { opacity: 0; visibility: hidden; }
}