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

html,
body {
  overflow-x: hidden;
}

div#contenido {
  padding: 0;
  background: #111827;
}

div#contenido-cuerpo {
  padding: 0;
  background: #f8fafc;
}

.fusion-wrapper {
  --fusion-ink: #132032;
  --fusion-muted: #64748b;
  --fusion-line: #dbe5f2;
  --fusion-surface: #ffffff;
  --fusion-soft: #eef6ff;
  --fusion-blue: #2563eb;
  --fusion-sky: #0891b2;
  --fusion-green: #059669;
  --fusion-amber: #d97706;
  --fusion-red: #dc2626;
  --fusion-violet: #7c3aed;
  --fusion-indigo: #4f46e5;

  width: 100%;
  margin: 0 auto;
  padding: 0 2rem 2.5rem;
  color: var(--fusion-ink);
  font-family: "Roboto", "Segoe UI", system-ui, sans-serif;
  line-height: 1.7;
}

.fusion-wrapper .material-symbols-sharp {
  font-family: "Material Symbols Sharp" !important;
  font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
  line-height: 1;
  user-select: none;
  vertical-align: -0.2em;
}

.fusion-wrapper code {
  background: #e2e8f0;
  border-radius: 5px;
  color: #0f172a;
  font-size: 0.9em;
  padding: 0.05rem 0.35rem;
}

.fusion-wrapper hr {
  border: none;
  border-top: 1px solid var(--fusion-line);
  margin: 2.5rem 0;
}

.fusion-hero {
  position: relative;
  min-height: 360px;
  display: grid;
  align-items: center;
  /* overflow: hidden; */
  padding: 4rem 0 3rem;
}

.fusion-hero::before {
  content: "";
  position: absolute;
  inset: 0 -2rem;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.18), transparent 34%),
    linear-gradient(45deg, rgba(5, 150, 105, 0.14), transparent 42%),
    repeating-linear-gradient(
      90deg,
      rgba(15, 23, 42, 0.05) 0,
      rgba(15, 23, 42, 0.05) 1px,
      transparent 1px,
      transparent 34px
    );
  pointer-events: none;
}

.fusion-hero::after {
  content: "";
  position: absolute;
  right: clamp(1rem, 8vw, 6rem);
  bottom: 6rem;
  width: 256px;
  aspect-ratio: 1;
  /* border: 1px solid rgba(37, 99, 235, 0.22); */
  background: url("/imagenes/fusion/fusion.png");
  /* background-size: 28px 28px; */
  mask-image: linear-gradient(to bottom, black, transparent 100%);
  pointer-events: none;
  background-repeat: no-repeat;
}

.fusion-hero-copy {
  position: relative;
  max-width: 760px;
  z-index: 1;
}

.fusion-kicker {
  color: var(--fusion-blue);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.fusion-hero h1 {
  color: cornflowerblue;
  font-size: clamp(2.3rem, 5vw, 4.3rem);
  font-weight: 900;
  line-height: 1;
  margin: 0 0 1rem;
  max-width: 780px;
}

.fusion-lede {
  color: #334155;
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 0 1.25rem;
}

.fusion-store-note,
.fusion-footer-note {
  /* display: flex; */
  align-items: center;
  /* gap: 0.55rem; */
  width: fit-content;
  max-width: 100%;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  color: #065f46;
  font-size: 0.92rem;
  font-weight: 800;
  padding: 0.65rem 0.85rem;
}

.fusion-wrapper h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: #0f172a;
  font-size: 2rem;
  font-weight: 850;
  margin: -1rem 0 1.4rem;
  padding-bottom: 0.65rem;
  text-align: center;
  border-bottom: 1px solid var(--fusion-line);
}

.fusion-wrapper h3 {
  color: #0f172a;
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1.2;
  margin: 0 0 0.25rem;
}

.ms-inline {
  font-size: 1.15em;
}

.ms-section {
  font-size: 2rem;
}

.ms-color-blue { color: var(--fusion-blue); }
.ms-color-sky { color: var(--fusion-sky); }
.ms-color-green { color: var(--fusion-green); }
.ms-color-amber { color: var(--fusion-amber); }
.ms-color-red { color: var(--fusion-red); }
.ms-color-violet { color: var(--fusion-violet); }
.ms-color-indigo { color: var(--fusion-indigo); }

.fusion-list {
  display: grid;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  gap: 1rem;
}

.fusion-extension-card {
  position: relative;
  overflow: hidden;
  background: var(--fusion-surface);
  border: 1px solid var(--fusion-line);
  border-radius: 8px;
  padding: 1.2rem 1.25rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.07);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.fusion-extension-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--fusion-red), var(--fusion-muted));
  opacity: 0.75;
}

.fusion-extension-card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.fusion-extension-card--featured {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.08), transparent 42%),
    #ffffff;
}

.fusion-extension-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.fusion-extension-head > div {
  flex: 1 1 auto;
}

.fusion-extension-card:nth-child(odd) .fusion-extension-head {
  flex-direction: row;
  text-align: left;
}

.fusion-extension-card:nth-child(even) .fusion-extension-head {
  flex-direction: row-reverse;
  text-align: right;
}

.fusion-extension-icon {
  flex: 0 0 128px;
  width: 128px;
  height: 128px;
  /* background: var(--fusion-soft); */
  /* border: 1px solid var(--fusion-line); */
  border-radius: 8px;
  image-rendering: auto;
  object-fit: contain;
  padding: 0.5rem;
}

div#contenido img.fusion-extension-icon:hover {
  transform: none;
}

.fusion-extension-subtitle {
  color: var(--fusion-muted);
  font-size: 0.94rem;
  font-weight: 650;
  margin: 0;
}

.fusion-extension-button {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.55rem;
  margin-top: 0.85rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  overflow: hidden;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.fusion-extension-button .material-symbols-sharp {
  font-size: 1.18rem;
}

.fusion-extension-button--active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--fusion-red), #9333ea 58%, var(--fusion-blue));
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.26);
}

.fusion-extension-button--active::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transition: left 0.5s ease;
}

.fusion-extension-button--active:hover,
.fusion-extension-button--active:focus-visible {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  box-shadow: 2px 2px 14px rgba(236, 72, 153, 0.5), 0 18px 34px rgba(124, 58, 237, 0.34);
  transform: translateY(-2px);
}

.fusion-extension-button--active:hover::after,
.fusion-extension-button--active:focus-visible::after {
  left: 100%;
}

.fusion-extension-button--active:active {
  transform: translateY(0);
}

.fusion-extension-button--active:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.24);
  outline-offset: 3px;
}

.fusion-extension-button--locked {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
  cursor: not-allowed;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.fusion-extension-button--locked .material-symbols-sharp {
  color: var(--fusion-amber);
}

.fusion-wrapper .yt-lite {
  position: relative;
  display: block;
  width: 100%;
  padding-bottom: 56.25%;
  background: #020617;
  border: 1px solid rgba(219, 229, 242, 0.95);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.11);
  cursor: pointer;
  overflow: hidden;
}

.fusion-extension-video {
  margin: 1.1rem 0 1.15rem;
}

.fusion-wrapper .yt-lite img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fusion-wrapper .yt-lite:hover img,
.fusion-wrapper .yt-lite:focus-visible img {
  opacity: 0.82;
  transform: scale(1.015);
}

.fusion-wrapper .yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 44px;
  color: #ffffff;
  background: rgba(220, 38, 38, 0.88);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
  font-size: 20px;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.fusion-wrapper .yt-lite:hover .yt-play-btn,
.fusion-wrapper .yt-lite:focus-visible .yt-play-btn {
  background: #ff0000;
  transform: translate(-50%, -50%) scale(1.04);
}

.fusion-wrapper .yt-lite:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 4px;
}

.fusion-wrapper .yt-lite.yt-activated {
  padding-bottom: 56.25%;
}

.fusion-wrapper .yt-lite.yt-activated iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.fusion-extension-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.15rem;
}

.fusion-extension-card li {
  color: #334155;
  font-size: 0.95rem;
  padding-left: 0.1rem;
}

.fusion-extension-card li::marker {
  color: var(--fusion-blue);
}

.fusion-footer-note {
  width: 100%;
  align-items: flex-start;
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0c4a6e;
  line-height: 1.55;
  margin-bottom: 0.25rem;
}

.fusion-footer-note strong {
  color: #075985;
}

@media (max-width: 760px) {
  .fusion-wrapper {
    padding: 0 1rem 2rem;
  }

  .fusion-hero {
    min-height: 320px;
    padding: 3rem 0 2.25rem;
  }

  .fusion-hero::after {
    opacity: 0.45;
    width: 260px;
  }

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

  .fusion-extension-card--featured {
    grid-column: auto;
  }

  .fusion-store-note,
  .fusion-footer-note {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fusion-extension-card,
  [data-reveal] {
    transition: none !important;
  }

  .fusion-extension-card:hover {
    transform: none;
  }
}
