/* MEM TOR · aplica docs/design-system.md de Memoria Toroidal.
   Tokens, tipografía (Manrope + DM Sans), botón naranja único, ritmo claro/oscuro. */
@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:root {
  --navy: #071426;
  --navy-2: #0d223b;
  --ink: #101722;
  --muted: #626c79;
  --line: #d8dde4;
  --paper: #f7f8f5;
  --cream: #eee6d9;
  --warm: #e7ded1;
  --white: #fff;
  --teal: #229ca9;
  --orange: #e3a948;
  --shadow: 0 26px 80px rgba(7, 20, 38, 0.14);
  --radius: 28px;
  --shell: 1240px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.68;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: Manrope, sans-serif;
}
.container {
  width: min(var(--shell), calc(100% - 48px));
  margin: auto;
}

/* Etiquetas */
.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

/* Secciones y fondos */
.section {
  padding: 150px 0;
  background: var(--white);
}
.section--cream {
  background: var(--cream);
}
.section--warm {
  background: var(--warm);
}
.section--dark {
  background: var(--navy);
  color: #fff;
}
.section--dark p {
  color: rgba(255, 255, 255, 0.7);
}
.product {
  padding: 150px 0;
  background: var(--white);
}
.section__head {
  max-width: 860px;
  margin-bottom: 65px;
}
.section__head h2 {
  font:
    750 clamp(44px, 5.5vw, 76px)/1.05 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.section__head p {
  font-size: 19px;
  color: #697483;
  max-width: 700px;
  margin: 0;
}
.section--dark .section__head p {
  color: rgba(255, 255, 255, 0.7);
}

/* Botón único: píldora naranja, texto azul marino, sin iconos */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 999px;
  padding: 15px 23px;
  background: var(--orange);
  color: var(--navy);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(227, 169, 72, 0.22);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(227, 169, 72, 0.3);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin-top: 34px;
}
.text-link {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  padding-bottom: 3px;
}
.text-link:hover {
  color: #fff;
  border-color: #fff;
}
.chat-tab {
  appearance: none;
  border: 1px solid #d7dde5;
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: 13px 18px;
  font:
    700 15px/1.1 Manrope,
    sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}
.chat-tab:hover {
  border-color: var(--teal);
}
.chat-tab.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  box-shadow: 0 10px 24px rgba(7, 20, 38, 0.12);
}

/* Cabecera */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(7, 20, 38, 0.34);
  backdrop-filter: blur(16px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 20, 38, 0.94);
}
.site-header__inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand img {
  width: 118px;
  height: auto;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: 0.2s;
}
.nav a:hover {
  color: #fff;
}
.nav .btn {
  color: var(--navy);
  font-size: 13px;
  padding: 11px 17px;
}
.nav .btn:hover {
  color: var(--navy);
}
.nav__products {
  position: relative;
}
.nav__menu {
  position: absolute;
  top: 30px;
  left: -15px;
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  min-width: 220px;
  display: none;
}
.nav__products:hover .nav__menu,
.nav__products:focus-within .nav__menu {
  display: grid;
}
.nav__menu a {
  color: var(--navy);
  padding: 9px;
  border-radius: 9px;
}
.nav__menu a:hover {
  background: var(--cream);
  color: var(--navy);
}
.menu-btn {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Hero (inicio) y hero de páginas interiores */
.hero,
.page-hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.hero:before,
.page-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, #000, transparent 80%);
  pointer-events: none;
}
.hero > .container,
.page-hero > .container {
  position: relative;
}
.hero {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 145px 0 80px;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font:
    800 clamp(44px, 5.4vw, 80px)/1.04 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  margin: 20px 0 30px;
  max-width: 760px;
}
.hero h1 span {
  color: var(--orange);
}
.hero p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.82);
  max-width: 650px;
  margin: 0;
}
.hero__image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}
.hero__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.page-hero {
  padding: 170px 0 110px;
}
.page-hero__grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 70px;
  align-items: center;
}
.page-hero h1 {
  font:
    800 clamp(46px, 6vw, 92px)/1.04 Manrope,
    sans-serif;
  letter-spacing: -0.035em;
  margin: 20px 0 26px;
}
.page-hero p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.52;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
  margin: 0;
}
.page-hero img {
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

/* Rejillas y tarjetas */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: #fff;
  border: 1px solid rgba(7, 20, 38, 0.1);
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(7, 20, 38, 0.04);
}
.card h3 {
  font:
    700 22px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  color: var(--navy);
}
.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card .eyebrow {
  margin-bottom: 14px;
}
.card__image {
  margin: -30px -30px 24px;
  border-radius: 24px 24px 0 0;
  overflow: hidden;
}
.card__image img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Split texto + imagen */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.feature__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.feature__media img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.feature h2 {
  font:
    750 clamp(38px, 4.2vw, 60px)/1.06 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  overflow-wrap: break-word;
  margin: 0 0 28px;
}
.feature p {
  color: #596272;
  font-size: 18px;
  max-width: 620px;
}
.feature .grid-2 {
  margin-top: 34px;
}
.quote {
  border-left: 3px solid var(--orange);
  padding: 12px 0 12px 24px;
  font:
    600 clamp(22px, 2.6vw, 32px)/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin-top: 40px;
  color: var(--navy);
}

.feature__media--wide {
  grid-column: 1 / -1;
  background: transparent;
  box-shadow: none;
}
.feature__media--wide img {
  aspect-ratio: auto;
  object-fit: contain;
}

/* Pasos (sección oscura) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 50px;
}
.step {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 26px 0 10px;
}
.step__num {
  color: var(--orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
.step h3 {
  font:
    700 26px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 16px;
}

/* Chat de ejemplo */
.chat-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.chat {
  background: #fff;
  border: 1px solid #d8dde4;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(7, 20, 38, 0.08);
}
.bubble {
  max-width: 88%;
  padding: 15px 17px;
  border-radius: 18px;
  margin: 10px 0;
  font-size: 16px;
  line-height: 1.5;
}
.bubble--user {
  margin-left: auto;
  background: var(--navy);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble--mio {
  background: #eef4f5;
  color: var(--navy);
  border-bottom-left-radius: 6px;
}
.bubble small {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  font-weight: 800;
  margin-bottom: 6px;
}
.bubble--user small {
  color: var(--orange);
}

/* Tarjetas de perfil */
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.profile-card {
  border: 1px solid rgba(7, 20, 38, 0.1);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}
.profile-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.profile-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.profile-card__body {
  padding: 24px;
}
.profile-card h3 {
  font:
    700 21px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: var(--navy);
}
.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Declaración y cierre */
.manifesto {
  text-align: center;
  max-width: 900px;
  margin: auto;
}
.manifesto h2 {
  font:
    750 clamp(46px, 6.6vw, 92px)/1.02 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 40px;
}
.manifesto p {
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px;
}
.cta {
  text-align: center;
}
.cta h2 {
  font:
    750 clamp(46px, 6vw, 82px)/1 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.cta p {
  max-width: 620px;
  margin: 0 auto;
  font-size: 18px;
}
.section--warm .cta p {
  color: #596272;
}
.cta .actions {
  justify-content: center;
}

/* Tabla comparativa */
.table-wrap {
  overflow-x: auto;
  border: 1px solid #d8dde4;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.compare {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  background: #fff;
  color: var(--ink);
}
.compare th,
.compare td {
  text-align: left;
  padding: 19px 20px;
  border-bottom: 1px solid #e1e5ea;
  font-size: 16px;
  vertical-align: top;
}
.compare thead th {
  background: #f6f7f5;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #53606e;
}
.compare tbody th {
  font-weight: 600;
  color: #4d5764;
  width: 26%;
}
.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: 0;
}
.compare--center th:not(:first-child),
.compare--center td {
  text-align: center;
}
.compare__price {
  font:
    750 22px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* Planes: todos iguales, ninguno destacado */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 10px;
}
.price-card {
  border: 1px solid rgba(7, 20, 38, 0.1);
  border-radius: 24px;
  padding: 30px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(7, 20, 38, 0.04);
}
.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}
.price {
  font:
    750 34px/1.1 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin: 8px 0 16px;
}
.price small {
  display: block;
  font:
    500 14px/1.4 "DM Sans",
    sans-serif;
  letter-spacing: 0;
  color: var(--muted);
  margin-top: 6px;
}

/* Formulario */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
}
.form input,
.form textarea {
  width: 100%;
  border: 1px solid #d7dce2;
  border-radius: 12px;
  background: #fbfbfa;
  padding: 14px 15px;
  color: var(--navy);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.form input:focus,
.form textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(34, 156, 169, 0.1);
}
.form textarea {
  min-height: 140px;
  resize: vertical;
}
.form .full {
  grid-column: 1/-1;
}
.form .full p {
  margin: 14px 0 0;
  font-size: 13px;
  text-align: left;
}
.notice {
  display: none;
  padding: 18px;
  border-radius: 16px;
  background: #e5f4ed;
  color: #176f4c;
  margin-top: 16px;
}

/* Pie de página */
.footer {
  background: var(--navy);
  color: #fff;
  padding: 70px 0 34px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .brand img {
  width: 126px;
  margin-bottom: 14px;
}
.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}
.footer p {
  margin: 0 0 10px;
}
.footer .footer__heading {
  margin: 0 0 14px;
  font:
    700 13px/1 Manrope,
    sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.footer a {
  display: block;
  margin: 9px 0;
  transition: 0.2s;
}
.footer a:hover {
  color: var(--orange);
}
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
}
.footer__bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
}
.footer > .container > .footer__bottom:first-child {
  border-top: 0;
  padding-top: 0;
}

/* Páginas legales */
.legal {
  padding: 170px 0 110px;
  background: var(--paper);
}
.legal article {
  max-width: 820px;
}
.legal h1 {
  font:
    800 clamp(44px, 6vw, 80px)/1.04 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 0 0 30px;
}
.legal h2 {
  font:
    700 28px/1.2 Manrope,
    sans-serif;
  letter-spacing: -0.03em;
  margin: 40px 0 12px;
}
.legal p {
  color: #596272;
  font-size: 18px;
}

/* Revelado al hacer scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.2, 0.75, 0.25, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn {
    transition: none;
  }
}

@media (max-width: 1000px) {
  .container {
    width: min(var(--shell), calc(100% - 34px));
  }
  .nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .site-header .btn {
    display: none;
  }
  .nav--open {
    display: flex;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 20px 17px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav--open .btn {
    display: inline-flex;
  }
  .nav--open .nav__menu {
    position: static;
    display: grid;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.06);
    margin-top: 8px;
  }
  .nav--open .nav__menu a {
    color: #fff;
  }
  .section,
  .product {
    padding: 105px 0;
  }
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
  .hero__grid,
  .page-hero__grid,
  .feature,
  .chat-wrap {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .hero__image {
    order: -1;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .profile-grid,
  .grid-6,
  .grid-3,
  .pricing {
    grid-template-columns: 1fr 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .form {
    grid-template-columns: 1fr;
  }
  .form .full {
    grid-column: auto;
  }
}
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }
  .site-header__inner {
    height: 68px;
  }
  .brand img {
    width: 100px;
  }
  .nav--open {
    top: 68px;
  }
  .section,
  .product {
    padding: 80px 0;
  }
  .page-hero {
    padding: 125px 0 70px;
  }
  .hero {
    padding: 105px 0 60px;
  }
  .profile-grid,
  .grid-2,
  .grid-3,
  .grid-6,
  .pricing {
    grid-template-columns: 1fr;
  }
  .section__head {
    margin-bottom: 40px;
  }
  .section__head p,
  .feature p {
    font-size: 17px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .chat {
    padding: 16px;
  }
  .bubble {
    max-width: 94%;
    font-size: 15px;
  }
  .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cta .actions {
    align-items: center;
  }
}
