/* Homepage — wide, clear, clean (Kage-inspired, no 3D). Copy unchanged. */

.page-home.hm-flagship,
.hm-flagship {
  --hm-ink: #0c1014;
  --hm-slate: #161c22;
  --hm-muted: #5e6a75;
  --hm-mist: #f3f5f6;
  --hm-paper: #fafbfb;
  --hm-sage: #2f6b56;
  --hm-lantern: #b8956a;
  --hm-blue: var(--hm-sage);
  --hm-sky: var(--hm-lantern);
  --hm-soft: rgba(47, 107, 86, 0.1);
  --hm-display: "Fraunces", Georgia, "Times New Roman", serif;
  --hm-sans: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --hm-wide: min(1280px, calc(100% - 3rem));
  font-family: var(--hm-sans);
  color: var(--hm-ink);
  background: var(--hm-paper);
}

.hm-flagship .inner-hero { display: none !important; }

/* ——— Hero: full-bleed photo, clear left shade (Kage clarity) ——— */
.hm-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: center;
  justify-items: stretch;
  overflow: hidden;
  color: #fff;
  background: #0c1014;
  padding-top: 72px;
  box-sizing: border-box;
}

.hm-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}
.hm-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 40%;
  transform: scale(1.04);
  filter: none;
  animation: hm-hero-pan 26s ease-in-out infinite alternate;
}
@keyframes hm-hero-pan {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.09) translate3d(-1.2%, -0.6%, 0); }
}

.hm-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(8, 12, 16, 0.92) 0%, rgba(8, 12, 16, 0.78) 36%, rgba(8, 12, 16, 0.28) 62%, rgba(8, 12, 16, 0.12) 100%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.35) 0%, rgba(8, 12, 16, 0.1) 45%, rgba(8, 12, 16, 0.55) 100%);
}

.hm-hero-glow {
  display: none;
}

.page-home .hm-hero h1,
.hm-flagship .hm-hero h1,
.hm-hero h1 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.page-home .hm-brand,
.hm-flagship .hm-brand,
.hm-hero .hm-brand {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.page-home .hm-hero-copy,
.hm-flagship .hm-hero-copy,
.hm-hero .hm-hero-copy {
  color: rgba(255, 255, 255, 0.88) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.88) !important;
}

.hm-hero-inner {
  position: relative;
  z-index: 2;
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  padding: clamp(4.5rem, 14vh, 8rem) 0;
  border-left: 0;
  padding-left: 0;
  text-align: left;
}

.hm-brand {
  display: block;
  margin: 0 0 1.25rem;
  font-family: var(--hm-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-transform: none;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
  opacity: 1;
  animation: hm-rise 0.8s ease;
}

.hm-hero h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--hm-display);
  font-size: clamp(2.4rem, 5.5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
  opacity: 1;
  animation: hm-rise 0.85s ease;
}

.hm-hero h1 .accent,
.hm-hero h1 .home-hero-accent,
.hm-hero h1 .accent::after,
.hm-hero h1 .home-hero-accent::after {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
  box-shadow: none !important;
}
.hm-hero h1 .accent,
.hm-hero h1 .home-hero-accent {
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 0.02em;
}

.hm-hero-copy {
  margin: 1.5rem 0 0;
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  font-weight: 450;
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.3);
  opacity: 1;
  animation: hm-rise 0.9s ease;
}

.hm-hero-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 2rem;
  opacity: 1;
  animation: hm-rise 0.9s ease;
}
.hm-hero-platforms a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  backdrop-filter: none;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.hm-hero-platforms a::before { content: none; }
.hm-hero-platforms a:hover {
  border-color: #fff;
  opacity: 0.9;
  transform: none;
  background: transparent;
}

.hm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
  opacity: 1;
  animation: hm-rise 0.9s ease;
}
.hm-hero-actions .btn {
  border-radius: 2px !important;
  min-width: 11rem;
  justify-content: center;
  box-shadow: none !important;
  animation: none !important;
}
.hm-hero-actions .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--hm-ink) !important;
}
.hm-hero-actions .btn-primary:hover {
  background: rgba(255, 255, 255, 0.92) !important;
}
.hm-hero-actions .btn-green {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  color: #fff !important;
}
.hm-hero-actions .btn-green:hover {
  border-color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}
.hm-hero-actions .btn-outline,
.hm-final-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
}
.hm-keyword-actions .btn-outline {
  color: var(--hm-ink) !important;
  border-color: rgba(12, 16, 20, 0.22) !important;
  background: transparent !important;
}
.hm-keyword-actions .btn-green,
.hm-keyword-actions .btn-primary {
  background: var(--hm-sage) !important;
  border-color: var(--hm-sage) !important;
  color: #fff !important;
}

/* clean scroll cue — thin line only */
.hm-hero-inner::after {
  content: "";
  display: block;
  width: 1px;
  height: 56px;
  margin-top: clamp(2.5rem, 8vh, 4rem);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent);
  animation: hm-scroll-line 2.4s ease-in-out infinite;
}
@keyframes hm-scroll-line {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes hm-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hm-hero-media img,
  .hm-brand,
  .hm-hero h1,
  .hm-hero-copy,
  .hm-hero-actions,
  .hm-hero-platforms,
  .hm-hero-inner::after {
    animation: none !important;
  }
}

/* ——— Sections: wide + airy ——— */
.hm-section {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
}
.hm-section--mist {
  background: var(--hm-mist);
}
.hm-section--ink {
  background: var(--hm-ink);
  color: #e8ecef;
}

.hm-section .section-header {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto 3.25rem;
  text-align: left;
  border-left: 0;
  padding-left: 0;
}

.hm-section .section-kicker,
.hm-final .section-kicker,
.hm-keyword .section-kicker {
  display: inline-block !important;
  color: var(--hm-sage) !important;
  -webkit-text-fill-color: var(--hm-sage) !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-family: var(--hm-sans) !important;
  font-weight: 600 !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
}

.hm-section h2,
.hm-section .section-header h2,
.hm-keyword h2 {
  margin: 0.75rem 0 0.85rem !important;
  font-family: var(--hm-display) !important;
  font-size: clamp(2rem, 3.8vw, 2.85rem) !important;
  letter-spacing: -0.03em;
  color: var(--hm-ink) !important;
  -webkit-text-fill-color: var(--hm-ink) !important;
  line-height: 1.12 !important;
  font-weight: 600 !important;
}

.hm-section .lead {
  margin: 0 !important;
  max-width: 40rem;
  color: var(--hm-muted) !important;
  font-size: 1.1rem !important;
  line-height: 1.7 !important;
  font-weight: 450 !important;
  text-align: left !important;
}

.hm-section--ink .section-kicker {
  color: var(--hm-lantern) !important;
  -webkit-text-fill-color: var(--hm-lantern) !important;
}
.hm-section--ink h2,
.hm-section.hm-section--ink h2,
.hm-section.hm-section--ink h3,
#plataformas h2,
#proyectos-reales h2 {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.hm-section--ink .lead,
.hm-section--ink p { color: rgba(232, 236, 239, 0.78) !important; }

/* Platforms — wide ordered chapter grid (Kage-like) */
.hm-chapters {
  padding: clamp(4.5rem, 9vw, 7rem) 0 !important;
  background:
    radial-gradient(70% 50% at 80% 20%, rgba(47, 107, 86, 0.18), transparent 55%),
    #0a0e12 !important;
}
.hm-chapters-inner {
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
}
.hm-chapters-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.hm-chapters-head .section-kicker {
  color: var(--hm-lantern) !important;
  -webkit-text-fill-color: var(--hm-lantern) !important;
}
.hm-chapters-head h2 {
  margin: 0.55rem 0 0 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem) !important;
  max-width: 16ch;
}
.hm-chapters-head .lead {
  margin: 0 !important;
  max-width: none;
  color: rgba(232, 236, 239, 0.78) !important;
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
}

.hm-pillars,
.hm-platforms {
  width: 100%;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
}
.hm-pillar {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  min-height: 16.5rem;
  padding: 1.5rem 1.4rem 1.35rem;
  border: 0;
  background: rgba(8, 12, 16, 0.72);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease;
}
.hm-pillar:hover {
  background: rgba(12, 18, 22, 0.88);
  opacity: 1;
  transform: none;
}
.hm-pillar-num {
  display: block;
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.45);
}
.hm-pillar-code {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-lantern);
}
.hm-pillar h3 {
  margin: 0 0 0.7rem;
  font-family: var(--hm-display);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  letter-spacing: -0.025em;
  color: #fff !important;
}
.hm-pillar p {
  margin: 0;
  color: rgba(232, 236, 239, 0.72) !important;
  line-height: 1.6;
  font-size: 0.98rem;
  flex: 1;
}
.hm-pillar-go {
  display: inline-block;
  margin-top: 1.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.15rem;
}

/* Keyword platforms — full-bleed ordered chapters (all copy kept) */
.hm-keyword {
  position: relative;
  background: #0a0e12;
  color: #e8ecef;
  padding: 0 !important;
  overflow: clip;
}
.hm-keyword.hm-keyword--reverse,
.hm-keyword:nth-of-type(even) {
  background: #0a0e12;
}

.hm-keyword-scene {
  position: relative;
  min-height: min(92vh, 920px);
  display: grid;
  align-items: end;
}

.hm-keyword-media {
  position: absolute;
  inset: 0;
  margin: 0;
  overflow: hidden;
  z-index: 0;
  background: #0a0e12;
}
.hm-keyword-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.04);
  filter: saturate(0.85) brightness(0.55);
  transition: transform 1.4s ease;
}
.hm-keyword:hover .hm-keyword-media img {
  transform: scale(1.08);
}

.hm-keyword-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.35) 35%, rgba(8, 12, 16, 0.88) 100%),
    linear-gradient(90deg, rgba(8, 12, 16, 0.55) 0%, rgba(8, 12, 16, 0.2) 55%, rgba(8, 12, 16, 0.45) 100%);
}

.hm-keyword-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 7.5rem) 0 clamp(3.5rem, 8vh, 5.5rem);
}

.hm-keyword-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
.hm-keyword-num {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.45);
}
.hm-keyword .section-kicker {
  color: var(--hm-lantern) !important;
  -webkit-text-fill-color: var(--hm-lantern) !important;
}
.hm-keyword h2 {
  margin: 0.55rem 0 0 !important;
  max-width: 14ch;
  font-size: clamp(2.3rem, 5vw, 3.6rem) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}
.hm-keyword-lead {
  margin: 0 !important;
  max-width: none;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem) !important;
  font-weight: 500 !important;
  font-family: var(--hm-sans) !important;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.86) !important;
  line-height: 1.55 !important;
}

.hm-keyword-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.14);
  max-width: none;
}
.hm-keyword-body p {
  margin: 0;
  padding: 1.2rem 1.35rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(232, 236, 239, 0.84);
  font-weight: 450;
  background: rgba(8, 12, 16, 0.62);
  backdrop-filter: blur(10px);
}
.hm-keyword-body p:last-child {
  margin-bottom: 0;
}
.hm-keyword-body p:nth-child(odd):last-child {
  grid-column: 1 / -1;
}

.hm-keyword-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hm-keyword-actions .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  background: transparent !important;
}
.hm-keyword-actions .btn-green,
.hm-keyword-actions .btn-primary {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--hm-ink) !important;
}

.hm-process {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  border: 0;
}
.hm-step {
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(12, 16, 20, 0.12);
  padding-top: 1.25rem;
}
.hm-step-num {
  display: inline-block;
  width: auto;
  height: auto;
  margin-bottom: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--hm-sage);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}
.hm-step h3 {
  margin: 0 0 0.5rem;
  font-family: var(--hm-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hm-step p {
  margin: 0;
  color: var(--hm-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.hm-proof {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
.hm-stores {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}
.hm-stores li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hm-stores strong {
  color: #fff;
  font-family: var(--hm-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.hm-stores p {
  margin: 0.35rem 0 0;
  color: rgba(232, 236, 239, 0.72) !important;
}
.hm-proof-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  filter: none;
  box-shadow: none;
}

.hm-pricing {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.hm-price-note {
  color: var(--hm-muted);
  font-weight: 450;
  line-height: 1.7;
}
.hm-factors {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hm-factors li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(12, 16, 20, 0.1);
}
.hm-factor-num {
  width: auto;
  height: auto;
  display: inline-block;
  background: transparent;
  border: 0;
  color: var(--hm-sage);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  padding-top: 0.25rem;
}
.hm-factors strong {
  display: block;
  margin-bottom: 0.3rem;
  font-family: var(--hm-display);
  font-size: 1.1rem;
}
.hm-factors p {
  margin: 0;
  color: var(--hm-muted);
}

.hm-faq-grid {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  border: 0;
}
.hm-faq-card {
  padding: 0;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(12, 16, 20, 0.1);
  padding-top: 1.25rem;
}
.hm-faq-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--hm-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.hm-faq-card p {
  margin: 0;
  color: var(--hm-muted);
  line-height: 1.65;
}

.hm-final {
  padding: clamp(5rem, 10vw, 7.5rem) 0;
  background: var(--hm-ink);
  color: #fff;
}
.hm-final-inner {
  width: var(--hm-wide);
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem 3rem;
  align-items: flex-end;
  justify-content: space-between;
  border-left: 0;
  padding-left: 0;
}
.hm-final h2 {
  margin: 0.5rem 0 0.75rem !important;
  font-family: var(--hm-display) !important;
  font-size: clamp(2.1rem, 3.6vw, 2.9rem) !important;
  letter-spacing: -0.03em;
  color: #fff !important;
}
.hm-final p {
  margin: 0;
  max-width: 34rem;
  color: rgba(232, 236, 239, 0.78);
  line-height: 1.7;
}
.hm-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hm-final-actions .btn-primary,
.hm-final-actions .btn-green {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--hm-ink) !important;
}

@media (max-width: 980px) {
  .hm-pillars,
  .hm-platforms,
  .hm-faq-grid,
  .hm-pricing,
  .hm-proof,
  .hm-keyword-body,
  .hm-chapters-head,
  .hm-keyword-intro,
  .hm-process {
    grid-template-columns: 1fr;
  }
  .hm-keyword-scene {
    min-height: 0;
  }
  .hm-keyword-media {
    position: absolute;
  }
  .hm-keyword-inner {
    width: min(1280px, calc(100% - 1.5rem));
    padding-top: clamp(4rem, 10vh, 5.5rem);
  }
  .hm-hero h1 { max-width: 14ch; }
  :root,
  .hm-flagship {
    --hm-wide: min(1280px, calc(100% - 2rem));
  }
}
@media (max-width: 720px) {
  .hm-hero-inner { padding: clamp(3rem, 10vh, 4.5rem) 0; }
  .hm-section { padding: clamp(3.5rem, 12vw, 5rem) 0; }
  .hm-platforms {
    grid-template-columns: 1fr;
  }
}
