body { overflow-x: hidden; }
.block:has([data-sp]),
.block:has([data-sp]) .card,
.block:has([data-sp]) .card-body,
.block:has([data-sp]) .block-content,
.block:has([data-sp]) .content {
  padding: 0 !important; margin: 0 !important;
  border: 0 !important; background: transparent !important;
  box-shadow: none !important;
}
body:not(.editing) .block:has([data-sp]) .card-title,
body:not(.editing) .block:has([data-sp]) .block-title {
  display: none !important;
}

/* ── Full-width para todas las secciones ── */
.b1-hero, .b2-howit, .b3-services, .b4-flamante, .b5-contact, .b6-footer {
  width: 100vw !important;
  margin-left: calc(-50vw + 50%) !important;
}

/* ── Mejoras Moodle ── */
[data-sp] { -webkit-font-smoothing: antialiased; }
[data-sp] img { max-width: 100%; height: auto; display: block; }

/* ── Fix SVG del asterisco de Servicios ── */
.b3-services__title-icon svg { width: 28px !important; height: 28px !important; }

/* ── Ocultar footer/header built-in de Edwiser en frontpage ── */
body.pagelayout-frontpage #page-footer,
body.pagelayout-frontpage .footer-wrapper,
body.pagelayout-frontpage footer.footer { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   CSS ORIGINAL DE spora-home-complete.html (íntegro)
   ═══════════════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════════════════════
   DESIGN TOKENS — VA EN CUSTOM CSS DE EDWISER REMUI (UNA SOLA VEZ)
   Paleta directa del brand book Premisas_Spora.pdf
   ════════════════════════════════════════════════════════════════════ */
:root {
  /* Greens */
  --spora-green:        #1C3329;      /* GREEN principal del brand book */
  --spora-bg-dark:      #0E1A15;      /* negro verdoso (fondo hero/servicios) */
  --spora-black:        #000000;

  /* Yellows / Lima */
  --spora-yellow:       #D8FC5C;      /* YELLOW principal */
  --spora-yellow-mid:   #E8FD9D;      /* yellow medio (hover) */
  --spora-yellow-soft:  #EFFEBE;      /* yellow muy suave (fondos sutiles) */

  /* Grays */
  --spora-gray:         #E2E2E2;      /* GRAY principal */
  --spora-gray-mid:     #AAAAAA;
  --spora-gray-dark:    #393939;
  --spora-white:        #FFFFFF;

  /* Atmósfera */
  --spora-yellow-glow:  rgba(216, 252, 92, 0.40);
  --spora-line-dark:    rgba(216, 252, 92, 0.18);
  --spora-line-light:   rgba(14, 26, 21, 0.10);

  /* Tipografía OFICIAL */
  --font-display: "neue-haas-grotesk-display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono:    "ballinger-mono", ui-monospace, "JetBrains Mono", "SFMono-Regular", monospace;
  /* Pesos: 55 Roman ≈ 400 · 65 Medium ≈ 500/600 · 75 Bold ≈ 700 */

  /* Radii */
  --r-pill: 9999px;
  --r-card: 28px;
  --r-md:   16px;
  --r-sm:   10px;

  /* Motion */
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back:  cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:  200ms;
  --dur-base:  350ms;
  --dur-slow:  650ms;
}

/* Reset mínimo (NO pegues estas 6 líneas en Moodle, el tema ya resetea) */
[data-sp], [data-sp] *::before, [data-sp] *::after { box-sizing: border-box; }
/* body reset omitted for Moodle — scoped below */
[data-sp] img { max-width: 100%; height: auto; display: block; }
[data-sp] button { font: inherit; cursor: pointer; }
[data-sp] ul { list-style: none; padding: 0; margin: 0; }

/* Scroll reveal base — se activa con el JS de Additional HTML */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out-expo),
              transform var(--dur-slow) var(--ease-out-expo);
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"].visible { transition-delay: 80ms; }
[data-reveal-delay="2"].visible { transition-delay: 160ms; }
[data-reveal-delay="3"].visible { transition-delay: 240ms; }
[data-reveal-delay="4"].visible { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* Helpers de label mono — usado en todos los bloques */
.spora-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  background: transparent;
}

.spora-label--light { color: var(--spora-bg-dark); }
.spora-label--dark  { color: rgba(255,255,255,0.85); border-color: var(--spora-line-dark); }

/* ════════════════════════════════════════════════════════════════════
   BLOQUE 1 — HERO
   HTML → bloque HTML #1
   ════════════════════════════════════════════════════════════════════ */

.b1-hero {
  position: relative;
  min-height: 100vh;
  background: var(--spora-bg-dark);
  color: var(--spora-white);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(16px, 2vw, 24px);
}

/* Glow animado puro CSS (reemplaza GIF de fondo) */
.b1-hero::before {
  content: '';
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(45% 35% at 92% 45%, var(--spora-yellow-glow), transparent 65%),
    radial-gradient(35% 30% at 8% 85%,  rgba(216, 252, 92, 0.18), transparent 70%),
    radial-gradient(70% 50% at 50% 110%, rgba(216, 252, 92, 0.08), transparent 70%);
  filter: blur(50px);
  animation: b1GlowDrift 22s ease-in-out infinite alternate;
  z-index: -2;
  will-change: transform;
}
.b1-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.025) 1px, transparent 0);
  background-size: 3px 3px;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}
@keyframes b1GlowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-2%, 1.5%) scale(1.04); }
  100% { transform: translate(2%, -1.5%) scale(0.97); }
}
@media (prefers-reduced-motion: reduce) {
  .b1-hero::before { animation: none; }
}

/* NAV glass */
.b1-nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 20px);
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 10px 14px 10px 22px;
  border-radius: var(--r-pill);
  background: rgba(14, 26, 21, 0.55);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--spora-line-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: b1NavIn 800ms var(--ease-out-expo) both;
}
@keyframes b1NavIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.b1-nav__brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.b1-nav__mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--spora-yellow);
  border-radius: var(--r-pill);
  color: var(--spora-bg-dark);
}
.b1-nav__tagline {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 400;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.85);
  white-space: nowrap;
}
.b1-nav__links { display: flex; gap: 6px; margin-left: auto; }
.b1-nav__link {
  display: inline-block;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--spora-line-dark);
  background: transparent;
  color: var(--spora-white);
  text-decoration: none;
  font-size: 14px; font-weight: 400;
  white-space: nowrap;
  transition: background var(--dur-base) var(--ease-out-expo),
              border-color var(--dur-base) var(--ease-out-expo);
}
.b1-nav__link:hover,
.b1-nav__link[aria-current="page"] {
  background: rgba(216, 252, 92, 0.08);
  border-color: rgba(216, 252, 92, 0.4);
}
.b1-nav__icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--r-pill);
  border: 1px solid var(--spora-line-dark);
  background: transparent;
  color: var(--spora-white);
  transition: background var(--dur-base) ease;
}
.b1-nav__icon-btn:hover { background: rgba(216, 252, 92, 0.08); }
.b1-nav__cta {
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  padding: 10px 22px;
  border-radius: var(--r-pill);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-expo);
}
.b1-nav__cta:hover { background: var(--spora-yellow-mid); transform: translateY(-1px); }
.b1-nav__burger { display: none; }

/* Contenido hero */
.b1-hero__content {
  position: relative; z-index: 1;
  width: min(100%, 1280px);
  margin: clamp(20px, 5vh, 60px) auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}

.b1-wordmark {
  grid-column: 1 / -1;
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 24px);
  color: var(--spora-yellow);
  margin-bottom: clamp(20px, 4vw, 40px);
  animation: b1FadeIn 1s var(--ease-out-expo) 200ms both;
}
.b1-wordmark__asterisk { width: clamp(60px, 10vw, 130px); height: auto; flex-shrink: 0; }
.b1-wordmark__text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 14vw, 220px);
  line-height: 0.85;
  letter-spacing: -0.05em;
  margin: 0;
}
.b1-wordmark__r { font-size: 0.25em; vertical-align: super; font-weight: 400; }

.b1-hero__visual {
  position: relative;
  min-height: 320px;
  animation: b1FadeIn 1s var(--ease-out-expo) 400ms both;
}
.b1-hero__visual img {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.5));
}
.b1-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, rgba(216,252,92,0.08), rgba(216,252,92,0.02)), var(--spora-green);
  border: 1px dashed var(--spora-line-dark);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-align: center; padding: 24px;
}
.b1-placeholder strong { color: var(--spora-yellow); display: block; margin-bottom: 8px; }
.b1-placeholder code { color: var(--spora-yellow); }

.b1-hero__copy { animation: b1FadeIn 1s var(--ease-out-expo) 600ms both; }
.b1-hero__headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--spora-white);
  max-width: 18ch;
}
.b1-hero__headline strong { font-weight: 700; }
.b1-hero__desc {
  font-weight: 400;
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.6;
  color: rgba(255,255,255,0.75);
  max-width: 42ch;
  margin: 0 0 32px;
}
.b1-hero__desc strong { color: var(--spora-white); font-weight: 500; }

.b1-cta {
  display: inline-flex; align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 28px;
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  border: none; border-radius: var(--r-pill);
  font-weight: 500; font-size: 15px;
  text-decoration: none;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-expo);
}
.b1-cta:hover { background: var(--spora-yellow-mid); transform: translateY(-2px); }
.b1-cta__arrow {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--spora-bg-dark);
  color: var(--spora-yellow);
  border-radius: var(--r-pill);
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.b1-cta:hover .b1-cta__arrow { transform: translateX(3px); }

@keyframes b1FadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* === FIN BLOQUE 1 === */


/* ════════════════════════════════════════════════════════════════════
   BLOQUE 2 — CÓMO FUNCIONA / VIDEO
   HTML → bloque HTML #2
   ════════════════════════════════════════════════════════════════════ */

.b2-howit {
  position: relative;
  background: #D6D3C5;            /* mezcla khaki suave de yellow-soft + gray */
  padding: clamp(40px, 7vw, 100px) clamp(16px, 4vw, 60px) 0;
}
.b2-howit__inner { width: min(100%, 1280px); margin: 0 auto; }
.b2-howit__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(30px, 5vw, 60px);
}
.b2-howit__title-wrap { display: flex; flex-direction: column; gap: 16px; }
.b2-howit__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--spora-bg-dark);
}
.b2-howit__title strong { font-weight: 600; }
.b2-howit__title-icon {
  display: inline-grid;
  place-items: center;
  width: 0.95em;
  height: 0.95em;
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  border-radius: 50%;
  vertical-align: -0.05em;
  margin-right: 0.1em;
}
.b2-howit__title-icon svg { width: 60%; height: 60%; }

.b2-howit__desc {
  font-size: clamp(14px, 1.3vw, 15px);
  line-height: 1.55;
  color: var(--spora-bg-dark);
  margin: 0;
  max-width: 42ch;
}
.b2-howit__desc strong { font-weight: 600; }

/* Video frame */
.b2-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8.5;
  border-radius: var(--r-card);
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4), rgba(0,0,0,0.6)),
    radial-gradient(60% 80% at 30% 70%, #2a4538, transparent 70%),
    radial-gradient(60% 80% at 70% 30%, #1a2f24, transparent 70%),
    #16241c;
  box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.b2-video img,
.b2-video video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.b2-video__logo {
  position: absolute;
  top: clamp(16px, 3vw, 32px);
  right: clamp(16px, 3vw, 32px);
  display: flex; align-items: center; gap: 8px;
  color: var(--spora-yellow);
  z-index: 2;
}
.b2-video__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.b2-video__logo-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-top: 2px;
  opacity: 0.85;
}
.b2-video__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 8vw, 120px);
  height: clamp(80px, 8vw, 120px);
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid var(--spora-white);
  color: var(--spora-white);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.06em;
  display: grid; place-items: center;
  transition: background var(--dur-base) ease, transform var(--dur-base) var(--ease-out-expo);
  z-index: 2;
}
.b2-video__play:hover { background: rgba(216,252,92,0.18); transform: translate(-50%, -50%) scale(1.05); }

/* Banda inferior gris */
.b2-trust {
  margin-top: clamp(20px, 3vw, 40px);
  background: var(--spora-gray);
  border-radius: var(--r-card) var(--r-card) 0 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
}
.b2-trust__text {
  display: flex; align-items: center; gap: 14px;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.4;
  color: var(--spora-bg-dark);
  margin: 0;
}
.b2-trust__text strong { font-weight: 600; display: block; }
.b2-trust__emoji {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 4px;
}
.b2-trust__emoji span:nth-child(1) {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--spora-bg-dark);
}
.b2-trust__emoji span:nth-child(1)::before {
  content: ''; width: 8px; height: 8px;
  background: var(--spora-yellow); border-radius: 50%;
}
.b2-trust__emoji span:nth-child(2) {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%; background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  font-family: var(--font-mono); font-size: 13px;
}

/* Píldoras conectadas */
.b2-pills {
  display: flex; align-items: center; gap: 0;
  flex-wrap: wrap;
}
.b2-pills__cell {
  display: flex; align-items: center; gap: 0;
}
.b2-pills__pill {
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.b2-pills__pill:hover { background: var(--spora-yellow-mid); transform: scale(1.05); }
.b2-pills__connector {
  width: 16px; height: 2px;
  background: var(--spora-bg-dark);
}
.b2-pills__asterisk {
  margin-left: 8px;
  color: var(--spora-bg-dark);
}
.b2-pills__asterisk svg {
  animation: b2Spin 12s linear infinite;
}
@keyframes b2Spin { to { transform: rotate(360deg); } }

/* === FIN BLOQUE 2 === */


/* ════════════════════════════════════════════════════════════════════
   BLOQUE 3 — SERVICIOS
   HTML → bloque HTML #3
   ════════════════════════════════════════════════════════════════════ */

.b3-services {
  position: relative;
  background: var(--spora-bg-dark);
  color: var(--spora-white);
  padding: clamp(40px, 7vw, 100px) clamp(16px, 4vw, 60px);
  overflow: hidden;
}

/* Halftone pattern (esquina superior derecha) */
.b3-services::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 55%; height: 35%;
  background-image:
    radial-gradient(circle, var(--spora-yellow) 1.2px, transparent 1.5px);
  background-size: 12px 12px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(225deg, rgba(0,0,0,0.9), transparent 75%);
  mask-image: linear-gradient(225deg, rgba(0,0,0,0.9), transparent 75%);
  opacity: 0.7;
  z-index: 0;
}

.b3-services__inner { position: relative; z-index: 1; width: min(100%, 1280px); margin: 0 auto; }

.b3-services__head {
  text-align: center;
  margin-bottom: clamp(30px, 5vw, 60px);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.b3-services__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.b3-services__title strong { font-weight: 600; }
.b3-services__title-icon {
  display: inline-grid; place-items: center;
  width: 0.85em; height: 0.85em;
  vertical-align: -0.05em;
  color: var(--spora-yellow);
  margin: 0 0.05em;
}

/* Cards grid */
.b3-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.5vw, 28px);
}
.b3-card {
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 34px);
  display: flex; flex-direction: column;
  gap: 16px;
  min-height: 480px;
  position: relative;
  overflow: hidden;
  transition: transform var(--dur-base) var(--ease-out-expo),
              box-shadow var(--dur-base) var(--ease-out-expo);
}
.b3-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,0.3); }

.b3-card--teams    { background: var(--spora-yellow); color: var(--spora-bg-dark); }
.b3-card--creators { background: var(--spora-white);  color: var(--spora-bg-dark); }

.b3-card__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.b3-card__title-row { display: flex; align-items: center; gap: 12px; }
.b3-card__icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: var(--spora-bg-dark);
  color: var(--spora-yellow);
  border-radius: var(--r-pill);
}
.b3-card--creators .b3-card__icon { background: var(--spora-bg-dark); color: var(--spora-white); }
.b3-card__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  margin: 0;
  letter-spacing: -0.02em;
}
.b3-card__title strong { font-weight: 700; }
.b3-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--spora-bg-dark);
  color: var(--spora-yellow);
  border-radius: var(--r-pill);
  text-decoration: none;
  font-size: 12px;
  font-family: var(--font-mono);
  font-weight: 400;
  transition: transform var(--dur-fast) var(--ease-out-expo);
}
.b3-card--creators .b3-card__cta { color: var(--spora-white); }
.b3-card__cta:hover { transform: translateX(3px); }

.b3-card__desc {
  font-size: clamp(13px, 1.2vw, 14px);
  line-height: 1.55;
  margin: 0;
  max-width: 50ch;
}
.b3-card__desc strong { font-weight: 600; }

.b3-card__list-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.b3-card__list { padding-left: 18px; }
.b3-card__list li {
  font-size: 13px;
  line-height: 1.5;
  list-style: disc;
  margin-bottom: 4px;
}

.b3-card__photo {
  margin-top: auto;
  border-radius: var(--r-md);
  aspect-ratio: 16 / 8;
  background-size: cover;
  background-position: center;
  background-color: var(--spora-green);
}
/* Placeholders cuando no hay fotos reales */
.b3-card--teams .b3-card__photo {
  background-image:
    linear-gradient(135deg, rgba(28,51,41,0.6), rgba(0,0,0,0.3)),
    radial-gradient(60% 80% at 30% 60%, #4a6e5a, transparent 70%),
    radial-gradient(50% 70% at 75% 40%, #6d8a78, transparent 70%);
}
.b3-card--creators .b3-card__photo {
  background-image:
    linear-gradient(135deg, rgba(50,60,70,0.5), rgba(0,0,0,0.2)),
    radial-gradient(50% 80% at 40% 60%, #707b85, transparent 70%);
}

/* === FIN BLOQUE 3 === */


/* ════════════════════════════════════════════════════════════════════
   BLOQUE 4 — ALIADO CREATIVO FLAMANTE
   HTML → bloque HTML #4 (INCLUYE EL GIF Mockup.gif)
   ════════════════════════════════════════════════════════════════════ */

.b4-flamante {
  background: var(--spora-gray);
  padding: clamp(30px, 5vw, 70px) clamp(16px, 4vw, 60px);
}
.b4-flamante__inner {
  width: min(100%, 1280px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.b4-flamante__media {
  position: relative;
}
.b4-flamante__media img,
.b4-flamante__media video {
  width: 100%;
  height: auto;
  display: block;
  /* No fondo, GIF tiene su propio fondo transparente/blanco */
}
.b4-flamante__copy { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.b4-flamante__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.2vw, 28px);
  color: #E63946;          /* rojo Flamante (aprox) */
  line-height: 1;
  letter-spacing: -0.02em;
  display: inline-flex; flex-direction: column; align-self: flex-end;
  align-items: flex-start;
}
.b4-flamante__logo small {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 400;
  color: var(--spora-bg-dark);
  letter-spacing: 0.12em;
  margin-top: 2px;
  text-transform: uppercase;
}
.b4-flamante__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--spora-bg-dark);
  margin: 0;
  max-width: 24ch;
}
.b4-flamante__title strong { font-weight: 600; }
.b4-flamante__title-icon {
  display: inline-grid; place-items: center;
  width: 0.9em; height: 0.9em;
  border-radius: 50%;
  background: var(--spora-yellow);
  vertical-align: -0.05em;
}
.b4-flamante__title-icon::before {
  content: ''; width: 35%; height: 35%;
  background: var(--spora-bg-dark);
  border-radius: 50%;
}
.b4-flamante__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.55;
  color: var(--spora-bg-dark);
  margin: 0;
  max-width: 50ch;
}
.b4-flamante__desc strong { font-weight: 600; }

/* === FIN BLOQUE 4 === */


/* ════════════════════════════════════════════════════════════════════
   BLOQUE 5 — CONTACTO
   HTML → bloque HTML #5
   El submit del form debería ir a un plugin Moodle (ver mensaje)
   ════════════════════════════════════════════════════════════════════ */

.b5-contact {
  position: relative;
  background: var(--spora-white);
  padding: clamp(60px, 8vw, 120px) clamp(16px, 4vw, 60px) clamp(40px, 6vw, 80px);
}
/* Asterisco yellow gigante decorativo arriba */
.b5-contact::before {
  content: '';
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 120px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120' fill='%23D8FC5C'><circle cx='60' cy='18' r='15'/><circle cx='60' cy='102' r='15'/><circle cx='18' cy='41' r='15'/><circle cx='102' cy='41' r='15'/><circle cx='18' cy='79' r='15'/><circle cx='102' cy='79' r='15'/><circle cx='60' cy='60' r='20'/></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  animation: b2Spin 30s linear infinite;
}
.b5-contact__inner {
  width: min(100%, 1280px); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: clamp(30px, 5vw, 80px);
}

/* Columna izquierda */
.b5-contact__intro { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.b5-contact__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--spora-bg-dark);
  margin: 0;
}
.b5-contact__title strong { font-weight: 600; }
.b5-contact__title-icon {
  display: inline-grid; place-items: center;
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  width: 1em; height: 0.7em;
  border-radius: 6px;
  vertical-align: middle;
  margin: 0 0.05em;
}
.b5-contact__title-icon svg { width: 70%; height: auto; }

.b5-contact__desc {
  font-size: clamp(13px, 1.3vw, 15px);
  line-height: 1.6;
  color: var(--spora-bg-dark);
  margin: 0;
  max-width: 42ch;
}
.b5-contact__desc strong { font-weight: 600; }

.b5-contact__methods { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.b5-contact__method { display: flex; align-items: flex-start; gap: 14px; }
.b5-contact__method-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  border-radius: 8px;
  flex-shrink: 0;
}
.b5-contact__method-label { font-size: 14px; font-weight: 600; color: var(--spora-bg-dark); margin: 0; }
.b5-contact__method-value { font-size: 13px; color: var(--spora-bg-dark); margin: 2px 0 0; }

/* Formulario */
.b5-form { display: flex; flex-direction: column; gap: 22px; }
.b5-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.b5-form__field { display: flex; flex-direction: column; gap: 6px; }
.b5-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--spora-bg-dark);
}
.b5-form__label-required::after { content: ' *'; color: var(--spora-bg-dark); }
.b5-form__input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--spora-gray-mid);
  padding: 8px 0;
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--spora-bg-dark);
  background: transparent;
  outline: none;
  transition: border-color var(--dur-base) ease;
}
.b5-form__input:focus { border-color: var(--spora-bg-dark); }
.b5-form__input::placeholder { color: var(--spora-gray-mid); font-weight: 400; }

/* Toggle Teams/Creators */
.b5-form__toggle { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.b5-form__toggle input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.b5-form__toggle label {
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--spora-gray-mid);
  border-radius: var(--r-pill);
  font-size: 13px;
  color: var(--spora-bg-dark);
  background: transparent;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.b5-form__toggle label::before {
  content: ''; width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--spora-gray-mid);
  transition: background var(--dur-fast) ease;
}
.b5-form__toggle input[type="radio"]:checked + label {
  background: var(--spora-yellow-soft);
  border-color: var(--spora-bg-dark);
}
.b5-form__toggle input[type="radio"]:checked + label::before {
  background: var(--spora-yellow);
}

.b5-form__submit {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 16px 12px 24px;
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  border: none; border-radius: var(--r-pill);
  font-weight: 500; font-size: 14px;
  transition: background var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-expo);
  margin-top: 8px;
}
.b5-form__submit:hover { background: var(--spora-yellow-mid); transform: translateY(-2px); }
.b5-form__submit-arrow {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--spora-bg-dark);
  color: var(--spora-yellow);
  border-radius: 50%;
}

/* === FIN BLOQUE 5 === */


/* ════════════════════════════════════════════════════════════════════
   BLOQUE 6 — FOOTER
   HTML → bloque HTML #6
   ════════════════════════════════════════════════════════════════════ */

.b6-footer {
  background: var(--spora-yellow);
  color: var(--spora-bg-dark);
  padding: clamp(40px, 5vw, 70px) clamp(16px, 4vw, 60px) clamp(30px, 4vw, 50px);
  border-radius: var(--r-card) var(--r-card) 0 0;
}
.b6-footer__inner {
  width: min(100%, 1280px); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(30px, 4vw, 60px);
  align-items: start;
}
.b6-footer__brand { display: flex; flex-direction: column; gap: 16px; }
.b6-footer__wordmark {
  display: flex; align-items: center;
  gap: 16px;
  color: var(--spora-bg-dark);
}
.b6-footer__wordmark-asterisk { width: 50px; height: auto; }
.b6-footer__wordmark-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 6vw, 80px);
  line-height: 0.85;
  letter-spacing: -0.04em;
  margin: 0;
}
.b6-footer__wordmark-r { font-size: 0.3em; vertical-align: super; font-weight: 400; }
.b6-footer__wordmark-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  margin-top: 6px;
  font-weight: 500;
}
.b6-footer__contact-block { margin-top: 16px; }
.b6-footer__contact-title { font-weight: 600; font-size: 14px; margin: 0 0 12px; }
.b6-footer__contact-row { display: flex; align-items: center; gap: 10px; font-size: 13px; margin: 4px 0; }
.b6-footer__contact-icon {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  background: var(--spora-bg-dark);
  color: var(--spora-yellow);
  border-radius: 50%;
}

.b6-footer__nav { display: flex; flex-direction: column; gap: 12px; }
.b6-footer__nav a {
  color: var(--spora-bg-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: opacity var(--dur-fast) ease;
}
.b6-footer__nav a:hover { opacity: 0.6; }
.b6-footer__copyright {
  grid-column: 1 / -1;
  font-size: 12px;
  text-align: right;
  margin-top: 30px;
  opacity: 0.6;
}

/* === FIN BLOQUE 6 === */


/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE — Media queries globales (VA EN CUSTOM CSS)
   ════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .b1-hero__content { grid-template-columns: 1fr; }
  .b1-hero__visual { order: 2; min-height: 280px; }
  .b1-hero__copy   { order: 3; }

  .b2-howit__head { grid-template-columns: 1fr; align-items: start; }
  .b3-cards { grid-template-columns: 1fr; }
  .b4-flamante__inner { grid-template-columns: 1fr; }
  .b5-contact__inner { grid-template-columns: 1fr; }
  .b6-footer__inner { grid-template-columns: 1fr; }
  .b6-footer__copyright { text-align: left; }
}

@media (max-width: 768px) {
  .b1-nav__tagline,
  .b1-nav__links { display: none; }
  .b1-nav__burger {
    display: grid; margin-left: auto;
    width: 38px; height: 38px;
    place-items: center;
    border-radius: var(--r-pill);
    border: 1px solid var(--spora-line-dark);
    background: transparent;
    color: var(--spora-white);
  }
  .b1-nav__cta { padding: 8px 16px; font-size: 13px; }
  .b1-wordmark__text { font-size: clamp(60px, 18vw, 100px); }

  .b2-trust { grid-template-columns: 1fr; }
  .b5-form__row { grid-template-columns: 1fr; }
  .b3-services::before { width: 80%; height: 25%; }
}

@media (max-width: 480px) {
  .b1-nav { padding: 8px 10px 8px 14px; gap: 8px; }
  .b1-nav__mark { width: 28px; height: 28px; }
  .b3-card { min-height: 0; }
}
