/* Portada corporativa: composición aislada. Referencia de escritorio: 1586 × 992. */
.page-template-template-home .barra-cmyk { display: none; }
.page-template-template-home .lic-portada-header [hidden],
.page-template-template-home .lic-portada-hero [hidden] { display: none !important; }

.lic-portada-header {
  position: relative;
  z-index: 50;
  width: 100%;
  height: 110px;
  margin: 0;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  color: #15243d;
  font-family: var(--font-body);
}
.lic-portada-header__inner {
  display: grid;
  grid-template-columns: 210px minmax(680px, 1fr) 170px;
  align-items: center;
  width: 100%;
  height: 110px;
  padding: 0 22px 0 36px;
}
.lic-portada-header__logo { display: flex; align-items: center; justify-content: flex-start; width: 122px; height: 96px; }
.lic-portada-header__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lic-portada-header__nav { display: flex; align-items: center; justify-content: center; gap: 49px; height: 100%; transform: translateX(-22px); }
.lic-portada-header__nav a {
  color: #a32047;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
.lic-portada-header__nav a:hover { color: #a32047; }
.lic-portada-header__actions { display: flex; align-items: center; justify-content: flex-end; gap: 38.5px; color: #a32047; }
.lic-portada-header__icon,
.lic-portada-header__menu {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 34px;
  padding: 0;
  color: #a32047;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.lic-portada-header__icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.lic-portada-header__count {
  position: absolute;
  top: -4px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  background: #a32047;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.lic-portada-header__menu { display: none; }
.lic-portada-header__search {
  position: absolute;
  z-index: 2;
  top: 86px;
  right: 86px;
  width: 330px;
  padding: 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(21, 36, 61, .15);
}
.lic-portada-header__search input[type="search"] { width: 100%; height: 42px; padding: 0 14px; border: 1px solid #ccd0d5; border-radius: 8px; }

.page-template-template-home .lic-portada-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 560px;
  min-height: 560px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  color: #14243d;
  font-family: var(--font-body);
}
.lic-portada-transition {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-image: url("../images/hero-brush-turquoise.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
  pointer-events: none;
}
.lic-portada-hero__grid {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 44% 33% 23%;
  align-items: center;
  width: 100%;
  height: 560px;
  padding: 0 25px 0 100px;
}
.lic-portada-copy { align-self: start; width: 100%; padding: 28px 18px 0 0; }
.lic-portada-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #a32047;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.6px;
}
.lic-portada-badge span { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: #c77a00; color: #fff; font-size: 21px; } /* blanco sobre #c77a00 = 3,38 (antes 2,03) */
.lic-portada-copy h1 {
  margin: 0;
  color: #a32047;
  font-family: var(--font-hero);
  font-size: 56px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -1.3px;
}
.lic-portada-copy h1 span { display: block; white-space: nowrap; }
.lic-portada-copy h1 span:nth-child(1),
.lic-portada-copy h1 span:nth-child(2) { font-size: 56px; line-height: 1.06; }
.lic-portada-copy h1 span:nth-child(2) { color: #a32047; }
/* #C77A00 en vez de #f7a51f: el naranja de marca da 2,03 sobre blanco y aquí
   hace falta 3,0 (texto grande). Con este da 3,38 y sigue siendo naranja. */
.lic-portada-copy h1 span:nth-child(3) { margin-top: 3px; color: #c77a00; font-size: 47px; line-height: 1.1; }
.lic-portada-lead { max-width: 520px; margin: 20px 0 32px; color: #405067; font-size: 21px; line-height: 1.36; }
.lic-portada-actions { display: flex; align-items: center; gap: 18px; }
.lic-portada-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 62px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lic-portada-copy .lic-portada-button--primary { width: 300px; gap: 18px; background: #f7a51f; color: #17243a; box-shadow: 0 9px 20px rgba(247, 165, 31, .28); }
.lic-portada-button--secondary { width: 225px; background: #fff; color: #199ea2; border: 2px solid #199ea2; }
.lic-portada-product { position: relative; align-self: stretch; min-width: 0; min-height: 0; }
.lic-portada-shirt {
  position: absolute;
  z-index: 2;
  display: block;
  top: calc(50% - 8px);
  left: 50%;
  width: auto;
  height: 590px;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 23px 18px rgba(11, 64, 69, .25));
  /* Efecto 3D flotante al pasar el ratón (el JS ajusta el transform; aquí solo la suavidad) */
  transition: transform .3s cubic-bezier(.22, .61, .36, 1), filter .3s ease;
  will-change: transform;
}
@media (prefers-reduced-motion: no-preference) {
  .lic-portada-product:hover .lic-portada-shirt { filter: drop-shadow(0 40px 34px rgba(11, 64, 69, .32)); }
}
.lic-portada-customizer {
  justify-self: end;
  width: 300px;
  height: 494px;
  padding: 15px 16px 13px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(17, 45, 57, .1);
  border-radius: 17px;
  box-shadow: 0 18px 42px rgba(11, 64, 69, .23);
  color: #17243a;
}
.lic-portada-step { margin: 0 0 14px; }
.lic-portada-step__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; line-height: 1.25; }
.lic-portada-step__title b { color: #a32047; }
.lic-portada-swatches { display: flex; gap: 12px; }
.lic-portada-swatch { width: 31px; height: 31px; padding: 0; border: 2px solid #d7dbe0; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.lic-portada-swatch.is-active { outline: 2px solid #a32047; outline-offset: 2px; }
.lic-portada-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-bottom: 9px; }
.lic-portada-tabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 53px;
  padding: 4px 2px;
  background: #f3f5f6;
  border: 1px solid #e0e3e5;
  border-radius: 7px;
  color: #526070;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
}
.lic-portada-tabs button span { margin-bottom: 2px; font-size: 18px; font-weight: 800; }
.lic-portada-tabs button.is-active { background: #fff3f6; border-color: #a32047; color: #a32047; }
.lic-portada-panel-content[data-panel="upload"] {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lic-portada-panel-content[data-panel="upload"][hidden] { display: none !important; }
.lic-portada-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 116px;
  padding: 7px;
  background: #f8fafb;
  border: 1.5px dashed #98a3ad;
  border-radius: 9px;
  color: #17243a;
}
.lic-portada-upload > span { color: #a32047; font-size: 27px; line-height: 1; }
.lic-portada-upload b { margin: 3px 0; font-size: 14px; }
.lic-portada-upload small { color: #75808c; font-size: 10px; }
.lic-portada-design-preview {
  display: grid;
  place-items: center;
  height: 116px;
  overflow: hidden;
  background-color: #fbfcff;
  background-image: linear-gradient(#eef0f6 1px, transparent 1px), linear-gradient(90deg, #eef0f6 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid #e3e7eb;
  border-radius: 9px;
}
.lic-portada-design-preview img { width: 82px; height: 108px; object-fit: contain; }
.lic-portada-designer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  padding: 13px 14px;
  background: #199ea2;
  border-radius: 9px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.lic-portada-designer-btn:hover { background: #14868a; color: #fff; }
.lic-portada-designer-btn span { font-size: 17px; line-height: 1; }
.lic-portada-views { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.lic-portada-views span { display: grid; place-items: center; height: 72px; overflow: hidden; background: #eef1f2; border: 1px solid #d9dde0; border-radius: 8px; }
.lic-portada-views span.is-active { border: 2px solid #a32047; }
.lic-portada-views img { width: 48px; height: 78px; object-fit: contain; }
/* Decoraciones (brochazo dorado + puntitos + garabato) extraídas del original */
.lic-portada-deco-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("../images/hero-deco.webp");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}

.lic-portada-benefits {
  width: 100%;
  height: 44px;
  min-height: 44px;
  margin: 0;
  background: #a32047;
  color: #fff;
  font-family: var(--font-body);
}
/* Cada ventaja ocupa lo que mide su texto más un reparto igual del hueco sobrante: así los
   separadores caen siempre a mitad de camino entre dos textos. Con columnas fijas (309/427/357 px)
   el texto de entrega, más largo que el de la maqueta, desbordaba y las rayas lo cruzaban. */
.lic-portada-benefits__inner { display: flex; align-items: center; width: 100%; height: 44px; padding: 0 60px; }
.lic-portada-benefit { position: relative; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 11px; height: 44px; padding: 0 18px; }
.lic-portada-benefit:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: 0; transform: translateY(-50%); width: 1px; height: 22px; background: rgba(255,255,255,.38); }
.lic-portada-benefit svg { flex: 0 0 auto; width: 23px; height: 23px; color: #f7a51f !important; stroke: #f7a51f !important; }
.lic-portada-benefit span { font-size: 14px; font-weight: 700; line-height: 1.1; white-space: nowrap; }

/* Entre 1050 y 1220 px los cuatro textos ya no caben a 14 px con los márgenes de escritorio. */
@media (max-width: 1220px) {
  .lic-portada-benefits__inner { padding: 0 24px; }
  .lic-portada-benefit { padding: 0 10px; gap: 8px; }
  .lic-portada-benefit span { font-size: 13px; }
}
@media (max-width: 1050px) {
  .lic-portada-header__inner { grid-template-columns: 210px 1fr 145px; padding: 0 28px; }
  .lic-portada-header__nav { gap: 18px; }
  .lic-portada-hero { height: auto; min-height: 0; overflow: visible; }
  .lic-portada-transition { display: none; }
  .lic-portada-hero__grid { grid-template-columns: 1fr 1fr; height: auto; min-height: 720px; padding: 45px 35px; background: #199ea2; }
  .lic-portada-copy { padding: 35px; background: #fff; border-radius: 20px; }
  .lic-portada-customizer { grid-column: 2; }
  .lic-portada-benefit span { white-space: normal; }
}
@media (max-width: 820px) {
  .lic-portada-header { height: 86px; }
  .lic-portada-header__inner { grid-template-columns: 1fr auto; height: 86px; padding: 0 22px; }
  .lic-portada-header__logo { width: 165px; height: 68px; }
  .lic-portada-header__nav { display: none; }
  .lic-portada-header__menu { display: flex; flex-direction: column; gap: 4px; }
  .lic-portada-header__menu span { display: block; width: 24px; height: 2px; background: #15243d; }
  .lic-portada-mobile { position: absolute; z-index: 3; top: 86px; left: 0; width: 100%; padding: 18px 24px; background: #fff; box-shadow: 0 15px 25px rgba(0,0,0,.12); }
  .lic-portada-mobile a { display: block; padding: 10px 0; color: #15243d; font-weight: 700; text-decoration: none; }
  .lic-portada-hero__grid { display: flex; flex-direction: column; min-height: 0; padding: 45px 20px; }
  .lic-portada-copy { order: 1; }
  .lic-portada-product { order: 2; height: 610px; }
  .lic-portada-shirt { position: relative; top: auto; left: auto; height: 700px; margin: -35px 0 0; transform: none; }
  .lic-portada-customizer { order: 3; width: min(100%, 380px); }
  .lic-portada-copy h1 { font-size: clamp(45px, 12vw, 64px); }
  .lic-portada-actions { flex-direction: column; align-items: stretch; }
  .lic-portada-button { width: 100%; }
  .lic-portada-benefits { height: auto; }
  .lic-portada-benefits__inner { display: grid; grid-template-columns: 1fr 1fr; height: auto; padding: 20px; }
  .lic-portada-benefit { height: 95px; }
  .lic-portada-benefit:nth-child(2)::after { display: none; }
}

/* ── Ajustes de posición (petición Raúl) — solo escritorio ── */
@media (min-width: 1025px) {
  /* quitar el hueco superior (escalón vacío) y la banda inferior de la cabecera */
  .page-template-template-home .site-header { padding-top: 0; padding-bottom: 0; }
  .page-template-template-home .hdr-nav-bar { border-bottom: 0; }
  /* copy + CTAs ~1 cm más a la derecha */
  .lic-portada-copy { transform: translateX(80px); }
  /* configurador a la izquierda, por encima de la camiseta (como la referencia) */
  .lic-portada-customizer { position: relative; z-index: 5; transform: translateX(-100px); }
}

/* ── Área imprimible + diseño subido (arrastrable) ── */
.lic-portada-print {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 205px;
  height: 255px;
  margin-left: -102px;
  margin-top: -127px;
  z-index: 3;
  pointer-events: none;
}
.lic-portada-print.has-art { pointer-events: auto; }
.lic-portada-print.has-art::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.5px dashed rgba(163, 32, 71, .40);
  border-radius: 6px;
  pointer-events: none;
}
.lic-portada-artwork {
  position: absolute;
  left: 0;
  top: 0;
  width: 108px;
  cursor: grab;
  touch-action: none;
  user-select: none;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, .28));
}
.lic-portada-artwork img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.lic-portada-artwork.is-dragging { cursor: grabbing; }
.lic-portada-art-del,
.lic-portada-art-resize {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  background: #a32047;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}
.lic-portada-art-del {
  top: -9px; right: -9px;
  width: 19px; height: 19px;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}
.lic-portada-art-resize {
  bottom: -8px; right: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  cursor: nwse-resize;
}
