/*
Theme Name:   Storefront WD5 Child
Template:     storefront
Version:      1.1.0
*/

/* ============================================
RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif !important;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
  background: #fcfcfc !important;
}
/* Ocultar header/footer del theme si los carga wp_head/wp_footer */
#masthead, .site-header-theme, .site-footer-theme,
.elementor-location-header, .elementor-location-footer { display: none !important; }

a { text-decoration: none; color: inherit; transition: color 0.3s; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
.ts-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ============================================
HEADER / NAV
============================================ */
.ts-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: background 0.3s, box-shadow 0.3s;
}
.ts-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.ts-logo img {
  height: 55px;
  width: auto;
}
.ts-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.ts-nav a {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s;
}
.ts-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #9B090D;
  transition: width 0.3s;
}
.ts-nav a:hover { color: #9B090D; }
.ts-nav a:hover::after { width: 100%; }
.ts-header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  color: #fcfcfc;
  font-size: 16px;
  transition: transform 0.3s;
}
.ts-header-social a:hover { transform: scale(1.1); }
.ts-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.ts-mobile-toggle span {
  width: 25px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

/* Mobile Nav */
.ts-mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255,255,255,0.98);
  z-index: 10000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.ts-mobile-nav.active { display: flex; }
.ts-mobile-nav a {
  font-size: 20px;
  font-weight: 500;
  color: #333;
}
.ts-mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

/* ============================================
HERO SLIDER
============================================ */
.ts-hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}
.ts-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.ts-slide.active { opacity: 1; z-index: 1; }
.ts-slide-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.55);
}
.ts-slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fcfcfc;
  max-width: 800px;
  padding: 0 30px;
}
.ts-slide-content h2 {
  color: #fcfcfc;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.ts-slide-content p {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 10px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}
.ts-slide-content .ts-subtitle {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 25px;
  opacity: 0.9;
}
.ts-btn-primary {
  display: inline-block;
  padding: 14px 35px;
  background: #9B090D;
  color: #fcfcfc;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.ts-btn-primary:hover {
  background: #BF1534;
  color: #fcfcfc;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,115,170,0.3);
}

/* Slider navigation dots */
.ts-slider-dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
}
.ts-slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}
.ts-slider-dot.active {
  background: #fcfcfc;
  transform: scale(1.2);
}

/* Slider arrows */
.ts-slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fcfcfc;
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(5px);
}
.ts-slider-arrow:hover { background: rgba(255,255,255,0.3); }
.ts-slider-arrow.prev { left: 20px; }
.ts-slider-arrow.next { right: 20px; }

/* ============================================
BRAND LOGOS CAROUSEL
============================================ */
.ts-brands-section {
  padding: 40px 0;
  background: #f9f9f9;
  overflow: hidden;
}
.ts-brands-track {
  display: flex;
  animation: tsScrollLogos 30s linear infinite;
  width: max-content;
}
.ts-brands-track:hover { animation-play-state: paused; }
.ts-brand-logo {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  margin: 0 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all 0.3s;
}
.ts-brand-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}
.ts-brand-logo img {
  max-width: 80px;
  max-height: 80px;
  object-fit: contain;
}
@keyframes tsScrollLogos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes ts-slideUp {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-10px); }
}

.ts-expanded-panel.closing {
  animation: ts-slideUp 0.25s ease forwards;
}

/* ============================================
ABOUT / NOSOTROS
============================================ */
.ts-about-section {
  padding: 80px 0;
}
.ts-section-label {
  color: #9B090D;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}
.ts-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 20px;
}
.ts-about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.ts-about-text p {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
  line-height: 1.8;
}
.ts-about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.ts-about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}
.ts-about-subtitle {
  font-size: 22px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 30px;
  text-align: center;
}
.ts-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.ts-feature-card {
  text-align: center;
  padding: 40px 25px;
  border-radius: 12px;
  background: #fcfcfc;
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ts-feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.ts-feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9B090D, #BF1534);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.ts-feature-icon svg {
  width: 32px;
  height: 32px;
  fill: #fcfcfc;
}
.ts-feature-card h4 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.ts-feature-card p {
  font-size: 14px;
  color: #777;
  line-height: 1.7;
}

/* ============================================
CTA BANNERS
============================================ */
.ts-cta-banner {
  padding: 60px 0;
  background: linear-gradient(135deg, #9B090D, #BF1534);
  color: #fcfcfc;
  text-align: center;
}
.ts-cta-banner--remodelacion {
  background-image:
  linear-gradient(135deg, rgba(155, 9, 13, 0.78), rgba(191, 21, 52, 0.82)),
  url('<?php echo esc_url( get_site_url() ); ?>/wp-content/uploads/2025/02/IMG_7569-min-scaled.jpg');
  background-size: cover;
  background-position: center;
}
.ts-cta-banner--asesoramiento {
  background-image:
  linear-gradient(135deg, rgba(155, 9, 13, 0.78), rgba(191, 21, 52, 0.82)),
  url('<?php echo esc_url( get_site_url() ); ?>/wp-content/uploads/2025/02/IMG_7569-min-scaled.jpg');
  background-size: cover;
  background-position: center;
}

.ts-cta-banner h3 {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.9;
}
.ts-cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}
.ts-cta-banner p {
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 25px;
  opacity: 0.9;
  line-height: 1.7;
}
.ts-btn-white {
  display: inline-block;
  padding: 14px 35px;
  background: #fcfcfc;
  color: #9B090D;
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
}
.ts-btn-white:hover {
  background: #f0f0f0;
  color: #BF1534;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

/* ============================================
TECHNICAL ADVICE / ASESORAMIENTO
============================================ */
.ts-advice-section {
  padding: 80px 0;
  background: #f8f9fa;
}
.ts-advice-intro {
  max-width: 700px;
  margin-bottom: 50px;
}
.ts-advice-intro p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
.ts-advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
.ts-advice-card {
  background: #fcfcfc;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}
.ts-advice-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.ts-advice-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.ts-advice-card-body {
  padding: 25px;
}
.ts-advice-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 10px;
}
.ts-advice-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ============================================
PRODUCTS / PRODUCTOS
============================================ */
.ts-products-section {
  padding: 80px 0;
}
.ts-products-intro {
  max-width: 700px;
  margin-bottom: 40px;
}
.ts-products-intro p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}
.ts-products-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 50px;
}
.ts-products-brands img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s;
}
.ts-products-brands img:hover { filter: grayscale(0%); }

/* ============================================
WOOCOMMERCE FEATURED PRODUCTS GRID
============================================ */
.ts-wc-products-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 30px;
  text-align: center;
}
.ts-wc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}
.ts-wc-product {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #fcfcfc;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
  box-shadow 0.4s ease;
}
.ts-wc-product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}
.ts-wc-product-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ts-wc-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f5f5f5;
}
.ts-wc-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.ts-wc-product:hover .ts-wc-product-image img {
  transform: scale(1.08);
}
/* Hover overlay estilo the7 */
.ts-wc-product-image::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(
    to top,
    rgba(155, 9, 13, 0.25) 0%,
    rgba(191, 21, 52, 0.05) 40%,
    transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
  }
  .ts-wc-product:hover .ts-wc-product-image::after {
    opacity: 1;
  }
  /* Ícono "ver" en hover */
  .ts-wc-product-image::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230073aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
  }
  .ts-wc-product:hover .ts-wc-product-image::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  .ts-wc-product-info {
    padding: 18px 15px;
    text-align: center;
  }
  .ts-wc-product-name {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
    margin-bottom: 6px;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .ts-wc-product:hover .ts-wc-product-name {
    color: #9B090D;
  }
  .ts-wc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: #9B090D;
  }
  .ts-wc-product-price del {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    margin-right: 5px;
  }
  .ts-wc-product-price ins {
    text-decoration: none;
  }
  /* Badge destacado */
  .ts-wc-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: #9B090D;
    color: #fcfcfc;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  .ts-wc-badge.ts-sale {
    background: #e74c3c;
  }

  /* CTA Tienda */
  .ts-shop-cta {
    text-align: center;
    padding: 10px 0 0;
  }
  .ts-shop-cta p {
    font-size: 17px;
    color: #555;
    margin-bottom: 18px;
  }
  .ts-btn-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 40px;
    background: #9B090D;
    color: #fcfcfc;
    border-radius: 5px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
  }
  .ts-btn-shop:hover {
    background: #BF1534;
    color: #fcfcfc;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,115,170,0.3);
  }
  .ts-btn-shop svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  /* Sin productos */
  .ts-wc-no-products {
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 15px;
  }

  /* ============================================
  CONTACT SECTION
  ============================================ */
  .ts-contact-section {
    padding: 80px 0;
    background: #f8f9fa;
  }
  .ts-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
  }
  .ts-contact-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 25px;
  }
  .ts-contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
  }
  .ts-contact-icon i {
    font-size: 1.5em;
  }

  .ts-contact-icon {
    /* width: 45px;
    height: 45px; */
    border-radius: 50%;
    /* background: #9B090D; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .ts-contact-icon svg { width: 20px; height: 20px; fill: #fcfcfc; }
  .ts-contact-item-text a,
  .ts-contact-item-text span {
    font-size: 15px;
    color: #555;
  }
  .ts-contact-item-text a:hover { color: #9B090D; }
  .ts-contact-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0,0,0,0.1);
  }
  .ts-contact-map iframe {
    width: 100%;
    height: 350px;
    border: 0;
  }

  /* ============================================
  FOOTER
  ============================================ */
  .ts-footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 60px 0 0;
  }
  .ts-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
  .ts-footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fcfcfc;
    margin-bottom: 20px;
  }
  .ts-footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 15px;
  }
  .ts-footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
  }
  .ts-footer-contact-item svg { width: 16px; height: 16px; fill: #9B090D; flex-shrink: 0; }
  .ts-footer-contact-item a:hover { color: #9B090D; }
  .ts-footer-col ul li { margin-bottom: 10px; }
  .ts-footer-col ul li a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
  }
  .ts-footer-col ul li a:hover { color: #9B090D; }
  .ts-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fcfcfc;
    transition: all 0.3s;
    margin-right: 8px;
  }
  .ts-footer-social a:hover {
    background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
    transform: translateY(-2px);
  }
  .ts-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
  }
  .ts-footer-bottom p {
    font-size: 13px;
    color: #888;
  }

  /* ============================================
  SCROLL TO TOP
  ============================================ */
  .ts-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #9B090D;
    color: #fcfcfc;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    box-shadow: 0 3px 15px rgba(0,115,170,0.3);
    transition: all 0.3s;
    font-size: 16px;
  }
  .ts-scroll-top.visible { display: flex; }
  .ts-scroll-top:hover {
    color: #fcfcfc;
    background: #BF1534;
    transform: translateY(-3px);
  }

  /* ============================================
  RESPONSIVE
  ============================================ */
  @media (max-width: 992px) {
    .ts-nav, .ts-header-social { display: none; }
    .ts-mobile-toggle { display: flex; }
    .ts-hero-slider { height: 70vh; min-height: 500px; }
    .ts-slide-content h2 { font-size: 30px; }
    .ts-about-grid { grid-template-columns: 1fr; gap: 30px; }
    .ts-features-grid { grid-template-columns: 1fr; }
    .ts-advice-grid { grid-template-columns: 1fr; }
    .ts-contact-grid { grid-template-columns: 1fr; }
    .ts-footer-grid { grid-template-columns: 1fr 1fr; }
    .ts-slider-arrow { display: none; }
    .ts-wc-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
  }
  @media (max-width: 600px) {
    .ts-hero-slider { height: 60vh; min-height: 400px; }
    .ts-slide-content h2 { font-size: 24px; }
    .ts-slide-content p { font-size: 15px; }
    .ts-section-title { font-size: 28px; }
    .ts-cta-banner h2 { font-size: 24px; }
    .ts-footer-grid { grid-template-columns: 1fr; }
    .ts-brand-logo { width: 70px; height: 70px; margin: 0 15px; }
    .ts-brand-logo img { max-width: 60px; max-height: 60px; }
    .ts-wc-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .ts-wc-product-info { padding: 12px 10px; }
    .ts-wc-product-name { font-size: 13px; }
    .ts-wc-product-price { font-size: 14px; }
  }

  /* ============================================
  CORRECCIONES
  ============================================ */
  ul, ol {
    margin: 0;
  }

  ol, ul {
    padding-left: 2em;
  }

  .myaccount {
    display: none;
  }

  .ts-footer-bottom p {
    margin: 0px;
    padding: 0px;
  }


  @media (min-width: 768px) {
    .col-full {
      max-width: 90%;
    }
  }


  /* Tabla de variaciones (plugin wc-accordion-shop): ocultar Modelo por clase, no por posición (Precio visible) */
  .wcas-variations-table .wcas-th-attr,
  .wcas-variations-table .wcas-cell-attr {
    display: none;
  }



  /* ============================================
  8 Productos por linea
  ============================================ */


  /* ── Grid de productos ───────────────────────────────────────── */
  .site-main ul.products.columns-6 {
    display: grid !important;
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
    /*margin: 0 !important;*/ /* ← era -12px, eso rompía el conteo */
    margin: 10px 0px 25px 0px;
    align-items: stretch !important;
    padding-left: 0;
  }

  /* ── Card igual altura, botón siempre al fondo ──────────────── */
  .site-main ul.products.columns-6 li.product:not(.wcas-expansion-panel) {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 0 50px 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Imagen con relación de aspecto fija → todas iguales */
  .site-main ul.products.columns-6 li.product a.woocommerce-LoopProduct-link img {
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: contain !important;
  }

  /* El link crece para ocupar el espacio disponible */
  .site-main ul.products.columns-6 li.product a.woocommerce-LoopProduct-link {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* Título toma el espacio sobrante → empuja precio y botón abajo */
  .site-main ul.products.columns-6 li.product .woocommerce-loop-product__title {
    flex: 1 !important;
    font-size: 11px !important;
    padding: 0.3em 0 !important;
    line-height: 1.3 !important;
  }

  .site-main ul.products.columns-6 li.product .price {
    font-size: 11px !important;
  }

  /* Botón siempre pegado al fondo */
  .site-main ul.products.columns-6 li.product .wcas-expand-btn {
    margin-top: auto !important;
    font-size: 9px !important;
    padding: 6px 4px !important;
  }

  /* ── Panel acordeón ocupa todo el ancho ── */
  .site-main ul.products.columns-6 li.wcas-expansion-panel {
    grid-column: 1 / -1 !important;
  }

  /* ── Responsive ─────────────────────────────────────────────── */
  @media (max-width: 1400px) {
    .site-main ul.products.columns-6 {
      grid-template-columns: repeat(6, 1fr) !important;
    }
  }
  @media (max-width: 1024px) {
    .site-main ul.products.columns-6 {
      grid-template-columns: repeat(4, 1fr) !important;
    }
    .site-main ul.products.columns-6 li.product .woocommerce-loop-product__title,
    .site-main ul.products.columns-6 li.product .price {
      font-size: 13px !important;
    }
    .site-main ul.products.columns-6 li.product .wcas-expand-btn {
      font-size: 11px !important;
      padding: 8px 6px !important;
    }
  }
  @media (max-width: 640px) {
    .site-main ul.products.columns-6 {
      grid-template-columns: repeat(3, 1fr) !important;
      gap: 8px !important;
    }
  }
  @media (max-width: 400px) {
    .site-main ul.products.columns-6 {
      grid-template-columns: repeat(2, 1fr) !important;
      gap: 6px !important;
    }
    .site-main ul.products.columns-6 li.product .woocommerce-loop-product__title {
      font-size: 12px !important;
    }
  }


  /* ============================================
  CORRECCIONES
  ============================================ */
  ul.products::before, ul.products::after {
    content: none;
    display: table;
  }











  /* ============================================
  CATEGORY ACCORDION GRID - 3 PER LINE
  ============================================ */

  /* Main Grid Container - 3 categories per line */
  .ts-category-accordion-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 50px;
  }

  /* Each category accordion item */
  .ts-category-accordion-item {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .ts-category-accordion-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }

  /* Accordion Header */
  .ts-category-accordion-item .ts-accordion-header {
    padding: 20px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #BF1534;
    transition: all 0.3s ease;
    user-select: none;
  }

  .ts-category-accordion-item .ts-accordion-header:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  }

  .ts-category-accordion-item.active .ts-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: #1a1a2e;
  }

  .ts-category-accordion-item .ts-accordion-header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .ts-category-accordion-item .ts-accordion-icon {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
  }

  .ts-category-accordion-item .ts-accordion-title-wrap {
    flex: 1;
    min-width: 0;
  }

  .ts-category-accordion-item .ts-accordion-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.3;
  }

  .ts-category-accordion-item .ts-accordion-count {
    display: block;
    font-size: 13px;
    color: #6c757d;
    margin-top: 4px;
  }

  .ts-category-accordion-item .ts-accordion-arrow {
    font-size: 14px;
    color: #6c757d;
    transition: transform 0.3s ease;
    flex-shrink: 0;
  }

  .ts-category-accordion-item.active .ts-accordion-arrow {
    transform: rotate(180deg);
  }

  /* Accordion Content - Uses existing .ts-wc-grid styles */
  .ts-category-accordion-item .ts-accordion-content {
    padding: 25px 20px;
    background: #fcfcfc;
    border-top: 1px solid #e9ecef;
    animation: ts-slideDown 0.3s ease;
  }
  .ts-category-accordion-item .ts-accordion-content[hidden] {
    display: none !important;
  }

  @keyframes ts-slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Products Grid - Uses EXISTING .products.ts-wc-grid styles */
  .ts-category-accordion-item .products.ts-wc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0;
  }

  /* Product Card - Uses existing styles */
  .ts-category-accordion-item .products.ts-wc-grid li.product {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #fcfcfc;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.4s ease;
  }

  .ts-category-accordion-item .products.ts-wc-grid li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  }

  .ts-category-accordion-item .products.ts-wc-grid .woocommerce-LoopProduct-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }

  .ts-category-accordion-item .products.ts-wc-grid .ts-wc-product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f5f5;
  }

  .ts-category-accordion-item .products.ts-wc-grid .ts-wc-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .ts-category-accordion-item .products.ts-wc-grid li.product:hover .ts-wc-product-image img {
    transform: scale(1.08);
  }

  /* Hover overlay */
  .ts-category-accordion-item .products.ts-wc-grid .ts-wc-product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .ts-category-accordion-item .products.ts-wc-grid li.product:hover .ts-wc-product-image::after {
    opacity: 1;
  }

  /* Ver opciones button - Uses existing styles */
  .ts-category-accordion-item .products.ts-wc-grid .ts-expand-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 10px 18px;
    background: rgba(191, 21, 52, 0.95);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .ts-category-accordion-item .products.ts-wc-grid li.product:hover .ts-expand-btn {
    opacity: 1;
  }

  .ts-category-accordion-item .products.ts-wc-grid .ts-expand-btn:hover {
    background: #1a1a2e;
    transform: translate(-50%, -50%) translateY(-2px);
  }

  .ts-category-accordion-item .products.ts-wc-grid .ts-expand-btn i {
    font-size: 12px;
  }

  /* Product title */
  .ts-category-accordion-item .products.ts-wc-grid .woocommerce-loop-product__title {
    padding: 15px;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    text-align: center;
  }

  /* No products message */
  .ts-no-categories,
  .ts-category-accordion-item .ts-no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 16px;
    background: #fff;
    border-radius: 12px;
  }

  /* ============================================
  RESPONSIVE - TABLET (2 categories per line)
  ============================================ */
  @media (max-width: 900px) {
    .ts-category-accordion-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }

    .ts-category-accordion-item .ts-accordion-header {
      padding: 15px;
    }

    .ts-category-accordion-item .ts-accordion-title {
      font-size: 14px;
    }

    .ts-category-accordion-item .ts-accordion-icon {
      width: 40px;
      height: 40px;
    }

    .ts-category-accordion-item .products.ts-wc-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 15px;
    }
  }

  /* ============================================
  RESPONSIVE - MOBILE (1 category per line)
  ============================================ */
  @media (max-width: 600px) {
    .ts-category-accordion-grid {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .ts-category-accordion-item .ts-accordion-header {
      padding: 12px 15px;
    }

    .ts-category-accordion-item .ts-accordion-header-inner {
      flex-wrap: wrap;
    }

    .ts-category-accordion-item .ts-accordion-icon {
      width: 35px;
      height: 35px;
    }

    .ts-category-accordion-item .ts-accordion-title-wrap {
      flex: 1;
    }

    .ts-category-accordion-item .ts-accordion-count {
      display: none;
    }

    .ts-category-accordion-item .ts-accordion-content {
      padding: 15px 12px;
    }

    .ts-category-accordion-item .products.ts-wc-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
    }

    .ts-category-accordion-item .products.ts-wc-grid .ts-expand-btn {
      opacity: 1;
      padding: 8px 12px;
      font-size: 11px;
    }

    .ts-category-accordion-item .products.ts-wc-grid .woocommerce-loop-product__title {
      font-size: 12px;
      padding: 10px;
    }
  }


  /* ============================================
  PARENT CATEGORY ACCORDION
  ============================================ */

  .ts-parent-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 50px;
  }

  .ts-parent-accordion-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .ts-parent-accordion-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
  }

  .ts-parent-accordion-header {
    padding: 22px 30px;
    cursor: pointer;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #BF1534;
    transition: all 0.3s ease;
    user-select: none;
  }

  .ts-parent-accordion-header:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  }

  .ts-parent-accordion-item.active .ts-parent-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left-color: #1a1a2e;
  }

  .ts-parent-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
  }

  .ts-parent-icon {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
  }

  .ts-parent-title-wrap {
    flex: 1;
    min-width: 0;
  }

  .ts-parent-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.3;
    letter-spacing: 0.3px;
  }

  .ts-parent-arrow {
    font-size: 18px;
    color: #6c757d;
    transition: transform 0.35s ease;
    flex-shrink: 0;
  }

  .ts-parent-accordion-item.active .ts-parent-arrow {
    transform: rotate(180deg);
  }

  .ts-parent-content {
    padding: 25px;
    background: #f4f5f7;
    border: 1px solid #dde0e6;
    border-top: none;
    border-radius: 0 0 12px 12px;
    animation: ts-slideDown 0.35s ease;
  }

  .ts-parent-content[hidden] {
    display: none !important;
  }

  .ts-parent-content .ts-category-accordion-grid {
    margin-bottom: 0;
  }

  .ts-no-parent-children {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-size: 15px;
  }

  /* Responsive parent */
  @media (max-width: 768px) {
    .ts-parent-accordion-header {
      padding: 16px 20px;
    }
    .ts-parent-title {
      font-size: 17px;
    }
    .ts-parent-icon {
      width: 44px;
      height: 44px;
    }
    .ts-parent-content {
      padding: 16px;
    }
  }

  @media (max-width: 480px) {
    .ts-parent-accordion-header {
      padding: 14px 16px;
    }
    .ts-parent-title {
      font-size: 15px;
    }
    .ts-parent-arrow {
      font-size: 15px;
    }
  }

  /* ── Panel expandido: ocupa todo el ancho del grid ── */
  .ts-expanded-panel {
    grid-column: 1 / -1;
    background: #fcfcfc;
    border: 1px solid #e2e2e2;
    border-radius: 12px;
    box-shadow: rgba(100,100,111,0.2) 0px 7px 29px 0px;
    overflow: hidden;
    animation: ts-slideDown 0.3s ease;
  }

  .ts-expanded-panel.closing {
    animation: ts-slideUp 0.25s ease forwards;
  }

  @keyframes ts-slideUp {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-8px); }
  }

  .ts-expanded-panel .ts-accordion-content {
    padding: 25px 20px;
    border-top: none;
  }

  /* Productos dentro del panel expandido: grid de 8 columnas */
  .ts-expanded-panel .products.ts-wc-grid {
    grid-template-columns: repeat(8, 1fr) !important;
    gap: 12px !important;
  }

  @media (max-width: 1400px) {
    .ts-expanded-panel .products.ts-wc-grid {
      grid-template-columns: repeat(6, 1fr) !important;
    }
  }
  @media (max-width: 1024px) {
    .ts-expanded-panel .products.ts-wc-grid {
      grid-template-columns: repeat(4, 1fr) !important;
    }
  }
  @media (max-width: 640px) {
    .ts-expanded-panel .products.ts-wc-grid {
      grid-template-columns: repeat(3, 1fr) !important;
    }
  }
  @media (max-width: 400px) {
    .ts-expanded-panel .products.ts-wc-grid {
      grid-template-columns: repeat(2, 1fr) !important;
    }
  }




  /* ── WhatsApp Float ── */
  #abc-whatsapp-float {
      position: fixed;
      right: 18px;
      bottom: 175px;
      z-index: 99999;
  }
  #abc-whatsapp-float a {
      display: block;
      position: relative;
      width: 58px;
      height: 58px;
  }
  #abc-whatsapp-float img {
      width: 58px;
      height: 58px;
      /* border-radius: 50%; */
      /* box-shadow: 0 4px 16px rgba(0,0,0,0.5); */
      transition: transform 0.3s ease;
  }
  #abc-whatsapp-float a:hover img { transform: scale(1.12); }
  .abc-wa-pulse {
      position: absolute;
      top: 0; left: 0;
      width: 58px; height: 58px;
      border-radius: 50%;
      background: rgba(37,211,102,0.35);
      animation: waPulse 2.2s infinite;
      pointer-events: none;
  }
  @keyframes waPulse {
      0%   { transform: scale(1);   opacity: 0.7; }
      70%  { transform: scale(1.5); opacity: 0; }
      100% { transform: scale(1.5); opacity: 0; }
  }
