:root {
  /* Sistema cromático oficial AEME */
  --ink: #000000;
  --ink-soft: #171717;
  --paper: #ffffff;
  --paper-muted: #f2f2f2;
  --line: rgba(255, 255, 255, 0.18);
  --acid: #ffd200;
  --acid-dark: #c7a500;
  --muted: #a6a6a6;
  --max-width: 1240px;
  --side-pad: clamp(1.25rem, 4vw, 4.75rem);
  --radius: 1.25rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #030303;
  color: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-shell {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background:
    radial-gradient(circle at 83% 9%, rgba(255, 210, 0, 0.075), transparent 22rem),
    radial-gradient(circle at 7% 42%, rgba(255, 255, 255, 0.04), transparent 24rem);
}

.site-shell::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-image: url("assets/tech-network.svg");
  background-position: 75% 0;
  background-size: min(1200px, 100vw) 800px;
  background-repeat: no-repeat;
  opacity: 0.32;
  mix-blend-mode: screen;
}

.site-shell::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035), transparent 28%, transparent 72%, rgba(255, 210, 0, 0.025)),
    linear-gradient(180deg, transparent 0 72%, rgba(0, 0, 0, 0.48));
}

.site-shell > main,
.site-shell > footer { position: relative; z-index: 1; }
.section-pad { width: min(var(--max-width), 100%); margin: 0 auto; padding-left: var(--side-pad); padding-right: var(--side-pad); }

.site-header {
  width: 100%;
  height: 74px;
  margin: 0;
  padding: 0 var(--side-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  background: rgba(5, 6, 7, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.home-header { background: linear-gradient(180deg, rgba(5, 6, 7, 0.78), rgba(5, 6, 7, 0.38)); border-bottom-color: rgba(255, 255, 255, 0.12); }
.header-identity { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.header-claim { padding-left: 0.9rem; border-left: 2px solid var(--acid); color: var(--paper); font-size: clamp(1rem, 1.25vw, 1.28rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1; white-space: nowrap; }
.home-header .site-nav { margin-left: auto; }

.brand { display: inline-flex; align-items: center; }
.brand-mark { width: 31px; height: 41px; display: block; overflow: hidden; background: var(--ink); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 0.25rem; }
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.site-shell#servicios > main { padding-top: 74px; }
.site-nav { display: flex; align-items: center; gap: 0.2rem; padding: 0.28rem; color: var(--muted); font-size: 0.78rem; background: rgba(12, 12, 12, 0.76); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: blur(18px) saturate(130%); backdrop-filter: blur(18px) saturate(130%); }
.site-nav a { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.52rem 0.82rem; border: 1px solid transparent; border-radius: 999px; font-weight: 700; transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--paper); background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--acid); border-color: var(--acid); box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.12), 0 5px 18px rgba(255, 210, 0, 0.18); }
.nav-cta { color: var(--ink) !important; background: var(--acid); border-color: var(--acid) !important; margin-left: 0.18rem; }
.nav-cta:hover, .nav-cta:focus-visible { color: var(--ink) !important; background: #ffe04a !important; border-color: #ffe04a !important; }
.nav-cta span { color: currentColor; margin-left: 0.35rem; }
.menu-toggle { display: none; border: 0; background: transparent; cursor: pointer; padding: 0.5rem; }
.menu-toggle > span:not(.sr-only) { width: 22px; height: 1px; display: block; background: var(--paper); margin: 5px 0; }

.constellation-hero { width: 100%; height: min(100vh, 56.25vw); min-height: min(640px, 100vh); position: relative; isolation: isolate; overflow: hidden; background: #050607; color: var(--paper); }
.hero-scene { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; display: block; }
.hero-overlay { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(circle at 78% 44%, rgba(255, 210, 0, 0.08), transparent 24%), radial-gradient(circle at 86% 74%, rgba(255, 210, 0, 0.06), transparent 28%), linear-gradient(90deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.06) 36%, rgba(0, 0, 0, 0.18)); }
.hero-panel { position: absolute; z-index: 3; inset: 0 auto 0 0; width: min(35vw, 560px); min-width: 340px; display: flex; align-items: center; padding-left: clamp(28px, 5vw, 84px); background: linear-gradient(145deg, #fbfbfa 0%, #f4f4f2 72%, #e8e8e5 100%); clip-path: polygon(0 0, 72% 0, 100% 35%, 82% 49%, 100% 100%, 0 100%); }
.hero-panel::after { content: ""; position: absolute; top: 0; right: 24%; width: 3px; height: 37%; background: var(--acid); transform: rotate(-34.5deg); transform-origin: top right; }
.constellation-logo { width: min(250px, 57%); height: auto; display: block; filter: contrast(1.02); }
.constellation-hero .hero-copy { position: relative; z-index: 4; min-height: 100%; margin-left: min(39vw, 620px); display: flex; align-items: center; padding: 7vh 7vw 7vh 4vw; }
.hero-copy-inner { max-width: 920px; }
.eyebrow, .section-kicker { color: var(--acid); text-transform: uppercase; letter-spacing: 0.13em; font-size: 0.68rem; font-weight: 700; }
.eyebrow { display: flex; gap: 0.6rem; align-items: center; margin: 0 0 1.65rem; }
.eyebrow-dot { display: inline-block; width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255, 196, 0, 0.14); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.065em; }
h1 { max-width: 730px; margin-bottom: 1.8rem; font-size: clamp(3.6rem, 7.5vw, 7.8rem); line-height: 0.93; }
.constellation-hero h1 { max-width: 920px; font-size: clamp(2.7rem, 5.2vw, 5.9rem); line-height: 1.03; letter-spacing: -0.045em; font-weight: 820; }
h1 em, h2 em { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -0.08em; }
h1 em { color: var(--acid); }
.gold { color: var(--acid); }
.hero-rule { width: 72px; height: 4px; margin: 30px 0 28px; background: var(--acid); }
.hero-claim { margin: 0 0 14px; font-size: clamp(1.16rem, 1.6vw, 1.95rem); line-height: 1.38; }
.hero-claim strong { color: var(--acid); }
.hero-lede { max-width: 760px; margin-bottom: 0; color: #d6d8db; font-size: clamp(1rem, 1.15vw, 1.28rem); line-height: 1.58; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; }
.button { display: inline-flex; align-items: center; gap: 1rem; padding: 0.95rem 1.2rem; border-radius: 100px; font-size: 0.8rem; font-weight: 700; transition: transform 180ms ease, background 180ms ease, color 180ms ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { background: var(--acid); color: var(--ink); }
.button-primary:hover, .button-primary:focus-visible { background: #ffe04a; }
.button span { font-size: 1.1rem; line-height: 0; }
.text-link { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--paper); font-size: 0.8rem; font-weight: 700; border-bottom: 1px solid var(--line); padding-bottom: 0.35rem; }
.text-link span { color: var(--acid); font-size: 1rem; transition: transform 180ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.hero-badge { position: absolute; right: 22px; bottom: 18px; z-index: 5; color: rgba(255, 255, 255, 0.34); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.constellation-hero .reveal { opacity: 1; transform: none; transition: none; }

.intro-section { padding-top: clamp(6rem, 13vw, 13rem); padding-bottom: clamp(6rem, 13vw, 13rem); }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, 0.6fr); gap: clamp(2rem, 10vw, 10rem); margin-top: 2.3rem; }
h2 { margin-bottom: 0; font-size: clamp(2.8rem, 5.7vw, 6rem); line-height: 0.97; }
.intro-grid h2 { max-width: 760px; }
.intro-grid h2 em, .section-heading h2 em, .projects-heading h2 em { color: var(--acid); }
.intro-body { align-self: end; max-width: 360px; color: var(--muted); }
.intro-body p { margin-bottom: 2rem; }

.page-intro { padding-top: clamp(5rem, 12vw, 10rem); padding-bottom: clamp(4rem, 8vw, 7rem); }
.page-intro-copy { max-width: 900px; }
.page-intro h1 { max-width: 900px; margin: 1.8rem 0 1.5rem; }
.page-intro p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.services-section { padding-bottom: clamp(7rem, 14vw, 13rem); }
.services-page-section { padding-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 3.5rem; }
.section-heading h2 { max-width: 730px; margin-top: 1.8rem; }
.services-heading { align-items: end; }
.services-intro { max-width: 350px; margin: 0 0 0.25rem; color: var(--muted); font-size: 0.9rem; }
.services-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.18); }
.service-card { min-height: 360px; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: clamp(1.35rem, 3vw, 2.6rem); border-top: 3px solid transparent; transition: background 220ms ease, border-color 220ms ease, transform 220ms ease, color 220ms ease; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.service-card > * { position: relative; z-index: 1; }
.service-card::before { content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: 0.28; background: url("assets/tech-network.svg") center / cover no-repeat; mix-blend-mode: screen; }
.service-card::after { content: ""; position: absolute; z-index: 0; right: -2rem; bottom: -3rem; width: 12rem; height: 12rem; border: 1px solid currentColor; border-radius: 50%; opacity: 0.15; box-shadow: 0 0 0 1.2rem transparent, 0 0 0 1.3rem currentColor, 0 0 0 2.5rem transparent, 0 0 0 2.6rem currentColor; }
.service-card:hover { border-top-color: var(--acid); transform: translateY(-3px); }
.service-card-featured { background: linear-gradient(135deg, #161616, #000000 62%, rgba(255, 210, 0, 0.18)); color: var(--paper); border-top-color: var(--acid); }
.service-card-featured:hover { background: linear-gradient(135deg, #232323, #000000 62%, rgba(255, 210, 0, 0.28)); }
.service-card-web { box-shadow: inset 0 0 0 1px rgba(255, 210, 0, 0.12); }
.service-card-web::before { opacity: 0.48; }
.service-card-bookings { background: var(--paper-muted); color: var(--ink); border-top-color: var(--ink); }
.service-card-bookings::before { opacity: 0.1; mix-blend-mode: multiply; filter: grayscale(1); }
.service-card-bookings::after { color: var(--acid-dark); }
.service-card-bookings:hover { background: #ffffff; border-top-color: var(--acid); }
.service-card-bots { background: var(--acid); color: var(--ink); border-top-color: var(--ink); }
.service-card-bots::before { opacity: 0.14; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.4); }
.service-card-bots::after { opacity: 0.24; }
.service-card-bots:hover { background: #ffe04a; border-top-color: var(--ink); }
.service-card-automation { min-height: 360px; background: linear-gradient(115deg, #080808 0%, #171717 55%, #3e3400 100%); color: var(--paper); border-top-color: var(--acid); }
.service-card-automation::before { opacity: 0.56; }
.service-card-automation:hover { background: linear-gradient(115deg, #111111 0%, #252525 55%, #5b4a00 100%); }
.service-card-wide { grid-column: auto; }
.service-card-top { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.service-number { color: var(--acid); font-size: 0.72rem; font-weight: 700; }
.service-symbol { color: var(--acid); font-size: 1.45rem; line-height: 1; }
.service-label { margin-bottom: 0.9rem; color: var(--acid); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.service-card-bookings .service-label, .service-card-bookings .service-number, .service-card-bookings .service-symbol { color: var(--ink); }
.service-card-bots .service-label, .service-card-bots .service-number, .service-card-bots .service-symbol { color: var(--ink); }
.service-card h3 { max-width: 480px; margin-bottom: 1rem; font-size: clamp(1.75rem, 3.2vw, 3.15rem); line-height: 0.96; letter-spacing: -0.07em; position: relative; z-index: 1; }
.service-card h3 strong { color: var(--acid); font-weight: 650; }
.service-card-bookings h3 strong, .service-card-bots h3 strong { color: var(--ink); text-decoration: underline; text-decoration-color: var(--acid-dark); text-decoration-thickness: 0.12em; text-underline-offset: 0.08em; }
.service-description { max-width: 380px; margin-bottom: 0.8rem; color: var(--muted); font-size: 0.88rem; position: relative; z-index: 1; }
.service-card-bookings .service-description, .service-card-bots .service-description { color: rgba(0, 0, 0, 0.68); }
.service-proof { display: flex; flex-wrap: wrap; gap: 0.45rem; position: relative; z-index: 1; }
.service-proof span { padding: 0.34rem 0.56rem; border: 1px solid currentColor; border-radius: 999px; color: var(--acid); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.service-card-bookings .service-proof span, .service-card-bots .service-proof span { color: var(--ink); }
.card-arrow { position: absolute; right: clamp(1.35rem, 3vw, 2.6rem); bottom: clamp(1.35rem, 3vw, 2.6rem); color: var(--acid); font-size: 1.5rem; }
.service-card-featured .card-arrow { color: var(--ink); }
.services-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center; margin-top: 1px; padding: clamp(2rem, 5vw, 4.5rem); background: linear-gradient(115deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025) 50%, rgba(255, 210, 0, 0.09)); border: 1px solid rgba(255, 255, 255, 0.2); border-top: 2px solid var(--acid); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.services-cta h3 { max-width: 700px; margin: 1.1rem 0 0.8rem; font-size: clamp(2rem, 4.6vw, 4.4rem); line-height: 0.95; }
.services-cta h3 em { color: var(--acid); }
.services-cta p { max-width: 560px; margin: 0; color: var(--muted); font-size: 0.9rem; }
.services-cta .button { justify-self: end; white-space: nowrap; }

.projects-section { padding-bottom: clamp(7rem, 14vw, 13rem); }
.projects-heading { display: flex; justify-content: space-between; align-items: end; gap: 3rem; margin-bottom: 3.8rem; }
.projects-heading h2 { max-width: 680px; margin-top: 1.8rem; }
.projects-heading p { max-width: 260px; margin-bottom: 0.25rem; color: var(--muted); font-size: 0.85rem; }
.project-grid { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(2.8rem, 6vw, 6.5rem) 1.5rem; align-items: start; }
.project-card { display: block; }
.project-card-large { grid-row: span 2; }
.project-art { min-height: 335px; display: grid; place-items: center; overflow: hidden; position: relative; border: 1px solid rgba(255, 255, 255, 0.18); }
.project-card-large .project-art { min-height: 650px; }
.project-art::before { content: ""; position: absolute; inset: 0; background: url("assets/tech-network.svg") center / cover no-repeat; opacity: 0.3; mix-blend-mode: screen; }
.project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, transparent, rgba(0,0,0,0.25)); mix-blend-mode: multiply; }
.project-art-1 { background: radial-gradient(circle at 30% 28%, #ffd200 0 9%, transparent 9.4%), linear-gradient(145deg, #2a2a2a, #000000 67%); }
.project-art-2 { background: linear-gradient(135deg, #ffffff 0 44%, #ffd200 44% 72%, #f2f2f2 72%); }
.project-art-3 { background: radial-gradient(circle at 70% 32%, #ffd200 0 14%, transparent 14.3%), linear-gradient(145deg, #000000, #777777); }
.project-placeholder { position: relative; z-index: 1; color: rgba(255,255,255,0.8); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; }
.project-art-2 .project-placeholder { color: var(--ink); }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.85rem; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; }
.project-meta span:last-child { color: var(--acid); font-size: 1.1rem; line-height: 0.7; }

.process-section { padding-bottom: clamp(7rem, 14vw, 13rem); }
.process-list { border-top: 1px solid rgba(255, 255, 255, 0.2); background: rgba(255, 255, 255, 0.025); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.process-step { display: grid; grid-template-columns: 80px minmax(0, 1fr) 40px; gap: 2rem; align-items: center; padding: 1.65rem 1.15rem; border-bottom: 1px solid var(--line); }
.process-number { color: var(--acid); font-size: 0.74rem; }
.process-step h3 { margin: 0 0 0.2rem; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.process-step p { max-width: 450px; margin: 0; color: var(--muted); font-size: 0.88rem; }
.process-icon { justify-self: end; color: var(--acid); font-size: 1.4rem; }

.contact-section { padding-bottom: clamp(4rem, 9vw, 8rem); }
.contact-card { padding: clamp(2rem, 7vw, 6rem); background: linear-gradient(125deg, rgba(255, 210, 0, 0.96), rgba(255, 210, 0, 0.72)); color: var(--ink); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 30px 80px rgba(255, 210, 0, 0.1); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.contact-card .section-kicker { color: rgba(18,18,18,0.62); }
.contact-card h2 { max-width: 760px; margin: 1.8rem 0 1.2rem; }
.contact-card h2 em { color: var(--ink); }
.contact-card p { max-width: 420px; color: rgba(18,18,18,0.7); }
.button-light { margin-top: 1.1rem; background: var(--ink); color: var(--paper); }
.button-light:hover, .button-light:focus-visible { background: #1a1a1a; }

.site-footer { width: min(var(--max-width), 100%); margin: 0 auto; padding: 0 var(--side-pad) 2rem; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: start; gap: 2rem; padding: 2rem 0 4rem; border-top: 1px solid var(--line); }
.footer-brand { align-self: start; }
.footer-top p { justify-self: center; margin: 0; color: var(--muted); font-size: 0.8rem; }
.back-to-top { justify-self: end; color: var(--muted); font-size: 0.78rem; }
.back-to-top span { color: var(--acid); margin-left: 0.5rem; }
.footer-bottom { display: flex; justify-content: space-between; color: #777777; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 700ms ease, transform 700ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { height: 68px; }
  .home-header { width: 100%; }
  .site-shell#servicios > main { padding-top: 68px; }
  .brand-mark { width: 28px; height: 37px; }
  .header-claim { padding-left: 0.6rem; font-size: 0.92rem; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 68px; right: var(--side-pad); left: var(--side-pad); display: grid; gap: 0.15rem; padding: 0.65rem; background: rgba(17, 17, 17, 0.94); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 0.8rem; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.38); opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity 180ms ease, transform 180ms ease; }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .site-nav a { padding: 0.75rem; border-radius: 0.55rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .nav-cta { margin-top: 0.35rem; justify-content: center; text-align: center; }
  .constellation-hero { height: auto; min-height: 100svh; }
  .hero-panel { position: relative; width: 100%; min-width: 0; height: 31vh; min-height: 220px; clip-path: polygon(0 0, 100% 0, 100% 78%, 78% 100%, 0 100%); padding: 28px 0 54px 7vw; }
  .hero-panel::after { display: none; }
  .constellation-logo { width: 150px; }
  .constellation-hero .hero-copy { min-height: 69vh; margin-left: 0; padding: 48px 8vw 84px; align-items: flex-start; }
  .constellation-hero h1 { font-size: clamp(2.7rem, 11vw, 4.7rem); }
  .hero-badge { display: none; }
  .brand-mark { width: 28px; height: 37px; }
  .intro-grid, .projects-heading { grid-template-columns: 1fr; display: grid; gap: 2rem; }
  .intro-body { max-width: 450px; }
  .section-heading { display: block; }
  .section-heading h2 { margin-top: 1.4rem; }
  .services-intro { margin-top: 1.5rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card, .service-card-wide { grid-column: auto; min-height: 285px; }
  .services-cta { grid-template-columns: 1fr; }
  .services-cta .button { justify-self: start; }
  .project-grid { grid-template-columns: 1fr; gap: 2.7rem; }
  .project-card-large { grid-row: auto; }
  .project-art, .project-card-large .project-art { min-height: 420px; }
  .process-step { grid-template-columns: 42px minmax(0, 1fr) 22px; gap: 0.75rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top p { justify-self: start; grid-column: span 2; grid-row: 2; }
  .back-to-top { grid-column: 2; grid-row: 1; }
}

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

/* AEME / efecto wow — capa de dirección de arte y movimiento */
:root {
  --acid-bright: #ffe45a;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.22, 1.18, .36, 1);
}

:focus-visible {
  outline: 2px solid var(--acid-bright);
  outline-offset: 5px;
}

body { overflow-x: hidden; }

.scroll-progress {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--acid);
  box-shadow: 0 0 22px rgba(255, 210, 0, 0.8);
  pointer-events: none;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
}

.site-header {
  transition: background 550ms ease, border-color 550ms ease, box-shadow 550ms ease, transform 550ms var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(5, 6, 7, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

.site-shell::before {
  background-size: min(1200px, 100vw) 800px;
  animation: network-drift 28s ease-in-out infinite alternate;
}

.constellation-hero {
  --pointer-x: 0;
  --pointer-y: 0;
  min-height: min(720px, 100svh);
  isolation: isolate;
}

.hero-scene { transform: scale(1.015); transform-origin: center; }

.hero-overlay {
  background:
    radial-gradient(circle at 73% 42%, rgba(255, 210, 0, 0.13), transparent 25%),
    radial-gradient(circle at 90% 78%, rgba(255, 210, 0, 0.11), transparent 28%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.08) 40%, rgba(0, 0, 0, 0.3));
}

.hero-scanlines {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: repeating-linear-gradient(110deg, transparent 0 46px, rgba(255, 255, 255, 0.65) 47px, transparent 48px 94px);
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 92%, transparent);
  animation: hero-lines-drift 18s ease-in-out infinite alternate;
}

.hero-orbit {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(255, 210, 0, 0.26);
  border-radius: 50%;
  transform: translate3d(calc(var(--pointer-x) * -0.35px), calc(var(--pointer-y) * -0.35px), 0) rotate(-22deg);
  transition: transform 1.2s var(--ease-out);
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero-orbit::before {
  top: 10%;
  left: 18%;
  width: 7px;
  height: 7px;
  background: var(--acid);
  box-shadow: 0 0 0 7px rgba(255, 210, 0, 0.12), 0 0 28px rgba(255, 210, 0, 0.7);
}

.hero-orbit::after {
  right: 20%;
  bottom: 10%;
  width: 4px;
  height: 4px;
  background: white;
  box-shadow: 0 0 18px white;
}

.hero-orbit-one {
  top: -42%;
  right: -9%;
  width: min(72vw, 980px);
  aspect-ratio: 1;
  animation: orbit-spin 34s linear infinite;
}

.hero-orbit-two {
  right: 4%;
  bottom: -42%;
  width: min(43vw, 600px);
  aspect-ratio: 1;
  border-color: rgba(255, 255, 255, 0.12);
  transform: translate3d(calc(var(--pointer-x) * 0.2px), calc(var(--pointer-y) * 0.2px), 0) rotate(38deg);
  animation: orbit-spin-reverse 42s linear infinite;
}

.hero-panel {
  box-shadow: 18px 0 60px rgba(0, 0, 0, 0.15);
  animation: hero-panel-in 1.2s var(--ease-out) both;
}

.hero-panel-code,
.hero-panel-foot {
  position: absolute;
  z-index: 1;
  color: #202020;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-panel-code { top: clamp(1.6rem, 4vw, 3.4rem); left: clamp(1.7rem, 5vw, 5rem); }
.hero-panel-foot { bottom: clamp(1.4rem, 3vw, 2.6rem); left: clamp(1.7rem, 5vw, 5rem); opacity: 0.56; }

.hero-panel-code::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 2px;
  margin: 0 9px 3px 0;
  background: var(--acid);
}

.constellation-logo { filter: contrast(1.05) drop-shadow(0 16px 20px rgba(0, 0, 0, 0.08)); }

.constellation-hero .hero-copy {
  animation: hero-copy-in 1.15s 120ms var(--ease-out) both;
}

.eyebrow { min-height: 1.2rem; }
.eyebrow-line { width: 54px; height: 1px; display: inline-block; background: rgba(255, 210, 0, 0.55); }

.hero-rule {
  position: relative;
  width: 105px;
  height: 3px;
  margin: 27px 0 25px;
  box-shadow: 0 0 22px rgba(255, 210, 0, 0.42);
}

.hero-rule::after {
  content: "";
  position: absolute;
  top: -3px;
  right: -2px;
  width: 9px;
  height: 9px;
  border: 1px solid var(--acid);
  border-radius: 50%;
  background: #050607;
}

.hero-lede { text-wrap: balance; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
  margin-top: 2rem;
}

.hero-actions .button { border-radius: 0.25rem; box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3); }
.hero-actions .button:hover { box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.15rem;
  margin-top: 2.6rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-meta span { display: inline-flex; align-items: center; gap: 0.38rem; }
.hero-meta b { color: var(--acid); font-size: 0.58rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.5rem;
  border-left: 1px solid rgba(255, 210, 0, 0.6);
  background: rgba(0, 0, 0, 0.18);
}

.hero-badge span { color: var(--acid); }

.hero-scroll {
  position: absolute;
  right: 4.5vw;
  bottom: 1.55rem;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.hero-scroll i {
  width: 1px;
  height: 54px;
  display: block;
  background: linear-gradient(var(--acid), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

.hero-crosshair {
  position: absolute;
  z-index: 4;
  width: 28px;
  height: 28px;
  pointer-events: none;
  opacity: 0.65;
}

.hero-crosshair::before,
.hero-crosshair::after,
.hero-crosshair span,
.hero-crosshair i { content: ""; position: absolute; display: block; background: var(--acid); }
.hero-crosshair::before { top: 0; left: 0; width: 1px; height: 10px; }
.hero-crosshair::after { top: 0; left: 0; width: 10px; height: 1px; }
.hero-crosshair span { right: 0; bottom: 0; width: 1px; height: 10px; }
.hero-crosshair i { right: 0; bottom: 0; width: 10px; height: 1px; }
.hero-crosshair-top { top: 108px; right: 5vw; }
.hero-crosshair-bottom { right: 37vw; bottom: 8%; opacity: 0.3; transform: rotate(180deg); }

.signal-strip {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-block: 1px solid rgba(0, 0, 0, 0.16);
  color: var(--ink);
  background: var(--acid);
}

.signal-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 1.4rem;
  padding: 0.8rem 0;
  animation: marquee 28s linear infinite;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-track b { font-size: 0.9rem; font-weight: 500; }

.section-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-index {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker .section-index { color: rgba(255, 255, 255, 0.42); }

.intro-section { position: relative; }
.intro-section::after {
  content: "";
  position: absolute;
  top: 14%;
  right: -11rem;
  width: 26rem;
  height: 26rem;
  border: 1px solid rgba(255, 210, 0, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 2.6rem rgba(255, 210, 0, 0.025), 0 0 0 5.2rem rgba(255, 210, 0, 0.018);
  pointer-events: none;
}

.intro-body {
  position: relative;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.intro-signal {
  display: flex;
  align-items: end;
  gap: 4px;
  width: 42px;
  height: 22px;
  margin-bottom: 1.45rem;
}

.intro-signal span {
  width: 5px;
  height: 35%;
  background: var(--acid);
  animation: signal-bar 1.6s ease-in-out infinite alternate;
}

.intro-signal span:nth-child(2) { height: 72%; animation-delay: -0.25s; }
.intro-signal span:nth-child(3) { height: 48%; animation-delay: -0.5s; }
.intro-signal span:nth-child(4) { height: 100%; animation-delay: -0.75s; }
.intro-signal span:nth-child(5) { height: 60%; animation-delay: -1s; }

.process-list {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.process-step {
  position: relative;
  transition: background 500ms ease, padding 500ms var(--ease-out);
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--acid);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 500ms var(--ease-out);
}

.process-step:hover,
.process-step:focus-within { background: rgba(255, 210, 0, 0.07); padding-left: 1.6rem; }
.process-step:hover::before,
.process-step:focus-within::before { transform: scaleY(1); }
.process-icon { transition: transform 500ms var(--ease-spring); }
.process-step:hover .process-icon { transform: translate(4px, -4px); }

.contact-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 32px 100px rgba(255, 210, 0, 0.15);
}

.contact-card > :not(.contact-card-glow) { position: relative; z-index: 1; }

.contact-card::before,
.contact-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.contact-card::before {
  inset: 0;
  opacity: 0.26;
  background: linear-gradient(120deg, transparent 14%, rgba(255, 255, 255, 0.28) 14.2%, transparent 14.5% 48%, rgba(0, 0, 0, 0.12) 48.2%, transparent 48.6% 78%, rgba(255, 255, 255, 0.22) 78.2%, transparent 78.5%);
}

.contact-card::after {
  top: -9rem;
  right: -6rem;
  width: 30rem;
  height: 30rem;
  border: 1px solid rgba(0, 0, 0, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5rem rgba(0, 0, 0, 0.035), 0 0 0 5rem rgba(0, 0, 0, 0.025);
  animation: orbit-spin-reverse 34s linear infinite;
}

.contact-card-glow {
  position: absolute;
  z-index: 0;
  top: 28%;
  right: 30%;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  filter: blur(60px);
  pointer-events: none;
}

.contact-signature {
  position: absolute !important;
  right: clamp(1.3rem, 4vw, 4rem);
  bottom: clamp(1.1rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(0, 0, 0, 0.45);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.contact-signature i { width: 34px; height: 1px; background: rgba(0, 0, 0, 0.45); }

.page-intro {
  position: relative;
  min-height: 510px;
  overflow: hidden;
  isolation: isolate;
}

.page-intro::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.4;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    radial-gradient(circle at 85% 46%, rgba(255, 210, 0, 0.15), transparent 19rem);
  background-size: 62px 62px, 62px 62px, auto;
  mask-image: linear-gradient(90deg, #000 0%, #000 57%, transparent 100%);
}

.page-intro-copy { position: relative; z-index: 1; }

.page-intro-orbit {
  position: absolute;
  top: 4rem;
  right: -4rem;
  width: min(42vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 210, 0, 0.28);
  border-radius: 50%;
  transform: rotate(-24deg);
  animation: orbit-spin 32s linear infinite;
}

.page-intro-orbit::before,
.page-intro-orbit::after,
.page-intro-orbit span,
.page-intro-orbit i,
.page-intro-orbit b { content: ""; position: absolute; display: block; border-radius: 50%; }
.page-intro-orbit::before { inset: 14%; border: 1px solid rgba(255, 255, 255, 0.12); }
.page-intro-orbit::after { inset: 29%; border: 1px dashed rgba(255, 210, 0, 0.2); }
.page-intro-orbit span { top: 13%; left: 18%; width: 9px; height: 9px; background: var(--acid); box-shadow: 0 0 0 8px rgba(255, 210, 0, 0.1), 0 0 26px var(--acid); }
.page-intro-orbit i { right: 29%; bottom: 13%; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 20px #fff; }
.page-intro-orbit b { top: 47%; right: -3px; width: 7px; height: 7px; background: var(--acid); }

.page-intro-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-left-color: var(--acid);
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px rgba(255, 210, 0, 0.12), 0 0 14px rgba(255, 210, 0, 0.55);
  animation: status-pulse 1.9s ease-in-out infinite;
}

.services-section { position: relative; }
.services-grid { box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22); }
.service-card { min-height: 390px; transition: background 500ms ease, border-color 500ms ease, transform 650ms var(--ease-out), box-shadow 650ms ease; }
.service-card:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28); transform: translateY(-6px); z-index: 2; }
.service-card::before { transition: opacity 700ms ease, transform 900ms var(--ease-out); }
.service-card:hover::before { opacity: 0.68; transform: scale(1.08) translate3d(-1%, -1%, 0); }
.service-card::after { transition: transform 900ms var(--ease-out), opacity 500ms ease; }
.service-card:hover::after { opacity: 0.3; transform: scale(1.12) rotate(10deg); }
.service-symbol { transition: transform 500ms var(--ease-spring); }
.service-card:hover .service-symbol { transform: translate(4px, -4px) rotate(8deg); }

.service-flow {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 0.8fr);
  align-items: center;
  gap: 0.75rem;
  margin-top: 1px;
  padding: 1.1rem clamp(1rem, 2.5vw, 2rem);
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 0;
  font-size: 0.61rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-flow-label { color: var(--acid); }
.service-flow-line { display: none; }
.service-flow > span:not(.service-flow-label) { text-align: right; }

.services-cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.services-cta::after {
  content: "";
  position: absolute;
  top: -7rem;
  right: 14%;
  width: 18rem;
  height: 18rem;
  border: 1px solid rgba(255, 210, 0, 0.25);
  border-radius: 50%;
  box-shadow: 0 0 0 1.8rem rgba(255, 210, 0, 0.035), 0 0 0 3.6rem rgba(255, 210, 0, 0.025);
  pointer-events: none;
  animation: orbit-spin-reverse 40s linear infinite;
}

@keyframes network-drift {
  from { background-position: 75% 0; }
  to { background-position: 68% 42px; }
}

@keyframes hero-lines-drift {
  from { background-position: 0 0; transform: translate3d(-1.5%, 0, 0); }
  to { background-position: 72px 0; transform: translate3d(1.5%, 0, 0); }
}

@keyframes hero-panel-in {
  from { opacity: 0; transform: translate3d(-8%, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes hero-copy-in {
  from { opacity: 0; transform: translate3d(0, 28px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes orbit-spin { to { transform: rotate(338deg); } }
@keyframes orbit-spin-reverse { to { transform: rotate(-322deg); } }

@keyframes scroll-line {
  0%, 100% { opacity: 0.3; transform: scaleY(0.55); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes signal-bar { to { transform: scaleY(0.5); opacity: 0.6; } }
@keyframes status-pulse { 50% { opacity: 0.45; transform: scale(0.72); } }

@media (max-width: 900px) {
  .hero-panel-code { top: 1.35rem; left: 7vw; }
  .hero-panel-foot { bottom: 1.15rem; left: 7vw; }
  .hero-scanlines { opacity: 0.08; }
  .hero-orbit-one { top: 12%; right: -58%; width: 120vw; }
  .hero-orbit-two { right: -34%; bottom: -10%; width: 92vw; }
  .hero-crosshair-top { top: 91px; right: 7vw; }
  .hero-crosshair-bottom { right: 10vw; bottom: 8%; }
  .hero-scroll { right: 6vw; bottom: 1.35rem; }
  .hero-meta { margin-top: 2rem; gap: 0.55rem 0.9rem; }
  .signal-track { animation-duration: 22s; }
  .intro-section::after { right: -15rem; }
  .page-intro { min-height: 470px; }
  .page-intro-orbit { top: 10rem; right: -24%; width: 72vw; opacity: 0.75; }
  .service-flow { grid-template-columns: 1fr 1fr; gap: 0.75rem 1rem; }
  .service-flow-label { grid-column: 1 / -1; }
  .service-flow > span:not(.service-flow-label) { text-align: left; }
}

@media (max-width: 600px) {
  .section-kicker-row { align-items: flex-start; }
  .section-index { font-size: 0.55rem; }
  .hero-panel { padding-bottom: 44px; }
  .constellation-logo { width: 138px; }
  .constellation-hero .hero-copy { padding-top: 42px; padding-bottom: 78px; }
  .eyebrow { flex-wrap: wrap; row-gap: 0.45rem; }
  .eyebrow-line { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .hero-actions .button { width: fit-content; }
  .hero-meta { display: grid; grid-template-columns: 1fr 1fr; }
  .hero-meta span:last-child { grid-column: 1 / -1; }
  .hero-scroll { display: none; }
  .hero-badge { right: 12px; bottom: 12px; font-size: 9px; }
  .signal-track { padding-block: 0.7rem; font-size: 0.58rem; }
  .intro-signal { margin-bottom: 1.1rem; }
  .contact-signature { position: relative !important; right: auto; bottom: auto; margin-top: 2.2rem; }
  .page-intro-note { max-width: 290px; }
  .service-flow { grid-template-columns: 1fr 1fr; }
  .service-flow-line { display: block; grid-column: 1 / -1; height: 1px; background: rgba(255, 255, 255, 0.16); }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { transform: none; }
  .hero-scene { transform: none; }
  .hero-meta, .signal-track { animation: none; }
  .hero-orbit, .page-intro-orbit, .contact-card::after, .services-cta::after { animation: none; }
}

/* AEME / portada contenida y navegación siempre visible */
html { scroll-padding-top: 86px; }

/* La cabecera es fija: la portada empieza debajo de ella y no queda tapada. */
.site-shell#inicio > main { padding-top: 74px; }

.site-header {
  position: fixed;
  top: 0;
  z-index: 30;
}

.constellation-hero {
  height: clamp(560px, 74vh, 760px);
  min-height: 0;
  max-height: 760px;
}

.constellation-hero h1 {
  max-width: 680px;
  margin-bottom: 0;
  font-size: clamp(3.2rem, 5.2vw, 5.6rem);
  line-height: 0.98;
}

.hero-rule { margin: 22px 0 20px; }
.hero-lede { max-width: 34rem; margin: 0; font-size: clamp(1rem, 1.15vw, 1.22rem); }
.hero-actions { margin-top: 1.6rem; }

.hero-actions .button {
  min-width: 15.5rem;
  min-height: 3.65rem;
  justify-content: center;
  padding: 1.05rem 1.5rem;
  border-radius: 0.28rem;
  font-size: 0.92rem;
}

@media (max-width: 900px) {
  .site-shell#inicio > main { padding-top: 68px; }

  .constellation-hero {
    display: grid;
    grid-template-rows: minmax(180px, 38%) minmax(0, 1fr);
    height: clamp(500px, 66svh, 610px);
    min-height: 0;
    max-height: 610px;
  }

  .hero-panel {
    position: relative;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 0;
    padding: 28px 0 46px 7vw;
  }

  .constellation-hero .hero-copy {
    grid-row: 2;
    min-height: 0;
    margin-left: 0;
    padding: 34px 8vw 40px;
    align-items: center;
  }

  .constellation-hero h1 {
    max-width: 650px;
    font-size: clamp(2.7rem, 10vw, 4.7rem);
  }

  .hero-panel-foot,
  .hero-meta,
  .hero-badge,
  .hero-scroll { display: none; }
}

@media (max-width: 600px) {
  .constellation-hero {
    grid-template-rows: minmax(172px, 38%) minmax(0, 1fr);
    height: clamp(500px, 66svh, 570px);
    max-height: 570px;
  }

  .hero-panel { padding-bottom: 38px; }
  .constellation-logo { width: 122px; }

  .constellation-hero .hero-copy {
    padding: 26px 7vw 32px;
    align-items: flex-start;
  }

  .constellation-hero h1 {
    font-size: clamp(2.45rem, 10.4vw, 3.7rem);
    line-height: 0.98;
  }

  .hero-rule { margin: 18px 0 15px; }
  .hero-lede { font-size: 0.96rem; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 0; margin-top: 1.35rem; }
  .hero-actions .button { width: min(100%, 20rem); min-width: 0; min-height: 3.55rem; }
}

/* AEME / banner de portada v3: composición final recibida el 22-08-2026 */
.aeme-banner {
  position: relative;
  display: block;
  width: 100%;
  height: clamp(430px, 46vw, 680px);
  min-height: 430px;
  max-height: 680px;
  overflow: hidden;
  background: #050607;
  isolation: isolate;
}

.aeme-banner-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.94;
}

.aeme-banner-readability {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 83% 46%, rgba(255, 204, 0, 0.05), transparent 19%),
    linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.04) 37%, rgba(0, 0, 0, 0.19) 100%);
}

.aeme-banner-left {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(37vw, 575px);
  min-width: 355px;
  z-index: 3;
  pointer-events: none;
}

.aeme-banner-panel,
.aeme-banner-glass,
.aeme-banner-soft,
.aeme-banner-bevel,
.aeme-banner-logo-box {
  position: absolute;
}

.aeme-banner-panel {
  inset: 0;
  background: linear-gradient(145deg, rgba(252, 252, 251, 0.985) 0%, rgba(246, 246, 244, 0.975) 76%, rgba(233, 233, 230, 0.965) 100%);
  clip-path: polygon(0 0, 71.2% 0, 100% 36%, 82.5% 50.5%, 100% 100%, 0 100%);
}

.aeme-banner-glass {
  inset: 42% 0 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.33) 0%, rgba(255, 255, 255, 0.17) 34%, rgba(255, 255, 255, 0.06) 70%, rgba(255, 255, 255, 0) 100%);
  clip-path: polygon(45% 0, 83% 54%, 100% 100%, 0 100%, 0 58%);
  opacity: 0.96;
  backdrop-filter: blur(0.6px);
}

.aeme-banner-soft {
  inset: 58% 8% 0 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 55%, rgba(255, 255, 255, 0) 100%);
  clip-path: polygon(53% 0, 100% 100%, 0 100%, 0 62%);
  opacity: 0.88;
}

.aeme-banner-bevel {
  inset: 0;
  background: #ffcc00;
  clip-path: polygon(70.45% 0, 72.1% 0, 100% 34.95%, 100% 36.75%);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.2);
}

.aeme-banner-logo-box {
  left: clamp(88px, 9.8vw, 146px);
  top: 49%;
  z-index: 4;
  transform: translateY(-50%);
}

.aeme-banner-logo {
  display: block;
  width: min(258px, 56%);
  min-width: 178px;
  max-width: 258px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.08));
}

.aeme-banner-copy {
  position: absolute;
  inset: 0 0 0 min(39vw, 610px);
  z-index: 4;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: clamp(52px, 8.2vh, 92px) 6.4vw 4vh 1.8vw;
}

.aeme-banner-copy-inner {
  max-width: 860px;
}

.aeme-banner-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  color: #ffcc00;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1;
  text-transform: uppercase;
}

.aeme-banner-dot {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #ffcc00;
  box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.11);
}

.aeme-banner-line {
  width: 4rem;
  height: 1px;
  margin-left: 0.35rem;
  background: rgba(255, 204, 0, 0.7);
}

.aeme-banner h1 {
  max-width: 860px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.9rem, 5.15vw, 5.85rem);
  font-weight: 820;
  letter-spacing: -0.048em;
  line-height: 1.02;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.13);
  text-wrap: balance;
}

.aeme-banner .gold {
  color: #ffcc00;
}

.aeme-banner-rule {
  width: 74px;
  height: 4px;
  margin: 26px 0 24px;
  border-radius: 2px;
  background: #ffcc00;
}

.aeme-banner-claim {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(1.06rem, 1.56vw, 1.84rem);
  font-weight: 420;
  line-height: 1.34;
}

.aeme-banner-claim strong {
  color: #ffcc00;
  font-weight: 760;
}

.aeme-banner-sub {
  max-width: 710px;
  margin: 0;
  color: #d8dce1;
  font-size: clamp(0.95rem, 1.08vw, 1.22rem);
  font-weight: 400;
  line-height: 1.54;
}

.aeme-banner-sub .gold {
  color: #ffcc00;
  font-weight: 620;
}

.aeme-banner .hero-actions {
  align-items: flex-start;
  margin-top: 1.7rem;
}

.aeme-banner .hero-actions .button {
  min-width: 15.5rem;
  min-height: 3.65rem;
  justify-content: center;
  padding: 1.05rem 1.5rem;
  border-radius: 0.28rem;
  font-size: 0.92rem;
}

.aeme-banner-crosshair {
  position: absolute;
  z-index: 5;
  width: 22px;
  height: 22px;
  opacity: 0.72;
  pointer-events: none;
}

.aeme-banner-crosshair::before,
.aeme-banner-crosshair::after,
.aeme-banner-crosshair span,
.aeme-banner-crosshair i {
  position: absolute;
  display: block;
  content: "";
}

.aeme-banner-crosshair::before,
.aeme-banner-crosshair::after {
  background: rgba(255, 204, 0, 0.85);
}

.aeme-banner-crosshair::before {
  top: 10px;
  left: 0;
  width: 22px;
  height: 1px;
}

.aeme-banner-crosshair::after {
  top: 0;
  left: 10px;
  width: 1px;
  height: 22px;
}

.aeme-banner-crosshair span {
  inset: 6px;
  border: 1px solid rgba(255, 204, 0, 0.8);
  border-radius: 50%;
}

.aeme-banner-crosshair i {
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
}

.aeme-banner-crosshair-top {
  top: 12%;
  right: 7vw;
}

.aeme-banner-crosshair-bottom {
  right: 11vw;
  bottom: 12%;
}

.aeme-banner > .hero-badge {
  right: 5vw;
  bottom: 2.2rem;
  z-index: 5;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
}

@media (max-width: 1120px) {
  .aeme-banner-left {
    width: min(39vw, 500px);
    min-width: 320px;
  }

  .aeme-banner-logo-box {
    left: clamp(70px, 8vw, 112px);
  }

  .aeme-banner-copy {
    inset: 0 0 0 min(42vw, 520px);
    padding: 46px 5.5vw 4vh 1.5vw;
  }

  .aeme-banner h1 {
    font-size: clamp(2.55rem, 5vw, 4.8rem);
  }
}

@media (max-width: 760px) {
  .aeme-banner {
    height: 720px;
    min-height: 720px;
    max-height: none;
  }

  .aeme-banner-left {
    top: 0;
    right: 0;
    bottom: auto;
    width: 100%;
    height: 37%;
    min-width: 0;
  }

  .aeme-banner-panel {
    clip-path: polygon(0 0, 100% 0, 100% 73%, 78% 100%, 0 100%);
  }

  .aeme-banner-glass {
    top: 54%;
    clip-path: polygon(48% 0, 100% 100%, 0 100%, 0 62%);
  }

  .aeme-banner-soft {
    top: 68%;
    right: 0;
    clip-path: polygon(55% 0, 100% 100%, 0 100%, 0 70%);
  }

  /* El faldón amarillo pertenece solo a escritorio; se elimina en móvil. */
  .aeme-banner-bevel { display: none; }

  .aeme-banner-logo-box {
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
  }

  .aeme-banner-logo {
    width: 168px;
    min-width: 0;
  }

  .aeme-banner-copy {
    inset: 39% 0 0;
    align-items: flex-start;
    padding: 34px 8vw 48px;
  }

  .aeme-banner-eyebrow {
    margin-bottom: 1.05rem;
    font-size: 0.58rem;
  }

  .aeme-banner-line {
    display: none;
  }

  .aeme-banner h1 {
    font-size: clamp(2.08rem, 8.6vw, 3.25rem);
    line-height: 1.03;
    letter-spacing: -0.042em;
  }

  .aeme-banner-rule {
    width: 58px;
    height: 3px;
    margin: 18px 0;
  }

  .aeme-banner-claim {
    margin-bottom: 12px;
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .aeme-banner-sub {
    max-width: 100%;
    font-size: 0.95rem;
    line-height: 1.48;
  }

  .aeme-banner .hero-actions {
    margin-top: 1.35rem;
  }

  .aeme-banner .hero-actions .button {
    min-width: 0;
    min-height: 3.55rem;
  }

  .aeme-banner-crosshair-top {
    top: 13%;
    right: 7vw;
  }

  .aeme-banner-crosshair-bottom,
  .aeme-banner > .hero-badge {
    display: none;
  }
}

/* CTA principal bajo la animación y marcadores geométricos sin iconos Unicode */
.hero-cta-below {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: clamp(1.15rem, 2vw, 1.75rem) var(--side-pad);
  background: #050607;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cta-below .aeme-banner-cta {
  width: min(90vw, 31rem);
  justify-self: center;
  align-self: center;
  min-height: clamp(4.5rem, 6vw, 5.6rem);
  margin: 0 auto;
  justify-content: center;
  padding: 1.35rem 2rem;
  border-radius: 0.42rem;
  box-shadow: 0 12px 0 rgba(0, 0, 0, 0.24), 0 22px 38px rgba(255, 204, 0, 0.16);
  font-size: clamp(1rem, 1.45vw, 1.34rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-align: center;
}

.hero-cta-below .aeme-banner-cta:hover,
.hero-cta-below .aeme-banner-cta:focus-visible {
  box-shadow: 0 16px 0 rgba(0, 0, 0, 0.2), 0 25px 44px rgba(255, 204, 0, 0.22);
}

.signal-track .signal-separator {
  display: block;
  width: 0.34rem;
  height: 0.34rem;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 50%;
  background: currentColor;
  font-size: 0;
  opacity: 0.62;
}

.service-symbol {
  position: relative;
  display: block;
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: var(--acid);
  font-size: 0;
}

.service-symbol::before {
  position: absolute;
  inset: 0.1rem;
  content: "";
  border: 1px solid currentColor;
  transform: rotate(45deg);
}

.service-symbol::after {
  position: absolute;
  top: 0.5rem;
  right: 0;
  width: 0.52rem;
  height: 1px;
  content: "";
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
}

.process-step {
  grid-template-columns: 80px minmax(0, 1fr);
}

@media (max-width: 900px) {
  .process-step {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .hero-cta-below {
    padding-block: 1.25rem;
  }

  .hero-cta-below .aeme-banner-cta {
    width: min(90vw, 25rem);
    min-height: 4.35rem;
    padding-inline: 1.1rem;
    font-size: 1rem;
  }
}

/* CTA de portada: separación vertical simétrica y sin el hueco heredado del intro. */
.site-shell#inicio {
  --hero-cta-space: clamp(2rem, 4vw, 3.5rem);
}

.site-shell#inicio .hero-cta-below {
  padding: var(--hero-cta-space) var(--side-pad);
}

.site-shell#inicio .intro-section {
  padding-top: 0;
}

/* Servicios: cuadrícula 2+2, con aire suficiente para leer cada tarjeta. */
.site-shell#servicios .page-intro {
  min-height: auto;
  padding-top: clamp(3rem, 6vw, 6rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2.5rem);
}

.site-shell#servicios .page-intro h1 {
  margin-top: 1rem;
  margin-bottom: 0.8rem;
}

.services-page-section .services-heading {
  margin-bottom: clamp(0.65rem, 1.3vw, 1.25rem);
}

.services-page-section .services-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3.5rem);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.services-page-section .service-card,
.services-page-section .service-card-wide {
  grid-column: auto;
  min-height: clamp(320px, 30vw, 430px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-width: 3px;
}

.services-page-section .service-label {
  margin-bottom: clamp(1.05rem, 1.8vw, 1.45rem);
}

.services-page-section .service-card h3 {
  margin-top: 0;
  margin-bottom: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.02;
}

.services-page-section .services-cta {
  margin-top: clamp(3.25rem, 7vw, 7rem);
}

/* La portada queda limpia: la antigua fajilla de señales no se muestra en ningún viewport. */
.signal-strip {
  display: none !important;
}

@media (max-width: 760px) {
  .services-page-section .services-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.8rem, 6vw, 3rem);
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  .services-page-section .services-grid {
    grid-template-columns: 1fr;
  }
}
