:root {
  --brand-red: #ed1e26;
  --brand-red-dark: #c9121a;
  --brand-black: #242424;
  --ink: #191919;
  --ink-soft: #5d5d5d;
  --paper: #fff;
  --surface: #f5f5f2;
  --line: #deded9;
  --success: #238552;
  --content-width: 1180px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shadow: 0 18px 55px rgba(20, 20, 20, .1);
}

html { scroll-behavior: smooth; }
body.niccar-home {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
.niccar-home *, .niccar-home *::before, .niccar-home *::after { box-sizing: border-box; }
.niccar-home img, .niccar-home svg { display: block; max-width: 100%; }
.niccar-home a { color: inherit; text-decoration: none; }
.niccar-home button { font: inherit; }
.niccar-home .hidden { display: none !important; }
.niccar-home :focus-visible { outline: 3px solid rgba(237, 30, 38, .35); outline-offset: 3px; }
.home-container { width: min(calc(100% - 40px), var(--content-width)); margin-inline: auto; }
.home-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--brand-red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.home-eyebrow::before { width: 28px; height: 3px; border-radius: 99px; background: currentColor; content: ""; }
.home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}
.home-heading h2 { max-width: 760px; margin: 0; font-size: clamp(2rem, 4vw, 3.65rem); line-height: .99; letter-spacing: -.055em; }
.home-heading p { margin: 0; color: var(--ink-soft); font-size: 1.02rem; }
.home-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.home-button:hover { transform: translateY(-2px); }
.home-button--primary { color: #fff !important; background: var(--brand-red); }
.home-button--primary:hover { background: var(--brand-red-dark); }
.home-button--light { color: var(--ink) !important; background: #fff; }
.home-button--outline { border-color: #bdbdb8; background: transparent; }
.home-button svg { width: 18px; height: 18px; }

/* Encabezado */
.home-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(222, 222, 217, .85);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
}
.home-header-inner { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.home-brand { display: inline-flex; align-items: center; gap: 12px; }
.home-brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.home-brand-copy { display: grid; line-height: 1.05; }
.home-brand-copy strong { font-size: 1.12rem; letter-spacing: .06em; }
.home-brand-copy span { margin-top: 5px; color: var(--ink-soft); font-size: .69rem; letter-spacing: .045em; text-transform: uppercase; }
.home-nav { display: flex; align-items: center; gap: 24px; }
.home-nav > a { font-size: .9rem; font-weight: 700; }
.home-nav > a:hover { color: var(--brand-red); }
.home-header-actions { display: flex; align-items: center; gap: 9px; }
.home-icon-button {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.home-icon-button:hover { color: #fff; border-color: var(--brand-red); background: var(--brand-red); }
.home-icon-button .material-symbols-outlined { font-size: 21px; }
.home-cart-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-red);
  font-size: .63rem;
  font-weight: 800;
  line-height: 15px;
}
.home-menu-toggle { display: none; }
.home-mobile-menu { display: none; padding: 0 0 22px; }
.home-mobile-menu:not(.hidden) { display: grid; gap: 8px; }
.home-mobile-menu a, .home-mobile-menu button { padding: 10px 0; text-align: left; font-weight: 800; }

/* Portada */
.home-hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 58px;
  background: radial-gradient(circle at 90% 15%, rgba(237,30,38,.13), transparent 25%), linear-gradient(135deg,#fff 0%,#f7f7f4 64%,#efefeb 100%);
}
.home-hero::after { position: absolute; right: -100px; bottom: -330px; width: 610px; height: 610px; border: 84px solid rgba(36,36,36,.035); border-radius: 50%; content: ""; }
.home-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.12fr) minmax(380px,.72fr); gap: clamp(45px,7vw,100px); align-items: center; }
.home-hero h1 { max-width: 820px; margin: 0; font-size: clamp(3.25rem,7.2vw,6.7rem); line-height: .88; letter-spacing: -.072em; }
.home-hero h1 span { color: var(--brand-red); }
.home-hero-lead { max-width: 660px; margin: 26px 0 30px; color: var(--ink-soft); font-size: clamp(1.05rem,1.8vw,1.25rem); }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero-note { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--ink-soft); font-size: .86rem; }
.home-hero-note span { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(35,133,82,.12); }
.home-hero-visual { position: relative; min-height: 480px; }
.home-logo-card { position: absolute; inset: 12px 18px 48px 10px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-lg); background: var(--brand-black); box-shadow: var(--shadow); }
.home-logo-card::before { position: absolute; inset: 0 0 0 50%; background: var(--brand-red); content: ""; }
.home-logo-card img { position: relative; z-index: 1; width: min(74%,310px); aspect-ratio: 1; border: 10px solid rgba(255,255,255,.96); border-radius: 50%; object-fit: cover; box-shadow: 0 22px 50px rgba(0,0,0,.22); }
.home-floating-card { position: absolute; z-index: 2; right: 0; bottom: 18px; max-width: 250px; padding: 18px 20px; border: 1px solid rgba(222,222,217,.8); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow); }
.home-floating-card strong { display: block; margin-bottom: 3px; font-size: 1.04rem; }
.home-floating-card span { color: var(--ink-soft); font-size: .84rem; }

/* Ventajas */
.home-trust { color: #fff; background: var(--brand-black); }
.home-trust-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.home-trust-item { display: flex; min-height: 112px; align-items: center; gap: 14px; padding: 22px 25px; border-right: 1px solid rgba(255,255,255,.13); }
.home-trust-item:first-child { border-left: 1px solid rgba(255,255,255,.13); }
.home-trust-icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-red); }
.home-trust-icon svg { width: 19px; height: 19px; }
.home-trust-item strong { display: block; font-size: .9rem; }
.home-trust-item span:last-child { display: block; margin-top: 3px; color: #bcbcbc; font-size: .76rem; }

/* Categorías */
.home-categories { padding: 105px 0; }
.home-category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.home-category-card { position: relative; min-height: 255px; padding: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.home-category-card:hover { transform: translateY(-5px); border-color: #c5c5c0; box-shadow: 0 20px 45px rgba(20,20,20,.08); }
.home-category-number { color: var(--brand-red); font-size: .73rem; font-weight: 800; letter-spacing: .12em; }
.home-category-card h3 { max-width: 250px; margin: 55px 0 10px; font-size: 1.42rem; line-height: 1.06; letter-spacing: -.03em; }
.home-category-card p { max-width: 270px; margin: 0; color: var(--ink-soft); font-size: .87rem; }
.home-category-arrow { position: absolute; right: 24px; top: 24px; display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.home-category-arrow svg { width: 17px; height: 17px; }

/* Servicio técnico */
.home-support { padding: 105px 0; color: #fff; background: var(--brand-black); }
.home-support-grid { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(45px,8vw,110px); align-items: center; }
.home-support .home-eyebrow { color: #ff5a60; }
.home-support h2 { max-width: 560px; margin: 0; font-size: clamp(2.6rem,5vw,5rem); line-height: .92; letter-spacing: -.065em; }
.home-support-copy > p { max-width: 550px; margin: 25px 0 32px; color: #c9c9c9; font-size: 1.04rem; }
.home-support-steps { display: grid; gap: 12px; }
.home-support-step { display: grid; grid-template-columns: 48px 1fr; gap: 17px; padding: 23px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-md); background: rgba(255,255,255,.045); }
.home-step-number { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-red); font-weight: 800; }
.home-support-step h3 { margin: 2px 0 5px; font-size: 1.04rem; }
.home-support-step p { margin: 0; color: #bdbdbd; font-size: .87rem; }

/* Productos reales */
.home-featured { padding: 105px 0; background: var(--surface); }
.home-product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.home-product-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.home-product-visual { position: relative; display: block; min-height: 260px; overflow: hidden; background: linear-gradient(145deg,#edede9,#fafaf8); }
.home-product-visual img { width: 100%; height: 260px; object-fit: cover; transition: transform .35s ease; }
.home-product-card:hover .home-product-visual img { transform: scale(1.035); }
.home-product-badge { position: absolute; top: 18px; left: 18px; padding: 6px 9px; border-radius: 999px; color: #fff; background: rgba(36,36,36,.88); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.home-product-body { padding: 24px; }
.home-product-category { color: var(--brand-red); font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.home-product-body h3 { margin: 7px 0 10px; font-size: 1.24rem; line-height: 1.12; }
.home-product-body h3 a:hover { color: var(--brand-red); }
.home-product-body p { min-height: 42px; margin: 0 0 18px; color: var(--ink-soft); font-size: .87rem; }
.home-product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.home-product-price { color: var(--brand-red); font-size: 1.35rem; font-weight: 800; }
.home-add-button { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; color: #fff; background: var(--brand-red); cursor: pointer; }
.home-add-button:disabled { opacity: .4; cursor: not-allowed; }
.home-empty { grid-column: 1 / -1; padding: 45px; border: 1px dashed #aaa; border-radius: var(--radius-md); text-align: center; background: #fff; }
.home-empty strong { display: block; margin-bottom: 7px; font-size: 1.3rem; }
.home-empty p { margin: 0 0 20px; color: var(--ink-soft); }

/* Empresa */
.home-about { padding: 105px 0; }
.home-about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.92fr); gap: clamp(50px,8vw,110px); align-items: center; }
.home-about-art { position: relative; min-height: 540px; border-radius: var(--radius-lg); background: linear-gradient(135deg,var(--brand-red) 0 48%,var(--brand-black) 48% 100%); }
.home-about-art::before { position: absolute; inset: 44px; border: 1px solid rgba(255,255,255,.42); border-radius: calc(var(--radius-lg) - 7px); content: ""; }
.home-about-art-copy { position: absolute; right: 48px; bottom: 48px; left: 48px; color: #fff; }
.home-about-art-copy strong { display: block; max-width: 420px; font-size: clamp(2.1rem,4vw,4rem); line-height: .94; letter-spacing: -.055em; }
.home-about-art-copy span { display: block; margin-top: 17px; font-size: .86rem; letter-spacing: .08em; text-transform: uppercase; }
.home-about-copy h2 { margin: 0; font-size: clamp(2.5rem,4.8vw,4.7rem); line-height: .93; letter-spacing: -.06em; }
.home-about-copy > p { margin: 25px 0 28px; color: var(--ink-soft); font-size: 1.02rem; }
.home-check-list { display: grid; gap: 14px; padding: 0; margin: 0 0 32px; list-style: none; }
.home-check-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.home-check-list span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-red); font-size: .72rem; }

/* Contacto */
.home-contact { padding: 0 0 105px; }
.home-contact-panel { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 42px; align-items: center; overflow: hidden; padding: clamp(38px,6vw,72px); border-radius: var(--radius-lg); color: #fff; background: var(--brand-red); }
.home-contact-panel::after { position: absolute; right: -120px; bottom: -220px; width: 430px; height: 430px; border: 70px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.home-contact-panel h2 { position: relative; z-index: 1; max-width: 680px; margin: 0; font-size: clamp(2.5rem,5vw,5rem); line-height: .91; letter-spacing: -.06em; }
.home-contact-side { position: relative; z-index: 1; }
.home-contact-side p { margin: 0 0 22px; color: rgba(255,255,255,.84); }
.home-contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Pie */
.home-footer { padding: 72px 0 30px; color: #fff; background: #171717; }
.home-footer-grid { display: grid; grid-template-columns: 1.2fr .7fr .9fr; gap: 55px; padding-bottom: 58px; }
.home-footer .home-brand-copy span { color: #929292; }
.home-footer-brand p { max-width: 410px; margin: 22px 0 0; color: #a9a9a9; font-size: .9rem; }
.home-footer-column h3 { margin: 0 0 18px; font-size: .78rem; letter-spacing: .11em; text-transform: uppercase; }
.home-footer-links { display: grid; gap: 10px; color: #adadad; font-size: .88rem; }
.home-footer-links a:hover, .home-footer-links button:hover { color: #fff; }
.home-footer-links button { padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.home-footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12); color: #777; font-size: .76rem; }

/* Catálogo público */
.catalog-main { padding: 44px 0 105px; background: var(--paper); }
.catalog-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(230px,.42fr);
  gap: 48px;
  align-items: end;
  overflow: hidden;
  padding: clamp(42px,6vw,76px);
  border-radius: var(--radius-lg);
  color: #fff;
  background: radial-gradient(circle at 88% 18%,rgba(237,30,38,.48),transparent 28%), linear-gradient(135deg,#242424 0%,#111 100%);
}
.catalog-hero::after { position: absolute; right: -85px; bottom: -280px; width: 470px; height: 470px; border: 68px solid rgba(255,255,255,.06); border-radius: 50%; content: ""; }
.catalog-hero-copy, .catalog-summary { position: relative; z-index: 1; }
.catalog-hero .home-eyebrow { color: #ff5a60; }
.catalog-hero h1 { max-width: 770px; margin: 0; font-size: clamp(3rem,6vw,6rem); line-height: .9; letter-spacing: -.067em; }
.catalog-hero-copy > p:last-child { max-width: 620px; margin: 24px 0 0; color: #c9c9c9; font-size: 1.05rem; }
.catalog-summary { padding: 22px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-md); background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.catalog-summary span { display: block; color: #bdbdbd; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.catalog-summary strong { display: block; margin-top: 8px; font-size: 1.35rem; line-height: 1.1; }
.catalog-summary small { display: block; margin-top: 8px; color: #c9c9c9; }
.catalog-layout { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 34px; align-items: start; margin-top: 44px; }
.catalog-filter { position: sticky; top: 106px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.catalog-filter h2 { margin: 0 0 24px; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.catalog-form { display: grid; gap: 20px; }
.catalog-field { display: grid; gap: 8px; }
.catalog-field label, .catalog-filter-label { color: var(--ink-soft); font-size: .69rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.catalog-field input, .catalog-field select { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cfcfca; border-radius: 12px; color: var(--ink); background: #fff; }
.catalog-field input:focus, .catalog-field select:focus { border-color: var(--brand-red); outline: 3px solid rgba(237,30,38,.12); }
.catalog-check { display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; cursor: pointer; }
.catalog-check input { width: 18px; height: 18px; accent-color: var(--brand-red); }
.catalog-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.catalog-filter-actions .home-button { min-height: 44px; padding: 9px 12px; font-size: .78rem; }
.catalog-filter-categories { margin-top: 28px; padding-top: 25px; border-top: 1px solid var(--line); }
.catalog-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.catalog-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); background: #fff; font-size: .68rem; font-weight: 800; }
.catalog-chip:hover, .catalog-chip.is-active { color: #fff; border-color: var(--brand-red); background: var(--brand-red); }
.catalog-results-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.catalog-results-head h2 { margin: 0; font-size: clamp(1.9rem,3vw,2.7rem); line-height: 1; letter-spacing: -.045em; }
.catalog-results-head p { margin: 8px 0 0; color: var(--ink-soft); font-size: .88rem; }
.catalog-results-count { flex: 0 0 auto; padding: 8px 12px; border-radius: 999px; color: var(--ink-soft); background: var(--surface); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.catalog-product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.catalog-product-grid .home-product-body p { display: -webkit-box; min-height: 42px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-product-brand { display: block; margin-bottom: 5px; color: var(--ink-soft); font-size: .65rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.catalog-card-actions { display: flex; align-items: center; gap: 8px; }
.catalog-view-link { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .7rem; font-weight: 800; }
.catalog-view-link:hover { border-color: var(--brand-red); color: var(--brand-red); }
.catalog-empty { padding: 70px 28px; border: 1px dashed #b8b8b3; border-radius: var(--radius-md); text-align: center; background: var(--surface); }
.catalog-empty .material-symbols-outlined { margin-bottom: 14px; color: var(--brand-red); font-size: 42px; }
.catalog-empty h2 { margin: 0; font-size: 1.65rem; }
.catalog-empty p { max-width: 470px; margin: 10px auto 22px; color: var(--ink-soft); }

@media (max-width: 1040px) {
  .home-nav { display: none; }
  .home-menu-toggle { display: grid; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-hero-visual { min-height: 430px; }
  .home-logo-card { inset: 10px 8% 42px; }
  .home-trust-grid { grid-template-columns: repeat(2,1fr); }
  .home-category-grid, .home-product-grid { grid-template-columns: repeat(2,1fr); }
  .home-support-grid, .home-about-grid { grid-template-columns: 1fr; }
  .home-about-art { min-height: 440px; }
  .home-contact-panel { grid-template-columns: 1fr; }
  .catalog-hero { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-filter { position: static; }
  .catalog-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  .home-container { width: min(calc(100% - 28px),var(--content-width)); }
  .home-header-inner { min-height: 74px; }
  .home-brand-copy span { display: none; }
  .home-header-actions .home-login-button { display: none; }
  .home-hero { padding-top: 54px; }
  .home-hero h1 { font-size: clamp(3rem,16vw,4.8rem); }
  .home-hero-visual { min-height: 340px; }
  .home-logo-card { inset: 0 0 38px; }
  .home-logo-card img { width: 62%; border-width: 7px; }
  .home-floating-card { right: 10px; bottom: 5px; }
  .home-trust-grid, .home-category-grid, .home-product-grid { grid-template-columns: 1fr; }
  .home-trust-item, .home-trust-item:first-child { border-right: 0; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .home-heading { grid-template-columns: 1fr; gap: 18px; }
  .home-categories, .home-support, .home-featured, .home-about { padding: 78px 0; }
  .home-category-card { min-height: 225px; }
  .home-about-art { min-height: 390px; }
  .home-about-art::before { inset: 24px; }
  .home-about-art-copy { right: 30px; bottom: 30px; left: 30px; }
  .home-contact { padding-bottom: 78px; }
  .home-footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .home-footer-bottom { display: grid; }
  .catalog-main { padding-top: 24px; padding-bottom: 78px; }
  .catalog-hero { gap: 30px; padding: 36px 25px; }
  .catalog-product-grid { grid-template-columns: 1fr; }
  .catalog-results-head { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
