/* Cipisa Tienda Online — identidad alineada con grupocipisa.com */
:root {
  --gc-text: #1c2430;
  --gc-muted: #5b6676;
  --gc-soft: #f4f6f8;
  --gc-line: #e7ebf0;
  --gc-shadow: 0 10px 30px rgba(10, 20, 30, 0.1);
  --gc-shadow2: 0 18px 50px rgba(10, 20, 30, 0.14);
  --gc-pink: #d21668;
  --gc-pink-dark: #8f3658;
  --gc-radius: 14px;

  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;
  --navy: var(--gc-pink-dark);
  --navy-2: #6f2744;
  --red: var(--gc-pink);
  --red-2: #c8145f;
  --paper: #ffffff;
  --paper-2: var(--gc-soft);
  --paper-3: #ececec;
  --ink: var(--gc-text);
  --ink-2: #444a52;
  --muted: var(--gc-muted);
  --rule: var(--gc-line);
  --rule-2: #b8bec7;
  --ok: #2e8a4f;

  --sans: 'Montserrat', 'Roboto', system-ui, -apple-system, Helvetica, Arial, sans-serif;
  --serif: 'Roboto', system-ui, sans-serif;
  --tech: 'Roboto Mono', ui-monospace, Menlo, monospace;
}

[data-theme="dark"] {
  --paper: #0e1622;
  --paper-2: #14202f;
  --paper-3: #1c2a3d;
  --ink: #f1f3f6;
  --ink-2: #c5ccd6;
  --muted: #9aa3b0;
  --rule: #2a3850;
  --rule-2: #3d4d68;
  --navy: #2a5a96;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.cip-frame {
  background: var(--paper);
  color: var(--ink);
  min-height: 100%;
  font-size: 15px;
  line-height: 1.55;
}
[data-cip-density="compact"] .cip-frame { font-size: 14px; }

/* ── Top utility bar (institutional) ───────────────── */
.cip-utility {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.cip-utility-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 8px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.cip-utility a { color: #fff; opacity: 0.85; }
.cip-utility a:hover { opacity: 1; }
.cip-utility .sep { opacity: 0.35; padding: 0 4px; }

/* ── Header ────────────────────────────────────────── */
.cip-header {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.cip-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.cip-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.cip-logo .mark {
  width: 56px;
  height: 56px;
  background: var(--paper);
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  position: relative;
}
.cip-logo .mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--navy);
  opacity: 0.3;
}
.cip-logo .mark span {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 24px;
  color: var(--navy);
  letter-spacing: -0.04em;
  line-height: 1;
}
.cip-logo .word {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.cip-logo .word .top {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 28px;
  color: var(--navy);
  letter-spacing: 0.01em;
}
.cip-logo .word .top em {
  font-style: normal;
  color: var(--red);
}
.cip-logo .word .bot {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.cip-search {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--rule-2);
  background: var(--paper-2);
  height: 44px;
  padding: 0 14px;
  gap: 10px;
  cursor: text;
}
.cip-search:hover { border-color: var(--navy); background: var(--paper); }
.cip-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}
.cip-search input::placeholder { color: var(--muted); }
.cip-search .badge {
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.cip-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cip-iconbtn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
}
.cip-iconbtn:hover { color: var(--red); }
.cip-iconbtn .num {
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: -4px;
}

/* ── Main nav (Elementor-style, all-caps, underline on hover) ─ */
.cip-nav {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.cip-nav-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  gap: 4px;
}
.cip-nav a {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.cip-nav a:hover { color: var(--red); }
.cip-nav a.active { border-bottom-color: var(--red); color: var(--navy); }
.cip-nav a .chev { margin-left: 6px; opacity: 0.5; font-size: 9px; }

/* ── Breadcrumb ────────────────────────────────────── */
.cip-breadcrumb {
  background: var(--paper-2);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.cip-breadcrumb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  gap: 8px;
}
.cip-breadcrumb a:hover { color: var(--navy); }
.cip-breadcrumb .sep { color: var(--rule-2); }
.cip-breadcrumb .here { color: var(--navy); font-weight: 600; }

/* ── Page hero (full-bleed photographic, like categoría) ─ */
.cip-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.cip-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  position: relative;
  z-index: 2;
}
.cip-hero .eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cip-hero .eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--red);
}
.cip-hero h1 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
  max-width: 820px;
}
.cip-hero h1 em {
  font-style: normal;
  color: #fff;
  background: var(--red);
  padding: 0 14px;
  display: inline-block;
}
.cip-hero p {
  margin: 24px 0 0;
  font-size: 18px;
  max-width: 600px;
  line-height: 1.5;
  opacity: 0.92;
}
.cip-hero-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--navy) 0%, var(--navy) 45%, transparent 70%), var(--ink);
  z-index: 1;
}
.cip-hero-photo .ph {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 55%;
  background-image:
    linear-gradient(135deg, rgba(192,32,43,0.15), rgba(0,0,0,0.4)),
    repeating-linear-gradient(45deg, #2a3850 0 12px, #243044 12px 24px);
}
.cip-hero-photo .ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  right: 24px;
  font-family: var(--tech);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cip-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 36px;
}

/* ── Buttons ──────────────────────────────────────── */
.cip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 24px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--ink);
  transition: background .15s, color .15s, border-color .15s;
}
.cip-btn.primary { background: var(--red); color: #fff; }
.cip-btn.primary:hover { background: var(--red-2); }
.cip-btn.navy { background: var(--navy); color: #fff; }
.cip-btn.navy:hover { background: var(--navy-2); }
.cip-btn.ghost { border: 1.5px solid var(--rule-2); color: var(--ink); background: var(--paper); }
.cip-btn.ghost:hover { border-color: var(--navy); color: var(--navy); }
.cip-btn.ghost-light { border: 1.5px solid rgba(255,255,255,0.45); color: #fff; background: transparent; }
.cip-btn.ghost-light:hover { background: #fff; color: var(--navy); }
.cip-btn.sm { padding: 9px 16px; font-size: 11px; }
.cip-btn .arrow { font-weight: 400; }

/* ── Section header (Elementor-style) ─────────────── */
.cip-section { padding: 72px 32px; max-width: 1320px; margin: 0 auto; }
.cip-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.cip-section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.cip-section-head .eyebrow::before,
.cip-section-head .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--red);
}
.cip-section-head h2 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 16px 0 12px;
}
.cip-section-head p {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0;
}

/* ── Category tile (square photographic, like home) ── */
.cip-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cip-cat {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--rule);
  transition: transform .25s ease, box-shadow .25s ease;
}
.cip-cat:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,0.08); }
.cip-cat-photo {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7));
}
.cip-cat-photo.uso { background-color: #4a5363; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7)), repeating-linear-gradient(135deg, #4a5363 0 14px, #424b59 14px 28px); }
.cip-cat-photo.sold { background-color: #2a1d12; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85)), radial-gradient(circle at 60% 40%, #d97706 0%, #6b3a08 30%, #2a1d12 70%); }
.cip-cat-photo.corte { background-color: #1f2937; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7)), repeating-linear-gradient(45deg, #1f2937 0 8px, #2c3a4d 8px 16px); }
.cip-cat-photo.quim { background-color: #134e4a; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7)), radial-gradient(circle at 70% 30%, #10b981 0%, #134e4a 60%); }
.cip-cat-photo.term { background-color: #7c2d12; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7)), radial-gradient(circle at 50% 50%, #ea580c 0%, #7c2d12 60%); }
.cip-cat-photo.hivis { background-color: #b45309; background-image: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.6)), repeating-linear-gradient(0deg, #f59e0b 0 28px, #1f2937 28px 36px, #f59e0b 36px 64px); }
.cip-cat-photo.vest { background-color: #1e3a5f; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7)), repeating-linear-gradient(90deg, #1e3a5f 0 18px, #243f63 18px 36px); }
.cip-cat-photo.ocul { background-color: #0f172a; background-image: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.75)), radial-gradient(circle at 50% 60%, #475569 0%, #0f172a 60%); }
.cip-cat-photo::before {
  content: attr(data-mock);
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--tech);
  font-size: 9px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.cip-cat-label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 20px 22px 22px;
  color: #fff;
  z-index: 2;
}
.cip-cat-label .n {
  font-family: var(--tech);
  font-size: 11px;
  opacity: 0.7;
  letter-spacing: 0.1em;
}
.cip-cat-label h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 24px;
  margin: 4px 0 0;
  letter-spacing: -0.005em;
}
.cip-cat-label .arrow {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(4px);
}

/* ── Product card ─────────────────────────────────── */
.cip-prod {
  background: var(--paper);
  border: 1px solid var(--rule);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color .15s, box-shadow .15s;
}
.cip-prod:hover { border-color: var(--navy); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.cip-prod-img {
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}
.cip-prod-img::before {
  content: attr(data-mock);
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--tech);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cip-prod-img .gv {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--rule-2);
}
.cip-prod-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
}
.cip-prod-tag.navy { background: var(--navy); }
.cip-prod-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.cip-prod-ref {
  font-family: var(--tech);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.cip-prod-cat {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.cip-prod-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 10px;
  min-height: 40px;
}
.cip-prod-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.cip-prod-meta .pill {
  font-family: var(--tech);
  font-size: 10px;
  color: var(--ink-2);
  background: var(--paper-2);
  padding: 3px 8px;
  border: 1px solid var(--rule);
  letter-spacing: 0.04em;
}
.cip-prod-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.cip-prod-price {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 18px;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.cip-prod-price .unit {
  font-family: var(--tech);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── Spec icon row (EN-388 style) ─────────────────── */
.cip-spec-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.cip-spec {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  background: var(--paper-2);
  min-width: 140px;
}
.cip-spec .ic {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule-2);
  background: var(--paper);
  display: grid;
  place-items: center;
  color: var(--navy);
  flex-shrink: 0;
}
.cip-spec .lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.cip-spec .val {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  letter-spacing: -0.005em;
}

/* ── Inputs ───────────────────────────────────────── */
.cip-label {
  display: block;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.cip-input, .cip-select {
  width: 100%;
  border: 1.5px solid var(--rule-2);
  background: var(--paper);
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .12s;
}
.cip-input:focus, .cip-select:focus { border-color: var(--navy); }
.cip-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-2);
}
.cip-checkbox .box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--rule-2);
  background: var(--paper);
  display: grid;
  place-items: center;
}
.cip-checkbox.checked .box {
  background: var(--navy);
  border-color: var(--navy);
}
.cip-checkbox.checked .box::after {
  content: "";
  width: 8px;
  height: 4px;
  border: 1.5px solid #fff;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg) translate(1px,-1px);
}

/* ── Tags / chips ─────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  color: var(--ink-2);
  text-transform: uppercase;
}
.tag.red { background: var(--red); color: #fff; border-color: var(--red); }
.tag.navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.tag.outline-red { background: transparent; color: var(--red); border-color: var(--red); }
.tag.outline { background: transparent; color: var(--ink-2); border-color: var(--rule-2); }

/* Normativa chip */
.cip-norm {
  font-family: var(--tech);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: var(--paper);
  text-transform: uppercase;
}

/* Spec table (institutional) */
table.cip-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: var(--paper);
}
table.cip-spec th, table.cip-spec td {
  text-align: left;
  padding: 12px 18px;
  border-bottom: 1px solid var(--rule);
}
table.cip-spec th {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-2);
  width: 38%;
}
table.cip-spec td {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}
table.cip-spec tr:last-child th,
table.cip-spec tr:last-child td { border-bottom: 0; }
.tag.ok { background: #e8f5ee; color: var(--ok); border-color: #c5e3d0; }

/* ── Footer ───────────────────────────────────────── */
.cip-footer {
  background: var(--navy);
  color: #fff;
  padding: 64px 32px 24px;
  margin-top: 80px;
}
.cip-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
.cip-footer h4 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 12px;
}
.cip-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 28px;
  height: 2px;
  background: var(--red);
}
.cip-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cip-footer a { font-size: 13px; opacity: 0.85; }
.cip-footer a:hover { opacity: 1; color: #fff; }
.cip-footer p { font-size: 13px; opacity: 0.78; line-height: 1.6; margin: 0 0 8px; }
.cip-footer .cip-contact-link {
  display: inline-block;
  font-size: inherit;
  color: #fff;
  opacity: 1;
}
/* Telefono (dentro de <p>): blanco solido y en negrita para que
   contraste bien sobre el fondo magenta del footer */
.cip-footer p .cip-contact-link {
  color: #fff;
  opacity: 1;
  font-weight: 700;
}
.cip-footer .cip-contact-link--address {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 8px;
  opacity: 0.9;
}
.cip-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.cip-social {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  opacity: .85;
  transition: opacity .15s, background .15s, border-color .15s, transform .15s;
}
.cip-social:hover {
  opacity: 1;
  color: #fff;
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.58);
  transform: translateY(-1px);
}
.cip-social svg {
  width: 15px;
  height: 15px;
  display: block;
  fill: currentColor;
}
.cip-footer-bottom {
  max-width: 1320px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  opacity: 0.65;
  letter-spacing: 0.04em;
}

/* ── Filter sidebar ───────────────────────────────── */
.cip-filter-group {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.cip-filter-group:first-child { padding-top: 0; }
.cip-filter-group h5 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
  display: flex;
  justify-content: space-between;
}
.cip-filter-group h5 .ct { color: var(--muted); font-weight: 500; font-family: var(--tech); letter-spacing: 0.04em; }
.cip-filter-group .opts { display: flex; flex-direction: column; gap: 8px; }

/* ── Placeholders ─────────────────────────────────── */
.placeholder-img {
  background: var(--paper-2);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.placeholder-img::before {
  content: attr(data-label);
  font-family: var(--tech);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.placeholder-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, transparent 49%, var(--rule) 49%, var(--rule) 51%, transparent 51%);
  background-size: 16px 16px;
  opacity: 0.4;
  pointer-events: none;
}

.cip-eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.cip-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}

/* ── Material selector (catalog page) ─────────────── */
.cip-material-bar {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.cip-material-bar .lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  flex-shrink: 0;
}
.cip-material-bar select {
  flex: 1;
  max-width: 320px;
  border: 1.5px solid var(--rule-2);
  background: var(--paper);
  padding: 10px 14px;
  font: inherit;
  color: var(--ink);
}
.cip-material-bar .chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.cip-material-bar .chip {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border: 1.5px solid var(--rule-2);
  background: var(--paper);
  cursor: pointer;
  text-transform: uppercase;
  color: var(--ink-2);
}
.cip-material-bar .chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.cip-material-bar .chip:hover:not(.active) { border-color: var(--navy); color: var(--navy); }

/* ── Catalog product block (Cipisa-style horizontal) ─ */
.cip-cat-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 32px;
  margin-bottom: 24px;
  scroll-margin-top: 100px;
}
.cip-cat-block-img {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.cip-cat-block-info h3 {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 32px;
  margin: 0;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.cip-cat-block-info .ref {
  font-family: var(--tech);
  font-size: 12px;
  color: var(--red);
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 6px;
}
.cip-cat-block-info .desc {
  font-size: 15px;
  color: var(--ink-2);
  margin: 14px 0 18px;
  line-height: 1.6;
}
.cip-cat-block-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cip-cat-block-info ul li {
  font-size: 13px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.cip-cat-block-info ul li::before {
  content: "■";
  color: var(--red);
  position: absolute;
  left: 0;
  font-size: 8px;
  top: 6px;
}

/* ── Anchor list (material navigation) ───────────── */
.cip-anchors {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.cip-anchors .lbl {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 12px;
  align-self: center;
}
.cip-anchors a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border: 1px solid var(--rule-2);
  color: var(--ink-2);
}
.cip-anchors a:hover { border-color: var(--navy); color: var(--navy); }


/* ── Global border-radius (institutional rounded) ────────────── */
.cip-logo .mark,
.cip-logo .mark::after,
.cip-search,
.cip-search .badge,
.cip-iconbtn,
.cip-iconbtn .num,
.cip-btn,
.cip-input, .cip-select,
textarea.cip-input,
.cip-checkbox .box,
.cip-norm,
.tag,
.cip-prod,
.cip-prod-img,
.cip-prod-tag,
.cip-prod-meta .pill,
.cip-cat,
.cip-cat-photo,
.cip-cat-label .arrow,
.cip-spec, table.cip-spec,
.cip-material-bar,
.cip-material-bar select,
.cip-material-bar .chip,
.cip-cat-block,
.cip-cat-block-img,
.cip-anchors a,
.placeholder-img,
.cip-hero-photo .ph,
.cip-utility,
.cip-footer,
header.cip-header,
.cip-nav,
.cip-breadcrumb {
  border-radius: var(--r-md);
}

/* Smaller pieces */
.cip-iconbtn .num,
.cip-prod-tag,
.cip-prod-meta .pill,
.tag,
.cip-norm,
.cip-search .badge,
.cip-anchors a,
.cip-material-bar .chip {
  border-radius: var(--r-pill);
}

/* Larger surfaces */
.cip-prod,
.cip-cat,
.cip-cat-photo,
.cip-cat-block,
.cip-cat-block-img,
.placeholder-img,
.cip-prod-img,
.cip-hero-photo .ph,
.cip-material-bar,
table.cip-spec {
  border-radius: var(--r-lg);
}

/* Logo mark squarish */
.cip-logo .mark { border-radius: var(--r-sm); }
.cip-logo .mark::after { border-radius: 4px; }

/* Inputs medium */
.cip-input, .cip-select, textarea.cip-input, .cip-search,
.cip-material-bar select, .cip-btn { border-radius: var(--r-md); }

/* Bare divs commonly used as cards/panels in pages */
[style*="border: 1px solid var(--rule)"],
[style*="border:1px solid var(--rule)"],
[style*="border: 1px solid var(--ink)"],
[style*="border:1px solid var(--ink)"],
[style*="border: 2px solid var(--navy)"],
[style*="border:2px solid var(--navy)"],
[style*="border: 1.5px solid var(--rule-2)"],
[style*="border:1.5px solid var(--rule-2)"] {
  border-radius: var(--r-md);
}

/* Soft tables */
table { border-radius: var(--r-md); overflow: hidden; }

/* Don't round the navigation strip top borders / dividers */
.cip-nav, .cip-breadcrumb, .cip-utility { border-radius: 0; }
.cip-footer { border-radius: 0; }
header.cip-header { border-radius: 0; }


/* ====== EXPORT ADDITIONS (PrestaShop static) ====== */
:root{ --display: var(--sans); --accent: #D21668; }

/* Size chip shown on every image placeholder so devs know target px */
.szchip{ position:absolute; top:8px; right:8px; z-index:4;
  background:rgba(10,10,10,.72); color:#fff; font-family:var(--tech);
  font-size:9px; font-weight:600; letter-spacing:.06em; padding:3px 8px;
  border-radius:999px; pointer-events:none; }
.cip-cat .szchip, .cip-hero .szchip{ background:rgba(255,255,255,.18);
  -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); }

/* Empty <img> slot variant (dashed, ready to fill) */
.imgslot{ position:relative; background:var(--paper-2);
  border:1px dashed var(--rule-2); border-radius:var(--r-lg);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:6px; color:var(--muted); text-align:center; overflow:hidden; }
.imgslot::after{ content:""; position:absolute; inset:0;
  background-image:linear-gradient(45deg, transparent 49%, var(--rule) 49%, var(--rule) 51%, transparent 51%);
  background-size:18px 18px; opacity:.22; pointer-events:none; }
.imgslot .sz{ font-family:var(--tech); font-size:14px; font-weight:700; color:var(--ink-2); position:relative; z-index:1; }
.imgslot .nm{ font-family:var(--tech); font-size:10px; letter-spacing:.12em; text-transform:uppercase; position:relative; z-index:1; }

/* Corporate alignment layer from grupocipisa.com category styles */
.cip-header-inner,
.cip-nav-inner,
.cip-breadcrumb-inner,
.cip-section,
.cip-footer-inner,
.cip-footer-bottom {
  max-width: 1120px;
}

.cip-frame {
  font-family: var(--sans);
  color: var(--gc-text);
}

.cip-utility {
  background: var(--gc-pink);
}

.cip-header {
  box-shadow: 0 1px 0 var(--gc-line);
}

.cip-logo .mark {
  border-color: var(--gc-pink);
  border-radius: 10px;
}

.cip-logo .mark::after {
  border-color: var(--gc-pink);
  border-radius: 7px;
}

.cip-logo .mark span,
.cip-logo .word .top {
  color: var(--gc-pink-dark);
}

.cip-logo .word .top em,
.cip-nav a:hover,
.cip-nav a.active {
  color: var(--gc-pink);
}

.cip-search,
.cip-input,
.cip-select {
  border-color: var(--gc-line);
  background: #fff;
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.04);
}

.cip-search:hover,
.cip-input:focus,
.cip-select:focus {
  border-color: rgba(210, 22, 104, 0.42);
  box-shadow: 0 8px 22px rgba(10, 20, 30, 0.08);
}

.cip-search .badge,
.cip-iconbtn .num {
  background: var(--gc-pink);
}

.cip-nav a {
  letter-spacing: 0.12em;
}

.cip-nav a.active {
  border-bottom-color: var(--gc-pink);
}

.cip-breadcrumb {
  background: var(--gc-soft);
}

.cip-hero {
  background: #fff;
  color: #fff;
  padding: 40px 0;
  overflow: visible;
}

.cip-hero-photo,
.cip-hero .szchip {
  display: none;
}

.cip-hero-inner {
  width: min(1120px, 92%);
  max-width: none;
  padding: 40px;
  border-radius: var(--gc-radius);
  background:
    linear-gradient(180deg, #d21668 0%, #d21668 55%, #c8145f 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.cip-hero .eyebrow {
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.16em;
}

.cip-hero .eyebrow::before {
  background: rgba(255, 255, 255, 0.78);
  width: 24px;
}

.cip-hero h1 {
  text-transform: uppercase;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: 0.02em;
  max-width: 850px;
}

.cip-hero h1 em {
  background: transparent;
  padding: 0;
}

.cip-hero p {
  display: inline-block;
  max-width: 780px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.14);
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
  line-height: 1.55;
  opacity: 1;
}

.cip-btn {
  height: 46px;
  padding: 0 18px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.cip-btn:hover {
  transform: translateY(-2px);
}

.cip-btn.primary,
.cip-hero .cip-btn.primary {
  background: #fff;
  color: var(--gc-pink-dark);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.22);
}

.cip-btn.primary:hover,
.cip-hero .cip-btn.primary:hover {
  background: #fff;
  color: var(--gc-pink-dark);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26);
}

.cip-btn.navy {
  background: var(--gc-pink);
  color: #fff;
  box-shadow: 0 10px 25px rgba(210, 22, 104, 0.22);
}

.cip-btn.navy:hover {
  background: var(--red-2);
}

.cip-btn.ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.cip-btn.ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.cip-section {
  padding-top: 64px;
  padding-bottom: 64px;
}

.cip-section-head h2,
.cip-prod-name,
.cip-cat-label h3 {
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cip-section-head h2 {
  color: var(--gc-text);
  font-size: clamp(28px, 3vw, 44px);
}

.cip-section-head .eyebrow,
.cip-prod-cat,
.cip-prod-price,
.tag.outline-red {
  color: var(--gc-pink);
}

.cip-section-head .eyebrow::before,
.cip-section-head .eyebrow::after {
  background: var(--gc-pink);
}

.cip-cat,
.cip-prod,
.cip-cat-block,
.cip-material-bar,
.cip-prod-jump {
  border-color: var(--gc-line);
  box-shadow: var(--gc-shadow);
}

.cip-cat,
.cip-prod,
.cip-cat-block {
  border-radius: 18px;
}

.cip-cat:hover,
.cip-prod:hover,
.cip-cat-block:hover {
  border-color: rgba(215, 57, 126, 0.28);
  box-shadow: var(--gc-shadow2);
  transform: translateY(-4px);
}

.cip-cat-photo,
.cip-prod-img,
.cip-cat-block-img {
  background: linear-gradient(180deg, #fff 0%, #f7f8fa 100%);
}

.cip-cat .szchip,
.cip-prod-img .szchip {
  display: none;
}

.cip-cat-label {
  background: linear-gradient(180deg, transparent 0%, rgba(28, 36, 48, 0.78) 100%);
}

.cip-cat-label .n,
.cip-prod-ref,
.cip-prod-price .unit {
  color: var(--gc-muted);
}

.cip-prod-name {
  color: var(--gc-pink);
  font-weight: 800;
  font-size: 16px;
}

.cip-prod-tag,
.tag.red {
  background: var(--gc-pink);
  border: 1px solid var(--gc-pink);
  color: #fff;
  border-radius: 999px;
}

.cip-prod-tag.navy,
.tag.navy {
  background: var(--gc-pink);
  border-color: var(--gc-pink);
  color: #fff;
}

.cip-prod-meta .pill,
.tag,
.cip-norm,
.cip-spec,
.gc-badge {
  border-color: rgba(28, 36, 48, 0.14);
  background: #fff;
  color: var(--gc-text);
  border-radius: 12px;
}

.cip-checkbox.checked .box {
  background: var(--gc-pink);
  border-color: var(--gc-pink);
}

.cip-footer {
  background:
    linear-gradient(180deg, #d21668 0%, #d21668 60%, #c8145f 100%);
  margin-top: 0;
  box-shadow: 0 -18px 40px rgba(210, 22, 104, 0.16);
}

.cip-footer h4::after {
  background: rgba(255, 255, 255, 0.82);
}

@media (max-width: 620px) {
  .cip-hero {
    padding: 0;
  }

  .cip-hero-inner {
    width: 100%;
    border-radius: 0;
    padding: 24px 18px;
  }

  .cip-hero h1 {
    font-size: 34px;
    line-height: 1.06;
  }

  .cip-hero p {
    display: block;
    max-width: 100%;
    font-size: 15px;
  }

  .cip-hero-actions .cip-btn {
    width: 100%;
  }
}

/* Keep the original shop hero while preserving the corporate alignment elsewhere. */
.cip-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  padding: 0;
  overflow: hidden;
}

.cip-hero-photo {
  display: block;
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, var(--navy) 0%, var(--navy) 45%, transparent 70%), var(--ink);
  z-index: 1;
}

.cip-hero-photo .ph {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 55%;
  background-image:
    linear-gradient(135deg, rgba(192, 32, 43, 0.15), rgba(0, 0, 0, 0.4)),
    repeating-linear-gradient(45deg, #2a3850 0 12px, #243044 12px 24px);
}

.cip-hero .szchip {
  display: inline-flex;
}

/* Production view: hide mockup image dimension labels. */
.szchip,
.imgslot .sz,
.imgslot .nm {
  display: none !important;
}

.cip-category-intro {
  padding-bottom: 32px;
}

.cip-category-intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: flex-start;
}

.cip-category-intro h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1.15;
  margin: 14px 0 18px;
}

.cip-category-intro p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.65;
  margin: 0;
}

.cip-category-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cip-category-proof-card {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper-2);
  display: flex;
  align-items: center;
  gap: 13px;
}

.cip-category-proof-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(203, 18, 95, 0.18);
  border-radius: var(--r-sm);
  background: rgba(203, 18, 95, 0.06);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.cip-category-proof-icon svg {
  width: 22px;
  height: 22px;
}

.cip-category-proof-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  color: var(--red);
  letter-spacing: -.01em;
  line-height: 1.05;
}

.cip-category-proof-text {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 5px;
  font-weight: 500;
  line-height: 1.35;
}

.cip-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--paper);
}

.cip-proof-item {
  padding: 32px 28px;
  border-right: 1px solid var(--rule);
}

.cip-proof-item:last-child {
  border-right: 0;
}

.cip-proof-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 36px;
  color: var(--red);
  letter-spacing: 0;
  line-height: 1;
}

.cip-proof-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(203, 18, 95, 0.18);
  border-radius: var(--r-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(203, 18, 95, 0.06);
  flex: 0 0 auto;
}

.cip-proof-icon svg {
  width: 23px;
  height: 23px;
}

.cip-proof-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.cip-proof-text {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .cip-category-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cip-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cip-proof-item:nth-child(2) {
    border-right: 0;
  }

  .cip-proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .cip-category-proof-grid {
    grid-template-columns: 1fr;
  }

  .cip-category-proof-card {
    min-height: 76px;
  }

  .cip-proof-grid {
    grid-template-columns: 1fr;
  }

  .cip-proof-item,
  .cip-proof-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .cip-proof-item:last-child {
    border-bottom: 0;
  }
}

.cip-hero-inner {
  width: auto;
  max-width: 1320px;
  margin: 0 auto;
  padding: 80px 32px 96px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  z-index: 2;
}

.cip-hero .eyebrow {
  letter-spacing: 0.24em;
}

.cip-hero .eyebrow::before {
  width: 32px;
  background: var(--red);
}

.cip-hero h1 {
  font-size: 76px;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: none;
  max-width: 820px;
}

.cip-hero h1 em {
  background: var(--red);
  padding: 0 14px;
}

.cip-hero p {
  display: block;
  max-width: 600px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1.5;
  opacity: 0.92;
}

.cip-hero .cip-btn.primary {
  background: var(--red);
  color: #fff;
  box-shadow: none;
}

.cip-hero .cip-btn.primary:hover {
  background: var(--red-2);
  color: #fff;
  box-shadow: none;
}

.cip-hero .cip-btn.ghost-light {
  background: transparent;
}

.cip-hero .cip-btn.ghost-light:hover {
  background: #fff;
  color: var(--navy);
}

@media (max-width: 620px) {
  .cip-hero {
    padding: 0;
  }

  .cip-hero-photo {
    opacity: 0.45;
  }

  .cip-hero-photo .ph {
    width: 100%;
  }

  .cip-hero-inner {
    width: auto;
    padding: 56px 20px 64px;
  }

  .cip-hero h1 {
    font-size: 42px;
    line-height: 1.02;
  }

  .cip-hero p {
    max-width: 100%;
    font-size: 16px;
  }
}

/* Real CIPISA logo assets */
.cip-logo {
  position: relative;
  width: 218px;
  height: 72px;
  gap: 0;
  flex: 0 0 218px;
}

.cip-logo::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gc-pink);
  -webkit-mask: url("../img/logos/cipisa-logo-white.png") center / contain no-repeat;
  mask: url("../img/logos/cipisa-logo-white.png") center / contain no-repeat;
}

.cip-logo .mark,
.cip-logo .word {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.cip-footer-inner > div:first-child > div:first-child {
  position: relative !important;
  display: block !important;
  width: 224px !important;
  height: 86px !important;
  margin-bottom: 18px !important;
  background: url("../img/logos/cipisa-logo-white.png") left center / contain no-repeat !important;
}

.cip-footer-inner > div:first-child > div:first-child > * {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.cip-hero::after {
  content: "";
  position: absolute;
  right: clamp(24px, 8vw, 120px);
  bottom: 28px;
  width: min(32vw, 280px);
  aspect-ratio: 1;
  background: url("../img/logos/cipisa-symbol-white.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 860px) {
  .cip-logo {
    width: 174px;
    height: 58px;
    flex-basis: 174px;
  }
}

@media (max-width: 620px) {
  .cip-utility-inner {
    padding: 8px 20px;
    align-items: flex-start;
    gap: 8px 14px;
  }

  .cip-utility-inner,
  .cip-utility-inner > div {
    flex-wrap: wrap;
  }

  .cip-header-inner {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 20px;
  }

  .cip-logo {
    width: 150px;
    height: 50px;
    flex-basis: 150px;
  }

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

  .cip-header-actions {
    margin-left: auto;
    gap: 6px;
  }

  .cip-nav {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .cip-nav-inner {
    max-width: 100%;
    min-width: 100%;
    width: 100%;
    flex-wrap: wrap;
    padding: 0 20px;
  }

  .cip-nav a {
    padding: 14px 18px;
  }

  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  [style*="grid-template-columns:1.2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .cip-footer-inner {
    grid-template-columns: 1fr !important;
  }

  .cip-iconbtn {
    width: 42px;
    min-width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
  }

  .cip-iconbtn span:not(.num) {
    display: none !important;
  }

  .cip-footer-inner > div:first-child > div:first-child {
    width: 190px !important;
    height: 74px !important;
  }

  .cip-hero::after {
    width: 180px;
    right: -28px;
    bottom: 18px;
    opacity: 0.06;
  }
}

/* Category image assets */
.cip-cat-photo {
  background-color: #111827;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.cip-cat-photo.uso {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-uso-general.png?v=20260618d");
}

.cip-cat-photo.sold {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.2) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-soldadura.png?v=20260618d");
}

.cip-cat-photo.corte {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.2) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-anti-corte.png?v=20260618d");
}

.cip-cat-photo.quim {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-proteccion-quimica.png?v=20260618d");
}

.cip-cat-photo.term {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-proteccion-termica.png?v=20260618d");
}

.cip-cat-photo.hivis {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-alta-visibilidad.png?v=20260618d");
}

.cip-cat-photo.vest {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-vestuario-laboral.png?v=20260618d");
}

.cip-cat-photo.ocul {
  background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-proteccion-ocular.png?v=20260618d");
}

.cip-about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: 0 24px 52px rgba(12, 18, 32, 0.24);
  background: transparent;
}

.cip-cat-photo {
  background-size: cover !important;
  background-position: center !important;
}

.cip-cat-photo::before {
  content: none !important;
  display: none !important;
}

.cip-cat-photo.uso { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-uso-general.png?v=20260618d") !important; }
.cip-cat-photo.sold { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.2) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-soldadura.png?v=20260618d") !important; }
.cip-cat-photo.corte { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.2) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-anti-corte.png?v=20260618d") !important; }
.cip-cat-photo.quim { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-proteccion-quimica.png?v=20260618d") !important; }
.cip-cat-photo.term { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-proteccion-termica.png?v=20260618d") !important; }
.cip-cat-photo.hivis { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-alta-visibilidad.png?v=20260618d") !important; }
.cip-cat-photo.vest { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.88) 100%), url("../img/categories/category-vestuario-laboral.png?v=20260618d") !important; }
.cip-cat-photo.ocul { background-image: linear-gradient(180deg, rgba(8, 13, 22, 0.02) 0%, rgba(8, 13, 22, 0.18) 42%, rgba(8, 13, 22, 0.9) 100%), url("../img/categories/category-proteccion-ocular.png?v=20260618d") !important; }

.cip-hero-photo .ph {
  background-image:
    linear-gradient(90deg, rgba(11, 18, 32, 0.56) 0%, rgba(11, 18, 32, 0.14) 48%, rgba(11, 18, 32, 0.02) 100%),
    url("../img/hero/cipisa-hero-epi-almacen-20260618h.jpg?v=20260618h") !important;
  background-size: cover;
  background-position: center center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 100%);
}

.cip-hero-photo .ph::after {
  content: none;
  display: none;
}

/* Contact page */
.cip-contact-page {
  background: var(--paper);
}

.cip-contact-hero .cip-hero-inner {
  padding-bottom: 84px;
}

.cip-contact-hero h1 {
  max-width: 900px;
}

.cip-contact-wrap {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
  padding: 72px 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 56px;
  align-items: start;
}

.cip-contact-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--red);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.cip-contact-kicker::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--red);
}

.cip-contact-info h2,
.cip-contact-form-head h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--sans);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.cip-contact-lead,
.cip-contact-form-head p {
  max-width: 610px;
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
}

.cip-contact-list {
  margin-top: 34px;
  border-top: 1px solid var(--rule);
}

.cip-contact-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
}

.cip-contact-item:hover {
  color: var(--navy);
  text-decoration: none;
}

.cip-contact-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 800;
}

.cip-contact-icon {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(210, 22, 104, 0.2);
  border-radius: var(--r-sm);
  background: rgba(210, 22, 104, 0.06);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cip-contact-icon svg {
  width: 23px;
  height: 23px;
}

.cip-contact-map {
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  box-shadow: var(--gc-shadow);
}

.cip-contact-map iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.88) contrast(1.02);
}

.cip-contact-form-card {
  position: sticky;
  top: 24px;
}

.cip-contact-form-panel {
  padding: 42px;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--gc-shadow2);
}

.cip-contact-form-head {
  margin-bottom: 30px;
}

.cip-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.cip-contact-field {
  min-width: 0;
}

.cip-contact-field--full,
.cip-contact-alert,
.cip-contact-consent,
.cip-contact-actions {
  grid-column: 1 / -1;
}

.cip-contact-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.cip-contact-form .cip-input {
  min-height: 52px;
  border-radius: 8px;
  box-shadow: none;
}

.cip-contact-form textarea.cip-input {
  min-height: 160px;
  resize: vertical;
}

.cip-contact-consent {
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}

.cip-contact-consent label {
  margin-bottom: 0;
}

.cip-contact-consent a {
  color: var(--red);
  font-weight: 700;
}

.cip-contact-alert {
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
}

.cip-contact-alert ul {
  margin: 0;
  padding-left: 18px;
}

.cip-contact-alert.is-error {
  border: 1px solid rgba(190, 18, 60, 0.24);
  background: rgba(190, 18, 60, 0.08);
  color: #8a1234;
}

.cip-contact-alert.is-success {
  border: 1px solid rgba(46, 138, 79, 0.24);
  background: rgba(46, 138, 79, 0.08);
  color: #1f6c3b;
}

.cip-contact-actions {
  display: flex;
  justify-content: flex-start;
  padding-top: 8px;
}

.cip-contact-actions .cip-btn {
  min-width: 150px;
}

@media (max-width: 1080px) {
  .cip-contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cip-contact-form-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .cip-contact-wrap {
    width: calc(100% - 36px);
    padding: 44px 0;
  }

  .cip-contact-form-panel {
    padding: 28px 20px;
    border-radius: var(--r-md);
  }

  .cip-contact-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cip-contact-map iframe {
    min-height: 300px;
  }
}

.cip-category-hero .cip-hero-photo .ph {
  background-size: cover;
  background-position: center center;
}

.cip-category-hero-uso .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-uso-general.png?v=20260618d") !important; }
.cip-category-hero-sold .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-soldadura.png?v=20260618d") !important; }
.cip-category-hero-corte .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-anti-corte.png?v=20260618d") !important; }
.cip-category-hero-quim .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-proteccion-quimica.png?v=20260618d") !important; }
.cip-category-hero-term .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-proteccion-termica.png?v=20260618d") !important; }
.cip-category-hero-hivis .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-alta-visibilidad.png?v=20260618d") !important; }
.cip-category-hero-vest .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-vestuario-laboral.png?v=20260618d") !important; }
.cip-category-hero-ocul .cip-hero-photo .ph { background-image: linear-gradient(90deg, rgba(11, 18, 32, 0.58) 0%, rgba(11, 18, 32, 0.16) 48%, rgba(11, 18, 32, 0.02) 100%), url("../img/categories/category-proteccion-ocular.png?v=20260618d") !important; }

/* Header catalogue navigation */
.cip-nav--catalog {
  position: relative;
  z-index: 20;
}

.cip-nav--catalog .cip-nav-inner {
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.cip-category-menu {
  position: relative;
  flex: 0 0 auto;
}

.cip-category-trigger {
  width: 270px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  display: grid;
  grid-template-columns: 20px 1fr 18px;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(210, 22, 104, 0.24);
}

.cip-category-trigger-icon,
.cip-category-trigger-chev {
  font-size: 20px;
  line-height: 1;
}

.cip-category-trigger-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease;
}

.cip-category-trigger-chev svg {
  width: 14px;
  height: 14px;
  display: block;
}

.cip-category-menu:hover .cip-category-trigger-chev,
.cip-category-menu:focus-within .cip-category-trigger-chev,
.cip-category-trigger[aria-expanded="true"] .cip-category-trigger-chev {
  transform: rotate(90deg);
}

.cip-category-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(760px, calc(100vw - 48px));
  padding: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(10, 20, 30, 0.18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}

/* Puente invisible que cubre el hueco entre el boton y el panel
   para que el hover no se pierda al mover el cursor entre ambos. */
.cip-category-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.cip-category-menu:hover .cip-category-panel,
.cip-category-menu:focus-within .cip-category-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cip-category-panel a {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.cip-category-panel a:hover {
  border-color: rgba(210, 22, 104, 0.32);
  background: rgba(210, 22, 104, 0.07);
  color: var(--ink);
}

.cip-category-panel a span.cip-cat-ico {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: rgba(210, 22, 104, 0.08);
  color: var(--red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cip-category-panel a span.cip-cat-ico svg {
  width: 19px;
  height: 19px;
}

.cip-category-panel a:hover span.cip-cat-ico {
  background: var(--red);
  color: #fff;
}

.cip-primary-links {
  min-width: 0;
  display: flex;
  align-items: stretch;
  gap: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.cip-primary-links a {
  flex: 1 1 0;
  padding: 0 13px;
  min-height: 72px;
  border-left: 1px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cip-primary-links a:last-child {
  border-right: 1px solid var(--rule);
}

.cip-primary-links a:hover {
  color: var(--red);
}

.cip-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.cip-nav-pill {
  min-width: 122px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.cip-nav-pill:hover {
  background: var(--red);
  color: #fff !important;
}

.cip-nav-pill--wide {
  min-width: 204px;
}

@media (max-width: 1180px) {
  .cip-nav--catalog .cip-nav-inner {
    gap: 10px;
  }

  .cip-category-trigger {
    width: 236px;
  }

  .cip-primary-links a {
    padding: 0 9px;
    font-size: 10px;
  }

  .cip-nav-actions {
    gap: 10px;
  }

  .cip-nav-pill {
    min-width: 112px;
    padding: 0 16px;
    font-size: 11px;
  }

  .cip-nav-pill--wide {
    min-width: 168px;
  }
}

@media (max-width: 980px) {
  .cip-nav--catalog .cip-nav-inner {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    flex-wrap: wrap;
  }

  .cip-category-menu,
  .cip-category-trigger {
    width: 100%;
  }

  .cip-category-panel {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .cip-primary-links {
    order: 3;
    width: 100%;
    flex-basis: 100%;
    overflow-x: auto;
  }

  .cip-primary-links a {
    min-height: 42px;
    border-left: 0;
    border-right: 1px solid var(--rule);
  }

  .cip-nav-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ===== Legal pages (CMS: aviso legal, privacidad, cookies, terminos) ===== */
/* Recuperado del estatico 2026-06-18. El titulo lo imprime page.tpl (page-header). */
body.page-cms .page-header {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 32px 0;
}

body.page-cms .page-header h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0;
}

.page-cms .cip-legal-layout {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 32px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 56px;
  align-items: start;
}

.page-cms .cip-legal-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.cip-legal-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  border-radius: var(--r-md);
  padding: 30px;
}

.cip-legal-card h2 {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 14px;
}

.cip-legal-card h3 {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink);
  margin: 22px 0 8px;
}

.cip-legal-card p,
.cip-legal-card li {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.72;
}

.cip-legal-card p {
  margin: 0 0 12px;
}

.cip-legal-card ul {
  margin: 0;
  padding-left: 20px;
}

.cip-legal-meta {
  display: grid;
  grid-template-columns: 180px 1fr;
  border: 1px solid var(--rule);
  border-bottom: 0;
  margin-top: 18px;
  font-size: 14px;
}

.cip-legal-meta dt,
.cip-legal-meta dd {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
}

.cip-legal-meta dt {
  background: var(--paper-2);
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.cip-legal-meta dd {
  color: var(--ink);
}

.cip-legal-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--rule);
  margin-top: 18px;
  font-size: 13px;
}

.cip-legal-table th,
.cip-legal-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
  text-align: left;
}

.cip-legal-table th {
  background: var(--paper-2);
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cip-legal-table tr:last-child td {
  border-bottom: 0;
}

.cip-legal-aside {
  position: sticky;
  top: 20px;
  border-left: 3px solid var(--red);
  padding: 18px 0 18px 20px;
  background: var(--paper);
}

.cip-legal-aside h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 14px;
}

.cip-legal-aside nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cip-legal-aside a {
  font-size: 13px;
  color: var(--ink-2);
}

.cip-legal-aside a:hover {
  color: var(--red);
}

.cip-legal-note {
  border-left: 3px solid var(--red);
  background: var(--paper-2);
  padding: 14px 16px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .page-cms .cip-legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cip-legal-aside {
    position: static;
    order: -1;
  }
  .cip-legal-meta {
    grid-template-columns: 1fr;
  }
  .cip-legal-meta dt {
    border-bottom: 0;
  }
}

/* ===== Pagina 404 (no encontrada) ===== */
.cip-404 {
  position: relative;
  background: var(--paper-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}

.cip-404-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 32px 88px;
  text-align: center;
}

.cip-404-code {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 18vw, 200px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--navy);
  opacity: 0.08;
  margin-bottom: -0.18em;
  user-select: none;
}

.cip-404-eyebrow {
  display: inline-block;
  font-family: var(--tech);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.cip-404-inner h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 16px;
}

.cip-404-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 540px;
  margin: 0 auto 28px;
}

.cip-404-search {
  max-width: 480px;
  margin: 0 auto 24px;
}

.cip-404-search .cip-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--rule-2);
  border-radius: var(--r-md);
  padding: 12px 16px;
}

.cip-404-search .cip-search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
}

.cip-404-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.cip-404-links {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
}

.cip-404-links-label {
  display: block;
  font-family: var(--tech);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.cip-404-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px 22px;
  justify-content: center;
  flex-wrap: wrap;
}

.cip-404-links a {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.cip-404-links a:hover {
  border-bottom-color: var(--red);
}

@media (max-width: 600px) {
  .cip-404-inner {
    padding: 48px 22px 64px;
  }
  .cip-404-actions .cip-btn {
    flex: 1 1 auto;
  }
}

/* ============================================================
   RESPONSIVE 2026-06-19 — paginas de tienda
   Completa la cobertura movil/tablet del flujo comercial:
   listado de catalogo, ficha de producto, carrito, checkout,
   rejillas de producto y pie de pagina. (Cabecera, hero, home,
   contacto, legales y buscador ya eran responsive.)
   ============================================================ */

/* --- Padding lateral de secciones en movil --- */
@media (max-width: 640px) {
  .cip-section { padding-left: 18px !important; padding-right: 18px !important; }
}

/* --- Rejillas en linea de las plantillas: colapso progresivo --- */
/* Tablet: listado (filtros + productos), ficha y carrito/checkout apilan */
@media (max-width: 1024px) {
  [style*="grid-template-columns:260px 1fr"]  { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.1fr 1fr"]  { grid-template-columns: 1fr !important; gap: 36px !important; }
  [style*="grid-template-columns:1fr 380px"]  { grid-template-columns: 1fr !important; gap: 32px !important; }
}

/* Tablet media: formularios multi-columna del checkout y footer */
@media (max-width: 900px) {
  [style*="grid-template-columns:2fr 1fr"],
  [style*="grid-template-columns:1fr 1fr 1fr"] { grid-template-columns: 1fr !important; }
  .cip-footer-inner { grid-template-columns: 1fr 1fr !important; gap: 30px 28px !important; }
  .cip-cat-grid     { grid-template-columns: repeat(3, 1fr) !important; }
}

/* Movil: tarjetas de producto y categorias a 2 columnas */
@media (max-width: 640px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"],
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  .cip-cat-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }
  /* filas de dos botones / dos campos apilan */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .cip-footer-inner { grid-template-columns: 1fr !important; }
}

/* Movil muy estrecho: tarjetas de producto a 1 columna */
@media (max-width: 359px) {
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:repeat(3, 1fr)"] { grid-template-columns: 1fr !important; }
}

/* --- Titulares grandes definidos con font-size en linea --- */
@media (max-width: 640px) {
  [style*="font-size:64px"] { font-size: 38px !important; line-height: 1.04 !important; }
  [style*="font-size:56px"] { font-size: 34px !important; line-height: 1.05 !important; }
  [style*="font-size:48px"] { font-size: 32px !important; line-height: 1.06 !important; }
  [style*="font-size:44px"] { font-size: 30px !important; line-height: 1.08 !important; }
}

/* --- Cabecera de pagina (titulo + meta) en carrito/checkout --- */
@media (max-width: 640px) {
  .cip-pagehead    { flex-wrap: wrap; gap: 8px 16px; align-items: baseline !important; }
  .cip-pagehead h1 { font-size: clamp(30px, 9vw, 40px) !important; }
}

/* --- Stepper de pedido (Cesta / Datos / Pago / Confirmacion) --- */
@media (max-width: 640px) {
  .cip-steps        { display: grid !important; grid-template-columns: 1fr 1fr !important; }
  .cip-steps > div  { border-right: 0 !important; border-bottom: 1px solid var(--rule); }
  .cip-steps > div:nth-last-child(-n+2) { border-bottom: 0 !important; }
}

/* --- Barra de orden del listado de catalogo --- */
@media (max-width: 640px) {
  .cip-listing-toolbar { flex-wrap: wrap; gap: 12px !important; }
  .cip-listing-sort    { flex: 1 1 100%; }
  .cip-listing-sort .cip-select { flex: 1; width: auto !important; min-width: 0; }
}

/* --- Tabla del carrito -> tarjetas apiladas en movil --- */
@media (max-width: 640px) {
  .cip-order-table thead { display: none; }
  .cip-order-table, .cip-order-table tbody { display: block; width: 100%; }
  .cip-order-table tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
    border: 1px solid var(--rule); border-radius: var(--r-md);
    padding: 14px; margin-bottom: 12px;
  }
  .cip-order-table td            { display: block; padding: 0 !important; text-align: left !important; }
  .cip-order-table td:first-child { flex: 1 1 100%; }
}

/* --- Filas de botones/selectores que podrian desbordar --- */
@media (max-width: 640px) {
  [style*="margin-top:24px;display:flex;gap:12px"]   { flex-wrap: wrap !important; }
  [style*="display:flex;gap:8px;margin-bottom:20px"] { flex-wrap: wrap !important; }
  .cip-footer-bottom { flex-direction: column; gap: 8px; text-align: center; align-items: center; }
}

/* ============================================================
   ENLACES — interaccion unificada 2026-06-19
   1) El enlace conserva SIEMPRE el color del texto (corrige el
      turquesa/gris que heredaba de theme.css al pasar el raton,
      hacer foco, visitar o hacer clic). Asi se lee igual de bien.
   2) Al pasar el raton o hacer clic el enlace se pone en negrita.
   3) Subrayado animado que nace a la izquierda y crece hasta la
      derecha en 1 segundo.
   Se excluyen botones, logotipo y enlaces que son tarjetas o solo
   iconos/imagenes (ahi el subrayado no tendria sentido).
   ============================================================ */

/* (1) Mantener el color del texto en cualquier estado del enlace */
a:link,
a:visited,
a:hover,
a:active,
a:focus { color: inherit; }
a:hover,
a:visited,
a:active,
a:focus { text-decoration: none; }

/* Selector base de "enlace de texto": fuera botones, logo, tarjetas,
   iconos y enlaces que envuelven imagenes/SVG */
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)) {
  position: relative;
  text-decoration: none;
}

/* (3) Subrayado animado (izquierda -> derecha, 1s) */
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg))::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.4s ease;
  pointer-events: none;
}

/* (2) Negrita + (3) subrayado al completo en hover / foco / activo */
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)):hover,
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)):focus,
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)):active {
  font-weight: 700;
}
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)):hover::after,
.cip-frame a:not([class*="btn"]):not(.cip-logo):not(.cip-cta):not(.cip-prod):not(.cip-iconbtn):not(.cip-chip):not(:has(img)):not(:has(svg)):focus::after {
  width: 100%;
}

/* Refuerzo: nunca dibujar el subrayado dentro de tarjetas/rejillas
   de producto o categoria, ni en el logotipo */
.cip-prod a::after,
.cip-cat-grid a::after,
.cip-category-intro-grid a::after,
.cip-category-proof-grid a::after,
.cip-proof-grid a::after,
.cip-logo::after { content: none; }

/* Quien no quiera animacion (accesibilidad) ve el subrayado al instante */
@media (prefers-reduced-motion: reduce) {
  .cip-frame a::after { transition: none; }
}

/* --- Etiquetas de las tarjetas de categoria (home) en movil --- */
@media (max-width: 640px) {
  .cip-cat-label        { padding: 14px 14px 16px; }
  .cip-cat-label h3     { font-size: 17px; line-height: 1.1; }
  .cip-cat-label .n     { font-size: 10px; }
  .cip-cat-label .arrow { display: none; }
}

/* --- Pie de tarjeta de producto: apila precio y stock en movil --- */
@media (max-width: 640px) {
  .cip-prod-foot { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ============================================================
   Modal "Producto anadido al carrito" (#blockcart-modal)
   Identidad corporativa Celebrand: magenta + navy, tipografia
   Montserrat, sombras y radios suaves. Sustituye al cian plano
   por defecto del tema classic.
   ============================================================ */
#blockcart-modal .modal-dialog {
  max-width: 880px;
  margin: 2.2rem auto;
}
#blockcart-modal .modal-content {
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--gc-shadow2);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--ink);
}

/* Cabecera: banda con check corporativo y filo magenta superior */
#blockcart-modal .modal-header {
  position: relative;
  border-bottom: 1px solid var(--rule);
  padding: 22px 28px;
  background: var(--paper);
}
#blockcart-modal .modal-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red) 0%, var(--navy) 100%);
}
#blockcart-modal .modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-transform: none;
}
#blockcart-modal .modal-title .material-icons {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--ok);
  color: #fff;
  font-size: 19px;
}
#blockcart-modal .close {
  position: absolute;
  top: 18px;
  right: 20px;
  opacity: 1;
  color: var(--muted);
  transition: color .15s;
  text-shadow: none;
}
#blockcart-modal .close:hover { color: var(--red); }

/* Cuerpo */
#blockcart-modal .modal-body { padding: 28px; }
#blockcart-modal .divide-right { border-right: 1px solid var(--rule); }

/* Producto */
#blockcart-modal .product-image {
  border-radius: var(--r-md);
  background: var(--paper-2);
  border: 1px solid var(--rule);
}
#blockcart-modal .product-name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 6px;
}
#blockcart-modal .product-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--red);
  margin: 0 0 8px;
}
#blockcart-modal .product-quantity,
#blockcart-modal .modal-body .col-md-6 > span {
  font-size: 13px;
  color: var(--muted);
}
#blockcart-modal .product-quantity strong { color: var(--ink); }

/* Resumen del carrito */
#blockcart-modal .cart-content { padding-left: 8px; }
#blockcart-modal .cart-products-count {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 14px;
}
#blockcart-modal .cart-content p {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 8px;
}
#blockcart-modal .cart-content p .value,
#blockcart-modal .cart-content p .subtotal { font-weight: 600; color: var(--ink); }
#blockcart-modal .cart-content .product-total {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 16px;
}
#blockcart-modal .cart-content .product-total .label { font-weight: 700; color: var(--ink); }
#blockcart-modal .cart-content .product-total .value {
  font-weight: 800;
  font-size: 19px;
  color: var(--navy);
}

/* Botones corporativos */
#blockcart-modal .cart-content-btn {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
#blockcart-modal .cart-content-btn .btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 0;
  box-shadow: none;
  transition: background .15s, color .15s, border-color .15s;
}
#blockcart-modal .cart-content-btn .btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1.5px solid var(--rule-2);
}
#blockcart-modal .cart-content-btn .btn-secondary:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: var(--paper);
}
#blockcart-modal .cart-content-btn .btn-primary {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
}
#blockcart-modal .cart-content-btn .btn-primary:hover {
  background: var(--red-2);
  border-color: var(--red-2);
  color: #fff;
}
#blockcart-modal .cart-content-btn .btn .material-icons { font-size: 18px; }

@media (max-width: 575px) {
  #blockcart-modal .divide-right { border-right: 0; border-bottom: 1px solid var(--rule); padding-bottom: 18px; margin-bottom: 18px; }
  #blockcart-modal .cart-content { padding-left: 0; }
  #blockcart-modal .cart-content-btn .btn { flex: 1 1 100%; }
}

/* ===== Reconvertir el azul clásico de PrestaShop (#24b9d7) al color corporativo ===== */
/* Flags de producto del listado (NUEVO, etc.) */
.product-flags li.product-flag { background: var(--gc-pink); }

/* Paginación */
.page-item.active .page-link,
.page-item.active .page-link:focus,
.page-item.active .page-link:hover,
.pagination .current a { background: var(--gc-pink); border-color: var(--gc-pink); color: #fff; }
.page-link { color: var(--gc-pink-dark); }
.page-link:hover { color: var(--gc-pink); }

/* Foco de inputs y buscador */
.form-control:focus,
.input-group.focus,
.search-widget form input[type=text]:focus,
.block_newsletter form input[type=text]:focus,
.block_newsletter form input[type=email]:focus { border-color: var(--gc-pink); outline: 0; }

/* Orden y filtros (hover/abierto) */
.products-sort-order .select-list:hover,
.brands-sort .select-list:hover,
.suppliers-sort .select-list:hover,
.facet-dropdown .select-list:hover,
.facet-dropdown.open > .select-title { color: var(--gc-pink); }

/* Pestañas nativas de PrestaShop (si alguna página las usa) */
.tabs .nav-tabs .nav-link.active { color: var(--gc-pink); border-bottom-color: var(--gc-pink); }

/* Radios personalizados seleccionados */
.custom-radio input[type=radio]:checked + span { background: var(--gc-pink); }
