/* Course Factory y CoPiloto */
.ff-product {
  --ff-ink: #201431;
  --ff-muted: #514660;
  --ff-accent: #7915ad;
  --ff-border: #e8dcf2;
  --ff-pale: #f8f3fd;
  --ff-night: #24103e;
  --ff-grad: linear-gradient(125deg, #311063 0%, #52148a 58%, #861477 100%);
  --ff-nav-height: 76px;
  color: var(--ff-ink);
  background: #fff;
}

.ff-product-wrap {
  width: min(100%, 1300px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

.ff-product-section { padding-block: clamp(56px, 8vw, 108px); }
.ff-tinted { background: var(--ff-pale); }

.ff-product-split {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(30px, 6vw, 88px);
}

.ff-product-copy, .ff-section-heading { display: grid; gap: 16px; }
.ff-product h2, .ff-product h3 { color: inherit; line-height: 1.12; }
.ff-product h2 { font-size: clamp(2rem, 4.3vw, 3.6rem); font-weight: 580; letter-spacing: -.045em; }
.ff-product h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 620; letter-spacing: -.027em; }
.ff-product-copy > p:not([class]), .ff-section-heading > p:not([class]) {
  max-width: 63ch;
  color: var(--ff-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.ff-section-heading { max-width: 780px; }
.ff-kicker {
  color: var(--ff-accent);
  font-size: .85rem;
  font-weight: 680;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ff-product-hero {
  padding: calc(var(--ff-nav-height) + clamp(56px, 8vw, 112px)) 0 clamp(62px, 9vw, 126px);
  margin-top: calc(-1 * var(--ff-nav-height));
  background: radial-gradient(ellipse at 82% 0, #9d39a18c, transparent 52%), var(--ff-grad);
  color: #fff;
}

.ff-product-hero .ff-product-copy { gap: 20px; }
.ff-product-name { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 350; }
.ff-product-name strong { font-weight: 680; }
.ff-product-hero h1 {
  font-size: clamp(2.35rem, 4.55vw, 4.3rem);
  line-height: 1.02;
  letter-spacing: -.052em;
  font-weight: 570;
  text-wrap: balance;
}

.ff-product-hero .ff-product-copy > p:not([class]) { color: #f6eafb; }
.ff-product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ff-product .btn { min-height: 48px; padding: 12px 19px; font-size: 1rem; text-align: center; white-space: normal; }
.ff-product .ff-product-primary { background: var(--ff-accent); color: #fff; }
.ff-product .ff-product-primary:hover { background: #5b0e87; }
.ff-product .ff-product-secondary { color: var(--ff-accent); background: #fff; box-shadow: inset 0 0 0 1px var(--ff-accent); }
.ff-product .ff-product-secondary:hover { background: #f5eaff; }

.ff-product :is(.ff-product-hero, .ff-product-cta) .ff-product-primary {
  background: #fff;
  color: #541182;
}

.ff-product :is(.ff-product-hero, .ff-product-cta) .ff-product-primary:hover { background: #f5eaff; }
.ff-product-hero .ff-product-secondary { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px #e6c7f4; }
.ff-product-hero .ff-product-secondary:hover { background: #ffffff20; }
.ff-hero-price { justify-self: start; font-size: .94rem; color: #f5e9ff; text-decoration: underline; text-underline-offset: .25em; }
.ff-text-link { color: var(--ff-accent); font-weight: 580; text-decoration: underline; text-underline-offset: .19em; }

/* Course Factory */
.ff-factory-screen {
  padding: clamp(8px, 1.3vw, 16px);
  border-radius: 24px;
  border: 1px solid #e2b7f687;
  background: linear-gradient(145deg, #ffffff38, #ffffff13);
  box-shadow: 0 24px 65px #17032470;
}

.ff-factory-screen img, .ff-factory-brand img, .ff-factory-gallery img {
  width: 100%;
  border-radius: 13px;
}

.ff-factory-screen figcaption { padding: 10px 4px 1px; color: #faedff; font-size: .85rem; }
.ff-output { align-items: start; }
.ff-provider { margin-top: 12px; display: grid; gap: 12px; }
.ff-provider h3 { font-size: 1.25rem; }
.ff-provider p { color: var(--ff-muted); }
.ff-provider ul { display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.ff-provider li {
  padding: 5px 12px;
  color: #581085;
  background: var(--ff-pale);
  border-radius: 100px;
  border: 1px solid var(--ff-border);
  font-size: .88rem;
  font-weight: 650;
}

.ff-output-list { border-top: 1px solid var(--ff-border); }
.ff-output-list > div {
  display: grid;
  grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr);
  gap: 14px;
  padding-block: 18px;
  border-bottom: 1px solid var(--ff-border);
}

.ff-output-list dt, .ff-control-list dt { font-weight: 680; color: var(--ff-accent); }
.ff-output-list dd, .ff-control-list dd { color: var(--ff-muted); }

.ff-factory-steps {
  counter-reset: factory;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 40px);
  list-style: none;
  margin-top: clamp(26px, 5vw, 48px);
}

.ff-factory-steps > li {
  counter-increment: factory;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  border-top: 1px solid #d8b5ea;
  padding-top: 19px;
}

.ff-factory-steps > li::before {
  content: counter(factory, decimal-leading-zero);
  align-self: start;
  color: var(--ff-accent);
  font-size: .88rem;
  line-height: 1.5;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.ff-factory-steps h3 { font-size: clamp(1.17rem, 2vw, 1.5rem); }
.ff-factory-steps p { margin-top: 8px; color: var(--ff-muted); }

.ff-factory-brand {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 5vw, 60px);
  margin-top: clamp(34px, 6vw, 62px);
  padding: clamp(15px, 3vw, 34px);
  border-radius: 22px;
  border: 1px solid var(--ff-border);
  background: #fff;
}

.ff-factory-brand img { border: 1px solid var(--ff-border); }
.ff-demo-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 24px; }

.ff-demo-frame {
  padding: 6px;
  border-radius: 22px;
  background: var(--ff-grad);
  box-shadow: 0 20px 50px #45116324;
}

.ff-demo-frame iframe {
  display: block;
  width: 100%;
  height: clamp(550px, 64vw, 690px);
  border: 0;
  border-radius: 16px;
  background: #fff;
}

.ff-factory-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.ff-factory-gallery figure {
  background: var(--ff-pale);
  border-radius: 16px;
  border: 1px solid var(--ff-border);
  padding: 7px;
}

.ff-factory-gallery figcaption { padding: 8px 6px 4px; font-size: .9rem; font-weight: 630; color: var(--ff-muted); }

.ff-price-box {
  display: grid;
  gap: 17px;
  padding: clamp(22px, 4vw, 44px);
  border-radius: 23px;
  border: 1px solid #dcc5ed;
  background: #fff;
  box-shadow: 0 20px 65px #4b176510;
}

.ff-price-number { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 12px; }
.ff-price-number strong { font-size: clamp(2.9rem, 6.3vw, 5.4rem); line-height: 1; letter-spacing: -.065em; color: var(--ff-accent); font-weight: 650; }
.ff-price-label { font-weight: 680; }
.ff-price-box > p:not([class]) { color: var(--ff-muted); }
.ff-price-box .btn { justify-self: start; }
.ff-feature-list { display: grid; gap: 9px; padding: 15px 0; list-style: none; border-block: 1px solid var(--ff-border); }
.ff-feature-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px; }
.ff-feature-list li::before { content: ""; width: 8px; height: 13px; border: solid var(--ff-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); margin: 2px 4px; }

/* Diagramas y módulos de CoPiloto */
.ff-cop-hero {
  background:
    radial-gradient(ellipse at 30% 102%, #6d39dcab, transparent 58%),
    radial-gradient(ellipse at 80% 0%, #aa1e7ba6, transparent 64%),
    linear-gradient(130deg, #200c41, #371264 61%, #4b1155);
}

.ff-cop-hero-layout { display: grid; justify-items: center; gap: clamp(28px, 5vw, 58px); text-align: center; }
.ff-cop-hero-layout .ff-product-copy { max-width: 820px; justify-items: center; }
.ff-cop-hero-layout .ff-product-actions { justify-content: center; }
.ff-cop-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1.15fr) 34px minmax(0, 1fr);
  justify-items: center;
  align-items: center;
  min-height: 220px;
  width: min(100%, 960px);
  padding: clamp(20px, 3vw, 38px);
  border: 1px solid #edc4fc70;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 50% 52%, #b13cee70, transparent 62%),
    radial-gradient(circle, #ecbdf43b 1px, transparent 1px) 0 0 / 18px 18px,
    #2c0f4a99;
  box-shadow: 0 26px 65px #20032f60;
}

.ff-cop-map figcaption { grid-column: 1 / -1; margin-bottom: 22px; color: #f9e7ff; font-weight: 600; }
.ff-cop-map :is(.ff-cop-map-input, .ff-cop-map-output) {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
  width: 100%;
}

.ff-cop-map li {
  padding: 7px 10px;
  border-radius: 8px;
  background: #f8eaff;
  color: #4c116e;
  font-size: clamp(.78rem, 1.2vw, .94rem);
  text-align: center;
  font-weight: 660;
}

.ff-cop-map-output li { background: #fff; }
.ff-map-connector { height: 1px; width: 100%; background: #ecc3ff; position: relative; }
.ff-map-connector::after {
  content: "";
  position: absolute;
  top: -3px;
  right: 3px;
  width: 6px;
  height: 6px;
  transform: rotate(-45deg);
  border: solid #ecc3ff;
  border-width: 0 1px 1px 0;
}

.ff-cop-core {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  background: linear-gradient(120deg, #f7ecff, #fbe3f5);
  border-radius: 14px;
  color: #2c0a47;
  box-shadow: 0 0 35px #eba5f77d;
  text-align: left;
}

.ff-core-symbol {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 11px;
  color: #fff;
  background: var(--ff-grad);
  font-size: 1.3rem;
}

.ff-cop-core strong, .ff-cop-core span { display: block; }
.ff-cop-core strong { font-size: 1.15rem; }
.ff-cop-core div > span { font-size: .82rem; color: #5f3a72; }
.ff-cop-core .ff-core-symbol { display: grid; }

.ff-cop-challenges dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 4vw, 40px);
  margin-top: 32px;
}

.ff-cop-challenges dl > div { border-top: 2px solid #e6d4f2; padding-top: 16px; }
.ff-cop-challenges dt { margin-bottom: 7px; font-weight: 680; font-size: 1.12rem; }
.ff-cop-challenges dd { color: var(--ff-muted); }

.ff-cop-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 3vw, 36px);
  list-style: none;
  margin-top: 32px;
}

.ff-cop-flow li { display: grid; align-content: start; gap: 8px; position: relative; padding-top: 16px; border-top: 1px solid #dcb9f1; }
.ff-cop-flow span { color: var(--ff-accent); font-size: .82rem; font-weight: 680; }
.ff-cop-flow strong { font-size: clamp(1.05rem, 2vw, 1.4rem); }
.ff-cop-flow p { color: var(--ff-muted); }

.ff-module-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ff-module-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--ff-border);
  border-radius: 100px;
  color: var(--ff-accent);
  font-weight: 640;
}

.ff-module-nav a:hover { background: var(--ff-pale); text-decoration: underline; }
.ff-cop-module {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 6vw, 82px);
  padding-block: clamp(32px, 5.5vw, 72px);
  border-bottom: 1px solid var(--ff-border);
}

.ff-cop-module:last-child { padding-bottom: 0; border-bottom: 0; }
.ff-cop-module h3 { font-size: clamp(1.75rem, 3.4vw, 3rem); letter-spacing: -.04em; }
.ff-cop-module-alt { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.ff-cop-module-alt > figure { grid-column: 1; grid-row: 1; }

.ff-cop-figure {
  display: grid;
  align-content: center;
  gap: 11px;
  padding: clamp(16px, 4vw, 36px);
  border: 1px solid var(--ff-border);
  border-radius: 21px;
  background: radial-gradient(ellipse at 85% 5%, #edd8ff, transparent 67%), #faf5ff;
  font-size: .93rem;
}

.ff-cop-figure figcaption { color: #632a83; font-weight: 630; font-size: .84rem; }
.ff-example-company { background: radial-gradient(ellipse at 7% 97%, #f5def0, transparent 66%), #fbf3f9; }
.ff-example-practice { background: radial-gradient(ellipse at 96% 1%, #e3dafa, transparent 76%), #f6f3ff; }
.ff-example-path { background: radial-gradient(ellipse at 100% 95%, #f8dff6, transparent 70%), #faf5ff; }
.ff-example-source {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
  padding: 8px 10px;
  border-radius: 9px;
  background: #53197a;
  color: #fff;
  font-size: .84rem;
  font-weight: 620;
}

.ff-example-exchange { display: grid; gap: 8px; }
.ff-cop-figure :where(p, li) { line-height: 1.48; }
.ff-cop-figure b { display: block; margin-bottom: 4px; color: #64188e; }
.ff-example-question, .ff-example-answer, .ff-example-feedback {
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid #dfcceb;
  background: #fff;
}

.ff-example-question { margin-left: clamp(0px, 5vw, 46px); background: #fdf9ff; }
.ff-example-answer { margin-right: clamp(0px, 5vw, 46px); }
.ff-example-feedback { background: #efe3fa; }
.ff-example-arrow { justify-self: center; color: var(--ff-accent); font-weight: 700; line-height: 1; }
.ff-path-list { display: grid; gap: 7px; list-style: none; border-left: 2px solid #ca9be6; padding-left: 10px; }
.ff-path-list li { background: #fff; padding: 8px 12px; border: 1px solid var(--ff-border); border-radius: 8px; }

.ff-control {
  background: radial-gradient(ellipse at 96% 0%, #621768, transparent 65%), var(--ff-night);
  color: #fff;
}

.ff-control .ff-product-copy > p:not([class]), .ff-control-list dd { color: #f5eafa; }
.ff-control .ff-kicker, .ff-control-list dt { color: #f1c8ff; }
.ff-control-list { display: grid; gap: 0; }
.ff-control-list > div { padding-block: 14px; border-top: 1px solid #d9b1e653; }
.ff-control-list > div:last-child { border-bottom: 1px solid #d9b1e653; }

.ff-lms-link { grid-template-columns: minmax(0, 1fr) auto; }

/* Preguntas y cierre */
.ff-faq { max-width: 930px; }
.ff-faq h2 { margin-bottom: 25px; }
.ff-product .ff-faq .acord .fila > summary { padding-block: 18px; font-size: clamp(1rem, 1.7vw, 1.18rem); color: var(--ff-ink); }
.ff-product .ff-faq .acord .resp { color: var(--ff-muted); font-size: 1rem; }
.ff-product-cta { padding-block: clamp(46px, 7vw, 92px); text-align: center; background: var(--ff-grad); color: #fff; }
.ff-product-cta .ff-product-wrap { display: grid; justify-items: center; gap: 19px; }
.ff-product-cta p { max-width: 65ch; font-size: 1.08rem; color: #faedff; }

@media (max-width: 1180px) {
  .ff-product { --ff-nav-height: 70px; }
}

@media (max-width: 850px) {
  .ff-product-split, .ff-cop-module, .ff-cop-module-alt { grid-template-columns: minmax(0, 1fr); }
  .ff-cop-module-alt > figure { grid-column: auto; grid-row: auto; }
  .ff-factory-steps { grid-template-columns: 1fr; }
  .ff-lms-link .btn { justify-self: start; }
}

@media (max-width: 720px) {
  .ff-cop-map { grid-template-columns: minmax(0, 1fr); }
  .ff-map-connector { height: 28px; width: 1px; }
  .ff-map-connector::after { top: auto; right: -3px; bottom: 2px; transform: rotate(45deg); }
  .ff-cop-challenges dl { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ff-factory-brand, .ff-factory-gallery, .ff-output-list > div { grid-template-columns: minmax(0, 1fr); }
  .ff-output-list > div { gap: 4px; }
  .ff-cop-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ff-demo-frame { padding: 4px; border-radius: 15px; }
  .ff-demo-frame iframe { height: 590px; border-radius: 11px; }
  .ff-cop-figure { font-size: .9rem; }
}

@media (forced-colors: active) {
  .ff-cop-map, .ff-cop-core, .ff-cop-map li, .ff-example-source { border: 1px solid CanvasText; }
  .ff-map-connector { background: CanvasText; }
}
