.ib-category {
  --pink: #F2AEC7;
  --pink-hover: #EA98B7;
  --pink-soft: #F8D5E2;
  --pink-nude: #F3C6D3;
  --pink-pale: #FFF5F8;
  --pink-border: #EED6DF;
  --heading: #333333;
  --text: #626262;
  --shadow-card: rgba(90, 65, 75, .08);

  background: #fff;
  color: var(--heading);
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

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

.ib-category [hidden] { display: none !important; }

.ib-category :where(h1, h2, h3, p, ol, ul, figure) { margin: 0; }

.ib-category :is(h1, h2, h3) {
  color: var(--heading);
  font-family: inherit;
  text-transform: none;
}

.ib-category h1 {
  font-size: clamp(34px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.035em;
}

.ib-category h2 {
  font-size: clamp(27px, 2.5vw, 38px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.ib-category h3 {
  font-size: clamp(19px, 1.35vw, 23px);
  font-weight: 700;
  line-height: 1.3;
}

.ib-category p { color: var(--text); }
.ib-category a { color: inherit; }
.ib-category :is(button, input) { font: inherit; }

.ib-category :is(a, button, input, summary):focus-visible {
  outline: 3px solid var(--heading);
  outline-offset: 4px;
}

.ibk-wrap {
  width: min(92%, 1400px);
  margin-inline: auto;
}

.ibk-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.ibk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 60px;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--pink);
  color: var(--heading);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.ibk-button:hover {
  background: var(--pink-hover);
  transform: translateY(-2px);
}

.ibk-button--white {
  background: #fff;
  border-color: var(--pink-border);
}

.ibk-button--white:hover { background: var(--pink-soft); }

/* ---------- Hero ---------- */

.ibk-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--pink-pale);
}

.ibk-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -210px;
  bottom: -120px;
  width: 340px;
  height: 540px;
  border: 2px solid var(--pink-border);
  border-radius: 85% 0 85% 0;
  transform: rotate(25deg);
  pointer-events: none;
}

.ibk-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  align-items: center;
  gap: clamp(35px, 6vw, 90px);
  padding-block: 34px 70px;
}

.ibk-hero-grid > * { min-width: 0; }

.ibk-breadcrumb { margin-bottom: 34px; }

.ibk-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 14px;
}

.ibk-breadcrumb li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--pink-hover);
}

.ibk-breadcrumb a {
  text-decoration: none;
  transition: color .2s ease;
}

.ibk-breadcrumb a:hover { color: var(--heading); text-decoration: underline; }

.ibk-breadcrumb [aria-current] { color: var(--heading); font-weight: 500; }

.ibk-hero-copy > p {
  max-width: 700px;
  margin-top: 22px;
  font-size: 18px;
}

.ibk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.ibk-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--pink-border);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.ibk-facts strong { font-weight: 700; }

.ibk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.ibk-hero-art {
  position: relative;
  isolation: isolate;
  padding: 24px;
}

.ibk-hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10% 2%;
  border-radius: 22%;
  background: var(--pink-soft);
  transform: rotate(24deg);
}

.ibk-hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -10px;
  bottom: 0;
  width: 80px;
  height: 70px;
  background: var(--pink);
  clip-path: polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);
}

.ibk-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  border-radius: 110px 25px 110px 25px;
}

/* ---------- Buscador y filtros ---------- */

.ibk-tools {
  position: relative;
  z-index: 2;
  margin-top: -40px;
  padding: 24px;
  border: 1px solid var(--pink-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 35px var(--shadow-card);
}

.ibk-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
}

.ibk-search label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.ibk-search input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 13px 18px;
  border: 1px solid #8B7B81;
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
}

.ibk-search input::placeholder { color: var(--text); opacity: 1; }

.ibk-search .ibk-button { min-height: 56px; font-size: 15px; }

.ibk-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.ibk-chip {
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--pink-border);
  border-radius: 999px;
  background: var(--pink-pale);
  color: var(--heading);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.ibk-chip:hover { background: var(--pink-soft); }

.ibk-chip[aria-pressed="true"] {
  border-color: var(--heading);
  background: var(--pink);
}

.ibk-status {
  margin-top: 14px !important;
  font-size: 14px;
}

/* ---------- Secciones ---------- */

.ibk-section { padding-block: 70px 10px; }

.ibk-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.ibk-section-heading > div { max-width: 760px; }

.ibk-section-heading p {
  margin-top: 14px;
  font-size: 17px;
}

.ibk-count {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--pink-pale);
  color: var(--heading);
  font-size: 14px;
  font-weight: 600;
}

.ibk-divider {
  height: 20px;
  margin-bottom: 34px;
  background: repeating-linear-gradient(
    135deg,
    transparent 0 10px,
    var(--pink-border) 10px 12px,
    transparent 12px 18px
  );
}

/* ---------- Tarjetas ---------- */

.ibk-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.ibk-grid--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ibk-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--pink-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 0 var(--pink-pale);
  transition: transform .2s ease, box-shadow .2s ease;
}

.ibk-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px var(--shadow-card);
}

.ibk-card:focus-within {
  outline: 3px solid var(--heading);
  outline-offset: 4px;
}

.ibk-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.ibk-card-link:focus-visible { outline: none; }

.ibk-card-media {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--pink-pale);
}

.ibk-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.ibk-card:hover .ibk-card-media img { transform: scale(1.035); }

.ibk-tag {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--heading);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.ibk-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 22px 26px;
}

.ibk-card-body > p {
  margin: 14px 0 22px;
  font-size: 15px;
}

.ibk-card-body > .ibk-button {
  margin-top: auto;
  min-height: 54px;
  padding-inline: 24px;
  font-size: 16px;
}

.ibk-note {
  display: block;
  margin: -8px 0 22px;
  padding: 10px 14px;
  border-left: 3px solid var(--pink);
  border-radius: 0 10px 10px 0;
  background: var(--pink-pale);
  color: var(--text);
  font-size: 13px;
  line-height: 1.55;
}

/* Tarjetas destacadas: horizontales en ordenador */

.ibk-grid--featured .ibk-card-link {
  display: grid;
  grid-template-columns: 44% minmax(0, 1fr);
}

.ibk-grid--featured .ibk-card-media {
  height: 100%;
  min-height: 300px;
  aspect-ratio: auto;
}

.ibk-grid--featured .ibk-card-body { padding: 30px 28px; }

.ibk-grid--featured h2 {
  font-size: clamp(22px, 1.6vw, 27px);
  line-height: 1.25;
  letter-spacing: -.015em;
}

.ibk-rank {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--pink-soft);
  color: var(--heading);
  font-size: 14px;
  font-weight: 700;
}

/* Diplomados: banda rosada como en la home */

.ibk-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 70px;
  padding-bottom: 75px;
  background: var(--pink-pale);
}

.ibk-band::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -190px;
  top: -100px;
  width: 340px;
  height: 540px;
  border: 2px solid var(--pink-border);
  border-radius: 85% 0 85% 0;
  transform: rotate(25deg);
  pointer-events: none;
}

.ibk-more {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.ibk-empty {
  margin-top: 40px;
  padding: 35px;
  border: 1px dashed var(--pink-border);
  border-radius: 24px;
  text-align: center;
}

/* ---------- Otras especialidades ---------- */

.ibk-others { padding-block: 75px 20px; }

.ibk-others-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.ibk-others-header > div { max-width: 760px; }

.ibk-others-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.ibk-others-grid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 12px 22px;
  border: 1px solid var(--pink-border);
  border-radius: 12px;
  background: #fff;
  color: var(--heading);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.ibk-others-grid a:hover {
  background: var(--pink-pale);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow-card);
}

.ibk-others-grid a svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: 12px;
  color: var(--pink);
  opacity: 0;
  transform: translateX(-5px);
  transition: all .2s ease;
}

.ibk-others-grid a:hover svg {
  opacity: 1;
  transform: translateX(0);
  color: var(--heading);
}

/* ---------- FAQ ---------- */

.ibk-faq { padding-block: 70px 20px; }

.ibk-faq-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
  align-items: start;
}

.ibk-faq-intro > p { margin-top: 16px; font-size: 17px; }

.ibk-faq details { border-bottom: 1px solid var(--pink-border); }

.ibk-faq summary {
  position: relative;
  padding: 22px 40px 22px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.ibk-faq summary::-webkit-details-marker { display: none; }

.ibk-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 4px;
  font-size: 28px;
  font-weight: 400;
}

.ibk-faq details[open] summary::after { content: "−"; }

.ibk-faq details > p { padding: 0 30px 24px 0; }

/* ---------- Contacto ---------- */

.ibk-cta { padding-block: 60px 100px; }

.ibk-cta-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 80px 45px;
  border-radius: 150px 0 150px 0;
  background: var(--pink-pale);
  text-align: center;
}

.ibk-cta-panel::before,
.ibk-cta-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 540px;
  border: 2px solid var(--pink-border);
  border-radius: 85% 0 85% 0;
  transform: rotate(25deg);
  pointer-events: none;
}

.ibk-cta-panel::before { left: -200px; bottom: -80px; }
.ibk-cta-panel::after { right: -190px; top: -100px; }

.ibk-cta-panel h2 { max-width: 720px; margin-inline: auto; }

.ibk-cta-panel p {
  max-width: 620px;
  margin: 18px auto 0;
  font-size: 17px;
}

.ibk-cta-panel .ibk-actions { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 1250px) {
  .ibk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ibk-grid--featured .ibk-card-link { display: flex; }
  .ibk-grid--featured .ibk-card-media { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 1050px) {
  .ibk-faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .ibk-others-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .ib-category { text-align: center; }

  .ibk-wrap { width: calc(100% - 36px); }

  .ib-category :is(h1, h2, h3, p) {
    text-align: center;
    overflow-wrap: anywhere;
  }

  .ib-category h1 { font-size: clamp(28px, 7.5vw, 38px); line-height: 1.2; }
  .ib-category h2 { font-size: clamp(25px, 6.5vw, 32px); }
  .ib-category h3 { font-size: 21px; }

  .ibk-kicker { font-size: 11px; letter-spacing: .1em; }

  .ibk-hero::before { display: none; }

  .ibk-hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-block: 24px 80px;
  }

  .ibk-breadcrumb { margin-bottom: 24px; }
  .ibk-breadcrumb ol { justify-content: center; font-size: 13px; }

  .ibk-hero-copy > p {
    margin: 18px auto 0;
    font-size: 16px;
    line-height: 1.7;
  }

  .ibk-facts { justify-content: center; }
  .ibk-facts li { font-size: 13px; padding: 7px 13px; }

  .ibk-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .ibk-actions .ibk-button {
    width: 100%;
    max-width: 360px;
  }

  .ibk-hero-art {
    order: -1;
    width: min(100%, 250px);
    margin-inline: auto;
    padding: 16px;
  }

  .ibk-hero-art img { border-radius: 70px 20px 70px 20px; }
  .ibk-hero-art::after { left: 0; width: 55px; height: 48px; }

  .ibk-tools { margin-top: -50px; padding: 20px 16px; border-radius: 20px; }

  .ibk-search { grid-template-columns: 1fr; }
  .ibk-search label { margin-bottom: 12px; font-size: 15px; }
  .ibk-search input { min-height: 54px; font-size: 16px; text-align: center; }
  .ibk-search .ibk-button { width: 100%; }

  .ibk-filters {
    flex-wrap: nowrap;
    justify-content: flex-start;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ibk-filters::-webkit-scrollbar { display: none; }
  .ibk-chip { flex-shrink: 0; }

  .ibk-status { font-size: 13px; }

  .ibk-section { padding-top: 50px; }

  .ibk-section-heading {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-bottom: 26px;
  }

  .ibk-section-heading p { margin: 12px auto 0; font-size: 16px; }

  .ibk-divider { margin-bottom: 26px; }

  .ibk-grid,
  .ibk-grid--featured {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 480px;
    margin-inline: auto;
  }

  .ibk-card { border-radius: 26px; }

  .ibk-tag {
    left: 50%;
    width: max-content;
    max-width: calc(100% - 32px);
    transform: translateX(-50%);
    text-align: center;
  }

  .ibk-card-body,
  .ibk-grid--featured .ibk-card-body {
    align-items: center;
    padding: 24px 20px;
  }

  .ibk-rank { margin-inline: auto; }

  .ibk-note {
    margin-inline: 0;
    border-left: 0;
    border-top: 3px solid var(--pink);
    border-radius: 0 0 10px 10px;
    text-align: center;
  }

  .ibk-card-body > .ibk-button {
    width: 100%;
    max-width: 300px;
  }

  .ibk-more .ibk-button { width: 100%; max-width: 480px; }

  .ibk-band { margin-top: 55px; padding-bottom: 55px; }
  .ibk-band::after { display: none; }

  .ibk-others { padding-top: 55px; }
  
  .ibk-others-header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  
  .ibk-others-header .ibk-button { width: 100%; max-width: 360px; }

  .ibk-others-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
  }

  .ibk-others-grid a {
    justify-content: center;
  }
  
  .ibk-others-grid a svg {
    display: none;
  }

  .ibk-faq { padding-top: 55px; }

  .ibk-faq summary {
    padding: 20px 8px;
    font-size: 17px;
    text-align: center;
  }

  .ibk-faq summary::after {
    position: static;
    display: block;
    margin-top: 8px;
    font-size: 25px;
    line-height: 1;
  }

  .ibk-faq details > p { padding: 0 8px 22px; font-size: 15px; }

  .ibk-cta { padding-block: 40px 60px; }

  .ibk-cta-panel {
    padding: 55px 22px;
    border-radius: 60px 0 60px 0;
  }

  .ibk-cta-panel p { font-size: 15px; }

  .ib-category .ibk-button { min-height: 56px; padding: 15px 20px; font-size: 16px; }

  /* En móvil el listado largo se muestra por partes */
  .ibk-collapsible.is-collapsed .ibk-card[data-ibk-extra] { display: none; }
}

@media (hover: none) {
  .ibk-card:hover,
  .ibk-card:hover .ibk-card-media img,
  .ibk-button:hover,
  .ibk-others-grid a:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ib-category *,
  .ib-category *::before,
  .ib-category *::after {
    transition: none !important;
    animation: none !important;
  }
}