/* ============================================================
   IRON SHOP - Dark Fitness Theme (Ultra-Aggressive)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Oswald:wght@500;600;700&display=swap');

/* ========== OCULTAR BLOQUES DEMO ========== */
#custom-text,
.custom-text-block,
.banner,
#_desktop_imageslider,
.product-flag.discount-percentage,
.product-flag.new,
.product-flag.online-only { display: none !important; }

/* ========== SECCIÓN HERO HOMEPAGE IRON SHOP (sustituto) ========== */
body.index #wrapper > .container::before {
  content: '';
  display: block;
  width: 100%;
  min-height: 350px;
  background: linear-gradient(135deg, rgba(13,13,13,0.85), rgba(230,0,0,0.45)),
              url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1600&q=80') center/cover;
  margin: -30px -15px 30px;
  border-bottom: 4px solid #E60000;
  position: relative;
}
body.index #wrapper > .container::after {
  content: 'IRON SHOP\A NUTRICIÓN DEPORTIVA DE ELITE\A by Toni Gutiérrez';
  white-space: pre;
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 2.8rem;
  font-weight: 700;
  letter-spacing: 6px;
  color: #FFFFFF;
  text-shadow: 3px 3px 12px rgba(0,0,0,0.9);
  text-align: center;
  line-height: 1.4;
  z-index: 2;
}


/* ========== FONDO GLOBAL ========== */
html, html body, body, #wrapper, #main, #content, #content-wrapper, .page-wrapper, .page-content {
  background-color: #0D0D0D !important;
  color: #FFFFFF !important;
  font-family: 'Inter', -apple-system, sans-serif !important;
}

/* ========== HEADER ========== */
header#header, #header, .header-top, .header-nav {
  background-color: #050505 !important;
  border-bottom: 3px solid #E60000 !important;
  box-shadow: 0 2px 15px rgba(230,0,0,0.2) !important;
}
.header-top { background-color: #050505 !important; }
.header-nav { background-color: #000 !important; border-bottom: 1px solid #1a1a1a !important; }

header *, #header *, .header-top *, .header-nav * { color: #FFFFFF !important; }
header a, #header a, .header-top a, .header-nav a {
  color: #FFFFFF !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}
header a:hover, #header a:hover { color: #E60000 !important; }

/* Carrito */
.blockcart, .blockcart .header { background-color: #1A1A1A !important; }
.blockcart .cart-products-count, .header-nav .cart-preview .cart-products-count {
  background-color: #E60000 !important;
  color: #FFFFFF !important;
}

.logo, #_desktop_logo, .header-top .logo { filter: brightness(1.2); }

/* ========== TÍTULOS ========== */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Oswald', sans-serif !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
}

p, span, li, td, label { color: #E0E0E0 !important; }
a:not([style*="background"]):not(.btn):not(.cta):not([class*="btn"]) { color: #E60000 !important; }
a:not([style*="background"]):not(.btn):not(.cta):not([class*="btn"]):hover { color: #FF3333 !important; text-decoration: none !important; }
/* Links con background mantienen su color blanco/inline */
a[style*="background:#E60000"], a[style*="background: #E60000"],
a[style*="background:#B30000"], a[style*="background:#FFF"] {
  color: inherit !important;
}
a[style*="color:#FFF"] { color: #FFFFFF !important; }

/* ========== HERO / SLIDER ========== */
#carousel, .carousel, #_desktop_imageslider {
  background-color: #050505 !important;
  border-bottom: 3px solid #E60000 !important;
}
#carousel .carousel-item, .carousel-item { filter: brightness(0.85) contrast(1.1) !important; }
#carousel .caption-description, .carousel .caption-description { color: #FFFFFF !important; }
#carousel .caption-description p { color: #FFFFFF !important; }

.banner img, .block-categories img { filter: brightness(0.8) !important; }

/* ========== PRODUCTOS ========== */
.product-miniature, .product-miniature .thumbnail-container, article.product-miniature {
  background-color: #1A1A1A !important;
  border: 1px solid #2D2D2D !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  transition: all 0.3s !important;
}
.product-miniature:hover {
  border-color: #E60000 !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(230,0,0,0.25) !important;
}
.product-miniature img { background-color: #FFFFFF !important; border-radius: 4px !important; }
.product-miniature .product-title, .product-miniature .product-title a, .product-miniature h2, .product-miniature h2 a {
  color: #FFFFFF !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
}
.product-miniature .price, .product-miniature .product-price-and-shipping .price, .product-price {
  color: #E60000 !important;
  font-family: 'Oswald', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
}
.regular-price, del { color: #888 !important; text-decoration: line-through !important; }
.discount, .on-sale {
  background-color: #E60000 !important;
  color: #FFFFFF !important;
  font-family: 'Oswald', sans-serif !important;
}

/* ========== BOTONES ========== */
.btn, .btn-primary, button, input[type="submit"], .add-to-cart, button[data-button-action="add-to-cart"] {
  background-color: #E60000 !important;
  border-color: #E60000 !important;
  color: #FFFFFF !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-radius: 4px !important;
}
.btn:hover, .btn-primary:hover, button:hover {
  background-color: #B30000 !important;
  border-color: #B30000 !important;
  color: #FFFFFF !important;
}
.btn-secondary, .btn-outline {
  background-color: transparent !important;
  border: 2px solid #E60000 !important;
  color: #E60000 !important;
}
.btn-secondary:hover { background-color: #E60000 !important; color: #FFFFFF !important; }

/* ========== FORMULARIOS ========== */
input, textarea, select, .form-control {
  background-color: #1A1A1A !important;
  border: 1px solid #2D2D2D !important;
  color: #FFFFFF !important;
  border-radius: 4px !important;
}
input:focus, textarea:focus, select:focus, .form-control:focus {
  border-color: #E60000 !important;
  box-shadow: 0 0 0 2px rgba(230,0,0,0.25) !important;
  background-color: #1A1A1A !important;
  color: #FFFFFF !important;
}
::placeholder { color: #888 !important; }

/* ========== FOOTER ========== */
#footer, .footer-container, footer {
  background-color: #050505 !important;
  border-top: 3px solid #E60000 !important;
  color: #A0A0A0 !important;
}
#footer * { color: #A0A0A0 !important; }
#footer a { color: #A0A0A0 !important; }
#footer a:hover { color: #E60000 !important; }
#footer h3, #footer .h3, #footer .title_block, .footer-container h3 {
  font-family: 'Oswald', sans-serif !important;
  color: #FFFFFF !important;
  border-left: 4px solid #E60000 !important;
  padding-left: 12px !important;
  text-transform: uppercase !important;
}

/* ========== BLOQUES CUSTOM TEXT ========== */
.block_custom_text, #ps_customtextblock, .custom-text {
  background-color: #0D0D0D !important;
  color: #FFFFFF !important;
  padding: 40px 20px !important;
}
.block_custom_text *, #ps_customtextblock *, .custom-text * { color: #FFFFFF !important; }

/* ========== SECCIONES ========== */
section, .featured-products, .home-products {
  background-color: #0D0D0D !important;
  padding: 40px 0 !important;
}
.products-section-title, .featured-products-title, h2.products-section-title {
  font-family: 'Oswald', sans-serif !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 3px !important;
  text-align: center !important;
  position: relative !important;
  margin-bottom: 30px !important;
}
.products-section-title::after, .featured-products-title::after, h2.products-section-title::after {
  content: '' !important;
  display: block !important;
  width: 80px !important;
  height: 3px !important;
  background-color: #E60000 !important;
  margin: 15px auto 0 !important;
}

/* ========== BREADCRUMB ========== */
.breadcrumb, nav.breadcrumb { background-color: transparent !important; border: none !important; }
.breadcrumb a, .breadcrumb-item a { color: #888 !important; }
.breadcrumb-item.active, .breadcrumb-item.active span { color: #E60000 !important; }

/* ========== PRODUCTO DETALLE ========== */
#product, .product-information, .product-actions {
  background-color: #0D0D0D !important;
  color: #FFFFFF !important;
}
#product .h1, #product h1 { color: #FFFFFF !important; font-family: 'Oswald', sans-serif !important; }
.current-price, .product-prices .current-price {
  color: #E60000 !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 2rem !important;
}

/* ========== CATEGORÍA ========== */
#category, .category-cover { background-color: #0D0D0D !important; }
#category .block-category { background-color: #0D0D0D !important; }
.block-category h1, #category h1 { color: #FFFFFF !important; font-family: 'Oswald', sans-serif !important; }

/* ========== CARRITO ========== */
.cart-summary, .cart-detailed {
  background-color: #1A1A1A !important;
  border: 1px solid #2D2D2D !important;
  border-radius: 8px !important;
  color: #FFFFFF !important;
}
.cart-summary * { color: #FFFFFF !important; }
.cart-summary .value, .cart-total {
  color: #E60000 !important;
  font-weight: 700 !important;
  font-family: 'Oswald', sans-serif !important;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0D0D0D; }
::-webkit-scrollbar-thumb { background: #E60000; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #B30000; }

/* ========== TÍTULOS DE BLOQUES ========== */
.title_block, .h2.title_block {
  font-family: 'Oswald', sans-serif !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  border-left: 4px solid #E60000 !important;
  padding-left: 15px !important;
}

/* ========== TOP MENU ========== */
.top-menu, .top-menu .menu-content { background-color: #050505 !important; }
.top-menu li a, .top-menu a.dropdown-item {
  color: #FFFFFF !important;
  font-family: 'Oswald', sans-serif !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
}
.top-menu li a:hover, .top-menu li.active > a { color: #E60000 !important; border-bottom: 2px solid #E60000 !important; }

/* ========== DROPDOWN PRODUCTOS ========== */
.dropdown-menu, .submenu { background-color: #1A1A1A !important; border: 1px solid #2D2D2D !important; }
.dropdown-item, .dropdown-menu a { color: #FFFFFF !important; }
.dropdown-item:hover, .dropdown-menu a:hover { background-color: #2D2D2D !important; color: #E60000 !important; }

/* Flecha del dropdown Productos */
#li-productos > a { position: relative; display: flex !important; align-items: center !important; gap: 4px !important; }
#li-productos > a .chevron-menu {
  font-size: 18px !important;
  transition: transform 0.25s ease !important;
  vertical-align: middle !important;
  line-height: 1 !important;
}
#li-productos:hover > a .chevron-menu,
#li-productos.active > a .chevron-menu { transform: rotate(180deg) !important; }

/* Submenú desplegable Productos en desktop */
#li-productos .sub-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  min-width: 220px !important;
  background-color: #111 !important;
  border: 1px solid #E60000 !important;
  border-top: 3px solid #E60000 !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 8px 30px rgba(230,0,0,0.2) !important;
  z-index: 9999 !important;
  padding: 8px 0 !important;
}
#li-productos .sub-menu li { width: 100% !important; }
#li-productos .sub-menu li a {
  display: block !important;
  padding: 10px 20px !important;
  color: #FFFFFF !important;
  border-bottom: 1px solid #1e1e1e !important;
  transition: background 0.2s, color 0.2s, padding-left 0.2s !important;
}
#li-productos .sub-menu li a:hover {
  background-color: #1A1A1A !important;
  color: #E60000 !important;
  padding-left: 28px !important;
  border-bottom-color: #2a2a2a !important;
}
#li-productos .sub-menu li:last-child a { border-bottom: none !important; }

/* Mostrar en hover en desktop */
@media (min-width: 992px) {
  #li-productos { position: relative !important; }
  #li-productos:hover .sub-menu { display: block !important; }
}

/* =========================================================
   SECCIÓN: UNIVERSO IRON SHOP (home — antes del footer)
   ========================================================= */
.ironshop-universe {
  background: linear-gradient(180deg, #0D0D0D 0%, #0a0a0a 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.ironshop-universe::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #E60000, transparent);
}

/* Cabecera de la sección */
.isu-header {
  text-align: center;
  margin-bottom: 50px;
}
.isu-label {
  display: inline-block;
  background: rgba(230,0,0,0.15);
  border: 1px solid rgba(230,0,0,0.4);
  color: #E60000 !important;
  font-family: 'Oswald', sans-serif !important;
  font-size: 0.75rem !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.isu-title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 2.8rem !important;
  color: #FFFFFF !important;
  letter-spacing: 4px !important;
  text-transform: uppercase !important;
  margin: 10px 0 12px !important;
}
.isu-subtitle {
  color: #888 !important;
  font-size: 1rem !important;
  max-width: 500px;
  margin: 0 auto !important;
  font-family: 'Inter', sans-serif !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* Grid de cards */
.isu-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 991px) { .isu-cards { grid-template-columns: 1fr; gap: 20px; } }

/* Card base */
.isu-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #111;
  border: 1px solid #222;
  border-radius: 12px;
  padding: 36px 32px 32px;
  overflow: hidden;
  text-decoration: none !important;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease !important;
  cursor: pointer;
}
.isu-card:hover {
  transform: translateY(-8px) !important;
  border-color: #E60000 !important;
  box-shadow: 0 20px 50px rgba(230,0,0,0.25) !important;
  text-decoration: none !important;
}

/* Icono */
.isu-card-icon {
  width: 58px;
  height: 58px;
  background: rgba(230,0,0,0.1);
  border: 1px solid rgba(230,0,0,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s, border-color 0.3s;
}
.isu-card:hover .isu-card-icon {
  background: rgba(230,0,0,0.25) !important;
  border-color: #E60000 !important;
}
.isu-card-icon svg {
  width: 26px;
  height: 26px;
  color: #E60000;
  stroke: #E60000;
}

/* Tag */
.isu-card-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif !important;
  font-size: 0.65rem !important;
  letter-spacing: 2.5px !important;
  color: #E60000 !important;
  text-transform: uppercase !important;
  margin-bottom: 8px;
}

/* Título de la card */
.isu-card-title {
  font-family: 'Oswald', sans-serif !important;
  font-size: 1.55rem !important;
  color: #FFFFFF !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 0 12px !important;
}

/* Descripción */
.isu-card-desc {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  color: #999 !important;
  line-height: 1.6 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  flex: 1;
  margin-bottom: 24px !important;
}

/* CTA */
.isu-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif !important;
  font-size: 0.85rem !important;
  color: #E60000 !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  border-bottom: 1px solid rgba(230,0,0,0.3);
  padding-bottom: 2px;
  transition: gap 0.3s, border-color 0.3s !important;
}
.isu-card:hover .isu-card-cta {
  gap: 14px !important;
  border-color: #E60000 !important;
}
.isu-arrow { transition: transform 0.3s !important; }
.isu-card:hover .isu-arrow { transform: translateX(4px) !important; }

/* Glow de fondo en hover */
.isu-card-glow {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,0,0,0.18) 0%, transparent 70%);
  transition: opacity 0.4s !important;
  opacity: 0;
  pointer-events: none;
}
.isu-card:hover .isu-card-glow { opacity: 1 !important; }

/* Variantes de color por card */
.isu-card--webinars .isu-card-icon { background: rgba(230,0,0,0.1); border-color: rgba(230,0,0,0.3); }
.isu-card--academy .isu-card-icon { background: rgba(230,120,0,0.1); border-color: rgba(230,120,0,0.3); }
.isu-card--academy .isu-card-icon svg { stroke: #E67800; color: #E67800; }
.isu-card--academy .isu-card-tag { color: #E67800 !important; }
.isu-card--academy .isu-card-cta { color: #E67800 !important; border-color: rgba(230,120,0,0.3); }
.isu-card--academy:hover { border-color: #E67800 !important; box-shadow: 0 20px 50px rgba(230,120,0,0.22) !important; }
.isu-card--academy .isu-card-glow { background: radial-gradient(circle, rgba(230,120,0,0.18) 0%, transparent 70%); }

.isu-card--cafe .isu-card-icon { background: rgba(255,60,60,0.1); border-color: rgba(255,60,60,0.3); }
.isu-card--cafe .isu-card-icon svg { stroke: #FF3C3C; color: #FF3C3C; }
.isu-card--cafe .isu-card-tag { color: #FF3C3C !important; }
.isu-card--cafe .isu-card-cta { color: #FF3C3C !important; border-color: rgba(255,60,60,0.3); }
.isu-card--cafe:hover { border-color: #FF3C3C !important; box-shadow: 0 20px 50px rgba(255,60,60,0.22) !important; }
.isu-card--cafe .isu-card-glow { background: radial-gradient(circle, rgba(255,60,60,0.18) 0%, transparent 70%); }

/* ========== REDES SOCIALES (footer) ========== */
.social-sharing ul,
.block-social ul,
#block_myaccount_infos + div ul,
ul.list-inline {
  display: flex !important;
  gap: 12px !important;
  padding: 20px 0 !important;
  margin: 0 !important;
  list-style: none !important;
}
.social-sharing li,
.block-social li {
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  background-color: #1A1A1A !important;
  border: 1px solid #2D2D2D !important;
  border-radius: 50% !important;
  transition: all 0.3s !important;
}
.social-sharing li:hover,
.block-social li:hover {
  background-color: #E60000 !important;
  border-color: #E60000 !important;
  transform: translateY(-3px) !important;
}
.social-sharing li a,
.block-social li a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-indent: -9999px !important;
  background-size: 22px !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  filter: invert(1) brightness(2) !important;
  opacity: 0.9 !important;
}
.social-sharing li:hover a,
.block-social li:hover a {
  filter: invert(1) brightness(2) !important;
  opacity: 1 !important;
}

/* Hide left column menu on category pages */
body#category #left-column { display: none !important; }
body#category #content-wrapper { width: 100% !important; max-width: 100% !important; flex: 0 0 100% !important; }

/* Fix product page colors */
.tabs { background-color: #111 !important; color: #fff !important; }
.tabs .tab-content { background-color: #111 !important; color: #fff !important; }
.tabs .nav-tabs { background-color: #111 !important; border-bottom: 1px solid #333 !important; }
.tabs .nav-tabs .nav-link { color: #ccc !important; background-color: #222 !important; }
.tabs .nav-tabs .nav-link.active { color: #ff0000 !important; background-color: #111 !important; border-bottom-color: #ff0000 !important; }
#product-comments-list-header { color: #fff !important; }
.product-comments-additional-info { color: #fff !important; }
#product-comments-list-footer { color: #fff !important; }
.product-comment-list-item { color: #ccc !important; }
.block_newsletter { background-color: #111 !important; color: #fff !important; padding: 20px !important; border: 1px solid #333 !important; }
#block-newsletter-label { color: #fff !important; }
.block_newsletter p { color: #ccc !important; }

/* Fix product reviews box */
#product-comments-list-header { background-color: #111 !important; border: 1px solid #333 !important; padding: 15px 20px !important; border-radius: 5px !important; display: flex !important; align-items: center !important; justify-content: space-between !important; margin-top: 20px !important; }
#product-comments-list-header .comments-nb { font-size: 1.2rem !important; font-weight: bold !important; margin: 0 !important; }
.post-product-comment { background-color: #e3000f !important; color: #fff !important; border: none !important; padding: 10px 20px !important; border-radius: 4px !important; font-weight: bold !important; text-transform: uppercase !important; cursor: pointer !important; }
.post-product-comment:hover { background-color: #cc0000 !important; }

/* Fix empty reviews text color */
#product-comments-empty-list, #product-comments-list .empty, #product-comments-list p, .product-comments-empty, #product-comments-list-footer * { color: #fff !important; }

/* Fix contact info text color on dark background */
.contact-rich {
    color: #FFF !important;
}
.contact-rich .data,
.contact-rich .icon,
.contact-rich .icon i,
.contact-rich .icon .material-icons {
    color: #FFF !important;
}
.contact-rich .data a {
    color: #E60000 !important;
}
.contact-rich .block-contact .data {
    color: #FFF !important;
}
.block-contact {
    color: #FFF !important;
}
.block-contact .data {
    color: #FFF !important;
}
.block-contact .icon {
    color: #FFF !important;
}
.block-contact .icon i {
    color: #FFF !important;
}
.contact-info {
    color: #FFF !important;
}
.contact-info p {
    color: #FFF !important;
}
