/* ---------- Design tokens ---------- */

:root {
  color-scheme: dark;
  --bg: #080b12;
  --bg-soft: #0e1420;
  --surface: rgba(19, 27, 42, .78);
  --surface-solid: #111927;
  --text: #f4f7fb;
  --muted: #9ba8bb;
  --line: rgba(174, 195, 225, .14);
  --accent: #70f0d0;
  --accent-2: #8a9bff;
  --gradient: linear-gradient(115deg, #70f0d0 0%, #8a9bff 100%);
  --header-bg: rgba(8, 11, 18, .82);
  --shadow: 0 24px 80px rgba(0, 0, 0, .3);
  --transition: 220ms ease;
  --nav-glass: rgba(12, 16, 27, .78);
  --nav-border: rgba(255,255,255,.105);
  --nav-shadow: 0 18px 55px rgba(0,0,0,.24), 0 3px 12px rgba(0,0,0,.12);
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-soft: #edf2f8;
  --surface: rgba(255,255,255,.84);
  --surface-solid: #fff;
  --text: #101827;
  --muted: #59677b;
  --line: rgba(22, 38, 61, .13);
  --accent: #087f70;
  --accent-2: #5966d8;
  --gradient: linear-gradient(115deg, #087f70 0%, #5966d8 100%);
  --header-bg: rgba(247, 249, 252, .88);
  --shadow: 0 24px 80px rgba(26, 44, 75, .1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--transition), color var(--transition);
}

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button { font: inherit; }

img { max-width: 100%; height: auto; }

ul { list-style: none; margin: 0; padding: 0; }

::selection { background: var(--accent); color: #071018; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

/* ---------- Header / navigation ---------- */

.lys-site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: min(1160px, calc(100% - 40px));
  margin: 14px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  isolation: isolate;
}

.lys-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 22px;
  gap: 24px;
}

.lys-site-branding { flex-shrink: 0; }

.lys-custom-brand { display: inline-flex; align-items: center; gap: 10px; }

.lys-site-branding img { display: block; width: auto; max-width: 128px; max-height: 42px; object-fit: contain; }

.lys-brand-name,
.lys-footer-brand {
  font-weight: 760;
  letter-spacing: -.075em;
  color: var(--text);
}

.lys-brand-name span,
.lys-footer-brand span {
  color: var(--accent);
}

.lys-nav-wrapper { display: flex; align-items: center; justify-content: flex-end; flex: 1; gap: 24px; }

.lys-main-navigation .lys-primary-menu { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 34px); }

.lys-main-navigation a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 550;
  transition: color var(--transition);
}

.lys-main-navigation a:hover { color: var(--text); }

.lys-header-actions { display: flex; align-items: center; gap: 11px; }

.lys-btn-theme-switch {
  display: grid;
  place-items: center;
  color: var(--text);
  font-size: 1.15rem;
  cursor: pointer;
}

.lys-btn-theme-switch:hover { border-color: var(--accent); transform: translateY(-2px); }

[data-theme="light"] .lys-icon-moon { display: none; }

[data-theme="light"] .lys-icon-sun { display: inline; }

:root:not([data-theme="light"]) .lys-icon-sun { display: none; }

:root:not([data-theme="light"]) .lys-icon-moon { display: inline; }

.lys-btn-acceder { border: 1px solid var(--line); color: var(--text); }

.lys-btn-acceder:hover { background: var(--surface); border-color: var(--accent); }

.lys-hamburger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--nav-border);
  border-radius: 12px;
  background: rgba(127,139,170,.08);
}

/* ---------- Hero ---------- */

.lys-site-main { overflow: clip; }

.lys-hero {
  position: relative;
  isolation: isolate;
  max-width: 1240px;
  min-height: 590px;
  margin: 0 auto;
  padding: 92px 30px 78px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr);
  align-items: center;
  gap: 40px;
}

.lys-hero-content { position: relative; z-index: 2; }

.lys-eyebrow,
.lys-section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .16em;
}

.lys-eyebrow { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }

.lys-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 60%, transparent);
}

.lys-hero h1 {
  margin: 27px 0 22px;
  max-width: 680px;
  font-size: clamp(2.8rem, 5.5vw, 5.25rem);
  font-weight: 760;
  letter-spacing: -.055em;
  margin-top: 22px;
  margin-bottom: 18px;
}

.lys-hero h1 span,
.lys-section-heading h2 span,
.lys-cta-section h2 span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.lys-hero-description {
  max-width: 500px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.8;
}

.lys-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.lys-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.lys-button:hover { transform: translateY(-2px); }

.lys-button-primary {
  background: var(--gradient);
  color: #08121b;
  box-shadow: 0 10px 30px rgba(112, 240, 208, .12);
}

.lys-button-primary:hover { box-shadow: 0 14px 36px rgba(112, 240, 208, .22); }

.lys-button-ghost { border-color: var(--line); color: var(--text); background: var(--surface); }

.lys-button-ghost:hover { border-color: var(--accent); }

.lys-hero-glow { position: absolute; z-index: -1; pointer-events: none; filter: blur(2px); border-radius: 50%; }

.lys-hero-glow-one {
  width: 390px;
  height: 390px;
  right: 0;
  top: 8%;
  background: radial-gradient(circle, rgba(88, 111, 255, .12), transparent 70%);
}

.lys-hero-glow-two {
  width: 320px;
  height: 320px;
  left: 28%;
  bottom: -10%;
  background: radial-gradient(circle, rgba(61, 230, 194, .08), transparent 70%);
}

.lys-hero-visual {
  position: relative;
  min-height: 390px;
  place-items: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Trust strip / services ---------- */

.lys-section-wrap { max-width: 1240px; margin: 0 auto; padding-left: 30px; padding-right: 30px; }

.lys-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 40px;
}

.lys-section-heading h2,
.lys-cta-section h2 {
  margin: 16px 0 0;
  font-size: clamp(2.3rem, 4vw, 3.8rem);
  letter-spacing: -.065em;
}

.lys-section-heading > p {
  max-width: 330px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.8;
}

.lys-service-card {
  position: relative;
  min-height: 265px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface), transparent);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.lys-service-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  background: var(--surface);
}

.lys-service-number {
  position: absolute;
  top: 27px;
  right: 27px;
  color: var(--muted);
  opacity: .7;
  font-size: .72rem;
  letter-spacing: .1em;
}

.lys-service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(112,240,208,.2);
  border-radius: 10px;
  background: rgba(112,240,208,.07);
  color: var(--accent);
  font-size: 1.35rem;
}

.lys-service-card h3 { margin: 27px 0 9px; font-size: 1.13rem; letter-spacing: -.025em; }

.lys-service-card p { margin: 0; max-width: 300px; color: var(--muted); font-size: .87rem; line-height: 1.75; }

.lys-service-card > a {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--accent);
  font-size: 1.1rem;
  transition: background var(--transition), transform var(--transition);
}

.lys-service-card > a:hover { background: rgba(112,240,208,.1); transform: translate(2px, -2px); }

/* ---------- Call to action / footer / inner pages ---------- */

.lys-cta-section {
  max-width: 1180px;
  margin: 0 auto 100px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: radial-gradient(ellipse at 100% 0%, rgba(138,155,255,.11), transparent 45%), linear-gradient(120deg, var(--surface), transparent);
}

.lys-cta-section h2 { font-size: clamp(2.2rem, 4vw, 3.5rem); }

.lys-cta-section .lys-button { flex-shrink: 0; }

.lys-site-footer { border-top: 1px solid var(--line); }

.lys-footer-brand { font-size: 1.3rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .lys-main-navigation .lys-primary-menu { gap: 17px; }
  .lys-hero { gap: 20px; padding-top: 75px; }
  .lys-cta-section { margin-left: 24px; margin-right: 24px; }
}

@media (max-width: 820px) {
  .lys-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1002;
  }
  .lys-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
  }
  .lys-hamburger.lys-active span:first-child { transform: translateY(7px) rotate(45deg); }
  .lys-hamburger.lys-active span:nth-child(2) { opacity: 0; }
  .lys-hamburger.lys-active span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .lys-nav-wrapper {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(88vw, 370px);
    height: 100dvh;
    padding: 100px 28px 36px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    background: var(--bg-soft);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 280ms ease, visibility 280ms ease;
    z-index: 1001;
  }
  .lys-nav-wrapper.lys-active { transform: translateX(0); visibility: visible; }
  .lys-main-navigation .lys-primary-menu { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .lys-main-navigation li { border-bottom: 1px solid var(--line); }
  .lys-main-navigation a { display: block; padding: 15px 0; font-size: 1.05rem; }
  .lys-header-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }
  .lys-hero { grid-template-columns: 1fr; padding: 72px 28px 60px; }
  .lys-hero-content { max-width: 680px; }
  .lys-hero-visual { min-height: 380px; margin-top: 15px; }
  .lys-service-card { min-height: 225px; }
  .lys-cta-section { padding: 35px; margin-bottom: 70px; }
}

@media (max-width: 540px) {
  .lys-site-branding img { max-width: 94px; max-height: 34px; }
  .lys-hero { padding: 55px 20px 45px; }
  .lys-eyebrow { font-size: .57rem; letter-spacing: .1em; }
  .lys-hero-description { font-size: .96rem; }
  .lys-hero-actions { align-items: stretch; flex-direction: column; }
  .lys-button { width: 100%; }
  .lys-hero-visual { min-height: 315px; margin: 5px -5px 0; }
  .lys-section-wrap { padding-left: 20px; padding-right: 20px; }
  .lys-section-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 28px; }
  .lys-section-heading h2,
  .lys-cta-section h2 {
    font-size: 2.45rem;
  }
  .lys-service-card { padding: 23px; }
  .lys-service-card h3 { margin-top: 22px; }
  .lys-cta-section { align-items: stretch; flex-direction: column; padding: 28px 22px; margin: 0 20px 55px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Static-site additions ---------- */

.lys-about-copy h2,
.lys-projects-section h2 {
  margin: 16px 0 18px;
  font-size: clamp(2.3rem,4vw,3.8rem);
  letter-spacing: -.065em;
}

.lys-about-copy h2 span,
.lys-projects-section h2 span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.lys-about-copy p,
.lys-cta-section p {
  color: var(--muted);
  line-height: 1.8;
}

.lys-projects-section { padding-top: 20px; padding-bottom: 105px; }

@media(max-width:540px) {
  .lys-about-copy h2,
  .lys-projects-section h2 {
    font-size: 2.45rem;
  }
  .lys-projects-section { padding-bottom: 65px; }
}

/* ==========================================================
   LYSVEX — Floating premium navigation refresh
   ========================================================== */

html[data-theme="light"] {
  --nav-glass: rgba(255,255,255,.82);
  --nav-border: rgba(26,35,55,.11);
  --nav-shadow: 0 18px 48px rgba(35,48,75,.13), 0 3px 12px rgba(35,48,75,.06);
}

.lys-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px solid var(--nav-border);
  border-radius: 22px;
  background: var(--nav-glass);
  box-shadow: var(--nav-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
  backdrop-filter: blur(22px) saturate(155%);
}

.lys-custom-brand img { width: 35px; height: 35px; object-fit: contain; }

.lys-brand-name { font-size: 1.35rem; letter-spacing: -.065em; }

.lys-primary-menu { gap: 5px; }

.lys-primary-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.lys-primary-menu a:hover,
.lys-primary-menu a:focus-visible {
  color: var(--text);
  background: rgba(127,139,170,.10);
  border-color: var(--nav-border);
  transform: translateY(-1px);
  outline: none;
}

.lys-btn-theme-switch {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  border: 1px solid var(--nav-border);
  background: rgba(127,139,170,.08);
  transition: transform .2s ease, background .2s ease;
}

.lys-btn-acceder {
  min-height: 41px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(100,100,255,.16);
  transition: transform .2s ease, box-shadow .2s ease;
}

.lys-btn-acceder:hover { transform: translateY(-2px); box-shadow: 0 9px 23px rgba(100,100,255,.23); }

@media (max-width: 980px) {
  .lys-site-header { width: calc(100% - 28px); top: 10px; margin-top: 10px; }
  .lys-header-inner { min-height: 68px; padding: 0 16px; }
  .lys-nav-wrapper {
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 16px;
    border: 1px solid var(--nav-border);
    border-radius: 20px;
    background: var(--nav-glass);
    box-shadow: var(--nav-shadow);
    -webkit-backdrop-filter: blur(22px) saturate(155%);
    backdrop-filter: blur(22px) saturate(155%);
  }
  .lys-primary-menu { gap: 5px; }
  .lys-primary-menu a { width: 100%; min-height: 44px; border-radius: 11px; }
  .lys-header-actions { display: flex; flex-wrap: wrap; padding-top: 13px; border-top: 1px solid var(--nav-border); }
}

@media (max-width: 480px) {
  .lys-site-header { width: calc(100% - 20px); top: 8px; margin-top: 8px; }
  .lys-header-inner { padding: 0 12px; min-height: 64px; }
  .lys-custom-brand img { width: 31px; height: 31px; }
  .lys-brand-name { font-size: 1.22rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lys-primary-menu a,
  .lys-btn-acceder,
  .lys-btn-theme-switch {
    transition: none;
  }
}

/* ---------- Mobile menu: centered, readable and opaque ---------- */

@media (max-width: 980px) {
  .lys-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    z-index: 1002;
  }
  .lys-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
  }
  .lys-hamburger.lys-active span:first-child { transform: translateY(7px) rotate(45deg); }
  .lys-hamburger.lys-active span:nth-child(2) { opacity: 0; }
  .lys-hamburger.lys-active span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .lys-site-header .lys-nav-wrapper {
    position: fixed;
    top: 82px;
    left: 50%;
    right: auto;
    bottom: auto;
    width: min(440px, calc(100vw - 28px));
    max-height: calc(100dvh - 104px);
    height: auto;
    box-sizing: border-box;
    padding: 22px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(13, 19, 34, .98);
    box-shadow: 0 24px 70px rgba(0,0,0,.48), 0 4px 16px rgba(0,0,0,.24);
    -webkit-backdrop-filter: blur(26px) saturate(150%);
    backdrop-filter: blur(26px) saturate(150%);
    transform: translate(-50%, -8px) scale(.985);
    visibility: hidden;
    opacity: 0;
    transition: transform 220ms ease, opacity 220ms ease, visibility 220ms ease;
    z-index: 1001;
  }
  html[data-theme="light"] .lys-site-header .lys-nav-wrapper {
    background: rgba(250, 252, 255, .98);
    border-color: rgba(26,35,55,.16);
    box-shadow: 0 24px 65px rgba(35,48,75,.22), 0 4px 16px rgba(35,48,75,.10);
  }
  .lys-site-header .lys-nav-wrapper.lys-active {
    transform: translate(-50%, 0) scale(1);
    visibility: visible;
    opacity: 1;
  }
  .lys-site-header .lys-main-navigation { width: 100%; }
  .lys-site-header .lys-main-navigation .lys-primary-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .lys-site-header .lys-main-navigation li { width: 100%; border: 0; }
  .lys-site-header .lys-main-navigation a,
  .lys-site-header .lys-primary-menu a {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #f4f6fb;
    text-align: center;
    font-size: 1rem;
  }
  html[data-theme="light"] .lys-site-header .lys-main-navigation a,
  html[data-theme="light"] .lys-site-header .lys-primary-menu a {
    color: #1b2435;
  }
  .lys-site-header .lys-main-navigation a:hover,
  .lys-site-header .lys-primary-menu a:hover {
    background: rgba(127,139,170,.15);
    border-color: rgba(127,139,170,.18);
  }
  .lys-site-header .lys-header-actions {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,.14);
  }
  html[data-theme="light"] .lys-site-header .lys-header-actions { border-top-color: rgba(26,35,55,.14); }
  .lys-site-header .lys-header-actions .lys-btn-acceder { min-height: 42px; }
}

@media (max-width: 480px) {
  .lys-site-header .lys-nav-wrapper {
    top: 76px;
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 92px);
    padding: 18px 16px 16px;
  }
}

/* ---------- Typography safety: prevent clipped glyphs and descenders ---------- */

.lys-hero h1,
.lys-section-heading h2,
.lys-cta-section h2,
.lys-about-copy h2,
.lys-projects-section h2 {
  line-height: 1.18;
  padding-block: .08em .16em;
  overflow: visible;
  text-wrap: pretty;
}

.lys-hero h1 > span,
.lys-hero h1 > span > span,
.lys-section-heading h2 span,
.lys-cta-section h2 span,
.lys-about-copy h2 span,
.lys-projects-section h2 span {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 540px) {
  .lys-hero h1 {
    font-size: clamp(2.45rem, 10.8vw, 3.35rem);
    line-height: 1.2;
    letter-spacing: -.045em;
    padding-bottom: .2em;
    max-width: 100%;
    overflow-wrap: normal;
  }
  .lys-section-heading h2,
  .lys-cta-section h2,
  .lys-about-copy h2,
  .lys-projects-section h2 {
    line-height: 1.2;
    letter-spacing: -.045em;
    padding-bottom: .18em;
    overflow-wrap: anywhere;
  }
}

/* ---------- Scroll-linked typography: headings grow into focus ---------- */

.lys-about-copy h2,
.lys-projects-section .lys-section-heading h2,
.lys-featured-intro h2,
.lys-cta-section h2 {
  transform: scale(var(--scroll-heading-scale, 1));
  transform-origin: left center;
  opacity: var(--scroll-heading-opacity, 1);
  will-change: transform, opacity;
}

@media (max-width: 700px) {
  .lys-about-copy h2,
  .lys-projects-section .lys-section-heading h2,
  .lys-cta-section h2 {
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lys-about-copy h2,
  .lys-projects-section .lys-section-heading h2,
  .lys-cta-section h2 {
    transform: none !important;
    opacity: 1 !important;
    will-change: auto;
  }
}

/* ---------- Inner pages: hero, process, contact form ---------- */

.lys-primary-menu a[aria-current="page"] {
  color: var(--text);
  background: rgba(127,139,170,.10);
  border-color: var(--nav-border);
}

.lys-process { padding-bottom: 100px; }

.lys-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.lys-process-step {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, var(--surface), transparent);
}

.lys-process-step > span { color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }

.lys-process-step h3 { margin: 14px 0 8px; font-size: 1.1rem; letter-spacing: -.025em; }

.lys-process-step p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.75; }

.lys-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), transparent);
}

.lys-field { display: grid; gap: 8px; }

.lys-field label { font-size: .82rem; font-weight: 650; }

.lys-field input,
.lys-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.lys-field textarea { min-height: 140px; resize: vertical; }

.lys-field input:focus,
.lys-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

@media (max-width: 820px) {
  .lys-process-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .lys-form { padding: 20px; }
  .lys-process { padding-bottom: 65px; }
}

/* ---------- v2: images, sections, forms ---------- */

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

.lys-media {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.lys-media img { display: block; width: 100%; height: 100%; object-fit: cover; }

.lys-r-16x9 { aspect-ratio: 16 / 9; }

.lys-r-4x3 { aspect-ratio: 4 / 3; }

.lys-r-16x10 { aspect-ratio: 16 / 10; }

.lys-hero-visual .lys-media { width: 100%; }

.lys-hero2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 50px;
}

.lys-hero2 h1 {
  margin: 16px 0 18px;
  font-size: clamp(2.4rem, 4.8vw, 4.1rem);
  line-height: 1.18;
  letter-spacing: -.055em;
}

.lys-hero2 h1 > span > span,
.lys-title span {
  color: transparent;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
}

.lys-hero2 p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.lys-title {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.18;
  letter-spacing: -.055em;
}

.lys-lead { max-width: 520px; margin: 0; color: var(--muted); line-height: 1.85; }

.lys-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
}

.lys-split-rev > :first-child { order: 2; }

.lys-band { background: var(--bg-soft); border-block: 1px solid var(--line); margin-block: 40px; }

.lys-feature-list { margin: 24px 0 0; padding: 0; counter-reset: f; }

.lys-feature-list li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  counter-increment: f;
}

.lys-feature-list li::before {
  content: "0" counter(f);
  position: absolute;
  left: 0;
  top: 16px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 800;
}

.lys-feature-list span { color: var(--muted); font-size: .86rem; }

.lys-featured,
.lys-page-body {
  padding-top: 40px;
  padding-bottom: 60px;
}

.lys-process-media { margin-top: 28px; }

.lys-process-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lys-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }

.lys-gallery-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

.lys-tile { display: grid; gap: 12px; align-content: start; }

.lys-tile .lys-media { transition: transform var(--transition), border-color var(--transition); }

.lys-tile:hover .lys-media {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.lys-tile h3 { margin: 0; font-size: 1.1rem; }

.lys-tile p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }

.lys-tile .lys-tile-desc { margin: 0; }

.lys-tile-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }

.lys-badge {
  display: inline-block;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent);
  font-size: .64rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lys-text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.lys-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 28px; }

.lys-filter {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
  cursor: pointer;
}

.lys-filter.lys-active { color: #08121b; background: var(--gradient); border-color: transparent; }

.lys-values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }

.lys-value { padding: 26px 0; border-top: 1px solid var(--line); }

.lys-value > span { color: var(--accent); font-size: 1.4rem; }

.lys-value h3 { margin: 10px 0 6px; font-size: 1.05rem; }

.lys-value p { margin: 0; color: var(--muted); font-size: .88rem; }

.lys-faq { margin-top: 18px; border-top: 1px solid var(--line); }

.lys-faq-wide { max-width: 820px; }

.lys-faq-item { border-bottom: 1px solid var(--line); }

.lys-faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  list-style: none;
  font-weight: 650;
  cursor: pointer;
}

.lys-faq-item summary::-webkit-details-marker { display: none; }

.lys-faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  transition: transform var(--transition);
}

.lys-faq-item[open] summary::after { transform: rotate(45deg); }

.lys-faq-item p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; line-height: 1.8; }

.lys-form-section { max-width: 860px; padding-top: 20px; padding-bottom: 60px; }

.lys-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.lys-field-wide { grid-column: 1 / -1; }

.lys-field select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-solid);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.lys-field select:focus { outline: none; border-color: var(--accent); }

.lys-field-error { min-height: 1.1em; color: #ff7c91; font-size: .76rem; }

.lys-field.lys-invalid input,
.lys-field.lys-invalid select,
.lys-field.lys-invalid textarea {
  border-color: #ff7c91;
}

.lys-form-status { margin: 0; color: var(--accent); font-size: .88rem; }

.lys-channels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.lys-channel {
  display: grid;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  transition: transform var(--transition), border-color var(--transition);
}

.lys-channel:hover { transform: translateY(-3px); border-color: var(--accent); }

.lys-channel-icon { color: var(--accent); font-size: 1.5rem; }

.lys-channel span:last-child { color: var(--muted); font-size: .86rem; overflow-wrap: anywhere; }

.lys-is-pending { opacity: .6; }

.lys-dialog {
  width: min(960px, 94vw);
  max-height: 90dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
  color: var(--text);
}

.lys-dialog::backdrop { background: rgba(4, 7, 12, .72); backdrop-filter: blur(4px); }

.lys-dialog > .lys-media { border: 0; border-radius: 0; box-shadow: none; }

.lys-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-solid);
  color: var(--text);
  cursor: pointer;
}

.lys-dialog-body { display: grid; gap: 18px; padding: 24px; }

.lys-dialog h3 { margin: 0; font-size: 1.6rem; letter-spacing: -.03em; }

.lys-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }

.lys-detail dt {
  color: var(--accent);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.lys-detail dd { margin: 6px 0 0; color: var(--muted); font-size: .88rem; }

.lys-gallery-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }

.lys-footer-wrap { max-width: 1240px; margin: 0 auto; padding: 56px 30px 28px; }

.lys-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }

.lys-footer-grid h4 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lys-footer-grid nav,
.lys-footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.lys-footer-grid a:not(.lys-footer-brand),
.lys-footer-text {
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
}

.lys-footer-grid a:hover { color: var(--text); }

.lys-footer-bottom {
  margin: 36px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
}

.lys-js-reveal .lys-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.lys-js-reveal .lys-reveal.lys-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .lys-js-reveal .lys-reveal { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 980px) {
  .lys-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .lys-hero2 { grid-template-columns: 1fr; gap: 28px; padding-top: 56px; }
  .lys-split { grid-template-columns: 1fr; gap: 28px; padding-block: 36px; }
  .lys-split-rev > :first-child { order: 0; }
  .lys-gallery,
  .lys-gallery-3,
  .lys-channels,
  .lys-values,
  .lys-detail,
  .lys-form-grid,
  .lys-gallery-mini {
    grid-template-columns: 1fr;
  }
  .lys-process-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .lys-hero2 h1 { font-size: clamp(2.2rem, 10vw, 3rem); letter-spacing: -.045em; }
  .lys-process-4,
  .lys-footer-grid {
    grid-template-columns: 1fr;
  }
  .lys-footer-wrap { padding: 40px 20px 24px; }
  .lys-dialog-body { padding: 18px; }
  .lys-form .lys-button { width: 100%; }
}

/* ==========================================================
   CORRECCIÓN: Botones de cambio de idioma
   ========================================================== */

.lys-language-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--nav-border, var(--line));
  border-radius: 12px;
  background: rgba(127, 139, 170, 0.08);
}

.lys-lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  padding: 4px 8px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lys-lang-btn:hover { color: var(--text); background: rgba(127, 139, 170, 0.15); }

.lys-lang-btn.lys-active {
  background: var(--surface-solid);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   ESCRITORIO MAC + MINI WEB CAFÉ AROMA
   ========================================================== */

.lys-mac { width: 100%; max-width: 560px; }

.lys-mac-bezel {
  position: relative;
  padding: 8px;
  border-radius: 18px 18px 8px 8px;
  background: linear-gradient(160deg, #2c2c31, #111114);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 34px 60px -24px rgba(0,0,0,.65);
}

.lys-mac-bezel::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: #08080a;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}

.lys-mac-screen {
  position: relative;
  height: 400px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 10px 10px 4px 4px;
  color: #fff;
  font: 500 12px/1.4 -apple-system, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  background: radial-gradient(ellipse at 18% 8%, rgba(110,84,150,.55), transparent 55%), radial-gradient(ellipse at 88% 92%, rgba(190,110,60,.38), transparent 52%), linear-gradient(160deg, #15121d, #261a19);
}

.lys-mac-base {
  position: relative;
  width: 112%;
  height: 10px;
  margin: 0 -6%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#d6d8de, #9d9fa8);
  box-shadow: 0 12px 22px -10px rgba(0,0,0,.55);
}

.lys-mac-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 84px;
  height: 4px;
  margin-left: -42px;
  border-radius: 0 0 8px 8px;
  background: rgba(0,0,0,.2);
}

.lys-mac-menubar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  padding: 0 12px;
  font-size: 11px;
  color: rgba(255,255,255,.9);
  background: rgba(20,18,26,.45);
  border-bottom: 1px solid rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
}

.lys-mac-menus,
.lys-mac-status {
  display: flex;
  gap: 14px;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.lys-mac-window {
  --c-bg: #14100d;
  --c-surface: #1d1712;
  --c-text: #fbf6ef;
  --c-muted: #a2958a;
  --c-line: rgba(255,255,255,.09);
  --c-accent: #e0a070;
  --c-bar: #221b16;
  position: absolute;
  inset: 34px 18px 66px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  color: var(--c-text);
  background: var(--c-bg);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 26px 50px -14px rgba(0,0,0,.6), 0 0 0 .5px rgba(0,0,0,.5);
  transform-origin: 20% 115%;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s ease, inset .35s ease;
}

.lys-mac-window[data-lys-theme="light"] {
  --c-bg: #fbf8f3;
  --c-surface: #fff;
  --c-text: #2b211c;
  --c-muted: #7b6b5f;
  --c-line: rgba(43,33,28,.1);
  --c-accent: #b8622c;
  --c-bar: #ece6de;
}

.lys-mac-window.lys-is-min { transform: translateY(48%) scale(.1); opacity: 0; pointer-events: none; }

.lys-mac-window.lys-is-max { inset: 30px 6px 62px; }

.lys-mac-titlebar {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  height: 34px;
  padding: 0 10px;
  background: var(--c-bar);
  border-bottom: 1px solid var(--c-line);
}

.lys-mac-lights { display: flex; gap: 7px; }

.lys-mac-light {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.25);
}

.lys-mac-light-close { background: #ff5f57; }

.lys-mac-light-min { background: #febc2e; }

.lys-mac-light-zoom { background: #28c840; }

.lys-mac-url {
  justify-self: center;
  width: 100%;
  max-width: 230px;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--c-bg);
  color: var(--c-muted);
  font-size: 11px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lys-mac-tools { justify-self: end; }

.lys-mac-theme {
  padding: 2px 7px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--c-muted);
  font-size: 14px;
  cursor: pointer;
}

.lys-mac-theme:hover { background: var(--c-line); color: var(--c-text); }

.lys-cafe { position: relative; display: flex; flex: 1; flex-direction: column; min-height: 0; }

.lys-cafe-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--c-line);
}

.lys-cafe-logo { font-size: 13px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }

.lys-cafe-logo span { color: var(--c-accent); }

.lys-cafe-links { display: flex; align-items: center; gap: 3px; }

.lys-cafe-link {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--c-muted);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lys-cafe-link:hover,
.lys-cafe-link.lys-active {
  background: var(--c-surface);
  color: var(--c-text);
}

.lys-cafe-cart {
  margin-left: 4px;
  padding: 3px 8px;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  color: var(--c-accent);
  font-size: 11px;
  white-space: nowrap;
}

.lys-cafe-screen { flex: 1; min-height: 0; overflow: hidden auto; }

.lys-cafe-page {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px;
  animation: lysCafeIn .35s ease;
}

.lys-cafe-page.lys-active { display: flex; }

@keyframes lysCafeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.lys-cafe-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; align-items: center; }

.lys-cafe-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c-accent) 16%, transparent);
  color: var(--c-accent);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .1em;
}

.lys-cafe-hero h4 { margin: 8px 0 6px; font-size: 22px; line-height: 1.15; letter-spacing: -.03em; }

.lys-cafe-hero p { margin: 0 0 12px; color: var(--c-muted); font-size: 11.5px; line-height: 1.6; }

.lys-cafe-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.lys-cafe-btn {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  background: var(--c-accent);
  color: #1a100a;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}

.lys-cafe-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }

.lys-cafe-btn-ghost { background: transparent; color: var(--c-text); box-shadow: inset 0 0 0 1px var(--c-line); }

.lys-cafe-cup { position: relative; justify-self: center; width: 120px; height: 110px; }

.lys-cafe-cup::before {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 110px;
  height: 14px;
  margin-left: -55px;
  border-radius: 50%;
  background: linear-gradient(var(--c-surface), color-mix(in srgb, var(--c-surface) 70%, #000));
  box-shadow: 0 8px 14px rgba(0,0,0,.3);
}

.lys-cafe-cup-body {
  position: absolute;
  bottom: 16px;
  left: 50%;
  width: 74px;
  height: 56px;
  margin-left: -37px;
  border-radius: 6px 6px 36px 36px;
  background: linear-gradient(#f4ece2, #d6c7b6);
}

.lys-cafe-cup-body::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 4px;
  right: 4px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 40% 40%, #8a5a36, #3b2417);
}

.lys-cafe-cup-body::after {
  content: "";
  position: absolute;
  top: 10px;
  right: -18px;
  width: 22px;
  height: 26px;
  border: 6px solid #e4d8c8;
  border-left: 0;
  border-radius: 0 16px 16px 0;
}

.lys-cafe-cup i {
  position: absolute;
  bottom: 80px;
  width: 3px;
  height: 22px;
  border-radius: 3px;
  background: linear-gradient(transparent, color-mix(in srgb, var(--c-text) 35%, transparent));
  opacity: 0;
  animation: lysSteam 3.2s ease-in-out infinite;
}

.lys-cafe-cup i:nth-child(1) { left: 44%; }

.lys-cafe-cup i:nth-child(2) { left: 51%; animation-delay: 1s; }

.lys-cafe-cup i:nth-child(3) { left: 58%; animation-delay: 2s; }

@keyframes lysSteam {
  0% { opacity: 0; transform: translateY(6px) scaleY(.7); }
  40% { opacity: .7; }
  100% { opacity: 0; transform: translateY(-14px) scaleY(1.1); }
}

.lys-cafe-cards,
.lys-cafe-loc {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lys-cafe-card,
.lys-cafe-row,
.lys-cafe-item {
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-surface);
}

.lys-cafe-card { display: flex; align-items: center; gap: 9px; padding: 10px; }

.lys-cafe-card-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--c-accent) 16%, transparent);
  font-size: 15px;
}

.lys-cafe-card strong,
.lys-cafe-item strong {
  display: block;
  font-size: 11.5px;
}

.lys-cafe-price { color: var(--c-accent); font-size: 11.5px; font-weight: 800; }

.lys-cafe-head { display: grid; gap: 6px; justify-items: start; }

.lys-cafe-head h4 { margin: 0; font-size: 18px; letter-spacing: -.02em; }

.lys-cafe-list,
.lys-cafe-info {
  display: grid;
  gap: 8px;
  align-content: start;
}

.lys-cafe-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.lys-cafe-item p { margin: 2px 0 0; color: var(--c-muted); font-size: 10.5px; }

.lys-cafe-add {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--c-accent);
  color: #1a100a;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s;
}

.lys-cafe-add:hover { transform: scale(1.12); }

.lys-cafe-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 11px;
  font-size: 11px;
  line-height: 1.45;
}

.lys-cafe-map {
  position: relative;
  min-height: 120px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: linear-gradient(var(--c-line) 1px, transparent 1px) 0 0 / 22px 22px, linear-gradient(90deg, var(--c-line) 1px, transparent 1px) 0 0 / 22px 22px, var(--c-surface);
}

.lys-cafe-map::after {
  content: "📍";
  position: absolute;
  top: 40%;
  left: 46%;
  font-size: 20px;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.4));
}

.lys-cafe-toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--c-text);
  color: var(--c-bg);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .3s, transform .3s;
}

.lys-cafe-toast.lys-show { opacity: 1; transform: translate(-50%, 0); }

.lys-mac-dock {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 9px;
  transform: translateX(-50%);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
}

.lys-dock-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.lys-dock-item:hover { transform: translateY(-5px) scale(1.16); }

.lys-dock-item::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(30,30,34,.92);
  color: #fff;
  font-size: 10.5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity .15s;
}

.lys-dock-item:hover::after,
.lys-dock-item:focus-visible::after {
  opacity: 1;
}

.lys-dock-item.lys-running::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
}

.lys-dock-item.lys-bounce { animation: lysBounce .6s ease; }

@keyframes lysBounce {
  30% { transform: translateY(-14px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-5px); }
}

.lys-dock-safari { background: linear-gradient(#59bdff, #1565d8); }

.lys-dock-mail { background: linear-gradient(#5ab0ff, #2a78e4); }

.lys-dock-notes { background: linear-gradient(#ffe27a, #f0b400); color: #5a4300; }

.lys-dock-music { background: linear-gradient(#ff6b81, #e0245e); }

.lys-dock-settings { background: linear-gradient(#a8abb3, #6c6f78); }

/* Celular: el computador se convierte en un teléfono */

@media (max-width: 540px) {
  .lys-mac { max-width: 300px; margin: 0 auto; }
  .lys-mac-base { display: none; }
  .lys-mac-bezel {
    padding: 9px;
    border-radius: 42px;
    background: linear-gradient(160deg, #34343a, #0e0e11);
    box-shadow: 0 0 0 1px rgba(255,255,255,.1) inset, 0 30px 50px -22px rgba(0,0,0,.7);
  }
  .lys-mac-bezel::before {
    top: 19px;
    z-index: 6;
    width: 82px;
    height: 23px;
    margin-left: -41px;
    border-radius: 14px;
    background: #050506;
    box-shadow: none;
  }
  .lys-mac-bezel::after {
    content: "";
    position: absolute;
    top: 120px;
    right: -3px;
    width: 3px;
    height: 56px;
    border-radius: 0 3px 3px 0;
    background: #2a2a2f;
  }
  .lys-mac-screen { height: 540px; border-radius: 33px; }
  .lys-mac-screen::after {
    content: "";
    position: absolute;
    bottom: 7px;
    left: 50%;
    z-index: 6;
    width: 98px;
    height: 4px;
    margin-left: -49px;
    border-radius: 3px;
    background: rgba(255,255,255,.75);
  }
  .lys-mac-menubar {
    align-items: flex-end;
    height: 46px;
    padding: 0 24px 6px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .lys-mac-menus,
  .lys-mac-date {
    display: none;
  }
  .lys-mac-menubar::after {
    content: "";
    box-sizing: content-box;
    width: 20px;
    height: 9px;
    padding: 1px;
    border: 1.5px solid rgba(255,255,255,.8);
    border-radius: 4px;
    background: linear-gradient(90deg, #fff 72%, transparent 72%) content-box;
  }
  .lys-mac-window,
  .lys-mac-window.lys-is-max {
    inset: 46px 0 80px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .lys-mac-window.lys-is-min { transform: none; opacity: 1; pointer-events: auto; }
  .lys-mac-lights { display: none; }
  .lys-mac-titlebar { grid-template-columns: 1fr 30px; gap: 6px; height: 38px; padding: 0 10px; }
  .lys-mac-url { max-width: none; padding: 6px 10px; border-radius: 10px; font-size: 11.5px; }
  .lys-cafe-nav { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px; }
  .lys-cafe-links { justify-content: space-between; }
  .lys-cafe-cart { margin-left: 0; }
  .lys-cafe-hero,
  .lys-cafe-cards,
  .lys-cafe-loc {
    grid-template-columns: 1fr;
  }
  .lys-cafe-cup { display: none; }
  .lys-cafe-hero h4 { font-size: 20px; }
  .lys-cafe-map { min-height: 90px; }
  .lys-mac-dock {
    bottom: 18px;
    justify-content: space-around;
    gap: 0;
    width: calc(100% - 24px);
    padding: 9px 8px;
    border-radius: 26px;
  }
  .lys-dock-item { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
  .lys-dock-item:hover { transform: none; }
  .lys-dock-item::after,
  .lys-dock-item.lys-running::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lys-mac-window,
  .lys-cafe-page,
  .lys-dock-item,
  .lys-cafe-toast {
    transition: none;
    animation: none;
  }
  .lys-cafe-cup i { animation: none; }
}

/* ==========================================================
   EFECTO SCROLL INMERSIVO: SERVICIOS
   ========================================================== */

.lys-services-scroll-track { position: relative; height: 350vh; background: var(--bg); }

.lys-services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lys-services-bg-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(8,11,18,0.3) 0%, rgba(8,11,18,0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .lys-services-bg-blur {
  background: radial-gradient(circle at center, rgba(247,249,252,0.4) 0%, rgba(247,249,252,0.95) 100%);
}

.lys-services-header-fixed {
  position: absolute;
  top: 12vh;
  left: 0;
  right: 0;
  z-index: 2;
  transition: transform 0.25s ease, opacity 0.18s ease;
}

.lys-services-cards-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  perspective: 1200px;
}

/* Tarjeta Base */

.lys-sc-card {
  position: absolute;
  width: 90%;
  max-width: 480px;
  padding: 3.5rem 2.5rem;
  background: var(--surface-solid, var(--surface));
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease, box-shadow 0.8s ease;
  will-change: transform, opacity, filter;
}

/* ESTADOS CONTROLADOS POR JAVASCRIPT */

.lys-sc-card.lys-state-idle {
  opacity: 0.4;
  transform: translateY(35vh) scale(0.85);
  filter: blur(4px);
  pointer-events: none;
}

.lys-sc-card.lys-state-hidden-right {
  opacity: 0;
  transform: translateX(60vw) scale(0.7) rotateY(15deg);
  filter: blur(8px);
  pointer-events: none;
}

.lys-sc-card.lys-state-center {
  opacity: 1;
  transform: translateX(0) scale(1.15) rotateY(0);
  filter: blur(0);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--text);
  z-index: 10;
  pointer-events: auto;
}

[data-theme="light"] .lys-sc-card.lys-state-center {
  box-shadow: 0 30px 60px rgba(0,0,0,0.1), 0 0 0 1px var(--text);
}

.lys-sc-card.lys-state-hidden-left {
  opacity: 0;
  transform: translateX(-60vw) scale(0.7) rotateY(-15deg);
  filter: blur(8px);
  pointer-events: none;
}

/* Diseño interno de la tarjeta ampliada */

.lys-sc-card .lys-service-number {
  font-size: 1rem;
  font-weight: 800;
  color: var(--muted);
  position: absolute;
  top: 2rem;
  right: 2.5rem;
}

.lys-sc-card h3 { font-size: 1.8rem; line-height: 1.1; margin: 0; }

.lys-sc-card p { font-size: 1.1rem; color: var(--muted); line-height: 1.5; margin: 0; }

.lys-sc-card a {
  margin-top: 1rem;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.lys-sc-card a:hover { transform: scale(1.1); }

/* 1. Limpiar el fondo heredado del ícono para quitar el cuadro raro */

.lys-sc-card .lys-service-icon {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin-bottom: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text);
}

/* Si pones un SVG real dentro, esto asegura que encaje perfecto */

.lys-sc-card .lys-service-icon svg { width: 42px; height: 42px; fill: currentColor; }

/* 2. Adaptación compacta para celulares */

@media (max-width: 768px) {
  .lys-sc-card { width: 88%; padding: 2rem 1.5rem; gap: 0.8rem; }
  /* Evita que se agrande demasiado en pantallas pequeñas */
  .lys-sc-card.lys-state-center { transform: translateX(0) scale(1) rotateY(0); }
  /* Ajuste de tipografía para móvil */
  .lys-sc-card h3 { font-size: 1.4rem; }
  .lys-sc-card p { font-size: 0.95rem; line-height: 1.4; }
  .lys-sc-card .lys-service-number { top: 1.2rem; right: 1.5rem; font-size: 0.85rem; }
  .lys-sc-card a { width: 38px; height: 38px; font-size: 1rem; margin-top: 0.5rem; }
  /* Esconde mejor las tarjetas laterales en pantallas estrechas */
  .lys-sc-card.lys-state-hidden-right { transform: translateX(110vw) scale(0.8) rotateY(15deg); }
  .lys-sc-card.lys-state-hidden-left { transform: translateX(-110vw) scale(0.8) rotateY(-15deg); }
}

/* ==========================================================
   PLANES Y PRECIOS (4 planes alineados + notas)
   ========================================================== */

#planes .lys-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 48px;
  margin-bottom: 44px;
}

#planes .lys-section-heading p { max-width: 420px; margin: 0; }

.lys-plans-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }

.lys-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-solid, var(--surface));
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.lys-plan:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.lys-plan-featured {
  border-color: transparent;
  background: linear-gradient(var(--surface-solid, var(--surface)), var(--surface-solid, var(--surface))) padding-box, var(--gradient) border-box;
  box-shadow: 0 26px 50px -28px rgba(112, 240, 208, .4);
}

.lys-plan-featured:hover { border-color: transparent; }

.lys-plan-badge {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 4px 12px;
  transform: translate(-50%, -50%);
  border-radius: 99px;
  background: var(--accent, #70f0d0);
  color: #0c1017;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(112, 240, 208, .3);
}

.lys-plan h3 { margin: 0 0 14px; font-size: 1.2rem; letter-spacing: -.02em; }

.lys-plan .lys-price {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--text);
}

.lys-plan .lys-price span { font-size: .85rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }

.lys-plan-dev { margin: 8px 0 18px; font-size: .76rem; font-weight: 600; line-height: 1.45; color: var(--muted); }

.lys-plan-desc { margin: 0 0 22px; font-size: .86rem; line-height: 1.6; color: var(--muted); }

.lys-plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin: 0 0 24px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.lys-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  line-height: 1.45;
  color: color-mix(in srgb, var(--text) 90%, transparent);
}

.lys-plan-features li::before {
  content: "✓";
  flex: none;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
  font-size: .6rem;
  font-weight: 900;
}

.lys-plan .lys-button { width: 100%; justify-content: center; text-align: center; padding: 13px 16px; }

/* Con subgrid, nombre / precio / descripción / lista / botón quedan a la misma altura en las 4 tarjetas */

@supports (grid-template-rows: subgrid) {
  @media (min-width: 1100px) {
    .lys-plans-4 { grid-template-rows: repeat(6, auto); row-gap: 0; }
    .lys-plan { display: grid; grid-row: span 6; grid-template-rows: subgrid; }
    .lys-plan-features { align-content: start; }
  }
}

.lys-plan-notes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-top: 40px;
}

.lys-note-box:first-child { grid-column: span 2; }

.lys-note-box {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid, var(--surface));
}

.lys-note-box h4 { margin: 0 0 12px; font-size: .98rem; letter-spacing: -.01em; color: var(--text); }

.lys-note-box p { margin: 0 0 8px; font-size: .84rem; line-height: 1.65; color: var(--muted); }

.lys-note-box p:last-child { margin-bottom: 0; }

.lys-note-box p strong { color: var(--text); }

.lys-note-box a { color: var(--accent); font-weight: 700; }

.lys-note-highlight {
  border-color: rgba(112, 240, 208, .4);
  background: linear-gradient(160deg, rgba(112, 240, 208, .09), transparent 60%), var(--surface-solid, var(--surface));
}

@media (max-width: 1099px) {
  .lys-plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .lys-plan-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 699px) {
  #planes .lys-section-heading { flex-direction: column; align-items: flex-start; margin-bottom: 36px; }
  .lys-plans-4,
  .lys-plan-notes {
    grid-template-columns: 1fr;
  }
  .lys-note-box:first-child { grid-column: auto; }
  .lys-plan { padding: 28px 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .lys-plan { transition: none; }
  .lys-plan:hover { transform: none; }
}

/* ---------- Marco de la ventana ---------- */

.lys-video-mockup {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-solid);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.lys-video-mockup:hover { transform: translateY(-4px); box-shadow: 0 30px 60px rgba(0, 0, 0, .45); }

.lys-vm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(127, 127, 127, .06);
}

.lys-vm-dots { display: flex; gap: 6px; }

.lys-vm-dots span { width: 9px; height: 9px; border-radius: 50%; }

.lys-vm-dots span:nth-child(1) { background: #ff5f56; }

.lys-vm-dots span:nth-child(2) { background: #ffbd2e; }

.lys-vm-dots span:nth-child(3) { background: #27c93f; }

.lys-vm-url { color: var(--muted); font: .68rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* ---------- Escenario ---------- */

.lys-vm-body {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  container-type: inline-size;
  background: linear-gradient(160deg, #1f2a44, #2b1e3b);
}

.lys-vm-demo {
  position: absolute;
  inset: 0;
  color: #1f1a17;
  font: 500 2.3cqw/1.35 -apple-system, "Segoe UI", system-ui, sans-serif;
}

/* ---------- Escena 1: anuncio en red social ---------- */

.lys-vm-post {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  flex-direction: column;
  width: 23em;
  height: 29em;
  overflow: hidden;
  border-radius: 1em;
  background: #fff;
  box-shadow: 0 1.6em 3em -1em rgba(0, 0, 0, .5);
  transform: translate(-50%, -50%);
  transition: opacity .5s ease, transform .5s ease;
}

.lys-vm-post-head { display: flex; align-items: center; gap: .7em; padding: .8em 1em; }

.lys-vm-post-head strong,
.lys-vm-post-text strong {
  display: block;
  font-size: .95em;
}

.lys-vm-post-head small,
.lys-vm-post-text small {
  display: block;
  color: #7a6f66;
  font-size: .78em;
}

.lys-vm-avatar {
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: linear-gradient(135deg, #c8693a, #f2b27a);
}

.lys-vm-media {
  display: grid;
  flex: 1;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(255, 214, 150, .9), transparent 55%), linear-gradient(160deg, #f3d4b0, #d9946a);
}

.lys-vm-post-text { padding: .8em 1em .5em; }

.lys-vm-buy {
  display: block;
  margin: .4em 1em 1em;
  padding: .8em;
  border-radius: .7em;
  background: linear-gradient(90deg, #70f0d0, #8b9bff);
  color: #0c1017;
  font-size: .95em;
  font-weight: 800;
  text-align: center;
  transition: transform .15s ease, filter .15s ease;
}

.lys-vm-pressed .lys-vm-buy { transform: scale(.96); filter: brightness(.92); }

/* ---------- Barra de carga (redirección) ---------- */

.lys-vm-load {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 7;
  width: 0;
  height: .25em;
  opacity: 0;
  background: linear-gradient(90deg, #70f0d0, #8b9bff);
}

[data-scene="loading"] .lys-vm-load { opacity: 1; animation: lys-vm-load .8s ease-out forwards; }

@keyframes lys-vm-load {
  to { width: 100%; }
}

/* ---------- Escena 2: tienda ---------- */

.lys-vm-site {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  opacity: 0;
  background: #fbf6ee;
  transition: opacity .5s ease, visibility 0s .5s;
}

[data-scene="site"] .lys-vm-site { visibility: visible; opacity: 1; transition: opacity .35s ease, visibility 0s; }

.lys-vm-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.2em;
  padding: 0 1.4em;
  border-bottom: 1px solid rgba(43, 33, 28, .08);
}

.lys-vm-nav strong { font-size: 1.15em; letter-spacing: -.02em; }

.lys-vm-nav strong span { color: #c8693a; }

.lys-vm-nav-links { display: flex; gap: 1.2em; color: #6f635a; font-size: .8em; }

.lys-vm-cart {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  padding: .3em .8em;
  border-radius: 99px;
  background: #2b211c;
  color: #fff;
  font-size: .75em;
  font-weight: 700;
}

.lys-vm-cart svg { width: 1.5em; height: 1.5em; }

.lys-vm-hero {
  display: grid;
  flex: 1;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 1em;
  min-height: 0;
  padding: 0 1.6em;
}

.lys-vm-tag {
  display: inline-block;
  padding: .35em .8em;
  border-radius: 99px;
  background: rgba(200, 105, 58, .12);
  color: #c8693a;
  font-size: .62em;
  font-weight: 800;
  letter-spacing: .12em;
}

.lys-vm-hero h3 { margin: .4em 0; color: #2b211c; font-size: 1.9em; line-height: 1.12; letter-spacing: -.03em; }

.lys-vm-hero p { margin: 0 0 .9em; color: #6f635a; font-size: .82em; }

.lys-vm-cta {
  display: inline-block;
  padding: .6em 1.3em;
  border-radius: .6em;
  background: #2b211c;
  color: #fff;
  font-size: .8em;
  font-weight: 700;
}

.lys-vm-hero-art {
  display: grid;
  place-items: center;
  height: 100%;
  background: radial-gradient(circle, rgba(244, 200, 150, .55), transparent 68%);
}

.lys-vm-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9em; padding: 0 1.6em; }

.lys-vm-card {
  display: grid;
  justify-items: center;
  gap: .3em;
  padding: .8em .4em .7em;
  border-radius: .8em;
  background: #fff;
  box-shadow: 0 .4em 1em -.5em rgba(60, 30, 10, .3);
}

.lys-vm-card strong { color: #2b211c; font-size: .8em; }

.lys-vm-card small { color: #c8693a; font-size: .75em; font-weight: 700; }

.lys-vm-foot { display: grid; place-items: center; height: 3.2em; }

.lys-vm-chip {
  padding: .4em 1em;
  border-radius: 99px;
  background: #1f9d6a;
  color: #fff;
  font-size: .78em;
  font-weight: 700;
}

/* El anuncio sale cuando empieza la carga y no vuelve hasta reiniciar */

[data-scene="loading"] .lys-vm-post,
[data-scene="site"] .lys-vm-post,
[data-scene="out"] .lys-vm-post {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
}

/* Entrada escalonada de los elementos de la tienda */

.lys-vm-in { opacity: 0; transform: translateY(.9em); }

[data-scene="site"] .lys-vm-in,
[data-scene="out"] .lys-vm-in {
  opacity: 1;
  transform: none;
}

[data-scene="site"] .lys-vm-in {
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1);
  transition-delay: calc(var(--i) * 150ms + 120ms);
}

/* ---------- Velas (una sola definición para anuncio y tienda) ----------
   .lys-vm-candle = caja; ::before = frasco; <b> = etiqueta; <i> = mecha + llama */

.lys-vm-candle {
  --jar-1: #f7ecdd;
  --jar-2: #e2cfb8;
  --jar-3: #cdb79b;
  --jar-glow: rgba(60, 30, 10, .45);
  position: relative;
  width: 6em;
  height: 8em;
}

.lys-vm-candle::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5.2em;
  border-radius: .9em .9em 1.1em 1.1em;
  background: linear-gradient(135deg, var(--jar-1), var(--jar-2) 55%, var(--jar-3));
  box-shadow: inset .3em 0 .4em rgba(255, 255, 255, .35), inset -.3em 0 .5em rgba(0, 0, 0, .1), 0 1em 1.2em -.6em var(--jar-glow);
}

.lys-vm-candle b {
  position: absolute;
  bottom: 1.75em;
  left: 50%;
  z-index: 1;
  padding: .45em .8em;
  border-radius: .35em;
  background: rgba(255, 255, 255, .8);
  color: #3d3028;
  font-size: .6em;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.lys-vm-wick {
  position: absolute;
  top: 1.9em;
  left: 50%;
  z-index: 1;
  width: .14em;
  height: 1.1em;
  margin-left: -.07em;
  border-radius: .1em;
  background: #2a1d16;
}

.lys-vm-wick::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: .8em;
  height: 1.5em;
  margin: 0 0 .05em -.4em;
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  background: radial-gradient(ellipse at 50% 72%, #fffbd2 0%, #ffd65c 38%, #ff9d18 72%, transparent 100%);
  box-shadow: 0 0 .9em rgba(255, 163, 30, .7);
  transform-origin: 50% 100%;
  animation: lys-vm-flame 1.4s ease-in-out infinite alternate;
}

@keyframes lys-vm-flame {
  from { transform: scale(1, 1) rotate(-2deg); }
  to { transform: scale(.92, 1.08) rotate(2deg); }
}

/* Tamaños */

.lys-vm-candle-social { font-size: 1.25em; }

.lys-vm-candle-featured {
  font-size: 1.15em;
  --jar-1: #f3d5bd;
  --jar-2: #d88b5b;
  --jar-3: #a95538;
  --jar-glow: rgba(105, 55, 25, .5);
}

.lys-vm-candle-sm { font-size: .7em; margin-bottom: .4em; }

/* Colores por aroma */

.lys-vm-candle-vanilla { --jar-1: #fff4c9; --jar-2: #f3d477; --jar-3: #c9953f; --jar-glow: rgba(180, 125, 35, .45); }

.lys-vm-candle-lavender {
  --jar-1: #f0e6ff;
  --jar-2: #c49bea;
  --jar-3: #7954a8;
  --jar-glow: rgba(110, 65, 165, .45);
}

.lys-vm-candle-cedar { --jar-1: #e4b48a; --jar-2: #a9683f; --jar-3: #5c321f; --jar-glow: rgba(70, 35, 15, .5); }

/* ---------- Cursor y clic ---------- */

.lys-vm-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 0;
  height: 0;
  filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .45));
  transition: transform 1.1s cubic-bezier(.45, 0, .2, 1), opacity .3s ease;
}

.lys-vm-cursor svg { position: absolute; top: -.1em; left: -.2em; width: 2.2em; height: 2.2em; }

.lys-vm-ripple {
  position: absolute;
  top: -1.6em;
  left: -1.6em;
  width: 3.2em;
  height: 3.2em;
  border: .18em solid rgba(255, 255, 255, .95);
  border-radius: 50%;
  opacity: 0;
}

.lys-vm-pressed .lys-vm-ripple { animation: lys-vm-ripple .55s ease-out; }

@keyframes lys-vm-ripple {
  from { opacity: .9; transform: scale(.3); }
  to { opacity: 0; transform: scale(1.4); }
}

[data-scene="site"] .lys-vm-cursor,
[data-scene="out"] .lys-vm-cursor {
  opacity: 0;
}

/* ---------- Responsive y movimiento reducido ---------- */

@media (max-width: 768px) {
  .lys-vm-body { aspect-ratio: 1 / 1; }
  .lys-vm-demo { font-size: 3.1cqw; }
}

@media (prefers-reduced-motion: reduce) {
  .lys-vm-demo,
  .lys-vm-demo * {
    transition: none !important;
    animation: none !important;
  }
}

/* ==========================================================
   "POR QUÉ LYSVEX": el recuadro se expande a pantalla completa al hacer scroll
   Todo el dibujo usa unidades de contenedor (cq), así escala igual en la tarjeta
   y en pantalla completa. JS solo mueve --e (expansión), --q y data-beat.
   ========================================================== */
.lys-xp-slot { position: relative; }
.lys-xp-runway { display: none; }
.lys-xp-on .lys-xp-runway { display: block; height: 260vh; }

.lys-xp-frame {
  --xp-mint: #70f0d0;
  --xp-violet: #8a9bff;
  --e: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  container: xp / size;
  border-radius: inherit;
  background: #0a0f1d;
  color: #f4f7fb;
  isolation: isolate;
}
.lys-xp-frame { pointer-events: none; }
.lys-xp-frame.is-full { pointer-events: auto; }

.xp-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 18% 8%, rgba(138, 155, 255, .38), transparent 62%),
    radial-gradient(55% 60% at 88% 92%, rgba(112, 240, 208, .24), transparent 62%),
    linear-gradient(160deg, #141a33, #0a0f1d 60%, #101a2a);
}
.xp-inner { --u: 1cqmin; --cy: 48%; position: absolute; inset: 0; }
.xp-stage { position: absolute; inset: 0; }

/* ---------- Dispositivos ---------- */
.xp-dev {
  --x: 0; --s: 1; --o: 1;
  position: absolute;
  top: var(--cy);
  left: 50%;
  opacity: var(--o);
  transform: translate(calc(-50% + var(--x) * var(--u)), -50%) scale(var(--s));
  transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .7s ease;
}
.xp-browser {
  width: calc(var(--u) * 104);
  aspect-ratio: 8 / 5;
  overflow: hidden;
  border-radius: calc(var(--u) * 2);
  background: #f6f8fc;
  box-shadow: 0 calc(var(--u) * 5) calc(var(--u) * 12) rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .14);
}
.xp-bar { display: flex; align-items: center; gap: var(--u); height: calc(var(--u) * 5); padding: 0 calc(var(--u) * 2); background: #e7ecf4; }
.xp-bar i { display: block; width: calc(var(--u) * 1.3); height: calc(var(--u) * 1.3); border-radius: 50%; background: #ff5f56; }
.xp-bar i:nth-child(2) { background: #ffbd2e; }
.xp-bar i:nth-child(3) { background: #27c93f; }
.xp-bar span { width: calc(var(--u) * 34); height: calc(var(--u) * 2.4); margin-left: calc(var(--u) * 2); border-radius: 99px; background: #fff; }
.xp-page { display: grid; gap: calc(var(--u) * 2.6); padding: calc(var(--u) * 2.4) calc(var(--u) * 3.4); }
.xp-nav { display: flex; align-items: center; gap: calc(var(--u) * 3); height: calc(var(--u) * 4); }
.xp-logo { width: calc(var(--u) * 10); height: calc(var(--u) * 3); border-radius: var(--u); background: linear-gradient(115deg, var(--xp-mint), var(--xp-violet)); }
.xp-link { width: calc(var(--u) * 7); height: calc(var(--u) * 1.4); border-radius: 99px; background: #cfd7e6; }
.xp-pill { margin-left: auto; width: calc(var(--u) * 11); height: calc(var(--u) * 3.4); border-radius: 99px; background: #151c33; }
.xp-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: calc(var(--u) * 3); align-items: center; height: calc(var(--u) * 28); }
.xp-tag { width: calc(var(--u) * 15); height: calc(var(--u) * 2.2); margin-bottom: calc(var(--u) * 1.6); border-radius: 99px; background: rgba(138, 155, 255, .28); }
.xp-h { width: 92%; height: calc(var(--u) * 3.4); margin-top: calc(var(--u) * 1.2); border-radius: var(--u); background: #151c33; }
.xp-t { width: 88%; height: calc(var(--u) * 1.3); margin-top: calc(var(--u) * 1.1); border-radius: 99px; background: #c5cee0; }
.xp-h.w2 { width: 64%; }
.xp-t.w2 { width: 66%; }
.xp-btn { width: calc(var(--u) * 15); height: calc(var(--u) * 4); margin-top: calc(var(--u) * 2.4); border-radius: calc(var(--u) * 1.2); background: linear-gradient(115deg, var(--xp-mint), var(--xp-violet)); }
.xp-art { position: relative; height: 100%; overflow: hidden; border-radius: calc(var(--u) * 2); background: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, .55), transparent 40%), linear-gradient(145deg, var(--xp-violet), var(--xp-mint)); }
.xp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%); transform: translateX(-100%); animation: xp-shine 3.4s ease-in-out infinite; }
@keyframes xp-shine { 55%, 100% { transform: translateX(100%); } }
.xp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--u) * 2.4); }
.xp-card { display: grid; gap: calc(var(--u) * .4); padding: calc(var(--u) * 2); border-radius: calc(var(--u) * 1.6); background: #fff; box-shadow: 0 calc(var(--u) * .6) calc(var(--u) * 1.6) rgba(20, 30, 60, .12); }
.xp-ico { width: calc(var(--u) * 4); height: calc(var(--u) * 4); margin-bottom: calc(var(--u) * 1); border-radius: calc(var(--u) * 1.1); background: linear-gradient(145deg, var(--xp-violet), var(--xp-mint)); }
.xp-card .xp-t { width: 100%; margin-top: calc(var(--u) * .7); }
.xp-card .xp-t.w2 { width: 62%; }

.xp-phone {
  --x: 60; --s: .9; --o: 0;
  width: calc(var(--u) * 28);
  aspect-ratio: 9 / 18.5;
  padding: calc(var(--u) * 1);
  border-radius: calc(var(--u) * 4.2);
  background: #0e1424;
  box-shadow: 0 calc(var(--u) * 5) calc(var(--u) * 12) rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .2);
}
.xp-pscreen { display: grid; align-content: start; gap: calc(var(--u) * .4); height: 100%; overflow: hidden; padding: calc(var(--u) * 3) calc(var(--u) * 2.2) calc(var(--u) * 2); border-radius: calc(var(--u) * 3.4); background: #f6f8fc; }
.xp-pscreen .xp-nav { height: calc(var(--u) * 3); margin-bottom: calc(var(--u) * 1.2); }
.xp-pscreen .xp-logo { width: calc(var(--u) * 8); height: calc(var(--u) * 2.4); }
.xp-pscreen .xp-pill { width: calc(var(--u) * 4); height: calc(var(--u) * 2.4); }
.xp-art-s { height: calc(var(--u) * 14); margin-bottom: calc(var(--u) * 1.2); }
.xp-pscreen .xp-h { height: calc(var(--u) * 2.6); }
.xp-pscreen .xp-btn { width: 100%; height: calc(var(--u) * 3.6); margin: calc(var(--u) * 1.4) 0; }
.xp-pscreen .xp-card { padding: calc(var(--u) * 1.4); }

.xp-chat {
  --x: 40; --s: .95; --o: 0;
  display: grid;
  gap: calc(var(--u) * 1.3);
  width: calc(var(--u) * 58);
  padding: calc(var(--u) * 2.4);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: calc(var(--u) * 2.4);
  background: rgba(16, 22, 40, .86);
  box-shadow: 0 calc(var(--u) * 5) calc(var(--u) * 12) rgba(0, 0, 0, .45);
}
.xp-chat-head { display: flex; align-items: center; gap: calc(var(--u) * 1.4); padding-bottom: calc(var(--u) * 1.4); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.xp-chat-head strong { display: block; color: #fff; font-size: max(12px, calc(var(--u) * 1.8)); }
.xp-chat-head small { display: block; color: #7ee8c9; font-size: max(10px, calc(var(--u) * 1.4)); }
.xp-av { display: grid; flex: none; place-items: center; width: max(30px, calc(var(--u) * 4.4)); height: max(30px, calc(var(--u) * 4.4)); border-radius: 50%; background: linear-gradient(135deg, var(--xp-mint), var(--xp-violet)); color: #07121c; font-size: max(12px, calc(var(--u) * 1.9)); font-weight: 800; }
.xp-msg { max-width: 84%; padding: calc(var(--u) * 1.1) calc(var(--u) * 1.7); border-radius: calc(var(--u) * 1.8); font-size: max(12px, calc(var(--u) * 1.55)); line-height: 1.35; opacity: 0; transform: translateY(calc(var(--u) * 1.4)); transition: opacity .4s ease, transform .5s ease; }
.xp-msg.me { justify-self: end; border-bottom-right-radius: calc(var(--u) * .5); background: linear-gradient(115deg, var(--xp-mint), var(--xp-violet)); color: #07121c; font-weight: 600; }
.xp-msg.them { justify-self: start; border-bottom-left-radius: calc(var(--u) * .5); background: rgba(255, 255, 255, .1); color: #e8eefb; }

/* ---------- Cierre ---------- */
.xp-final {
  position: absolute;
  top: var(--cy);
  left: 50%;
  display: grid;
  justify-items: center;
  gap: calc(var(--u) * 2);
  width: min(88cqw, calc(var(--u) * 110));
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.94);
  transition: opacity .6s ease, transform .8s cubic-bezier(.2, .8, .2, 1), visibility 0s .8s;
}
.xp-final-t { color: #fff; font-size: max(26px, calc(var(--u) * 6.4)); font-weight: 800; line-height: 1.12; letter-spacing: -.04em; }
.xp-final-s { color: #aab6cc; font-size: max(14px, calc(var(--u) * 1.9)); }
.xp-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: calc(var(--u) * 1.2); margin-bottom: calc(var(--u) * .8); }
.lys-xp-frame .lys-button-primary { background: linear-gradient(115deg, var(--xp-mint), var(--xp-violet)); color: #08121b; }
.xp-pills span { padding: .5em 1.1em; border: 1px solid rgba(255, 255, 255, .18); border-radius: 99px; background: rgba(255, 255, 255, .07); color: #e8eefb; font-size: max(12px, calc(var(--u) * 1.5)); font-weight: 600; }

/* ---------- Textos, puntos y pista ---------- */
.xp-caps, .xp-dots { opacity: clamp(0, calc((var(--e) - .8) * 5), 1); }
.xp-caps { position: absolute; left: 6cqw; bottom: 7cqh; width: min(46cqw, calc(var(--u) * 62)); }
.xp-cap { position: absolute; bottom: 0; left: 0; display: grid; gap: calc(var(--u) * .8); width: 100%; opacity: 0; transform: translateY(calc(var(--u) * 1.6)); transition: opacity .5s ease, transform .6s ease; }
.xp-n { color: var(--xp-mint); font-size: max(11px, calc(var(--u) * 1.5)); font-weight: 800; letter-spacing: .14em; }
.xp-cap strong { color: #fff; font-size: max(20px, calc(var(--u) * 4)); line-height: 1.12; letter-spacing: -.03em; }
.xp-cap span:last-child { color: #aab6cc; font-size: max(14px, calc(var(--u) * 1.7)); line-height: 1.5; }
.xp-dots { position: absolute; right: 6cqw; bottom: 7cqh; display: flex; align-items: center; gap: calc(var(--u) * .9); }
.xp-dots i { display: block; width: max(6px, calc(var(--u) * 1.2)); height: max(6px, calc(var(--u) * 1.2)); border-radius: 99px; background: rgba(255, 255, 255, .25); transition: width .4s ease, background .4s ease; }
.xp-hint { position: absolute; bottom: 5cqh; left: 50%; padding: .5em 1.2em; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: rgba(255, 255, 255, .09); color: #cfd8ea; font-size: max(10px, calc(var(--u) * 1.5)); font-weight: 600; opacity: clamp(0, calc(1 - var(--e) * 5), 1); transform: translateX(-50%); white-space: nowrap; }

/* ---------- Escenas (data-beat) ---------- */
.lys-xp-frame[data-beat="1"] .xp-cap[data-b="1"],
.lys-xp-frame[data-beat="2"] .xp-cap[data-b="2"],
.lys-xp-frame[data-beat="3"] .xp-cap[data-b="3"] { opacity: 1; transform: none; }
.lys-xp-frame[data-beat="1"] .xp-dots i:nth-child(1),
.lys-xp-frame[data-beat="2"] .xp-dots i:nth-child(2),
.lys-xp-frame[data-beat="3"] .xp-dots i:nth-child(3),
.lys-xp-frame[data-beat="4"] .xp-dots i:nth-child(4) { width: max(18px, calc(var(--u) * 4)); background: var(--xp-mint); }

.lys-xp-frame[data-beat="2"] .xp-browser { --x: -17; --s: .82; }
.lys-xp-frame[data-beat="2"] .xp-phone { --x: 45; --s: 1; --o: 1; }
.lys-xp-frame[data-beat="3"] .xp-browser { --x: -40; --s: .6; --o: 0; }
.lys-xp-frame[data-beat="3"] .xp-phone { --x: -30; --s: .95; --o: 1; }
.lys-xp-frame[data-beat="3"] .xp-chat { --x: 24; --s: 1; --o: 1; }
.lys-xp-frame[data-beat="3"] .xp-msg { opacity: 1; transform: none; transition-delay: calc(var(--k) * .4s + .5s); }
.lys-xp-frame[data-beat="4"] .xp-browser { --x: 0; --s: .7; --o: 0; }
.lys-xp-frame[data-beat="4"] .xp-phone { --x: 0; --s: .8; --o: 0; }
.lys-xp-frame[data-beat="4"] .xp-chat { --x: 24; --s: .9; --o: 0; }
.lys-xp-frame[data-beat="4"] .xp-final { visibility: visible; opacity: 1; transform: translate(-50%, -50%); transition-delay: .25s, .25s, 0s; }

/* Pantalla vertical (móvil): más espacio para los textos, chat centrado y más ancho */
@container xp (max-aspect-ratio: 1/1) {
  .xp-inner { --u: .78cqw; --cy: 40%; }
  .xp-caps { right: 6cqw; bottom: 13cqh; width: auto; }
  .xp-dots { right: auto; left: 50%; bottom: 6cqh; transform: translateX(-50%); }
  .xp-chat { width: calc(var(--u) * 114); }
  .lys-xp-frame[data-beat="3"] .xp-phone { --o: 0; }
  .lys-xp-frame[data-beat="3"] .xp-chat { --x: 0; }
}

/* ==========================================================
   PROYECTO INTERACTIVO (SUBLIMAK) EN MARCO DE NAVEGADOR
   ========================================================== */
.lys-dialog-wide { width: min(1120px, 96vw); }
.lys-dialog-head { display: grid; gap: 12px; padding-right: 44px; }
.lys-site-frame { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #0c0f14; }
.lys-site-frame-bar { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.lys-site-frame-dots { display: flex; gap: 6px; }
.lys-site-frame-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f56; }
.lys-site-frame-dots i:nth-child(2) { background: #ffbd2e; } .lys-site-frame-dots i:nth-child(3) { background: #27c93f; }
.lys-site-frame-title { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.lys-site-frame-view { display: block; width: 100%; height: min(64dvh, 680px); border: 0; background: #fff; }
.lys-frame-note { margin: 0; color: var(--muted); font-size: .78rem; }
@media (max-width: 540px) {
  .lys-site-frame-view { height: 62dvh; }
  .lys-site-frame-bar { padding: 8px 10px; gap: 8px; }
  .lys-site-frame-title { display: none; }
}

/* =========================================================
   Lysvex production polish: accessibility & compact devices
   ========================================================= */
html { text-size-adjust: 100%; -webkit-text-size-adjust: 100%; }
body { overflow-wrap: break-word; }
main, section, article, .lys-section-wrap, .lys-header-inner { min-width: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
img, svg, video, iframe { max-width: 100%; }
.lys-hero2 h1, .lys-title, .lys-cta-section h2 { max-width: 100%; }
.lys-form input, .lys-form select, .lys-form textarea { max-width: 100%; font-size: 16px; }
.lys-is-pending { opacity: .75; }
[hidden] { display: none !important; }
/* Sin JavaScript, o con «Reducir movimiento», los servicios son tarjetas
   convencionales visibles y completamente navegables. */
html:not(.lys-scroll-services-ready) .lys-services-scroll-track { height: auto; min-height: 0; }
html:not(.lys-scroll-services-ready) .lys-services-sticky {
  position: relative; height: auto; min-height: 0; overflow: visible;
  padding-block: clamp(60px, 8vw, 110px);
}
html:not(.lys-scroll-services-ready) .lys-services-header-fixed {
  position: relative; inset: auto; transform: none; opacity: 1;
}
html:not(.lys-scroll-services-ready) .lys-services-cards-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 22px; height: auto; padding-inline: max(20px, calc((100vw - 1180px)/2));
  perspective: none;
}
html:not(.lys-scroll-services-ready) .lys-sc-card {
  position: relative; inset: auto; width: 100%; max-width: none;
  min-height: 250px; opacity: 1; transform: none; filter: none;
  pointer-events: auto; will-change: auto;
}
html:not(.lys-scroll-services-ready) .lys-services-bg-blur { display: none; }

/* El mismo efecto de tarjetas que entran del lado derecho, se centran y
   salen por el izquierdo también en celulares, sin efectos hover obligatorios. */
@media (max-width: 700px) {
  html.lys-scroll-services-ready .lys-services-scroll-track {
    height: 335svh;
    min-height: 0;
  }
  html.lys-scroll-services-ready .lys-services-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
  }
  html.lys-scroll-services-ready .lys-services-header-fixed {
    position: absolute;
    inset: 7svh 0 auto;
    transform-origin: top center;
    padding-inline: 22px;
  }
  html.lys-scroll-services-ready .lys-services-header-fixed .lys-section-heading {
    display: block;
    margin: 0;
    text-align: center;
  }
  html.lys-scroll-services-ready .lys-services-header-fixed .lys-section-heading h2 {
    font-size: clamp(1.7rem, 8vw, 2.45rem);
    line-height: 1.12;
  }
  html.lys-scroll-services-ready .lys-services-header-fixed .lys-section-heading p {
    max-width: 32rem;
    margin: 10px auto 0;
    font-size: .9rem;
    line-height: 1.45;
  }
  html.lys-scroll-services-ready .lys-services-cards-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0;
    perspective: 900px;
  }
  html.lys-scroll-services-ready .lys-sc-card {
    position: absolute;
    inset: auto;
    width: min(86vw, 410px);
    max-width: none;
    min-height: 0;
    padding: clamp(22px, 5.5vw, 32px);
    gap: .8rem;
    transition: transform .65s cubic-bezier(.16,1,.3,1),
                opacity .55s ease, filter .55s ease, box-shadow .55s ease;
  }
  html.lys-scroll-services-ready .lys-sc-card.lys-state-center {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotateY(0);
    filter: none;
    pointer-events: auto;
  }
  html.lys-scroll-services-ready .lys-sc-card.lys-state-idle {
    opacity: .4;
    transform: translate3d(0, 30svh, 0) scale(.88);
    filter: blur(2px);
    pointer-events: none;
  }
  html.lys-scroll-services-ready .lys-sc-card.lys-state-hidden-right {
    opacity: 0;
    transform: translate3d(105vw, 0, 0) scale(.78) rotateY(12deg);
    filter: blur(3px);
    pointer-events: none;
  }
  html.lys-scroll-services-ready .lys-sc-card.lys-state-hidden-left {
    opacity: 0;
    transform: translate3d(-105vw, 0, 0) scale(.78) rotateY(-12deg);
    filter: blur(3px);
    pointer-events: none;
  }
  html.lys-scroll-services-ready .lys-sc-card h3 { font-size: clamp(1.35rem, 5vw, 1.65rem); }
  html.lys-scroll-services-ready .lys-sc-card p { font-size: clamp(.9rem, 3.5vw, 1rem); line-height: 1.5; }
  html.lys-scroll-services-ready .lys-sc-card a { width: 44px; height: 44px; }
  .lys-services-bg-blur { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .lys-nav-wrapper.lys-active { max-height: min(78dvh, 680px); overflow-y: auto; overscroll-behavior: contain; }
  .lys-site-frame-view { height: min(65dvh, 600px); }
}

/* Teléfonos en horizontal o ventanas de poca altura: mismas transiciones,
   pero las tarjetas se pueden desplazar interiormente si no caben. */
@media (max-height: 580px) {
  html.lys-scroll-services-ready .lys-sc-card {
    max-height: calc(100svh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 22px;
  }
}

/* En móviles sin hover se representa el mismo brillo/zoom cuando cada tarjeta
   de proyectos entra en pantalla, sin ocultar el botón de interacción. */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .lys-js-reveal .lys-feature-card.lys-in .lys-feature-cover img {
    animation: lys-feature-touch-zoom 1.15s cubic-bezier(.2,.7,.2,1) both;
  }
  .lys-js-reveal .lys-feature-card.lys-in {
    border-color: rgba(86, 197, 233, .48);
    box-shadow: 0 15px 36px rgba(22, 91, 151, .16);
  }
}
@keyframes lys-feature-touch-zoom {
  from { transform: scale(.97); }
  to { transform: scale(1.035); }
}

@media (max-width: 380px) {
  .lys-hero2 h1, .lys-title { font-size: clamp(1.9rem, 9vw, 2.5rem); line-height: 1.14; }
  .lys-section-wrap { min-width: 0; }
  .lys-filter { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* ===========================================================
   LYSVEX / FEATURED WORK — desktop, tablet & mobile redesign
   =========================================================== */
.lys-featured-showcase {
  position: relative;
  isolation: isolate;
  max-width: 1490px;
  padding: clamp(64px, 7vw, 108px) clamp(20px, 4.6vw, 64px) clamp(76px, 8vw, 120px);
}
.lys-featured-showcase::before,
.lys-featured-showcase::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.lys-featured-showcase::before {
  width: clamp(170px, 24vw, 380px);
  aspect-ratio: 1;
  top: -90px;
  right: -105px;
  border: 1px solid rgba(72, 159, 242, .18);
  background: radial-gradient(circle at 30% 75%, rgba(6, 212, 219, .22), rgba(52, 98, 224, .11) 38%, transparent 72%);
}
.lys-featured-showcase::after {
  width: 210px;
  aspect-ratio: 1;
  left: -150px;
  bottom: 0;
  border: 1px solid rgba(60, 216, 212, .16);
  background: radial-gradient(circle, rgba(4, 167, 179, .13), transparent 72%);
}
.lys-featured-intro {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  margin: 0 auto clamp(30px, 4.2vw, 52px);
  max-width: 1030px;
}
.lys-featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border: 1px solid rgba(72, 189, 228, .62);
  border-radius: 99px;
  background: rgba(7, 24, 43, .55);
  color: #a5e6f5;
  font-size: .77rem;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.4;
}
.lys-featured-kicker svg { width: 19px; height: 19px; flex: 0 0 auto; color: #3de6d1; }
.lys-featured-intro h2 {
  margin: 21px 0 14px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.058em;
  text-wrap: balance;
}
.lys-featured-intro h2 span {
  color: #70dbe9;
  background: linear-gradient(105deg, #41e4ce 0%, #64bfee 47%, #617ff5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lys-featured-intro > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(.96rem, 1.25vw, 1.1rem);
  line-height: 1.75;
  text-wrap: pretty;
}
.lys-featured-rule {
  display: block;
  width: 100px;
  height: 5px;
  border-radius: 999px;
  margin-top: 26px;
  background: linear-gradient(90deg, #42ebd6, #5288f6);
}
.lys-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(15px, 1.8vw, 26px);
}
.lys-feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(81, 130, 211, .29);
  border-radius: 24px;
  background: linear-gradient(153deg, #111e33 0%, #0a1526 49%, #091323 100%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  transition: border-color .27s ease, box-shadow .27s ease;
}
.lys-feature-card-blue { --lys-card-glow: rgba(70, 129, 247, .25); }
.lys-feature-card-violet { --lys-card-glow: rgba(160, 71, 226, .23); }
.lys-feature-card-teal { --lys-card-glow: rgba(26, 217, 181, .20); }
.lys-feature-card:hover,
.lys-feature-card:focus-within {
  border-color: rgba(75, 218, 229, .65);
  box-shadow: 0 22px 46px var(--lys-card-glow), 0 24px 48px rgba(0, 0, 0, .23);
}
.lys-feature-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  width: 100%;
  aspect-ratio: 1.72;
  background: #081728;
}
.lys-feature-cover::after {
  content: "";
  position: absolute;
  inset: 65% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(7, 20, 35, .18));
}
.lys-feature-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
@media (hover: hover) and (pointer: fine) {
  .lys-feature-card:hover .lys-feature-cover img { transform: scale(1.035); }
}
.lys-feature-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: clamp(18px, 2vw, 29px);
}
.lys-feature-card h3 {
  margin: 0 0 14px;
  color: #f7f9ff;
  font-size: clamp(1.35rem, 1.8vw, 1.8rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.25;
}
.lys-feature-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 9px;
  margin-bottom: 16px;
}
.lys-feature-category {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #b5c7dc;
  font-size: .89rem;
  line-height: 1.3;
}
.lys-feature-category svg { width: 19px; height: 19px; flex: 0 0 auto; color: #4ceada; }
.lys-feature-divider { height: 19px; width: 1px; background: rgba(111, 158, 196, .4); }
.lys-feature-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 11px;
  border: 1px solid rgba(61, 229, 204, .7);
  border-radius: 999px;
  color: #74f2d6;
  font-size: .68rem;
  font-weight: 740;
  letter-spacing: .02em;
  line-height: 1.2;
  text-transform: uppercase;
}
.lys-feature-desc {
  margin: 0 0 24px;
  color: #b3c2d5;
  font-size: clamp(.86rem, 1vw, .96rem);
  line-height: 1.65;
}
.lys-feature-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 52px;
  margin-top: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(104deg, #3cebd7 0%, #58cde9 49%, #5684f6 100%);
  color: #061622;
  font-size: .96rem;
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.25;
  text-decoration: none;
  transition: filter .22s ease, box-shadow .22s ease;
}
.lys-feature-action svg { width: 19px; height: 19px; flex: 0 0 auto; }
.lys-feature-action:hover { filter: brightness(1.08); box-shadow: 0 10px 26px rgba(54, 163, 229, .18); }
.lys-feature-action:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 7px #247cb9;
}
:root[data-theme="light"] .lys-featured-kicker { color: #07586a; background: rgba(227, 245, 251, .86); border-color: #398fbb; }
:root[data-theme="light"] .lys-featured-intro h2 span { background: linear-gradient(105deg, #087d80, #385dc4); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .lys-feature-card {
  border-color: rgba(42, 85, 146, .24);
  background: linear-gradient(150deg, #fff 0%, #f5f9ff 100%);
  box-shadow: 0 12px 30px rgba(20, 50, 90, .10);
}
:root[data-theme="light"] .lys-feature-card h3 { color: #101d32; }
:root[data-theme="light"] .lys-feature-category,
:root[data-theme="light"] .lys-feature-desc { color: #4c5e76; }
:root[data-theme="light"] .lys-feature-status { color: #08736a; border-color: rgba(8, 115, 106, .64); }
:root[data-theme="light"] .lys-feature-category svg { color: #087f70; }
:root[data-theme="light"] .lys-feature-card:hover,
:root[data-theme="light"] .lys-feature-card:focus-within { border-color: #328dca; }
@media (max-width: 1080px) {
  .lys-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lys-feature-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); justify-self: center; }
}
@media (max-width: 700px) {
  .lys-featured-showcase { padding: 58px 20px 74px; }
  .lys-featured-intro { margin-bottom: 29px; }
  .lys-featured-intro h2 { font-size: clamp(2rem, 8.5vw, 3.25rem); line-height: 1.15; margin: 20px 0 12px; }
  .lys-featured-intro > p { font-size: .96rem; line-height: 1.65; }
  .lys-featured-kicker { font-size: .68rem; padding: 9px 14px; gap: 8px; }
  .lys-featured-kicker svg { width: 17px; height: 17px; }
  .lys-featured-rule { margin-top: 20px; height: 4px; width: 75px; }
  .lys-featured-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lys-feature-card:last-child { grid-column: auto; max-width: 100%; justify-self: stretch; }
  .lys-feature-card { border-radius: 20px; }
  .lys-feature-card-body { padding: 20px; }
  .lys-feature-card h3 { font-size: 1.5rem; }
  .lys-feature-desc { font-size: .94rem; line-height: 1.65; margin-bottom: 22px; }
  .lys-feature-cover { aspect-ratio: 1.66; }
  .lys-feature-action { min-height: 52px; }
}
@media (max-width: 360px) {
  .lys-featured-showcase { padding-inline: 15px; }
  .lys-feature-card-body { padding: 16px; }
  .lys-feature-divider { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lys-feature-card,
  .lys-feature-cover img,
  .lys-feature-action { transition: none !important; }
}

/* Accesibilidad: el enlace de cada tarjeta participa en el flujo del contenido.
   La regla antigua lo posicionaba encima del párrafo en teléfonos pequeños. */
.lys-sc-card > a {
  position: relative;
  inset: auto;
  flex: none;
  margin-top: .35rem;
  align-self: flex-start;
}
.lys-sc-card > a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

/* Mobile repair: keep sticky scenes in the document viewport. */
.lys-site-main { overflow: visible; }
.lys-xp-slot { overflow: visible; }
.lys-services-scroll-track { height: 350vh; height: 350svh; }
.lys-services-sticky { height: 100vh; height: 100svh; }
.lys-services-header-fixed { pointer-events: none; }
.lys-services-cards-container { height: 100%; }
.lys-sc-card { max-height: calc(100vh - 180px); max-height: calc(100svh - 180px); overflow-y: auto; }
.lys-xp-frame:not(.is-active) { pointer-events: none; }
.lys-diagnostic { position: fixed; bottom: 12px; left: 12px; z-index: 2000; max-width: calc(100vw - 24px); padding: 12px; border: 1px solid #70f0d0; border-radius: 12px; background: #0a0f1d; color: #fff; font: 12px/1.6 monospace; }
.lys-diagnostic pre { white-space: pre-wrap; }
@media (max-width: 980px) {
  .lys-site-header .lys-nav-wrapper { position: absolute; top: calc(100% + 10px); width: 100%; left: 0; transform: translateY(-8px); max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); }
  .lys-site-header .lys-nav-wrapper.lys-active { transform: translateY(0); }
  .lys-hamburger { min-width: 44px; min-height: 44px; }
}
@media (max-width: 700px) {
  .lys-xp-slot { aspect-ratio: 4 / 3; }
  .lys-sc-card { max-height: calc(100svh - 160px); }
  .lys-services-header-fixed { z-index: 4; }
  .lys-featured-showcase { width: 100%; }
}
@media (max-height: 580px) {
  html.lys-scroll-services-ready .lys-sc-card { max-height: calc(100svh - 100px); }
}
/* Clip decorative horizontal overflow at the viewport, never at the sticky ancestor. */
html { overflow-x: clip; }
.lys-hero2 { overflow: clip; }
@supports not (overflow: clip) {
  .lys-hero-glow { display: none; }
}
body { min-width: 0; }
.lys-hero { overflow: clip; }
.lys-featured-showcase { overflow: clip; }

/* Touch scroll: let a gesture continue into the page at card boundaries. */
html.lys-scroll-services-ready .lys-sc-card { overscroll-behavior: auto; }
.lys-motion-paused *, .lys-motion-paused *::before, .lys-motion-paused *::after { animation-play-state: paused !important; }
@media (max-width: 980px), (pointer: coarse) {
  html.lys-scroll-services-ready .lys-sc-card {
    filter: none;
    will-change: auto;
    transition-property: transform, opacity;
  }
  .lys-site-header::before, .lys-site-header .lys-nav-wrapper,
  .lys-mac-menubar, .lys-mac-dock, .lys-services-bg-blur {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* iPhone Safari presentation; toolbar icons are decorative mockup chrome. */
.lys-safari-toolbar { display: none; }
@media (max-width: 540px) {
  .lys-mac-dock { display: none; }
  .lys-mac-screen { background: #161618; }
  .lys-mac-window, .lys-mac-window.lys-is-max { inset: 46px 0 60px; }
  .lys-mac-titlebar { order: 2; flex-shrink: 0; height: 50px; background: #242426; padding: 7px 12px; grid-template-columns: 1fr 28px; }
  .lys-mac-url { position: relative; background: #38383b; color: #f5f5f7; text-align: center; padding: 8px 26px; font-size: 11px; border: 0; box-shadow: none; }
  .lys-mac-url::before { content: 'ᴀA'; position: absolute; left: 9px; color: #ddd; }
  .lys-mac-url::after { content: '↻'; position: absolute; right: 9px; font-size: 15px; top: 4px; }
  .lys-mac-theme { color: #a3c8ff; }
  .lys-safari-toolbar { position: absolute; inset: auto 0 16px; height: 44px; display: flex; align-items: center; justify-content: space-around; background: #242426; color: #86b5ff; pointer-events: none; }
  .lys-safari-toolbar svg { width: 20px; height: 20px; }
  .lys-safari-toolbar svg:nth-child(2) { opacity: .35; }
  .lys-mac-screen::after { bottom: 6px; }
}

.lys-go-plan { display:grid; grid-template-columns:1fr 1fr; gap:40px; margin-bottom:28px; padding:36px; border-color:var(--accent); }
.lys-go-plan h3 { font-size:2rem; margin:12px 0; }
.lys-go-address-label { margin:24px 0 8px; font-size:.85rem; color:var(--muted); }
.lys-go-address { display:block; font-size:clamp(1rem,2vw,1.35rem); font-weight:700; overflow-wrap:anywhere; }
.lys-go-small { font-size:.85rem; color:var(--muted); line-height:1.6; }
.lys-go-offer { min-width:0; }
.lys-go-offer .lys-button { margin-top:16px; }
@media(max-width:699px){.lys-go-plan{grid-template-columns:1fr;gap:20px;padding:26px 20px}.lys-go-plan .lys-price{font-size:1.8rem}}
