:root {
  --ledshop-header: #6d798f;
  --ledshop-primary: #2b709e;
  --ledshop-primary-hover: #5caee3;
  --ledshop-background: #f9f9f9;
  --ledshop-light: #e4e7ed;
  --ledshop-green: #25a24a;
  --ledshop-text: #7a7a7a;
  --ledshop-shadow: #aeb5c1;
}
* { box-sizing: border-box; }
body { margin:0; background:var(--ledshop-background); color:var(--ledshop-text); font:14px Arial, Helvetica, sans-serif; }
a { color:var(--ledshop-primary); }
.site-container { width:min(1200px, calc(100% - 36px)); margin:0 auto; }
.site-header { background:var(--ledshop-header); color:#f9f9f9; box-shadow:0 3px 8px #0002; position:relative; z-index:100; }
.site-header a { color:#f9f9f9; text-decoration:none; }
.topline { min-height:28px; font-size:12px; border-bottom:1px solid #ffffff33; }
.topline-inner { display:flex; justify-content:space-between; align-items:center; min-height:28px; }
.account-links { display:flex; gap:16px; }
.main-header { border-top:0; }
.header-inner { min-height:52px; display:flex; align-items:center; gap:22px; }
.brand { flex:0 0 145px; display:flex; align-items:center; }
.custom-logo { max-width:150px; max-height:58px; width:auto; height:auto; }
.ledshop-logo { display:block; width:150px; max-height:58px; height:auto; object-fit:contain; }
.text-logo { display:block; font-size:23px; font-weight:800; letter-spacing:-1px; color:#dce3ed!important; text-shadow:2px 2px 2px #333; }
.text-logo span { color:#aeb9c9; }

/* Menú horizontal principal */
.primary-navigation { flex:1 1 auto; min-width:0; }
.primary-menu,
.primary-menu ul { list-style:none; padding:0; margin:0; }
.primary-menu { display:flex; align-items:center; gap:24px; }
.primary-menu > li { position:relative; margin:0; padding:0; }
.primary-menu > li > a { display:block; white-space:nowrap; font-size:12px; font-weight:bold; text-transform:uppercase; padding:19px 0; }
.primary-menu > li > a:hover { color:#dce3ed; }

/* Submenús ocultos hasta pasar el mouse o enfocar con teclado */
.primary-menu .sub-menu {
  display:none;
  position:absolute;
  top:100%;
  left:-12px;
  min-width:190px;
  padding:7px 0;
  margin:0;
  background:var(--ledshop-header);
  box-shadow:0 5px 12px #0003;
  z-index:999;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu { display:block; }
.primary-menu .sub-menu li { display:block; position:relative; margin:0; padding:0; }
.primary-menu .sub-menu a {
  display:block;
  padding:9px 14px;
  white-space:nowrap;
  font-size:12px;
  font-weight:bold;
  text-transform:none;
}
.primary-menu .sub-menu a:hover { background:#ffffff22; color:white; }

/* Si en el futuro hay subcategorías de segundo nivel, se abren hacia la derecha */
.primary-menu .sub-menu .sub-menu { top:0; left:100%; }

.header-search { display:flex; flex:0 1 210px; width:210px; min-width:150px; background:white; }
.header-search input[type=search] { min-width:0; width:100%; border:0; padding:9px; font-size:12px; outline:0; }
.header-search button { border:0; background:white; color:#888; font-size:22px; padding:0 10px; cursor:pointer; }
.header-cart { font-size:12px; white-space:nowrap; }
.menu-toggle { display:none; }
.site-content { min-height:65vh; }
.home-layout { padding-top:16px; }
.hero-placeholder { min-height:138px; display:flex; align-items:center; padding:22px 32px; margin-bottom:16px; color:white; background:linear-gradient(110deg,#26384e,#6d798f 58%,#2b709e); box-shadow:3px 4px 7px #0003; }
.hero-placeholder h1 { margin:4px 0 8px; font-size:25px; color:white; }
.hero-placeholder p { margin:0; color:#f1f3f6; }
.eyebrow { font-size:11px; letter-spacing:2px; font-weight:bold; }
.catalog-layout { display:grid; grid-template-columns:165px minmax(0,1fr); gap:20px; align-items:start; }
.catalog-sidebar { background:var(--ledshop-header); color:white; padding:16px 13px; box-shadow:5px 5px 10px var(--ledshop-shadow); }
.catalog-sidebar h2 { font-size:12px; margin:0 0 12px; color:white; }
.category-list,.catalog-sidebar ul { list-style:none; padding:0; margin:0; }
.category-list li { border-bottom:1px solid #ffffff55; padding:6px 0; }
.category-list a { color:white; text-decoration:none; font-weight:bold; font-size:12px; }
.section-title { text-align:center; font-size:14px; color:#111; margin:2px 0 14px; }
.home-products ul.products { display:block!important; margin:0!important; }
.home-products ul.products li.product { float:none!important; width:100%!important; margin:0 0 12px!important; padding:9px!important; display:grid; grid-template-columns:135px minmax(0,1fr); gap:16px; background:var(--ledshop-light); box-shadow:4px 4px 9px #aeb5c1; }
.home-products ul.products li.product a img { width:100%; height:135px; object-fit:contain; margin:0; background:white; }
.home-products ul.products li.product .woocommerce-loop-product__title { color:#4567a0; font-size:21px; font-weight:800; text-align:center; padding:8px 0; }
.home-products ul.products li.product .price { color:var(--ledshop-primary); font-size:19px; font-weight:bold; text-align:center; }
.home-products ul.products li.product .button { justify-self:center; background:var(--ledshop-primary); color:white; border-radius:0; }
.woocommerce ul.products li.product .onsale { margin:8px; background:#a80707; }
.archive-layout { padding-top:22px; }
.archive-products { min-width:0; }
.page-content { padding-top:24px; }
.content-card { background:white; padding:20px; margin-bottom:16px; box-shadow:0 2px 8px #0001; }
.woocommerce div.product { background:white; padding:22px; box-shadow:0 2px 8px #0002; }
.woocommerce div.product .product_title { color:#4567a0; font-size:27px; }
.ledshop-sku { color:#4567a0; font-size:13px; }
.woocommerce div.product p.price,.woocommerce div.product span.price { color:var(--ledshop-primary); font-size:25px; font-weight:bold; }
.woocommerce div.product form.cart .button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button { background:var(--ledshop-primary); color:white; border-radius:0; }
.woocommerce div.product form.cart .button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover { background:var(--ledshop-primary-hover); color:white; }
.woocommerce-tabs,.woocommerce div.product .woocommerce-tabs { background:white; padding:20px; margin-top:24px; box-shadow:0 2px 8px #0002; }
.site-footer { margin-top:35px; background:var(--ledshop-light); padding:18px 0; color:#525d72; }
.footer-inner { display:flex; justify-content:space-between; gap:15px; }
.footer-inner p { margin:0; }
@media(max-width:1050px) {
  .header-inner { gap:14px; }
  .primary-menu { gap:15px; }
  .header-search { flex-basis:180px; width:180px; }
}
@media(max-width:800px) {

    .header-inner {
        display:flex;
        flex-wrap:wrap;
        gap:10px;
        padding:10px 0;
    }

    .brand {
        flex:1 1 auto;
        min-width:110px;
    }

    .menu-toggle {
        display:block;
        order:2;
        border:1px solid #ffffff77;
        background:transparent;
        color:white;
        padding:8px 12px;
        font-size:18px;
        cursor:pointer;
    }

    .primary-navigation {
        display:none;
        flex:1 0 100%;
        order:5;
        width:100%;
    }

    .primary-navigation.is-open {
        display:block;
    }

    .primary-menu {
        display:block;
    }

    .primary-menu > li > a {
        padding:11px 5px;
        border-top:1px solid #ffffff33;
    }

    .primary-menu .sub-menu {
        display:none;
        position:static;
        box-shadow:none;
        padding-left:18px;
        background:#5f6c82;
    }

    .primary-menu li:hover > .sub-menu,
    .primary-menu li:focus-within > .sub-menu {
        display:block;
    }

    .header-search {
        order:3;
        flex:1 1 100%;
        width:100%;
        min-width:0;
    }

    .header-cart {
        order:4;
        margin-left:auto;
    }

    .topline-inner {
        flex-wrap:wrap;
        gap:5px;
        padding:5px 0;
    }
}
@media(max-width:650px) {
  .topline-inner { font-size:11px; }
  .ledshop-logo { width:110px; max-height:48px; }
  .catalog-layout { grid-template-columns:1fr; }
  .catalog-sidebar { padding:12px; }
  .home-products ul.products li.product { grid-template-columns:100px minmax(0,1fr); gap:10px; }
  .home-products ul.products li.product a img { height:100px; }
  .home-products ul.products li.product .woocommerce-loop-product__title { font-size:16px; }
  .home-products ul.products li.product .price { font-size:16px; }
  .hero-placeholder { min-height:110px; padding:16px; }
  .hero-placeholder h1 { font-size:20px; }
  .footer-inner { display:block; }
}


/* Árbol de categorías de la barra lateral */
.catalog-sidebar .category-tree,
.catalog-sidebar .category-tree ul {
  list-style:none;
  padding:0;
  margin:0;
}
.catalog-sidebar .category-tree li {
  position:relative;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  border-bottom:1px solid #ffffff55;
  padding:0;
  margin:0;
}
.catalog-sidebar .category-tree li > a {
  flex:1 1 auto;
  display:block;
  color:#fff;
  text-decoration:none;
  font-size:12px;
  font-weight:bold;
  padding:8px 2px;
}
.catalog-sidebar .category-tree li > a:hover { color:#dce3ed; }
.catalog-sidebar .ledshop-cat-toggle {
  flex:0 0 20px;
  width:20px;
  height:24px;
  margin:0 3px 0 0;
  padding:0;
  border:0;
  background:transparent;
  color:#fff;
  font-size:17px;
  line-height:20px;
  font-weight:bold;
  cursor:pointer;
}
.catalog-sidebar .ledshop-cat-spacer {
  flex:0 0 23px;
}
.catalog-sidebar .category-tree ul.children {
  display:none;
  flex:1 0 100%;
  width:100%;
  padding:0 0 0 13px;
  margin:0;
  border-left:1px solid #ffffff66;
}
.catalog-sidebar .category-tree li.is-open > ul.children { display:block; }
.catalog-sidebar .category-tree li.is-open > .ledshop-cat-toggle span { display:inline-block; transform:rotate(45deg); }
.catalog-sidebar .category-tree li.is-open > .ledshop-cat-toggle { color:#fff; }

/* ===== AJUSTES DE LA PAGINA DE INICIO ===== */

/* Banner principal */
.home-banner {
    width: 100%;
    margin-bottom: 16px;
    overflow: hidden;
}

.home-banner img {
    display: block;
    width: 100%;
    height: auto;
}

/* Productos destacados */
.home-products ul.products li.product {
    display: grid !important;
    grid-template-columns: 150px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px 20px !important;
    padding: 12px !important;
    min-height: 160px;
}

/* Distribución de los elementos del producto */
.home-products ul.products li.product > a.woocommerce-LoopProduct-link {
    display: contents;
}

.home-products ul.products li.product a img {
    grid-column: 1;
    grid-row: 1 / 4;
    width: 150px !important;
    height: 150px !important;
    object-fit: contain;
}

.home-products ul.products li.product .woocommerce-loop-product__title {
    grid-column: 2;
    text-align: left;
    padding: 5px 0;
}

.home-products ul.products li.product .price {
    grid-column: 2;
    text-align: left;
}

.home-products ul.products li.product > a.button {
    grid-column: 2;
    justify-self: start;
    align-self: start;
    width: auto;
    height: auto;
    margin: 5px 0;
}

@media(max-width:650px) {
    .home-products ul.products li.product {
        grid-template-columns: 100px minmax(0, 1fr) !important;
    }

    .home-products ul.products li.product a img {
        width: 100px !important;
        height: 100px !important;
    }
}

/* ===== CARRUSEL PRINCIPAL LEDSHOP ===== */

.home-banner.ledshop-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 5.5 / 1;
    min-height: 150px;
    max-height: 260px;
    margin-bottom: 16px;
    overflow: hidden;
    background: #172b3b;
    box-shadow: 0 3px 8px #0003;
}

.ledshop-slider .slider-track,
.ledshop-slider .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.ledshop-slider .slide {
    display: none;
}

.ledshop-slider .slide.active {
    display: block;
}

.ledshop-slider .slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ledshop-slider .slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    border: 0;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    background: #0008;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.ledshop-slider .slider-prev {
    left: 12px;
}

.ledshop-slider .slider-next {
    right: 12px;
}

.ledshop-slider .slider-arrow:hover {
    background: var(--ledshop-primary);
}

.ledshop-slider .slider-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.ledshop-slider .slider-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid white;
    border-radius: 50%;
    background: #ffffff88;
    cursor: pointer;
}

.ledshop-slider .slider-dots button.active {
    background: white;
}

@media(max-width:650px) {
    .home-banner.ledshop-slider {
        aspect-ratio: 3 / 1;
        min-height: 100px;
    }

    .ledshop-slider .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}
/* ===== FICHA DE PRODUCTO EN CELULARES ===== */

@media (max-width: 650px) {

    /* Imagen principal */
    .woocommerce div.product div.images img {
        max-height: 280px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
    }

    .woocommerce div.product div.images .woocommerce-product-gallery__image {
        text-align: center;
    }

    /* Nombre del producto */
    .woocommerce div.product .product_title {
        font-size: 22px;
        line-height: 1.3;
    }

    /* Precio */
    .woocommerce div.product p.price,
    .woocommerce div.product span.price {
        font-size: 22px;
    }

    /* Cantidad y botón de compra */
    .woocommerce div.product form.cart {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .woocommerce div.product form.cart .quantity {
        margin: 0;
    }

    .woocommerce div.product form.cart .button {
        margin: 0;
    }

}
/* ===== TARJETAS DEL CATALOGO EN CELULARES ===== */

@media (max-width: 650px) {

    .home-products ul.products li.product {
        grid-template-columns: 100px minmax(0, 1fr) !important;
        gap: 6px 12px !important;
        padding: 10px !important;
        min-height: 0 !important;
        align-items: start !important;
    }

    .home-products ul.products li.product a img {
        width: 100px !important;
        height: 100px !important;
    }

    .home-products ul.products li.product .woocommerce-loop-product__title {
        font-size: 16px;
        line-height: 1.25;
        margin: 0;
    }

    .home-products ul.products li.product .price {
        font-size: 15px;
        margin: 2px 0;
    }

    .home-products ul.products li.product > a.button {
        margin: 3px 0 !important;
    }

}

/* ===== PIE DE PAGINA LEDSHOP ===== */

.ledshop-institutional {
    background: #fff;
    padding: 30px 0;
    text-align: center;
}

.ledshop-institutional h3 {
    color: #4567a0;
    font-size: 15px;
    margin: 0 0 16px;
}

.ledshop-institutional h4 {
    color: #222;
    font-size: 14px;
    margin: 0 0 12px;
}

.ledshop-institutional ul {
    display: inline-block;
    text-align: left;
    margin: 0 auto 12px;
    padding-left: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #222;
}

.ledshop-institutional p {
    color: #4567a0;
    font-size: 11px;
    font-weight: bold;
}

.site-footer {
    background: var(--ledshop-light);
    padding: 28px 0 12px;
    color: #525d72;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1.2fr;
    gap: 28px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
}

.footer-column h3 {
    font-size: 14px;
    color: #172b3b;
    margin: 0 0 12px;
}

.footer-column a {
    display: block;
    color: #68758b;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 8px;
}

.footer-column a:hover {
    color: var(--ledshop-primary);
    text-decoration: underline;
}

.footer-column p {
    margin: 0 0 3px;
    font-size: 12px;
}

.footer-company {
    border-left: 1px solid #fff;
    padding-left: 25px;
}

.footer-copyright {
    text-align: center;
    font-size: 12px;
    margin-top: 22px;
}

@media(max-width:800px) {
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 18px;
    }

    .footer-company {
        border-left: 0;
        padding-left: 0;
    }
}

@media(max-width:480px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 22px 12px;
    }

    .footer-column h3 {
        font-size: 12px;
    }
}

/* LEDSHOP - Diseño tabla de precios por cantidad */

.ledshop-tier-prices {
    max-width: 480px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.ledshop-tier-prices h4 {
    display: none;
}

.ledshop-quantity-prices {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ddd;
    font-size: 14px;
    margin: 0;
    background: #fff;
}

.ledshop-quantity-prices th {
    background: #f5f5f5;
    color: #333;
    padding: 10px 12px;
    text-align: left;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

.ledshop-quantity-prices td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #444;
}

.ledshop-quantity-prices tr:last-child td {
    border-bottom: none;
}

.ledshop-quantity-prices th:nth-child(2),
.ledshop-quantity-prices td:nth-child(2) {
    text-align: right;
    white-space: nowrap;
}

.ledshop-quantity-prices tbody tr {
    background: #fff;
}

.ledshop-quantity-prices tbody tr.ledshop-best-price {
    background: #f0f6fc;
    font-weight: 700;
}

.ledshop-quantity-prices .ledshop-best-price td {
    color: #3978b5;
}

.ledshop-tier-tax {
    color: #777;
    font-size: 12px;
    margin-top: 8px;
}

/* LEDSHOP - Mejor precio destacado como PrestaShop */

.ledshop-best-price-top {
    margin: 14px 0 12px;
    text-align: center;
    color: #222;
}

.ledshop-best-price-top span {
    font-size: 17px;
    font-weight: 700;
}

.ledshop-best-price-top strong {
    color: #3978b5;
    font-size: 30px;
    font-weight: 800;
}

.ledshop-best-price-top small {
    font-size: 11px;
    color: #333;
}

.ledshop-tier-prices {
    max-width: 480px;
    margin: 0 0 18px;
}

.ledshop-quantity-prices {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 0;
    background: #fff;
}
.ledshop-quantity-prices th {
    background: #f5f5f5;
    color: #333;
    padding: 7px 10px;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid #ddd;
}

.ledshop-quantity-prices td {
    padding: 5px 10px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

.ledshop-quantity-prices th:nth-child(2),
.ledshop-quantity-prices td:nth-child(2) {
    border-left: 1px solid #ddd;
}

.ledshop-tier-tax {
    display: none;
}
/* Precio neto según Transparencia Fiscal */

.ledshop-price-without-tax {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    margin-top: 3px;
    text-align: center;
}

.ledshop-price-without-tax strong {
    font-weight: 400;
}
.ledshop-price-without-tax,
.ledshop-price-without-tax * {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #666 !important;
}