/* HP ZGX Nano — shell sobre clone HP Z Theme v2 */
:root {
  --hp-zgx-menu-gap: 0px;
}

/* Fondo blanco por defecto; las secciones oscuras las define el propio HTML de HP */
html:has(body.hp-clone),
body.hp-clone {
  background: #fff;
  color: #1a1a1a;
}

body.hp-clone {
  padding-top: calc(var(--site-header-height) + var(--hp-zgx-menu-gap));
  margin: 0;
  background: linear-gradient(
    to bottom,
    #000 calc(var(--site-header-height) + var(--hp-zgx-menu-gap)),
    #fff calc(var(--site-header-height) + var(--hp-zgx-menu-gap))
  );
}

@media (max-width: 719.98px) {
  :root {
    --hp-zgx-menu-gap: 0px;
  }
}

.hp-clone-main {
  min-height: 60vh;
  overflow-x: hidden;
  background: #fff;
}

body.hp-clone #body,
body.hp-clone .vendor-clone-main #body {
  background: #fff !important;
  color: #1a1a1a;
}

body.hp-clone .vendor-clone-main .root.responsivegrid,
body.hp-clone .vendor-clone-main .aem-Grid {
  background: #fff;
}

/* Anular reglas genéricas de vendor-clone-shell que fuerzan negro */
body.hp-clone.vendor-clone .vendor-clone-main > section:first-child,
body.hp-clone.vendor-clone .vendor-clone-main > div:first-child > section:first-child,
body.hp-clone .vendor-clone-main > section:first-child,
body.hp-clone .vendor-clone-main > div:first-child > section:first-child {
  background-color: transparent !important;
}

/* Reservas por si queda algún fragmento HP embebido */
.hp-clone .cmp-experiencefragment--zworkstations-nav,
.hp-clone .cmp-experiencefragment--contact-sales-support,
.hp-clone digitnav-footer {
  display: none !important;
}

body.hp-clone .site-footer {
  margin-top: 0;
}

/* Vídeo hero local (reemplaza botón Reproducir vídeo) */
.hp-zgx-hero-video {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.hp-zgx-hero-video__player {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

@media (max-width: 719.98px) {
  .hp-zgx-hero-video {
    max-width: none;
    padding: 0 16px;
  }
}

/* hp-image / hp-icon — fallback cuando los web components HP no hidratan */
.hp-clone hp-image[data-src]:not([loaded]) {
  display: block;
  min-height: 120px;
  background-color: #f5f5f5;
}

.hp-clone hp-image[loaded] {
  display: block;
}

.hp-clone .c-image-container hp-image[mode="fit"],
.hp-clone .c-image-link hp-image[mode="fit"] {
  width: 100%;
}

.hp-clone .c-image-link hp-image[mode="fit"] .hp-zgx-fallback-img,
.hp-clone .c-image-container hp-image[mode="fit"] .hp-zgx-fallback-img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hp-clone .card-carousel .c-image-link,
.hp-clone hp-card-carousel .c-image-link {
  display: block;
  overflow: hidden;
}

.hp-clone hp-card-carousel hp-image[loaded] .hp-zgx-fallback-img {
  max-height: 280px;
  margin: 0 auto;
  object-fit: contain;
}

.hp-clone .c-bg-container__media-wrapper hp-image[loaded] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Hero intro — igual que hp.com (titular + copy + NVIDIA + CTAs) */
.hp-clone .hp-zgx-hero-intro,
.hp-clone .hp-zgx-hero-intro .id_grid_container8f3202da069e4851a294841cbae326fc {
  background: #fff !important;
}

.hp-clone .hp-zgx-hero-intro .id_grid_container8f3202da069e4851a294841cbae326fc {
  padding-top: 48px !important;
  padding-bottom: 56px !important;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.hp-clone .hp-zgx-hero-intro > .container > .row {
  align-items: flex-start;
}

.hp-clone .hp-zgx-hero-intro .cell-id_grid_cellca4322de2d3af9aceed8850f09945dfa34402a95b94a11e1e7e2aff06f53c24f {
  padding-right: 24px !important;
}

.hp-clone .hp-zgx-hero-intro .cell-id_grid_cell413d3ba660e997f76f37abfa92f2b4381558d086be6f40d7b485ada126481e5e {
  padding-top: 0 !important;
  padding-left: 24px !important;
}

.hp-clone .hp-zgx-hero-intro .c-title-and-text__title .h1 {
  font-size: clamp(2.75rem, 5.2vw, 4.625rem) !important;
  font-weight: 700 !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em;
  color: #000 !important;
  margin: 0;
}

.hp-clone .hp-zgx-hero-intro .c-title-and-text__title .h6 {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: #000 !important;
  margin: 0;
}

.hp-clone .hp-zgx-hero-intro .c-title-and-text__description,
.hp-clone .hp-zgx-hero-intro .c-title-and-text__description p,
.hp-clone .hp-zgx-hero-intro .c-title-and-text__description i {
  font-style: normal !important;
  font-weight: 400 !important;
  color: #1a1a1a !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.hp-clone .hp-zgx-hero-intro .subtitle-light,
.hp-clone .hp-zgx-hero-intro .subtitle-light p {
  color: #1a1a1a !important;
}

.hp-clone .hp-zgx-hero-intro .image-v2-0b7cb9a8-2 {
  margin-bottom: 0 !important;
}

@media (max-width: 719.98px) {
  .hp-clone .hp-zgx-hero-intro .id_grid_container8f3202da069e4851a294841cbae326fc {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }

  .hp-clone .hp-zgx-hero-intro .cell-id_grid_cellca4322de2d3af9aceed8850f09945dfa34402a95b94a11e1e7e2aff06f53c24f,
  .hp-clone .hp-zgx-hero-intro .cell-id_grid_cell413d3ba660e997f76f37abfa92f2b4381558d086be6f40d7b485ada126481e5e {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .hp-clone .hp-zgx-hero-intro .c-title-and-text__title .h1 {
    font-size: clamp(2.25rem, 10vw, 3rem) !important;
    margin-bottom: 24px;
  }
}

/* Sección «Varios puertos para maximizar tu productividad» — tema oscuro HP (z-gradient-bg) */
body.hp-clone #ports,
body.hp-clone #ports section.c-bg-container.z-gradient-bg {
  background: #000 !important;
  color: #fff;
  --hpi-theme-light: ;
  --hpi-theme-dark: initial;
  --hpi-portViewerColor: #fff;
  --hpi-portViewerTriggerColor: #b0b0b1;
  --hpi-portViewerTriggerHoverColor: #fff;
  --hpi-portViewerItemNumberColor: #ccc;
}

body.hp-clone #ports .c-bg-container__content,
body.hp-clone #ports .c-bg-container__content-holder,
body.hp-clone #ports .portViewer {
  background: transparent !important;
  color: inherit;
}

body.hp-clone #ports .c-bg-container__media-wrapper {
  position: relative;
}

body.hp-clone #ports .c-bg-container__media-wrapper::after {
  background-image: linear-gradient(to bottom, #1f1f23, #000);
  border-radius: 80px;
  content: "";
  height: 100%;
  left: 0;
  max-height: 560px;
  position: absolute;
  top: 40px;
  width: 100%;
  z-index: 0;
}

@media (max-width: 719.98px) {
  body.hp-clone #ports .c-bg-container__media-wrapper::after {
    border-radius: 40px;
    top: 20px;
  }
}

body.hp-clone #ports .c-bg-container__content {
  position: relative;
  z-index: 1;
}

body.hp-clone #ports .c-title-and-text.font-black,
body.hp-clone #ports .c-title-and-text.font-black .c-title-and-text__title,
body.hp-clone #ports .c-title-and-text.font-black .c-title-and-text__title .h1,
body.hp-clone #ports .c-title-and-text.font-black .c-title-and-text__title h2,
body.hp-clone #ports .c-title-and-text.font-black .c-title-and-text__title h2 i {
  color: #fff !important;
}

body.hp-clone #ports .c-title-and-text__title .h1 i {
  font-style: italic;
}

body.hp-clone #ports .c-port-viewer-v3.theme-z {
  color: #fff;
}

body.hp-clone #ports .c-port-viewer-v3 .manual-spots-wrapper {
  display: none;
}

body.hp-clone #ports .c-port-viewer-v3 .c-image-v2__img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: min(100%, 920px);
  width: 100%;
}

body.hp-clone #ports .c-port-viewer-v3 .port-data-wrapper .port-info > ol.active {
  opacity: 1;
  pointer-events: auto;
}

/* «Consulta lo que otros están diciendo» — grid 2 columnas (sin slider HP) */
body.hp-clone .hp-zgx-reviews.hp-grid,
body.hp-clone #id_-1385194498 hp-grid.hp-grid {
  opacity: 1 !important;
}

body.hp-clone #id_-1385194498 {
  min-height: auto !important;
  overflow: visible;
}

body.hp-clone #id_-1385194498 .c-bg-container__content,
body.hp-clone #id_-1385194498 .c-bg-container__content-holder {
  overflow: visible;
}

body.hp-clone .hp-zgx-reviews .container,
body.hp-clone #id_-1385194498 hp-grid .container {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 30px;
  padding-right: 30px;
}

body.hp-clone .hp-zgx-reviews .container > .row,
body.hp-clone #id_-1385194498 hp-grid .container > .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: 0 !important;
  margin-right: 0;
  transform: none !important;
  width: 100% !important;
}

body.hp-clone .hp-zgx-reviews .container > .row > [class*="col-"],
body.hp-clone #id_-1385194498 hp-grid .container > .row > [class*="col-"] {
  flex: 0 0 50%;
  margin-left: 0 !important;
  max-width: 50% !important;
  min-width: 0 !important;
  width: 50%;
}

body.hp-clone .hp-zgx-reviews .c-grid-cell.cell-with-borders::after,
body.hp-clone #id_-1385194498 hp-grid .c-grid-cell.cell-with-borders::after {
  border-color: #000;
  border-style: solid;
  border-width: 0 1px 0 0;
  bottom: 0;
  content: "";
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
}

body.hp-clone .hp-zgx-reviews .c-grid-cell,
body.hp-clone #id_-1385194498 hp-grid .c-grid-cell {
  position: relative;
}

body.hp-clone .hp-zgx-reviews .c-title-and-text-v2 .title .h4,
body.hp-clone .hp-zgx-reviews .c-title-and-text-v2 .title p.h4,
body.hp-clone #id_-1385194498 hp-grid .c-title-and-text-v2 .title .h4,
body.hp-clone #id_-1385194498 hp-grid .c-title-and-text-v2 .title p.h4 {
  color: #000;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
}

body.hp-clone .hp-zgx-reviews .c-title-and-text-v2 .description .font-body,
body.hp-clone .hp-zgx-reviews .c-title-and-text-v2 .description i,
body.hp-clone #id_-1385194498 hp-grid .c-title-and-text-v2 .description .font-body,
body.hp-clone #id_-1385194498 hp-grid .c-title-and-text-v2 .description i {
  color: #000;
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  margin-top: 1.25rem;
}

body.hp-clone .hp-zgx-reviews-heading .c-title-and-text-v2 .title .h1,
body.hp-clone .hp-zgx-reviews-heading .c-title-and-text-v2 .title h2 {
  color: #000;
  text-align: center;
}

body.hp-clone .hp-zgx-reviews .c-slider-arrows,
body.hp-clone .hp-zgx-reviews .slider-pagination,
body.hp-clone #id_-1385194498 .c-slider-arrows,
body.hp-clone #id_-1385194498 .slider-pagination {
  display: none !important;
}

@media (max-width: 719.98px) {
  body.hp-clone .hp-zgx-reviews .container,
  body.hp-clone #id_-1385194498 hp-grid .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  body.hp-clone .hp-zgx-reviews .container > .row > [class*="col-"],
  body.hp-clone #id_-1385194498 hp-grid .container > .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100% !important;
    width: 100%;
  }

  body.hp-clone .hp-zgx-reviews .c-grid-cell.cell-with-borders::after,
  body.hp-clone #id_-1385194498 hp-grid .c-grid-cell.cell-with-borders::after {
    border-width: 1px 0 0 0;
    bottom: auto;
    left: 0;
    right: 0;
    top: 0;
  }
}