:root {
  --apps-blue: #0d3b66;
  --apps-blue-deep: #082846;
  --apps-blue-soft: #eaf2fb;
  --apps-red: #be302c;
  --apps-ink: #172033;
  --apps-muted: #5f6d83;
  --apps-line: rgba(13, 59, 102, 0.14);
  --apps-white: #ffffff;
  --apps-shadow: 0 28px 64px rgba(11, 34, 61, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.apps-page {
  --product-page-bg: url("../imgs/FONDO_AZUL-01.png");
  --product-nav-height: 78px;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--apps-ink);
}

.apps-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.apps-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 59, 102, 0.08);
}

.apps-nav .apps-shell {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apps-back {
  color: var(--apps-blue);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.apps-logo {
  height: 52px;
  width: auto;
}

.apps-hero-section {
  padding: 58px 0 36px;
  position: relative;
}

.apps-hero-section::before {
  content: "";
  position: absolute;
  inset: 18px 0 auto;
  height: 420px;
  background:
    linear-gradient(135deg, rgba(13, 59, 102, 0.045), transparent 46%),
    radial-gradient(circle at 75% 20%, rgba(13, 59, 102, 0.08), transparent 24%);
  pointer-events: none;
}

.apps-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.apps-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apps-blue);
}

.apps-panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--apps-blue-soft);
}

.apps-kicker::before,
.section-kicker::before,
.apps-panel-label::before {
  content: "";
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--apps-red), var(--apps-blue));
}

.apps-hero-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--apps-blue-deep);
  max-width: 760px;
}

.apps-lead {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--apps-muted);
}

.apps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 34px;
}

.apps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.apps-btn:hover {
  transform: translateY(-2px);
}

.apps-btn-primary {
  background: linear-gradient(135deg, var(--apps-blue) 0%, #1c5aa0 100%);
  color: var(--apps-white);
  box-shadow: 0 18px 34px rgba(13, 59, 102, 0.22);
}

.apps-btn-primary:hover {
  color: var(--apps-white);
  box-shadow: 0 20px 40px rgba(13, 59, 102, 0.28);
}

.apps-btn-secondary {
  border: 1px solid rgba(13, 59, 102, 0.22);
  background: rgba(255, 255, 255, 0.8);
  color: var(--apps-blue);
}

.apps-btn-secondary:hover {
  color: var(--apps-blue);
  border-color: rgba(13, 59, 102, 0.4);
}

.apps-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.apps-stat-card,
.apps-hero-panel,
.elisa-feature,
.app-card,
.proof-card,
.apps-cta-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--apps-line);
  box-shadow: var(--apps-shadow);
}

.apps-stat-card {
  border-radius: 22px;
  padding: 22px 18px;
  backdrop-filter: blur(10px);
}

.apps-stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.65rem;
  color: var(--apps-blue);
}

.apps-stat-card span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--apps-muted);
}

.apps-hero-panel {
  height: 100%;
  border-radius: 32px;
  padding: 34px;
  background:
    linear-gradient(180deg, rgba(13, 59, 102, 0.96), rgba(8, 40, 70, 0.98)),
    #0d3b66;
  color: var(--apps-white);
  position: relative;
  overflow: hidden;
  transform: translateY(12px);
}

.apps-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
}

.apps-hero-panel h2 {
  margin: 18px 0 14px;
  font-size: 1.95rem;
  line-height: 1.1;
}

.apps-hero-panel p,
.apps-stack-list li {
  color: rgba(255, 255, 255, 0.82);
}

.apps-stack-list {
  margin: 24px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.apps-feature-section,
.apps-section {
  padding: 34px 0;
}

.apps-section-alt {
  background:
    linear-gradient(180deg, rgba(13, 59, 102, 0.03), rgba(13, 59, 102, 0.06));
}

.elisa-feature {
  border-radius: 34px;
  padding: 30px 34px;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.3fr);
  gap: 24px;
  align-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 24%, rgba(13, 59, 102, 0.05), transparent 24%),
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,251,255,0.98));
}

.elisa-feature::after {
  content: "";
  position: absolute;
  inset: auto -60px -85px auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 59, 102, 0.08), transparent 70%);
  pointer-events: none;
}

.elisa-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
  align-self: center;
  min-height: 100%;
}

.elisa-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 520px);
  min-height: 190px;
  padding: 26px 30px;
  border-radius: 30px;
  background: linear-gradient(145deg, #d8dcdf 0%, #f5f8fc 52%, #d8eafb 100%);
  border: 1px solid rgba(13, 59, 102, 0.28);
  box-shadow: 0 20px 42px rgba(13, 59, 102, 0.16);
  position: relative;
}

.elisa-badge::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0));
  pointer-events: none;
}

.elisa-logo {
  width: min(100%, 330px);
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0;
  position: relative;
  z-index: 1;
}

.elisa-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 520px;
}

.elisa-pills span {
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef5fd, #dfeeff);
  color: var(--apps-blue);
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(13, 59, 102, 0.12);
  box-shadow: 0 10px 22px rgba(13, 59, 102, 0.08);
}

.elisa-copy {
  align-self: center;
}

.elisa-copy h2,
.apps-section-head h2,
.apps-cta-panel h2 {
  margin: 14px 0 14px;
  font-size: clamp(1.8rem, 2.5vw, 3rem);
  line-height: 1.1;
  color: var(--apps-blue-deep);
}

.elisa-copy p,
.apps-section-head p,
.app-card p,
.proof-card p,
.apps-cta-panel p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--apps-muted);
}
.elisa-feature[data-animation-src] {
  cursor: pointer;
}

.elisa-feature[data-animation-src]:hover,
.elisa-feature[data-animation-src]:focus-visible {
  border-color: rgba(13, 59, 102, 0.28);
}

.elisa-feature .app-card-link {
  margin-top: 18px;
}


.elisa-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.elisa-grid div {
  padding: 15px 16px;
  border-radius: 18px;
  background: #f6faff;
  border: 1px solid rgba(13, 59, 102, 0.1);
  color: var(--apps-blue-deep);
  font-weight: 600;
  line-height: 1.5;
}

.apps-section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.apps-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-card,
.proof-card {
  border-radius: 28px;
  padding: 24px;
}

.app-card {
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 59, 102, 0), rgba(13, 59, 102, 0.03));
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 34px 56px rgba(11, 34, 61, 0.16);
  border-color: rgba(13, 59, 102, 0.26);
  outline: none;
}

.app-card:hover::before,
.app-card:focus-visible::before {
  opacity: 1;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.app-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--apps-blue-deep);
}

.app-card-head p {
  margin: 0;
  color: var(--apps-red);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.app-icon-logo {
  background: linear-gradient(180deg, #ffffff, #f3f8fe);
  border: 1px solid rgba(13, 59, 102, 0.12);
  box-shadow: 0 12px 24px rgba(11, 34, 61, 0.08);
}

.app-icon-logo img {
  max-width: 36px;
  max-height: 22px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.app-icon-blue { background: rgba(13, 59, 102, 0.1); color: var(--apps-blue); }
.app-icon-cyan { background: rgba(22, 163, 184, 0.12); color: #0f7490; }
.app-icon-gold { background: rgba(217, 119, 6, 0.12); color: #a16207; }
.app-icon-indigo { background: rgba(79, 70, 229, 0.12); color: #4338ca; }
.app-icon-red { background: rgba(190, 48, 44, 0.12); color: var(--apps-red); }

.app-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.app-metrics span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #f4f8fd;
  color: var(--apps-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.app-card-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--apps-blue);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-card-link::after {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--apps-red);
  border-radius: 2px;
}

.apps-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.proof-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.08rem;
  color: var(--apps-blue-deep);
}

.proof-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.proof-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #f4f8fd;
  color: var(--apps-blue);
  font-weight: 700;
  font-size: 0.8rem;
}

.apps-final-cta {
  padding-bottom: 62px;
}

.apps-cta-panel {
  border-radius: 34px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96));
}

.apps-cta-panel .section-kicker {
  color: var(--apps-blue);
}

.apps-cta-panel .apps-contact-link {
  min-width: 198px;
  white-space: nowrap;
  flex-shrink: 0;
}

.apps-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.apps-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.apps-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 23, 41, 0.58);
  backdrop-filter: blur(6px);
}

.apps-modal-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(90vh, 860px);
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  border: 3px solid var(--apps-blue);
  box-shadow: 0 36px 70px rgba(4, 25, 47, 0.3);
  padding: 28px 28px 24px;
  z-index: 1;
}

.apps-modal-card-video {
  width: min(calc(var(--apps-video-modal-width, 1400px) + 20px), calc(100vw - 8px));
  max-width: calc(100vw - 8px);
  padding: 8px;
}

.apps-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--apps-blue-soft);
  color: var(--apps-blue);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(13, 59, 102, 0.16);
}

.apps-modal-video-wrap {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #f7fbff, #edf4fb);
  border: 1px solid rgba(13, 59, 102, 0.12);
  padding: 2px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.apps-modal-video {
  width: 100%;
  height: min(var(--apps-video-modal-height, 760px), calc(100vh - 84px));
  display: block;
  object-fit: contain;
  background: transparent;
}

.apps-modal-frame {
  width: 100%;
  height: min(var(--apps-video-modal-height, 760px), calc(100vh - 84px));
  display: none;
  border: 0;
  background: #ffffff;
}

.apps-modal-card.is-animation {
  max-height: calc(100dvh - 8px);
  padding: 4px;
}

.apps-modal-card.is-animation.apps-modal-card-video {
  width: min(calc(var(--apps-video-modal-width, 1400px) + 8px), calc(100vw - 4px));
  max-width: calc(100vw - 4px);
  padding: 2px;
}

.apps-modal-card.is-animation .apps-modal-video {
  display: none;
}

.apps-modal-card.is-animation .apps-modal-video-wrap {
  padding: 0;
  border-width: 0;
  background: #ffffff;
}

.apps-modal-card.is-animation .apps-modal-frame {
  display: block;
  height: var(--apps-video-modal-height, 760px);
  overflow: auto;
}

.reveal-card {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .apps-hero-grid,
  .elisa-feature {
    grid-template-columns: 1fr;
  }

  .apps-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  body.apps-page {
    --product-nav-height: 70px;
  }

  .apps-shell {
    width: min(100% - 28px, 1180px);
  }

  .apps-nav .apps-shell {
    min-height: 70px;
  }

  .apps-logo {
    height: 42px;
  }

  .apps-hero-section {
    padding-top: 36px;
  }

  .apps-stat-grid,
  .apps-card-grid,
  .apps-proof-grid,
  .elisa-grid {
    grid-template-columns: 1fr;
  }

  .apps-modal {
    padding: 16px;
  }

  .apps-modal-card {
    padding: 22px 18px 18px;
    border-radius: 24px;
  }

  .apps-modal-card-video {
    padding: 10px;
    width: min(calc(var(--apps-video-modal-width, 100%) + 20px), calc(100vw - 12px));
    max-width: calc(100vw - 12px);
  }

  .apps-modal-video-wrap {
    padding: 4px;
  }

  .apps-modal-video {
    height: min(var(--apps-video-modal-height, 52vh), calc(100vh - 96px));
  }

  .apps-modal-card.is-animation {
    max-height: calc(100dvh - 8px);
    padding: 4px;
  }

  .apps-modal-card.is-animation.apps-modal-card-video {
    width: min(calc(var(--apps-video-modal-width, 100%) + 6px), calc(100vw - 4px));
    max-width: calc(100vw - 4px);
    padding: 2px;
  }

  .apps-modal-card.is-animation .apps-modal-video-wrap {
    padding: 0;
  }

  .apps-modal-card.is-animation .apps-modal-frame {
    height: min(var(--apps-video-modal-height, calc(100dvh - 20px)), calc(100dvh - 20px));
  }

  .elisa-feature,
  .apps-hero-panel,
  .apps-cta-panel {
    padding: 24px;
  }

  .apps-cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .apps-cta-panel .apps-contact-link {
    width: 100%;
    min-width: 0;
  }

  .apps-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .apps-btn {
    width: 100%;
  }
}
