* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #020711;
  --cyan: #00eaff;
  --cyan-soft: rgba(0, 234, 255, 0.25);
  --text: #f4fbff;
  --muted: #9fb8c5;
  --panel: rgba(2, 10, 22, 0.88);
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  min-height: 100vh;
  font-family: "Montserrat", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  background:
    radial-gradient(circle at center, rgba(0, 234, 255, 0.16), transparent 34%),
    linear-gradient(180deg, #01040a 0%, #04111f 55%, #01040a 100%);
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 234, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 234, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, black 16%, black 86%, transparent);
}

.ambient {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: rgba(0, 234, 255, 0.16);
  filter: blur(95px);
  animation: floatGlow 8s ease-in-out infinite alternate;
  pointer-events: none;
}

.ambient-one { top: 5%; left: 6%; }
.ambient-two { right: 8%; bottom: 5%; animation-delay: -3s; }

.welcome-card {
  position: relative;
  z-index: 2;
  width: min(94vw, 520px);
  height: min(90vh, 820px);
  min-height: 640px;
  max-height: 920px;
  border: 1px solid rgba(0, 234, 255, 0.32);
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(16px, 3vw, 28px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(2, 10, 22, 0.76);
  box-shadow: 0 0 45px rgba(0, 234, 255, 0.2), inset 0 0 45px rgba(0, 234, 255, 0.06);
  backdrop-filter: blur(12px);
  cursor: pointer;
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.22);
}


.welcome-card::before,
.welcome-card::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: var(--cyan-soft);
  filter: blur(80px);
  pointer-events: none;
}

.welcome-card::before { top: -85px; left: -85px; }
.welcome-card::after { right: -85px; bottom: -85px; }

.hero-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.94;
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.welcome-card.is-booting .hero-logo,
.welcome-card.is-open .hero-logo,
.welcome-card.core-mode .hero-logo {
  opacity: 0.34;
  transform: scale(1.04);
  filter: blur(1px) saturate(1.15);
}

.cyber-ring {
  position: absolute;
  z-index: 2;
  width: min(82%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.24);
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.18), inset 0 0 32px rgba(0, 234, 255, 0.08);
  opacity: 0.4;
  pointer-events: none;
  animation: rotateRing 18s linear infinite;
}

.cyber-ring::before,
.cyber-ring::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 234, 255, 0.28);
}

.cyber-ring::after {
  inset: 48px;
  border-style: solid;
  border-color: transparent rgba(0, 234, 255, 0.58) transparent rgba(0, 234, 255, 0.58);
  animation: rotateRing 8s linear infinite reverse;
}

.scan-line {
  position: absolute;
  z-index: 4;
  left: -20%;
  width: 140%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 234, 255, 0.95), transparent);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}

.welcome-card.is-booting .scan-line { animation: scanMove 1.15s ease-out forwards; }

.boot-status {
  position: absolute;
  z-index: 5;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0;
  text-shadow: 0 0 20px rgba(0, 234, 255, 0.75);
  pointer-events: none;
}

.welcome-card.is-booting .boot-status { animation: bootText 1.15s ease-out forwards; }

.content {
  display: none;
  position: relative;
  z-index: 6;
  width: min(100%, 390px);
  text-align: center;
  padding: clamp(20px, 4vw, 30px);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.62));
  border: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: inset 0 0 34px rgba(0, 234, 255, 0.06), 0 0 36px rgba(0, 234, 255, 0.12);
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  filter: blur(10px);
  pointer-events: none;
}

.welcome-card.is-open .content {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  pointer-events: auto;
  animation: holoReveal 0.9s ease-out forwards;
}

.welcome-card.core-mode .content { display: none; }

.eyebrow {
  color: var(--cyan);
  letter-spacing: clamp(0.12em, 2vw, 0.28em);
  text-transform: uppercase;
  font-size: clamp(0.62rem, 1.8vw, 0.76rem);
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2rem, 8.4vw, 3.25rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
  text-shadow: 0 0 24px rgba(0, 234, 255, 0.32);
}

h1 span { color: var(--cyan); }

.subtitle {
  color: var(--muted);
  font-size: clamp(0.92rem, 2.4vw, 1.08rem);
  line-height: 1.65;
  margin-bottom: 30px;
}

.main-btn {
  border: 1px solid rgba(0, 234, 255, 0.7);
  border-radius: 999px;
  padding: 15px 30px;
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 234, 255, 0.12), rgba(0, 234, 255, 0.02));
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(0, 234, 255, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  animation: buttonPulse 2.3s ease-in-out infinite;
}

.main-btn span { margin-left: 14px; color: var(--cyan); }
.main-btn:hover { transform: translateY(-3px); background: linear-gradient(90deg, rgba(0, 234, 255, 0.24), rgba(0, 234, 255, 0.08)); box-shadow: 0 0 38px rgba(0, 234, 255, 0.38); }

.core-interface {
  display: none;
  position: relative;
  z-index: 8;
  width: min(100%, 430px);
  aspect-ratio: 1;
  place-items: center;
  opacity: 0;
  transform: scale(0.84);
  pointer-events: none;
}

.welcome-card.core-mode .core-interface {
  display: grid;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
  animation: coreReveal 0.9s ease-out forwards;
}


.hud-ring,
.hud-pulse,
.hud-node {
  position: absolute;
  pointer-events: none;
}

.hud-ring {
  inset: 4%;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.18);
  box-shadow: inset 0 0 28px rgba(0, 234, 255, 0.08), 0 0 22px rgba(0, 234, 255, 0.1);
}

.hud-ring-one {
  animation: hudRotate 28s linear infinite;
}

.hud-ring-one::before,
.hud-ring-one::after,
.hud-ring-two::before,
.hud-ring-two::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 234, 255, 0.85);
}

.hud-ring-one::before {
  width: 44px;
  height: 2px;
  top: 16%;
  left: 50%;
}

.hud-ring-one::after {
  width: 2px;
  height: 40px;
  right: 18%;
  top: 50%;
}

.hud-ring-two {
  inset: 14%;
  border-style: dashed;
  border-color: rgba(0, 234, 255, 0.24);
  animation: hudRotate 18s linear infinite reverse;
}

.hud-ring-two::before {
  width: 34px;
  height: 2px;
  bottom: 18%;
  left: 17%;
}

.hud-ring-two::after {
  width: 2px;
  height: 34px;
  top: 16%;
  left: 28%;
}

.hud-pulse {
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.18);
  animation: hudPulse 2.8s ease-in-out infinite;
}

.hud-node {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.95);
  opacity: 0.85;
  animation: nodeBlink 2.4s ease-in-out infinite;
}

.node-a { top: 12%; left: 48%; }
.node-b { right: 10%; top: 46%; animation-delay: -0.6s; }
.node-c { bottom: 12%; left: 49%; animation-delay: -1.2s; }
.node-d { left: 10%; top: 47%; animation-delay: -1.8s; }

.core-center {
  width: min(58%, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  padding: clamp(16px, 3vw, 24px);
  background: radial-gradient(circle, rgba(0, 234, 255, 0.16), rgba(0, 0, 0, 0.64) 58%, rgba(0, 234, 255, 0.04));
  border: 1px solid rgba(0, 234, 255, 0.34);
  box-shadow: 0 0 42px rgba(0, 234, 255, 0.26), inset 0 0 34px rgba(0, 234, 255, 0.08);
}

.core-brand {
  color: var(--cyan);
  font-size: clamp(0.72rem, 2vw, 0.92rem);
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 4px;
  text-shadow: 0 0 18px rgba(0, 234, 255, 0.72);
}

.core-word {
  display: block;
  font-size: clamp(1.15rem, 4vw, 1.68rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.core-center p {
  color: var(--muted);
  font-size: clamp(0.68rem, 1.9vw, 0.78rem);
  line-height: 1.45;
  margin-top: 10px;
}

.orbit-item {
  position: absolute;
  width: clamp(82px, 18vw, 104px);
  min-height: clamp(38px, 7vw, 46px);
  border: 1px solid rgba(0, 234, 255, 0.42);
  border-radius: 15px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(2, 10, 22, 0.78);
  box-shadow: 0 0 22px rgba(0, 234, 255, 0.14);
  backdrop-filter: blur(10px);
  font: inherit;
  font-size: clamp(0.56rem, 1.45vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.orbit-item:hover,
.orbit-item.is-active {
  transform: scale(1.06);
  border-color: rgba(0, 234, 255, 0.9);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.34);
}

.item-inicio { top: 0; left: 50%; transform: translateX(-50%); }
.item-nosotros { top: 22%; right: 0; }
.item-servicios { bottom: 22%; right: 0; }
.item-proyectos { bottom: 0; left: 50%; transform: translateX(-50%); }
.item-laboratorio { bottom: 22%; left: 0; }
.item-contacto { top: 22%; left: 0; }
.item-inicio:hover, .item-inicio.is-active, .item-proyectos:hover, .item-proyectos.is-active { transform: translateX(-50%) scale(1.06); }

.section-panel {
  display: none;
  position: absolute;
  z-index: 30;
  left: 50%;
  top: 52%;
  width: min(92vw, 720px);
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(0, 234, 255, 0.3);
  background: var(--panel);
  box-shadow: 0 0 42px rgba(0, 234, 255, 0.2);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateX(-50%) translateY(-46%) scale(0.98);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-panel.is-visible {
  display: block;
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) scale(1);
  pointer-events: auto;
}

.panel-body {
  max-height: min(62vh, 540px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px;
  border-radius: 22px;
  scrollbar-color: rgba(0, 234, 255, 0.65) rgba(255, 255, 255, 0.08);
}

.close-panel {
  position: absolute;
  top: -24px;
  right: -18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.62);
  color: var(--text);
  background: rgba(2, 10, 22, 0.96);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.32);
}

.panel-kicker {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-panel h2 {
  font-size: clamp(1.35rem, 5vw, 1.95rem);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-right: 34px;
}

.section-panel .panel-body > p:not(.panel-kicker) {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 16px;
}

.panel-grid {
  display: grid;
  gap: 10px;
}

.panel-card {
  border: 1px solid rgba(0, 234, 255, 0.16);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.panel-card span {
  display: block;
  width: 34px;
  height: 3px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.7);
  margin-bottom: 9px;
}

.panel-card strong { display: block; margin-bottom: 5px; }
.panel-card p { color: var(--muted); font-size: 0.82rem; line-height: 1.45; }


.back-home-btn {
  display: none;
  position: absolute;
  top: clamp(14px, 2.8vw, 28px);
  right: clamp(14px, 3vw, 32px);
  z-index: 60;
  border: 1px solid rgba(0, 234, 255, 0.45);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  background: rgba(2, 10, 22, 0.76);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.16);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.back-home-btn span {
  color: var(--cyan);
  margin-right: 8px;
}

.back-home-btn.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.back-home-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 234, 255, 0.9);
  box-shadow: 0 0 34px rgba(0, 234, 255, 0.3);
}

.site-version {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 40;
  color: rgba(244, 251, 255, 0.72);
  font-size: clamp(0.62rem, 2vw, 0.78rem);
  letter-spacing: 0.08em;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.site-version span { color: var(--cyan); font-weight: 700; }

@keyframes rotateRing { to { transform: rotate(360deg); } }
@keyframes scanMove { 0% { top: 0%; opacity: 0; } 12% { opacity: 1; } 80% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
@keyframes bootText { 0% { opacity: 0; transform: translateX(-50%) translateY(8px); } 24% { opacity: 1; transform: translateX(-50%) translateY(0); } 82% { opacity: 1; } 100% { opacity: 0; transform: translateX(-50%) translateY(-8px); } }
@keyframes holoReveal { 0% { opacity: 0; transform: translateY(22px) scale(0.94); filter: blur(10px); } 45% { opacity: 0.85; transform: translateY(-4px) scale(1.012); filter: blur(2px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes coreReveal { 0% { opacity: 0; transform: scale(0.82) rotate(-6deg); filter: blur(12px); } 100% { opacity: 1; transform: scale(1) rotate(0); filter: blur(0); } }
@keyframes buttonPulse { 0%, 100% { box-shadow: 0 0 26px rgba(0, 234, 255, 0.22); } 50% { box-shadow: 0 0 38px rgba(0, 234, 255, 0.42); } }
@keyframes floatGlow { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(28px, -18px, 0) scale(1.12); } }
@keyframes hudRotate { to { transform: rotate(360deg); } }
@keyframes hudPulse { 0%, 100% { transform: scale(0.92); opacity: 0.24; } 50% { transform: scale(1.08); opacity: 0.6; } }
@keyframes nodeBlink { 0%, 100% { opacity: 0.42; transform: scale(0.82); } 50% { opacity: 1; transform: scale(1.18); } }


@media (min-width: 900px) {
  .welcome-card {
    width: min(42vw, 540px);
    height: min(88vh, 680px);
    min-height: 560px;
  }

  .content {
    width: min(78%, 350px);
    padding: 23px 26px;
  }

  .eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    margin-bottom: 12px;
  }

  h1 {
    font-size: clamp(1.85rem, 3.25vw, 2.55rem);
    margin-bottom: 14px;
  }

  .subtitle {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 22px;
  }

  .main-btn {
    padding: 13px 28px;
    font-size: 0.84rem;
  }

  .core-interface {
    width: min(100%, 430px);
  }

  .orbit-item {
    width: 90px;
    min-height: 40px;
    padding: 7px 9px;
    font-size: 0.6rem;
    border-radius: 14px;
  }
}


@media (min-width: 900px) and (max-height: 760px) {
  .welcome-card {
    height: 94vh;
    min-height: 520px;
  }

  .content {
    width: min(76%, 330px);
    padding: 20px 24px;
  }

  h1 {
    font-size: clamp(1.7rem, 3vw, 2.25rem);
  }

  .subtitle {
    font-size: 0.84rem;
    margin-bottom: 18px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 10px;
  }

  .welcome-card {
    width: min(100%, 440px);
    height: min(94vh, 760px);
    min-height: 610px;
  }

  .core-center p {
    display: none;
  }

  .item-nosotros,
  .item-servicios { right: -2px; }

  .item-laboratorio,
  .item-contacto { left: -2px; }

  .section-panel {
    top: 54%;
    width: min(94vw, 440px);
  }

  .panel-body {
    max-height: 48vh;
    padding: 22px;
  }

  .close-panel {
    top: -24px;
    right: -8px;
    width: 40px;
    height: 40px;
  }

  .back-home-btn {
    top: 12px;
    right: 12px;
    padding: 10px 13px;
    font-size: 0.64rem;
  }
}

@media (max-width: 380px) {
  .welcome-card {
    min-height: 580px;
  }

  .orbit-item {
    min-width: 76px;
    padding: 9px 8px;
  }
}


/* v1.1.4 - Contact form + Tech updates */
.panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(0, 234, 255, 0.52);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 234, 255, 0.08);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.panel-action:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 234, 255, 0.9);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.28);
}

.panel-action span { color: var(--cyan); }

.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  place-items: center;
  padding: 18px;
}

.contact-modal.is-visible { display: grid; }

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 12, 0.72);
  backdrop-filter: blur(10px);
}

.contact-modal-box {
  position: relative;
  z-index: 2;
  width: min(94vw, 760px);
  max-height: min(88vh, 760px);
  overflow-y: auto;
  border: 1px solid rgba(0, 234, 255, 0.34);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(2, 10, 22, 0.96), rgba(0, 5, 14, 0.94));
  box-shadow: 0 0 54px rgba(0, 234, 255, 0.24), inset 0 0 42px rgba(0, 234, 255, 0.06);
}

.contact-modal-box h2 {
  font-size: clamp(1.35rem, 4.8vw, 2rem);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.modal-intro {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 22px;
}

.close-contact-modal {
  position: absolute;
  top: -18px;
  right: -12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.62);
  color: var(--text);
  background: rgba(2, 10, 22, 0.98);
  font-size: 1.35rem;
  cursor: pointer;
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.32);
}

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

.lead-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-full,
.form-submit,
.form-status {
  grid-column: 1 / -1;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid rgba(0, 234, 255, 0.22);
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
  font: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.lead-form textarea { resize: vertical; min-height: 118px; }

.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus {
  border-color: rgba(0, 234, 255, 0.82);
  box-shadow: 0 0 22px rgba(0, 234, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
}

.lead-form option {
  color: #06111f;
}

.form-submit {
  justify-self: center;
  margin-top: 8px;
}

.form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.form-status {
  min-height: 22px;
  color: var(--muted);
  text-align: center;
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-status.is-success { color: var(--cyan); }
.form-status.is-error { color: #ffb3b3; }

@media (max-width: 640px) {
  .lead-form {
    grid-template-columns: 1fr;
  }

  .contact-modal-box {
    max-height: 84vh;
    border-radius: 20px;
  }

  .close-contact-modal {
    top: -16px;
    right: -6px;
  }
}


/* v1.1.5 - Modal close fix + title accents + readability */
.title-accent {
  color: var(--cyan);
  text-shadow: 0 0 18px rgba(0, 234, 255, 0.38);
}

.section-panel h2 .title-accent,
.contact-modal-box h2 .title-accent {
  display: inline;
}

.panel-card strong {
  font-size: clamp(0.96rem, 2.45vw, 1.03rem);
  line-height: 1.35;
}

.panel-card p {
  font-size: clamp(0.94rem, 2.35vw, 1rem);
  line-height: 1.62;
}

.section-panel .panel-body > p:not(.panel-kicker),
.modal-intro {
  font-size: clamp(0.96rem, 2.35vw, 1.02rem);
  line-height: 1.65;
}

.contact-modal-box {
  overflow: visible;
  max-height: none;
  padding: 0;
}

.contact-modal-scroll {
  max-height: min(88vh, 760px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(22px, 4vw, 34px);
  border-radius: 24px;
  scrollbar-color: rgba(0, 234, 255, 0.65) rgba(255, 255, 255, 0.08);
}

.close-contact-modal {
  top: -26px;
  right: -20px;
  z-index: 8;
}

@media (max-width: 640px) {
  .contact-modal-box {
    width: min(92vw, 760px);
  }

  .contact-modal-scroll {
    max-height: 82vh;
    border-radius: 20px;
  }

  .close-contact-modal {
    top: -24px;
    right: -10px;
  }
}

/* v1.2 — Genesis | Leptonic App Store */
.item-proyectos {
  border-color: rgba(0, 234, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(0, 234, 255, 0.26), rgba(2, 10, 22, 0.88) 58%),
    rgba(2, 10, 22, 0.88);
  box-shadow:
    0 0 28px rgba(0, 234, 255, 0.42),
    inset 0 0 24px rgba(0, 234, 255, 0.12);
  color: #ffffff;
  position: absolute;
}

.item-proyectos::after {
  content: "★";
  position: absolute;
  top: -11px;
  right: -9px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(0, 234, 255, 0.7);
  background: rgba(2, 10, 22, 0.95);
  color: var(--cyan);
  font-size: 0.7rem;
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.55);
  animation: appBadgePulse 1.8s ease-in-out infinite alternate;
}

@keyframes appBadgePulse {
  from { transform: scale(0.94); opacity: 0.72; }
  to { transform: scale(1.08); opacity: 1; }
}

.app-store-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.app-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 234, 255, 0.2);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)),
    rgba(2, 10, 22, 0.62);
  box-shadow: inset 0 0 22px rgba(0, 234, 255, 0.045);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cyan);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.78);
}

.app-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.app-status,
.app-category {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}

.app-status {
  padding: 7px 9px;
  color: #051015;
  background: var(--cyan);
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.35);
}

.status-production .app-status { background: #00f5b8; }
.status-beta .app-status { background: #ffd166; }
.status-development .app-status { background: #62a8ff; color: #051015; }
.status-concept .app-status { background: #bb8cff; color: #051015; }

.app-category {
  color: var(--muted);
  text-align: right;
}

.app-card h3 {
  font-size: clamp(1.02rem, 2.2vw, 1.24rem);
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.app-codename {
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 7px;
}

.app-codename strong {
  color: var(--cyan);
  letter-spacing: 0.09em;
}

.app-rating {
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.app-description {
  color: var(--muted);
  font-size: clamp(0.9rem, 2.1vw, 0.96rem);
  line-height: 1.56;
  margin-bottom: 12px;
}

.app-tech {
  color: #d9fbff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.app-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0, 234, 255, 0.58);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(0, 234, 255, 0.1);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.app-action:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 234, 255, 0.95);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.28);
}

@media (max-width: 680px) {
  .app-store-grid {
    grid-template-columns: 1fr;
  }

  .app-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-category {
    text-align: left;
  }
}


/* v1.3.0 ·Atlas· — App explorer, pricing assistant and electric section accents */
.card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 8px;
}

.card-heading strong {
  margin: 0;
}

.neon-orb {
  --orb: #00eaff;
  position: relative;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--orb) 78%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 13px color-mix(in srgb, var(--orb) 68%, transparent);
}

.neon-orb i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 0 11px var(--orb);
}

.accent-cyan .neon-orb { --orb: #00eaff; }
.accent-lime .neon-orb { --orb: #8dff55; }
.accent-violet .neon-orb { --orb: #b87bff; }
.accent-amber .neon-orb { --orb: #ffd166; }
.accent-pink .neon-orb { --orb: #ff63d8; }
.accent-blue .neon-orb { --orb: #54a8ff; }

.panel-card {
  transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.panel-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 234, 255, .32);
  box-shadow: 0 0 24px rgba(0, 234, 255, .09);
}

/* Remove legacy cyan bar in standard cards */
.panel-card > span { display: none; }

.pricing-card {
  grid-column: 1 / -1;
  border-color: rgba(141, 255, 85, .25);
  background:
    radial-gradient(circle at 92% 8%, rgba(141, 255, 85, .09), transparent 28%),
    rgba(255, 255, 255, .035);
}

.pricing-selector {
  display: grid;
  gap: 8px;
  margin: 16px 0 12px;
}

.pricing-selector label,
.pricing-result small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pricing-selector select {
  width: 100%;
  border: 1px solid rgba(0, 234, 255, .3);
  border-radius: 13px;
  padding: 12px 14px;
  color: var(--text);
  background: #071521;
  font: inherit;
  outline: none;
}

.pricing-result {
  display: grid;
  gap: 7px;
  padding: 16px;
  border: 1px solid rgba(141, 255, 85, .22);
  border-radius: 15px;
  background: rgba(141, 255, 85, .055);
}

.pricing-result b {
  color: #8dff55;
  font-size: clamp(1.25rem, 4vw, 1.7rem);
  text-shadow: 0 0 18px rgba(141, 255, 85, .25);
}

.pricing-result span {
  color: #dcffe0;
  font-size: .83rem;
}

.pricing-result p {
  margin: 0;
}

.pricing-card em {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: .72rem;
  line-height: 1.45;
}

/* App loading sequence */
.app-loader,
.app-detail-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 120;
  place-items: center;
  padding: 18px;
}

.app-loader.is-visible,
.app-detail-modal.is-visible {
  display: grid;
}

.app-loader-backdrop,
.app-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 4, 12, .82);
  backdrop-filter: blur(13px);
}

.app-loader-terminal {
  position: relative;
  z-index: 2;
  width: min(88vw, 430px);
  padding: 30px;
  border: 1px solid rgba(0, 234, 255, .5);
  border-radius: 20px;
  text-align: center;
  background: rgba(2, 10, 22, .97);
  box-shadow: 0 0 60px rgba(0, 234, 255, .25), inset 0 0 32px rgba(0, 234, 255, .06);
}

.app-loader-terminal p,
.app-loader-terminal span {
  color: var(--cyan);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.app-loader-terminal strong {
  display: block;
  margin: 14px 0 8px;
  font-size: clamp(1.25rem, 5vw, 1.8rem);
  text-transform: uppercase;
}

.loader-track {
  height: 5px;
  margin: 23px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
}

.loader-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyan), #8dff55);
  transform-origin: left;
  animation: atlasLoad .78s ease-out both;
  box-shadow: 0 0 18px rgba(0,234,255,.8);
}

.app-loader-terminal small {
  color: var(--muted);
  letter-spacing: .08em;
}

@keyframes atlasLoad {
  from { transform: scaleX(.02); }
  to { transform: scaleX(1); }
}

/* App technical sheet */
.app-detail-shell {
  position: relative;
  z-index: 2;
  width: min(94vw, 920px);
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(0, 234, 255, .36);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(2,10,22,.98), rgba(0,5,14,.97));
  box-shadow: 0 0 65px rgba(0,234,255,.22), inset 0 0 45px rgba(0,234,255,.05);
}

.app-detail-scroll {
  max-height: min(88vh, 820px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 38px);
  border-radius: 24px;
  scrollbar-color: rgba(0,234,255,.65) rgba(255,255,255,.08);
}

.close-app-detail {
  position: absolute;
  top: -24px;
  right: -18px;
  z-index: 8;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0,234,255,.65);
  border-radius: 50%;
  color: var(--text);
  background: rgba(2,10,22,.99);
  box-shadow: 0 0 28px rgba(0,234,255,.34);
  font-size: 1.4rem;
  cursor: pointer;
}

.app-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.app-detail-header h2 {
  font-size: clamp(1.45rem, 5vw, 2.25rem);
  text-transform: uppercase;
}

.app-detail-codename {
  margin-top: 7px;
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .06em;
}

.app-detail-status {
  flex: 0 0 auto;
  padding: 8px 11px;
  border-radius: 999px;
  color: #051015;
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.app-detail-status.status-production { background: #00f5b8; }
.app-detail-status.status-beta { background: #ffd166; }
.app-detail-status.status-concept { background: #bb8cff; }

.app-detail-summary {
  margin: 18px 0;
  color: var(--muted);
  font-size: clamp(.96rem, 2.3vw, 1.05rem);
  line-height: 1.65;
}

.app-gallery {
  margin: 22px 0;
}

.gallery-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(0,234,255,.22);
  border-radius: 20px;
  background:
    linear-gradient(rgba(0,234,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,234,255,.035) 1px, transparent 1px),
    radial-gradient(circle at center, rgba(0,234,255,.12), transparent 45%),
    #020a14;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.gallery-placeholder {
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 30px;
  text-align: center;
}

.gallery-placeholder span {
  color: var(--cyan);
  font-size: 2.3rem;
  text-shadow: 0 0 24px rgba(0,234,255,.7);
}

.gallery-placeholder strong {
  font-size: 1.1rem;
  text-transform: uppercase;
}

.gallery-placeholder small {
  color: var(--muted);
}

.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.gallery-thumbs button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0,234,255,.3);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  color: #041017;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(0,234,255,.42);
}

.app-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}

.app-detail-grid article {
  border: 1px solid rgba(0,234,255,.15);
  border-radius: 16px;
  padding: 16px;
  background: rgba(255,255,255,.032);
}

.app-detail-grid h3 {
  margin-bottom: 9px;
  color: #eaffff;
  font-size: .95rem;
  text-transform: uppercase;
}

.app-detail-grid p,
.app-detail-grid li {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

.app-detail-grid ul {
  padding-left: 18px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-tags span {
  padding: 7px 9px;
  border: 1px solid rgba(0,234,255,.24);
  border-radius: 999px;
  color: #cfffff;
  background: rgba(0,234,255,.06);
  font-size: .72rem;
  font-weight: 700;
}

.app-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.app-detail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(0,234,255,.5);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--text);
  text-decoration: none;
  background: rgba(0,234,255,.07);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.app-detail-btn.primary {
  color: #031017;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(0,234,255,.32);
}

@media (max-width: 680px) {
  .app-detail-shell { width: min(92vw, 920px); }
  .app-detail-scroll { max-height: 83vh; padding: 21px; }
  .close-app-detail { top: -23px; right: -8px; }
  .app-detail-header { flex-direction: column; }
  .app-detail-grid { grid-template-columns: 1fr; }
  .gallery-stage { min-height: 210px; }
  .app-detail-actions { display: grid; }
  .app-detail-btn { width: 100%; }
}


/* v1.3.1 ·Atlas· — panel height, pricing rhythm, compact electric markers */
@media (min-width: 681px) {
  .section-panel {
    top: 53%;
  }

  .panel-body {
    max-height: min(74vh, 680px);
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (max-width: 680px) {
  .panel-body {
    max-height: min(76vh, 690px);
  }
}

/* Compact double-dot markers */
.neon-orb {
  width: 11px;
  height: 11px;
  border-width: 2px;
  box-shadow: 0 0 10px color-mix(in srgb, var(--orb) 72%, transparent);
}

.neon-orb i {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 9px var(--orb);
}

.card-heading {
  gap: 9px;
}

/* Requested electric palette */
.accent-orange .neon-orb { --orb: #ff8a1f; }
.accent-yellow .neon-orb { --orb: #ffe642; }
.accent-sky .neon-orb { --orb: #43d9ff; }
.accent-violet .neon-orb { --orb: #b878ff; }
.accent-red .neon-orb { --orb: #ff4d68; }

/* Pricing card: prevent overlap at every breakpoint */
.pricing-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.pricing-result small,
.pricing-result b,
.pricing-result span,
.pricing-result p {
  position: static;
  display: block;
  width: 100%;
  margin: 0;
}

.pricing-result b {
  line-height: 1.12;
  margin-bottom: 3px;
}

.pricing-result span {
  line-height: 1.45;
  margin-top: 2px;
}

.pricing-result p {
  line-height: 1.5;
}

/* Portrait screenshots remain fully visible inside the horizontal gallery */
.gallery-stage {
  position: relative;
  min-height: 300px;
}

.gallery-stage img {
  display: block;
  width: 100%;
  height: min(64vh, 680px);
  object-fit: contain;
  object-position: center;
  padding: 12px;
  background: rgba(0, 5, 14, .72);
}

.gallery-stage.is-portrait img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

@media (max-width: 680px) {
  .gallery-stage {
    min-height: 260px;
  }

  .gallery-stage img {
    height: min(58vh, 570px);
    padding: 8px;
  }
}

/* v1.3.2 ·Atlas· */
.pricing-result { gap: 0; }
.pricing-result small { margin-bottom: 8px; }
.pricing-result b { margin-bottom: 16px; line-height: 1.12; }
.pricing-result span { margin-top: 0; margin-bottom: 10px; line-height: 1.55; }
.pricing-result p { margin-top: 0; line-height: 1.55; }

.neon-orb {
  --orb: #43d9ff;
  width: 39px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: none;
}
.neon-orb::before,
.neon-orb::after {
  content: "";
  display: block;
  width: 11px;
  height: 3px;
  border-radius: 999px;
  background: var(--orb);
  box-shadow: 0 0 8px color-mix(in srgb, var(--orb) 72%, transparent);
}
.neon-orb i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orb);
  box-shadow: 0 0 7px var(--orb);
}
.card-heading { gap: 9px; align-items: center; }

.accent-orange .neon-orb { --orb: #ff8a1f; }
.accent-yellow .neon-orb { --orb: #ffe642; }
.accent-sky .neon-orb { --orb: #43d9ff; }
.accent-violet .neon-orb { --orb: #b878ff; }
.accent-red .neon-orb { --orb: #ff4d68; }

@media (max-width: 680px) {
  .pricing-result b { margin-bottom: 14px; }
  .pricing-result span { margin-bottom: 9px; }
  .neon-orb { width: 35px; }
  .neon-orb::before,
  .neon-orb::after { width: 10px; height: 3px; }
}


/* v1.3.3 ·Atlas· — refined pricing, clean electric bars and PWA controls */

/* Clear separation inside investment card */
.pricing-result {
  gap: 0 !important;
}

.pricing-result small {
  margin-bottom: 10px !important;
}

.pricing-result b {
  margin-bottom: 24px !important;
  line-height: 1.12 !important;
}

.pricing-result span {
  width: 100% !important;
  height: auto !important;
  margin: 0 0 13px !important;
  padding-top: 4px !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  color: #dcffe0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: .88rem !important;
  line-height: 1.6 !important;
}

.pricing-result p {
  margin: 0 !important;
  line-height: 1.6 !important;
}

/* Return to one compact colored line before each heading */
.neon-orb {
  --orb: #43d9ff;
  width: 23px !important;
  height: 4px !important;
  display: block !important;
  flex: 0 0 23px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--orb) !important;
  box-shadow: 0 0 10px color-mix(in srgb, var(--orb) 72%, transparent) !important;
}

.neon-orb::before,
.neon-orb::after,
.neon-orb i {
  display: none !important;
}

.accent-orange .neon-orb { --orb: #ff8a1f; }
.accent-yellow .neon-orb { --orb: #ffe642; }
.accent-sky .neon-orb { --orb: #43d9ff; }
.accent-violet .neon-orb { --orb: #b878ff; }
.accent-red .neon-orb { --orb: #ff4d68; }

/* Install/update button */
.pwa-install-btn {
  position: fixed;
  right: clamp(28px, 5vw, 76px);
  bottom: clamp(58px, 8vh, 100px);
  z-index: 72;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 234, 255, .56);
  border-radius: 999px;
  padding: 12px 18px;
  color: var(--text);
  background: rgba(2, 10, 22, .86);
  box-shadow: 0 0 26px rgba(0, 234, 255, .2);
  backdrop-filter: blur(12px);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.pwa-install-btn:hover {
  transform: translateY(-2px);
  border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(0, 234, 255, .32);
}

.pwa-install-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(0, 234, 255, .45);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 1rem;
  line-height: 1;
}

.pwa-install-btn.is-installed .pwa-install-icon {
  color: #8dff55;
  border-color: rgba(141, 255, 85, .5);
}

/* Update card positioned below center */
.pwa-update-card {
  position: fixed;
  left: 50%;
  top: 68%;
  z-index: 140;
  width: min(88vw, 430px);
  padding: 22px;
  border: 1px solid rgba(0, 234, 255, .42);
  border-radius: 20px;
  color: var(--text);
  background:
    radial-gradient(circle at 88% 12%, rgba(0, 234, 255, .12), transparent 34%),
    rgba(2, 10, 22, .97);
  box-shadow: 0 0 54px rgba(0, 234, 255, .25), inset 0 0 32px rgba(0, 234, 255, .05);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, -42%) scale(.96);
  pointer-events: none;
  transition: opacity .24s ease, transform .24s ease;
}

.pwa-update-card.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

.pwa-update-close {
  position: absolute;
  top: -16px;
  right: -12px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 234, 255, .58);
  border-radius: 50%;
  color: var(--text);
  background: #03101d;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0, 234, 255, .25);
}

.pwa-update-kicker {
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.pwa-update-card h3 {
  margin-bottom: 9px;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.pwa-update-card > p:not(.pwa-update-kicker) {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
}

.pwa-update-actions {
  display: flex;
  gap: 9px;
  margin-top: 17px;
}

.pwa-update-actions button {
  border: 1px solid rgba(0, 234, 255, .42);
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(0, 234, 255, .06);
  font: inherit;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.pwa-update-actions button:first-child {
  color: #031017;
  border-color: var(--cyan);
  background: var(--cyan);
}

.pwa-toast {
  position: fixed;
  left: 50%;
  bottom: 38px;
  z-index: 155;
  max-width: min(88vw, 460px);
  padding: 11px 16px;
  border: 1px solid rgba(0, 234, 255, .38);
  border-radius: 999px;
  color: var(--text);
  background: rgba(2, 10, 22, .95);
  box-shadow: 0 0 25px rgba(0, 234, 255, .2);
  font-size: .78rem;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.pwa-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 680px) {
  .pricing-result b {
    margin-bottom: 20px !important;
  }

  .pwa-install-btn {
    right: 22px;
    bottom: 68px;
    padding: 11px 14px;
  }

  .pwa-update-card {
    top: 70%;
    width: min(90vw, 430px);
  }

  .pwa-update-actions {
    display: grid;
  }
}

/* v1.3.4 ·Atlas· — production galleries */
.gallery-stage.has-image {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
}
.gallery-figure {
  width: 100%;
  min-height: 470px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  margin: 0;
  padding: 18px 58px 14px;
}
.gallery-stage.has-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: min(64vh, 660px);
  max-height: 660px;
  object-fit: contain;
  object-position: center;
  padding: 0;
  border-radius: 14px;
  background: #020711;
  box-shadow: 0 18px 48px rgba(0,0,0,.42), 0 0 24px rgba(0,234,255,.09);
}
.gallery-figure figcaption {
  width: 100%;
  padding-top: 12px;
  color: #c7e5ed;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: center;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 54px;
  border: 1px solid rgba(0,234,255,.38);
  border-radius: 14px;
  color: var(--cyan);
  background: rgba(2,10,22,.82);
  box-shadow: 0 0 20px rgba(0,234,255,.13);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-counter {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 4;
  padding: 5px 8px;
  border: 1px solid rgba(0,234,255,.24);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2,10,22,.8);
  font-size: .68rem;
  font-weight: 800;
}
.gallery-thumbs { flex-wrap: wrap; }
.gallery-thumbs button { transition: transform .18s ease, color .18s ease, background .18s ease; }
.gallery-thumbs button:hover { transform: translateY(-2px); }
@media (max-width: 680px) {
  .gallery-stage.has-image, .gallery-figure { min-height: 430px; }
  .gallery-figure { padding: 14px 38px 12px; }
  .gallery-stage.has-image img {
    height: min(58vh, 560px);
    max-height: 560px;
    border-radius: 11px;
  }
  .gallery-nav { width: 30px; height: 48px; border-radius: 11px; font-size: 1.7rem; }
  .gallery-prev { left: 5px; }
  .gallery-next { right: 5px; }
  .gallery-counter { right: 8px; bottom: 8px; }
}


/* v1.3.5 ·Atlas· — contextual PWA, app heroes, enlarged screenshots and detail accents */
.pwa-install-btn.is-context-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none;
}

/* Conceptual hero shown before the carousel */
.app-hero {
  position: relative;
  min-height: 300px;
  margin: 20px 0 18px;
  overflow: hidden;
  border: 1px solid rgba(184, 120, 255, .34);
  border-radius: 20px;
  background: #020711;
  box-shadow: 0 0 34px rgba(120, 92, 255, .13);
}

.app-hero[hidden] { display: none; }

.app-hero img {
  display: block;
  width: 100%;
  height: min(54vh, 530px);
  object-fit: contain;
  object-position: center top;
  background:
    radial-gradient(circle at center, rgba(130, 80, 255, .13), transparent 55%),
    #020711;
}

.app-hero-overlay {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 4, 12, .96));
}

.app-hero-overlay span {
  color: #b878ff;
  font-size: .66rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.app-hero-overlay strong {
  color: #fff;
  font-size: .78rem;
  text-transform: uppercase;
}

/* Detail-card colored bars */
.app-detail-grid article h3 {
  position: relative;
  padding-left: 17px;
}

.app-detail-grid article h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 4px;
  border-radius: 999px;
  background: #ffe642;
  box-shadow: 0 0 9px rgba(255, 230, 66, .7);
  transform: translateY(-50%);
}

.app-detail-grid article:nth-child(2) h3::before {
  background: #43d9ff;
  box-shadow: 0 0 9px rgba(67, 217, 255, .7);
}

.app-detail-grid article:nth-child(3) h3::before {
  background: #ff4d68;
  box-shadow: 0 0 9px rgba(255, 77, 104, .7);
}

.app-detail-grid article:nth-child(4) h3::before {
  background: #b878ff;
  box-shadow: 0 0 9px rgba(184, 120, 255, .7);
}

.app-detail-grid article:nth-child(5) h3::before {
  background: #ff8a1f;
  box-shadow: 0 0 9px rgba(255, 138, 31, .7);
}

.app-detail-grid article:nth-child(6) h3::before {
  background: #9cff3f;
  box-shadow: 0 0 9px rgba(156, 255, 63, .7);
}

.gallery-figure figcaption small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .02em;
}

/* Fullscreen-like enlarged capture */
.image-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 220;
  place-items: center;
  padding: 20px;
}

.image-lightbox.is-visible { display: grid; }

.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 10, .92);
  backdrop-filter: blur(14px);
}

.image-lightbox-shell {
  position: relative;
  z-index: 2;
  width: min(95vw, 980px);
  height: min(92vh, 1040px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(0, 234, 255, .42);
  border-radius: 22px;
  background: rgba(2, 7, 17, .98);
  box-shadow: 0 0 70px rgba(0, 234, 255, .22);
}

.image-lightbox-shell img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 72px);
  object-fit: contain;
  border-radius: 12px;
}

.image-lightbox-shell p {
  margin-top: 10px;
  color: #d8f7ff;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
}

.image-lightbox-close {
  position: absolute;
  top: -18px;
  right: -12px;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 234, 255, .62);
  border-radius: 50%;
  color: #fff;
  background: #03101d;
  box-shadow: 0 0 25px rgba(0, 234, 255, .3);
  font-size: 1.35rem;
  cursor: pointer;
}

@media (max-width: 680px) {
  .app-hero {
    min-height: 255px;
  }

  .app-hero img {
    height: min(48vh, 450px);
  }

  .app-hero-overlay {
    align-items: flex-start;
    flex-direction: column;
    padding: 11px 13px;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox-shell {
    width: 94vw;
    height: 88vh;
    padding: 12px;
  }

  .image-lightbox-shell img {
    max-height: calc(88vh - 62px);
  }

  .image-lightbox-close {
    top: -17px;
    right: -7px;
  }
}


/* v1.3.7 ·Atlas· — navigation polish, colored initials and advanced gallery */

/* Portada button: still top-right, with breathing room */
.back-home-btn {
  top: clamp(22px, 4vh, 44px) !important;
  right: clamp(28px, 5vw, 72px) !important;
}

/* Only the first letter changes color */
.orbit-item .orbit-initial {
  color: inherit;
  text-shadow: none;
}
.item-inicio .orbit-initial { color: #ffe642; text-shadow: 0 0 10px rgba(255,230,66,.72); }
.item-nosotros .orbit-initial { color: #ff4d68; text-shadow: 0 0 10px rgba(255,77,104,.72); }
.item-servicios .orbit-initial { color: #ff8a1f; text-shadow: 0 0 10px rgba(255,138,31,.72); }
.item-proyectos .orbit-initial { color: #9cff3f; text-shadow: 0 0 10px rgba(156,255,63,.72); }
.item-laboratorio .orbit-initial { color: #b878ff; text-shadow: 0 0 10px rgba(184,120,255,.72); }
.item-contacto .orbit-initial { color: #43d9ff; text-shadow: 0 0 10px rgba(67,217,255,.72); }

/* Compact PWA button, slightly higher and sized like Welcome */
.pwa-install-btn {
  right: clamp(28px, 5vw, 70px) !important;
  bottom: clamp(92px, 12vh, 138px) !important;
  min-width: 150px;
  justify-content: center;
  padding: 10px 15px !important;
  font-size: .66rem !important;
}
.pwa-install-icon {
  width: 20px !important;
  height: 20px !important;
  font-size: .84rem !important;
}

/* Thin separator under investment amount */
.pricing-result b {
  position: relative;
  padding-bottom: 17px !important;
  margin-bottom: 18px !important;
}
.pricing-result b::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  border-radius: 999px;
  background: currentColor;
  opacity: .74;
  box-shadow: 0 0 8px currentColor;
}

/* Shorter heading markers for Core, Origen, Tech, Lab and Contact */
.panel-card .neon-orb {
  width: 8px !important;
  flex-basis: 8px !important;
  height: 4px !important;
}

/* Book-page style carousel movement */
.gallery-figure {
  transform-origin: center center;
  backface-visibility: hidden;
}
.gallery-figure.page-enter-right {
  animation: pageTurnFromRight .42s cubic-bezier(.2,.75,.25,1) both;
}
.gallery-figure.page-enter-left {
  animation: pageTurnFromLeft .42s cubic-bezier(.2,.75,.25,1) both;
}
@keyframes pageTurnFromRight {
  from { opacity: .25; transform: perspective(1100px) translateX(16%) rotateY(-12deg) scale(.985); }
  to { opacity: 1; transform: perspective(1100px) translateX(0) rotateY(0) scale(1); }
}
@keyframes pageTurnFromLeft {
  from { opacity: .25; transform: perspective(1100px) translateX(-16%) rotateY(12deg) scale(.985); }
  to { opacity: 1; transform: perspective(1100px) translateX(0) rotateY(0) scale(1); }
}

/* Enlarged carousel controls */
.image-lightbox-shell {
  overflow: visible;
}
.image-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 66px;
  border: 1px solid rgba(0,234,255,.48);
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(2,10,22,.9);
  box-shadow: 0 0 24px rgba(0,234,255,.2);
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.image-lightbox-prev { left: -62px; }
.image-lightbox-next { right: -62px; }
.image-lightbox-counter {
  position: absolute;
  right: 17px;
  bottom: 15px;
  padding: 5px 9px;
  border: 1px solid rgba(0,234,255,.25);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(2,10,22,.86);
  font-size: .7rem;
  font-weight: 800;
}
.image-lightbox-img,
.image-lightbox-shell img {
  touch-action: pan-y;
}
.image-lightbox-shell img.lightbox-enter-right {
  animation: lightboxFromRight .36s ease both;
}
.image-lightbox-shell img.lightbox-enter-left {
  animation: lightboxFromLeft .36s ease both;
}
@keyframes lightboxFromRight {
  from { opacity: .3; transform: translateX(10%) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes lightboxFromLeft {
  from { opacity: .3; transform: translateX(-10%) scale(.985); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@media (max-width: 680px) {
  .back-home-btn {
    top: 18px !important;
    right: 20px !important;
  }
  .pwa-install-btn {
    right: 20px !important;
    bottom: 100px !important;
    min-width: 132px;
    padding: 9px 12px !important;
    font-size: .61rem !important;
  }
  .image-lightbox-prev { left: 6px; }
  .image-lightbox-next { right: 6px; }
  .image-lightbox-nav {
    width: 34px;
    height: 52px;
    border-radius: 12px;
    background: rgba(2,10,22,.78);
    font-size: 1.8rem;
  }
  .image-lightbox-counter {
    right: 10px;
    bottom: 10px;
  }
}


/* v1.3.8 · Embedded responsive demos */
body.demo-is-open {
  overflow: hidden;
  overscroll-behavior: none;
}

.demo-shell {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 260;
  padding: clamp(8px, 1.8vw, 24px);
  place-items: center;
}

.demo-shell.is-visible { display: grid; }

.demo-shell-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 3, 10, .92);
  backdrop-filter: blur(14px);
}

.demo-shell-frame {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(96vw, 1500px);
  height: min(94dvh, 980px);
  overflow: hidden;
  border: 1px solid rgba(0, 234, 255, .44);
  border-radius: clamp(14px, 2vw, 24px);
  background: #020711;
  box-shadow: 0 0 70px rgba(0, 234, 255, .2), inset 0 0 34px rgba(0, 234, 255, .04);
}

.demo-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 12px 16px 12px 20px;
  border-bottom: 1px solid rgba(0, 234, 255, .18);
  background: linear-gradient(90deg, rgba(0, 234, 255, .1), rgba(3, 12, 27, .96) 42%);
}

.demo-shell-kicker {
  margin: 0 0 3px;
  color: var(--cyan);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.demo-shell-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(.92rem, 1.5vw, 1.24rem);
  letter-spacing: .04em;
}

.demo-shell-close {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 234, 255, .4);
  border-radius: 50%;
  color: #fff;
  background: rgba(1, 11, 23, .96);
  box-shadow: 0 0 22px rgba(0, 234, 255, .14);
  font: 300 1.55rem/1 Montserrat, sans-serif;
  cursor: pointer;
}

.demo-shell-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #040914;
}

.demo-shell-stage iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #040914;
}

.demo-shell-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  background: #020711;
  transition: opacity .24s ease, visibility .24s ease;
}

.demo-shell-loading.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.demo-shell-loading span {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(0, 234, 255, .16);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: rotateRing .8s linear infinite;
}

.demo-shell-loading p {
  margin: 0;
  color: var(--cyan);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .demo-shell { padding: 8px; }
  .demo-shell-frame {
    width: calc(100vw - 16px);
    height: calc(100dvh - 16px);
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .demo-shell { padding: 0; }
  .demo-shell-frame {
    width: 100vw;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .demo-shell-header {
    min-height: 58px;
    padding: max(9px, env(safe-area-inset-top)) 10px 9px 14px;
  }
  .demo-shell-kicker { display: none; }
  .demo-shell-close { width: 38px; height: 38px; }
}

@media (orientation: landscape) and (max-height: 560px) {
  .demo-shell-header { min-height: 52px; padding-block: 6px; }
  .demo-shell-close { width: 36px; height: 36px; }
}


/* v1.3.10 ·Atlas· — demo return flow, second-letter accents and mobile double-tap */
.back-home-btn {
  top: clamp(42px, 7vh, 78px) !important;
}

/* The accent now belongs exclusively to the second letter of every Core section. */
.orbit-item .orbit-initial {
  color: inherit;
  text-shadow: none;
}
.item-inicio .orbit-initial { color: #ffe642; text-shadow: 0 0 10px rgba(255,230,66,.72); }
.item-nosotros .orbit-initial { color: #ff4d68; text-shadow: 0 0 10px rgba(255,77,104,.72); }
.item-servicios .orbit-initial { color: #ff8a1f; text-shadow: 0 0 10px rgba(255,138,31,.72); }
.item-proyectos .orbit-initial { color: #9cff3f; text-shadow: 0 0 10px rgba(156,255,63,.72); }
.item-laboratorio .orbit-initial { color: #b878ff; text-shadow: 0 0 10px rgba(184,120,255,.72); }
.item-contacto .orbit-initial { color: #43d9ff; text-shadow: 0 0 10px rgba(67,217,255,.72); }

.gallery-stage.has-image img,
.gallery-figure img,
.image-lightbox-shell img {
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

@media (max-width: 680px) {
  .back-home-btn {
    top: max(34px, calc(env(safe-area-inset-top) + 22px)) !important;
  }
}


/* v1.3.10 ·Atlas· — reliable embedded-demo close and native mobile gestures */
.contact-modal { z-index: 210; }
.app-detail-modal { z-index: 120; }
.demo-shell:not(.is-visible) {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.gallery-stage.has-image,
.gallery-stage.has-image img,
.gallery-figure,
.gallery-figure img {
  touch-action: pan-y pinch-zoom;
  -webkit-tap-highlight-color: transparent;
}


/* v1.4.0 ·Horizon· — hard teardown for embedded demos on mobile */
.demo-shell.is-closing,
.demo-shell[aria-hidden="true"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.demo-shell.is-closing .demo-shell-frame,
.demo-shell[aria-hidden="true"] .demo-shell-frame {
  display: none !important;
}
