/* Portada v3 (vista previa): primera pantalla con mensaje simple, precios y muro 3D de proyectos reales. */
.h3-hero { justify-content: flex-start; min-height: 0; padding: 116px 0 52px; }
.h3-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.h3-copy .h-badges { margin-bottom: 22px; }
.h3-title { font-size: clamp(36px, 4.3vw, 66px); line-height: .98; max-width: 16ch; }
.h3-lead { margin: 22px 0 0; max-width: 50ch; color: #c9c4bd; }

/* Precios: una sola pieza con tres valores */
.h3-prices { margin: 26px 0 0; max-width: 560px; }
.h3-prices__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--iw-line-2); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .03); }
.h3-prices__grid li { display: grid; gap: 4px; padding: 12px 14px; }
.h3-prices__grid li + li { border-left: 1px solid var(--iw-line-2); }
.h3-prices__grid span { font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--iw-muted); white-space: nowrap; }
.h3-prices__grid b { font-size: clamp(19px, 1.6vw, 23px); font-weight: 650; letter-spacing: -.03em; color: var(--iw-text); }
.h3-prices__note { margin: 8px 0 0; font-size: 13px; color: var(--iw-muted); }
.h3-prices__note a { color: var(--iw-text); text-underline-offset: 3px; }
.h3-star { color: #f5be4f; }

.h3-ctas { justify-content: flex-start; margin-top: 26px; }
.h3-trust { margin-top: 26px; }

/* Muro 3D: columnas de proyectos inclinadas que se desplazan despacio, todas a la vista */
.h3-show { position: relative; }
.h3-wall { position: relative; height: clamp(460px, 66vh, 640px); overflow: hidden; perspective: 1800px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 86%, transparent); }
.h3-wall__in { position: absolute; left: -8%; right: -8%; top: -18%; bottom: -18%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  transform: rotateX(22deg) rotateY(-16deg) rotateZ(7deg); transform-origin: 50% 50%; }
.h3-col { overflow: visible; }
.h3-col__track { display: flex; flex-direction: column; animation: h3-up var(--dur, 42s) linear infinite; will-change: transform; }
.h3-col--2 .h3-col__track { --dur: 50s; animation-direction: reverse; }
.h3-col--3 .h3-col__track { --dur: 46s; }
.h3-col__set { display: flex; flex-direction: column; gap: 16px; padding-bottom: 16px; }
@keyframes h3-up { to { transform: translateY(-50%); } }
.h3-wall:hover .h3-col__track { animation-play-state: paused; }
/* Funde el borde izquierdo del muro con el fondo, para que no corte contra el texto */
.h3-wall::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 16%; z-index: 2; pointer-events: none; background: linear-gradient(90deg, var(--iw-bg), rgba(11, 11, 11, 0)); }

/* Reseñas reales flotando sobre el muro */
.h3-rev { position: absolute; z-index: 3; margin: 0; width: min(270px, 62%); padding: 14px 16px; border-radius: 14px; background: rgba(19, 19, 19, .88);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--iw-line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .9);
  animation: h3-float 7s ease-in-out infinite alternate; pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.h3-rev.on { opacity: 1; visibility: visible; }
.h3-rev[data-at="1"] { left: 2%; top: 20%; }
.h3-rev[data-at="2"] { right: 3%; bottom: 19%; animation-delay: -3.5s; }
.h3-rev__s { color: #f5be4f; font-size: 13px; letter-spacing: 2px; }
.h3-rev blockquote { margin: 6px 0 8px; font-size: 14px; line-height: 1.4; color: var(--iw-text); }
.h3-rev figcaption { font-family: var(--iw-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--iw-muted); }
@keyframes h3-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }

.h3-card { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: var(--iw-surface-2);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .4s var(--iw-ease), box-shadow .4s var(--iw-ease); }
.h3-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h3-card__l { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 8px; border-radius: 7px; background: rgba(11, 11, 11, .78);
  font-family: var(--iw-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--iw-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h3-card:hover { transform: scale(1.04); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .9), 0 0 0 1px var(--iw-accent); }
.h3-card:focus-visible { outline: 2px solid var(--iw-accent); outline-offset: 3px; }

.h3-all { display: inline-flex; gap: 8px; margin-top: 8px; color: var(--iw-muted); text-decoration: none; font-size: 14px; }
.h3-all:hover { color: var(--iw-text); }

@media (max-width: 1100px) {
  /* Una columna: los trabajos aparecen enseguida, después del texto principal */
  .h3-grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .h3-copy { display: contents; }
  .h3-copy .h-badges { order: 1; }
  .h3-title { order: 2; }
  .h3-lead { order: 3; }
  .h3-show { order: 4; width: 100%; margin: 14px 0 0; }
  .h3-prices { order: 5; }
  .h3-ctas { order: 6; }
  .h3-trust { order: 7; }
  .h3-hero { padding-top: 110px; }
  .h3-wall { height: 380px; }
}
@media (max-width: 600px) {
  .h3-hero { padding: 96px 0 40px; }
  .h3-title { font-size: clamp(32px, 9.4vw, 44px); }
  .h3-prices li { font-size: 13px; padding: 8px 11px; }
  .h3-ctas .iw-btn { flex: 1 1 100%; justify-content: center; }
  .h3-wall { height: 300px; margin: 0 calc(var(--iw-gutter) * -1); }
  .h3-wall__in { gap: 10px; left: -14%; right: -14%; }
  .h3-col__set { gap: 10px; padding-bottom: 10px; }
  .h3-card__l { font-size: 9px; }
  .h3-prices__grid li { padding: 10px 10px; }
  .h3-prices__grid span { font-size: 9px; letter-spacing: .03em; }
  .h3-prices__grid b { font-size: 17px; }
  .h3-rev[data-at="2"] { display: none; }
  .h3-rev[data-at="1"] { left: auto; right: 4%; top: auto; bottom: 14%; width: 70%; }
  .h3-rev blockquote { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .h3-col__track, .h3-rev { animation: none; transition: none; }
  .h3-card { transition: none; }
}
.h3-prices__grid b small { display: block; font-size: 12px; font-weight: 400; letter-spacing: 0; color: #c9c4bd; margin: 2px 0 -1px; }
