/* Portfolio-led homepage. The previous hero remains in Git for comparison. */
.home-page { --lp-accent: var(--orange); --lp-ink: #f5f5f4; --lp-muted: #b7b7b0; }
.home-page #inicio.lp-hero {
  --hero-muted: var(--lp-muted); --hero-ink: var(--lp-ink);
  position: relative; isolation: isolate; display: flex !important; align-items: center !important;
  width: 100%; max-width: none !important; min-height: min(880px, 100svh);
  margin: 0; padding: 160px max(5vw, calc((100vw - 1360px)/2)) 112px !important;
  overflow: hidden; background: #000; color: var(--lp-ink); gap: 0 !important;
}
.home-page #inicio.lp-hero > .lp-hero-copy {
  position: relative; z-index: 2; flex: none; width: 48%; max-width: 620px;
  padding: 0; margin: 0; min-width: 0; pointer-events: none;
}
.lp-hero-copy > * { pointer-events: auto; }
.home-page #inicio.lp-hero[data-projects-empty] > .lp-hero-copy { width: 100%; max-width: 860px; }
.lp-hero-visual[hidden] { display: none; }
.project-image-placeholder { display: grid; place-content: center; min-height: 100%; aspect-ratio: 16 / 10; padding: 20px; box-sizing: border-box; background: #242424; color: #f5f5f4; font: 500 clamp(16px, 2vw, 28px)/1.3 var(--font-display), sans-serif; text-align: center; }
.home-page #inicio.lp-hero .lp-signature {
  margin: 0 0 26px !important; color: var(--lp-accent) !important; font-family: var(--font-display),sans-serif;
  font-size: clamp(16px,1.35vw,21px) !important; font-weight: 500; line-height: 1.4; letter-spacing: -.02em;
}
.home-page #inicio.lp-hero h1 {
  max-width: none; margin: 0; color: var(--lp-ink); font-family: var(--font-display),sans-serif;
  font-size: clamp(42px,4.5vw,70px) !important; font-weight: 500; line-height: 1.08 !important; letter-spacing: -.055em !important;
}
.lp-hero h1 > span { display: block; }
.lp-hero h1 > .lp-hero-offer { margin-bottom: 10px; font-size: clamp(23px,2.55vw,38px); line-height: 1.25; letter-spacing: -.035em; }
.lp-hero h1 em { color: var(--lp-accent); font-style: italic; font-weight: inherit; }
.home-page #inicio.lp-hero .lp-hero-intro {
  max-width: 425px !important; margin: 28px 0 0; color: var(--lp-muted) !important;
  font-size: clamp(16px,1.2vw,18px) !important; line-height: 1.7 !important; font-family: var(--font-body),Inter,sans-serif;
}
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.lp-hero-assurance { display: grid; gap: 4px; width: fit-content; max-width: 100%; margin-top: 18px; color: var(--lp-muted); font-size: 13px; line-height: 1.6; }
.lp-hero-assurance a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 44px; color: var(--lp-ink); text-underline-offset: 4px; }
.lp-whatsapp-icon { flex: none; color: #25d366; }
.home-page .lp-button {
  display: inline-flex; justify-content: center; align-items: center; gap: 16px;
  min-height: 52px; padding: 12px 22px; box-sizing: border-box; border-radius: 8px;
  font: 500 15px/1.3 var(--font-body),Inter,sans-serif; text-decoration: none;
  transition: background-color .18s,color .18s; letter-spacing: 0; text-transform: none;
}
.lp-button-primary { background: var(--lp-accent); border: 1px solid var(--lp-accent); color: #000; }
.lp-button-secondary { background: #000; border: 1px solid #484848; color: var(--lp-ink); }
.home-page .lp-button:hover { opacity: 1; background: var(--ls-action-hover); color: #000; }
.home-page .lp-button-secondary:hover { background: #1b1b1b; color: #fff; }
.lp-button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.lp-hero-visual {
  position: absolute; z-index: 0; inset: 0 0 0 45%; overflow: hidden;
  clip-path: polygon(25% 0,100% 0,100% 100%,0 100%); background: #1d211f;
  contain: paint;
}
.lp-hero-visual::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg,#000e,#000d 96px,transparent 240px,transparent 75%,#000b);
}
/* Layout surfaces must not intercept the visible links projecting beyond them. */
.lp-tiles-viewport { position: absolute; inset: -10% -14% -10% -7%; perspective: 1600px; pointer-events: none; }
.lp-tiles-plane {
  --tile-gap: 18px;
  position: absolute; width: calc(100% + 240px); height: 100%; left: 55%; top: 50%; display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr)); gap: var(--tile-gap);
  transform: translate(-50%,-50%) rotateX(32deg) rotateY(14deg) rotateZ(-18deg);
  /* A single tilted surface keeps hover layers from intercepting adjacent tiles. */
  transform-style: flat;
}
.lp-tiles-column { min-width: 0; }
.lp-tiles-track { animation: lp-tiles-travel 38s linear infinite; animation-play-state: paused; animation-delay: -4s; will-change: transform; }
.lp-tiles-column:nth-child(2) .lp-tiles-track { animation-direction: reverse; animation-delay: -11s; }
.lp-tiles-column:nth-child(3) .lp-tiles-track { animation-delay: -19s; }
.lp-hero-visual[data-motion="running"] .lp-tiles-track { animation-play-state: running; }
/* Three identical groups cover the diagonal edges throughout the loop. */
.lp-tiles-group { display: grid; gap: var(--tile-gap); padding-bottom: var(--tile-gap); }
@keyframes lp-tiles-travel { to { transform: translate3d(0,calc(-100% / 3),0); } }
.lp-tile { display: block; position: relative; aspect-ratio: 16/10; min-height: 0; pointer-events: auto; }
.lp-tile img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; border-radius: 4px; background: #eee; box-shadow: 0 5px 15px #0003; transition: transform .2s ease,box-shadow .2s ease; }
.lp-tile > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 14px 10px; color: #fff; background: linear-gradient(transparent,#000c); border-radius: 0 0 4px 4px; font: 500 14px/1.2 var(--font-display),sans-serif; transition: transform .2s ease; }
@media (hover: hover) and (pointer: fine) {
  /* Lift the artwork while keeping the link's hit area still at its lower edge. */
  .lp-tile:hover { z-index: 2; }
  .lp-tile:hover > img,.lp-tile:hover > span { transform: translateY(-7px); }
  .lp-tile:hover > img { box-shadow: 0 16px 30px #0006; }
  .lp-hero-visual[data-motion="running"] .lp-tiles-track:has(.lp-tile:hover) { animation-play-state: paused; }
}
.lp-tiles-keyboard a { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lp-tiles-keyboard a:focus-visible { z-index: 4; right: 24px; bottom: 100px; width: auto; height: auto; min-height: 44px; max-width: calc(100% - 48px); display: flex; align-items: center; gap: 12px; padding: 12px 18px; clip-path: none; white-space: normal; color: #fff; background: #000; border-radius: 8px; outline: 2px solid var(--lp-accent); outline-offset: 4px; }
.lp-hero-caption {
  position: absolute; z-index: 2; left: max(5vw, calc((100vw - 1360px)/2)); right: 5vw; bottom: 28px;
  display: flex; justify-content: flex-end; color: #b7b7b0; font-size: 12px; line-height: 1.5;
  pointer-events: none;
}
.lp-hero-caption > :last-child { color: #eee; align-self: center; }
/* One restrained orange button treatment; remove the old continuous light loop. */
.home-page .hdr-cta .bm-ring { display: none; }
.home-page .hdr-cta { box-shadow: none !important; background: var(--lp-accent) !important; color: #000 !important; border: 0 !important; border-radius: 8px; text-transform: none !important; letter-spacing: 0 !important; }
.home-page .hdr-cta svg { color: inherit; stroke: currentColor; }
.home-page .hdr-cta::before,.home-page .hdr-cta::after { display: none !important; }
.home-page .hsc-section { padding-top: 40px; }
.home-page .hsc-field { border-radius: 8px; }
.home-page .lp-proposal {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,7vw,110px);
  max-width: 1360px; padding: 100px max(24px,5vw); margin: auto; color: var(--site-text,#f5f5f4);
  scroll-margin-top: 100px; font-family: var(--font-body),Inter,sans-serif;
}
.lp-proposal-copy { padding-top: 30px; }
.lp-proposal-copy h2 { max-width: 550px; margin: 0 0 25px; font: 500 clamp(30px,3.5vw,52px)/1.15 var(--font-display),sans-serif; letter-spacing: -.04em; }
.lp-proposal-copy > p { max-width: 430px; color: var(--site-muted,#b7b7b0); font-size: 17px; line-height: 1.7; }
.lp-proposal-copy > .lp-proposal-scope { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--site-rule); font-size: 15px; }
.lp-direct { display: grid; gap: 8px; margin-top: 52px; font-size: 15px; }
.lp-direct-options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.lp-direct-options a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.lp-direct > span { color: var(--site-muted,#b7b7b0); }
.lp-direct a { width: fit-content; text-decoration: underline; text-underline-offset: 5px; }
.lp-proposal .lead-column { min-height: 0; display: block; }
.home-page .lp-proposal .lead-card { --hero-ink: #f5f5f4; background: #000; color: #f5f5f4; width: 100%; max-width: none; padding: 30px; border: 1px solid #292929; border-radius: 12px; box-shadow: none; }
.lp-proposal .lead-title { font-size: 28px; margin-bottom: 12px; }
.lp-proposal .lead-intro { margin: 0 0 26px; color: #b7b7b0; font-size: 15px; line-height: 1.6; }
.lp-proposal .lead-field-group { margin-bottom: 20px; }
.lp-proposal .lead-field { display: block; margin: 0; }
.lp-proposal .lead-field-error:not([data-visible]) { display: none; }
.lp-proposal .lead-field-error[data-visible] { min-height: 0; }
.lp-proposal .lead-label { position: static; display: block; clip-path: none; width: auto; height: auto; margin: 0 0 8px; color: #e0e0dc; font-size: 13px; }
.home-page .lp-proposal .lead-field input { color: #f5f5f4; background: #151515; border: 1px solid #3a3a3a; border-radius: 8px; height: 50px; box-shadow: none; }
.lp-proposal .lead-field svg { top: 40px; color: #b7b7b0; }
.lp-proposal .lead-field input::placeholder { color: #aaa; }
.lp-proposal .lead-submit { min-height: 52px; border-radius: 8px; background: var(--lp-accent); color: #000; text-transform: none; letter-spacing: 0; box-shadow: none; font-size: 15px; }
.lp-proposal .lead-submit-arrow { background: transparent; }
.lp-proposal .lead-note { margin-top: 16px; padding-left: 0; color: #aaa; font-size: 12px; }
.lp-proposal .lead-note a { color: #eee; }
.lp-proposal .lead-next { display: none; }
.lp-proposal .lead-card::before,.lp-proposal .lead-card::after,.lp-proposal .lead-card-beam { display: none; }
.lp-proposal .lead-done p { color: #b7b7b0; }
@media (min-width: 1024px) and (max-height: 760px) {
  .home-page #inicio.lp-hero { min-height: 760px; }
}
@media (max-width: 1100px) and (min-width: 768px) {
  .home-page #inicio.lp-hero { min-height: 760px; padding-top: 150px !important; }
  .home-page #inicio.lp-hero h1 { font-size: 45px !important; }
  .lp-hero-actions { max-width: 240px; }
  .lp-hero-actions .lp-button { width: 100%; }
  .lp-hero-visual { left: 46%; }
}
@media (max-width: 767px) {
  .home-page #inicio.lp-hero { display: block !important; min-height: 100svh; padding: 122px 24px 48px !important; }
  .home-page #inicio.lp-hero > .lp-hero-copy { width: 100%; max-width: 540px; pointer-events: auto; }
  .home-page #inicio.lp-hero .lp-signature { margin-bottom: 20px !important; font-size: 16px !important; }
  .home-page #inicio.lp-hero h1 { font-size: clamp(34px,8.5vw,52px) !important; letter-spacing: -.05em !important; }
  .home-page #inicio.lp-hero .lp-hero-intro { max-width: 410px; margin-top: 24px; font-size: 16px !important; }
  .lp-hero-actions { margin-top: 28px; gap: 10px; }
  .home-page .lp-hero-actions .lp-button { padding: 12px 16px; font-size: 14px; flex: 1 1 auto; }
  .lp-hero-visual { position: absolute; inset: 0; width: auto; height: auto; margin: 0; clip-path: none; }
  /* On phones the moving projects are a background; use the projects CTA. */
  .lp-hero-visual,.lp-hero-visual .lp-tile { pointer-events: none; }
  .lp-tiles-keyboard { display: none; }
  .lp-hero-visual::after { background: linear-gradient(180deg,#0009,#000e 120px,#000d 65%,#0009); }
  .lp-tiles-viewport { inset: -20% -10%; }
  .lp-tiles-plane { --tile-gap: 10px; width: max(720px,140vw,88svh); left: 50%; transform: translate(-50%,-50%) rotateX(28deg) rotateY(10deg) rotateZ(-15deg); }
  .lp-tiles-track { animation-duration: 30s; }
  .lp-hero-caption { display: none; }
  .home-page .lp-proposal { grid-template-columns: 1fr; gap: 30px; padding: 64px 24px; }
  .lp-proposal-copy { padding-top: 0; }
  .lp-proposal-copy > p { font-size: 16px; }
  .lp-direct { margin-top: 24px; }
  .home-page .lp-proposal .lead-card { padding: 24px 20px; }
  .lp-proposal .lead-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .lp-button { transition: none; }
  .lp-tiles-track { animation: none; will-change: auto; }
  .lp-tile > img,.lp-tile > span { transition: none; }
  .lp-tile:hover > img,.lp-tile:hover > span { transform: none; }
}
