/* ReproBCN Performance - PrestaShop Module Styles */
.reprobcn-wrapper {
  background: #090b10;
  color: #f1f5f9;
  font-family: system-ui, -apple-system, sans-serif;
}
.reprobcn-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.reprobcn-hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  background: #000;
}
.reprobcn-carousel { position: relative; width: 100%; height: 100%; }
.reprobcn-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.reprobcn-slide.active { opacity: 1; }
.reprobcn-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.reprobcn-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #090b10, rgba(9,11,16,0.35), transparent);
}
.reprobcn-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}
.reprobcn-badge {
  display: inline-block;
  background: rgba(225,29,72,0.2);
  border: 1px solid rgba(225,29,72,0.5);
  color: #fb7185;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.reprobcn-hero-content h1 {
  font-size: 44px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin: 0 0 16px 0;
}
.reprobcn-hero-content h1 span { color: #e11d48; }
.reprobcn-hero-content p {
  max-width: 620px;
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.reprobcn-hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.reprobcn-btn-primary {
  background: #e11d48;
  color: #fff !important;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 14px;
}
.reprobcn-btn-primary:hover { background: #be123c; }
.reprobcn-btn-secondary {
  background: #18181b;
  border: 1px solid #3f3f46;
  color: #fff !important;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  display: inline-block;
  font-size: 14px;
}
.reprobcn-carousel-controls {
  position: absolute;
  bottom: 20px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 8px;
}
.reprobcn-carousel-controls button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  font-size: 20px;
  cursor: pointer;
}
.reprobcn-stats {
  background: #12161f;
  border-top: 1px solid #1f293d;
  border-bottom: 1px solid #1f293d;
  padding: 28px 0;
}
.reprobcn-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 30px; font-weight: 900; color: #fff; }
.stat-num.red { color: #e11d48; }
.stat-num.green { color: #34d399; }
.stat-num.amber { color: #fbbf24; }
.stat-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; font-weight: 600; margin-top: 4px; }

.reprobcn-calc-section { padding: 60px 0; }
.reprobcn-section-head { text-align: center; margin-bottom: 36px; }
.reprobcn-section-head .sub { color: #e11d48; font-size: 12px; font-weight: 800; letter-spacing: 1px; }
.reprobcn-section-head h2 { color: #fff; font-size: 32px; font-weight: 900; margin: 8px 0; }
.reprobcn-section-head p { color: #94a3b8; font-size: 14px; }
.reprobcn-calc-card {
  background: #12161f;
  border: 1px solid #1f293d;
  border-radius: 20px;
  padding: 30px;
}
.reprobcn-cat-logos {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}
.reprobcn-cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: #090b10;
  border: 1px solid #1f293d;
  border-radius: 12px;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.reprobcn-cat-btn svg {
  width: 34px;
  height: 24px;
  color: #cbd5e1;
  transition: transform 0.2s ease, color 0.2s ease;
}
.reprobcn-cat-btn span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}
.reprobcn-cat-btn:hover {
  border-color: #e11d48;
  color: #ffffff;
  background: rgba(225, 29, 72, 0.08);
}
.reprobcn-cat-btn:hover svg {
  color: #ffffff;
  transform: scale(1.08);
}
.reprobcn-cat-btn.active {
  border-color: #e11d48;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.22), rgba(225, 29, 72, 0.08));
  color: #ffffff;
  box-shadow: 0 0 16px rgba(225, 29, 72, 0.24);
}
.reprobcn-cat-btn.active svg {
  color: #e11d48;
}
.reprobcn-search-box { position: relative; margin-bottom: 20px; }
.reprobcn-search-box input {
  width: 100%;
  background: #090b10;
  border: 1px solid #1f293d;
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
}
.reprobcn-search-results {
  display: none;
  background: #090b10;
  border: 1px solid #1f293d;
  border-radius: 10px;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 6px;
}
.reprobcn-search-results button {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid #1f293d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-size: 13px;
}
.reprobcn-search-results button:hover { background: rgba(225,29,72,0.2); }
.reprobcn-selectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.reprobcn-selectors-grid label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 6px;
}
.reprobcn-selectors-grid select {
  width: 100%;
  background: #090b10;
  border: 1px solid #1f293d;
  border-radius: 10px;
  padding: 12px;
  color: #fff;
  font-weight: 600;
}
.reprobcn-result-box {
  background: #090b10;
  border: 1px solid #1f293d;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.reprobcn-result-left { display: flex; align-items: center; gap: 18px; }
.reprobcn-gif-box {
  width: 140px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid #e11d48;
  position: relative;
  flex-shrink: 0;
}
.reprobcn-gif-box img { width: 100%; height: 100%; object-fit: cover; }
.reprobcn-gif-box span {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: rgba(0,0,0,0.8);
  color: #e11d48;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
}
.tier-badge {
  display: inline-block;
  background: #e11d48;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.reprobcn-result-left h3 { color: #fff; margin: 0 0 4px 0; font-size: 20px; font-weight: 800; }
.engine-name { color: #e11d48; font-weight: 700; margin: 0 0 6px 0; font-size: 14px; }
.ecu-info { color: #94a3b8; font-size: 12px; }
.note-green { color: #34d399; font-weight: 600; }

.reprobcn-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(95px, 1fr));
  gap: 12px;
}
.metric-box {
  background: #000;
  border: 1px solid #1f293d;
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.metric-box.highlight {
  background: rgba(225,29,72,0.12);
  border-color: rgba(225,29,72,0.5);
}
.m-label { display: block; font-size: 10px; font-weight: 700; color: #94a3b8; }
.m-val { display: block; font-size: 24px; font-weight: 900; color: #fff; margin: 4px 0; }
.m-unit { font-size: 11px; color: #64748b; font-weight: 700; }
.m-unit.red { color: #e11d48; }

.reprobcn-result-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #1f293d;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}
.reprobcn-btn-wa {
  background: #059669;
  color: #fff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none !important;
}
.reprobcn-fs-banner { padding: 40px 0; }
.reprobcn-fs-card {
  background: linear-gradient(135deg, #12161f, #090b10);
  border: 1px solid #1f293d;
  border-radius: 20px;
  padding: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.fs-tag { color: #e11d48; font-size: 11px; font-weight: 800; }
.reprobcn-fs-card h2 { color: #fff; font-size: 28px; font-weight: 900; margin: 6px 0; }
.reprobcn-fs-card p { color: #94a3b8; max-width: 650px; margin: 0; font-size: 14px; }

.reprobcn-map-section { padding: 40px 0 60px; border-top: 1px solid #1f293d; }
.reprobcn-map-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  align-items: center;
}
.reprobcn-map-grid h3 { color: #fff; font-size: 24px; font-weight: 900; margin: 6px 0; }
.reprobcn-map-grid p { color: #94a3b8; font-size: 14px; }
.reprobcn-map-grid .addr { color: #fff; font-weight: 600; margin-top: 12px; }
.map-frame { border-radius: 16px; overflow: hidden; border: 1px solid #1f293d; }

.reprobcn-floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #10b981;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  z-index: 9999;
  text-decoration: none !important;
}

/* File service portal */
.reprobcn-fs-portal { padding: 20px 0; }
.reprobcn-fs-header { margin-bottom: 24px; }
.credits-bar {
  background: #12161f;
  color: #fff;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.credits-pill { background: #e11d48; padding: 6px 14px; border-radius: 20px; }
.fs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fs-upload-form, .fs-history { background: #fff; padding: 20px; border: 1px solid #ddd; border-radius: 10px; }
@media (max-width: 768px) {
  .reprobcn-map-grid, .fs-grid { grid-template-columns: 1fr; }
  .reprobcn-result-metrics { grid-template-columns: repeat(2, 1fr); }
}
/* ==========================================================================
   ReproBCN Performance - Tema Oscuro Motorsport Oficial para PrestaShop
   Contraste total para Ficha de Producto, Categorías, Carrito y Formularios
   ========================================================================== */

body, #wrapper, #main, #content-wrapper, .page-content {
  background-color: #090b10 !important;
  color: #e2e8f0 !important;
}

/* Cabecera y Menús */
#header, #header .header-nav, #header .header-top, #mobile_top_menu_wrapper {
  background-color: #090b10 !important;
  border-color: #1f293d !important;
}
#header a, .top-menu a, .header-nav a, #_desktop_user_info a, #_desktop_cart a,
.header-nav .material-icons, .header-top .material-icons, #_desktop_cart span {
  color: #f8fafc !important;
}
#header a:hover, .top-menu a:hover {
  color: #e11d48 !important;
}
.top-menu .sub-menu {
  background-color: #12161f !important;
  border: 1px solid #1f293d !important;
}

/* Migas de pan (Breadcrumb) */
.breadcrumb, .breadcrumb ol, .breadcrumb li, .breadcrumb li a, .breadcrumb li span {
  color: #94a3b8 !important;
}
.breadcrumb li:last-child span {
  color: #ffffff !important;
}

/* Títulos y Textos Generales */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .page-heading, .products-section-title,
.product-title a, .product-name {
  color: #ffffff !important;
}
p, span, li, td, th, dt, dd, label, .control-label, .form-control-label {
  color: #e2e8f0;
}

/* Tarjetas, Cajas, Ficha de Producto y Pestañas */
.product-miniature, .thumbnail-container, .product-description, .card, .card-block,
.block-categories, #search_filters, .tabs, .tab-content, .tab-pane,
.product-information, #product-details, .product-features, .cart-overview,
.cart-summary, .checkout-step, .block-promo, .modal-content, .popover, .dropdown-menu {
  background-color: #12161f !important;
  border-color: #1f293d !important;
  color: #e2e8f0 !important;
}

/* Textos dentro de la Ficha de Producto (donde PrestaShop suele poner gris oscuro) */
.product-information *, .product-description *, #product-details *,
.tabs *, .tab-content *, .product-prices *, .product-variants *,
.product-add-to-cart *, .product-discounts *, .block-reassurance *,
.product-features > dl.data-sheet dd, .product-features > dl.data-sheet dt {
  color: #e2e8f0 !important;
}
.product-features > dl.data-sheet dd:nth-of-type(even),
.product-features > dl.data-sheet dt:nth-of-type(even),
.product-features > dl.data-sheet dd:nth-of-type(odd),
.product-features > dl.data-sheet dt:nth-of-type(odd) {
  background-color: #0f141d !important;
  border-color: #1f293d !important;
}

/* Pestañas (Descripción / Detalles del producto) */
.tabs .nav-tabs {
  border-bottom: 1px solid #1f293d !important;
}
.tabs .nav-tabs .nav-link {
  color: #94a3b8 !important;
  background: transparent !important;
  border: none !important;
}
.tabs .nav-tabs .nav-link.active, .tabs .nav-tabs .nav-link:hover {
  color: #ffffff !important;
  border-bottom: 2px solid #e11d48 !important;
}

/* Precios */
.product-price-and-shipping .price, .current-price span, .product-price {
  color: #e11d48 !important;
  font-weight: 800 !important;
}
.regular-price {
  color: #64748b !important;
}

/* Formularios, Inputs, Buscador y Selectores */
input.form-control, select.form-control, textarea.form-control,
#search_widget input[type="text"], .bootstrap-touchspin input {
  background-color: #090b10 !important;
  border: 1px solid #2d3748 !important;
  color: #ffffff !important;
}
input.form-control::placeholder {
  color: #64748b !important;
}

/* Botones */
.btn-primary, .add-to-cart {
  background-color: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}
.btn-primary:hover, .add-to-cart:hover {
  background-color: #be123c !important;
  border-color: #be123c !important;
}
.btn-secondary, .btn-default {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}

/* Pie de página (Footer) */
#footer, .footer-container {
  background-color: #05070a !important;
  border-top: 1px solid #1f293d !important;
  color: #94a3b8 !important;
}
#footer a, #footer .h3, #footer p, #footer li {
  color: #cbd5e1 !important;
}
#footer a:hover {
  color: #e11d48 !important;
}

/* Cuidado: si algún texto de descripción viene con style="color:#000000" desde el editor de PrestaShop */
#description [style*="color"], .product-description [style*="color"], .rte [style*="color"] {
  color: #e2e8f0 !important;
}

/* Cuadro de Instrumentos con Agujas Animadas */
.reprobcn-gauges-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.reprobcn-gauge-card {
  background: #06080c;
  border: 1px solid #1f293d;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 12px;
}
.reprobcn-gauge-svg {
  width: 170px;
  height: 110px;
}
.reprobcn-gauge-svg path {
  transition: stroke-dashoffset 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.gauge-readout {
  text-align: right;
}
.gauge-readout .g-val {
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
}
.gauge-readout .g-gain {
  display: inline-block;
  margin-top: 4px;
  background: rgba(225, 29, 72, 0.2);
  color: #fb7185;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.gauge-readout .g-gain.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
@media (max-width: 768px) {
  .reprobcn-gauges-row { grid-template-columns: 1fr; }
}

/* ==========================================================================
   COMPATIBILIDAD TOTAL MÓVIL (iOS & Android)
   ========================================================================== */
.reprobcn-wrapper, .reprobcn-wrapper * {
  box-sizing: border-box;
}
.reprobcn-wrapper {
  overflow-x: hidden;
  width: 100%;
}

@media (max-width: 768px) {
  .reprobcn-container {
    padding: 0 14px;
  }
  .reprobcn-hero {
    height: auto;
    min-height: 430px;
  }
  .reprobcn-hero-content {
    position: relative;
    padding: 40px 0 65px;
  }
  .reprobcn-hero-content h1 {
    font-size: 28px;
  }
  .reprobcn-hero-content p {
    font-size: 14px;
    margin-bottom: 18px;
  }
  .reprobcn-hero-btns {
    flex-direction: column;
    width: 100%;
  }
  .reprobcn-btn-primary, .reprobcn-btn-secondary, .reprobcn-btn-wa {
    width: 100%;
    text-align: center;
  }
  .reprobcn-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .stat-num {
    font-size: 22px;
  }
  .reprobcn-calc-section {
    padding: 36px 0;
  }
  .reprobcn-section-head h2 {
    font-size: 24px;
  }
  .reprobcn-calc-card {
    padding: 16px;
    border-radius: 14px;
  }
  .reprobcn-cat-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }
  .reprobcn-cat-btn {
    padding: 10px 6px;
  }
  .reprobcn-cat-btn span {
    font-size: 10px;
  }
  .reprobcn-search-box input,
  .reprobcn-selectors-grid select {
    font-size: 16px; /* Evita zoom automático en iPhone */
  }
  .reprobcn-result-box {
    padding: 16px;
    gap: 16px;
  }
  .reprobcn-result-left {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 14px;
  }
  .reprobcn-result-left > div:first-child {
    width: 100%;
    justify-content: space-between;
  }
  .reprobcn-gif-box {
    width: 48%;
    height: 105px;
  }
  .reprobcn-result-metrics {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .reprobcn-gauge-card {
    flex-direction: column;
    text-align: center;
    padding: 14px;
  }
  .gauge-readout {
    text-align: center;
  }
  .reprobcn-fs-card {
    padding: 20px;
  }
  .reprobcn-fs-card h2 {
    font-size: 22px;
  }
  .reprobcn-floating-wa {
    width: 48px;
    height: 48px;
    bottom: 16px;
    right: 16px;
    font-size: 22px;
  }
}
