/* Teachlr Organizaciones · tokens y criterios de Design System Teachlr.html */
:root {
  --blue: #315ae2;
  --blue-600: #294cbf;
  --blue-800: #1c3380;
  --blue-900: #132258;
  --blue-50: #f5f7ff;
  --blue-100: #e0e8ff;
  --teal-50: #ebf9f9;
  --teal-500: #36bab4;
  --muted: #132258b2;
  --white: #fff;
  --line: #bfcfde99;
  --font-display: "Red Hat Display", system-ui, sans-serif;
  --font-body: "Red Hat Text", system-ui, sans-serif;
  --pad: clamp(20px, 5vw, 80px);
  --radius: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--blue-900); background: var(--white); font: 400 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; text-wrap: balance; }
ul { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #99b1ff; outline-offset: 4px; }
.container { width: min(100%, 1440px); margin-inline: auto; padding-inline: var(--pad); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font: 700 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--teal-500); }
.eyebrow--light { color: #e0e8ff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 12px 22px; border: 1.5px solid transparent; border-radius: var(--radius); color: var(--white); background: var(--blue); font: 700 15px/1.2 var(--font-body); transition: background .2s, transform .2s; }
.btn:hover { background: var(--blue-600); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--outline { border-color: #ffffffa6; background: transparent; }
.btn--outline:hover { background: #ffffff1a; }
.btn--white { color: var(--blue-900); background: var(--white); box-shadow: 0 14px 34px #13225838; }
.btn--white:hover { background: var(--blue-50); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; color: var(--blue-600); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.link-arrow:hover { color: var(--blue-900); }

/* Primera impresión: propuesta concreta y vista del producto */
.hero { position: relative; overflow: hidden; color: var(--white); background: radial-gradient(ellipse 58% 68% at 6% 100%, #60269e99, transparent 76%), linear-gradient(110deg, #2443a8 0%, var(--blue) 56%, #486de5 100%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 46% 70% at 8% 96%, #60269e8c, transparent 76%), radial-gradient(ellipse 37% 62% at 100% 6%, #36bab43d, transparent 78%), linear-gradient(110deg, rgba(36, 67, 168, .74) 0%, rgba(49, 90, 226, .58) 56%, rgba(49, 90, 226, .68) 100%); }
.header { position: relative; z-index: 2; }
.header__bar { display: flex; align-items: center; gap: 32px; min-height: 88px; border-bottom: 1px solid #ffffff40; }
.logo { display: inline-flex; flex: none; }
.logo img { width: 107px; height: 24px; }
.header__nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); margin-left: auto; }
.header__nav a { font-size: 14px; font-weight: 600; color: #ffffffe0; }
.header__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.header .btn { min-height: 42px; padding: 9px 16px; white-space: nowrap; }
.hero__body { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: 650px; padding-block: 86px 116px; }
.hero__text { max-width: 590px; }
.hero h1 { margin-top: 22px; font-size: clamp(44px, 4.4vw, 66px); font-weight: 800; line-height: 1.08; }
.hero__text p { max-width: 520px; margin-top: 24px; color: #eef3ff; font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; }
.hero__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; }
.hero__link { font-size: 15px; font-weight: 700; text-decoration: underline; text-decoration-color: #ffffff80; text-underline-offset: 5px; }
.hero__link span { margin-left: 6px; }
.hero__visual { position: relative; min-width: 0; }
.hero__visual::before { content: ""; position: absolute; inset: -20px 20px 20px -20px; border: 1px solid #ffffff73; border-radius: 20px; transform: rotate(-2deg); }
.hero__visual img { position: relative; width: 100%; border: 1px solid #ffffff80; border-radius: 14px; box-shadow: 0 32px 60px #0d173b70; }

/* Clientes */
.clients { overflow: hidden; position: relative; background: #315ae2; }
.clients::before, .clients::after { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; width: 80px; pointer-events: none; }
.clients::before { left: 0; background: linear-gradient(90deg, #315ae2, transparent); }
.clients::after { right: 0; background: linear-gradient(270deg, #315ae2, transparent); }
.clients__track { --gap: 40px; display: flex; align-items: center; gap: var(--gap); width: max-content; height: 104px; padding-right: var(--gap); animation: marquee 100s linear infinite; }
.clients__track img { flex: none; width: 120px; height: 58px; object-fit: contain; opacity: .86; }
.clients__track img[src$="logo_ibero.svg"] { padding: 13px 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Producto */
.features { padding: 112px 0 120px; background: var(--white); }
.section-heading { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.section-heading h2 { margin-top: 16px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.15; }
.section-heading p { max-width: 560px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.tabs { display: flex; width: min(670px, 100%); margin: 0 auto 52px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--blue-50); }
.tabs button { flex: 1; min-width: 0; min-height: 45px; padding: 8px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s; }
.tabs button:hover { color: var(--blue-900); }
.tabs button[aria-selected="true"] { color: var(--blue); background: var(--white); box-shadow: 0 3px 12px #13225818; }
.panel { display: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: 430px; padding: clamp(28px, 4.5vw, 64px); border-radius: 24px; background: var(--blue-50); }
.panel.is-active { display: grid; }
.panel__step { color: var(--blue-600); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.panel h3 { max-width: 550px; margin-top: 18px; font-size: clamp(28px, 3vw, 42px); line-height: 1.18; }
.panel p { max-width: 480px; margin: 18px 0 28px; color: var(--muted); font-size: 17px; }
.panel img { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 18px 48px #13225818; }

/* Testimonios */
.proof { padding: 112px 0 0; overflow: hidden; background: var(--teal-50); }
.proof__intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 56px; }
.proof__intro h2 { max-width: 720px; margin-top: 18px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.16; }
.proof__intro p { max-width: 410px; padding-bottom: 5px; color: var(--muted); font-size: 17px; }
.carousel { position: relative; margin-top: 48px; padding-bottom: 100px; }
.carousel__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 0 var(--pad) 30px; scroll-padding-left: var(--pad); }
.carousel__viewport::-webkit-scrollbar, .partners__viewport::-webkit-scrollbar { display: none; }
.carousel__list { display: flex; gap: 20px; width: max-content; }
.card-review { flex: 0 0 min(440px, 84vw); min-height: 340px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; color: var(--blue-900); background: var(--white); scroll-snap-align: start; box-shadow: 0 16px 32px #13225812; }
.card-review header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.card-review .who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; }
.card-review .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; object-fit: cover; }
.card-review .brand { width: 105px; height: 34px; object-fit: contain; object-position: right center; }
.card-review p { font-size: 15px; line-height: 1.65; }
.card-review strong { color: var(--blue-800); }
.arrow { position: absolute; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue); background: var(--white); box-shadow: 0 6px 18px #1322581a; }
.arrow:hover { background: var(--blue-50); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.carousel .arrow { top: 40%; }
.arrow--prev { left: 20px; }
.arrow--next { right: 20px; }

/* Integraciones y catálogos */
.integrations { padding: 112px 0 0; background: var(--white); }
.integrations__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 96px); }
.integrations h2 { max-width: 560px; margin-top: 16px; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.17; }
.integrations__row p { max-width: 520px; margin: 22px 0 28px; color: var(--muted); font-size: 17px; }
.integrations__stage { width: 100%; max-width: 560px; margin-left: auto; }
.catalogs { padding: 96px 0 112px; background: var(--blue-50); text-align: center; }
.catalogs h2 { max-width: 740px; margin: 16px auto 0; }
.catalogs > .container > p { max-width: 660px; margin: 20px auto 42px; color: var(--muted); font-size: 17px; }
.partners { position: relative; }
.partners__viewport { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 4px 26px; }
.partners__list { display: flex; gap: 16px; width: max-content; }
.partner { display: flex; flex: 0 0 250px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 140px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); scroll-snap-align: start; }
.partner img { width: 150px; height: 42px; object-fit: contain; }
.partner p { color: var(--muted); font-size: 13px; line-height: 1.4; }
.partners .arrow { top: 50%; transform: translateY(-50%); }
.partners .arrow--prev { left: -20px; }
.partners .arrow--next { right: -20px; }

/* Formulario existente */
.cta { padding: 112px 0; color: var(--white); background: var(--blue-800) url("../img/CTA-01.webp") center / cover no-repeat; }
.cta > .container { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(32px, 6vw, 96px); }
.cta__intro { position: sticky; top: 32px; padding-top: 48px; }
.cta h2 { max-width: 540px; margin-top: 18px; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.16; }
.cta__intro p { max-width: 440px; margin-top: 22px; color: #eef3ff; font-size: 18px; }
.cta__card { width: 100%; padding: 8px; border-radius: 18px; background: var(--white); box-shadow: 0 24px 60px #0d173b55; }
.cta__card iframe { display: block; width: 100%; min-height: 850px; border: 0; border-radius: 12px; }

/* Pie de página */
/* Footer común de Teachlr (landing, blog y soporte). Mantener idéntico en los tres sitios. */
.tf { background: #132258; color: #FFFFFFB2; font-family: "Red Hat Text", "Red Hat Text Variable", system-ui, sans-serif; font-size: 15px; line-height: 1.6; }
.tf a { color: #FFFFFF; text-decoration: none; }
.tf a:hover { color: #99B1FF; }
.tf a:focus-visible { outline: 2px solid #99B1FF; outline-offset: 2px; border-radius: 4px; }
.tf__in { width: min(100%, 1440px); margin-inline: auto; padding-inline: clamp(24px, 5vw, 80px); box-sizing: border-box; }
.tf__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; padding: 64px 0 40px; }
.tf__brand { grid-column: span 8; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.tf__brand img { display: block; height: 28px; width: auto; }
.tf__brand p { margin: 0; max-width: 320px; font-size: 16px; line-height: 26px; }
.tf .tf__cta { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 8px; background: #FFFFFF; color: #132258; font-family: "Red Hat Display", "Red Hat Display Variable", system-ui, sans-serif; font-weight: 700; font-size: 15px; }
.tf .tf__cta:hover { background: #F5F7FF; color: #132258; }
.tf__col { grid-column: span 2; }
.tf__col h2 { margin: 0 0 12px; font-family: inherit; font-weight: 700; font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: #99B1FF; }
.tf__col ul { list-style: none; margin: 0; padding: 0; }
.tf__col a { display: inline-block; padding: 6px 0; line-height: 24px; }
.tf__mid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid #FFFFFF1A; }
.tf__sitios { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tf__sitios > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tf__sitios a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid #FFFFFF73; border-radius: 999px; font-size: 14px; font-weight: 500; }
.tf__sitios a[aria-current="page"] { background: #FFFFFF; border-color: #FFFFFF; color: #132258; }
.tf__apps { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tf__apps img { display: block; height: 40px; width: auto; }
.tf__sep { width: 1px; height: 28px; margin: 0 8px; background: #FFFFFF1A; }
.tf .tf__red { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #FFFFFF1A; border-radius: 999px; }
.tf__legal { border-top: 1px solid #FFFFFF1A; font-size: 14px; line-height: 20px; }
.tf__legal .tf__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 20px; padding-bottom: 20px; }
.tf__legal small { font-size: 14px; }
.tf__legal nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.tf .tf__legal a { color: #FFFFFFB2; }
.tf .tf__legal a:hover { color: #FFFFFF; }
@media (max-width: 900px) {
  .tf__brand { grid-column: 1 / -1; }
  .tf__col { grid-column: span 6; }
}
@media (max-width: 600px) {
  .tf__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-top: 48px; }
  .tf__brand, .tf__col { grid-column: auto; }
  .tf__brand { grid-column: 1 / -1; }
  .tf .tf__cta { align-self: stretch; justify-content: center; min-height: 48px; }
  .tf__col a, .tf__legal a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
  .tf__sep { display: none; }
  .tf__legal .tf__in { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) {
  .hero__body { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: clamp(42px, 4.8vw, 56px); }
  .header__nav { gap: 14px; }
  .header__nav a { font-size: 13px; }
  .panel { gap: 32px; }
}
@media (max-width: 800px) {
  .header__bar { min-height: 72px; }
  .header__nav { display: none; }
  .header .btn { margin-left: auto; }
  .hero__body { grid-template-columns: 1fr; min-height: 0; gap: 52px; padding-block: 72px 82px; }
  .hero__text { max-width: 650px; }
  .hero__visual { max-width: 620px; margin-inline: auto; }
  .proof__intro { grid-template-columns: 1fr; gap: 18px; }
  .integrations__row { grid-template-columns: 1fr; }
  .integrations__stage { margin-inline: auto; }
  .cta > .container { grid-template-columns: 1fr; }
  .cta__intro { position: static; padding-top: 0; }
}
@media (max-width: 600px) {
  .header__bar { gap: 12px; }
  .header .btn { padding: 8px 10px; font-size: 12px; }
  .logo img { width: 95px; height: auto; }
  .hero__body { gap: 56px; padding-block: 62px 68px; }
  .hero h1 { margin-top: 18px; font-size: clamp(36px, 10vw, 48px); }
  .hero__text p { margin-top: 20px; font-size: 16px; }
  .hero__actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 28px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual::before { inset: -10px 10px 10px -10px; }
  .clients__track { height: 82px; }
  .clients__track img { width: 98px; height: 46px; }
  .features, .integrations { padding-top: 76px; }
  .features { padding-bottom: 80px; }
  .section-heading { margin-bottom: 28px; text-align: left; }
  .section-heading p { margin-left: 0; }
  .tabs { gap: 2px; margin-bottom: 24px; }
  .tabs button { min-height: 44px; padding: 5px 3px; font-size: 12px; }
  .panel { padding: 26px 22px; }
  .panel.is-active { grid-template-columns: 1fr; }
  .panel h3 { font-size: 28px; }
  .panel p { font-size: 16px; }
  .proof { padding-top: 78px; }
  .carousel { margin-top: 32px; padding-bottom: 62px; }
  .carousel .arrow, .partners .arrow { display: none; }
  .card-review { flex-basis: min(84vw, 370px); min-height: 0; padding: 22px; }
  .card-review header { align-items: flex-start; }
  .card-review .brand { width: 74px; }
  .integrations__stage { max-width: 460px; }
  .catalogs { padding-block: 76px; }
  .catalogs h2, .catalogs > .container > p { text-align: left; }
  .catalogs .eyebrow { display: flex; }
  .cta { padding-block: 76px; }
  .cta__card iframe { min-height: 850px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .clients__track { animation: none; }
  .btn, .tabs button { transition: none; }
}

/* Reconocimientos: pequeños y sin efectos sobre las marcas, según el Design System. */
.recognitions { padding: 36px 0 40px; border-block: 1px solid var(--line); background: var(--white); }
.recognitions__intro { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 20px; }
.recognitions__intro h2 { font: 800 22px/1.2 var(--font-display); }
.recognitions__intro p { color: var(--muted); font-size: 14px; }
.badge-tray { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.badge-tile { display: flex; flex: 0 0 166px; align-items: center; justify-content: center; height: 76px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); scroll-snap-align: start; }
.badge-tile img { width: auto; height: auto; max-width: 100%; max-height: 54px; object-fit: contain; }
@media (max-width: 640px) {
  .recognitions { padding-block: 30px 34px; }
  .recognitions__intro { margin-bottom: 16px; }
  .badge-tile { flex-basis: 150px; height: 72px; }
}

/* Hero: el video conserva movimiento bajo la paleta de marca; el degradado CSS cubre la carga y el movimiento reducido. */
.hero__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.hero__glow {
  --mx: 50%; --my: 50%;
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity 1s ease;
  background: radial-gradient(circle 760px at var(--mx) var(--my), rgba(96, 38, 158, .24) 0%, rgba(72, 109, 229, .14) 38%, rgba(49, 90, 226, 0) 72%);
  mix-blend-mode: soft-light;
}
.hero.is-hover .hero__glow { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero__video, .hero__glow { display: none; }
}

/* Animaciones de imágenes: paneles de funcionalidades y nube de integraciones.
   Entran al verse, flotan con suavidad e inclinan un poco con el puntero (la inclinación la pone main.js). */
/* --rx / --ry: inclinación con el puntero (main.js). --sway-x / --sway-y: vaivén propio, sin necesidad de hover. */
@property --rx { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --ry { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sway-x { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --sway-y { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes sway-y { from { --sway-y: -2.6deg; } to { --sway-y: 2.6deg; } }
@keyframes sway-x { from { --sway-x: 1.4deg; } to { --sway-x: -1.4deg; } }

.panel img,
.integrations__art {
  transform: perspective(1000px) rotateX(calc(var(--rx) + var(--sway-x))) rotateY(calc(var(--ry) + var(--sway-y)));
  transition: --rx .5s ease-out, --ry .5s ease-out;
  will-change: transform;
}

@keyframes media-in { from { opacity: 0; transform: perspective(1000px) translateY(30px) scale(.94) rotateX(7deg); } }
@keyframes text-in { from { opacity: 0; translate: 0 16px; } }
@keyframes float-y { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

.panel.is-active img { animation: media-in .9s cubic-bezier(.16, 1, .3, 1) backwards, float-y 7s ease-in-out .9s infinite, sway-y 11s ease-in-out .9s infinite alternate, sway-x 15s ease-in-out .9s infinite alternate; }
.panel.is-active > div > * { animation: text-in .65s cubic-bezier(.16, 1, .3, 1) backwards; }
.panel.is-active > div > :nth-child(2) { animation-delay: .06s; }
.panel.is-active > div > :nth-child(3) { animation-delay: .12s; }
.panel.is-active > div > :nth-child(4) { animation-delay: .18s; }
.panel.is-active > div > :nth-child(5) { animation-delay: .24s; }
/* Hasta que la sección entra en pantalla, las animaciones esperan (main.js añade .is-visible) */
.features:not(.is-visible) .panel.is-active img,
.features:not(.is-visible) .panel.is-active > div > * { animation-play-state: paused; }

/* Nube de integraciones: deriva orbital lenta + anillos que se expanden detrás */
.integrations__stage { position: relative; }
.integrations__art { width: 100%; }
.integrations__stage::before,
.integrations__stage::after { content: ""; position: absolute; inset: 6%; border: 1px solid #315ae250; border-radius: 50%; opacity: 0; pointer-events: none; animation: ring 8s ease-out infinite; animation-play-state: paused; }
.integrations__stage::after { animation-delay: 4s; }
@keyframes ring { 0% { transform: scale(.5); opacity: 0; } 18% { opacity: .65; } 100% { transform: scale(1.16); opacity: 0; } }
@keyframes art-in { from { opacity: 0; transform: perspective(1000px) scale(.9) rotateX(6deg); } }
@keyframes orbit {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25% { translate: 7px -6px; rotate: .8deg; }
  50% { translate: 0 -11px; rotate: 0deg; }
  75% { translate: -7px -6px; rotate: -.8deg; }
}
.integrations__stage:not(.is-visible) .integrations__art { opacity: 0; }
.integrations__stage.is-visible .integrations__art { animation: art-in 1.1s cubic-bezier(.16, 1, .3, 1) backwards, orbit 16s ease-in-out 1.1s infinite, sway-y 12s ease-in-out 1.1s infinite alternate, sway-x 17s ease-in-out 1.1s infinite alternate; }
.integrations__stage.is-visible::before,
.integrations__stage.is-visible::after { animation-play-state: running; }

@media (prefers-reduced-motion: reduce) {
  .panel img, .integrations__art { animation: none !important; transform: none !important; transition: none; }
  .panel.is-active > div > * { animation: none !important; }
  .integrations__stage::before, .integrations__stage::after { display: none; }
  .integrations__stage .integrations__art { opacity: 1 !important; }
}

/* Hero: la imagen de la plataforma flota despacio y se inclina un poco con el puntero (--hx / --hy los pone main.js).
   Su marco decorativo se mueve en sentido contrario para dar profundidad. */
.hero { --hx: 0; --hy: 0; }
.hero__visual img {
  transform: perspective(1400px) rotateY(calc(var(--hx) * 2.5deg)) rotateX(calc(var(--hy) * -1.8deg));
  animation: hero-img-in 1.3s cubic-bezier(.16, 1, .3, 1) .15s backwards, float-y 10s ease-in-out 1.5s infinite;
  will-change: transform;
}
.hero__visual::before {
  translate: calc(var(--hx) * -12px) calc(var(--hy) * -8px);
  animation: frame-sway 14s ease-in-out infinite;
}
@keyframes hero-img-in { from { opacity: 0; transform: perspective(1400px) translateY(34px) scale(.96) rotateX(5deg); } }
@keyframes frame-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: -.9deg; } }
@media (prefers-reduced-motion: reduce) {
  .hero__visual img { animation: none; transform: none; }
  .hero__visual::before { animation: none; translate: none; }
}

/* Integraciones: mismo aire arriba y abajo para que el bloque quede centrado en su franja
   (antes el contenido quedaba pegado al borde inferior, justo donde empieza la franja de catálogos). */
.integrations__row { padding-bottom: clamp(72px, 8vw, 112px); }

/* Versión con el formulario en el hero (formulario-en-hero.html) */
.hero__form { position: relative; width: 100%; max-width: 520px; margin-left: auto; padding: 8px; border-radius: 18px; background: var(--white); box-shadow: 0 32px 60px #0d173b70; scroll-margin-top: 24px; }
.hero__form iframe { display: block; width: 100%; min-height: 850px; border: 0; border-radius: 12px; }
.hero--form .hero__body { align-items: start; min-height: 0; padding-block: 56px 96px; }
.hero--form .hero__text { padding-top: 40px; }
.cta__card--action { display: flex; align-items: center; justify-content: flex-start; padding: 48px 0 0; background: transparent; box-shadow: none; }
@media (max-width: 1100px) {
  .hero__form { margin-inline: auto; }
  .hero--form .hero__text { padding-top: 0; }
}
/* Versión con formulario en el hero: el cierre es solo texto, una columna */
.cta:not(:has(.cta__card)) > .container { grid-template-columns: 1fr; }
.cta:not(:has(.cta__card)) .cta__intro { position: static; padding-top: 0; }
