.hero {
  display: grid;
  min-height: min(45rem, 76vh);
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 88% 15%, rgb(59 22 222 / 20%), transparent 24rem), linear-gradient(145deg, #edf3ff, var(--color-surface) 56%, #f6f3ff);
}

.hero__grid { display: grid; align-items: center; gap: var(--space-5); }
.hero__content { position: relative; z-index: 1; max-width: 42rem; }
.hero h1 { max-width: 17ch; font-size: clamp(2.9rem, 4.8vw, 4.5rem); line-height: 1.02; letter-spacing: -0.055em; }
.hero__accent { color: var(--color-accent); }
.hero .lead { max-width: 39rem; }
.hero__actions { margin-top: var(--space-3); }

.hero__visual { position: relative; min-height: 21rem; isolation: isolate; }
.hero__orb, .hero__panel, .hero__signal { position: absolute; display: block; }
.hero__orb { border-radius: 50%; filter: blur(0.2rem); }
.hero__orb--one { width: 14rem; height: 14rem; top: 1rem; right: 13%; background: linear-gradient(145deg, var(--color-accent), var(--color-indigo)); box-shadow: 0 1rem 4rem rgb(22 93 255 / 35%); }
.hero__orb--two { width: 8rem; height: 8rem; right: 0; bottom: 2.5rem; background: #a8c6ff; }
.hero__panel { z-index: 1; border: 1px solid rgb(255 255 255 / 68%); border-radius: 1.25rem; background: linear-gradient(135deg, rgb(255 255 255 / 92%), rgb(233 239 255 / 72%)); box-shadow: var(--shadow-lift); backdrop-filter: blur(1rem); }
.hero__panel--primary { width: min(100%, 17rem); height: 14rem; top: 4rem; left: 0; transform: rotate(-7deg); }
.hero__panel--secondary { width: min(80%, 13rem); height: 10rem; right: 3%; bottom: 0; transform: rotate(8deg); }
.hero__signal { z-index: 2; width: 4.5rem; height: 4.5rem; top: 9rem; left: 38%; border: 0.8rem solid var(--color-surface); border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0.8rem rgb(22 93 255 / 13%); }

.section-intro { max-width: 47rem; }
.section-intro > p:last-child { margin-top: var(--space-2); color: var(--color-muted); }
.text-link { display: inline-block; margin-top: var(--space-2); color: var(--color-accent-strong); font-weight: 800; text-underline-offset: 0.2em; }
.product-card, .project-card { position: relative; overflow: hidden; min-height: 15rem; }
.product-card h3, .project-card h3 { margin-top: var(--space-2); letter-spacing: -0.035em; }
.product-card { display: flex; flex-direction: column; padding: 0; background: linear-gradient(150deg, #fff, #f1f5ff); }
.product-card__image { display: block; width: 100%; aspect-ratio: 16 / 10; }
.product-card__image { height: auto; object-fit: cover; }
.product-card__content { display: flex; flex: 1; align-items: flex-start; flex-direction: column; padding: var(--space-3); }
.product-card__content .product-card__promise { margin-top: var(--space-2); color: var(--color-ink); font-size: 1.16rem; font-weight: 750; line-height: 1.35; }
.product-card__content .product-card__note { margin-top: var(--space-2); color: var(--color-muted); font-size: 0.78rem; }
.product-card__content .text-link { margin-top: auto; padding-top: var(--space-3); }
.portfolio-grid { grid-template-columns: minmax(0, 1fr); }
.project-card { display: flex; flex-direction: column; padding: 0; }
.project-card__image { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.project-card:nth-child(1) .project-card__image, .project-card:nth-child(5) .project-card__image { background: #d7dde5; }
.project-card:nth-child(2) .project-card__image { background: #0d55f5; }
.project-card:nth-child(3) .project-card__image, .project-card:nth-child(4) .project-card__image { background: #080808; }
.project-card:nth-child(6) .project-card__image { background: linear-gradient(#d80d43 0 54%, #fff 54%); }
.project-card__content { padding: var(--space-3); }

.process-layout { display: grid; gap: var(--space-4); align-items: center; margin-top: var(--space-4); }
.process-cycle { position: relative; width: min(100%, 48rem); min-height: 41rem; margin-inline: auto; isolation: isolate; }
.process-cycle::before { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(28rem, 63%); aspect-ratio: 1; border: 2px solid transparent; border-radius: 50%; background: linear-gradient(var(--color-subtle), var(--color-subtle)) padding-box, conic-gradient(from -90deg, var(--color-accent), #9dacf8, var(--color-indigo), var(--color-accent)) border-box; box-shadow: 0 0 0 1.1rem rgb(22 93 255 / 5%), 0 0 3rem rgb(22 93 255 / 9%); content: ""; transform: translate(-50%, -50%); }
.process-cycle__core { position: absolute; top: 50%; left: 50%; display: flex; width: 12rem; aspect-ratio: 1; align-items: center; justify-content: center; flex-direction: column; padding: 1.1rem; border-radius: 50%; background: linear-gradient(145deg, var(--color-ink), #30388c); box-shadow: 0 1.3rem 2.8rem rgb(17 26 58 / 24%), 0 0 2rem rgb(22 93 255 / 18%); color: var(--color-surface); text-align: center; transform: translate(-50%, -50%); }
.process-cycle__core span { color: #a8c6ff; font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; text-transform: uppercase; }
.process-cycle__core strong { margin-top: 0.35rem; font-size: 1.05rem; line-height: 1.15; }
.process-cycle__core small { margin-top: 0.6rem; color: #cbdcff; font-size: 0.69rem; white-space: nowrap; }
.process-loop { margin: 0; padding: 0; list-style: none; counter-reset: stages; }
.process-loop li { position: absolute; width: 15.25rem; min-height: 10.25rem; padding: 0.95rem 0.9rem 0.95rem 3.65rem; border: 1px solid #cfdcff; border-radius: var(--radius); background: var(--color-surface); box-shadow: 0 1rem 2.5rem rgb(17 26 58 / 11%); counter-increment: stages; }
.process-loop li:nth-child(1) { top: 0; left: 50%; transform: translateX(-50%); }
.process-loop li:nth-child(2) { top: 10.5rem; right: 0; }
.process-loop li:nth-child(3) { right: 0; bottom: 1.5rem; }
.process-loop li:nth-child(4) { bottom: 1.5rem; left: 0; }
.process-loop li:nth-child(5) { top: 10.5rem; left: 0; }
.process-loop li::before { position: absolute; top: 1rem; left: 0.95rem; display: grid; width: 2.1rem; height: 2.1rem; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--color-accent), var(--color-indigo)); box-shadow: 0 0.35rem 0.8rem rgb(22 93 255 / 22%); color: var(--color-surface); content: counter(stages); font-size: 0.8rem; font-weight: 850; }
.process-loop strong, .process-loop span { display: block; }
.process-loop strong { color: var(--color-ink); }
.process-loop span { margin-top: 0.15rem; color: var(--color-muted); font-size: 0.92rem; }
.process-loop small { display: block; margin-top: 0.55rem; color: var(--color-accent-strong); font-size: 0.73rem; font-weight: 800; line-height: 1.25; }
.process-loop em { display: inline-block; margin-top: 0.55rem; padding: 0.25rem 0.45rem; border-radius: var(--radius-pill); background: var(--color-accent-soft); color: var(--color-accent-strong); font-size: 0.68rem; font-style: normal; font-weight: 800; line-height: 1.25; }
.ai-accelerator { padding: var(--space-4); border-radius: var(--radius-lg); background: linear-gradient(145deg, var(--color-indigo), var(--color-accent)); box-shadow: var(--shadow-lift); color: var(--color-surface); }
.ai-accelerator .badge { background: rgb(255 255 255 / 17%); color: var(--color-surface); }
.ai-accelerator h3 { margin-top: var(--space-2); font-size: clamp(1.35rem, 2.5vw, 1.8rem); }
.ai-accelerator p:last-child { margin-top: var(--space-2); color: #dce6ff; }
.final-cta { background: linear-gradient(135deg, var(--color-ink), #202b67); }
.final-cta h2 { max-width: 24ch; }
.final-cta .button { margin-top: var(--space-3); background: var(--color-surface); border-color: var(--color-surface); color: var(--color-accent-strong); }

@media (min-width: 48rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr); }
  .hero__visual { min-height: 28rem; }
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 70rem) {
  .portfolio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-layout { grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.65fr); }
}

@media (max-width: 47.99rem) {
  .process-cycle { min-height: 0; }
  .process-cycle::before { display: none; }
  .process-cycle__core { position: static; width: 10.5rem; margin: 0 auto var(--space-3); transform: none; }
  .process-cycle__core strong { font-size: 0.95rem; }
  .process-loop { position: relative; display: grid; gap: var(--space-2); }
  .process-loop::before { position: absolute; top: 2rem; bottom: 2rem; left: 2rem; width: 2px; background: linear-gradient(var(--color-accent), var(--color-indigo)); content: ""; }
  .process-loop li, .process-loop li:nth-child(n) { position: relative; top: auto; right: auto; bottom: auto; left: auto; width: 100%; min-height: 0; transform: none; }
  .process-loop li:last-child::after { position: absolute; right: 1rem; bottom: -1rem; color: var(--color-accent-strong); content: "↖ Volvemos a empezar"; font-size: 0.72rem; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .button:hover { transform: none; }
}
