
/* ==================================================================
   Home 2026 — Proyecto Tu Website
   Scoped under body.home-modern so service pages keep their existing UI.
   ================================================================== */

.home-modern {
  --hm-bg: #f4f2ec;
  --hm-paper: #fffef9;
  --hm-ink: #11141b;
  --hm-muted: #656b76;
  --hm-dark: #11141b;
  --hm-dark-2: #191e28;
  --hm-line: rgba(17, 20, 27, .11);
  --hm-line-dark: rgba(255, 255, 255, .12);
  --hm-lime: #caff5c;
  --hm-violet: #8b7cff;
  --hm-cyan: #6bdcff;
  --hm-coral: #ff806a;
  --hm-radius-sm: 14px;
  --hm-radius-md: 24px;
  --hm-radius-lg: 36px;
  --hm-shadow: 0 28px 80px rgba(21, 25, 35, .13);
  --max-w: 1180px;
  background:
    radial-gradient(circle at 8% 4%, rgba(139, 124, 255, .15), transparent 31rem),
    radial-gradient(circle at 92% 11%, rgba(107, 220, 255, .13), transparent 29rem),
    var(--hm-bg);
  color: var(--hm-ink);
}

.home-modern::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .022;
  background-image:
    linear-gradient(rgba(0, 0, 0, .92) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, .92) 1px, transparent 1px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

.home-modern main { overflow: hidden; }
.home-modern .container { max-width: var(--max-w); }
.home-modern a:focus-visible,
.home-modern button:focus-visible,
.home-modern summary:focus-visible { outline: 3px solid var(--hm-lime); outline-offset: 4px; }

/* Navigation */
.home-modern .site-header { position: relative; z-index: 100; }
.home-modern .nav {
  position: fixed;
  top: 14px;
  left: 50%;
  right: auto;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  padding: .65rem .72rem .65rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: 999px;
  background: rgba(17, 20, 27, .86);
  box-shadow: 0 18px 50px rgba(10, 12, 17, .18);
  backdrop-filter: blur(20px) saturate(150%);
  transition: top .25s ease, background .25s ease, box-shadow .25s ease;
}
.home-modern .nav.scrolled { top: 8px; padding: .58rem .68rem .58rem 1.05rem; background: rgba(17, 20, 27, .95); box-shadow: 0 22px 60px rgba(10, 12, 17, .24); }
.home-modern .nav-inner { padding: 0; max-width: none; }
.home-modern .nav-logo img { width: 170px; }
.home-modern .nav-links { gap: 1.55rem; }
.home-modern .nav-links a,
.home-modern .nav-dd-btn { font-size: .82rem; font-weight: 650; color: rgba(255, 255, 255, .7); }
.home-modern .nav-links a:hover,
.home-modern .nav-dd-btn:hover { color: white; }
.home-modern .nav-cta-desktop { padding: .72rem 1.1rem; background: var(--hm-lime); color: var(--hm-ink); box-shadow: none; font-weight: 800; }
.home-modern .nav-cta-desktop:hover { background: #dcff91; transform: translateY(-1px); box-shadow: none; }
.home-modern .nav-dropdown { background: rgba(17,20,27,.98); border-radius: 18px; box-shadow: 0 22px 60px rgba(0,0,0,.24); }
.home-modern .nav-dropdown li a:hover { background: rgba(202,255,92,.12); }
.home-modern .nav-mobile { background: var(--hm-dark); }
.home-modern .nav-mobile .btn { background: var(--hm-lime); color: var(--hm-ink); }

/* Shared UI */
.hm-section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.hm-kicker,
.hm-card-label {
  margin: 0 0 .75rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6656e6;
}
.hm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.2rem);
}
.hm-section-head h2,
.hm-about-copy h2,
.hm-faq-intro h2,
.hm-cta-panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.65rem, 5.2vw, 5rem);
  line-height: .98;
  letter-spacing: -.065em;
  color: var(--hm-ink);
}
.hm-section-head > p,
.hm-faq-intro > p,
.hm-about-copy > p,
.hm-cta-panel > p {
  margin: 0;
  color: var(--hm-muted);
  font-size: 1rem;
  line-height: 1.75;
}
.hm-section-head-dark h2 { color: white; }
.hm-section-head-dark > p { color: rgba(255,255,255,.62); }
.hm-section-head-dark .hm-kicker { color: var(--hm-lime); }
.hm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 50px;
  padding: 0 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.hm-button:hover { transform: translateY(-2px); }
.hm-button span { transition: transform .2s ease; }
.hm-button:hover span { transform: translateX(4px); }
.hm-button-accent { background: var(--hm-lime); color: var(--hm-ink); box-shadow: 0 14px 36px rgba(202,255,92,.2); }
.hm-button-accent:hover { background: #dfff96; box-shadow: 0 18px 44px rgba(202,255,92,.26); }
.hm-button-ghost { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.07); color: white; }
.hm-button-ghost:hover { background: rgba(255,255,255,.12); }
.hm-button-dark-ghost { border-color: rgba(255,255,255,.2); color: white; background: transparent; }
.hm-text-link { display: inline-flex; gap: .5rem; align-items: center; color: #5749d8; font-weight: 800; }
.hm-text-link span { transition: transform .2s ease; }
.hm-text-link:hover span { transform: translateX(4px); }

/* Hero */
.hm-hero {
  position: relative;
  min-height: 850px;
  display: flex;
  align-items: center;
  padding: 8.6rem 0 5.8rem;
  background:
    linear-gradient(180deg, rgba(17,20,27,.99), rgba(17,20,27,.97)),
    var(--hm-dark);
  isolation: isolate;
}
.hm-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}
.hm-orb { position: absolute; border-radius: 50%; filter: blur(7px); pointer-events: none; z-index: -1; }
.hm-orb-one { width: 580px; height: 580px; right: -130px; top: -90px; background: radial-gradient(circle, rgba(139,124,255,.26), transparent 68%); }
.hm-orb-two { width: 420px; height: 420px; left: -170px; bottom: -140px; background: radial-gradient(circle, rgba(107,220,255,.16), transparent 68%); }
.hm-hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: clamp(2.5rem, 6vw, 5.2rem); align-items: center; }
.hm-eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin: 0 0 1.45rem;
  padding: .54rem .78rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.66);
  font-size: .76rem;
  font-weight: 750;
}
.hm-eyebrow span { width: 8px; height: 8px; border-radius: 50%; background: var(--hm-lime); box-shadow: 0 0 0 5px rgba(202,255,92,.13); }
.hm-hero-title {
  max-width: 760px;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6.2vw, 6.35rem);
  font-weight: 800;
  line-height: .91;
  letter-spacing: -.076em;
  color: white;
}
.hm-hero-title .hm-hero-question {
  position: relative;
  display: inline;
  color: white;
}
.hm-hero-title .hm-hero-question em {
  position: relative;
  display: inline-block;
  color: var(--hm-lime);
  font-style: normal;
  white-space: nowrap;
  text-shadow: 0 0 32px rgba(202,255,92,.12);
}
.hm-hero-title .hm-hero-question em::after {
  content: "";
  position: absolute;
  left: .02em;
  right: .02em;
  bottom: -.075em;
  height: .055em;
  border-radius: 999px;
  background: currentColor;
  opacity: .5;
}
.hm-hero-lead { max-width: 650px; margin: 0 0 1.65rem; color: rgba(255,255,255,.66); font-size: clamp(1rem, 1.7vw, 1.16rem); line-height: 1.72; }
.hm-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.35rem; }
.hm-hero-service { max-width: 610px; margin: 0 0 2rem; padding: .82rem 1rem; border: 1px solid rgba(139,124,255,.25); border-radius: 16px; background: rgba(139,124,255,.09); color: rgba(255,255,255,.58); font-size: .84rem; line-height: 1.6; }
.hm-hero-service strong { color: #d8d2ff; }
.hm-proof { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; padding-top: 1.7rem; border-top: 1px solid rgba(255,255,255,.11); color: rgba(255,255,255,.52); font-size: .78rem; }
.hm-proof span { display: inline-flex; gap: .34rem; }
.hm-proof b { color: white; font-weight: 800; }

.hm-scanner-stage { position: relative; min-height: 585px; display: grid; place-items: center; }
.hm-scanner-stage::before { content: ""; position: absolute; width: 430px; height: 430px; border-radius: 50%; background: radial-gradient(circle, rgba(139,124,255,.3), transparent 66%); filter: blur(18px); }
.hm-browser {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 30px;
  background: rgba(255,255,255,.09);
  box-shadow: 0 46px 120px rgba(0,0,0,.42);
  transform: perspective(1200px) rotateY(-5deg) rotateX(2deg);
  transition: transform .45s ease, box-shadow .45s ease;
}
.hm-browser:hover { transform: perspective(1200px) rotateY(-1deg) rotateX(0) translateY(-7px); box-shadow: 0 54px 130px rgba(0,0,0,.48); }
.hm-browser-bar { height: 47px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .7rem; padding: 0 .9rem; background: rgba(255,255,255,.94); color: #838994; font-size: .68rem; }
.hm-browser-dots { display: flex; gap: 5px; }
.hm-browser-dots i { width: 8px; height: 8px; border-radius: 50%; background: #c9ccd2; }
.hm-browser-bar > span { display: block; padding: .46rem .75rem; border-radius: 999px; background: #eceef1; text-align: center; }
.hm-browser-lock { font-size: .48rem; color: #839884; }
.hm-browser-page { position: relative; min-height: 438px; padding: 2.25rem; overflow: hidden; background: radial-gradient(circle at 80% 20%, rgba(139,124,255,.22), transparent 13rem), radial-gradient(circle at 90% 85%, rgba(107,220,255,.2), transparent 13rem), #f8f8f3; }
.hm-preview-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem; }
.hm-preview-nav b { width: 83px; height: 11px; border-radius: 999px; background: var(--hm-ink); }
.hm-preview-nav div { display: flex; gap: 6px; }
.hm-preview-nav i { width: 32px; height: 6px; border-radius: 999px; background: rgba(17,20,27,.17); }
.hm-preview-copy { position: relative; z-index: 2; width: 72%; }
.hm-preview-copy > span { display: block; width: 90px; height: 8px; margin-bottom: 1.1rem; border-radius: 999px; background: var(--hm-violet); }
.hm-preview-copy .hm-preview-title { height: 28px; margin: 0 0 .55rem; border-radius: 7px; background: var(--hm-ink); }
.hm-preview-copy .hm-preview-title.short { width: 78%; }
.hm-preview-copy p { width: 84%; height: 8px; margin: 1.35rem 0 0; border-radius: 999px; background: rgba(17,20,27,.18); }
.hm-preview-copy p.short { width: 62%; margin-top: .48rem; }
.hm-preview-copy button { width: 128px; height: 39px; margin-top: 1.5rem; border: 0; border-radius: 999px; background: var(--hm-lime); }
.hm-preview-art { position: absolute; right: 18px; bottom: 16px; width: 185px; height: 185px; border-radius: 42% 58% 64% 36% / 39% 33% 67% 61%; background: linear-gradient(135deg, var(--hm-violet), var(--hm-cyan)); box-shadow: 0 22px 46px rgba(76,66,177,.26); animation: hmMorph 8s ease-in-out infinite; }
.hm-preview-art i { position: absolute; top: 24%; left: 22%; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(3px); }
.hm-scan-line { position: absolute; left: 0; right: 0; top: 10%; height: 2px; z-index: 5; background: linear-gradient(90deg, transparent, var(--hm-lime), transparent); box-shadow: 0 0 20px var(--hm-lime); animation: hmScan 5s ease-in-out infinite; }
.hm-scan-note { position: absolute; z-index: 4; display: flex; align-items: center; gap: .55rem; padding: .72rem .85rem; border: 1px solid rgba(255,255,255,.72); border-radius: 15px; background: rgba(255,255,255,.9); color: var(--hm-ink); box-shadow: 0 18px 50px rgba(0,0,0,.22); backdrop-filter: blur(16px); font-size: .71rem; font-weight: 800; animation: hmFloat 5.5s ease-in-out infinite; }
.hm-scan-note i { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--hm-lime); box-shadow: 0 0 0 4px rgba(202,255,92,.17); }
.hm-note-one { top: 62px; right: -12px; }
.hm-note-two { left: -30px; bottom: 104px; animation-delay: -1.8s; }
.hm-note-three { right: 10px; bottom: 20px; animation-delay: -3.2s; }
.hm-device-mini { position: absolute; z-index: 3; right: 16px; bottom: 70px; width: 82px; height: 150px; padding: 9px 7px; border: 6px solid #1a1d24; border-radius: 21px; background: #f8f8f3; box-shadow: 0 24px 60px rgba(0,0,0,.36); transform: rotate(7deg); }
.hm-device-speaker { width: 23px; height: 4px; margin: 0 auto 8px; border-radius: 999px; background: #2e3139; }
.hm-device-content { height: 112px; border-radius: 10px; background: linear-gradient(145deg, rgba(139,124,255,.75), rgba(107,220,255,.68)); }
@keyframes hmMorph { 0%,100% { border-radius: 42% 58% 64% 36% / 39% 33% 67% 61%; transform: rotate(-3deg); } 50% { border-radius: 60% 40% 38% 62% / 58% 64% 36% 42%; transform: rotate(4deg); } }
@keyframes hmScan { 0%,100% { top: 9%; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 95% { top: 91%; opacity: 0; } }
@keyframes hmFloat { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }

/* Trust */
.hm-trust { border-bottom: 1px solid rgba(255,255,255,.09); background: #171b23; color: white; }
.hm-trust-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; }
.hm-trust p { margin: 0; color: rgba(255,255,255,.62); font-size: .8rem; font-weight: 650; }
.hm-trust-inner > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .45rem; }
.hm-trust span { padding: .38rem .66rem; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.055); color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 650; }

/* Bento problems */
.hm-problems { background: var(--hm-bg); }
.hm-bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(190px, auto); gap: 18px; }
.hm-bento-card { position: relative; grid-column: span 4; min-height: 260px; display: flex; flex-direction: column; padding: 1.65rem; overflow: hidden; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-md); background: rgba(255,255,255,.72); box-shadow: 0 16px 44px rgba(20,24,31,.055); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.hm-bento-card:hover { transform: translateY(-6px); border-color: rgba(17,20,27,.17); box-shadow: var(--hm-shadow); }
.hm-bento-main { grid-column: span 7; grid-row: span 2; min-height: 500px; background: radial-gradient(circle at 84% 16%, rgba(139,124,255,.24), transparent 17rem), rgba(255,255,255,.82); }
.hm-bento-speed, .hm-bento-mobile { grid-column: span 5; min-height: 240px; }
.hm-bento-speed { background: radial-gradient(circle at 90% 15%, rgba(107,220,255,.24), transparent 14rem), rgba(255,255,255,.78); }
.hm-bento-mobile { background: radial-gradient(circle at 87% 80%, rgba(255,128,106,.18), transparent 13rem), rgba(255,255,255,.78); }
.hm-bento-highlight { background: var(--hm-lime); border-color: transparent; }
.hm-bento-highlight .hm-card-label { color: #425319; }
.hm-card-number { position: absolute; top: 1.35rem; right: 1.5rem; color: rgba(17,20,27,.22); font-size: .72rem; font-weight: 900; }
.hm-bento-card h3 { max-width: 510px; margin: 0 0 .85rem; font-family: var(--font-display); font-size: clamp(1.45rem, 2.5vw, 2.65rem); line-height: 1.06; letter-spacing: -.045em; }
.hm-bento-card > p:not(.hm-card-label) { max-width: 490px; margin: 0 0 1.3rem; color: var(--hm-muted); font-size: .9rem; line-height: 1.65; }
.hm-bento-card > a { position: relative; z-index: 2; width: fit-content; display: inline-flex; align-items: center; gap: .45rem; margin-top: auto; color: #5749d8; font-size: .78rem; font-weight: 800; }
.hm-bento-highlight > a { color: var(--hm-ink); }
.hm-bento-card > a span { transition: transform .2s ease; }
.hm-bento-card > a:hover span { transform: translate(3px,-3px); }
.hm-card-graphic { position: absolute; right: 1.8rem; bottom: 1.6rem; width: 250px; height: 150px; opacity: .75; }
.hm-conversion-graphic { display: flex; align-items: end; gap: 12px; padding: 20px 12px; }
.hm-conversion-graphic span { flex: 1; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--hm-violet), rgba(139,124,255,.25)); }
.hm-conversion-graphic span:nth-child(1) { height: 28%; }.hm-conversion-graphic span:nth-child(2) { height: 46%; }.hm-conversion-graphic span:nth-child(3) { height: 67%; }.hm-conversion-graphic span:nth-child(4) { height: 92%; background: var(--hm-lime); }
.hm-conversion-graphic i { position: absolute; left: 8px; right: 8px; bottom: 18px; height: 1px; background: rgba(17,20,27,.15); }
.hm-speed-chart { position: absolute; right: 1.7rem; bottom: 1.4rem; width: 180px; color: var(--hm-violet); opacity: .65; }
.hm-device-pair { position: absolute; right: 2rem; bottom: 1.4rem; display: flex; align-items: end; gap: 10px; opacity: .85; }
.hm-device-pair i, .hm-device-pair b { display: block; border: 5px solid var(--hm-ink); background: linear-gradient(135deg, var(--hm-coral), var(--hm-violet)); box-shadow: 0 14px 30px rgba(17,20,27,.14); }
.hm-device-pair i { width: 142px; height: 91px; border-radius: 10px; }.hm-device-pair b { width: 46px; height: 86px; border-radius: 13px; }

/* Portfolio */
.hm-work {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
  border-radius: 44px 44px 0 0;
  background:
    radial-gradient(circle at 8% 8%, rgba(139,124,255,.14), transparent 23rem),
    radial-gradient(circle at 94% 78%, rgba(107,220,255,.09), transparent 24rem),
    var(--hm-dark);
  color: white;
}
.hm-project-showcase { display: grid; gap: 22px; }
.hm-project-case {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: var(--hm-radius-lg);
  background: rgba(255,255,255,.045);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.hm-project-case:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,.2);
  background: rgba(255,255,255,.062);
}
.hm-project-case-featured {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(270px, .72fr) minmax(0, 1.28fr);
  align-items: stretch;
  background: linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.035));
}
.hm-project-case-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.65rem 1.65rem 1.4rem;
}
.hm-project-case-featured .hm-project-case-copy {
  justify-content: center;
  padding: clamp(2.2rem, 4vw, 4.1rem);
}
.hm-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin-bottom: 1rem;
}
.hm-project-tags span {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 28px;
  padding: .35rem .65rem;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  color: rgba(255,255,255,.72);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.hm-project-tags .hm-live-tag { color: var(--hm-lime); }
.hm-live-tag i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hm-lime);
  box-shadow: 0 0 0 4px rgba(202,255,92,.12);
}
.hm-project-case h3 {
  margin: 0 0 .7rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.25vw, 3.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.hm-project-case:not(.hm-project-case-featured) h3 { font-size: clamp(1.8rem, 2.6vw, 2.65rem); }
.hm-project-case-copy > p {
  max-width: 470px;
  margin: 0 0 1.15rem;
  color: rgba(255,255,255,.58);
  font-size: .86rem;
  line-height: 1.65;
}
.hm-project-visit {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: auto;
  color: white;
  font-size: .77rem;
  font-weight: 850;
}
.hm-project-visit b { transition: transform .2s ease; }
.hm-project-visit:hover b { transform: translate(3px,-3px); }
.hm-project-preview {
  --hm-shot-height: 292px;
  position: relative;
  min-width: 0;
  display: block;
  overflow: hidden;
  margin: 0 1.25rem 1.25rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 21px;
  background: #f3f3f1;
  color: var(--hm-ink);
  box-shadow: 0 26px 62px rgba(0,0,0,.3);
  isolation: isolate;
}
.hm-project-case-featured .hm-project-preview {
  --hm-shot-height: 486px;
  align-self: center;
  margin: 1.35rem;
}
.hm-window-bar {
  position: relative;
  z-index: 2;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px;
  border-bottom: 1px solid rgba(17,20,27,.08);
  background: rgba(255,255,255,.96);
}
.hm-window-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d1d3d8; }
.hm-window-bar span {
  flex: 1;
  margin-left: 8px;
  padding: .34rem;
  border-radius: 999px;
  background: #f0f1f3;
  color: #858a94;
  font-size: .55rem;
  text-align: center;
}
.hm-project-screenshot {
  position: relative;
  height: var(--hm-shot-height);
  overflow: hidden;
  background: #ececea;
}
.hm-project-screenshot img {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  transform: translateY(0);
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.hm-project-preview:hover .hm-project-screenshot img {
  transform: translateY(calc(-100% + var(--hm-shot-height)));
  transition-duration: 6s;
}
.hm-preview-hint {
  position: absolute;
  z-index: 3;
  right: .8rem;
  bottom: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(11,14,19,.82);
  color: white;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .035em;
  backdrop-filter: blur(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.hm-preview-hint::after { content: "↓"; color: var(--hm-lime); }
.hm-project-preview:hover .hm-preview-hint { opacity: 0; transform: translateY(5px); }

/* En pantallas táctiles la vista permanece recortada y el toque abre el sitio. */
@media (hover: none), (pointer: coarse) {
  .hm-project-preview:hover .hm-project-screenshot img {
    transform: translateY(0);
    transition-duration: .2s;
  }
  .hm-preview-hint::after { content: "↗"; }
  .hm-project-preview:hover .hm-preview-hint {
    opacity: 1;
    transform: none;
  }
}

.hm-project-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}
.hm-project-secondary-grid .hm-project-case { display: flex; flex-direction: column; }
.hm-project-secondary-grid .hm-project-case-copy { min-height: 238px; }
.hm-project-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 1.35rem;
  border-top: 1px solid rgba(255,255,255,.11);
  border-left: 1px solid rgba(255,255,255,.11);
}
.hm-project-list a {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: .35rem 1rem;
  padding: 1.35rem;
  border-right: 1px solid rgba(255,255,255,.11);
  border-bottom: 1px solid rgba(255,255,255,.11);
  transition: background .2s ease;
}
.hm-project-list a:hover { background: rgba(255,255,255,.055); }
.hm-project-list span { font-family: var(--font-display); font-size: 1.05rem; font-weight: 800; letter-spacing: -.025em; }
.hm-project-list small { color: rgba(255,255,255,.48); font-size: .68rem; }
.hm-project-list b { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--hm-lime); transition: transform .2s ease; }
.hm-project-list a:hover b { transform: translate(3px,-3px); }

/* Services */
.hm-services { background: var(--hm-paper); }
.hm-service-list { border-top: 1px solid var(--hm-line); }
.hm-service-row { display: grid; grid-template-columns: 60px minmax(0,1fr) 58px; gap: 1.4rem; align-items: center; min-height: 158px; padding: 1.8rem .35rem; border-bottom: 1px solid var(--hm-line); transition: padding .25s ease, background .25s ease; }
.hm-service-row:hover { padding-left: 1.1rem; padding-right: 1.1rem; background: rgba(139,124,255,.05); }
.hm-service-row > span { color: #777e89; font-size: .7rem; font-weight: 900; }
.hm-service-row h3 { margin: 0 0 .45rem; font-family: var(--font-display); font-size: clamp(1.55rem, 3vw, 2.6rem); line-height: 1; letter-spacing: -.045em; }
.hm-service-row p { max-width: 760px; margin: 0; color: var(--hm-muted); font-size: .86rem; line-height: 1.62; }
.hm-service-row small { display: block; margin-top: .45rem; color: #5d50d8; font-size: .72rem; font-weight: 750; }
.hm-service-row > a { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--hm-line); border-radius: 50%; font-weight: 900; transition: transform .25s ease, background .25s ease, border-color .25s ease; }
.hm-service-row:hover > a { transform: rotate(45deg); border-color: var(--hm-lime); background: var(--hm-lime); }

/* About */
.hm-about { padding: clamp(5.5rem, 10vw, 9rem) 0; background: #eceae3; }
.hm-about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(3rem, 7vw, 6rem); align-items: center; }
.hm-about-visual { position: relative; min-height: 660px; }
.hm-about-photo { height: 620px; overflow: hidden; border-radius: 42% 42% 28px 28px; box-shadow: 0 34px 80px rgba(24,27,34,.18); transform: rotate(-2deg); }
.hm-about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hm-about-tag { position: absolute; display: flex; align-items: center; gap: .65rem; padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.8); border-radius: 16px; background: rgba(255,255,255,.9); box-shadow: 0 18px 46px rgba(17,20,27,.14); backdrop-filter: blur(16px); font-size: .72rem; font-weight: 750; }
.hm-about-tag span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; background: var(--hm-ink); color: white; font-size: .66rem; }
.hm-about-tag-one { left: -18px; bottom: 110px; }.hm-about-tag-two { right: -16px; top: 90px; }
.hm-about-copy h2 { margin-bottom: 1.8rem; }
.hm-about-copy > p { margin-bottom: 1rem; }
.hm-about-copy strong { color: var(--hm-ink); }
.hm-skill-list { display: flex; flex-wrap: wrap; gap: .48rem; margin: 1.7rem 0 1.7rem; }
.hm-skill-list span { padding: .42rem .7rem; border: 1px solid var(--hm-line); border-radius: 999px; background: rgba(255,255,255,.5); color: #515864; font-size: .7rem; font-weight: 700; }

/* Process */
.hm-process { padding: clamp(5.5rem, 9vw, 8.5rem) 0; background: var(--hm-dark); color: white; }
.hm-steps { position: relative; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin: 0; padding: 0; list-style: none; }
.hm-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 28px; height: 2px; background: linear-gradient(90deg, var(--hm-violet), var(--hm-cyan), var(--hm-lime)); opacity: .35; }
.hm-steps li { position: relative; z-index: 1; padding-right: 1rem; }
.hm-steps span { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 1.45rem; border: 7px solid var(--hm-dark); border-radius: 50%; background: white; color: var(--hm-ink); box-shadow: 0 0 0 1px rgba(255,255,255,.15); font-size: .7rem; font-weight: 900; }
.hm-steps h3 { margin: 0 0 .55rem; font-family: var(--font-display); font-size: 1.45rem; letter-spacing: -.035em; }.hm-steps p { margin: 0; color: rgba(255,255,255,.55); font-size: .82rem; line-height: 1.65; }

/* Testimonials */
.hm-testimonials { background: var(--hm-bg); }
.hm-testimonials .hm-section-head a { color: #5749d8; font-weight: 750; }
.hm-testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; }
.hm-quote { position: relative; min-height: 310px; display: flex; flex-direction: column; margin: 0; padding: 1.75rem; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-md); background: rgba(255,255,255,.7); box-shadow: 0 16px 44px rgba(20,24,31,.055); transition: transform .25s ease, box-shadow .25s ease; }
.hm-quote:hover { transform: translateY(-5px); box-shadow: var(--hm-shadow); }
.hm-quote-highlight { background: var(--hm-lime); border-color: transparent; transform: rotate(-1deg); }.hm-quote-highlight:hover { transform: rotate(-1deg) translateY(-5px); }
.hm-quote > div { color: #e2951d; letter-spacing: .1em; font-size: .9rem; }.hm-quote p { margin: 1.4rem 0; color: #444b56; font-size: 1rem; line-height: 1.72; }.hm-quote footer { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(17,20,27,.1); color: var(--hm-ink); font-size: .78rem; font-weight: 800; }

/* FAQ */
.hm-faq { padding: clamp(5.5rem, 9vw, 8rem) 0; background: var(--hm-paper); }
.hm-faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.hm-faq-intro { position: sticky; top: 120px; }
.hm-faq-intro h2 { margin-bottom: 1.2rem; }.hm-faq-intro > p { margin-bottom: 1.5rem; }
.hm-faq-list { border-top: 1px solid var(--hm-line); }
.hm-faq-list details { border-bottom: 1px solid var(--hm-line); }
.hm-faq-list summary { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.45rem .2rem; cursor: pointer; list-style: none; font-family: var(--font-display); font-size: 1.08rem; font-weight: 750; line-height: 1.35; letter-spacing: -.025em; }
.hm-faq-list summary::-webkit-details-marker { display: none; }
.hm-faq-list summary span { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--hm-line); border-radius: 50%; font-family: var(--font-body); transition: transform .25s ease, background .25s ease; }
.hm-faq-list details[open] summary span { transform: rotate(45deg); background: var(--hm-lime); border-color: var(--hm-lime); }
.hm-faq-list details p { max-width: 730px; margin: -.35rem 3.2rem 1.45rem .2rem; color: var(--hm-muted); font-size: .88rem; line-height: 1.7; }

/* CTA */
.hm-cta { padding: 0 0 clamp(5rem, 8vw, 7rem); background: var(--hm-paper); }
.hm-cta-panel { position: relative; overflow: hidden; padding: clamp(3.2rem, 7vw, 6.3rem); border-radius: 42px; background: radial-gradient(circle at 90% 20%, rgba(107,220,255,.2), transparent 21rem), radial-gradient(circle at 10% 100%, rgba(139,124,255,.25), transparent 25rem), var(--hm-dark); color: white; }
.hm-cta-panel .hm-kicker { color: var(--hm-lime); }.hm-cta-panel h2 { max-width: 900px; color: white; }.hm-cta-panel > p { max-width: 670px; margin: 1.5rem 0 2rem; color: rgba(255,255,255,.6); font-size: 1rem; }.hm-cta-panel > div:not(.hm-cta-orbit) { display: flex; flex-wrap: wrap; gap: .75rem; }
.hm-cta-orbit { position: absolute; right: -105px; bottom: -120px; width: 370px; height: 370px; border: 46px solid rgba(202,255,92,.1); border-radius: 50%; }

/* Footer overrides */
.home-modern .footer { background: #0d1016; }
.home-modern .footer-inner { grid-template-columns: 1.3fr .8fr .6fr; }
.home-modern .footer-brand a { display: block; width: fit-content; margin-top: .45rem; color: rgba(255,255,255,.53); font-size: .77rem; }
.home-modern .hm-footer-person { color: rgba(255,255,255,.62); font-size: .76rem; }
.home-modern .footer-copy { color: rgba(255,255,255,.38); }

/* Scroll reveal: content stays visible when JS is disabled. */
.home-modern .reveal { opacity: 1; transform: none; animation: none; }
.js .home-modern .reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s ease, transform .72s cubic-bezier(.2,.7,.2,1); }
.js .home-modern .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1020px) {
  .hm-hero { min-height: auto; }
  .hm-hero-grid { grid-template-columns: 1fr; }
  .hm-hero-copy { max-width: 790px; }
  .hm-scanner-stage { min-height: 570px; }
  .hm-project-case-featured { grid-template-columns: 1fr; }
  .hm-project-case-featured .hm-project-case-copy { padding-bottom: 1.2rem; }
  .hm-project-case-featured .hm-project-preview { --hm-shot-height: 420px; margin-top: 0; }
  .hm-project-list { grid-template-columns: repeat(2,1fr); }
  .hm-bento-main { grid-column: span 12; grid-row: auto; min-height: 470px; }
  .hm-bento-speed, .hm-bento-mobile { grid-column: span 6; }
  .hm-bento-small { grid-column: span 4; }
  .hm-about-grid { grid-template-columns: .9fr 1.1fr; gap: 3rem; }
}

@media (max-width: 820px) {
  .home-modern .nav { top: 8px; width: calc(100% - 18px); }
  .home-modern .nav-logo img { width: 145px; }
  .home-modern .nav-mobile { padding-top: 5.8rem; }
  .hm-section-head { grid-template-columns: 1fr; gap: 1.4rem; }
  .hm-trust-inner { flex-direction: column; justify-content: center; padding-top: 1rem; padding-bottom: 1rem; text-align: center; }
  .hm-trust-inner > div { justify-content: center; }
  .hm-bento-speed, .hm-bento-mobile { grid-column: span 12; }
  .hm-bento-small { grid-column: span 6; }
  .hm-project-secondary-grid { grid-template-columns: 1fr; }
  .hm-project-secondary-grid .hm-project-case-copy { min-height: auto; }
  .hm-project-list { grid-template-columns: 1fr 1fr; }
  .hm-about-grid { grid-template-columns: 1fr; }
  .hm-about-visual { width: min(100%, 560px); margin-inline: auto; }
  .hm-steps { grid-template-columns: repeat(2,1fr); row-gap: 3rem; }
  .hm-steps::before { display: none; }
  .hm-testimonial-grid { grid-template-columns: 1fr; }
  .hm-quote { min-height: auto; }
  .hm-faq-grid { grid-template-columns: 1fr; }
  .hm-faq-intro { position: static; }
  .home-modern .footer-inner { grid-template-columns: 1fr 1fr; }
  .home-modern .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .home-modern .container { padding-inline: 1rem; }
  .home-modern .nav { padding-left: .8rem; }
  .home-modern .nav-logo img { width: 132px; }
  .hm-hero { padding: 7.2rem 0 4rem; }
  .hm-hero-title { font-size: clamp(3.15rem, 15vw, 4.65rem); }
  .hm-hero-lead { font-size: .96rem; }
  .hm-hero-actions { align-items: stretch; }
  .hm-hero-actions .hm-button { flex: 1 1 100%; }
  .hm-proof { gap: .65rem 1rem; }
  .hm-scanner-stage { min-height: 430px; margin-top: 1rem; }
  .hm-browser { transform: none; border-radius: 22px; }
  .hm-browser:hover { transform: translateY(-4px); }
  .hm-browser-page { min-height: 335px; padding: 1.4rem; }
  .hm-preview-nav { margin-bottom: 2.7rem; }
  .hm-preview-copy { width: 78%; }
  .hm-preview-art { width: 125px; height: 125px; }
  .hm-device-mini { width: 61px; height: 116px; right: 4px; bottom: 42px; border-width: 5px; }
  .hm-device-content { height: 82px; }
  .hm-scan-note { padding: .55rem .62rem; font-size: .58rem; }
  .hm-note-one { right: 0; top: 38px; }.hm-note-two { left: 0; bottom: 65px; }.hm-note-three { right: 5px; bottom: 0; }
  .hm-section, .hm-work, .hm-about, .hm-process, .hm-faq { padding-top: 4.5rem; padding-bottom: 4.5rem; }
  .hm-section-head h2, .hm-about-copy h2, .hm-faq-intro h2, .hm-cta-panel h2 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  .hm-bento-main, .hm-bento-speed, .hm-bento-mobile, .hm-bento-small { grid-column: span 12; min-height: 285px; }
  .hm-bento-main { min-height: 430px; }
  .hm-card-graphic { width: 185px; height: 110px; right: 1rem; bottom: 1rem; opacity: .55; }
  .hm-speed-chart { width: 135px; opacity: .5; }
  .hm-device-pair { opacity: .5; right: 1rem; }
  .hm-project-case-featured { min-height: auto; }
  .hm-project-case-copy, .hm-project-case-featured .hm-project-case-copy { padding: 1.35rem; }
  .hm-project-preview, .hm-project-case-featured .hm-project-preview { --hm-shot-height: 310px; margin: 0 .85rem .85rem; border-radius: 17px; }
  .hm-project-tags span { font-size: .55rem; }
  .hm-preview-hint { display: none; }
  .hm-project-list { grid-template-columns: 1fr; }
  .hm-service-row { grid-template-columns: 36px minmax(0,1fr) 42px; gap: .8rem; min-height: 140px; }
  .hm-service-row > a { width: 40px; height: 40px; }
  .hm-about-visual { min-height: 525px; }
  .hm-about-photo { height: 500px; border-radius: 36% 36% 24px 24px; }
  .hm-about-tag { padding: .6rem .7rem; font-size: .6rem; }.hm-about-tag span { width: 36px; height: 36px; }.hm-about-tag-one { left: -4px; bottom: 55px; }.hm-about-tag-two { right: -4px; top: 60px; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-faq-list summary { font-size: .98rem; }
  .hm-cta-panel { border-radius: 28px; padding: 2.4rem 1.5rem; }
  .hm-cta-panel .hm-button { flex: 1 1 100%; }
  .home-modern .footer-inner { grid-template-columns: 1fr; }
  .home-modern .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-modern *, .home-modern *::before, .home-modern *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .home-modern .reveal { opacity: 1; transform: none; }
}

/* Portfolio ampliado — selección reciente */
.hm-project-more {
  margin-top: 3.2rem;
  padding-top: 2.6rem;
  border-top: 1px solid rgba(255,255,255,.11);
}
.hm-project-more-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(260px,.65fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.35rem;
}
.hm-project-more-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.5rem);
  line-height: 1;
  letter-spacing: -.055em;
}
.hm-project-more-head > p {
  margin: 0;
  color: rgba(255,255,255,.56);
  font-size: .88rem;
  line-height: 1.65;
}
.hm-project-list {
  margin-top: 0;
}
.hm-project-list article,
.hm-project-list a {
  position: relative;
}
.hm-project-list-item {
  min-height: 124px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  gap: .35rem 1rem;
  padding: 1.35rem;
  border-right: 1px solid rgba(255,255,255,.11);
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.018);
}
.hm-project-list-item span {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.025em;
}
.hm-project-list-item small {
  color: rgba(255,255,255,.48);
  font-size: .68rem;
}
.hm-project-list-item b {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: rgba(255,255,255,.25);
  font-size: .7rem;
}
.hm-project-in-progress {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.35rem;
  padding: 1.7rem 1.8rem;
  border: 1px solid rgba(202,255,92,.22);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(202,255,92,.09), rgba(139,124,255,.08));
}
.hm-project-in-progress > div {
  position: relative;
  padding-left: 1.25rem;
}
.hm-status-dot {
  position: absolute;
  left: 0;
  top: .25rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hm-lime);
  box-shadow: 0 0 0 5px rgba(202,255,92,.11);
}
.hm-project-in-progress .hm-card-label {
  margin-bottom: .45rem;
  color: var(--hm-lime);
}
.hm-project-in-progress h3 {
  margin: 0 0 .45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -.045em;
}
.hm-project-in-progress p:not(.hm-card-label) {
  max-width: 760px;
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: .84rem;
  line-height: 1.65;
}
.hm-progress-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 .85rem;
  border: 1px solid rgba(202,255,92,.25);
  border-radius: 999px;
  color: var(--hm-lime);
  background: rgba(202,255,92,.08);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .hm-project-more-head { grid-template-columns: 1fr; gap: 1rem; }
  .hm-project-in-progress { grid-template-columns: 1fr; gap: 1rem; }
  .hm-progress-label { width: fit-content; }
}

@media (max-width: 600px) {
  .hm-project-more { margin-top: 2.4rem; padding-top: 2rem; }
  .hm-project-in-progress { padding: 1.35rem; }
}
