:root {
  --bg: #f7f9fc;
  --surface: #fff;
  --tint: #eef4f9;
  --ink: #102033;
  --muted: #617184;
  --blue: #0877c9;
  --blue-d: #075e9f;
  --line: #dfe7ef;
  --shadow: 0 20px 55px rgba(16, 32, 51, .10);
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
}

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

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: auto;
}

/* Site Header & Navigation */
.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  background: rgba(247, 249, 252, .9);
  border-bottom: 1px solid rgba(223, 231, 239, .8);
  backdrop-filter: blur(16px);
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-mark {
  height: 37px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: .93rem;
  color: #44566a;
}

.nav-links a:not(.btn):hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 12px;
  font: inherit;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 13px 19px;
  font-weight: 780;
  transition: .2s ease;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 22px rgba(8, 119, 201, .22);
}

.btn-primary:hover {
  background: var(--blue-d);
}

.btn-ghost {
  background: #fff;
  border-color: var(--line);
}

.btn-light {
  background: #fff;
  color: var(--blue-d);
  box-shadow: var(--shadow);
}

.btn-small {
  padding: 9px 14px;
}

/* Typography & Hero Section */
.eyebrow {
  margin: 0 0 11px;
  color: var(--blue);
  font-weight: 850;
  font-size: .74rem;
  letter-spacing: .15em;
}

.hero {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  min-height: 640px;
  align-items: center;
  gap: 55px;
  padding: 48px 0 72px;
}

.hero h1,
h2,
h3 {
  letter-spacing: -.045em;
}

.hero h1 {
  margin: 0 0 23px;
  font-size: clamp(2.7rem, 5.1vw, 4.6rem);
  line-height: 1.02;
}

.hero h1 span {
  color: var(--blue);
}

.lead {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 1.17rem;
}

.engines {
  margin: 21px 0 0;
  font-size: .91rem;
  font-weight: 750;
  color: #3c5165;
}

.engines i {
  color: #9aabba;
  padding: 0 6px;
  font-style: normal;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 29px 0 12px;
}

.trial-actions small,
.license-card small {
  color: var(--muted);
  font-size: .84rem;
}

.microcopy {
  margin: 17px 0 0;
  color: #42576a;
  font-size: .84rem;
  font-weight: 750;
}

.product-shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-shot img {
  display: block;
  width: 100%;
  height: auto;
  animation: img-fade .6s ease both;
}

@keyframes img-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.hero-shot {
  border-radius: 19px;
  background: transparent;
  border: none;
  box-shadow: none;
}

#viewer-image {
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  animation: none;
  transition: opacity .25s ease;
}

#viewer-image.is-swapping {
  opacity: .35;
}

/* General Layout Sections */
.section {
  padding: 105px 0;
}

.section-tint,
.problem-section {
  background: var(--tint);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 42px;
}

.section-heading h2,
.demo-layout h2,
.trial-card h2,
.license-wrap h2,
.final-cta h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.showcase-copy p:not(.eyebrow),
.demo-layout>div p:not(.eyebrow),
.license-wrap>div p:not(.eyebrow),
.final-cta>div>p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* Problem Section */
.problem-section {
  padding: 90px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 940px;
  margin: auto;
}

.problem-grid p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 17px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid #c15a60;
  border-radius: 14px;
  background: #fff;
  color: #3f5163;
  transition: transform .22s ease, box-shadow .22s ease;
  animation: proto-rise .5s ease both;
}

.problem-grid p:nth-child(2) { animation-delay: .08s; }
.problem-grid p:nth-child(3) { animation-delay: .16s; }
.problem-grid p:nth-child(4) { animation-delay: .24s; }

.problem-grid p:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.problem-grid b {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 50%;
  background: #c15a60;
  color: transparent;
  font-size: 0;
  line-height: 1;
}

.problem-grid b::before {
  content: "×";
  color: #fff;
  font-size: 1.05rem;
  line-height: 1;
}

@keyframes proto-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .problem-grid p,
  .product-shot img {
    animation: none;
  }

  #viewer-image {
    transition: none;
  }
}

.solution-line {
  margin: 34px 0 0;
  text-align: center;
  font-size: 1.12rem;
}

.solution-line strong {
  color: var(--blue);
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr 26px 1fr 26px 1fr 26px 1fr;
  gap: 12px;
}

.flow-arrow {
  align-self: center;
  color: #9badbc;
  font-size: 1.4rem;
  line-height: 1;
  text-align: center;
}

.step {
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.step-top {
  display: flex;
  align-items: center;
}

.step-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: #edf5ff;
  color: var(--blue);
}

.step-icon svg {
  width: 22px;
  height: 22px;
}

.step h3,
.benefits-grid h3 {
  margin: 17px 0 7px;
  font-size: 1.22rem;
}

.step p,
.benefits-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

/* Showcase Section */
.showcase-list {
  display: grid;
  gap: 88px;
}

.showcase {
  display: grid;
  grid-template-columns: .74fr 1.26fr;
  gap: 60px;
  align-items: center;
}

.showcase.reverse {
  grid-template-columns: 1.26fr .74fr;
}

.showcase.reverse .showcase-copy {
  order: 2;
}

.showcase.reverse .product-shot {
  order: 1;
}

.showcase h3 {
  margin: 0 0 13px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  line-height: 1.14;
}

/* Dark Section & Demo */
.section-dark {
  background: #102033;
  color: #fff;
}

.section-dark .eyebrow {
  color: #80c8f3;
}

.demo-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 65px;
  align-items: center;
}

.demo-layout>div p:not(.eyebrow) {
  color: #bed0df;
  margin-bottom: 25px;
}

.demo-video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(178, 218, 241, .35);
  border-radius: 18px;
  background: #0d1826;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .35);
}

/* Engine & Benefits Grids */
.engine-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.engine-card {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 90px;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 25px rgba(16, 32, 51, .04);
  font-size: 1.1rem;
  font-weight: 780;
  color: #41576b;
  line-height: 1.1;
  text-align: left;
}

.engine-icon {
  position: absolute;
  left: 23px;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.engine-card:last-child .engine-icon {
  width: 64px;
}

.engine-copy {
  display: block;
  text-align: center;
}

.engine-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: .77rem;
  font-weight: 400;
  line-height: 1.15;
}

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

.benefits-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.benefits-grid article>span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e5f3fc;
  color: var(--blue);
  font-weight: 850;
}

/* Trial & Pricing / Licenses */
.trial-section {
  padding: 76px 0 36px;
  background: var(--blue);
  color: #fff;
}

.trial-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.trial-card .eyebrow {
  color: #cceaff;
}

.trial-card p:not(.eyebrow) {
  color: #e2f2fc;
  max-width: 650px;
  margin: 0;
}

.trial-card .trial-note {
  margin-top: 13px !important;
  font-weight: 700;
}

.trial-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 16px;
  margin-top: 18px;
  color: #d9f0fb;
  font-size: .83rem;
  font-weight: 750;
}

.trial-actions {
  min-width: 260px;
  text-align: center;
}

.trial-actions small {
  display: block;
  margin-top: 12px;
  color: #d3edff;
}

.disabled-link {
  cursor: pointer;
}

.license-wrap {
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 70px;
}

.license-card {
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}

.license-label {
  margin: 0;
  color: var(--blue);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.price-placeholder {
  margin: 8px 0 16px;
  font-size: 1.5rem;
  font-weight: 850;
}

.license-card ul {
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}

.license-card li {
  padding: 7px 0;
  border-bottom: 1px solid #edf1f5;
  color: #4b5e70;
}

.license-card li:before {
  content: "✓";
  padding-right: 9px;
  color: var(--blue);
  font-weight: 900;
}

.license-card small {
  display: block;
  margin-top: 12px;
}

/* FAQ Section */
.faq-wrap {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.faq-list summary {
  padding: 17px 24px 17px 0;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
  position: relative;
}

.faq-list summary:after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--blue);
  font-size: 1.3rem;
}

.faq-list details[open] summary:after {
  content: "−";
}

.faq-list p {
  margin: 0 0 17px;
  color: var(--muted);
}

/* Final CTA Section */
.final-cta {
  padding: 105px 0;
  text-align: center;
}

.final-cta>div {
  max-width: 780px;
}

.final-cta .hero-actions {
  justify-content: center;
}

.contact-marker {
  font-size: .86rem;
}

/* Footer Section */
.footer {
  padding: 35px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
}

.footer-inner p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner>div:last-of-type {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: .9rem;
}

.footer em {
  color: #9c6c13;
  font-style: normal;
  font-size: .78rem;
}

.footer small {
  grid-column: 1/-1;
  color: var(--muted);
}

/* Responsive Styles */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    right: 20px;
    left: 20px;
    top: 67px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 8px;
  }

  .hero,
  .showcase,
  .showcase.reverse,
  .demo-layout,
  .license-wrap,
  .faq-wrap {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero {
    min-height: auto;
  }

  .showcase.reverse .showcase-copy,
  .showcase.reverse .product-shot {
    order: initial;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trial-card {
    display: block;
  }

  .trial-actions {
    text-align: left;
    margin-top: 25px;
  }

  .engine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner>div:last-of-type {
    flex-wrap: wrap;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .hero {
    padding-top: 45px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .section {
    padding: 76px 0;
  }

  .problem-grid,
  .steps-grid,
  .benefits-grid,
  .engine-grid,
  .use-cases-grid {
    grid-template-columns: 1fr;
  }

  .showcase-list {
    gap: 60px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .footer-inner>div:last-of-type {
    gap: 10px 16px;
  }
}

.product-viewer {
  display: grid;
  grid-template-columns: .6fr 1.4fr;
  gap: 40px;
  align-items: center;
}
.viewer-copy h3 {
  margin: 0 0 13px;
  font-size: clamp(1.7rem,2.6vw,2.4rem);
  line-height: 1.14;
  letter-spacing: -.045em;
}
.viewer-copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}
.viewer-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.viewer-tabs button {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 9px 12px;
  color: #4b6173;
  font: inherit;
  font-size: .88rem;
  font-weight: 750;
  cursor: pointer;
}
.viewer-tabs button.active {
  border-color: var(--blue);
  background: #e9f5fc;
  color: var(--blue);
}

@media (max-width: 900px) {
  .product-viewer {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

/* REGLAS EXCLUSIVAS Y NUEVAS DE LA VERSIÓN 2 */

.hero-wrap {
  background: var(--bg);
}

.compact-section {
  padding: 82px 0;
}

.compatibility-line {
  margin: 27px 0 0;
  text-align: center;
  color: #536779;
  font-size: .92rem;
}

/* COMPONENTES SECUNDARIOS V2 */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: auto;
}

.use-cases-grid article {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.use-cases-grid span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e5f3fc;
  color: var(--blue);
  font-size: .7rem;
  font-weight: 850;
}

.use-cases-grid h3 {
  margin: 17px 0 7px;
  font-size: 1.22rem;
}

.use-cases-grid p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.price {
  margin: 8px 0 18px;
  font-size: 2.6rem;
  font-weight: 850;
  letter-spacing: -.06em;
}

.price small {
  font-size: 1.3rem;
  vertical-align: top;
}

.price em {
  font-size: .92rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.price-equivalent {
  margin: -9px 0 4px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 750;
}

.price-note {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.text-link {
  display: inline-flex;
  gap: 8px;
  margin-top: 21px;
  color: var(--blue);
  font-weight: 800;
}

/* CONTACTO V3 */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 880px;
  margin: auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
  padding: 9px;
  border-radius: 12px;
  background: #e5f3fc;
  color: var(--blue);
}

.contact-card h3 {
  margin: 4px 0 0;
  font-size: 1.25rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}

.contact-address {
  margin: 6px 0 0;
  color: var(--blue);
  font-weight: 800;
  font-size: .95rem;
}

.contact-card .btn {
  margin-top: auto;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 901px) {
  .product-shot {
    transform: scale(1.06);
  }
}
