/* ─── Base ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --jp-blue:    #1a56db;
  --jp-blue-lt: #3b82f6;
  --cs-red:     #e02424;
  --cs-red-lt:  #f98080;
  --apc-green:  #16a34a;
  --apc-green-lt: #22c55e;
  --mm-blue:    #1d4ed8;
  --mm-blue-lt: #3b82f6;
  --accent:     #f59e0b;
  --dark-bg:    #0f172a;
  --dark-nav:   #111827;
  --card-bg:    #ffffff;
  --gray-bg:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-500:   #64748b;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     14px;
  --radius-sm:  8px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  max-width: 100%;
}
body {
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--gray-bg);
  color: #1e293b;
}

/* ─── Utility ────────────────────────────────────────────────── */
.text-primary-accent { color: var(--accent) !important; }

.bg-primary-accent   { background: var(--accent) !important; color: #000 !important; }

/* ─── Navbar ─────────────────────────────────────────────────── */
#main-navbar {
  background: var(--fold-black);
  border-bottom: 2px solid var(--fold-cyan);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

#main-navbar .navbar-brand {
  font-size: 1.1rem;
  letter-spacing: -.3px;
  line-height: 1;
}

.navbar-brand-text {
  font-size: .75rem;
  line-height: 1.35;
  letter-spacing: .01em;
}

.navbar-brand-text span {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .02em;
}

#main-navbar .nav-link {
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  transition: color .2s, background .2s;
}

#main-navbar .nav-link:hover,
#main-navbar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ─── Nav dropdown menus ──────────────────────────────────── */
.nav-dropdown {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  min-width: 220px;
  padding: .4rem 0;
  box-shadow: var(--shadow-lg);
}

.nav-dropdown .dropdown-item {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  padding: .5rem 1rem;
  border-radius: 6px;
  margin: 1px 4px;
  transition: background .15s, color .15s;
}

.nav-dropdown .dropdown-item:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

.nav-dropdown .dropdown-item.brand-soon {
  opacity: .65;
  cursor: default;
}

.nav-dropdown .dropdown-item.brand-soon:hover {
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.65);
}

/* ─── Coming-soon state in catalog ───────────────────────── */
.coming-soon-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray-500);
}

.coming-soon-state i {
  font-size: 3.5rem;
  display: block;
  margin-bottom: 1rem;
  opacity: .4;
}

.coming-soon-state h4 {
  font-weight: 600;
  color: #334155;
  margin-bottom: .5rem;
}

.coming-soon-state p {
  font-size: .9rem;
  max-width: 360px;
  margin: 0 auto 1.5rem;
}

/* ─── Brand tab: por-marca ────────────────────────────────── */
.brand-tab.available    { /* usa colores ya definidos */ }
.brand-tab.soon-tab {
  opacity: .5;
  cursor: default !important;
  pointer-events: none;
}

/* ─── Language toggle ────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  padding: 3px 6px;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,.5);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 14px;
  cursor: pointer;
  transition: color .2s, background .2s;
  line-height: 1.4;
}

.lang-btn:hover { color: rgba(255,255,255,.85); }

.lang-btn.active {
  background: var(--accent);
  color: #000 !important;
}

.lang-sep {
  color: rgba(255,255,255,.2);
  font-size: .7rem;
  user-select: none;
}

.search-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-nav-wrapper .search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,.4);
  pointer-events: none;
  font-size: .85rem;
}

.search-nav-input {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  border-radius: 20px;
  padding-left: 2.1rem;
  font-size: .85rem;
  width: 220px;
  transition: width .3s, background .2s;
}

.search-nav-input::placeholder { color: rgba(255,255,255,.35); }

.search-nav-input:focus {
  width: 280px;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
  color: #fff;
  box-shadow: none;
  outline: none;
}

/* Botón ícono lupa — visible solo en móvil */
.search-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1.05rem;
  padding: .3rem .45rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
}
.search-toggle-btn:hover { color: #fff; }

/* Botón X cerrar — oculto por defecto */
.search-close-btn {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  padding: .3rem .4rem;
  cursor: pointer;
  line-height: 1;
  flex-shrink: 0;
  align-items: center;
}
.search-close-btn:hover { color: #fff; }

/* ── Responsive search ── */
@media (max-width: 991px) {
  /* En tablet/móvil: ocultar input, mostrar solo lupa */
  .search-nav-input    { display: none; }
  .search-icon-desktop { display: none; }
  .search-toggle-btn   { display: flex; align-items: center; }

  /* Expandido: overlay full-width sobre la barra */
  .search-nav-wrapper.search-open {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1200;
    background: var(--fold-black);
    padding: .55rem .85rem;
    border-bottom: 2px solid var(--fold-cyan);
    display: flex;
    align-items: center;
    gap: .5rem;
  }
  .search-nav-wrapper.search-open .search-nav-input {
    display: block;
    flex: 1;
    width: auto;
    padding-left: 2rem;
  }
  .search-nav-wrapper.search-open .search-icon     { display: block; }
  .search-nav-wrapper.search-open .search-close-btn { display: flex; }
  .search-nav-wrapper.search-open .search-toggle-btn { display: none; }
}

/* ─── Hero — diseño plegado (fiel al doc de referencia) ─────── */
:root {
  --fold-black: #000000;
  --fold-cyan:  #2db4ff;
}

.hero-section {
  display: flex;
  align-items: stretch;
  min-height: 240px;
  background: #ffffff;
  overflow: hidden;
  border-bottom: 3px solid var(--fold-cyan);
}

/* ── Triángulos de pliegue ─────────────────────────────────── */
.hero-fold {
  flex: 0 0 27%;
  position: relative;
  overflow: hidden;
}

/* Izquierdo: celeste de fondo, negro encima (más estrecho) */
.hero-fold-l::before {               /* celeste */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fold-cyan);
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.hero-fold-l::after {                /* negro */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fold-black);
  clip-path: polygon(0 0, 42% 0, 0 100%);
}

/* Derecho: espejo exacto */
.hero-fold-r::before {               /* celeste */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fold-cyan);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.hero-fold-r::after {                /* negro */
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fold-black);
  clip-path: polygon(58% 0, 100% 0, 100% 100%);
}

/* ── Centro blanco ─────────────────────────────────────────── */
.hero-center {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: 1.6rem 2rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-logo-img {
  max-height: 140px;
  max-width: 100%;
  object-fit: contain;
  background: #000;
  border-radius: 10px;
  padding: 8px 16px;
}

.hero-company-info {
  text-align: center;
  line-height: 1.45;
  width: 100%;
  word-break: break-word;
}

.hero-brand-btns {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: .1rem;
  padding-bottom: .55rem;
}

.hero-brand-btn {
  display: inline-flex;
  align-items: center;
  padding: .45rem 1.2rem;
  border-radius: 30px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .15s, box-shadow .15s;
}

.hero-brand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.hero-brand-btn-jp {
  background: var(--fold-black);
  color: #ffffff;
  border: 2px solid var(--fold-black);
}

.hero-brand-btn-cs {
  background: var(--fold-cyan);
  color: #000000;
  border: 2px solid var(--fold-cyan);
}

.hero-company-name {
  font-size: .82rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.hero-company-sub {
  font-size: .78rem;
  font-weight: 400;
  color: #1e293b;
  padding-top: .55rem;
  border-top: 1px solid #e2e8f0;
}

.hero-company-email {
  font-size: .74rem;
  color: var(--fold-cyan);
  font-weight: 500;
}

.hero-badge {
  background: var(--fold-black);
  color: #ffffff;
  font-size: .70rem;
  font-weight: 700;
  letter-spacing: .07em;
  padding: .25rem 1.1rem;
  border-radius: 20px;
  text-transform: uppercase;
}

/* Stats en línea debajo del logo */
.hero-stats {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-top: .3rem;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-stat-num {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--fold-cyan);
  line-height: 1;
}

.hero-stat-lbl {
  font-size: .60rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-top: .15rem;
  text-align: center;
}

.hero-stat-sep {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  flex-shrink: 0;
}

/* Brand logos strip */
.hero-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem 1.4rem;
  margin-top: .5rem;
  padding-top: .55rem;
  border-top: 1px solid #e2e8f0;
  width: 100%;
}

.hero-brands-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.4rem;
  flex-wrap: nowrap;
}

.hero-brand-img {
  height: 52px;
  max-width: 140px;
  object-fit: contain;
  /* filter: grayscale(100%) opacity(.65); */
  transition: filter .2s;
}

.hero-brand-img:hover {
  filter: grayscale(0%) opacity(1);
}

/* Responsive — tablet */
@media (max-width: 768px) {
  .hero-fold          { flex: 0 0 15%; }
  .hero-center        { padding: 1.2rem 1rem; gap: .4rem; }
  .hero-stat-num      { font-size: 1.1rem; }
  .hero-logo-img      { max-height: 90px; }
  .hero-badge         { font-size: .62rem; }
  .hero-company-name  { font-size: .75rem; }
  .hero-company-sub   { font-size: .72rem; }
  .hero-company-email { font-size: .68rem; }
  .hero-brands        { gap: .6rem 1rem; }
  .hero-brand-img     { height: 38px; max-width: 100px; }
  .hero-setgad-logo   { height: 42px; max-width: 160px; margin-right: 1rem; }
}

/* Responsive — móvil */
@media (max-width: 480px) {
  .hero-fold          { flex: 0 0 8%; }
  .hero-center        { padding: 1rem .75rem; gap: .35rem; overflow: hidden; }
  .hero-stats         { display: none; }
  .hero-logo-img      { max-height: 70px; }
  .hero-company-name  { font-size: .68rem; letter-spacing: 0; }
  .hero-company-sub   { font-size: .65rem; }
  .hero-company-email { font-size: .62rem; }
  .hero-brands {
    flex-wrap: wrap;
    gap: .5rem .8rem;
    padding-top: .4rem;
    justify-content: center;
  }
  .hero-brand-img     { height: 28px; max-width: 80px; }
  .hero-setgad-logo   { height: 34px; max-width: 120px; margin-right: .5rem; }
}

/* ── Botón acento (conservado) ─────────────────────────────── */
.btn-primary-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
  transition: filter .2s, transform .15s;
}
.btn-primary-accent:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
  color: #000;
}

/* ─── Catalog section ────────────────────────────────────────── */
.bg-catalog { background: var(--gray-bg); min-height: 60vh; }

/* Brand tabs */
.brand-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .2rem 0;
}

.brand-tab {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: #475569;
  font-size: .8rem;
  font-weight: 500;
  padding: .3rem .85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.brand-tab:hover {
  border-color: var(--jp-blue);
  background: var(--jp-blue);
  color: #fff;
}

.brand-tab.active {
  border-color: var(--jp-blue);
  background: var(--jp-blue);
  color: #fff;
}

.brand-tab.jp-tab.active,
.brand-tab.jp-tab:hover  { border-color: var(--jp-blue); background: var(--jp-blue); color: #fff; }
.brand-tab.cs-tab.active,
.brand-tab.cs-tab:hover  { border-color: var(--cs-red);   background: var(--cs-red);   color: #fff; }
.brand-tab.apc-tab.active,
.brand-tab.apc-tab:hover      { border-color: var(--apc-green); background: var(--apc-green); color: #fff; }
.brand-tab.minuteman-tab.active,
.brand-tab.minuteman-tab:hover { border-color: var(--mm-blue);   background: var(--mm-blue);   color: #fff; }

/* ── Category chips colapsables ───────────────────────────────── */
.cat-chips-section {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.cat-chips-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  padding: .6rem 1rem;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 600;
  color: #1e293b;
  transition: background .15s;
}
.cat-chips-toggle:hover { background: var(--gray-200); }

.cat-chips-arrow {
  transition: transform .25s;
}
.cat-chips-section.open .cat-chips-arrow {
  transform: rotate(180deg);
}

.cat-chips-section .category-chips-wrapper {
  display: none;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem 1rem;
}
.cat-chips-section.open .category-chips-wrapper {
  display: flex;
}

/* Search bar */
.search-wrapper {
  position: relative;
}

.search-wrapper .search-icon {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

.search-input {
  padding-left: 2.4rem;
  padding-right: 2.4rem;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  font-size: .9rem;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.search-input:focus {
  border-color: var(--jp-blue-lt);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
  outline: none;
}

.btn-clear-search {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.category-select {
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  font-size: .85rem;
  min-width: 200px;
}

/* Category chips */
.category-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.cat-chip {
  border: 1px solid var(--gray-200);
  background: #fff;
  color: #475569;
  font-size: .8rem;
  font-weight: 500;
  padding: .3rem .85rem;
  border-radius: 20px;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.cat-chip:hover,
.cat-chip.active {
  border-color: var(--jp-blue);
  background: var(--jp-blue);
  color: #fff;
}

.cat-chip.cs-chip:hover,
.cat-chip.cs-chip.active {
  border-color: var(--cs-red);
  background: var(--cs-red);
}

/* ─── Product card ───────────────────────────────────────────── */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(59,130,246,.3);
}

.product-card:hover .card-img-wrapper { opacity: .95; }

.product-card.cs-card:hover { border-color: rgba(224,36,36,.25); }

.card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-100);
  transition: opacity .2s;
}

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}

.product-card:hover .card-img-wrapper img { transform: scale(1.04); }

.card-no-img {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2.8rem;
}

.card-brand-badge {
  position: absolute;
  top: .6rem;
  left: .6rem;
  font-size: .7rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.badge-jp  { background: rgba(26,86,219,.85);  color: #fff; }
.badge-cs  { background: rgba(224,36,36,.85);  color: #fff; }
.badge-apc { background: rgba(34,197,94,.85);  color: #fff; }
.badge-mm  { background: rgba(29,78,216,.85);  color: #fff; }

.product-card.apc-card:hover { border-color: rgba(34,197,94,.25); }
.product-card.mm-card:hover  { border-color: rgba(29,78,216,.25); }

.card-category-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  font-size: .65rem;
  font-weight: 500;
  padding: .2rem .55rem;
  border-radius: 5px;
  background: rgba(0,0,0,.45);
  color: rgba(255,255,255,.9);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-body-content {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-product-name {
  font-size: .92rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
  margin-bottom: .55rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-specs-list {
  list-style: none;
  padding: 0;
  margin: 0 0 .75rem;
  flex: 1;
}

.card-specs-list li {
  font-size: .78rem;
  color: #64748b;
  padding: .15rem 0;
  display: flex;
  gap: .4rem;
  border-bottom: 1px solid var(--gray-100);
}

.card-specs-list li:last-child { border-bottom: none; }

.spec-key {
  font-weight: 500;
  color: #475569;
  min-width: 90px;
  flex-shrink: 0;
}

.spec-val {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .6rem;
  border-top: 1px solid var(--gray-100);
}

.card-price {
  font-size: .85rem;
  font-weight: 700;
  color: #059669;
}

.card-price.no-price { color: #94a3b8; font-weight: 400; font-size: .8rem; }

.btn-detail {
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 20px;
  border: 1.5px solid var(--jp-blue);
  color: var(--jp-blue);
  background: transparent;
  cursor: pointer;
  transition: all .18s;
  white-space: nowrap;
}

.btn-detail:hover {
  background: var(--jp-blue);
  color: #fff;
}

.product-card.cs-card .btn-detail {
  border-color: var(--cs-red);
  color: var(--cs-red);
}

.product-card.cs-card .btn-detail:hover {
  background: var(--cs-red);
  color: #fff;
}

/* ─── Modal ──────────────────────────────────────────────────── */
.modal-product {
  border: none;
  border-radius: 18px;
  overflow: hidden;
}

.modal-product .modal-header {
  padding: 1.5rem 1.75rem .5rem;
}

.modal-product .modal-body {
  padding: 1rem 1.75rem 1.75rem;
}

.modal-img-wrapper {
  background: var(--gray-100);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
}

.modal-img-wrapper img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.modal-no-img {
  width: 100%;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nav-tabs-modal .nav-link {
  font-size: .85rem;
  font-weight: 500;
  color: var(--gray-500);
  border: none;
  border-bottom: 2px solid transparent;
  padding: .5rem .9rem;
  border-radius: 0;
  margin-right: .25rem;
  transition: color .2s, border-color .2s;
}

.nav-tabs-modal .nav-link.active {
  color: var(--jp-blue);
  border-bottom-color: var(--jp-blue);
  background: none;
}

.nav-tabs-modal { border-bottom: 1px solid var(--gray-200); }

.specs-table-wrapper {
  max-height: 360px;
  overflow-y: auto;
}

.table-specs td:first-child {
  font-weight: 500;
  font-size: .82rem;
  color: #475569;
  width: 38%;
  vertical-align: top;
  padding: .45rem .5rem;
}

.table-specs td:last-child {
  font-size: .82rem;
  color: #1e293b;
  padding: .45rem .5rem;
}

.table-specs tr:nth-child(odd) td { background: var(--gray-100); }

.notes-list li {
  padding: .5rem .75rem;
  border-left: 3px solid var(--accent);
  background: #fffbeb;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: .5rem;
  font-size: .85rem;
  color: #44403c;
}

/* Brand badge colors in modal */
.badge-modal-jp {
  background: rgba(26,86,219,.1);
  color: var(--jp-blue);
  border: 1px solid rgba(26,86,219,.2);
}

.badge-modal-cs {
  background: rgba(224,36,36,.1);
  color: var(--cs-red);
  border: 1px solid rgba(224,36,36,.2);
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state i { font-size: 3.5rem; color: #cbd5e1; }
.empty-state p { color: var(--gray-500); margin-top: 1rem; }

/* ─── Footer ─────────────────────────────────────────────────── */
.footer-section {
  background: #000;
  color: rgba(255,255,255,.6);
  position: relative;
}

/* Pliegues de papel superiores del footer */
.footer-folds {
  display: flex;
  height: 52px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}

.footer-fold {
  flex: 1;
  position: relative;
}

.footer-fold-l::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2db4ff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.footer-fold-l::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(0 0, 42% 0, 0 100%);
}

.footer-fold-r::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2db4ff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.footer-fold-r::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(58% 0, 100% 0, 100% 100%);
}

.footer-main { padding: 2.5rem 0 1.75rem; }

.footer-logo {
  height: 58px;
  max-width: 165px;
  object-fit: contain;
  display: block;
  margin-bottom: .9rem;
  background: #fff;
  border-radius: 8px;
  padding: 6px 12px;
}

.footer-company-name {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .2rem;
}

.footer-person {
  font-size: .75rem;
  color: #2db4ff;
  margin-bottom: .2rem;
}

.footer-email {
  display: inline-block;
  font-size: .71rem;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .15s;
  word-break: break-all;
}
.footer-email:hover { color: #2db4ff; }

.footer-tagline {
  font-size: .67rem;
  color: rgba(255,255,255,.2);
  margin-top: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-col-title {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2db4ff;
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.footer-links a {
  font-size: .76rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  transition: color .15s, gap .15s;
}

.footer-links a i { font-size: .6rem; color: rgba(45,180,255,.4); transition: color .15s; }

.footer-links a:hover { color: #2db4ff; }
.footer-links a:hover i { color: #2db4ff; }

/* Skeleton loading para categorías del footer */
.footer-cat-loading span {
  display: inline-block;
  height: .7rem;
  width: 7rem;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: .85rem 0;
}

.footer-bottom small { color: rgba(255,255,255,.28); font-size: .68rem; }

/* ── Cabecera traducida de la tabla de specs ─── */
.table-specs-head th {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom-width: 1px;
  padding-bottom: .35rem;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 576px) {
  .hero-title { font-size: 1.9rem; }
  .hero-section { padding: 2.5rem 0; }
}

/* ─── Modal image zoom button ────────────────────────────────── */
.modal-img-wrapper {
  position: relative;
}

.btn-zoom-open {
  position: absolute;
  bottom: .6rem;
  right: .6rem;
  background: rgba(15, 23, 42, .75);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .18s, transform .15s;
  z-index: 10;
}

.btn-zoom-open:hover {
  background: rgba(59,130,246,.85);
  transform: scale(1.05);
}

.zoom-tip {
  font-size: .78rem;
  color: #64748b;
}

/* ─── Zoom viewer overlay ─────────────────────────────────────── */
.zoom-viewer {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, .95);
  z-index: 3000;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.zoom-viewer.open {
  display: flex;
}

.zoom-viewer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 1.25rem;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.zoom-viewer-title {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 38vw;
}

.zoom-controls-group {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: .25rem .5rem;
}

.zv-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  padding: .3rem .55rem;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
  line-height: 1;
}

.zv-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.zv-close {
  font-size: 1.1rem;
  padding: .3rem .6rem;
}

.zv-level {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 700;
  min-width: 3.2rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

.zv-canvas {
  flex: 1;
  overflow: hidden;
  position: relative;
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  -webkit-user-select: none;
}

.zv-canvas.grabbing {
  cursor: grabbing;
}

#zv-img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  max-width: none;
  transition: none;
  will-change: transform;
  pointer-events: none;
  display: block;
}

.zv-hint {
  text-align: center;
  padding: .4rem .75rem;
  font-size: .72rem;
  color: rgba(255,255,255,.3);
  flex-shrink: 0;
  letter-spacing: .02em;
}

.zv-hint kbd {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 4px;
  padding: .1rem .35rem;
  font-size: .68rem;
  font-family: inherit;
}

/* ─── Scrollbar ───────────────────────────────────────────────── */
.specs-table-wrapper::-webkit-scrollbar { width: 5px; }
.specs-table-wrapper::-webkit-scrollbar-track { background: transparent; }
.specs-table-wrapper::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 10px; }

/* ═══════════════════════════════════════════════════════════════
   NUEVO HERO — diseño minimalista 2026  (#2db4ff + negro)
   ═══════════════════════════════════════════════════════════════ */

.hero-new {
  background: #fff;
  border-bottom: 3px solid #2db4ff;
}

/* ── Barra de identidad ─────────────────────────────────────── */
.hero-info-bar {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.hero-info-folds {
  display: flex;
  height: 52px;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hif-fold {
  flex: 1;
  position: relative;
}

.hif-fold-l::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2db4ff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.hif-fold-l::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f8fafc;
  clip-path: polygon(0 0, 42% 0, 0 100%);
}

.hif-fold-r::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #2db4ff;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}

.hif-fold-r::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #f8fafc;
  clip-path: polygon(58% 0, 100% 0, 100% 100%);
}

.hero-info-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: .9rem 2rem;
}

.hero-logo-new {
  height: 68px;
  max-width: 190px;
  object-fit: contain;
  flex-shrink: 0;
}

.hero-text-group {
  flex: 1;
  min-width: 180px;
}

.hero-company-title {
  font-size: .98rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -.01em;
}

.hero-company-person {
  font-size: .79rem;
  font-weight: 600;
  color: #2db4ff;
  margin-top: .1rem;
}

.hero-company-email-new {
  font-size: .71rem;
  color: #64748b;
  margin-top: .1rem;
}

.hero-cta-group {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.05rem;
  border-radius: 20px;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .03em;
  white-space: nowrap;
  transition: transform .15s, box-shadow .15s;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.hero-cta-lab   { background: #2db4ff; color: #000; }
.hero-cta-water { background: #000; color: #fff; border: 1px solid #000; }

.hero-stats-pills {
  display: flex;
  gap: .45rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-stat-pill {
  font-size: .72rem;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: .2rem .7rem;
  white-space: nowrap;
}

.hero-stat-pill strong { color: #000; }

/* ── Marquee de logos ───────────────────────────────────────── */
.hero-logos-band {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: .65rem 0;
  overflow: hidden;
}

.logos-marquee-wrap { overflow: hidden; }

.logos-marquee {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logoScroll 28s linear infinite;
  will-change: transform;
}

.logos-marquee:hover { animation-play-state: paused; }

/*
  Con margin-right en CADA imagen (incluyendo la última de cada copia)
  el espacio entre el fin de un bloque y el inicio del siguiente es idéntico
  al espacio entre logos → loop sin cortes al 25% (4 copias → -25% = 1 bloque)
*/
@keyframes logoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

.logos-marquee-img {
  height: 34px;
  max-width: 115px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 3rem;
  filter: grayscale(20%) opacity(.72);
  transition: filter .2s;
}

.logos-marquee-img:hover { filter: none; }

/* ── Sección de sliders ─────────────────────────────────────── */
.hero-sliders-wrap {
  background: #fff;
}

/* Sliders claros (1, 3) — fondo blanco */
.pslider {
  padding: 1.1rem 2rem 1.25rem;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

/* Sliders oscuros (2, 4) — fondo negro */
.pslider-dark {
  background: #000;
  padding: 1.25rem 2rem 1.4rem;
  border-top: none;
}

/* ── Cabecera del slider (título + flechas juntos) ───────── */
.pslider-header {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: .75rem;
}

.pslider-title {
  font-size: .9rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.pslider-title i { color: #2db4ff; }

/* Separador flexible entre título y flechas */
.pslider-title-spacer { flex: 1; }

.pslider-nav { display: flex; gap: .3rem; }

.pslider-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #000;
  background: #000;
  color: #fff;
  font-size: .8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s, border-color .15s, transform .1s;
  flex-shrink: 0;
}

.pslider-btn:hover {
  background: #2db4ff;
  color: #000;
  border-color: #2db4ff;
  transform: scale(1.08);
}

/* Flechas en slider oscuro */
.pslider-dark .pslider-title { color: #fff; }
.pslider-dark .pslider-title i { color: #2db4ff; }
.pslider-dark .pslider-btn {
  background: transparent;
  border-color: #2db4ff;
  color: #2db4ff;
}
.pslider-dark .pslider-btn:hover {
  background: #2db4ff;
  color: #000;
}

/* ── Track scrollable ───────────────────────────────────────── */
.pslider-track {
  display: flex;
  gap: .85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: .25rem;
}

.pslider-track::-webkit-scrollbar { display: none; }

/* ── Tarjeta de producto ────────────────────────────────────── */
.pslider-card {
  flex: 0 0 190px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.pslider-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

/* En slider oscuro las tarjetas tienen sombra más brillante */
.pslider-dark .pslider-card {
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
  border-color: #1a1a1a;
}

.pslider-dark .pslider-card:hover {
  box-shadow: 0 12px 28px rgba(45,180,255,.25);
}

.pcard-img-wrap {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .75rem;
  flex-shrink: 0;
}

.pcard-img-wrap img {
  max-height: 105px;
  max-width: 100%;
  object-fit: contain;
}

.pcard-icon-fallback {
  font-size: 2.6rem;
  color: rgba(0,0,0,.18);
}

.pcard-body {
  padding: .8rem .8rem .7rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .22rem;
  margin-bottom: .4rem;
}

/* Badge de marca: CYAN */
.pcard-brand-badge {
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .06em;
  background: #2db4ff;
  color: #000;
  padding: .12rem .45rem;
  border-radius: 7px;
  white-space: nowrap;
}

/* Badge de categoría: negro */
.pcard-cat-badge {
  font-size: .56rem;
  font-weight: 500;
  background: #000;
  color: #fff;
  padding: .12rem .45rem;
  border-radius: 7px;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard-name {
  font-size: .8rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  margin-bottom: .4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2rem;
  flex: 1;
}

.pcard-spec-row {
  font-size: .63rem;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: .1rem;
}

/* Botón CTA: negro por defecto */
.pcard-cta {
  display: block;
  width: 100%;
  margin-top: .5rem;
  padding: .42rem 0;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .71rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .15s, color .15s;
  text-align: center;
}

.pcard-cta:hover { background: #2db4ff; color: #000; }

/* ── Skeleton de carga ──────────────────────────────────────── */
.pcard-skeleton {
  flex: 0 0 190px;
  height: 258px;
  border-radius: 14px;
  background: linear-gradient(90deg, #e8edf2 25%, #d8e2ec 50%, #e8edf2 75%);
  background-size: 200% 100%;
  animation: pshimmer 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

.pslider-dark .pcard-skeleton {
  background: linear-gradient(90deg, #1a1a1a 25%, #252525 50%, #1a1a1a 75%);
  background-size: 200% 100%;
}

@keyframes pshimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero-info-inner { padding: .8rem 1.25rem; }
  .hero-logo-new   { height: 56px; }
  .pslider, .pslider-dark { padding-left: 1.25rem; padding-right: 1.25rem; }
  /* Navbar: ocultar "Acerca de nosotros" en tablet pequeña si no cabe */
  #main-navbar .d-flex.align-items-center { gap: .5rem; }
}

@media (max-width: 768px) {
  .hero-info-inner    { gap: .6rem 1rem; padding: .75rem 1rem; }
  .hero-logo-new      { height: 46px; max-width: 140px; }
  .hero-company-title { font-size: .85rem; }
  .pslider, .pslider-dark { padding-left: .85rem; padding-right: .85rem; }
  .pslider-card       { flex: 0 0 166px; }
  .pcard-img-wrap     { height: 112px; }
  .pcard-skeleton     { flex: 0 0 166px; height: 235px; }
  /* Hero info bar: stack logo + texto verticalmente si no cabe */
  .hero-info-inner    { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero-info-inner    { padding: .65rem .85rem; gap: .5rem .75rem; }
  .hero-logo-new      { height: 38px; max-width: 120px; }
  .hero-stats-pills   { display: none; }
  .pslider, .pslider-dark { padding-left: .65rem; padding-right: .65rem; }
  .pslider-card       { flex: 0 0 148px; }
  .pcard-img-wrap     { height: 96px; }
  .pcard-body         { padding: .6rem .6rem .5rem; }
  .pcard-name         { font-size: .74rem; }
  .pcard-skeleton     { flex: 0 0 148px; height: 218px; }
  /* Acerca de nosotros: ocultar texto, dejar sólo ícono */
  #main-navbar .nav-link[onclick*="modalAcercaDe"] span,
  #main-navbar a[onclick*="modalAcercaDe"] { font-size: .75rem; padding: .3rem .5rem; }
}

/* ══════════════════════════════════════════════════════════════
   FULLSCREEN MODALS — Certificaciones & Calibraciones
   ══════════════════════════════════════════════════════════════ */

/* ── Base modal ── */
.fullscreen-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  flex-direction: column;
  overflow: hidden;
}
.fullscreen-modal.show-modal { display: flex; }

/* ── Header — variante blanca ── */
.fsm-header {
  display: flex;
  align-items: center;
  padding: .65rem 1.5rem;
  flex-shrink: 0;
  position: relative;
}
.fsm-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.fsm-close { margin-left: auto; }
.fsm-header-white {
  background: #fff;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
}
.fsm-title        { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1rem; color: #fff; pointer-events: none; }
.fsm-title-dark   { color: #0f172a; }
.fsm-close {
  background: none;
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 6px;
  color: #fff;
  padding: .28rem .65rem;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .15s;
}
.fsm-close:hover        { background: rgba(255,255,255,.12); }
.fsm-close-dark         { border-color: #cbd5e1; color: #334155; }
.fsm-close-dark:hover   { background: #f1f5f9; }

/* ── Body ── */
.fsm-body {
  flex: 1;
  overflow-y: auto;
  padding: 2.5rem clamp(1rem, 18vw, 25rem);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.fsm-body-white { background: #fff; }

/* Título de página */
.fsm-page-title {
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e2e8f0;
}
.fsm-page-title h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #7b2d2d;
  margin-bottom: .3rem;
}
.fsm-page-title p { color: #64748b; font-size: .95rem; margin: 0; }

/* ── Fila de certificado: imagen izquierda, texto derecha ── */
.cert-row {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  padding: 1rem 0;
}
.cert-row-img {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-row-img img {
  max-width: 200px;
  max-height: 160px;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform .15s;
}
.cert-row-img img:hover { transform: scale(1.04); }
.cert-row-text { flex: 1; }
.cert-row-text p { font-size: .92rem; color: #334155; line-height: 1.65; margin-bottom: .85rem; }
.cert-row-btns { display: flex; gap: .6rem; flex-wrap: wrap; }
.cert-btn-outline {
  background: none;
  border: 1px solid #94a3b8;
  border-radius: 4px;
  color: #334155;
  padding: .3rem .85rem;
  font-size: .82rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: border-color .15s, background .15s;
}
.cert-btn-outline:hover { border-color: #2db4ff; background: #f0f9ff; color: #0369a1; }
.cert-divider { border: none; border-top: 1px solid #e2e8f0; margin: 0; }

/* Partner logos */
.cert-partners { padding: 1rem 0; }
.cert-partners-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: center;
  padding: 1rem 0;
}
.cert-partners-grid img {
  height: 44px;
  max-width: 140px;
  object-fit: contain;
}

/* ── Zoom certificado ── */
.cert-zoom-modal .fsm-body { padding: 1rem; align-items: center; justify-content: center; background: #000; }
.cert-zoom-img { max-width: 100%; max-height: calc(100vh - 70px); object-fit: contain; border-radius: 4px; }

/* ── Calibraciones ── */
.calib-top-imgs {
  display: flex;
  gap: 1.5rem;
}
.calib-top-img {
  flex: 1;
  width: 0;
  height: 225px;
  object-fit: cover;
  border-radius: 8px;
}
.calib-two-cols {
  display: flex;
  gap: 3rem;
  padding: .5rem 0;
}
.calib-col { flex: 1; }
.calib-col-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #7b2d2d;
  margin-bottom: .6rem;
}
.calib-col p { font-size: .9rem; color: #334155; line-height: 1.65; text-align: justify; }
.calib-brands-section { padding: .5rem 0; }
.calib-brands-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #7b2d2d;
  text-align: center;
  margin-bottom: 1.5rem;
}
.calib-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: center;
}
.calib-brands-grid img {
  height: 90px;
  max-width: 160px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  border: 1px solid #e2e8f0;
}

/* Logo Set y Gad en hero */
.hero-setgad-logo {
  height: 58px;
  max-width: 240px;
  object-fit: contain;
  flex-shrink: 0;
  margin-right: 75px;
  filter: drop-shadow(0 2px 8px rgba(45,180,255,.45));
  transition: transform .2s, filter .2s;
}
.hero-setgad-logo:hover {
  transform: scale(1.06);
  filter: drop-shadow(0 4px 14px rgba(45,180,255,.7));
}

/* ── Acerca de nosotros ── */
.about-row {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: .5rem 0;
}
.about-icon-col {
  flex: 0 0 52px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: .2rem;
}
.about-icon {
  font-size: 2rem;
  color: #2db4ff;
}
.about-text-col { flex: 1; }
.about-section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .5rem;
}
.about-text-col p {
  font-size: .92rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: .5rem;
}
.about-text-col a { text-decoration: none; }
.about-text-col a:hover { text-decoration: underline; }

.about-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
.about-service-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .85rem;
  color: #334155;
  font-weight: 500;
}
.about-service-card i {
  font-size: 1.25rem;
  color: #2db4ff;
  flex-shrink: 0;
}

/* Responsive modales */
@media (max-width: 1024px) {
  .fsm-body { padding: 2rem clamp(1rem, 8vw, 10rem); }
}

@media (max-width: 768px) {
  .fsm-body             { padding: 1.25rem 1.25rem; }
  .cert-row             { flex-direction: column; gap: 1rem; }
  .cert-row-img         { flex: none; width: 100%; }
  .cert-row-img img     { max-width: 100%; max-height: 200px; }
  .calib-top-imgs       { flex-direction: column; }
  .calib-top-img        { width: 100%; height: 180px; }
  .calib-two-cols       { flex-direction: column; gap: 1.25rem; }
  .about-row            { flex-direction: column; gap: .75rem; }
  .about-icon-col       { flex: none; }
  .about-services-grid  { grid-template-columns: 1fr 1fr; }
  .calib-brands-grid img { height: 65px; }
}

@media (max-width: 480px) {
  .fsm-body             { padding: 1rem .85rem; }
  .about-services-grid  { grid-template-columns: 1fr; }
  .calib-brands-grid    { gap: .6rem 1rem; }
  .calib-brands-grid img { height: 52px; }
  .fsm-page-title h2    { font-size: 1.4rem; }
}

/* ═══════════════════════════════════════════════════════════════
   COTIZACIÓN — FAB + Panel lateral
   ═══════════════════════════════════════════════════════════════ */

/* ── FAB (botón flotante) ─────────────────────────────────────── */
.quote-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1040;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 16px;
  background: var(--fold-cyan);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(45,180,255,.45);
  transition: transform .18s, box-shadow .18s, background .18s;
  white-space: nowrap;
}
.quote-fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(45,180,255,.6);
  background: #55c9ff;
}
.quote-fab-icon { font-size: 1.15rem; }
.quote-fab-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: #e02424;
  color: #fff;
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
@keyframes quote-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  100% { transform: scale(1); }
}
.quote-fab.pop { animation: quote-pop .3s ease; }

/* ── Overlay ──────────────────────────────────────────────────── */
.quote-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1045;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.quote-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Panel lateral ───────────────────────────────────────────── */
.quote-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 32px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.quote-panel.open { transform: translateX(0); }

.quote-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #000;
  color: #fff;
  flex-shrink: 0;
}
.bg-cyan   { background: var(--fold-cyan) !important; color: #000 !important; }
.btn-cyan  {
  background: var(--fold-cyan);
  color: #000;
  font-weight: 700;
  border: none;
}
.btn-cyan:hover { background: #55c9ff; color: #000; }

.quote-close-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .15s;
}
.quote-close-btn:hover { background: rgba(255,255,255,.15); }

.quote-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.quote-panel-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--gray-200);
  flex-shrink: 0;
  background: #fafafa;
}

/* ── Items de cotización ─────────────────────────────────────── */
.quote-empty {
  text-align: center;
  color: var(--gray-500);
  padding: 40px 20px;
}
.quote-empty i { font-size: 2.5rem; opacity: .35; }

.quote-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}
.quote-item:last-child { border-bottom: none; }
.quote-item-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--gray-100);
}
.quote-item-img-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 1.4rem;
  flex-shrink: 0;
}
.quote-item-info { flex: 1; min-width: 0; }
.quote-item-name {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.quote-item-brand { font-size: .72rem; color: var(--gray-500); }
.quote-item-remove {
  background: transparent;
  border: none;
  color: #e02424;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .85rem;
  flex-shrink: 0;
  transition: background .15s;
}
.quote-item-remove:hover { background: #fee2e2; }

/* ── Botón "Agregar" en tarjetas ─────────────────────────────── */
.btn-add-quote {
  background: transparent;
  border: 1.5px solid var(--fold-cyan);
  color: #0369a1;
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-add-quote:hover,
.btn-add-quote.in-quote {
  background: var(--fold-cyan);
  color: #000;
  border-color: var(--fold-cyan);
}

/* ── Botón "Agregar" en modal ────────────────────────────────── */
.btn-modal-quote {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--fold-cyan);
  color: #000;
  border: none;
  border-radius: 8px;
  padding: 7px 16px;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn-modal-quote:hover  { background: #55c9ff; transform: translateY(-1px); }
.btn-modal-quote.in-quote {
  background: #d1fae5;
  color: #065f46;
}

.quote-form input,
.quote-form textarea {
  font-size: .82rem;
}

@media (max-width: 768px) {
  .quote-fab {
    bottom: 16px;
    right: 16px;
    z-index: 1055;
  }
}
@media (max-width: 480px) {
  .quote-fab-label { display: none; }
  .quote-fab {
    padding: 14px;
    border-radius: 50%;
    bottom: 16px;
    right: 16px;
    z-index: 1055;
  }
}
