@font-face {
  font-family: "Pacifico";
  src: url("pacifico.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand-navy: #203d5e;
  --brand-fuchsia: #f0448a;
  --brand-pink-light: #fceaf3;
  --brand-blue-light: #e6f1fc;
  --brand-pink-medium: #efa9cb;
  --brand-blue-medium: #a9ccef;
  --navy: var(--brand-navy);
  --ink: var(--brand-navy);
  --muted: var(--brand-navy);
  --text: var(--brand-navy);
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: #fff !important;
  background-color: #fff !important;
  background-image: none !important;
  color: var(--brand-navy) !important;
}

main {
  background: #fff !important;
}

main,
header,
footer,
section,
nav,
.container,
.hero,
.hero-grid,
.split,
.section-head,
.cta-card,
.registration-card,
.checkout-grid,
.creator-grid,
.catalog-grid,
.ethics-box,
.resources-grid,
.instructor-grid,
.audience-grid,
.taip-location {
  min-width: 0;
  max-width: 100%;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
}

p,
li,
small,
label,
blockquote,
cite,
address,
s,
.lead,
.muted,
.section-head p,
.card p,
.step span,
.testimonial p,
.testimonial cite,
.proof p,
.kit p,
.cta-card p,
.registration-card p,
.topbar,
.chips span,
.trust-row,
.trust span,
.credentials span,
.payment-steps span,
.brand-copy small,
.identity span,
.portrait-caption span,
.kit-proof span,
.contact-card p,
.taip-location p,
footer,
footer a,
footer span {
  color: var(--brand-navy) !important;
}

.topbar {
  background: #fff !important;
  border-bottom: 1px solid rgba(32, 61, 94, .12) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b,
.brand,
.brand-copy strong,
.kit-link,
.creator-link {
  color: var(--brand-navy);
}

.title-accent,
.script,
.signature {
  color: var(--brand-fuchsia) !important;
  font-family: "Pacifico", cursive !important;
  font-style: normal !important;
  font-weight: 400 !important;
}

.hero,
.needs,
.for-you,
.process,
.difference,
.testimonials,
.kits,
.about,
.resources,
.laboratory,
.ethics,
.audience,
.cta,
.registration,
.creator,
.checkout,
.catalog,
.features,
.proof-section {
  background: #fff !important;
}

.card,
.step,
.testimonial,
.proof,
.kit,
.learn-card,
.audience-item,
.time-item,
.feature,
.credential,
.custom-card,
.kit-list-item,
.kit-proof > div,
.feature-list > span,
.ethics-list > div,
.list > div {
  color: var(--brand-navy) !important;
}

.card:nth-child(odd),
.step:nth-child(odd),
.testimonial:nth-child(odd),
.proof:nth-child(odd),
.kit:nth-child(odd),
.learn-card:nth-child(odd),
.audience-item:nth-child(odd),
.time-item:nth-child(odd),
.feature:nth-child(odd),
.credential:nth-child(odd),
.custom-card:nth-child(odd),
.kit-list-item:nth-child(odd),
.kit-proof > div:nth-child(odd),
.feature-list > span:nth-child(odd),
.ethics-list > div:nth-child(odd),
.list > div:nth-child(odd) {
  background: var(--brand-pink-light) !important;
}

.card:nth-child(even),
.step:nth-child(even),
.testimonial:nth-child(even),
.proof:nth-child(even),
.kit:nth-child(even),
.learn-card:nth-child(even),
.audience-item:nth-child(even),
.time-item:nth-child(even),
.feature:nth-child(even),
.credential:nth-child(even),
.custom-card:nth-child(even),
.kit-list-item:nth-child(even),
.kit-proof > div:nth-child(even),
.feature-list > span:nth-child(even),
.ethics-list > div:nth-child(even),
.list > div:nth-child(even) {
  background: var(--brand-blue-light) !important;
}

.difference-box,
.cta-card,
.registration-card,
.checkout-card,
.summary-card,
.times-card,
.taip-location,
.contact-card {
  background: #fff !important;
  color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
}

.button.primary,
.filter.active,
.contact-actions .button:first-child {
  background: var(--brand-fuchsia) !important;
  color: #fff !important;
}

.button.primary *,
.filter.active * {
  color: #fff !important;
}

.button.secondary,
.button.outline,
.button.light,
.filter,
.contact-actions .button:last-child {
  background: #fff !important;
  color: var(--brand-navy) !important;
  border-color: var(--brand-navy) !important;
}

.taip-logo-card,
.identity .taip-mini-logo-wrap {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.taip-logo-card {
  width: min(520px, 100%) !important;
  margin: 0 0 18px !important;
}

.taip-logo-card img,
.identity .taip-mini-logo {
  width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff !important;
  mix-blend-mode: normal !important;
  filter: none !important;
  opacity: 1 !important;
  image-rendering: auto;
}

.identity .taip-mini-logo {
  width: min(330px, 100%) !important;
  margin: 18px auto 8px !important;
}

.taip-role {
  display: block;
  margin: 6px auto 0;
  color: var(--brand-navy) !important;
  font-weight: 800;
  line-height: 1.35;
}

/* La frase principal del panel de formaciones conserva el estilo exacto de los títulos. */
.board-title {
  font-family: "Fredoka", sans-serif !important;
  font-weight: 700 !important;
  color: var(--brand-navy) !important;
  letter-spacing: -.035em !important;
}

/* Los nombres de los kits utilizan la jerarquía visual de subtítulos. */
.kit-list-item strong,
.kit h3 {
  font-family: "Baloo 2", sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
}

/* En la página de la clase, la figura decorativa queda detrás del título. */
.class-page .hero::before {
  z-index: 0 !important;
  pointer-events: none;
}

.class-page .hero-grid,
.class-page .hero-copy {
  position: relative;
  z-index: 1;
}

/* Detalles del Kit Pro: blanco puro y líneas azules únicamente en las esquinas. */
.contents .content-card {
  position: relative;
  isolation: isolate;
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.contents .content-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) left top / 42px 2px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) left top / 2px 42px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) right top / 42px 2px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) right top / 2px 42px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) left bottom / 42px 2px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) left bottom / 2px 42px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) right bottom / 42px 2px no-repeat,
    linear-gradient(var(--brand-blue-medium), var(--brand-blue-medium)) right bottom / 2px 42px no-repeat;
}

.contents .content-card > * {
  position: relative;
  z-index: 1;
}

.contents .content-card h3,
.contents .content-card li {
  font-family: "Baloo 2", sans-serif !important;
  color: var(--brand-navy) !important;
}

.contents .content-card h3 {
  font-weight: 700 !important;
}

.contents .content-card li {
  font-weight: 500 !important;
  line-height: 1.5 !important;
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 28px), 1180px) !important;
  }

  h1 {
    font-size: clamp(2.15rem, 10.5vw, 3.25rem) !important;
    letter-spacing: -.03em !important;
  }

  h2 {
    font-size: clamp(1.8rem, 8.6vw, 2.55rem) !important;
  }

  h1,
  h2,
  h3,
  p,
  a,
  span,
  strong,
  small,
  li {
    overflow-wrap: anywhere;
  }

  .hero-grid,
  .split,
  .difference-box,
  .cta-card,
  .registration-card,
  .checkout-grid,
  .creator-grid,
  .catalog-grid,
  .ethics-box,
  .resources-grid,
  .instructor-grid,
  .audience-grid,
  .taip-location {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 34px !important;
  }

  .card-grid,
  .steps,
  .testimonial-grid,
  .kit-grid,
  .learn-grid,
  .time-grid,
  .feature-grid,
  .proof-grid,
  .facts-grid,
  .audience-list,
  .list,
  .kit-list,
  .kit-proof {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .button,
  .hero-actions .button,
  .cta-actions .button,
  .registration-actions .button {
    max-width: 100%;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .identity-frame,
  .portrait-wrap,
  .portrait,
  .catalog-preview,
  .product-preview,
  .checkout-card,
  .summary-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: auto !important;
  }

  .taip-logo-card {
    width: min(430px, 100%) !important;
    margin-inline: auto !important;
  }

  .kit-list-item {
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    padding: 12px !important;
  }
}

/* Ajustes de contraste suave para la tarjeta de Neurocomunidad. */
.contact-card {
  border-color: var(--brand-blue-medium) !important;
}

.contact-card::before {
  border-top-color: var(--brand-blue-medium) !important;
  border-left-color: var(--brand-blue-medium) !important;
}

.contact-card::after {
  border-right-color: var(--brand-pink-medium) !important;
  border-bottom-color: var(--brand-pink-medium) !important;
}

.contact-actions .button:first-child {
  background: var(--brand-pink-light) !important;
  border-color: var(--brand-pink-medium) !important;
  color: #1f2733 !important;
}

.contact-actions .button:nth-child(2) {
  background: var(--brand-blue-light) !important;
  border-color: var(--brand-blue-medium) !important;
  color: #1f2733 !important;
}

/* Firma profesional unificada para las fotografías principales. */
.personal-signature {
  width: 100%;
  padding: 4px 12px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

.personal-signature__logo {
  width: min(420px, 100%);
  height: auto;
  margin: -115px auto -180px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
}

.personal-signature__logo img {
  width: 100% !important;
  height: auto !important;
  margin: 0 !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  mix-blend-mode: multiply !important;
  filter: url("brand-fuchsia-filter.svg#brand-fuchsia") !important;
  opacity: 1;
}

.personal-signature__credentials {
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 6px;
  list-style: none;
}

.personal-signature__credentials li {
  position: relative;
  padding-left: 18px;
  color: #203d5e;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.45;
  text-align: left;
}

.personal-signature__credentials li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .48em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue-medium);
}

@media (max-width: 620px) {
  .personal-signature {
    padding: 7px 8px 12px;
  }

  .personal-signature__logo {
    width: min(320px, 100%);
    margin-top: -85px;
    margin-bottom: -135px;
  }

  .personal-signature__credentials li {
    font-size: .84rem;
  }
}
