* {
  box-sizing: border-box;
}

:root {
  --blue: #064bb4;
  --blue-dark: #03479f;
  --green: #47c51b;
  --green-dark: #39b91a;
  --text: #082b65;
  --border: #b9dceb;
  --page-bg: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #dfe6ef;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
}

.catalog-app {
  min-height: 100vh;
  padding: 72px 12px 38px;
}

.catalog-toolbar {
  position: fixed;
  z-index: 50;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(6, 29, 73, 0.91);
  border-radius: 999px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);
}

.catalog-toolbar button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}

.catalog-toolbar button:disabled {
  opacity: 0.35;
  cursor: default;
}

.catalog-toolbar div {
  min-width: 135px;
  text-align: center;
}

.catalog-toolbar span {
  font-size: 12px;
  opacity: 0.75;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.catalog-actions {
  position: fixed;
  z-index: 70;
  inset: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.catalog-search-toggle,
.catalog-search-panel,
.catalog-pdf-button {
  pointer-events: auto;
}

.catalog-search-toggle {
  position: fixed;
  left: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(28, 112, 24, 0.32);
  transition: transform 0.2s, filter 0.2s;
}

.catalog-search-toggle:hover,
.catalog-pdf-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.catalog-search-toggle:focus-visible,
.catalog-pdf-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.95);
  outline-offset: 3px;
}

.catalog-search-toggle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.catalog-search-active-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ffb000;
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.2s, transform 0.2s;
}

.catalog-actions.has-active-search .catalog-search-active-dot {
  opacity: 1;
  transform: scale(1);
}

.catalog-search-panel {
  position: fixed;
  left: 18px;
  bottom: 82px;
  width: min(390px, calc(100vw - 36px));
  padding: 10px 10px 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transform-origin: left bottom;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(6, 75, 180, 0.16);
  border-radius: 14px;
  box-shadow: 0 14px 38px rgba(15, 38, 76, 0.28);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.catalog-actions.is-search-open .catalog-search-panel {
  visibility: visible;
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.catalog-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.catalog-search-icon {
  position: absolute;
  left: 13px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  height: 44px;
  padding: 0 46px 0 42px;
  border: 1px solid #bfd2e8;
  border-radius: 10px;
  outline: none;
  background: #f8fbff;
  color: #12335f;
  font: inherit;
  font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.catalog-search input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(6, 75, 180, 0.13);
}

.catalog-search input::-webkit-search-cancel-button {
  display: none;
}

.catalog-search-clear {
  position: absolute;
  right: 7px;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #e8f0fa;
  color: #315170;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.catalog-pdf-button {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0871d7);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(6, 75, 180, 0.34);
  transition: transform 0.2s, filter 0.2s;
}

.catalog-pdf-button:disabled {
  opacity: 0.7;
  cursor: wait;
}

.catalog-pdf-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pdf-label-short {
  display: none;
}

.pdf-progress-badge {
  position: absolute;
  top: -9px;
  right: -7px;
  min-width: 31px;
  padding: 3px 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #ffb000;
  color: #24354a;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pdf-progress-badge[hidden] {
  display: none !important;
}

.catalog-search-status {
  min-height: 15px;
  margin: 6px 3px 0;
  color: #566b82;
  font-size: 12px;
  line-height: 1.2;
}

.catalog-no-results {
  width: min(96vw, 210mm);
  margin: 0 auto 18px;
  padding: 28px 20px;
  border: 1px dashed #a9c7e6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  text-align: center;
}

.catalog-no-results strong,
.catalog-no-results span {
  display: block;
}

.catalog-no-results strong {
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 18px;
}

.catalog-no-results span {
  color: #61738a;
  font-size: 13px;
}

.catalog-preview-bar {
  position: fixed;
  z-index: 95;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 8px max(14px, env(safe-area-inset-right, 0px)) 8px max(14px, env(safe-area-inset-left, 0px));
  background: #8a5d00;
  color: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .25);
}

.catalog-preview-bar div,
.catalog-preview-bar span {
  min-width: 0;
}

.catalog-preview-bar strong,
.catalog-preview-bar span {
  display: block;
}

.catalog-preview-bar span {
  margin-top: 2px;
  font-size: 12px;
  opacity: .86;
}

.catalog-preview-bar a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

body.catalog-preview-mode .catalog-app {
  padding-top: 132px;
}

body.catalog-preview-mode .catalog-toolbar {
  top: 66px;
}

.catalog-update-notice {
  position: fixed;
  z-index: 92;
  right: 18px;
  bottom: 84px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(390px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(6, 75, 180, .2);
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  color: #18355d;
  box-shadow: 0 16px 42px rgba(15, 38, 76, .3);
  backdrop-filter: blur(10px);
}

.catalog-update-notice[hidden] {
  display: none !important;
}

.catalog-update-notice div {
  min-width: 0;
}

.catalog-update-notice strong,
.catalog-update-notice span {
  display: block;
}

.catalog-update-notice span {
  margin-top: 2px;
  color: #66778d;
  font-size: 12px;
}

.catalog-update-notice button {
  flex: 0 0 auto;
  padding: 9px 12px;
  border: 0;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.sheet[hidden],
.product-card[hidden],
.catalog-search-clear[hidden],
.catalog-no-results[hidden] {
  display: none !important;
}

.sheets {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.sheet {
  position: relative;
  display: block;
  flex: 0 0 auto;
  /* A4 vertical: 210 × 297 mm, también en la vista previa de escritorio. */
  width: min(96vw, 210mm);
  aspect-ratio: 210 / 297;
  overflow: hidden;
  background: var(--page-bg);
  border-radius: 2px;
  box-shadow: 0 24px 70px rgba(25, 51, 95, 0.2);
  scroll-margin-top: 72px;
}

/* Portada */
.cover-sheet {
  background: linear-gradient(145deg, #fff 0 55%, #dff7ff);
}

.cover-full {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* La portada anterior es más ancha que A4: mostrarla entera evita cortar texto. */
  object-fit: contain;
  background: #fff;
}

.cover-overlay {
  position: absolute;
  inset: 0;
  padding: 6%;
  background: linear-gradient(120deg, rgba(255,255,255,.93) 0 47%, rgba(255,255,255,.06) 72%);
}

.brand-logo {
  display: block;
  max-width: 34%;
  max-height: 11%;
  object-fit: contain;
}

.motoluz-word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-size: clamp(30px, 5vw, 68px);
  font-weight: 900;
  letter-spacing: -0.06em;
}

.motoluz-word span {
  color: var(--blue);
}

.motoluz-word strong {
  color: var(--green);
}

.motoluz-word small {
  position: absolute;
  top: 90%;
  left: 18%;
  color: #666;
  font-size: 0.18em;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.cover-copy {
  position: absolute;
  top: 24%;
  left: 6%;
  max-width: 56%;
}

.cover-copy h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 7vw, 82px);
  font-style: italic;
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.cover-copy h1 em {
  display: block;
  color: var(--green);
  font-style: normal;
}

.cover-copy h2 {
  margin: 24px 0;
  padding: 0.5em 0.8em;
  background: var(--blue);
  color: #fff;
  font-size: clamp(15px, 2.5vw, 28px);
  transform: skew(-8deg);
}

.cover-copy p {
  margin: 0.35em 0;
  font-size: clamp(16px, 2.3vw, 30px);
  font-style: italic;
  font-weight: 800;
}

.cover-copy-secondary {
  color: #4f6075;
  font-size: clamp(11px, 1.55vw, 20px) !important;
  font-weight: 600 !important;
}

.cover-product {
  position: absolute;
  right: 2%;
  bottom: 15%;
  width: 48%;
  height: 52%;
  object-fit: contain;
}

.cover-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 2.4% 6%;
  background: var(--blue-dark);
  color: #fff;
  font-size: clamp(11px, 1.8vw, 20px);
  font-weight: 700;
}

/* Hojas de productos */
.product-sheet {
  display: grid;
  grid-template-rows: 11% minmax(0, 1fr) 7%;
  /*padding: 1.7% 0 0;*/
  background: #fff;
  /* Evita dibujar las más de cien hojas hasta que estén cerca de la pantalla. */
  content-visibility: auto;
  /* Reserva el alto A4 mientras una hoja todavía no se ha dibujado. */
  contain-intrinsic-size: auto 1123px;
}

.catalog-lazy-image {
  background: linear-gradient(105deg, #edf2f7 35%, #f8fafc 48%, #edf2f7 61%);
  background-size: 240% 100%;
  animation: catalog-image-loading 1.15s ease-in-out infinite;
  transition: opacity .16s ease;
}

.catalog-lazy-image.is-loaded {
  background: transparent;
  animation: none;
}

.catalog-lazy-image.is-error {
  background: #f1f5f9;
  animation: none;
  opacity: .35;
}

@keyframes catalog-image-loading {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.product-sheet-background {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.sheet-header,
.product-list,
.sheet-footer {
  position: relative;
  z-index: 1;
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  margin: 0 2.3%;
  padding: 0 2% 1%;
  border-bottom: 2px solid #54c93e;
}

.sheet-header-logo {
  display: block;
  width: auto;
  height: clamp(48px, 10vw, 90px);
  max-width: 70%;
  object-fit: contain;
}

.product-list {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 1.1%;
  min-height: 0;
  margin: 0 2.3%;
  padding: 1.2% 0;
}

.product-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 28%) minmax(0, 46%) minmax(0, 26%);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  /* Usa únicamente el fondo activado desde Configuración general. */
  background-color: rgba(255, 255, 255, 0.94);
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  background-origin: padding-box;
  background-clip: padding-box;
  border: 1px solid var(--border);
  border-radius: clamp(8px, 1.2vw, 16px);
  box-shadow: 0 5px 14px rgba(13, 78, 141, 0.07);
}

/* Composición global creada desde Diseño de productos. Las medidas se guardan
   en porcentajes para conservar la distribución en PC, móvil y exportación PDF. */
.product-card.has-product-design {
  isolation: isolate;
  background-image: none;
}

.product-design-stack {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.product-design-stack--back {
  z-index: 0;
}

.product-design-stack--front {
  z-index: 4;
}

.product-design-layer {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  transform-origin: center;
  pointer-events: none;
  user-select: none;
}

.product-design-layer[data-fit="contain"] { object-fit: contain; }
.product-design-layer[data-fit="cover"] { object-fit: cover; }
.product-design-layer[data-fit="fill"] { object-fit: fill; }

.product-card.has-product-design > .product-image-wrap,
.product-card.has-product-design > .product-info,
.product-card.has-product-design > .price-box {
  position: relative;
  z-index: 2;
}

.product-card.has-product-design > .product-label {
  z-index: 6;
}

.product-label {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  padding: 0.45em 1.1em;
  background: #49c51c;
  color: #fff;
  clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
  font-size: clamp(8px, 1.25vw, 14px);
  font-weight: 900;
}

.product-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 8% 5% 3%;
  background: rgba(248, 251, 253, 0.18);
}

.product-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Decoración azul delante de la fotografía, pero debajo de la etiqueta
   NUEVO / MÁS VENDIDO / OFERTA, que utiliza z-index: 5. */
.product-image-wrap .product-image-decoration {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: block;
  width: 80%;
  height: 80%;
  max-width: none;
  max-height: none;
  object-fit: fill;
  pointer-events: none;
  user-select: none;
}

.product-placeholder {
  display: grid;
  place-items: center;
  width: 78%;
  aspect-ratio: 1;
  background: #f1f5f9;
  border-radius: 50%;
  color: #0a4fae;
  font-size: clamp(11px, 1.7vw, 20px);
  font-weight: 900;
  text-align: center;
}

.product-placeholder small {
  display: block;
  color: #7b8ba3;
  font-size: 0.45em;
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: clamp(7px, 1.1vw, 15px) clamp(7px, 1vw, 13px);
}

.product-info h3 {
  max-width: 100%;
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--blue);
  font-style: italic;
  font-weight: 900;
  line-height: 0.98;
  font-size: clamp(11px, 1.7vw, 21px);
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  margin-top: 2%;
}

.tech-line,
.code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #fff;
  font-weight: 800;
}

.tech-line {
  padding: 0.2em 0.8em;
  background: #218f3e;
  font-size: clamp(7px, 1vw, 12px);
}

.code {
  padding: 0.25em 0.7em;
  background: var(--blue);
  font-size: clamp(8px, 1.1vw, 13px);
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 22%);
  align-items: stretch;
  gap: 4px;
  width: 100%;
  min-height: 0;
  margin-top: 2%;
}

.gallery-thumb {
  height: clamp(30px, 4.7vw, 55px);
  min-width: 0;
  padding: 2px;
  border: 1px solid #c1d6e5;
  border-radius: 6px;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--blue);
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-more {
  min-width: 0;
  padding: 2px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: clamp(7px, .85vw, 10px);
  font-weight: 800;
  cursor: pointer;
}

.gallery-more span {
  display: block;
}

/* Alternativa a la galería: texto de marca centrado en la zona de detalle. */
.product-brand-text {
  display: flex;
  flex: 1 1 auto;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: 2%;
  padding: 0 3% 4%;
  color: #111;
  font-size: clamp(16px, 3.4vw, 34px);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-align: center;
  overflow-wrap: anywhere;
}

/* Tercera alternativa: promoción legible dentro de la zona central. */
.product-promo-text {
  display: flex;
  flex: 0 0 auto;
  align-self: center;
  align-items: center;
  justify-content: center;
  width: 92%;
  min-width: 0;
  min-height: 38px;
  max-height: 58px;
  margin: 4% auto 2%;
  padding: 2.5% 4%;
  border: 1px solid #cfe0f5;
  border-radius: 7px;
  background: linear-gradient(135deg, #eef5ff 0%, #ffffff 100%);
  color: var(--blue);
  font-size: clamp(7px, 1.05vw, 12px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  white-space: pre-line;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  width: 100%;
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
}

.product-features span {
  max-width: 100%;
  padding: 2px 5px;
  background: #eef6ff;
  border-radius: 5px;
  color: #36577f;
  font-size: clamp(6px, 0.78vw, 9px);
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  padding-top: 5px;
}

.social-links a {
  color: var(--blue);
  border-bottom: 2px solid #18b82b;
  font-size: clamp(6px, 0.78vw, 9px);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.social-links a:hover {
  color: var(--green-dark);
}

.price-box {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  min-width: 0;
  overflow: hidden;
  padding: 1% 6% 4%;
  border-left: 1px solid #53c742;
}

/* Logo institucional sobre el precio de cada producto. */
.price-brand-logo {
  display: block;
  flex: 0 0 auto;
  align-self: center;
  width: 94%;
  height: clamp(34px, 5.4vw, 62px);
  margin: 0 auto 1%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.price-box > small {
  padding: 0.18em 0.65em;
  background: var(--blue);
  border-radius: 999px;
  color: #fff;
  font-size: clamp(6px, 0.85vw, 10px);
  font-weight: 900;
}

.price-box > strong {
  align-self: center;
  width: 100%;
  max-width: 100%;
  color: var(--blue);
  font-size: clamp(18px, 3.5vw, 44px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-align: center;
  overflow-wrap: anywhere;
}

.price-box sup {
  font-size: 0.42em;
}

.price-box .consult {
  margin: 0.5em 0;
  font-size: clamp(12px, 2.25vw, 25px);
}

.price-box p {
  width: 100%;
  margin: 2% 0;
  padding: 0.45em 0.7em;
  background: #eef4fb;
  border-radius: 6px;
  color: #28466d;
  font-size: clamp(6px, 0.9vw, 11px);
  text-align: center;
  overflow-wrap: anywhere;
}

.more-pill {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.32em;
  width: 100%;
  max-width: 100%;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0.16em 0.48em 0.16em 0.16em;
  border: 1px solid rgba(255, 255, 255, 0.92);
  background: #ed2e2e;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(237, 46, 46, 0.48), 0 1px 3px rgba(27, 54, 87, 0.24);
  color: #fff;
  font-size: clamp(7px, 1.15vw, 14px);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}

.video-pill-play {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.05em;
  height: 2.05em;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.video-pill-play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 0.18em;
  border-top: 0.58em solid transparent;
  border-bottom: 0.58em solid transparent;
  border-left: 0.92em solid #30bd18;
}

.video-pill-label {
  min-width: 0;
  line-height: 1;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-pill-arrows {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 1.38em;
  height: 1.38em;
  margin-left: 0;
  color: transparent;
  font-size: 1em;
  line-height: 1;
}

.video-pill-arrows::before,
.video-pill-arrows::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  border: solid #fff;
  border-width: 0 0.17em 0.17em 0;
  transform: translateY(-50%) rotate(-45deg);
}

.video-pill-arrows::before {
  left: 0.02em;
}

.video-pill-arrows::after {
  left: 0.46em;
}

.more-pill.disabled {
  background: #9099a7;
  box-shadow: none;
  opacity: 0.62;
  cursor: default;
}

.more-pill.disabled .video-pill-play::before {
  border-left-color: #9099a7;
}

body.media-modal-open {
  overflow: hidden;
}

.media-modal[hidden],
.media-modal-photo[hidden],
.media-modal-video[hidden],
.media-modal-video video[hidden],
.media-modal-video iframe[hidden],
.gallery-thumb[hidden] {
  display: none !important;
}

.media-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: rgba(2, 20, 54, .78);
}

.media-modal-dialog {
  display: flex;
  flex-direction: column;
  width: min(94vw, 900px);
  max-height: min(92vh, 850px);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, .3);
}

/* El modal de video se adapta al contenido sin ocupar el ancho de la galeria. */
.media-modal-dialog.is-video-modal {
  width: min(92vw, 640px);
  max-height: min(94vh, 820px);
}

.media-modal-dialog.is-video-modal .media-modal-video {
  padding: 10px;
}

.media-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
}

.media-modal-header h2 {
  margin: 0;
  font-size: clamp(14px, 2vw, 21px);
  line-height: 1.2;
}

.media-modal-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.media-modal-photo,
.media-modal-video {
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.media-modal-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
}

.media-modal-image {
  display: block;
  width: min(76vw, 740px);
  height: min(58vh, 560px);
  object-fit: contain;
}

.media-modal-prev,
.media-modal-next {
  flex: 0 0 auto;
  width: 34px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: #eaf3ff;
  color: var(--blue);
  font-size: 30px;
  cursor: pointer;
}

.media-modal-prev:disabled,
.media-modal-next:disabled {
  visibility: hidden;
}

.media-modal-caption {
  margin: 6px 0 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.media-modal-thumbnails {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
}

.media-modal-thumbnails button {
  width: 64px;
  height: 52px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 7px;
  background: #edf5ff;
  cursor: pointer;
}

.media-modal-thumbnails button[aria-current="true"] {
  border-color: var(--green-dark);
}

.media-modal-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-modal-video iframe,
.media-modal-video video {
  display: block;
  width: 100%;
  height: min(68vh, 520px);
  border: 0;
  background: #06193b;
}

.media-modal-dialog.is-video-modal .media-modal-video iframe {
  height: min(72vh, 660px);
  border-radius: 10px;
}

.media-modal-dialog.is-video-modal .media-modal-video video {
  width: 100%;
  height: auto;
  max-height: min(74vh, 680px);
  aspect-ratio: var(--native-video-ratio, 16 / 9);
  object-fit: contain;
  border-radius: 10px;
}

.media-modal-dialog.is-video-modal .media-modal-video p {
  margin-top: 7px;
}

.media-modal-video p {
  margin: 9px 0 0;
  font-size: 13px;
  text-align: center;
}

.media-modal-video a {
  color: var(--blue);
  font-weight: 700;
}

.sheet-footer {
  display: grid;
  grid-template-columns: 1.25fr 1.25fr 0.95fr;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 0 2.8%;
  background: var(--blue-dark);
  color: #fff;
  font-size: clamp(7px, 0.9vw, 11px);
}

.sheet-footer > div {
  min-width: 0;
  height: 56%;
  padding: 0 5%;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.sheet-footer > div:last-child {
  border-right: 0;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1vw, 12px);
}

.footer-contact-icon {
  width: clamp(19px, 3.1vw, 35px);
  height: clamp(19px, 3.1vw, 35px);
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-contact-tiktok .footer-contact-icon {
  fill: currentColor;
  stroke: none;
}

.footer-phone-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px clamp(9px, 1.5vw, 18px);
  width: 100%;
  font-weight: 800;
  white-space: nowrap;
}

.footer-contact-web b {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.92em;
}

.footer-contact-tiktok b,
.footer-contact-tiktok small {
  display: block;
  line-height: 1.1;
}

.footer-contact-tiktok small {
  margin-top: 2px;
  font-weight: 700;
}

.empty-card {
  display: grid;
  place-items: center;
  background: rgba(250, 250, 250, 0.78);
  border-style: dashed;
  color: #aab3bf;
  font-weight: 800;
}

.empty-catalog-sheet {
  display: grid;
  place-items: center;
  text-align: center;
}

.catalog-help {
  margin-top: 18px;
  color: #526174;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 600px) {
  .catalog-app {
    padding: 62px 4px 24px;
  }

  .sheets {
    gap: 14px;
  }

  .sheet {
    width: 100%;
    border-radius: 0;
  }

  .cover-copy {
    max-width: 70%;
  }

  .product-sheet {
    /* En pantallas estrechas la hoja puede crecer para no recortar los 4 productos. */
    display: flex;
    flex-direction: column;
    aspect-ratio: auto;
    min-height: 141.43vw;
    padding: 12px 0 0;
  }

  .sheet-header,
  .product-list {
    margin-right: 10px;
    margin-left: 10px;
  }

  .sheet-header {
    height: auto;
    min-height: 58px;
  }

  .product-list {
    flex: 1 0 auto;
    grid-template-rows: none;
    height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .product-card {
    min-height: 170px;
    grid-template-columns: minmax(0, 29%) minmax(0, 44%) minmax(0, 27%);
  }

  .product-info {
    height: auto;
    min-height: auto;
    padding: 8px 5px;
  }

  .product-info h3 {
    font-size: clamp(11px, 3.1vw, 16px);
  }

  .tech-line,
  .code,
  .product-features span,
  .social-links a {
    font-size: 7px;
  }

  .product-gallery {
    gap: 2px;
  }

  .gallery-thumb {
    height: clamp(28px, 8vw, 40px);
  }

  .gallery-more {
    font-size: 7px;
  }

  .price-box {
    padding: 4px 5px 7px;
  }

  .price-brand-logo {
    height: clamp(26px, 7vw, 38px);
    margin-bottom: 0;
  }

  .price-box > strong {
    font-size: clamp(18px, 5.2vw, 26px);
  }

  .price-box p,
  .more-pill,
  .more-pill.disabled {
    font-size: 8px;
    line-height: 1.2;
  }

  .sheet-footer {
    margin-top: auto;
    min-height: 48px;
  }

  .catalog-help {
    font-size: 11px;
  }
}

/* Vista móvil: conserva las 4 fichas por hoja, pero permite que la hoja crezca
   para que textos, galería, precio y botones sigan siendo legibles. */
@media screen and (max-width: 720px) {
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  .catalog-app {
    padding: calc(68px + env(safe-area-inset-top, 0px)) 6px calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .catalog-toolbar {
    top: calc(8px + env(safe-area-inset-top, 0px));
    width: calc(100% - 16px);
    max-width: 460px;
    justify-content: space-between;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }

  .catalog-toolbar button {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    font-size: 27px;
  }

  .catalog-toolbar div {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .catalog-toolbar strong,
  .catalog-toolbar span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sheets {
    gap: 16px;
  }

  .sheet {
    width: 100%;
    max-width: 560px;
    scroll-margin-top: calc(68px + env(safe-area-inset-top, 0px));
  }

  .product-sheet {
    display: flex;
    flex-direction: column;
    min-height: 0;
    aspect-ratio: auto;
    padding-top: 8px;
    background-color: #fff;
  }

  .sheet-header,
  .product-list {
    margin-right: 8px;
    margin-left: 8px;
  }

  .sheet-header {
    flex: 0 0 auto;
    min-height: 60px;
    padding-bottom: 5px;
  }

  .sheet-header-logo {
    height: 52px;
    max-width: 72%;
  }

  .product-list {
    display: grid;
    flex: 0 0 auto;
    grid-template-rows: none;
    gap: 10px;
    min-height: 0;
    padding: 10px 0;
  }

  .product-card {
    grid-template-columns: minmax(112px, 34%) minmax(0, 66%);
    grid-template-rows: minmax(0, auto) auto;
    grid-template-areas:
      "product-image product-info"
      "product-image product-price";
    min-height: 232px;
    border-radius: 12px;
  }

  .product-label {
    padding: 0.48em 1em;
    font-size: 10px;
  }

  .product-image-wrap {
    grid-area: product-image;
    padding: 34px 6px 8px;
  }

  .product-info {
    grid-area: product-info;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 10px 8px 7px;
  }

  .product-info h3 {
    font-size: clamp(14px, 4vw, 19px);
    line-height: 1;
  }

  .product-meta {
    margin-top: 6px;
  }

  .tech-line,
  .code {
    font-size: 9px;
  }

  .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(48px, 22%);
    gap: 4px;
    margin-top: 7px;
  }

  .gallery-thumb {
    height: 45px;
  }

  .gallery-more {
    min-height: 45px;
    font-size: 8px;
  }

  .product-features {
    gap: 4px;
    margin-top: 6px;
  }

  .product-features span,
  .social-links a {
    font-size: 8px;
  }

  .social-links {
    gap: 5px 8px;
    margin-top: 7px;
    padding-top: 0;
  }

  .price-box {
    grid-area: product-price;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 4px 8px;
    overflow: visible;
    padding: 8px;
    border-top: 1px solid #53c742;
    border-left: 0;
  }

  .price-box > small {
    justify-self: start;
    font-size: 9px;
  }

  .price-box > strong {
    justify-self: end;
    font-size: clamp(26px, 8vw, 38px);
  }

  .price-box .consult {
    justify-self: end;
    margin: 0;
    font-size: 17px;
  }

  .price-box p,
  .more-pill {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 9px;
    line-height: 1.25;
  }

  .more-pill {
    min-height: 36px;
    display: grid;
    place-items: center;
    margin-top: 2px;
  }

  .empty-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: none;
    min-height: 120px;
  }

  .sheet-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 118px;
    margin-top: auto;
    padding: 10px 12px;
    font-size: 9px;
  }

  .sheet-footer > div {
    height: auto;
    min-height: 38px;
    padding: 4px 9px;
  }

  .footer-contact-phones {
    grid-column: 1 / -1;
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  }

  .footer-contact-web {
    border-right: 1px solid rgba(255, 255, 255, 0.35);
  }

  .footer-contact-icon {
    width: 26px;
    height: 26px;
  }

  .footer-phone-grid {
    gap: 3px 12px;
    font-size: 10px;
  }

  .media-modal {
    align-items: center;
    padding: 6px;
  }

  .media-modal-dialog {
    width: 100%;
    max-height: calc(100dvh - 12px);
    border-radius: 12px;
  }

  .media-modal-header {
    gap: 8px;
    padding: 10px 12px;
  }

  .media-modal-header h2 {
    font-size: 15px;
  }

  .media-modal-close {
    width: 44px;
    height: 44px;
  }

  .media-modal-photo,
  .media-modal-video {
    padding: 8px;
  }

  .media-modal-stage {
    position: relative;
    width: 100%;
  }

  .media-modal-image {
    width: 100%;
    height: min(58dvh, 520px);
    padding: 0 34px;
  }

  .media-modal-prev,
  .media-modal-next {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 38px;
    height: 48px;
    transform: translateY(-50%);
  }

  .media-modal-prev {
    left: 0;
  }

  .media-modal-next {
    right: 0;
  }

  .media-modal-thumbnails {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 6px;
    scroll-snap-type: x proximity;
  }

  .media-modal-thumbnails button {
    flex: 0 0 64px;
    scroll-snap-align: start;
  }

  .media-modal-video iframe,
  .media-modal-video video {
    height: min(62dvh, 520px);
  }

  .media-modal-dialog.is-video-modal {
    width: min(100%, 560px);
  }

  .media-modal-dialog.is-video-modal .media-modal-video iframe {
    height: min(72dvh, 660px);
  }

  .media-modal-dialog.is-video-modal .media-modal-video video {
    height: auto;
    max-height: min(72dvh, 680px);
  }
}

@media screen and (max-width: 390px) {
  .product-card {
    grid-template-columns: minmax(100px, 32%) minmax(0, 68%);
  }

  .product-info h3 {
    font-size: 14px;
  }

  .gallery-thumb,
  .gallery-more {
    height: 40px;
    min-height: 40px;
  }

  .footer-phone-grid {
    font-size: 9px;
  }
}

/* Presentación solicitada para celular: cada hoja se ve completa, como una
   página de PDF reducida proporcionalmente al ancho del dispositivo. */
@media screen and (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  .catalog-app {
    padding: 0 0 env(safe-area-inset-bottom, 0px);
  }

  body.catalog-preview-mode .catalog-app {
    padding-top: 58px;
  }

  .catalog-preview-bar {
    min-height: 50px;
    padding: 6px 8px;
  }

  .catalog-preview-bar strong {
    font-size: 11px;
  }

  .catalog-preview-bar span {
    font-size: 9px;
  }

  .catalog-preview-bar a {
    padding: 7px 9px;
    font-size: 10px;
  }

  .catalog-update-notice {
    right: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    left: 8px;
    max-width: none;
    padding: 10px;
  }

  .catalog-update-notice strong {
    font-size: 13px;
  }

  .catalog-update-notice button {
    padding: 8px 10px;
    font-size: 12px;
  }

  .catalog-toolbar,
  .catalog-help {
    display: none;
  }

  .catalog-actions {
    inset: 0;
    width: 0;
    height: 0;
  }

  .catalog-search-toggle,
  .catalog-pdf-button {
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: 46px;
    height: 46px;
  }

  .catalog-search-toggle {
    left: 10px;
  }

  .catalog-pdf-button {
    right: 10px;
  }

  .catalog-search-toggle svg,
  .catalog-pdf-button svg {
    width: 21px;
    height: 21px;
  }

  .catalog-search-panel {
    left: 8px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 16px);
  }

  .catalog-search input {
    height: 42px;
    padding-right: 40px;
    font-size: 16px;
  }

  .catalog-pdf-button {
    padding: 0;
  }

  .pdf-label-long {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  .pdf-label-short {
    display: none;
  }

  .catalog-search-status {
    font-size: 10px;
  }

  .catalog-no-results {
    width: calc(100% - 16px);
    margin: 14px auto;
  }

  .sheets {
    gap: 7px;
  }

  .sheet {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 210 / 297;
    border-radius: 0;
    box-shadow: none;
    scroll-margin-top: 0;
  }

  .product-sheet {
    display: grid;
    grid-template-rows: 11% minmax(0, 1fr) 7%;
    min-height: 0;
    aspect-ratio: 210 / 297;
    padding: 1.7% 0 0;
  }

  .sheet-header,
  .product-list {
    margin-right: 2.3%;
    margin-left: 2.3%;
  }

  .sheet-header {
    min-height: 0;
    padding: 0 2% 1%;
  }

  .sheet-header-logo {
    width: auto;
    height: clamp(38px, 10vw, 70px);
    max-width: 70%;
  }

  .product-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    flex: initial;
    gap: 1.1%;
    min-height: 0;
    height: auto;
    padding: 1.2% 0;
  }

  .product-card {
    grid-template-columns: minmax(0, 28%) minmax(0, 46%) minmax(0, 26%);
    grid-template-rows: none;
    grid-template-areas: none;
    min-height: 0;
    border-radius: clamp(7px, 1.2vw, 12px);
  }

  .product-label {
    padding: 0.45em 1.1em;
    font-size: clamp(7px, 1.25vw, 10px);
  }

  .product-image-wrap {
    grid-area: auto;
    padding: 8% 5% 3%;
  }

  .product-info {
    grid-area: auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: clamp(5px, 1.1vw, 9px) clamp(4px, 1vw, 8px);
  }

  .product-info h3 {
    font-size: clamp(10px, 2.8vw, 16px);
    line-height: 0.98;
  }

  .product-meta {
    margin-top: 2%;
  }

  .tech-line {
    font-size: clamp(6px, 1.45vw, 9px);
  }

  .code {
    font-size: clamp(7px, 1.6vw, 10px);
  }

  .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 22%);
    gap: 2px;
    margin-top: 2%;
  }

  .gallery-thumb {
    height: clamp(24px, 7vw, 40px);
  }

  .gallery-more {
    min-height: 0;
    height: auto;
    font-size: clamp(6px, 1.35vw, 8px);
  }

  .product-features {
    gap: 2px 4px;
    margin-top: 3px;
  }

  .product-features span,
  .social-links a {
    font-size: clamp(5px, 1.25vw, 8px);
  }

  .social-links {
    gap: 2px 6px;
    margin-top: auto;
    padding-top: 3px;
  }

  .price-box {
    grid-area: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 1% 6% 4%;
    border-top: 0;
    border-left: 1px solid #53c742;
  }

  .price-brand-logo {
    width: 94%;
    height: clamp(22px, 6.2vw, 40px);
    margin-bottom: 0;
  }

  .price-box > small {
    justify-self: auto;
    font-size: clamp(5px, 1.3vw, 8px);
  }

  .price-box > strong {
    justify-self: auto;
    font-size: clamp(16px, 5.5vw, 30px);
  }

  .price-box .consult {
    align-self: auto;
    margin: 0.5em 0;
    font-size: clamp(10px, 3vw, 17px);
  }

  .price-box p {
    display: block;
    grid-column: auto;
    width: 100%;
    margin: 2% 0;
    font-size: clamp(5px, 1.35vw, 8px);
    line-height: 1.2;
  }

  .more-pill {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.28em;
    grid-column: auto;
    min-height: 0;
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    padding: 0.16em 0.42em 0.16em 0.16em;
    font-size: clamp(6px, 1.65vw, 10px);
    line-height: 1.2;
  }

  .empty-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 0;
  }

  .sheet-footer {
    grid-template-columns: 1.25fr 1.25fr 0.95fr;
    min-height: 0;
    margin-top: 0;
    padding: 0 2.8%;
    font-size: clamp(5px, 1.25vw, 8px);
  }

  .sheet-footer > div {
    grid-column: auto;
    height: 56%;
    min-height: 0;
    padding: 0 5%;
    border-right: 1px solid rgba(255, 255, 255, 0.4);
    border-bottom: 0;
  }

  .sheet-footer > div:last-child {
    border-right: 0;
  }

  .footer-contact-icon {
    width: clamp(16px, 4vw, 25px);
    height: clamp(16px, 4vw, 25px);
  }

  .footer-phone-grid {
    gap: 1px clamp(5px, 1.5vw, 10px);
    font-size: inherit;
  }
}

/* Ajustes finales de pantalla.
   Se limitan al catálogo visible para no alterar la copia A4 usada al crear el PDF. */
@media screen and (min-width: 721px) {
  .catalog-app .sheets .product-info,
  .catalog-app .sheets .product-meta,
  .catalog-app .sheets .product-gallery,
  .catalog-app .sheets .product-features,
  .catalog-app .sheets .social-links,
  .catalog-app .sheets .price-box {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-app .sheets .price-box > strong {
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .catalog-app .sheets .price-box p {
    margin: 1.2% 0;
    padding: 0.32em 0.55em;
    line-height: 1.08;
  }

  .catalog-app .sheets .product-gallery {
    overflow: hidden;
  }
}

@media screen and (min-width: 721px) and (max-width: 1024px) {
  .catalog-app .sheets .product-info {
    padding: clamp(6px, 1vw, 10px) clamp(5px, 0.9vw, 9px);
  }

  .catalog-app .sheets .product-info h3 {
    font-size: clamp(11px, 2.15vw, 18px);
  }

  .catalog-app .sheets .product-gallery {
    gap: 3px;
  }

  .catalog-app .sheets .product-features {
    gap: 3px 5px;
    margin-top: 3px;
  }

  .catalog-app .sheets .social-links {
    gap: 3px 7px;
    padding-top: 3px;
  }

  .catalog-app .sheets .price-box {
    padding: 1% 5% 3%;
  }

  .catalog-app .sheets .price-brand-logo {
    height: clamp(32px, 5.5vw, 54px);
  }

  .catalog-app .sheets .price-box > strong {
    font-size: clamp(22px, 4.7vw, 39px);
  }

  .catalog-app .sheets .more-pill {
    font-size: clamp(7px, 1.35vw, 12px);
  }
}

@media screen and (max-width: 720px) {
  .catalog-app .sheets .product-sheet {
    contain-intrinsic-size: auto 141.43vw;
  }

  .catalog-app .sheets .product-info,
  .catalog-app .sheets .product-meta,
  .catalog-app .sheets .product-gallery,
  .catalog-app .sheets .product-features,
  .catalog-app .sheets .social-links,
  .catalog-app .sheets .price-box {
    min-width: 0;
    max-width: 100%;
  }

  .catalog-app .sheets .product-label {
    max-width: 94%;
    padding: 0.35em 0.85em;
    font-size: clamp(5px, 1.2vw, 9px);
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-app .sheets .product-image-wrap {
    padding: 7% 4% 2%;
  }

  .catalog-app .sheets .product-info {
    padding: clamp(3px, 0.75vw, 6px) clamp(3px, 0.7vw, 5px);
  }

  .catalog-app .sheets .product-info h3 {
    font-size: clamp(7px, 2.35vw, 15px);
    line-height: 0.98;
  }

  .catalog-app .sheets .product-meta {
    gap: 1px 2px;
    margin-top: 1.4%;
  }

  .catalog-app .sheets .tech-line {
    padding: 0.12em 0.5em;
    font-size: clamp(4.5px, 1.18vw, 8px);
    line-height: 1.08;
  }

  .catalog-app .sheets .code {
    padding: 0.16em 0.48em;
    font-size: clamp(5px, 1.32vw, 9px);
    line-height: 1.08;
  }

  .catalog-app .sheets .product-gallery {
    gap: 1px;
    margin-top: 1.4%;
    overflow: hidden;
  }

  .catalog-app .sheets .gallery-thumb {
    height: clamp(18px, 5.8vw, 34px);
    padding: 1px;
    border-radius: clamp(2px, 0.8vw, 5px);
  }

  .catalog-app .sheets .gallery-more {
    padding: 1px;
    border-radius: clamp(2px, 0.8vw, 5px);
    font-size: clamp(4.5px, 1.08vw, 7px);
    line-height: 1.05;
  }

  .catalog-app .sheets .product-brand-text {
    margin-top: 1%;
    padding: 0 2% 2%;
    font-size: clamp(10px, 3vw, 21px);
    line-height: 0.94;
  }

  .catalog-app .sheets .product-promo-text {
    width: 94%;
    min-height: 0;
    max-height: clamp(22px, 8vw, 38px);
    margin: 2% auto 1%;
    padding: 1.5% 3%;
    border-radius: clamp(3px, 0.8vw, 6px);
    font-size: clamp(4.7px, 1.25vw, 8px);
    line-height: 1.06;
  }

  .catalog-app .sheets .product-features {
    gap: 1px 2px;
    margin-top: 2px;
  }

  .catalog-app .sheets .product-features span {
    padding: 1px 2px;
    border-radius: 3px;
    font-size: clamp(3.8px, 1vw, 6.8px);
    line-height: 1.05;
  }

  .catalog-app .sheets .social-links {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 1px 3px;
    margin-top: auto;
    padding-top: 2px;
    overflow: hidden;
  }

  .catalog-app .sheets .social-links a {
    min-width: 0;
    border-bottom-width: 1px;
    font-size: clamp(3.8px, 0.98vw, 6.8px);
    line-height: 1.05;
    overflow: hidden;
    overflow-wrap: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .catalog-app .sheets .price-box {
    padding: 1% 4% 3%;
  }

  .catalog-app .sheets .price-brand-logo {
    width: 94%;
    height: clamp(18px, 5.3vw, 36px);
  }

  .catalog-app .sheets .price-box > small {
    padding: 0.12em 0.5em;
    font-size: clamp(4px, 1.05vw, 7px);
    line-height: 1.05;
  }

  .catalog-app .sheets .price-box > strong {
    font-size: clamp(14px, 4.75vw, 28px);
    line-height: 0.96;
    white-space: nowrap;
    overflow-wrap: normal;
  }

  .catalog-app .sheets .price-box .consult {
    margin: 0.25em 0;
    font-size: clamp(8px, 2.4vw, 15px);
  }

  .catalog-app .sheets .price-box p {
    margin: 1% 0;
    padding: 0.25em 0.35em;
    font-size: clamp(4px, 1.02vw, 7px);
    line-height: 1.06;
  }

  .catalog-app .sheets .more-pill {
    gap: 0.2em;
    padding: 0.12em 0.32em 0.12em 0.12em;
    font-size: clamp(4.8px, 1.35vw, 8.5px);
    line-height: 1.05;
  }

  .catalog-app .sheets .video-pill-play {
    width: 1.85em;
    height: 1.85em;
  }

  .catalog-app .sheets .video-pill-arrows {
    width: 1.12em;
    height: 1.12em;
  }

  .catalog-app .sheets .sheet-footer {
    padding: 0 2.4%;
    font-size: clamp(4px, 1.02vw, 7px);
  }

  .catalog-app .sheets .sheet-footer > div {
    padding: 0 3%;
  }

  .catalog-app .sheets .footer-contact {
    gap: clamp(3px, 0.8vw, 7px);
  }

  .catalog-app .sheets .footer-contact-icon {
    width: clamp(13px, 3.5vw, 23px);
    height: clamp(13px, 3.5vw, 23px);
  }

  .catalog-app .sheets .footer-phone-grid {
    gap: 1px clamp(3px, 1vw, 7px);
  }

  .media-modal-header h2,
  .media-modal-caption,
  .media-modal-video p {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media screen and (max-width: 390px) {
  .catalog-app .sheets .product-list {
    gap: 0.8%;
    padding: 1% 0;
  }

  .catalog-app .sheets .product-info {
    padding: 3px 2px;
  }

  .catalog-app .sheets .product-info h3 {
    font-size: clamp(6.5px, 2.25vw, 9px);
  }

  .catalog-app .sheets .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 20%);
  }

  .catalog-app .sheets .price-box {
    padding-right: 3%;
    padding-left: 3%;
  }

  .catalog-app .sheets .price-brand-logo {
    height: clamp(17px, 5vw, 21px);
  }

  .catalog-app .sheets .price-box > strong {
    font-size: clamp(13px, 4.55vw, 18px);
  }

  .catalog-app .sheets .price-box p {
    font-size: clamp(3.7px, 1vw, 4.2px);
  }

  .catalog-app .sheets .more-pill {
    font-size: clamp(4.4px, 1.3vw, 5.2px);
  }
}

/* Copia temporal fuera de pantalla usada para descargar el catálogo completo.
   Se fuerza una hoja A4 estable, independiente del filtro y del ancho del celular. */
.pdf-export-stage {
  position: fixed;
  z-index: -2147483647;
  top: 0;
  left: -10000px;
  width: 794px;
  height: auto;
  overflow: visible;
  background: #fff;
  pointer-events: none;
}

.pdf-export-sheets {
  display: block;
  width: 794px;
  margin: 0;
  padding: 0;
}

.pdf-export-stage .sheet {
  width: 794px !important;
  max-width: none !important;
  height: 1123px !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  content-visibility: visible !important;
  contain: none !important;
}

.pdf-export-stage .product-sheet {
  display: grid !important;
  grid-template-rows: 11% minmax(0, 1fr) 7% !important;
  padding: 1.7% 0 0 !important;
}

.pdf-export-stage .sheet-header,
.pdf-export-stage .product-list {
  margin-right: 2.3% !important;
  margin-left: 2.3% !important;
}

.pdf-export-stage .product-list {
  display: grid !important;
  grid-template-rows: repeat(4, minmax(0, 1fr)) !important;
  gap: 1.1% !important;
  padding: 1.2% 0 !important;
}

.pdf-export-stage .product-card {
  display: grid !important;
  grid-template-columns: minmax(0, 28%) minmax(0, 46%) minmax(0, 26%) !important;
  min-height: 0 !important;
}

.pdf-export-stage .price-brand-logo {
  width: 94% !important;
  height: 48px !important;
  margin: 0 auto !important;
}

.pdf-export-stage .price-box {
  justify-content: flex-start !important;
  padding: 1% 6% 4% !important;
}

.pdf-export-stage .price-box > strong {
  font-size: 32px !important;
}

.pdf-export-stage .cover-sheet {
  display: block !important;
}

.pdf-export-stage .empty-catalog-sheet {
  display: grid !important;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body {
    background: #fff;
  }

  .catalog-app {
    padding: 0;
  }

  .catalog-toolbar,
  .catalog-actions,
  .catalog-no-results,
  .catalog-help,
  .media-modal {
    display: none !important;
  }

  .sheets {
    display: block;
    gap: 0;
  }

  .sheet {
    width: 210mm;
    height: 297mm;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    break-inside: avoid;
    break-after: page;
    page-break-after: always;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Impresión A4 exacta incluso cuando las reglas móviles estén activas. */
  .product-sheet {
    display: grid;
    grid-template-rows: 11% minmax(0, 1fr) 7%;
    min-height: 0;
    padding: 1.7% 0 0;
  }

  .sheet-header,
  .product-list {
    margin-right: 2.3%;
    margin-left: 2.3%;
  }

  .sheet-header {
    min-height: 0;
  }

  .product-list {
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 1.1%;
    flex: initial;
    padding: 1.2% 0;
  }

  .product-card {
    min-height: 0;
    grid-template-columns: minmax(0, 28%) minmax(0, 46%) minmax(0, 26%);
  }

  /* El PDF siempre contiene el catálogo completo, incluso con un filtro activo. */
  .cover-sheet[hidden],
  .empty-catalog-sheet[hidden] {
    display: block !important;
  }

  .product-sheet[hidden] {
    display: grid !important;
  }

  .product-card[hidden] {
    display: grid !important;
  }

  .product-info {
    height: 100%;
    min-height: 0;
  }

  .product-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-more {
    display: none;
  }

  .sheet-footer {
    margin-top: 0;
    min-height: 0;
  }

  .sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/*
 * Vista móvil fiel a escritorio.
 * La hoja conserva un lienzo lógico A4 de 794 px y se reduce completa con
 * `zoom`. Los controles y modales continúan usando las reglas móviles
 * anteriores, pero el contenido del catálogo ya no cambia de proporciones.
 */
@media screen and (max-width: 720px) {
  .catalog-app .sheets {
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .catalog-app .sheets .sheet {
    width: 794px;
    min-width: 794px;
    max-width: none;
    aspect-ratio: 210 / 297;
    border-radius: 2px;
    box-shadow: none;
    zoom: var(--catalog-mobile-scale, .49);
  }

  .catalog-app .sheets .product-sheet {
    display: grid;
    grid-template-rows: 11% minmax(0, 1fr) 7%;
    min-height: 0;
    aspect-ratio: 210 / 297;
    padding: 1.7% 0 0;
    contain-intrinsic-size: auto 1123px;
  }

  .catalog-app .sheets .sheet-header,
  .catalog-app .sheets .product-list {
    margin-right: 2.3%;
    margin-left: 2.3%;
  }

  .catalog-app .sheets .sheet-header {
    min-height: 0;
    padding: 0 2% 1%;
  }

  .catalog-app .sheets .sheet-header-logo {
    width: auto;
    height: 80px;
    max-width: 70%;
  }

  .catalog-app .sheets .product-list {
    display: grid;
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 1.1%;
    min-height: 0;
    height: auto;
    padding: 1.2% 0;
  }

  .catalog-app .sheets .product-card {
    grid-template-columns: minmax(0, 29%) minmax(0, 48%) minmax(0, 23%);
    grid-template-rows: none;
    grid-template-areas: none;
    min-height: 0;
    border-radius: 12px;
  }

  .catalog-app .sheets .product-label {
    max-width: none;
    padding: .45em 1.1em;
    font-size: 13px;
    line-height: normal;
  }

  .catalog-app .sheets .product-image-wrap {
    grid-area: auto;
    padding: 8% 5% 3%;
  }

  .catalog-app .sheets .product-info {
    grid-area: auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 11px 10px;
  }

  .catalog-app .sheets .product-info h3 {
    font-size: 23px;
    line-height: .98;
  }

  .catalog-app .sheets .product-meta {
    gap: 3px;
    margin-top: 2%;
  }

  .catalog-app .sheets .tech-line {
    padding: .2em .8em;
    font-size: 12px;
    line-height: normal;
  }

  .catalog-app .sheets .code {
    padding: .25em .7em;
    font-size: 13px;
    line-height: normal;
  }

  .catalog-app .sheets .product-gallery {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 4px;
    margin-top: 2%;
    overflow: hidden;
  }

  .catalog-app .sheets .gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 52px;
    padding: 0;
    overflow: hidden;
    border-radius: 6px;
  }

  .catalog-app .sheets .gallery-thumb img {
    transform: scale(1.14);
    transform-origin: center;
  }

  .catalog-app .sheets .gallery-more {
    flex: 0 0 54px;
    width: 54px;
    min-height: 0;
    height: 52px;
    padding: 2px;
    border-radius: 6px;
    font-size: 9px;
    line-height: normal;
  }

  .catalog-app .sheets .product-brand-text {
    margin-top: 2%;
    padding: 0 3% 4%;
    font-size: 32px;
    line-height: .95;
  }

  .catalog-app .sheets .product-promo-text {
    width: 96%;
    min-height: 46px;
    max-height: 70px;
    margin: 5% auto 3%;
    padding: 3% 4%;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.12;
  }

  .catalog-app .sheets .product-features {
    gap: 4px 7px;
    margin-top: 5px;
  }

  .catalog-app .sheets .product-features span {
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1.15;
  }

  .catalog-app .sheets .social-links {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 10px;
    margin-top: auto;
    padding-top: 5px;
    overflow: visible;
  }

  .catalog-app .sheets .social-links a {
    border-bottom-width: 2px;
    font-size: 10px;
    line-height: 1.2;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .catalog-app .sheets .price-box {
    grid-area: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    overflow: hidden;
    padding: 1% 4% 4%;
    border-top: 0;
    border-left: 1px solid #53c742;
  }

  .catalog-app .sheets .price-brand-logo {
    width: 94%;
    height: 46px;
    margin: 0 auto 1%;
  }

  .catalog-app .sheets .price-box > small {
    padding: .18em .65em;
    font-size: 9px;
    line-height: normal;
  }

  .catalog-app .sheets .price-box > strong {
    align-self: center;
    font-size: 32px;
    line-height: 1;
  }

  .catalog-app .sheets .price-box .consult {
    align-self: auto;
    margin: .5em 0;
    font-size: 20px;
  }

  .catalog-app .sheets .price-box p {
    display: block;
    width: 100%;
    margin: 2% 0;
    padding: .45em .7em;
    font-size: 9px;
    line-height: normal;
  }

  .catalog-app .sheets .more-pill {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 0;
    width: 100%;
    margin-top: auto;
    padding: .16em .48em .16em .16em;
    font-size: 11px;
    line-height: normal;
  }

  .catalog-app .sheets .video-pill-play {
    width: 2.05em;
    height: 2.05em;
  }

  .catalog-app .sheets .video-pill-arrows {
    width: 1.38em;
    height: 1.38em;
  }

  .catalog-app .sheets .sheet-footer {
    grid-template-columns: 1.25fr 1.25fr .95fr;
    min-height: 0;
    margin-top: 0;
    padding: 0 2.8%;
    font-size: 9px;
  }

  .catalog-app .sheets .sheet-footer > div {
    grid-column: auto;
    height: 56%;
    min-height: 0;
    padding: 0 5%;
    border-right: 1px solid rgba(255, 255, 255, .4);
    border-bottom: 0;
  }

  .catalog-app .sheets .footer-contact-icon {
    width: 30px;
    height: 30px;
  }

  .catalog-app .sheets .footer-phone-grid {
    gap: 2px 12px;
    font-size: inherit;
  }

  .catalog-app .sheets .motoluz-word {
    font-size: 54px;
  }

  .catalog-app .sheets .cover-copy h1 {
    font-size: 70px;
  }

  .catalog-app .sheets .cover-copy h2 {
    font-size: 24px;
  }

  .catalog-app .sheets .cover-copy p {
    font-size: 24px;
  }

  .catalog-app .sheets .cover-copy-secondary {
    font-size: 16px !important;
  }

  .catalog-app .sheets .cover-footer {
    font-size: 16px;
  }
}

@media screen and (max-width: 360px) {
  .catalog-app .sheets .product-info h3 {
    font-size: 21px;
  }

  .catalog-app .sheets .product-promo-text {
    font-size: 12px;
  }

  .catalog-app .sheets .price-box > strong {
    font-size: 30px;
  }
}

/* Distribución global creada en Diseño de productos. Se ubica al final para
   conservar exactamente la misma composición en PC, móvil, vista previa y PDF. */
.product-card.has-layout-design {
  display: block !important;
  container-type: inline-size;
  isolation: isolate;
}

.product-card.has-layout-design [data-product-layout] {
  position: absolute !important;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  margin: 0;
  overflow: hidden;
  transform-origin: center;
  line-height: 1.05;
}

.product-card.has-layout-design > .product-info,
.product-card.has-layout-design > .price-box,
.product-card.has-layout-design .product-meta {
  display: contents !important;
}

.product-card.has-layout-design .product-layout-price-panel,
.product-card.has-layout-design .product-layout-decoration {
  display: block;
  pointer-events: none;
}

.product-card.has-layout-design .product-layout-decoration img,
.product-card.has-layout-design .price-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--layout-object-fit, contain);
}

.product-card.has-layout-design .product-image-wrap {
  display: grid;
  place-items: center;
}

.product-card.has-layout-design .product-image-wrap > .catalog-lazy-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: var(--layout-object-fit, contain);
}

.product-card.has-layout-design .product-placeholder {
  width: 90%;
  max-height: 100%;
}

.product-card.has-layout-design .product-label {
  display: flex;
  align-items: center;
  justify-content: var(--layout-justify, center);
  clip-path: none;
  overflow-wrap: anywhere;
}

.product-card.has-layout-design .product-info h3 {
  display: flex;
  align-items: flex-start;
  line-height: .98;
  overflow-wrap: anywhere;
}

.product-card.has-layout-design .tech-line,
.product-card.has-layout-design .code,
.product-card.has-layout-design .price-box > small,
.product-card.has-layout-design .price-box > strong,
.product-card.has-layout-design .price-box > p,
.product-card.has-layout-design .more-pill {
  display: flex;
  align-items: center;
  justify-content: var(--layout-justify, center);
  align-self: auto;
  overflow-wrap: anywhere;
}

.product-card.has-layout-design .product-detail-slot {
  display: block;
}

.product-card:not(.has-layout-design) .product-detail-slot {
  display: contents;
}

.product-card.has-layout-design .product-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 22%);
  align-items: stretch;
  gap: 2%;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

.product-card.has-layout-design .gallery-thumb,
.product-card.has-layout-design .gallery-more {
  width: auto;
  height: 100%;
  min-height: 0;
  padding: 2px;
}

.product-card.has-layout-design .gallery-thumb img {
  width: 100%;
  height: 100%;
  transform: none;
  object-fit: contain;
}

.product-card.has-layout-design .product-brand-text,
.product-card.has-layout-design .product-promo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  line-height: 1;
}

.product-card.has-layout-design .product-features,
.product-card.has-layout-design .social-links {
  display: flex;
  align-items: center;
  justify-content: var(--layout-justify, flex-start);
  flex-wrap: wrap;
  gap: .35cqw;
  padding: 0;
}

.product-card.has-layout-design .product-features span,
.product-card.has-layout-design .social-links a {
  font-size: inherit;
  line-height: 1.05;
}

.product-card.has-layout-design .price-box > strong {
  color: inherit;
  line-height: 1;
  letter-spacing: 0;
}

.product-card.has-layout-design .price-box > strong sup {
  font-size: .38em;
}

.product-card.has-layout-design .price-box > p {
  width: auto;
  line-height: 1.05;
}

.product-card.has-layout-design .more-pill {
  grid-template-columns: none;
  gap: .45cqw;
  min-height: 0;
  width: auto;
  box-shadow: none;
}

.product-card.has-layout-design .video-pill-play,
.product-card.has-layout-design .video-pill-arrows {
  flex: 0 0 auto;
  font-size: .8em;
}

.product-card.has-layout-design .product-design-stack--back { z-index: 0; }
.product-card.has-layout-design .product-design-stack--front { z-index: 60; }

/* html2canvas no interpreta de forma fiable display:contents. Durante la
   exportación se reconstruyen esos contenedores como capas completas y
   transparentes para que todos los textos con posición absoluta aparezcan
   en el PDF sin cambiar su ubicación dentro de la tarjeta. */
.pdf-export-stage .product-card.has-layout-design > .product-info,
.pdf-export-stage .product-card.has-layout-design > .price-box,
.pdf-export-stage .product-card.has-layout-design .product-meta {
  position: absolute !important;
  inset: 0 !important;
  z-index: auto !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  transform: none !important;
}
