/* Impulso Commerce · Etapa 3. Estilos limitados a la portada; editables como bloques. */
:root {
  --ic-home-ink: var(--wp--preset--color--principal,#063b61);
  --ic-home-blue: var(--wp--preset--color--secundario,#0876ac);
  --ic-home-orange: var(--wp--preset--color--acento,#c9510b);
  --ic-home-border: var(--wp--preset--color--borde,#d8e2eb);
  --ic-home-muted: var(--wp--preset--color--texto-suave,#526579);
  --ic-home-surface: var(--wp--preset--color--superficie,#f4f7fa);
}
.ic-home { overflow: clip; }
.ic-home > * { margin-block-start: 0; }
.ic-home .alignwide { max-width: var(--wp--style--global--wide-size,1280px); }
.ic-home :where(h1,h2,h3,p) { overflow-wrap: normal; word-break: normal; }
.ic-home :where(h1,h2,h3) { text-wrap: balance; }
.ic-home .wp-block-button__link { transition: background-color .16s ease,color .16s ease,border-color .16s ease,transform .16s ease; }
.ic-home .wp-block-button__link:hover { transform: translateY(-1px); }
.ic-home .ic-home-section { padding-block: clamp(44px,5.5vw,86px); }
.ic-home .ic-home-section__inner { max-width: 1280px; }
.ic-home .ic-home__eyebrow { color: var(--ic-home-orange); font-weight: 800; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 10px; }
.ic-home .ic-home__section-heading { gap: 22px 32px; align-items: end; margin-bottom: clamp(20px,3vw,36px); }
.ic-home .ic-home__section-heading > .wp-block-group { max-width: 670px; }
.ic-home .ic-home__section-title { font-size: clamp(1.7rem,3.1vw,2.55rem); line-height: 1.17; font-weight: 800; margin: 0; letter-spacing: -.025em; }
.ic-home .ic-home__section-description { color: var(--ic-home-muted); max-width: 610px; margin-top: 10px; font-size: .98rem; }
.ic-home .ic-home__section-link { color: var(--ic-home-blue); font-weight: 750; margin: 0; }
.ic-home .ic-home__section-link a { color: inherit; white-space: nowrap; }
/* Portada: hero en mosaico, no slider automático: control del contenido y accesibilidad. */
.ic-home .ic-home-hero { padding: clamp(17px,2.4vw,32px) 0 0; }
.ic-home-hero__grid { display: grid!important; grid-template-columns: minmax(0,1.84fr) minmax(280px,.9fr); gap: clamp(12px,1.5vw,20px); }
.ic-home-hero__grid > * { min-width: 0; }
.ic-home-hero__primary {
  position: relative; isolation: isolate; overflow: hidden; min-height: clamp(390px,38vw,520px);
  display: flex; flex-direction: column; justify-content: center;
  border-radius: 20px; padding: clamp(28px,5vw,66px);
  color: #fff; background: linear-gradient(132deg,#042c49 0%,#064a75 52%,#0876ac 100%);
}
.ic-home-hero__primary::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(240px,37vw,510px); aspect-ratio: 1; border: 45px solid rgba(255,255,255,.055);
  border-radius: 50%; right: -13%; top: 2%; box-shadow: 0 0 0 25px rgba(255,255,255,.035),inset 0 0 0 27px rgba(255,255,255,.03);
}
.ic-home-hero__primary::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 48%; height: 130%; right: -7%; bottom: -83%; border-radius: 45px;
  border: 1px solid rgba(255,255,255,.24); transform: rotate(-33deg);
  background: linear-gradient(35deg,rgba(255,255,255,.045),transparent);
}
.ic-home-hero__tag {
  width: max-content; max-width: 100%; font-size: .73rem; letter-spacing: .13em; font-weight: 800;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 5px; color:#fff;
  background: rgba(255,255,255,.08); margin: 0 0 21px;
}
.ic-home .ic-home-hero__title { color: #fff; max-width: 710px; font-size: clamp(2.5rem,4.6vw,4.85rem); font-weight: 860; line-height: 1.07; letter-spacing: -.045em; margin: 0; }
.ic-home-hero__title em { color: #ffb77d; font-style: normal; }
.ic-home-hero__desc { color: #e8f1f8; font-size: clamp(.96rem,1.4vw,1.13rem); line-height: 1.58; max-width: 470px; margin-top: 21px; }
.ic-home-hero__actions { margin-top: 12px; gap: 10px; }
.ic-home .ic-home-hero__button-primary .wp-block-button__link { background: #fff; color: #063b61; border:2px solid #fff; }
.ic-home .ic-home-hero__button-primary .wp-block-button__link:hover { background: #e4f5fe; }
.ic-home .ic-home-hero__button-outline .wp-block-button__link { background:transparent; border:2px solid rgba(255,255,255,.75); color:#fff; }
.ic-home .ic-home-hero__button-outline .wp-block-button__link:hover { background:rgba(255,255,255,.12); }
.ic-home-hero__micro { color:#d1e4f3; font-size:.78rem; margin-top: 23px; }
.ic-home-hero__aside { display:grid; grid-template-rows: 1fr 1fr; gap: clamp(12px,1.5vw,20px); }
.ic-home .ic-home-promo { position: relative; isolation: isolate; overflow:hidden; border-radius: 20px; padding: clamp(24px,3vw,38px); min-height: 205px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; }
.ic-home-promo--power { background:#f0f5f9; }
.ic-home-promo--expert { background:#fff0e7; }
.ic-home .ic-home-promo::after { content:''; position:absolute; z-index:-1; width:180px; height:180px; border-radius:50%; right:-76px; top:25px; border:23px solid rgba(6,59,97,.045); }
.ic-home-promo--expert::after { border-color:rgba(201,81,11,.065)!important; }
.ic-home .ic-home-promo__tag { margin: 0 0 10px; color:#8f3e0e; letter-spacing:.10em; font-size:.68rem; font-weight:800; }
.ic-home .ic-home-promo--power .ic-home-promo__tag { color:var(--ic-home-blue); }
.ic-home .ic-home-promo h2 { font-size: clamp(1.35rem,2vw,1.82rem); max-width:310px; line-height:1.18; margin:0 0 14px; }
.ic-home .ic-home-promo p:last-child { margin:0; font-weight:750; font-size:.85rem; }
.ic-home .ic-home-promo p:last-child a { color: var(--ic-home-ink); }
/* Banda de confianza */
.ic-home .ic-home-trust { padding: 21px 0 19px; }
.ic-home-trust__inner { display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; padding:18px 0; border-bottom:1px solid var(--ic-home-border); }
.ic-home .ic-home-trust__item { padding: 8px 22px; border-right: 1px solid var(--ic-home-border); min-width:0; }
.ic-home-trust__item:first-child { padding-left:0; }
.ic-home-trust__item:last-child { border-right:0; }
.ic-home .ic-home-trust__icon { font-size:.72rem; font-weight:800; letter-spacing:.11em; color:var(--ic-home-orange); margin:0 0 8px; }
.ic-home .ic-home-trust__item h3 { font-size:1rem; line-height:1.27; font-weight:800; margin:0 0 5px; }
.ic-home .ic-home-trust__item p:last-child { font-size:.83rem; color:var(--ic-home-muted); line-height:1.5; margin:0; }
/* Categorías de WooCommerce: se actualizan desde el catálogo */
.ic-home .ic-home-categories { background:#fff; padding-top:clamp(35px,5vw,68px); }
.ic-home-categories__list { margin-top:20px; }
.ic-home .ic-home-categories__list :is(ul.wc-block-product-categories-list,ul.wc-block-product-categories-list--depth-0) {
  display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap: 13px; margin:0; padding:0; list-style:none;
}
.ic-home .ic-home-categories__list .wc-block-product-categories-list-item {
  list-style:none; min-width:0; margin:0!important; padding:0!important;
  display:flex; align-items:stretch; border:1px solid var(--ic-home-border);
  background:linear-gradient(165deg,#fff,#f9fbfc); border-radius:14px;
  box-shadow:0 4px 11px rgba(6,59,97,.025); transition:border-color .2s, transform .2s;
}
.ic-home .ic-home-categories__list .wc-block-product-categories-list-item:hover { transform:translateY(-3px); border-color:#8fc7e7; }
.ic-home .ic-home-categories__list .wc-block-product-categories-list-item a { display:flex; padding: 31px 15px; align-items:center; justify-content:center; width:100%; min-height:116px; text-align:center; color:var(--ic-home-ink); text-decoration:none; font-weight:800; font-size:.91rem; line-height:1.3; }
.ic-home .ic-home-categories__helper { color:#64798a; margin:17px 0 0; font-size:.8rem; text-align:center; }
/* Colecciones: el producto, precio y compra siguen en bloques de Woo */
.ic-home .ic-home-products--ofertas { background:#f5f8fb; }
.ic-home .ic-home-products--nuevos { background:#f8fafc; }
.ic-home .ic-home-product-grid { margin-top:0; }
.ic-home .ic-home-product-grid .wc-block-product { border:1px solid var(--ic-home-border); border-radius:14px; background:#fff; padding:15px!important; min-width:0; display:flex; flex-direction:column; box-shadow:0 5px 18px rgba(6,59,97,.04); }
.ic-home .ic-home-product-grid .wc-block-product > * { max-width:100%; }
.ic-home .ic-home-product-grid .wc-block-components-product-image { overflow:hidden; border-radius:9px; }
.ic-home .ic-home-product-grid .wc-block-components-product-image img { aspect-ratio:1; object-fit:contain; transition:transform .2s; }
.ic-home .ic-home-product-grid .wc-block-product:hover .wc-block-components-product-image img { transform:scale(1.025); }
.ic-home .ic-home-product-grid .wp-block-post-title { color:var(--ic-home-ink); font-size:.96rem; line-height:1.4; min-height:2.8em; margin:12px 0 5px; font-weight:720; }
.ic-home .ic-home-product-grid .wp-block-post-title a { color:inherit; }
.ic-home .ic-home-product-grid .wc-block-components-product-price { font-weight:850; font-size:1.18rem; color:var(--ic-home-ink); margin-bottom:12px; }
.ic-home .ic-home-product-grid .wc-block-components-product-price del { font-weight:450; font-size:.85rem; color:var(--ic-home-muted); }
.ic-home .ic-home-product-grid .wp-block-woocommerce-product-button { margin-top:auto; }
.ic-home .ic-home-product-grid .wp-block-woocommerce-product-button :where(a,button) { min-height:42px; width:100%; display:inline-flex; align-items:center; justify-content:center; border-radius:8px; text-decoration:none; font-weight:700; }
.ic-home .ic-home-empty { padding:24px; border:1px dashed var(--ic-home-border); border-radius:12px; color:var(--ic-home-muted); background:white; }
/* Banner intermedio */
.ic-home .ic-home-feature { padding: 0 0 16px; }
.ic-home-feature__inner { position:relative; isolation:isolate; overflow:hidden; border-radius:20px; background:linear-gradient(112deg,#132c40,#184b67); min-height:260px; padding:clamp(27px,4vw,58px); gap:22px; color:#fff; }
.ic-home-feature__inner::after { content:''; position:absolute; z-index:-1; width:400px; height:400px; border:45px solid rgba(255,255,255,.05); border-radius:50%; right:-90px; top:-170px; pointer-events:none; }
.ic-home .ic-home-feature .ic-home__eyebrow { color:#ffbd83; }
.ic-home .ic-home-feature h2 { max-width:700px; color:#fff; margin:0 0 13px; font-size:clamp(1.65rem,3.1vw,2.5rem); }
.ic-home .ic-home-feature .ic-home-feature__copy p:last-child { color:#deebf4; max-width:610px; margin:0; }
.ic-home .ic-home-feature .wp-block-button__link { background:#fff; color:var(--ic-home-ink); white-space:nowrap; }
.ic-home .ic-home-feature .wp-block-button__link:hover { background:#e7f5ff; }
/* Franja de especialidades/marcas */
.ic-home .ic-home-brands { padding-block:40px 58px; }
.ic-home .ic-home-brand-grid { gap:10px; flex-wrap:wrap!important; }
.ic-home .ic-home-brand-grid > .wp-block-column { min-width:125px; margin:0; }
.ic-home .ic-home-brand-grid p { display:grid; place-items:center; min-height:87px; margin:0; border:1px solid var(--ic-home-border); border-radius:12px; background:#fff; font-weight:850; color:#637789; letter-spacing:.045em; font-size:.83rem; text-align:center; }
/* Contacto */
.ic-home .ic-home-advice { padding-block:35px; background:#eaf4fb; }
.ic-home-advice__inner { gap:20px; }
.ic-home .ic-home-advice h2 { font-size:clamp(1.65rem,3vw,2.45rem); margin:0 0 11px; }
.ic-home .ic-home-advice .ic-home-advice__text p:last-child { color:var(--ic-home-muted); margin:0; }
/* FAQs nativas */
.ic-home .ic-home-faq { background:#fff; }
.ic-home .ic-home-faq__items { display:grid; gap:10px; max-width:930px; }
.ic-home .ic-home-faq__items details { border:1px solid var(--ic-home-border); border-radius:12px; padding:0 21px; background:#fff; }
.ic-home .ic-home-faq__items details[open] { border-color:#aad4e7; background:#f8fbfd; }
.ic-home .ic-home-faq__items summary { position:relative; list-style:none; cursor:pointer; padding:21px 34px 21px 0; font-weight:750; color:var(--ic-home-ink); }
.ic-home .ic-home-faq__items summary::-webkit-details-marker { display:none; }
.ic-home .ic-home-faq__items summary::after { content:'+'; font-size:1.4rem; position:absolute; right:1px; top:50%; transform:translateY(-50%); font-weight:500; color:var(--ic-home-blue); }
.ic-home .ic-home-faq__items details[open] summary::after { content:'−'; }
.ic-home .ic-home-faq__items details p { max-width:800px; padding-bottom:20px; margin:0; color:var(--ic-home-muted); }
/* Newsletter en preparación: no fingir un formulario operativo */
.ic-home .ic-home-news { padding:30px 0 clamp(45px,6vw,83px); }
.ic-home-news__inner { border:1px solid var(--ic-home-border); background:#f6f9fb; padding:clamp(24px,3vw,40px); border-radius:18px; gap:24px; }
.ic-home .ic-home-news h2 { max-width:760px; font-size:clamp(1.55rem,2.7vw,2.25rem); margin:0 0 9px; }
.ic-home .ic-home-news .wp-block-group > p:last-child { color:var(--ic-home-muted); max-width:680px; margin:0; }
/* Complementos insertables */
.ic-home-specs table { width:100%; }
.ic-home-whatsapp { padding:20px; border-radius:12px; border:1px solid var(--ic-home-border); background:#f5f8fb; }
@media (max-width: 1080px) {
  .ic-home-hero__grid { grid-template-columns: minmax(0,1.45fr) minmax(260px,1fr); }
  .ic-home .ic-home-categories__list :is(ul.wc-block-product-categories-list,ul.wc-block-product-categories-list--depth-0) { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 850px) {
  .ic-home-hero__grid { grid-template-columns: minmax(0,1fr); }
  .ic-home-hero__aside { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:1fr; }
  .ic-home .ic-home-promo { min-height:205px; }
  .ic-home-trust__inner { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ic-home .ic-home-trust__item { border-right:0; padding:15px 18px; }
  .ic-home .ic-home-trust__item:nth-child(odd) { border-right:1px solid var(--ic-home-border); }
  .ic-home .ic-home-trust__item:first-child { padding-left:18px; }
  .ic-home .ic-home-categories__list :is(ul.wc-block-product-categories-list,ul.wc-block-product-categories-list--depth-0) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 650px) {
  .ic-home .ic-home-hero { padding-top:10px; }
  .ic-home-hero__primary { min-height:410px; border-radius:14px; padding:32px 24px; }
  .ic-home .ic-home-hero__title { font-size:clamp(2.3rem,8.5vw,3.45rem); }
  .ic-home-hero__aside { gap:10px; }
  .ic-home .ic-home-promo { padding:19px; min-height:196px; border-radius:13px; }
  .ic-home .ic-home-promo h2 { font-size:1.14rem; }
  .ic-home .ic-home-promo__tag { font-size:.6rem; }
  .ic-home .ic-home-categories__list :is(ul.wc-block-product-categories-list,ul.wc-block-product-categories-list--depth-0) { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .ic-home .ic-home-categories__list .wc-block-product-categories-list-item a { min-height:85px; padding:18px 9px; font-size:.84rem; }
  .ic-home .ic-home__section-title { font-size:1.7rem; }
  .ic-home .ic-home-brand-grid > .wp-block-column { flex-basis:calc(50% - 6px)!important; }
  .ic-home .ic-home-brand-grid p { min-height:66px; font-size:.75rem; }
  .ic-home-feature__inner { border-radius:15px; }
  .ic-home .ic-home-trust { padding-top:8px; }
}
@media (max-width: 370px) {
  .ic-home-hero__aside { grid-template-columns:1fr; }
  .ic-home .ic-home-promo { min-height:155px; }
  .ic-home-hero__actions { flex-direction:column; align-items:stretch; }
  .ic-home-hero__actions .wp-block-button { width:100%; }
  .ic-home-hero__actions .wp-block-button__link { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  .ic-home :where(.wp-block-button__link,.wc-block-product-categories-list-item,.wc-block-components-product-image img) { transition:none!important; transform:none!important; }
}
