/* sg-elementor — estilos self-contained de los widgets de home (prefijo sgh-).
   Paleta por variables; el plugin inyecta :root{--p...} según la marca (dominio). */

/* ===== Rejilla de productos premium dentro de los widgets ===== */
.sgh-prods ul.products{list-style:none;margin:0!important;padding:0!important;display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:20px!important;}
.sgh-prods ul.products::before,.sgh-prods ul.products::after{display:none!important;content:none!important;}
.sgh-prods ul.products li.product{width:auto!important;float:none!important;background:#fff;border:1px solid var(--bd);border-radius:16px;overflow:hidden;display:flex!important;flex-direction:column;padding:0!important;margin:0!important;transition:transform .25s ease,box-shadow .25s ease,border-color .25s;}
.sgh-prods ul.products li.product:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(28,40,54,.13);border-color:#cfe0ea;}
.sgh-prods ul.products li.product a.woocommerce-LoopProduct-link,.sgh-prods ul.products li.product a.woocommerce-loop-product__link{display:block;}
.sgh-prods ul.products li.product img{width:100%!important;aspect-ratio:1/1;object-fit:contain!important;background:#f6f8fa;margin:0!important;padding:16px;border-radius:0!important;}
.sgh-prods ul.products li.product .woocommerce-loop-product__title{padding:14px 16px 4px!important;font-size:14.5px!important;font-weight:600!important;color:var(--ink)!important;line-height:1.35;min-height:2.6em;}
.sgh-prods ul.products li.product .price{padding:0 16px!important;margin:0 0 2px!important;color:var(--ink)!important;font-weight:800!important;font-size:17px!important;}
.sgh-prods ul.products li.product .price del{color:#9aa4b0!important;font-weight:500!important;font-size:13px!important;opacity:1;}
.sgh-prods ul.products li.product .price ins{text-decoration:none;}
.sgh-prods ul.products li.product .star-rating{margin:0 16px 6px!important;}
.sgh-prods ul.products li.product .button,.sgh-prods ul.products li.product .add_to_cart_button,.sgh-prods ul.products li.product .added_to_cart{margin:12px 16px 16px!important;margin-top:auto!important;display:block;text-align:center;background:var(--p)!important;color:#fff!important;border-radius:10px!important;font-weight:700!important;padding:11px 14px!important;transition:background .15s;}
.sgh-prods ul.products li.product .button:hover,.sgh-prods ul.products li.product .add_to_cart_button:hover{background:var(--pd)!important;}
.sgh-prods ul.products li.product a.button.product_type_simple:not(.add_to_cart_button){background:#eef2f6!important;color:var(--muted)!important;}

/* ===== HERO SLIDER ===== */
.sgh-hero{position:relative;z-index:0;isolation:isolate;min-height:540px;display:flex;align-items:center;background:#12263f;color:#fff;overflow:hidden;}
.sgh-hero__slides{position:absolute;inset:0;z-index:0;}
.sgh-hero__slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transition:opacity 1.1s ease;}
.sgh-hero__slide.is-active{opacity:1;}
.sgh-hero::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(9,20,35,.95) 0%,rgba(9,20,35,.9) 38%,rgba(9,20,35,.72) 68%,rgba(9,20,35,.5) 100%);}
.sgh-hero__in{position:relative;z-index:2;width:100%;max-width:1300px;margin:0 auto;padding:76px 24px 70px;}
.sgh-hero__dots{position:absolute;z-index:3;left:0;right:0;bottom:22px;display:flex;gap:10px;justify-content:center;}
.sgh-hero__dot{width:36px;height:5px;border-radius:5px;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:background .2s;}
.sgh-hero__dot.is-active{background:#fff;}
.sgh-eyebrow{display:inline-block;font-size:12.5px;font-weight:800;letter-spacing:.14em;color:var(--eye);text-transform:uppercase;margin-bottom:16px;}
.sgh-hero__title{font-size:clamp(32px,4.6vw,56px);line-height:1.05;font-weight:800;margin:0 0 18px;letter-spacing:-.02em;max-width:18ch;color:#fff!important;text-shadow:0 2px 18px rgba(0,0,0,.35);}
.sgh-hero__title span{color:var(--eye)!important;}
.sgh-hero__sub{font-size:clamp(15px,1.5vw,18px);line-height:1.6;color:#dbe6f0;max-width:56ch;margin:0 0 28px;}
.sgh-hero__cta{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:34px;}
.sgh-btn{display:inline-block;padding:14px 26px;border-radius:12px;font-weight:700;font-size:15.5px;text-decoration:none;transition:transform .15s,background .15s,box-shadow .15s;}
.sgh-btn--primary{background:#fff;color:var(--navy);box-shadow:0 10px 26px rgba(0,0,0,.24);}
.sgh-btn--primary:hover{transform:translateY(-2px);background:#eaf4f8;}
.sgh-btn--ghost{background:rgba(255,255,255,.08);color:#fff;border:1.5px solid rgba(255,255,255,.55);}
.sgh-btn--ghost:hover{background:rgba(255,255,255,.16);}
.sgh-trust{list-style:none;display:flex;flex-wrap:wrap;gap:14px 28px;margin:0;padding:24px 0 0;border-top:1px solid rgba(255,255,255,.16);}
.sgh-trust li{display:flex;align-items:center;gap:9px;font-size:14px;font-weight:600;color:#eaf1f7;}
.sgh-trust svg{width:20px;height:20px;color:var(--eye);flex:0 0 auto;}

/* ===== Secciones ===== */
.sgh-wrap{max-width:1300px;margin:0 auto;padding:0 24px;}
.sgh-sec{padding:62px 0;}
.sgh-prods--alt{background:var(--bg);}
.sgh-head{text-align:center;margin-bottom:34px;}
.sgh-head--row{display:flex;align-items:flex-end;justify-content:space-between;text-align:left;gap:16px;flex-wrap:wrap;}
.sgh-eyebrow--c{color:var(--p);}
.sgh-title{font-size:clamp(26px,3.2vw,38px);font-weight:800;color:var(--ink);margin:6px 0 0;letter-spacing:-.01em;}
.sgh-seeall{color:var(--p);font-weight:700;text-decoration:none;white-space:nowrap;font-size:15px;}
.sgh-seeall:hover{color:var(--pd);}

/* ===== Categorías con foto ===== */
.sgh-cats--tint{background:linear-gradient(180deg,#e9f1f6 0%,#eef4f8 100%);border-top:1px solid #dde8ef;border-bottom:1px solid #dde8ef;}
.sgh-catgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:20px;}
.sgh-cat{display:flex;flex-direction:column;background:#fff;border:1px solid var(--bd);border-radius:16px;overflow:hidden;text-decoration:none;transition:transform .25s,box-shadow .25s;}
.sgh-cat:hover{transform:translateY(-6px);box-shadow:0 20px 44px rgba(28,40,54,.14);}
.sgh-cat__img{display:block;width:100%;aspect-ratio:4/3;background-color:#eef2f6;background-size:cover;background-position:center;background-repeat:no-repeat;}
.sgh-cat__body{padding:16px 16px 4px;flex:1 1 auto;}
.sgh-cat__name{display:block;font-weight:800;font-size:16px;color:var(--ink);line-height:1.25;}
.sgh-cat__count{display:block;font-size:12.5px;color:var(--muted);margin-top:3px;}
.sgh-cat__go{padding:8px 16px 16px;color:var(--p);font-weight:700;font-size:13.5px;}

/* ===== Blog ===== */
.sgh-bloggrid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.sgh-post{display:flex;flex-direction:column;background:#fff;border:1px solid var(--bd);border-radius:16px;overflow:hidden;text-decoration:none;transition:transform .25s,box-shadow .25s;}
.sgh-post:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(28,40,54,.12);}
.sgh-post__img{display:block;width:100%;aspect-ratio:16/9;background-color:#e9eef3;background-size:cover;background-position:center;background-repeat:no-repeat;}
.sgh-post__body{display:flex;flex-direction:column;gap:8px;padding:18px 18px 20px;}
.sgh-post__date{font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--p);}
.sgh-post__title{font-size:17px;font-weight:800;color:var(--ink);line-height:1.3;}
.sgh-post__ex{font-size:14px;color:var(--muted);line-height:1.55;}
.sgh-post__go{font-size:13.5px;font-weight:700;color:var(--p);margin-top:2px;}

/* ===== CTA ===== */
.sgh-cta{background:linear-gradient(135deg,var(--ctaA) 0%,var(--ctaB) 120%);color:#fff;}
.sgh-cta__in{display:flex;align-items:center;justify-content:space-between;gap:26px;padding-top:52px;padding-bottom:52px;flex-wrap:wrap;}
.sgh-cta__in h2{font-size:clamp(24px,3vw,34px);font-weight:800;margin:0 0 8px;}
.sgh-cta__in p{margin:0;color:#dbe6f0;max-width:60ch;font-size:16px;line-height:1.6;}
.sgh-btn--white{background:#fff;color:var(--navy);box-shadow:0 10px 26px rgba(0,0,0,.2);white-space:nowrap;}
.sgh-btn--white:hover{transform:translateY(-2px);background:#eaf4f8;}

/* ===== Ficha de producto dentro de plantilla Elementor (restaura 2 columnas) =====
   El documento single de Elementor pone display:grid en su raíz .product, lo que
   rompe el layout flotante de Woo. Forzamos el layout estándar dentro de sg-woo-single. */
/* La raíz del documento single de Elementor recibe la clase 'product' y un
   display:grid (Woo moderno) que estruja el contenido: la volvemos block. */
.elementor-location-single.product,.elementor-location-single{display:block!important;}
.sg-woo-single{display:block;width:100%;max-width:100%;}
.sg-woo-single .woocommerce{display:block;width:100%;max-width:100%;}
.sg-woo-single div.product{display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:0 4%;}
.sg-woo-single div.product > .woocommerce-product-gallery{flex:0 0 48%;max-width:48%;width:48%!important;float:none!important;margin:0 0 2em;}
.sg-woo-single div.product > .summary,.sg-woo-single div.product > .entry-summary{flex:0 0 48%;max-width:48%;width:48%!important;float:none!important;margin:0 0 2em;}
.sg-woo-single div.product > .woocommerce-tabs,.sg-woo-single div.product > .related,.sg-woo-single div.product > .upsells,.sg-woo-single div.product > .product_meta{flex:0 0 100%;max-width:100%;width:100%!important;float:none!important;}
@media(max-width:768px){
  .sg-woo-single div.product{gap:0;}
  .sg-woo-single div.product > .woocommerce-product-gallery,.sg-woo-single div.product > .summary,.sg-woo-single div.product > .entry-summary{flex:0 0 100%;max-width:100%;width:100%!important;}
}

/* ===== Responsive ===== */
@media(max-width:1080px){.sgh-catgrid{grid-template-columns:repeat(3,1fr);}}
@media(max-width:900px){.sgh-prods ul.products{grid-template-columns:repeat(3,1fr)!important;} .sgh-bloggrid{grid-template-columns:repeat(3,1fr);} .sgh-cta__in{flex-direction:column;align-items:flex-start;}}
@media(max-width:680px){.sgh-catgrid{grid-template-columns:repeat(2,1fr);gap:14px;} .sgh-bloggrid{grid-template-columns:1fr;} .sgh-hero__in{padding:56px 20px 44px;} .sgh-head--row{flex-direction:column;align-items:flex-start;}}
@media(max-width:520px){.sgh-prods ul.products{grid-template-columns:repeat(2,1fr)!important;gap:12px!important;}}
