/* José Manuel Ortega — portfolio docente | HTML semántico, Flexbox, mobile-first */
:root {
  color-scheme: light;
  --ink: #17394d;
  --ink-soft: #486577;
  --teal: #1f837e;
  --teal-dark: #146a70;
  --blue: #2b6688;
  --mint: #e7f6ef;
  --ice: #edf6fa;
  --seafoam: #eff8f6;
  --cloud: #f6fafb;
  --paper: #fff;
  --line: #dbe9ec;
  --shadow: 0 15px 40px rgba(26, 69, 79, .09);
  --shadow-hover: 0 22px 55px rgba(26, 69, 79, .14);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 20.24px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-width: 0;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #e9af51;
  outline-offset: 4px;
}

button {
  font: inherit;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3,
h4 {
  line-height: 1.18;
  letter-spacing: -.028em;
}

p {
  max-width: 70ch;
}

section[id] {
  scroll-margin-top: 130px;
}

.site-shell {
  width: 70%;
  max-width: 1260px;
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -110px;
  left: 20px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 10px;
}

.skip-link:focus {
  top: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(210, 228, 231, .7);
  box-shadow: 0 5px 22px rgba(12, 54, 78, .035);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 97px;
  padding-block: 12px;
}

.brand {
  display: flex;
  flex: 0 1 280px;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 69px;
  height: 60px;
  object-fit: cover;
  object-position: center;
  border-radius: 13px;
  border: 1px solid #eff2f3;
  background: #fff;
  box-shadow: 0 5px 13px rgba(22, 61, 70, .07);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand strong {
  font-weight: 800;
  font-size: 18.975px;
  letter-spacing: -.025em;
  line-height: 1.24;
}

.brand small {
  color: var(--ink-soft);
  font-weight: 500;
  line-height: 1.3;
  font-size: 13.915px;
}

.main-nav ul,
.topic-pills,
.quick-facts,
.feature-grid,
.programme-list,
.timeline,
.practices-steps,
.contact-details,
.contact-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 8px;
}

.main-nav a {
  display: inline-flex;
  font-size: 16.445px;
  font-weight: 700;
  color: #35576a;
  white-space: nowrap;
  padding: 11px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--teal-dark);
  border-bottom-color: var(--teal);
}

.language-switch {
  flex: none;
  display: flex;
  gap: 7px;
  align-items: center;
  background: #f3f8f8;
  padding: 5px;
  border: 1px solid #e0eaeb;
  border-radius: 14px;
}

.lang-button {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  width: 46px;
  min-height: 47px;
  padding: 5px 4px 3px;
  background: none;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  color: #476475;
  font-size: 11.385px;
  font-weight: 800;
  line-height: 1;
}

.lang-button img {
  width: 27px;
  height: 18px;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 3px;
}

.lang-button.is-active,
.lang-button[aria-pressed=true] {
  background: #fff;
  border-color: #b9d9d9;
  box-shadow: 0 2px 8px rgba(29, 88, 92, .08);
  color: var(--teal-dark);
}

.lang-button:hover {
  background: #fff;
}

.hero {
  overflow: hidden;
  position: relative;
  padding: 86px 0 0;
  background: radial-gradient(ellipse at 87% 22%, #e0f4ea 0%, rgba(224, 244, 234, 0) 40%), linear-gradient(115deg, #f8fcfc 13%, #e9f4f8 100%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -150px;
  top: -260px;
  border: 75px solid rgba(62, 144, 151, .065);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6.5%;
  padding: 8px 0 74px;
}

.portrait {
  width: min(20vw, 225px);
  flex: none;
  margin: 0;
  align-self: center;
  text-align: center;
}

.portrait img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: 76% 37%;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, .96);
  background: #d9e6e4;
  box-shadow: 0 20px 48px rgba(14, 79, 87, .19), 0 0 0 1px #d9ebea;
}

.portrait figcaption {
  font-size: 13.915px;
  line-height: 1.5;
  color: #577c83;
  font-weight: 700;
  margin-top: 16px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .17em;
  font-size: 13.915px;
  font-weight: 800;
  line-height: 1.5;
  color: var(--teal-dark);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(36.685px, 3.85825vw, 70.84px);
  letter-spacing: -.045em;
  max-width: 650px;
  font-weight: 850;
  margin-bottom: 20px;
  color: #103a52;
}

.hero-intro {
  color: #486472;
  font-size: clamp(17.71px, 1.3662vw, 21.505px);
  line-height: 1.83;
  max-width: 670px;
  margin-bottom: 21px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.topic-pills li {
  font-size: 13.915px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 100px;
  background: #dff1eb;
  color: #226a6e;
  border: 1px solid #d0e7e1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 47px;
  padding: 10px 17px;
  border-radius: 11px;
  font-size: 15.18px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button-primary {
  color: #fff;
  background: linear-gradient(110deg, #176c78, #288f87);
  box-shadow: 0 9px 20px rgba(29, 109, 118, .16);
}

.button-outline {
  color: #1c6371;
  border: 1px solid #a9ced3;
  background: rgba(255, 255, 255, .7);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.quick-facts {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  padding: 22px 28px;
  border: 1px solid #e3eeee;
  box-shadow: 0 15px 30px rgba(21, 73, 89, .06);
  border-radius: 18px 18px 0 0;
}

.quick-facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #365e6a;
  font-size: 15.18px;
  font-weight: 700;
}

.quick-facts svg {
  color: #26977d;
  width: 17px;
  height: 17px;
  flex: none;
}

.section-inner {
  padding-block: 103px;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2 {
  font-size: clamp(32.89px, 3.542vw, 51.865px);
  color: #153c53;
  max-width: 850px;
  margin: 0 0 18px;
  font-weight: 800;
}

.section-heading>p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 17.71px;
  max-width: 730px;
  line-height: 1.84;
}

.features-section {
  background: #fff;
}

.feature-grid {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.feature-grid>li {
  flex: 1;
  min-width: 0;
}

.feature-card {
  height: 100%;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid #deeced;
  border-radius: 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--teal);
  background: var(--mint);
  border-radius: 14px;
  margin-bottom: 23px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 21.505px;
  margin-bottom: 11px;
}

.feature-card p {
  font-size: 15.8125px;
  color: #5b7280;
  line-height: 1.8;
  margin: 0;
}

.experience-section {
  background: linear-gradient(180deg, #f4fafa, #f8fbfd 66%, #fff);
}

.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  padding-block: 4px 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 17px;
  bottom: 45px;
  left: 50%;
  width: 2px;
  background: linear-gradient(#77b8ac, #b7d6dc, #77b8ac);
  transform: translateX(-50%);
}

.timeline-item {
  width: calc(50% - 27px);
  position: relative;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
}

.timeline-item:nth-child(odd) {
  align-self: flex-start;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 4px solid #2b938d;
  box-shadow: 0 0 0 5px #e8f6f3;
  border-radius: 50%;
  top: 37px;
}

.timeline-item:nth-child(odd)::after {
  right: -34px;
}

.timeline-item:nth-child(even)::after {
  left: -34px;
}

.experience-card {
  background: #fff;
  border: 1px solid #daeaed;
  box-shadow: 0 12px 31px rgba(30, 77, 95, .065);
  border-radius: 17px;
  padding: 25px 25px 21px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.experience-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.experience-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.experience-date {
  color: #237a7b;
  font-size: 13.2825px;
  letter-spacing: .055em;
  font-weight: 800;
  text-transform: uppercase;
}

.experience-header h3 {
  font-size: 22.77px;
  line-height: 1.2;
  margin: 0;
}

.experience-bullet {
  display: none;
}

.programme-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.programme-list li {
  position: relative;
  padding-left: 17px;
  font-size: 15.18px;
  color: #526b79;
  line-height: 1.66;
  overflow-wrap: anywhere;
}

.programme-list li::before {
  content: "";
  background: #63afa4;
  width: 6px;
  height: 6px;
  position: absolute;
  left: 0;
  top: .56em;
  border-radius: 50%;
}

.experience-note {
  font-size: 13.915px;
  color: #6b7b7d;
  border-top: 1px solid #e4eff0;
  padding-top: 13px;
  margin-top: 15px;
  font-style: italic;
}

.practices-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
  padding: 34px 40px;
  background: linear-gradient(140deg, #1c5065, #195e65 70%, #297c75);
  color: #fff;
  border-radius: 22px;
  box-shadow: 0 22px 50px rgba(15, 76, 87, .16);
}

.practices-panel .eyebrow {
  color: #9fe1cf;
}

.practices-panel h3 {
  font-size: clamp(25.3px, 2.53vw, 36.685px);
  max-width: 660px;
  margin-bottom: 13px;
}

.practices-panel header>p:not(.eyebrow) {
  color: #e1f0ed;
  font-size: 16.445px;
  line-height: 1.85;
}

.practices-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.practices-steps li {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 11px;
  padding: 10px 12px;
  flex: 1 1 145px;
  font-size: 13.915px;
  font-weight: 700;
}

.practices-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #d4e9e8;
  font-size: 15.18px;
  max-width: 780px;
  margin-bottom: 0;
}

.practices-note svg {
  flex: none;
  color: #a4e4cf;
}

.training-section {
  background: #fff;
}

.training-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.learning-group {
  border: 1px solid #deeaed;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(29, 82, 96, .035);
}

.learning-group[open] {
  border-color: #c5e1de;
  box-shadow: 0 10px 25px rgba(21, 76, 85, .075);
}

.learning-group summary {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 21px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 18.975px;
  font-weight: 800;
  background: #fbfdfd;
}

.learning-group summary::-webkit-details-marker {
  display: none;
}

.learning-group summary:hover {
  background: #f0f9f7;
}

.learning-group[open] summary {
  color: #126e70;
  background: #f1faf7;
}

.summary-title {
  flex: 1;
}

.summary-count {
  background: #dbeeea;
  color: #216f70;
  padding: 3px 9px;
  border-radius: 9px;
  font-size: 13.915px;
  font-weight: 800;
}

.summary-chevron {
  font-size: 29.095px;
  line-height: 1;
  color: #507f85;
  transition: transform .16s;
}

.learning-group[open] .summary-chevron {
  transform: rotate(180deg);
}

.learning-group>ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 21px 34px 25px 47px;
}

.learning-group li {
  color: #506e7d;
  font-size: 15.8125px;
  line-height: 1.63;
  padding-left: 4px;
}

.learning-group li::marker {
  color: #3a9e8c;
}

.contact-section {
  background: radial-gradient(ellipse at 0% 25%, rgba(170, 226, 215, .28), transparent 44%), linear-gradient(140deg, #eaf6f4, #edf5fa);
}

.contact-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 23px;
  border: 1px solid #d9eceb;
  overflow: hidden;
  box-shadow: 0 24px 57px rgba(24, 74, 84, .12);
  max-width: 850px;
}

.contact-card-heading {
  padding: 28px 34px 22px;
  background: linear-gradient(100deg, #fff, #f4faf9);
  border-bottom: 1px solid #e5eeef;
}

.contact-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  color: #fff;
  background: #287e83;
  border-radius: 13px;
}

.contact-card-heading h3 {
  margin: 0 0 6px;
  font-size: 25.3px;
}

.contact-card-heading p {
  font-size: 15.18px;
  color: #637d87;
  margin: 0;
}

.contact-address {
  font-style: normal;
  padding: 26px 34px;
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  row-gap: 23px;
}

.contact-details li {
  width: 50%;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding-right: 16px;
  min-width: 0;
}

.contact-details li>span:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.contact-details strong {
  color: #2a4f62;
  font-size: 13.915px;
}

.contact-details li>span:last-child>span,
.contact-details a {
  font-size: 16.445px;
  overflow-wrap: anywhere;
}

.contact-details a {
  color: #18787b;
  text-decoration: underline;
  text-decoration-color: #b1d5d3;
  text-underline-offset: 3px;
}

.contact-details a:hover {
  color: #0c6168;
}

.contact-icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: #1e777a;
  background: #e8f5f1;
  border-radius: 11px;
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-card-footer {
  padding: 20px 34px 30px;
  border-top: 1px solid #e8f0f0;
}

.contact-card-footer h4 {
  font-size: 16.445px;
  color: #325968;
  margin-bottom: 15px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-links li {
  flex: 1 1 180px;
}

.contact-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  min-height: 48px;
  padding: 10px 11px;
  border: 1px solid #cbdfdf;
  border-radius: 10px;
  color: #226c72;
  font-size: 13.915px;
  font-weight: 800;
  transition: background .17s ease;
}

.contact-links a:hover {
  background: #f0f8f6;
}

.contact-links svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.contact-links svg:last-child {
  margin-left: auto;
  width: 13px;
}

.site-footer {
  background: #133a4d;
  color: #dceeea;
}

.footer-inner {
  padding-block: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.footer-inner p {
  font-size: 13.915px;
  margin: 0;
}

.footer-inner a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.915px;
  font-weight: 800;
  white-space: nowrap;
}

.footer-inner svg {
  width: 15px;
  transform: rotate(-90deg);
}

.micro-bubble {
  display: none;
}

@media (max-width:1300px) {
  .header-inner {
    gap: 14px;
  }

  .brand {
    flex-basis: 235px;
  }

  .main-nav ul {
    column-gap: 13px;
  }

  .main-nav a {
    font-size: 15.18px;
  }
}

@media (max-width:1000px) {
  .site-shell {
    width: 82%;
  }

  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 8px;
  }

  .brand {
    flex: 1 1 auto;
  }

  .main-nav {
    order: 3;
    flex: 1 0 100%;
  }

  .main-nav ul {
    justify-content: space-around;
  }

  .main-nav a {
    padding: 7px 3px;
  }

  .language-switch {
    order: 2;
  }

  section[id] {
    scroll-margin-top: 170px;
  }

  .hero {
    padding-top: 60px;
  }

  .portrait {
    width: min(20vw, 185px);
  }

  .hero-inner {
    gap: 5%;
  }

  .hero h1 {
    font-size: clamp(32.89px, 4.4275vw, 53.13px);
  }

  .section-inner {
    padding-block: 78px;
  }

  .timeline-item {
    width: calc(50% - 22px);
  }

  .timeline-item:nth-child(odd)::after {
    right: -29px;
  }

  .timeline-item:nth-child(even)::after {
    left: -29px;
  }

  .experience-card {
    padding: 21px;
  }
}

@media (max-width:700px) {
  .site-shell {
    width: 88%;
  }

  section[id] {
    scroll-margin-top: 175px;
  }

  .header-inner {
    min-height: 0;
    padding-block: 9px 5px;
  }

  .brand img {
    width: 58px;
    height: 48px;
  }

  .brand strong {
    font-size: 16.445px;
  }

  .brand small {
    font-size: 12.65px;
  }

  .language-switch {
    gap: 3px;
    padding: 3px;
  }

  .lang-button {
    min-height: 40px;
    width: 37px;
  }

  .lang-button img {
    width: 24px;
    height: 16px;
  }

  .main-nav ul {
    gap: 3px;
  }

  .main-nav a {
    font-size: 13.915px;
    padding: 8px 4px;
  }

  .hero {
    padding-top: 37px;
  }

  .hero-inner {
    gap: 17px;
    padding-bottom: 38px;
    align-items: flex-start;
  }

  .portrait {
    width: 20vw;
    margin-top: 15px;
  }

  .portrait img {
    border-width: 4px;
  }

  .portrait figcaption {
    font-size: 10.12px;
    margin-top: 8px;
  }

  .hero h1 {
    font-size: clamp(29.095px, 6.1985vw, 40.48px);
  }

  .hero-intro {
    font-size: 15.18px;
  }

  .eyebrow {
    font-size: 12.0175px;
    letter-spacing: .12em;
  }

  .topic-pills {
    gap: 6px;
    margin-bottom: 17px;
  }

  .topic-pills li {
    font-size: 11.385px;
    padding: 5px 8px;
  }

  .button {
    min-height: 38px;
    font-size: 12.65px;
    padding: 8px 10px;
  }

  .button svg {
    width: 14px;
  }

  .quick-facts {
    padding: 16px;
    gap: 12px;
  }

  .quick-facts li {
    font-size: 12.65px;
    flex: 1 1 145px;
  }

  .section-inner {
    padding-block: 64px;
  }

  .section-heading h2 {
    font-size: 32.89px;
  }

  .feature-grid {
    flex-direction: column;
    gap: 12px;
  }

  .feature-card {
    padding: 22px;
  }

  .feature-icon {
    margin-bottom: 12px;
  }

  .timeline {
    gap: 14px;
    padding-left: 22px;
  }

  .timeline::before {
    left: 6px;
    transform: none;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    align-self: stretch;
    width: 100%;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    top: 31px;
    left: -22px;
    right: auto;
    width: 14px;
    height: 14px;
  }

  .experience-card {
    padding: 22px;
  }

  .practices-panel {
    padding: 24px;
  }

  .contact-details li {
    width: 100%;
  }

  .contact-card-heading,
  .contact-address,
  .contact-card-footer {
    padding-inline: 24px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

@media (max-width:420px) {
  .site-shell {
    width: 90%;
  }

  .hero-inner {
    flex-wrap: wrap;
  }

  .portrait {
    width: 20vw;
    margin: 0;
  }

  .portrait figcaption {
    display: none;
  }

  .hero-copy {
    flex: 1 1 70%;
  }

  .hero h1 {
    font-size: 27.83px;
  }

  .hero-intro {
    font-size: 14.5475px;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 7px;
  }

  .section-heading h2 {
    font-size: 29.095px;
  }

  .experience-card {
    padding: 17px;
  }

  .experience-header h3 {
    font-size: 20.24px;
  }

  .programme-list li {
    font-size: 13.915px;
  }

  .learning-group summary {
    padding: 16px 12px;
    font-size: 15.18px;
  }

  .learning-group>ul {
    padding: 15px 16px 20px 25px;
  }

  .learning-group li {
    font-size: 14.5475px;
  }

  .contact-links li {
    flex-basis: 100%;
  }

  .main-nav a {
    font-size: 12.65px;
  }
}

@media (max-width:299px) {
  .site-shell {
    width: 94%;
  }

  .brand {
    gap: 5px;
  }

  .brand img {
    width: 38px;
    height: 37px;
    border-radius: 8px;
  }

  .brand strong {
    font-size: 12.65px;
  }

  .brand small {
    font-size: 10.12px;
  }

  .lang-button {
    width: 30px;
    min-height: 35px;
    font-size: 10.12px;
  }

  .lang-button img {
    width: 19px;
    height: 13px;
  }

  .main-nav ul {
    justify-content: space-between;
    gap: 2px 5px;
  }

  .main-nav a {
    font-size: 11.385px;
    padding: 6px 1px;
  }

  .hero {
    padding-top: 38px;
  }

  .hero-inner {
    flex-direction: column;
    gap: 10px;
  }

  .portrait {
    width: 20vw;
  }

  .hero h1 {
    font-size: 26.565px;
  }

  .button {
    width: 100%;
  }

  .topic-pills li {
    font-size: 10.12px;
  }

  .quick-facts li {
    font-size: 11.385px;
  }

  .feature-card {
    padding: 18px;
  }

  .section-heading h2 {
    font-size: 26.565px;
  }

  .practices-panel {
    padding: 18px;
  }

  .practices-steps li {
    flex-basis: 100%;
  }

  .contact-card-heading,
  .contact-address,
  .contact-card-footer {
    padding-inline: 13px;
  }

  .contact-card-heading h3 {
    font-size: 20.24px;
  }

  .contact-details a {
    font-size: 13.915px;
  }

  .micro-bubble {
    display: block;
    position: fixed;
    bottom: 15px;
    right: 10px;
    z-index: 20;
    max-width: 155px;
    background: #123e51;
    border: 1px solid #8fd5c5;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    color: #fff;
    padding: 9px 10px;
    border-radius: 11px;
  }

  .micro-bubble::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: -7px;
    background: #123e51;
    width: 12px;
    height: 12px;
    transform: rotate(45deg);
    border-right: 1px solid #8fd5c5;
    border-bottom: 1px solid #8fd5c5;
  }

  .micro-bubble p {
    font-size: 11.385px;
    line-height: 1.42;
    margin: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Trilingual Talentia-inspired palette. Original, non-cloned layout. */
:root {
  --ink: #173856;
  --ink-soft: #516b7a;
  --teal: #078c92;
  --teal-dark: #006b7d;
  --blue: #244e83;
  --mint: #e6f8f1;
  --ice: #e8f3fb;
  --seafoam: #e8f7f5;
  --cloud: #f8fbfe;
  --line: #d5e8ed;
}

.site-shell {
  width: 60%;
  max-width: 1150px
}

.hero {
  background: radial-gradient(ellipse at 80% 5%, rgba(124, 220, 205, .24), transparent 46%), linear-gradient(116deg, #f9fcfe, #e9f7fa)
}

.site-header {
  border-bottom: 2px solid #e1f1ed
}

.brand img {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  width: 92px;
  height: auto;
  aspect-ratio: 1698/926
}

.brand {
  flex-basis: 260px;
  gap: 11px
}

.language-switch {
  flex: none;
  gap: 5px
}

.lang-button {
  width: 44px;
  min-height: 46px
}

.lang-button img {
  width: 27px;
  height: 18px
}

.hero-inner {
  gap: 5%;
  justify-content: center
}

.portrait {
  width: min(20vw, 225px);
  max-width: 20vw
}

.portrait img {
  object-position: 100% 40%;
  border-radius: 50%;
}

.hero-copy,
.section-heading,
.feature-card,
.contact-card,
.practices-panel,
.recommendation-card {
  text-align: center
}

.hero-copy p,
.section-heading p,
.section-heading h2,
.hero h1,
.practices-panel p,
.practices-panel h3 {
  margin-inline: auto
}

.hero-actions,
.topic-pills,
.practices-steps,
.quick-facts,
.contact-links {
  justify-content: center
}

.hero-intro {
  font-size: clamp(17.71px, 1.4927vw, 21.505px)
}

.section-heading>p:not(.eyebrow) {
  font-size: 18.975px
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center
}

.feature-card p {
  font-size: 17.0775px
}

.experience-card {
  text-align: left;
  padding: 3%;
}

.experience-header,
.programme-list {
  text-align: left
}

.programme-list li {
  font-size: 17.0775px
}

.learning-group summary {
  justify-content: center
}

.learning-group>ul {
  list-style: none;
  padding: 23px 24px 28px;
  text-align: center
}

.learning-group li {
  font-size: 16.445px
}

.learning-group li:not(:last-child) {
  padding-bottom: 13px;
  border-bottom: 1px solid #edf3f5
}

.contact-card {
  margin-inline: auto
}

.contact-card-heading {
  display: flex;
  flex-direction: column;
  align-items: center
}

.contact-details {
  justify-content: center
}

.contact-details li {
  text-align: left
}

.contact-card-footer h4 {
  text-align: center
}

.practices-panel {
  align-items: center;
  background: linear-gradient(115deg, #133e65, #067e85)
}

.practices-steps li {
  text-align: center
}

.practices-note {
  justify-content: center
}

.references-section {
  background: #fff
}

.recommendation-card {
  max-width: 830px;
  margin-inline: auto;
  padding: 30px 34px;
  background: linear-gradient(125deg, #eaf5fb, #f2faf7);
  border: 1px solid #cfe5ed;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(34, 68, 84, .1)
}

.recommendation-card figure {
  margin: 0
}

.recommendation-card blockquote {
  margin: 0 0 20px
}

.recommendation-card blockquote p {
  font-size: clamp(22.77px, 2.4035vw, 34.155px);
  line-height: 1.5;
  font-family: Georgia, 'Times New Roman', serif;
  color: #194b63;
  margin: 0 auto;
  max-width: 33ch
}

.recommendation-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15.18px;
  color: #3f6678
}

.recommendation-card figcaption span:empty {
  display: none
}

.recommendation-card>p {
  font-size: 16.445px;
  margin: 20px auto;
  max-width: 58ch;
  color: #526e7b
}

.recommendation-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #006f7e;
  font-size: 16.445px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px
}

.recommendation-link:hover {
  color: #173d68
}

@media(max-width:1350px) {
  .site-shell {
    width: 60%
  }

  .brand {
    flex-basis: 225px
  }

  .main-nav ul {
    gap: 12px
  }

  .main-nav a {
    font-size: 15.18px
  }
}

@media(max-width:1050px) {
  .site-shell {
    width: 78%
  }

  .header-inner {
    flex-wrap: wrap
  }

  .main-nav {
    order: 3;
    flex: 1 0 100%
  }

  .language-switch {
    order: 2
  }

  .brand {
    flex: 1 1 auto
  }
}

@media(max-width:700px) {
  .site-shell {
    width: 90%
  }

  .brand img {
    width: 75px
  }

  .lang-button {
    width: 39px;
    min-height: 42px
  }

  .hero-inner {
    flex-wrap: wrap;
    gap: 20px
  }

  .portrait {
    width: min(20vw, 150px);
    align-self: center
  }

  .hero-copy {
    flex: 1 1 63%
  }

  .hero-copy h1 {
    font-size: clamp(27.83px, 5.566vw, 39.215px)
  }

  .hero-intro {
    font-size: 15.8125px
  }

  .experience-card {
    padding: 21px
  }

  .programme-list li {
    font-size: 15.8125px
  }
}

@media(max-width:430px) {
  .site-shell {
    width: 92%
  }

  .brand img {
    width: 54px
  }

  .brand {
    gap: 6px
  }

  .brand strong {
    font-size: 13.915px
  }

  .brand small {
    font-size: 10.12px
  }

  .language-switch {
    gap: 2px;
    padding: 2px
  }

  .lang-button {
    width: 32px;
    min-height: 35px;
    padding: 3px
  }

  .lang-button img {
    width: 22px;
    height: 15px
  }

  .hero-inner {
    flex-direction: column
  }

  .portrait {
    width: 20vw;
    max-width: 20vw
  }

  .hero-copy {
    width: 100%
  }

  .hero h1 {
    font-size: 29.095px
  }

  .section-heading>p:not(.eyebrow) {
    font-size: 16.445px
  }

  .experience-card {
    padding: 18px
  }

  .programme-list li {
    font-size: 15.18px
  }

  .recommendation-card {
    padding: 24px 17px
  }
}

@media(max-width:299px) {
  .site-shell {
    width: 95%
  }

  .brand img {
    width: 34px
  }

  .brand strong {
    font-size: 11.385px
  }

  .brand small {
    font-size: 8.855px
  }

  .lang-button {
    width: 26px;
    min-height: 32px
  }

  .lang-button img {
    width: 18px;
    height: 12px
  }

  .hero-inner {
    gap: 10px
  }

  .portrait {
    width: 20vw
  }

  .hero h1 {
    font-size: 26.565px
  }

  .recommendation-card {
    padding: 17px 12px
  }

  .recommendation-card blockquote p {
    font-size: 21.505px
  }
}

/* Centre the quick-facts panel despite its list reset. */
.site-shell.quick-facts {
  margin-inline: auto
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

/* Enlace accesible a la acreditación oficial, manteniendo el aspecto de las métricas */
.quick-facts a.accreditation-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #82bfb8;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.quick-facts a.accreditation-link:hover,
.quick-facts a.accreditation-link:focus-visible {
  color: var(--teal-dark);
  text-decoration-color: currentColor;
}

/* 2026-11-07 · Cabecera estable al alternar ES/EN/IT.
   Dos filas reservadas y navegación en cuatro columnas: ninguna traducción
   cambia la altura, se recorta ni requiere desplazamiento dentro del header. */
.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "brand languages" "navigation navigation";
  grid-template-rows: minmax(74px, auto) minmax(58px, auto);
  align-items: center;
  justify-content: stretch;
  column-gap: 14px;
  row-gap: 0;
  min-height: 0;
  padding-block: 8px;
}

.header-inner .brand {
  grid-area: brand;
  width: 100%;
  flex: none;
  min-width: 0;
}

.brand-copy {
  min-width: 0;
}

.header-inner .language-switch {
  grid-area: languages;
  justify-self: end;
  order: initial;
}

.header-inner .main-nav {
  grid-area: navigation;
  width: 100%;
  min-width: 0;
  flex: none;
  order: initial;
}

.header-inner .main-nav ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 6px;
}

.header-inner .main-nav li {
  min-width: 0;
}

.header-inner .main-nav a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 3px;
  line-height: 1.28;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

section[id] {
  scroll-margin-top: 167px;
}

/* Solo se reduce a la mitad el espacio por encima, no el inferior. */
.section-inner {
  padding-top: 51.5px;
}

.hero {
  padding-top: 43px;
}

.hero-inner {
  padding-top: 4px;
}

@media (max-width: 1000px) {
  .section-inner {
    padding-top: 39px;
  }

  .hero {
    padding-top: 30px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    grid-template-rows: minmax(76px, auto) minmax(58px, auto);
    padding-block: 6px;
  }

  .header-inner .main-nav a {
    min-height: 58px;
    padding: 7px 2px;
  }

  .section-inner {
    padding-top: 32px;
  }

  .hero {
    padding-top: 18.5px;
  }

  section[id] {
    scroll-margin-top: 165px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    grid-template-rows: minmax(76px, auto) minmax(64px, auto);
  }

  .header-inner .main-nav a {
    min-height: 64px;
    padding: 7px 2px;
  }

  section[id] {
    scroll-margin-top: 175px;
  }
}

@media (max-width: 299px) {
  .header-inner {
    grid-template-rows: minmax(83px, auto) minmax(68px, auto);
    column-gap: 6px;
  }

  .header-inner .main-nav ul {
    gap: 2px;
  }

  .header-inner .main-nav a {
    min-height: 68px;
    padding: 7px 0;
  }

  .hero {
    padding-top: 19px;
  }

  section[id] {
    scroll-margin-top: 183px;
  }
}

/* En pantallas ultracompactas, dos columnas legibles evitan partir o recortar palabras. */
@media (max-width: 374px) and (min-width: 300px) {
  .header-inner {
    grid-template-rows: minmax(98px, auto) minmax(88px, auto);
  }

  section[id] {
    scroll-margin-top: 211px;
  }
}

@media (max-width: 374px) {
  .header-inner .main-nav ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .header-inner .main-nav a {
    min-height: 42px;
    padding: 6px 2px;
  }
}

@media (max-width: 299px) {
  .header-inner {
    grid-template-rows: minmax(75px, auto) minmax(88px, auto);
  }

  section[id] {
    scroll-margin-top: 188px;
  }
}

/* Referencias públicas: recomendación formal y comentarios de la comunidad claramente diferenciados. */
.community-reactions {
  margin: 40px auto 0;
  max-width: 1050px
}

.community-heading {
  text-align: center;
  margin-bottom: 22px
}

.community-heading h3 {
  font-size: clamp(24px, 2.3vw, 36px);
  color: var(--ink);
  line-height: 1.3;
  margin: 6px auto 14px
}

.community-heading .eyebrow {
  margin: 0 auto 6px
}

.community-notice {
  font-size: clamp(16px, 1.25vw, 19px);
  max-width: 68ch;
  margin: 0 auto;
  color: var(--ink-soft);
  line-height: 1.65
}

.community-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0
}

.community-grid>li {
  flex: 1 1 calc(50% - 20px);
  min-width: 0;
  display: flex
}

.community-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  background: #f6fafc;
  border: 1px solid #d4e7ec;
  border-radius: 18px;
  padding: 26px;
  box-shadow: 0 9px 25px rgba(24, 61, 87, .055);
  text-align: left;
  overflow-wrap: anywhere
}

.community-card header {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start
}

.community-card header strong {
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--ink);
  line-height: 1.3
}

.community-card header small {
  font-size: clamp(14px, 1.1vw, 17px);
  color: #456a78
}

.community-card p {
  font-size: clamp(16px, 1.26vw, 20px);
  color: #395b6d;
  line-height: 1.65;
  margin: 0
}

.community-card .recommendation-link {
  margin-top: auto;
  text-align: left;
  font-size: clamp(15px, 1.13vw, 18px);
  line-height: 1.5
}

@media(max-width:780px) {
  .community-grid>li {
    flex-basis: 100%
  }

  .community-card {
    padding: 22px
  }
}

@media(max-width:374px) {
  .community-card {
    padding: 17px
  }

  .community-reactions {
    margin-top: 25px
  }
}


/* 08-11-2026: quinto enlace en menu, sección de reseñas independiente.
   5 columnas amplias o 3 columnas en dos filas en pantallas pequeñas.
   Las filas se dimensionan igual para ES, EN e IT, sin recortes ni scroll interno. */
.header-inner .main-nav ul {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.header-inner .main-nav a {
  overflow-wrap: normal;
  word-break: normal;
}

@media (max-width: 600px) {
  .header-inner {
    grid-template-rows: minmax(76px, auto) minmax(94px, auto);
  }

  .header-inner .main-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 5px;
  }

  .header-inner .main-nav a {
    min-height: 44px;
    padding: 7px 2px;
  }

  section[id] {
    scroll-margin-top: 204px;
  }
}

@media (max-width: 374px) {
  .header-inner {
    grid-template-rows: minmax(98px, auto) minmax(96px, auto);
  }

  .header-inner .main-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 3px;
  }

  .header-inner .main-nav a {
    min-height: 45px;
    padding: 6px 1px;
  }

  section[id] {
    scroll-margin-top: 214px;
  }
}

@media (max-width: 299px) {
  .header-inner {
    grid-template-rows: minmax(83px, auto) minmax(96px, auto);
  }

  .header-inner .main-nav ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px 2px;
  }

  section[id] {
    scroll-margin-top: 208px;
  }
}