/* Paleta general inspirada en la referencia azul/rojo */
.client-body {
  --color-blue-electric: #1e6fe8;
  --color-blue-intense: #0a2a5e;
  --color-blue-medium: #2f8bff;
  --color-white: #ffffff;
  --color-red-vibrant: #e53935;
  --color-red-dark: #b71c1c;
  --color-blue-deep: #061833;
  --color-sky-soft: #6db7ff;
  --color-gray-light: #e5e7eb;
  --color-gray-medium: #8d99a6;
  --color-graphite: #0d1117;
  min-height: 100vh;
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(6, 24, 51, 0.88) 0%, rgba(13, 17, 23, 0.94) 100%),
    url("../img/header-fondo-azul-rojo.png") center top / cover fixed no-repeat;
}

/* Ancho principal de las vistas publicas */
.catalog-page,
.detail-page {
  width: min(100%, 1680px);
  margin: 0 auto;
}

/* Titulo grande del detalle */
.detail-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.95;
  max-width: 12ch;
  color: var(--color-white);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* Header principal con fondo grafico */
.showcase-header {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(420px, 720px) minmax(220px, 1fr);
  align-items: end;
  gap: 1rem;
  min-height: 640px;
  padding: 2rem 2rem 1.4rem;
  margin-bottom: 1.75rem;
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(6, 24, 51, 0.52) 0%, rgba(13, 17, 23, 0.28) 100%),
    url("../img/header-fondo-azul-rojo.png") center center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Overlay para legibilidad del contenido del banner */
.showcase-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 24, 51, 0.12) 0%, rgba(6, 24, 51, 0.1) 45%, rgba(13, 17, 23, 0.3) 100%),
    linear-gradient(90deg, rgba(6, 24, 51, 0.38) 0%, rgba(6, 24, 51, 0.08) 20%, rgba(6, 24, 51, 0.08) 80%, rgba(6, 24, 51, 0.38) 100%);
  pointer-events: none;
}

/* Capa superior del contenido del header */
.showcase-center,
.showcase-figure {
  position: relative;
  z-index: 1;
}

/* Bloque central del banner */
.showcase-center {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.8rem 0 1rem;
}

/* Texto pequeno superior */
.showcase-kicker {
  margin: 0;
  color: var(--color-white);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Subtitulo del header */
.showcase-mini {
  margin: 0;
  color: var(--color-blue-medium);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Titulo principal */
.showcase-title {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-transform: uppercase;
  line-height: 0.9;
  font-family: "Anton", "Impact", sans-serif;
  letter-spacing: 0.03em;
}

.title-blue,
.title-red,
.title-ampersand {
  display: block;
}

.title-blue {
  font-size: clamp(4.8rem, 9vw, 9rem);
  color: var(--color-blue-electric);
  text-shadow: 0 12px 28px rgba(10, 42, 94, 0.4);
}

.title-ampersand {
  font-size: 0;
  margin: 0;
  height: 0;
  overflow: hidden;
}

.title-red {
  font-size: clamp(4.8rem, 9vw, 9rem);
  color: var(--color-white);
  text-shadow: 0 12px 26px rgba(0, 0, 0, 0.32);
}

/* Boton principal de contacto */
.showcase-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 64px;
  padding: 0.95rem 2rem;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--color-red-vibrant), var(--color-red-dark));
  color: var(--color-white);
  font-family: "Anton", "Impact", sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(183, 28, 28, 0.28);
}

.showcase-button:hover {
  background: linear-gradient(135deg, #ff4b46, var(--color-red-vibrant));
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Redes sociales del header */
.showcase-socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.4rem;
  padding-top: 0.4rem;
}

.showcase-socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-white);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.42);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.showcase-socials a:hover {
  transform: translateY(-4px) scale(1.03);
  filter: drop-shadow(0 10px 18px rgba(47, 139, 255, 0.26));
}

.showcase-socials i {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.showcase-socials a:hover i {
  transform: rotate(-6deg) scale(1.06);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
}

.showcase-socials a:nth-child(1) i {
  background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #515bd4);
}

.showcase-socials a:nth-child(2) i {
  background: #111;
}

.showcase-socials a:nth-child(3) i {
  background: #1877f2;
}

/* Contenedores laterales de personajes */
.showcase-figure {
  display: flex;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.showcase-figure img {
  width: 100%;
  max-width: 430px;
  height: 630px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.4));
}

/* Bloque de categorias visuales */
.catalog-toolbar {
  margin-bottom: 1.5rem;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.92), rgba(6, 24, 51, 0.96));
  border: 1px solid rgba(109, 183, 255, 0.18);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 139, 255, 0.38);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

.category-card.active {
  background: linear-gradient(135deg, var(--color-blue-electric), var(--color-blue-medium));
  border-color: rgba(255, 255, 255, 0.38);
  box-shadow: 0 18px 36px rgba(30, 111, 232, 0.28);
}

.category-icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  font-size: 1.1rem;
}

.category-card.active .category-icon {
  background: rgba(255, 255, 255, 0.18);
  color: var(--color-white);
}

.category-copy {
  display: grid;
  gap: 0.2rem;
}

.category-copy strong {
  color: var(--color-white);
  font-size: 1rem;
  text-transform: uppercase;
}

.category-card.active .category-copy strong {
  color: var(--color-white);
}

.category-copy small {
  color: rgba(229, 231, 235, 0.82);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.category-card.active .category-copy small {
  color: rgba(255, 255, 255, 0.88);
}

/* Texto secundario general */
.design-content p,
.detail-content p {
  color: rgba(229, 231, 235, 0.88);
}

/* Grilla del catalogo */
.catalog-grid-public {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
  width: 100%;
}

/* Card del producto */
.design-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 520px 1fr;
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.96), rgba(6, 24, 51, 0.98));
  border-radius: 26px;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(109, 183, 255, 0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

.design-card:hover {
  transform: translateY(-10px) scale(1.015);
  border-color: rgba(47, 139, 255, 0.42);
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.42), 0 0 24px rgba(30, 111, 232, 0.18);
}

/* Contenedor de imagen */
.design-image-wrap {
  display: grid;
  place-items: center;
  min-height: 520px;
  height: 100%;
  padding: 0.9rem;
  background:
    linear-gradient(180deg, rgba(47, 139, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #071222;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.design-card:hover .design-image-wrap {
  transform: scale(1.02);
  filter: brightness(1.08);
}

/* Imagenes de card y detalle */
.design-card img,
.detail-card img {
  width: 100%;
  height: 100%;
  max-height: 680px;
  object-fit: contain;
  object-position: center;
  background: #0c1422;
  border-radius: 18px;
  transition: transform 0.4s ease;
}

.design-card:hover img {
  transform: scale(1.03);
}

/* Padding interno card/detalle */
.design-content,
.detail-content {
  padding: 1.2rem;
}

/* Parte inferior de card */
.design-content {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.3rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, rgba(6, 24, 51, 0.98) 0%, rgba(10, 42, 94, 0.98) 62%, rgba(30, 111, 232, 0.94) 100%);
  color: #fff;
  min-height: 230px;
  transition: background 0.35s ease;
}

.design-card:hover .design-content {
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.98) 0%, rgba(30, 111, 232, 0.98) 58%, rgba(47, 139, 255, 0.96) 100%);
}

/* Categoria pequena sobre la card */
.chip {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--color-blue-medium);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

/* Titulo del producto */
.design-content h2 {
  margin: 0;
  color: var(--color-white);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.1;
}

/* Descripcion del producto */
.design-content p {
  margin: 0;
  color: rgba(229, 231, 235, 0.92);
}

/* Boton detalle */
.design-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 46px;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-white), var(--color-gray-light));
  color: var(--color-blue-deep);
  font-weight: 800;
  margin-top: auto;
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.14);
}

.design-link:hover {
  background: linear-gradient(135deg, var(--color-white), var(--color-gray-light));
  color: var(--color-blue-deep);
}

.design-card:hover .chip {
  color: var(--color-gray-light);
}

.design-card:hover .design-content h2 {
  color: var(--color-white);
}

.design-card:hover .design-content p {
  color: rgba(255, 255, 255, 0.96);
}

.design-card:hover .design-link {
  background: linear-gradient(135deg, var(--color-red-vibrant), var(--color-red-dark));
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(183, 28, 28, 0.28);
}

/* Estado vacio */
.empty-card {
  padding: 2rem;
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.96), rgba(6, 24, 51, 0.98));
  color: var(--color-white);
  border: 1px solid rgba(109, 183, 255, 0.16);
  border-radius: 24px;
}

/* Contenedor general del detalle */
.detail-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  background: linear-gradient(180deg, rgba(10, 42, 94, 0.96), rgba(6, 24, 51, 0.98));
  border: 1px solid rgba(109, 183, 255, 0.14);
  border-radius: 28px;
}

/* Texto pequeno "Detalle" */
.detail-kicker-label {
  margin: 0 0 0.6rem;
  color: var(--color-blue-medium);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Zoom de detalle */
.detail-zoom-shell {
  position: relative;
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.zoom-trigger {
  position: absolute;
  top: 1.8rem;
  right: 1.8rem;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-red-vibrant), var(--color-red-dark));
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(183, 28, 28, 0.28);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.zoom-icon {
  display: block;
  font-size: 2rem;
  line-height: 1;
  transform: translateY(-1px);
}

.zoom-stage {
  --zoom-x: 50%;
  --zoom-y: 50%;
  --zoom-scale: 3.6;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(47, 139, 255, 0.08), rgba(255, 255, 255, 0.02)),
    #071222;
  cursor: zoom-in;
}

.zoom-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 760px;
  object-fit: contain;
  border-radius: 22px;
  transition: transform 0.25s ease;
}

.zoom-stage.is-zoomed {
  cursor: zoom-out;
  box-shadow: inset 0 0 0 1px rgba(109, 183, 255, 0.24);
}

.zoom-lens {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.74);
  background-color: #071222;
  background-image: var(--zoom-image);
  background-repeat: no-repeat;
  background-size: calc(var(--zoom-scale) * 100%);
  background-position: var(--zoom-x) var(--zoom-y);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.zoom-stage.is-zoomed .zoom-lens {
  opacity: 1;
}

.zoom-hint {
  margin: 0;
  text-align: center;
  color: rgba(229, 231, 235, 0.72);
  font-size: 0.92rem;
}

/* Acciones del detalle */
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.whatsapp-button {
  background: linear-gradient(135deg, var(--color-red-vibrant), var(--color-red-dark));
  color: var(--color-white);
}

.whatsapp-button:hover {
  background: linear-gradient(135deg, #ff4a46, var(--color-red-vibrant));
}

/* Responsive: 3 columnas */
@media (max-width: 1400px) {
  .catalog-grid-public {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Responsive: 2 columnas */
@media (max-width: 1100px) {
  .catalog-grid-public {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive principal */
@media (max-width: 880px) {
  .showcase-header,
  .detail-card {
    grid-template-columns: 1fr;
    display: grid;
  }

  .showcase-header {
    min-height: auto;
    gap: 0.75rem;
    padding: 1.2rem 0.9rem 1rem;
  }

  .showcase-center {
    order: 2;
    padding: 0.4rem 0 0.7rem;
    gap: 0.95rem;
  }

  .showcase-figure {
    height: auto;
  }

  .showcase-figure-left {
    order: 1;
  }

  .showcase-figure-right {
    order: 3;
  }

  .showcase-kicker {
    font-size: 0.86rem;
  }

  .showcase-mini {
    max-width: 25ch;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  .showcase-figure img {
    width: 100%;
    max-width: 270px;
    height: 335px;
    object-fit: contain;
  }

  .title-blue,
  .title-red {
    font-size: clamp(3.6rem, 13vw, 5rem);
    line-height: 0.95;
  }

  .showcase-button {
    min-width: 220px;
    min-height: 52px;
    font-size: 1.12rem;
    letter-spacing: 0.1em;
  }

  .design-image-wrap {
    min-height: 420px;
  }

  .detail-zoom-shell {
    padding: 0.9rem;
  }

  .zoom-trigger {
    top: 1.45rem;
    right: 1.45rem;
    width: 46px;
    height: 46px;
  }
}

/* Responsive movil */
@media (max-width: 700px) {
  .client-body {
    padding: 0.75rem;
  }

  .showcase-socials {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
  }

  .showcase-socials a {
    justify-content: center;
    min-width: 180px;
  }

  .showcase-socials i {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .catalog-grid-public,
  .category-strip {
    grid-template-columns: 1fr;
  }

  .design-card {
    max-width: 460px;
    margin: 0 auto;
    grid-template-rows: 420px 1fr;
  }
}

/* Responsive movil pequeno */
@media (max-width: 480px) {
  .showcase-header {
    border-radius: 24px;
    padding: 1.15rem 0.85rem 1rem;
  }

  .showcase-kicker {
    font-size: 0.74rem;
  }

  .showcase-mini {
    font-size: 0.82rem;
  }

  .showcase-center {
    padding: 0.55rem 0 0.8rem;
    gap: 1rem;
  }

  .showcase-title {
    padding: 0 0.2rem;
  }

  .showcase-figure img {
    width: 100%;
    max-width: 235px;
    height: 290px;
    object-fit: contain;
  }

  .title-blue,
  .title-red {
    font-size: clamp(3.15rem, 12vw, 4rem);
  }

  .showcase-socials a {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .zoom-lens {
    width: 128px;
    height: 128px;
  }

  .zoom-hint {
    font-size: 0.82rem;
  }
}
