@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');


/* =========================
   ESTILOS GENERALES
   ========================= */

:root {
  font-family: Manrope, Arial, sans-serif;
  color: var(--mw-navy);
  background: #f8f9fc;
  font-synthesis: none;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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


/* =========================
   BARRA SUPERIOR
   ========================= */

.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 0 max(5vw, 24px);
  background: white;
  border-bottom: 1px solid #e9ecf3;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: -.07em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--mw-navy);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
}

.brand-mark span,
.brand-accent {
  color: #6a62ee;
}

.topbar nav {
  display: flex;
  gap: 32px;
  font-size: .9rem;
  font-weight: 700;
  color: #68738a;
}

.topbar nav a:hover,
footer a:hover {
  color: #6156df;
}

.top-cta {
  margin-left: auto;
  background: var(--mw-btn);
  color: var(--mw-btn-text);
  padding: 12px 19px;
  border-radius: 9px;
  font-size: .87rem;
  font-weight: 700;
}

.top-cta span {
  margin-left: 15px;
}


/* =========================
   ENCABEZADO PRINCIPAL
   ========================= */

.hero {
  min-height: 590px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  background: #eef1ff;
}

.hero-copy {
  padding: 75px 5vw 54px;
  max-width: 750px;
}

.eyebrow {
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: #635be1;
}

.sparkle {
  font-size: 1.3rem;
  vertical-align: middle;
  margin-right: 6px;
}

.hero h1,
.section-intro h2 {
  letter-spacing: -.07em;
  line-height: 1.08;
  margin: 22px 0;
  font-size: clamp(3.1rem, 5.3vw, 5.7rem);
  font-weight: 800;
}

.hero h1 em,
.section-intro h2 em {
  font-style: normal;
  color: var(--mw-violet);
}

.hero p {
  font-size: 1.12rem;
  line-height: 1.7;
  color: #5d6a84;
  max-width: 530px;
  margin: 0 0 30px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  border: 0;
  border-radius: 9px;
  padding: 14px 19px;
  font-weight: 800;
  font-size: .88rem;
}

/* Botón "Elegir una plantilla" del encabezado */
.hero .primary {
  color: #fff;
  background: rgba(108, 167, 218, 0.22);
  border: 1px solid rgba(190, 225, 255, 0.2);
  box-shadow: 0 8px 28px rgba(0, 30, 95, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.hero .primary:hover {
  background: rgba(127, 187, 236, 0.32);
  box-shadow: 0 12px 32px rgba(0, 30, 95, 0.22);
  transform: scale(1.04);
}

.hero .primary:focus-visible {
  outline: 2px solid #bceaff;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero .primary {
    transition: none;
  }

  .hero .primary:hover {
    transform: none;
  }
}

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 69px;
  font-size: .7rem;
  letter-spacing: .13em;
  font-weight: 800;
  color: #8290ab;
}


/* =========================
   ILUSTRACIÓN DEL ENCABEZADO
   ========================= */

.hero-art {
  height: 100%;
  min-height: 530px;
  position: relative;
  background: radial-gradient(
    circle at 40% 45%,
    #8c8cf1 0%,
    #6e71e1 45%,
    #5d69ce 100%
  );
  display: grid;
  place-items: center;
  padding: 50px;
}

.art-window {
  width: min(100%, 570px);
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 32px 70px #242c8155;
  overflow: hidden;
  transform: rotate(-3deg);
}

.art-chrome {
  height: 40px;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 0 15px;
  background: #f7f8fb;
}

.art-chrome i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cdd2e0;
}

.art-chrome span {
  margin: auto;
  background: white;
  color: #a4aac0;
  border-radius: 4px;
  font-size: .63rem;
  padding: 3px 65px;
}

.art-preview {
  position: relative;
  overflow: hidden;
  height: 310px;
  background: #f8e9db;
  padding: 46px 35px;
}

.art-preview small {
  font-size: .7rem;
  letter-spacing: .15em;
  font-weight: 800;
}

.art-preview strong {
  display: block;
  font-size: clamp(2rem, 3.4vw, 3.7rem);
  letter-spacing: -.07em;
  line-height: 1.06;
  margin: 22px 0;
  position: relative;
  z-index: 1;
}

.art-preview strong i {
  color: #e26f59;
  font-style: normal;
}

.art-pill {
  display: inline-block;
  border: 1px solid #1d2133;
  border-radius: 30px;
  padding: 9px 15px;
  font-size: .62rem;
  font-weight: 800;
}

.art-circle {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: #eeaa83;
  right: -30px;
  bottom: -35px;
}

.art-tag {
  position: absolute;
  right: 5%;
  bottom: 65px;
  background: #fff;
  padding: 14px 17px;
  border-radius: 9px;
  box-shadow: 0 10px 25px #242c8133;
  font-size: .8rem;
  font-weight: 800;
  transform: rotate(3deg);
}


/* =========================
   PLANTILLAS Y ENCABEZADOS
   DE SECCIÓN
   ========================= */

.workspace,
.editor-section {
  padding: 96px max(5vw, 24px);
}

.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 37px;
}

.section-intro h2 {
  font-size: clamp(2.3rem, 3.4vw, 3.8rem);
  margin: 14px 0 0;
}

.section-intro p {
  max-width: 320px;
  line-height: 1.7;
  color: #68738a;
  margin: 0;
}

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

.template-card {
  background: white;
  border: 1px solid #e5e8f1;
  border-radius: 15px;
  padding: 12px;
  text-align: left;
  transition:
    transform .2s,
    border-color .2s,
    box-shadow .2s;
  width: 100%;
  color: inherit;
}

.template-card:hover,
.template-card.selected {
  transform: translateY(-3px);
  border-color: var(--mw-violet);
  box-shadow: 0 13px 35px #1d27551b;
}

.template-thumbnail {
  height: 200px;
  border-radius: 9px;
  overflow: hidden;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.thumbnail-nav {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.thumbnail-title {
  font-size: clamp(1.6rem, 2.8vw, 2.7rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.06em;
  max-width: 250px;
}

.thumbnail-button {
  align-self: start;
  background: #1b2548;
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: .62rem;
}

.template-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 7px 5px;
  font-weight: 800;
}

.template-meta small {
  color: #7b87a1;
  font-size: .75rem;
}


/* =========================
   EDITOR
   ========================= */

.editor-section {
  background: #f0f2f9;
}

.studio {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px #1d275512;
  overflow: hidden;
  border: 1px solid #e2e6f0;
}

.studio-toolbar {
  padding: 18px 22px;
  border-bottom: 1px solid #e8ebf3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.studio-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .88rem;
}

.studio-title > span:last-child {
  color: #8994aa;
  margin-left: 10px;
}

.live-dot {
  width: 9px;
  height: 9px;
  background: #6e67e9;
  border-radius: 50%;
}

.toolbar-actions {
  display: flex;
  gap: 8px;
}

.ghost {
  border: 1px solid #dce1ec;
  background: white;
  color: #30415f;
}

.dark {
  background: var(--mw-navy);
  color: white;
}

.studio-body {
  display: grid;
  grid-template-columns: minmax(270px, 345px) minmax(0, 1fr);
  min-height: 650px;
}


/* =========================
   CAMPOS DEL EDITOR
   ========================= */

.controls {
  padding: 24px;
  border-right: 1px solid #e8ebf3;
  max-height: 740px;
  overflow-y: auto;
}

.controls label {
  display: block;
  font-weight: 800;
  font-size: .8rem;
  color: #30415f;
  margin-bottom: 18px;
}

.controls input:not([type=checkbox]):not([type=color]),
.controls textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px;
  border: 1px solid #d9deea;
  border-radius: 8px;
  outline: none;
  color: var(--mw-navy);
  background: #fff;
  font-weight: 500;
  font-size: .9rem;
  resize: vertical;
}

.controls input:focus,
.controls textarea:focus {
  border-color: var(--mw-violet);
  box-shadow: 0 0 0 3px rgb(var(--mw-violet-rgb) / 0.13);
}

.color-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.color-control label {
  margin: 0;
}

.color-control input {
  width: 55px;
  height: 37px;
  border: 1px solid #d9deea;
  background: white;
  border-radius: 6px;
  padding: 3px;
}

.controls fieldset {
  border: 0;
  border-top: 1px solid #e6e9f1;
  padding: 18px 0 0;
  margin: 10px 0;
}

.controls legend {
  font-size: .82rem;
  font-weight: 800;
  padding-right: 10px;
}

.controls .switch-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: .83rem;
}

.switch-row input {
  accent-color: var(--mw-violet);
  width: 17px;
  height: 17px;
}

.hint {
  font-size: .76rem;
  line-height: 1.6;
  color: #8290a7;
  border-top: 1px solid #e6e9f1;
  padding-top: 16px;
}


/* =========================
   VISTA PREVIA
   ========================= */

.preview-column {
  min-width: 0;
  background: #f7f8fc;
}

.preview-toolbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  color: #8290a7;
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 800;
}

.view-toggle {
  display: flex;
  background: #e9ecf4;
  border-radius: 8px;
  padding: 3px;
  letter-spacing: 0;
}

.view-toggle button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: .75rem;
  color: #6e7a91;
}

.view-toggle button.active {
  background: white;
  color: #1d2a4a;
  box-shadow: 0 2px 5px #1d275516;
}

.preview-stage {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 30px 40px;
  min-height: 590px;
}

.preview-stage iframe {
  width: 100%;
  height: 570px;
  border: 1px solid #dfe3ed;
  box-shadow: 0 13px 28px #18295518;
  background: white;
  transition: width .25s;
}

.preview-stage.mobile iframe {
  width: min(100%, 375px);
}

.status {
  text-align: center;
  min-height: 1.5em;
  color: #4d56b4;
  font-size: .85rem;
  margin: 15px;
}


/* =========================
   PIE DE PÁGINA
   ========================= */

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 30px max(5vw, 24px);
  background: var(--mw-night);
  color: #d4daf0;
  font-size: .8rem;
}

.brand.small {
  color: white;
  font-size: 1.03rem;
}

.brand.small .brand-mark {
  background: #fff;
  color: var(--mw-navy);
  width: 27px;
  height: 27px;
  font-size: 1.15rem;
}


/* =========================
   TABLETS
   ========================= */

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

  .hero-art {
    min-height: 410px;
  }

  .hero-copy {
    max-width: none;
  }

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

  .studio-body {
    grid-template-columns: 1fr;
  }

  .controls {
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid #e8ebf3;
  }

  .preview-stage {
    min-height: 500px;
  }

  .preview-stage iframe {
    height: 480px;
  }
}


/* =========================
   CELULARES
   ========================= */

@media (max-width: 620px) {
  .topbar {
    height: 70px;
    gap: 12px;
  }

  .topbar nav {
    display: none;
  }

  .top-cta {
    font-size: .76rem;
    padding: 10px;
  }

  .top-cta span {
    display: none;
  }

  .hero-copy {
    padding: 60px 24px 40px;
  }

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

  .hero-foot {
    margin-top: 48px;
    gap: 14px;
  }

  .hero-art {
    min-height: 310px;
    padding: 26px;
  }

  .art-preview {
    height: 220px;
    padding: 22px;
  }

  .art-preview strong {
    font-size: 2rem;
  }

  .art-circle {
    width: 125px;
    height: 125px;
  }

  .art-tag {
    bottom: 18px;
  }

  .workspace,
  .editor-section {
    padding: 70px 20px;
  }

  .section-intro {
    display: block;
  }

  .section-intro p {
    margin-top: 20px;
  }

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

  .studio-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .button {
    flex: 1;
    padding: 12px 8px;
    font-size: .73rem;
  }

  .studio-title > span:last-child {
    font-size: .72rem;
  }

  .controls {
    padding: 18px;
  }

  .preview-toolbar {
    padding: 0 12px;
  }

  .preview-stage {
    padding: 10px;
    height: 470px;
    min-height: 0;
  }

  .preview-stage iframe {
    height: 430px;
  }

  footer {
    flex-wrap: wrap;
  }

  footer .brand {
    width: 100%;
  }
}


/* =========================
   MOVIMIENTO REDUCIDO
   ========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.precios {
  padding: 100px max(5vw, 24px);
  background: #f4f6fc;
  color: var(--mw-navy);
  font-family: "Manrope", Arial, sans-serif;
}

.precios *,
.precios *::before,
.precios *::after {
  box-sizing: border-box;
}

.precios__encabezado {
  max-width: 680px;
  margin-bottom: 42px;
}

.precios__etiqueta {
  color: var(--mw-violet);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.precios__encabezado h2 {
  margin: 14px 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.06em;
}

.precios__encabezado p {
  margin: 0;
  color: #66738e;
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.plan {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 470px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e2e6f0;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgb(var(--mw-navy-rgb) / 0.1);
}

.plan--destacado {
  position: relative;
  color: #fff;
  background: var(--mw-navy);
  border-color: var(--mw-navy);
}

.plan__insignia {
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 10px;
  color: var(--mw-navy);
  background: #b7b5ff;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.plan__numero {
  display: block;
  color: #71809e;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.plan--destacado .plan__numero {
  color: #adb8d5;
}

.plan h3 {
  margin: 23px 0 9px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.plan__descripcion {
  min-height: 70px;
  margin: 0 0 24px;
  color: #66738e;
  font-size: 0.9rem;
  line-height: 1.6;
}

.plan--destacado .plan__descripcion {
  color: #ccd4e8;
}

.plan ul {
  display: grid;
  gap: 15px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 25px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--mw-violet);
  font-weight: 800;
}

.plan--destacado li::before {
  color: #b7b5ff;
}

.plan__boton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 15px;
  color: var(--mw-navy);
  background: #eef0fa;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 800;
  cursor: pointer;
}

.plan__boton:hover,
.plan__boton:focus-visible {
  outline: 2px solid var(--mw-violet);
  outline-offset: 2px;
}

.plan--destacado .plan__boton {
  color: var(--mw-btn-accent-text);
  background: var(--mw-btn-accent);
}

.plan__boton[aria-pressed="true"] {
  outline: 3px solid var(--mw-violet);
  outline-offset: 3px;
}

.plan--destacado .plan__boton[aria-pressed="true"] {
  outline-color: #b7b5ff;
}

.precios__aviso {
  min-height: 1.5em;
  margin: 24px 0 0;
  color: #4d56b4;
  font-size: 0.9rem;
  font-weight: 700;
}

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

  .plan {
    min-height: 430px;
  }
}

@media (max-width: 620px) {
  .precios {
    padding: 70px 20px;
  }

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

  .plan {
    min-height: auto;
  }

  .plan__descripcion {
    min-height: auto;
  }
}

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

/* Fondo oscuro con luces en movimiento */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #07080d;
  color: #ffffff;
}

/* Mantiene el texto y el botón delante de las luces */
.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

/* Luz azul de la izquierda */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 95%;
  height: 125%;
  left: -45%;
  top: -25%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(0, 174, 230, 0.78) 0%,
    rgba(0, 75, 185, 0.52) 38%,
    rgba(5, 13, 79, 0.25) 65%,
    transparent 75%
  );
  filter: blur(55px);
  animation: moverLuzIzquierda 12s ease-in-out infinite alternate;
}

/* Luz azul y turquesa de la parte inferior derecha */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 90%;
  height: 100%;
  right: -40%;
  bottom: -50%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse,
    rgba(0, 174, 200, 0.62) 0%,
    rgba(0, 65, 167, 0.38) 40%,
    rgba(7, 8, 42, 0.2) 65%,
    transparent 75%
  );
  filter: blur(65px);
  animation: moverLuzDerecha 16s ease-in-out infinite alternate;
}

@keyframes moverLuzIzquierda {
  from {
    transform: translate(-5%, -3%) scale(1);
  }
  to {
    transform: translate(18%, 10%) scale(1.2);
  }
}

@keyframes moverLuzDerecha {
  from {
    transform: translate(5%, 5%) scale(1);
  }
  to {
    transform: translate(-20%, -12%) scale(1.25);
  }
}

/* Ajustes para que el texto se lea sobre el fondo oscuro */
.hero h1 {
  color: #ffffff;
}

.hero h1 em {
  color: #6fd9ff;
}

.hero p {
  color: #d2dbeb;
}

.hero .eyebrow,
.hero-foot {
  color: #a6c6e8;
}

/* Respeta la configuración de quienes prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after {
    animation: none;
  }
}
.hero-art {
  background: transparent;
}
.hero-art {
  background: transparent;
}

.hero::before {
  animation: probarMovimiento 3s ease-in-out infinite alternate !important;
}

.hero::after {
  animation: probarMovimiento 4s ease-in-out infinite alternate-reverse !important;
}

@keyframes probarMovimiento {
  from {
    transform: translateX(-20%) scale(0.85);
  }
  to {
    transform: translateX(35%) scale(1.25);
  }
}

/* Espacio de la notebook */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  padding: 30px;
}

/* Notebook levemente inclinada y flotando */
.hero-notebook {
  display: block;
  width: 125%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 35px 35px rgba(0, 0, 0, 0.35));
  animation: notebookFlotando 6s ease-in-out infinite;
}

@keyframes notebookFlotando {
  0%,
  100% {
    transform: translateY(0) rotate(3deg);
  }

  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

@media (max-width: 620px) {
  .hero-art {
    min-height: 280px;
    padding: 10px 20px 35px;
  }

  .hero-notebook {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-notebook {
    animation: none;
    transform: rotate(3deg);
  }
}

/* =========================
   ENCABEZADO INTEGRADO
   ========================= */

.topbar {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: max(4%, calc((100% - 1440px) / 2));
  width: min(92%, 1440px);
  height: 64px;
  padding: 0 20px;

  display: flex;
  align-items: center;
  gap: 36px;

  color: #ffffff;
  background: rgba(80, 145, 220, 0.12);
  border: 1px solid rgba(210, 232, 255, 0.18);
  border-radius: 999px;

  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  transition:
    top 0.35s ease,
    left 0.35s ease,
    width 0.35s ease,
    height 0.35s ease,
    background-color 0.35s ease,
    color 0.35s ease,
    box-shadow 0.35s ease;
}

.topbar .brand-mark {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.topbar .brand-accent,
.topbar .brand-mark span {
  color: var(--mw-sky);
}

.topbar nav {
  color: inherit;
}

.topbar nav a:hover {
  color: var(--mw-sky);
}

.topbar .top-cta {
  color: #15305d;
  background: #ffffff;
}


/* =========================
   ENCABEZADO AL HACER SCROLL
   ========================= */

.topbar.scrolled {
  top: 16px;
  left: max(8%, calc((100% - 1440px) / 2));
  width: min(84%, 1440px);
  height: 56px;

  color: var(--mw-navy);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(225, 231, 242, 0.9);

  box-shadow: 0 12px 35px rgba(9, 22, 53, 0.16);
}

.topbar.scrolled .brand-mark {
  background: var(--mw-navy);
  color: #ffffff;
}

.topbar.scrolled .brand-accent,
.topbar.scrolled .brand-mark span {
  color: var(--mw-violet);
}

.topbar.scrolled nav a:hover {
  color: var(--mw-violet);
}

.topbar.scrolled .top-cta {
  color: var(--mw-btn-text);
  background: var(--mw-btn);
}


/* Evita que la barra tape el texto inicial del encabezado */
.hero-copy {
  padding-top: 125px;
}


/* =========================
   VERSIÓN CELULAR
   ========================= */

@media (max-width: 620px) {
  .topbar {
    top: 10px;
    left: 4%;
    width: 92%;
    height: 58px;
    padding: 0 12px;
    gap: 8px;
  }

  .topbar.scrolled {
    top: 10px;
    left: 4%;
    width: 92%;
    height: 54px;
  }

  .topbar nav {
    display: none;
  }

  .topbar .top-cta {
    margin-left: auto;
    padding: 10px 12px;
  }

  .hero-copy {
    padding-top: 115px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .topbar {
    transition: none;
  }
}

/* =========================
   SECCIÓN POR TIPO DE PÚBLICO
   ========================= */

.audience-section {
  overflow: hidden;
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(0, 106, 209, 0.12),
      transparent 35%
    ),
    #f5f8ff;
}

.audience-section .section-intro h2 em {
  color: #0757b9;
}

.audience-section .eyebrow {
  color: #0757b9;
}


/* Título y flechas del carrusel */

.audience-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 18px;
}

.audience-heading > span {
  color: #485b80;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.audience-arrows {
  display: flex;
  gap: 8px;
}

.audience-arrows button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(9, 59, 130, 0.16);
  border-radius: 50%;
  color: #083d85;
  background: rgba(255, 255, 255, 0.75);
  font: inherit;
  font-size: 1.25rem;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.audience-arrows button:hover {
  color: #ffffff;
  background: #0757b9;
  transform: scale(1.06);
}

.audience-arrows button:focus-visible,
.audience-card__button:focus-visible {
  outline: 3px solid #079ee8;
  outline-offset: 3px;
}


/* Carrusel que se puede arrastrar */

.audience-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 4px 4px 28px;
  margin-right: calc(-1 * max(5vw, 24px));
  padding-right: max(5vw, 24px);

  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: #a8c3e9 transparent;
}

.audience-track.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
  scroll-snap-type: none;
}

.audience-track.dragging * {
  user-select: none;
}


/* Tarjetas */

.audience-card {
  flex: 0 0 clamp(270px, 28vw, 370px);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;

  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.73);

  box-shadow:
    0 10px 35px rgba(15, 47, 98, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  scroll-snap-align: start;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(15, 47, 98, 0.16);
}

.audience-track.dragging .audience-card:hover {
  transform: none;
}


/* Espacio reservado para tu imagen */

.audience-card__image {
  position: relative;
  height: 235px;
  overflow: hidden;
  display: grid;
  place-items: center;

  /* Se cambia por cada tarjeta desde JavaScript */
  background: var(--card-color);
}

.audience-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 17, 54, 0.28),
    transparent 55%
  );
  pointer-events: none;
}

.audience-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.audience-card__placeholder {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}


/* Contenido inferior */

.audience-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.audience-card__number {
  color: #0757b9;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.audience-card h3 {
  margin: 13px 0 22px;
  color: var(--mw-navy);
  font-size: clamp(1.45rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.045em;
}

/* Botón Explorar: azul oscuro con efecto vidrio */
.audience-card__button {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  margin-top: auto;
  padding: 12px 19px;

  color: #ffffff;
  background: rgba(5, 35, 87, 0.9);
  border: 1px solid rgba(127, 194, 255, 0.24);
  border-radius: 9px;

  box-shadow:
    0 8px 20px rgba(3, 24, 65, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.13);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;

  transition:
    transform 0.25s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* Luz tenue en la esquina */
.audience-card__button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50px;
  right: -40px;

  width: 90px;
  height: 90px;
  border-radius: 50%;

  background: radial-gradient(
    circle,
    rgba(57, 188, 255, 0.55) 0%,
    rgba(57, 188, 255, 0.12) 42%,
    transparent 72%
  );

  pointer-events: none;
  transition: transform 0.3s ease;
}

.audience-card__button:hover {
  background: rgba(4, 31, 78, 0.96);
  box-shadow:
    0 12px 26px rgba(3, 24, 65, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);

  transform: translateY(-2px);
}

.audience-card__button:hover::before {
  transform: scale(1.25);
}

.audience-card__button:focus-visible {
  outline: 3px solid #079ee8;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .audience-card__button,
  .audience-card__button::before {
    transition: none;
  }

  .audience-card__button:hover {
    transform: none;
  }
}


/* Celular */

@media (max-width: 620px) {
  .audience-track {
    gap: 14px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .audience-card {
    flex-basis: min(82vw, 330px);
    min-height: 390px;
  }

  .audience-card__image {
    height: 210px;
  }

  .audience-arrows button {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .audience-track {
    scroll-behavior: auto;
  }

  .audience-card,
  .audience-card__button,
  .audience-arrows button {
    transition: none;
  }
}

/* =========================
   BUSCADOR SOBRE LA NOTEBOOK
   ========================= */

.hero-art {
  position: relative;
}

/* Barra flotante */
.hero-search {
  position: absolute;
  z-index: 3;

  /* Ubicación sobre la notebook */
  top: 50%;
  left: -5%;

  width: min(65%, 380px);
  min-height: 68px;
  padding: 8px 21px 8px 8px;

  display: flex;
  align-items: center;
  gap: 15px;

  color: #ffffff;
  background: linear-gradient(
    105deg,
    rgba(13, 119, 192, 0.96),
    rgba(7, 43, 109, 0.96) 65%,
    rgba(41, 54, 78, 0.96)
  );

  border: 1px solid rgba(180, 225, 255, 0.35);
  border-radius: 999px;

  box-shadow:
    0 18px 45px rgba(0, 12, 43, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  animation: buscadorFlotando 6s ease-in-out infinite;
}

.hero-search__icon {
  flex: 0 0 51px;
  width: 51px;
  height: 51px;

  display: grid;
  place-items: center;

  color: #0757b9;
  background: #ffffff;
  border-radius: 50%;

  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.1em;
}

.hero-search__text {
  flex: 1;
  min-width: 0;
  font-size: clamp(1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
}

.hero-search__magnifier {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
}

@keyframes buscadorFlotando {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-9px);
  }
}

/* Celulares */
@media (max-width: 620px) {
  .hero-search {
    top: 50%;
    left: -5%;
    width: 72%;
    min-height: 52px;
    padding: 5px 15px 5px 5px;
    gap: 10px;
  }

  .hero-search__icon {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .hero-search__magnifier {
    flex-basis: 21px;
    width: 21px;
    height: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-search {
    animation: none;
  }
}

/* FONDO AZUL CON LUCES: SECCIÓN DE PLANES */
.planes-azules {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse at 12% 20%,
      rgba(0, 164, 255, 0.42),
      transparent 38%
    ),
    radial-gradient(
      ellipse at 88% 78%,
      rgba(0, 117, 220, 0.48),
      transparent 40%
    ),
    var(--mw-night);
  color: #fff;
}

/* Luz que se mueve detrás de las cajas */
.planes-azules::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 55%;
  height: 80%;
  top: -20%;
  left: -15%;
  border-radius: 50%;
  background: #087cda;
  filter: blur(110px);
  opacity: 0.35;
  pointer-events: none;
  animation: luz-planes 12s ease-in-out infinite alternate;
}

@keyframes luz-planes {
  from {
    transform: translate(0, 0);
  }

  to {
    transform: translate(55%, 25%);
  }
}

/* Título y descripción sobre el fondo oscuro */
.planes-azules h2,
.planes-azules .section-intro p,
.planes-azules .eyebrow {
  color: #fff;
}

/* CAJAS BLANCAS TRANSLÚCIDAS */
.planes-azules .plan {
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.planes-azules .plan h3,
.planes-azules .plan p,
.planes-azules .plan li,
.planes-azules .plan small {
  color: #fff;
}

/* PRO DESTACADO CON UNA TRANSPARENCIA UN POCO MÁS INTENSA */
.planes-azules .plan-pro {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.65);
}

/* TILDES */
.planes-azules .plan-tilde {
  color: #fff;
  font-weight: 800;
  margin-right: 10px;
}

.planes-azules .plan-pro .plan-tilde {
  color: #48eb91;
}

@media (prefers-reduced-motion: reduce) {
  .planes-azules::before {
    animation: none;
  }
}

/* Tildes blancos en todos los planes */
.planes-azules .plan li::before {
  color: #fff;
}

/* Tildes verdes solo en Pro */
.planes-azules .plan--destacado li::before {
  color: #48eb91;
}

.planes-azules .precios__etiqueta,
.planes-azules .precios__encabezado p {
  color: #fff;
}

/* ========================================
   CÓMO FUNCIONA MODO WEB
======================================== */

.como-funciona {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 100px max(5vw, 24px);
  color: #fff;
  background:
    radial-gradient(
      ellipse at 8% 82%,
      rgba(0, 166, 222, 0.45),
      transparent 35%
    ),
    radial-gradient(
      ellipse at 94% 20%,
      rgba(20, 92, 210, 0.38),
      transparent 40%
    ),
    var(--mw-night);
}

.como-funciona::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 45%;
  height: 60%;
  left: -15%;
  bottom: -20%;
  border-radius: 50%;
  background: #00a9e8;
  filter: blur(110px);
  opacity: 0.28;
  pointer-events: none;
  animation: luz-como-funciona 11s ease-in-out infinite alternate;
}

@keyframes luz-como-funciona {
  to {
    transform: translate(45%, -20%);
  }
}

.como-funciona__encabezado {
  max-width: 790px;
  margin-bottom: 58px;
}

.como-funciona__etiqueta {
  color: #9bdcff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.como-funciona__encabezado h2 {
  margin: 18px 0;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  line-height: 1.08;
  letter-spacing: -0.065em;
}

.como-funciona__encabezado h2 em {
  color: #8bdcff;
  font-style: normal;
}

.como-funciona__encabezado p {
  margin: 0;
  color: #d2dcea;
  font-size: 1.08rem;
  line-height: 1.7;
}

.como-funciona__contenido {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(35px, 6vw, 100px);
}

.como-funciona__visual {
  min-height: 440px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.como-funciona__visual img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, 0.25));
}

.como-funciona__pasos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.paso {
  width: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 18px;
  padding: 19px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
}

.paso:hover,
.paso.activo {
  transform: translateX(6px);
  border-color: rgba(139, 220, 255, 0.65);
  background: rgba(255, 255, 255, 0.15);
}

.paso__numero {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(139, 220, 255, 0.15);
  color: #a7e5ff;
  font-weight: 800;
}

.paso.activo .paso__numero {
  background: #a7e5ff;
  color: var(--mw-night);
}

.paso__contenido {
  display: grid;
  gap: 5px;
}

.paso__contenido strong {
  font-size: 1.04rem;
}

.paso__contenido > span {
  color: #d2dcea;
  font-size: 0.89rem;
  line-height: 1.5;
}

.paso__flecha {
  color: #a7e5ff;
  font-size: 1.2rem;
}

.como-funciona__boton {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 20px;
  padding: 15px 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.como-funciona__boton:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.22);
}

@media (max-width: 800px) {
  .como-funciona__contenido {
    grid-template-columns: 1fr;
  }

  .como-funciona__visual {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .como-funciona {
    padding: 75px 20px;
  }

  .paso {
    grid-template-columns: 46px minmax(0, 1fr) 16px;
    gap: 12px;
    padding: 14px;
  }

  .paso__numero {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .como-funciona::before {
    animation: none;
  }

  .paso,
  .como-funciona__boton {
    transition: none;
  }
}

.como-funciona__visual img {
  transition: transform 0.35s ease;
}

.como-funciona__visual:hover img {
  transform: scale(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .como-funciona__visual img {
    transition: none;
  }
}
