/* Vínculos entre Proyectos y Productos 2.0 — carrusel sin títulos internos.
   Encapsulado para WoodMart, WooCommerce y widgets de Elementor. */
.vpp-carousel {
  --vpp-ink: #17284a;
  --vpp-muted: #65809b;
  --vpp-yellow: #ffe12b;
  --vpp-blue: #2468ca;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 14px 0 29px;
  position: relative;
  clear: both;
  isolation: isolate;
  box-sizing: border-box;
  font-family: inherit;
}
.vpp-carousel *, .vpp-carousel *::before, .vpp-carousel *::after {box-sizing: border-box;}
.vpp-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 1px 11px;
  min-height: 40px;
}
.vpp-counter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 6px 13px;
  border: 1px solid rgba(226,232,242,.86);
  border-radius: 99px;
  background: #fff;
  color: var(--vpp-ink);
  box-shadow: 0 4px 17px rgba(9,31,70,.08);
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  letter-spacing: .065em;
  white-space: nowrap;
}
.vpp-counter [data-vpp-current] {color: #2366c3;}
.vpp-counter-divider {color: #aeb9c7; font-weight: 500;}
.vpp-actions {display: inline-flex; align-items: center; gap: 7px;}
.vpp-carousel button.vpp-control {
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  padding: 0;
  margin: 0;
  border: 1px solid #dce4ee;
  border-radius: 50%;
  background: #fff;
  color: #233b68;
  box-shadow: 0 5px 15px rgba(15,39,77,.10);
  cursor: pointer;
  text-shadow: none;
  line-height: 1;
  transition: color .22s ease, background .22s ease, transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vpp-carousel button.vpp-control svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.vpp-carousel button.vpp-control:hover {background: var(--vpp-yellow);border-color: var(--vpp-yellow);color: #16264a; transform: translateY(-2px); box-shadow: 0 8px 23px rgba(255,225,43,.23);}
.vpp-carousel button.vpp-control:focus-visible {outline: 3px solid #ffd400; outline-offset: 3px;}
.vpp-carousel button.vpp-control-pause {width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-color: rgba(229,233,242,.9);background: #edf2f9;box-shadow: none;}
.vpp-icon-play {display: none;}
.vpp-control-pause[aria-pressed="true"] .vpp-icon-pause {display: none;}
.vpp-control-pause[aria-pressed="true"] .vpp-icon-play {display: block;fill: currentColor;stroke-width: 1.5;}
.vpp-carousel button.vpp-control-pause[hidden], .vpp-carousel[data-vpp-static="yes"] .vpp-toolbar, .vpp-carousel[data-vpp-static="yes"] .vpp-progress {display: none !important;}

.vpp-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 17px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  padding: 6px 3px 20px;
  margin: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}
.vpp-track::-webkit-scrollbar {display:none;}
.vpp-track:focus-visible {outline: 2px solid var(--vpp-yellow);outline-offset: 1px;border-radius: 8px;}
.vpp-track.vpp-dragging {cursor: grabbing; scroll-snap-type: none; user-select: none;}
.vpp-slide {display: flex; flex: 0 0 clamp(232px, 63%, 326px);min-width: 0; scroll-snap-align: start;}
.vpp-carousel a.vpp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(219,228,240,.9);
  border-radius: 20px;
  background: #fff;
  color: var(--vpp-ink);
  text-decoration: none !important;
  box-shadow: 0 6px 18px rgba(4,21,49,.075), 0 18px 38px rgba(4,21,49,.06);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .3s cubic-bezier(.2,.75,.25,1),box-shadow .3s ease,border-color .3s ease;
  -webkit-tap-highlight-color: transparent;
}
.vpp-carousel a.vpp-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 4;
  background: linear-gradient(90deg,#ffe12b,#ffcb20 65%,#ffed81);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.vpp-carousel a.vpp-card:hover, .vpp-carousel a.vpp-card:focus-visible {
  color: var(--vpp-ink);
  border-color: #c2d4e8;
  box-shadow: 0 11px 28px rgba(5,25,58,.12),0 20px 45px rgba(5,25,58,.11);
  transform: translateY(-5px);
}
.vpp-carousel a.vpp-card:focus-visible {outline: 3px solid var(--vpp-yellow);outline-offset: 3px;}
.vpp-carousel a.vpp-card:hover::after,.vpp-carousel a.vpp-card:focus-visible::after {transform:scaleX(1);}
.vpp-card-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1.42 / 1;
  padding: 27px 23px;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 82% 13%,#fffdf1 0%,#f3f7fc 52%,#eef3f9 100%);
}
.vpp-card-media::before {
  content: '';
  position: absolute;
  width: 225px;
  height: 225px;
  border: 1px solid rgba(213,223,237,.75);
  border-radius: 50%;
  top: -106px;
  right: -112px;
  pointer-events: none;
}
.vpp-card-media::after {
  content: '';
  position: absolute;
  width: 148px;
  height: 148px;
  border: 1px solid rgba(213,223,237,.55);
  border-radius: 50%;
  top: -70px;
  right: -71px;
  pointer-events: none;
}
.vpp-number {
  position: absolute;
  z-index: 3;
  top: 13px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 30px;
  border: 1px solid rgba(203,215,230,.7);
  border-radius: 9px;
  background: rgba(255,255,255,.88);
  color: #48678c;
  backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}
.vpp-carousel .vpp-card-image {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 13px rgba(20,37,64,.08));
  transition: transform .45s cubic-bezier(.2,.8,.25,1);
  -webkit-user-drag: none;
  user-select: none;
}
.vpp-carousel a.vpp-card:hover .vpp-card-image {transform: scale(1.07) rotate(-1deg);}
.vpp-projects .vpp-card-media {padding: 0;background: #dfe7ef;}
.vpp-projects .vpp-card-image {object-fit: cover;filter:none;}
.vpp-projects a.vpp-card:hover .vpp-card-image {transform: scale(1.06);}
.vpp-placeholder {position:relative;z-index:2;display:grid;place-items:center;width:100%;height:100%;color:#91a2b7;}
.vpp-placeholder svg {width:58px;height:58px;}
.vpp-card-content {display:flex; flex:1; flex-direction:column;align-items:stretch;gap:11px;min-height:150px;padding:18px 19px 18px;background:#fff;}
.vpp-kind {display:inline-flex;align-items:center;gap:7px;color:#55789b;font-size:10px;font-weight:800;letter-spacing:1.28px;line-height:1.2;}
.vpp-kind-dot {width:6px;height:6px;border-radius:50%;background:#e7be10;box-shadow:0 0 0 3px rgba(255,225,43,.17);}
.vpp-name {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:2.7em;color:var(--vpp-ink);font-size:16px;font-weight:800;letter-spacing:-.25px;line-height:1.35;}
.vpp-linkline {display:flex;justify-content:space-between;align-items:center;gap:11px;width:100%;margin-top:auto;padding-top:11px;border-top:1px solid #eaf0f6;color:#1d65bf;font-size:12px;font-weight:800;line-height:1.3;}
.vpp-link-arrow {display:grid;place-items:center;flex:0 0 33px;width:33px;height:33px;border-radius:50%;background:#fff0a9;color:#14274b;transition:transform .25s ease,background .25s ease,color .25s ease;}
.vpp-link-arrow svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
.vpp-carousel a.vpp-card:hover .vpp-link-arrow {transform:translateX(3px);background:#ffe12b;}
.vpp-progress {height:4px;overflow:hidden;border-radius:50px;background:rgba(182,193,212,.33);margin:3px 3px 0;}
.vpp-progress span {display:block;height:100%;width:25%;border-radius:50px;background:linear-gradient(90deg,#ffde2b,#ffb81c);transition:width .35s ease;}
@media (max-width: 580px) {
  .vpp-carousel {margin: 11px 0 23px;}
  .vpp-toolbar {min-height:36px;margin-bottom:8px;gap:8px;}
  .vpp-carousel button.vpp-control {width:35px;height:35px;min-width:35px;min-height:35px;}
  .vpp-carousel button.vpp-control-pause {width:30px;height:30px;min-width:30px;min-height:30px;}
  .vpp-slide {flex-basis: min(82%, 296px);}
  .vpp-track {gap:12px;padding-bottom:17px;}
  .vpp-card-content {padding:16px;min-height:143px;}
  .vpp-name {font-size:15px;}
  .vpp-card-media {padding:22px 18px;}
}
@media (prefers-reduced-motion: reduce) {
  .vpp-track {scroll-behavior:auto;}
  .vpp-carousel a.vpp-card,.vpp-carousel a.vpp-card::after,.vpp-carousel .vpp-card-image,.vpp-link-arrow,.vpp-progress span,.vpp-carousel button.vpp-control {transition:none !important;}
  .vpp-carousel a.vpp-card:hover {transform:none;}
}


/* Invitacion a WhatsApp integrada como una tarjeta de proyecto.
   Misma estructura y dimensiones que las tarjetas reales. */
.vpp-projects .vpp-card-next-project .vpp-next-project-media {
  position: relative;
  padding: 0;
  background: linear-gradient(145deg, #dae6f2 0%, #f5f8fc 60%, #e8f0f9 100%);
}
.vpp-next-project-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 24px, rgba(72,112,158,.065) 25px),
              repeating-linear-gradient(90deg, transparent 0, transparent 24px, rgba(72,112,158,.065) 25px);
  pointer-events: none;
}
.vpp-next-project-media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,43,82,.02) 20%, rgba(20,47,84,.24) 100%);
  pointer-events: none;
}
.vpp-projects .vpp-next-product-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px 26px;
  filter: drop-shadow(0 9px 16px rgba(20,45,82,.18));
  transition: transform .45s cubic-bezier(.2,.8,.25,1);
}
.vpp-projects .vpp-card-next-project:hover .vpp-next-product-photo { transform: scale(1.055); }
.vpp-next-project-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  margin: auto;
  border: 1px solid rgba(88,122,164,.22);
  border-radius: 24px;
  background: rgba(255,255,255,.58);
  color: #50769c;
  transform: rotate(-8deg);
  transition: transform .3s ease;
}
.vpp-next-project-icon svg { width: 74px; height: 74px; }
.vpp-card-next-project:hover .vpp-next-project-icon {transform: rotate(0deg) scale(1.05);}
.vpp-next-project-tag {
  position: absolute;
  z-index: 3;
  left: 15px;
  bottom: 15px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #13365e;
  background: rgba(255,255,255,.9);
  box-shadow: 0 4px 14px rgba(12,40,74,.12);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .75px;
}
.vpp-projects .vpp-card-next-project .vpp-link-arrow { background: var(--vpp-yellow); }
.vpp-projects .vpp-card-next-project:hover .vpp-link-arrow { background: #ffd413; }
@media (prefers-reduced-motion: reduce) {
  .vpp-projects .vpp-next-product-photo, .vpp-next-project-icon { transition: none !important; }
}
/* Clase opcional en el contenedor Elementor que abarca titulo y shortcode. */
.vpp-ocultar-sin-productos:not(:has(.vpp-products)) { display: none !important; }
