/* =====================================================================
   Fundación XPROF — /foundation
   Scoped refinements for details Elementor controls cannot express.
   Loaded ONLY on the three foundation language pages and their
   Xpro header/footer templates. Never affects the rest of the site.
   ===================================================================== */

.xprof-foundation {
  --xf-bg: #F3F4F4;
  --xf-surface: #FFFFFF;
  --xf-surface-alt: #F7F1E3;
  --xf-border: #C7C9CC;
  --xf-border-soft: #E3E4E5;
  --xf-text: #151515;
  --xf-text-2: #5F6469;
  --xf-accent: #F2B705;
  --xf-accent-soft: #F7D64C;
  --xf-inv-bg: #151515;
  --xf-inv-text: #F3F4F4;
  --xf-inv-muted: #A8ACB0;
  --xf-link-hover: #8A6702;
  --xf-font-head: "Montserrat", "Segoe UI", Helvetica, sans-serif;
  --xf-font-body: "Atkinson Hyperlegible", "Segoe UI", Helvetica, sans-serif;
  --xf-radius: 18px;
  --xf-measure: 68ch;
  background: var(--xf-bg);
  color: var(--xf-text);
  font-family: var(--xf-font-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

/* The site kit paints a dark theme; the foundation pages are light. */
body.xprof-foundation-page {
  background: #F3F4F4;
  color: #151515;
}

.xprof-foundation p { margin: 0; }
.xprof-foundation img { max-width: 100%; display: block; }
.xprof-foundation ul { list-style: none; }

/* Anchor navigation clears the sticky header */
.xprof-foundation .e-con[id] { scroll-margin-top: 118px; }

/* Focus visibility (WCAG 2.4.7) */
.xprof-foundation a:focus-visible,
.xprof-foundation button:focus-visible,
.xprof-foundation input:focus-visible,
.xprof-foundation select:focus-visible,
.xprof-foundation textarea:focus-visible,
.xprof-foundation summary:focus-visible {
  outline: 3px solid #151515;
  outline-offset: 3px;
  border-radius: 2px;
}
.xf-contact a:focus-visible,
.xf-contact button:focus-visible,
.xf-contact input:focus-visible,
.xf-contact select:focus-visible,
.xf-contact textarea:focus-visible { outline-color: #F2B705; }

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

/* ---------- measure ---------- */
.xf-measure, .xf-measure .elementor-widget-container > * { max-width: var(--xf-measure); }
.xf-measure-narrow, .xf-measure-narrow .elementor-widget-container > * { max-width: 44ch; }
.xf-measure-block { max-width: var(--xf-measure); }

/* ---------- eyebrow: hairline rule before the label ---------- */
.xf-eyebrow .elementor-heading-title::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--xf-accent);
  vertical-align: middle;
  margin-right: .6rem;
}

/* ---------- links ----------
   hello-elementor's reset.css paints every <a> #CC3366. Repaint links in ink
   black on the light surfaces; the inverse panels re-override to white below.
   Xpro widgets nest their text in divs/spans that inherit from the anchor, so
   the colour is set on the anchor and allowed to cascade. */
.xprof-foundation a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.xprof-foundation a,
.xprof-foundation a:visited { color: var(--xf-text); }
.xprof-foundation a:hover { color: var(--xf-link-hover); text-decoration-color: var(--xf-accent); }

/* footer link lists */
.xprof-foundation .xf-footer-list a,
.xprof-foundation .xf-footer-list a .xpro-infolist-content,
.xprof-foundation .xf-footer-list a .xpro-infolist-title { color: var(--xf-text); }
.xprof-foundation .xf-footer-list a:hover,
.xprof-foundation .xf-footer-list a:hover .xpro-infolist-content,
.xprof-foundation .xf-footer-list a:hover .xpro-infolist-title { color: var(--xf-link-hover); }

/* wordmark: brand name in ink, the qualifier muted */
.xprof-foundation .xf-wordmark a,
.xprof-foundation .xf-wordmark a .xpro-heading-title { color: var(--xf-text); }
/* Xpro renders the centre slot as .xpro-title-focus and colours it with the
   site kit's purple primary; the foundation wordmark wants muted grey. */
.xprof-foundation .xf-wordmark .xpro-title-focus,
.xprof-foundation .xf-wordmark .xpro-heading-title-center { color: var(--xf-text-2); }

/* inverse panels keep light links */
.xprof-foundation .xf-contact a,
.xprof-foundation .xf-contact a:visited { color: #fff; }
.xprof-foundation .xf-contact a:hover { color: var(--xf-accent-soft); }
.xprof-foundation .xf-trust a { color: var(--xf-inv-text); }
.xprof-foundation .xf-skip { color: #fff; }

/* ---------- header ---------- */
.xf-header { position: sticky; top: 0; z-index: 60; }
.xf-header .xf-wordmark .xpro-heading-title { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.xf-wordmark a { text-decoration: none; }
.xf-auto { width: auto !important; flex: 0 0 auto !important; }
.xf-langbar { width: auto !important; flex: 0 0 auto !important; }
.xf-lang .xpro-button { min-height: 34px; text-decoration: none; }
.xf-nav .xpro-horizontal-menu-wrapper a { text-decoration: none; }

@media (max-width: 1024px) {
  .xf-header-inner { row-gap: 12px; }
  .xf-header-right { width: 100%; justify-content: space-between !important; }
}
@media (max-width: 560px) {
  .xf-langbar { padding: 2px; }
  .xf-lang .xpro-button { padding: 6px 9px !important; font-size: 11px !important; }
}

/* ---------- hero ---------- */
.xf-hero-media img {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(.15);
  border-radius: var(--xf-radius);
}
.xf-hero-media figcaption {
  margin-top: .5rem;
  font-size: 13px;
  line-height: 1.5;
  color: var(--xf-text-2);
  text-align: left;
}
.xf-hero-badge { position: relative; z-index: 2; }
@media (min-width: 1025px) {
  .xf-hero-badge { margin-left: -56px; max-width: 20rem; }
}
@media (max-width: 1024px) {
  .xf-hero-badge { margin-top: 20px !important; margin-left: 0; }
}
.xf-h1 .elementor-heading-title { max-width: 17ch; }

/* ---------- trust strip ---------- */
.xf-trust { color: var(--xf-inv-text); }
@media (max-width: 1024px) { .xf-trust .e-con-inner > .e-con { flex-direction: row !important; } }

/* ---------- cards ---------- */
.xf-card { transition: border-color 180ms ease, transform 180ms ease; }
.xf-card:hover { border-color: var(--xf-accent); }
.xf-pillar .elementor-icon-box-title { margin-bottom: 8px; }

/* ---------- programmes ---------- */
.xf-prog-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xf-prog-media { align-self: stretch; }
/* the media half must bleed to the card edge — no widget padding/inset */
.xf-prog-media .elementor-widget-image,
.xf-prog-media .elementor-widget-image > .elementor-widget-container,
.xf-prog-media figure,
.xf-prog-media .elementor-image { width: 100%; margin: 0; padding: 0; }
@media (min-width: 1025px) {
  .xf-prog-media .elementor-widget-image,
  .xf-prog-media .elementor-widget-container,
  .xf-prog-media figure,
  .xf-prog-media img { height: 100%; }
}
@media (max-width: 1024px) {
  .xf-prog-img img { aspect-ratio: 9 / 7; }
  .xf-prog-media { order: -1 !important; }
}
.xf-tag .elementor-heading-title {
  display: inline-flex; align-items: center;
  border: 1px solid var(--xf-border); border-radius: 999px;
  padding: .3rem .8rem; background: var(--xf-surface);
}
.xf-checklist .elementor-icon-list-item { align-items: flex-start; }
.xf-checklist .elementor-icon-list-icon { margin-top: .18em; }

/* ---------- stats ---------- */
@media (max-width: 767px) {
  .xf-stat { border-right-width: 0 !important; border-bottom: 1px solid var(--xf-border) !important; }
  .xf-stat:last-child { border-bottom: 0 !important; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  .xf-stat { width: 50% !important; border-bottom: 1px solid var(--xf-border) !important; }
  .xf-stat:nth-child(2n) { border-right-width: 0 !important; }
  .xf-stat:nth-last-child(-n+2) { border-bottom: 0 !important; }
}
.xf-notice strong { font-family: var(--xf-font-head); }

/* ---------- method timeline ---------- */
.xf-stepnum-wrap { width: auto !important; flex: 0 0 auto !important; }
.xf-stepnum .elementor-widget-container > p,
.xf-stepnum p {
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 1px solid var(--xf-border); border-radius: 999px;
  background: var(--xf-surface); color: var(--xf-accent);
  font-family: var(--xf-font-head); font-weight: 700; font-size: 15px;
}
@media (max-width: 1024px) {
  .xf-step > .e-con:last-child { flex-direction: column !important; row-gap: 8px !important; }
  .xf-step > .e-con:last-child > .e-con { width: 100% !important; }
}

/* ---------- cooperation table ---------- */
.xf-table-wrap { overflow-x: auto; }
.xf-table table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 16px; }
.xf-table th, .xf-table td {
  text-align: left; padding: 18px 24px;
  border-bottom: 1px solid var(--xf-border-soft); vertical-align: top;
  font-family: var(--xf-font-body); color: var(--xf-text);
}
.xf-table thead th {
  font-family: var(--xf-font-head); font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--xf-text-2);
  border-bottom: 1px solid var(--xf-border); background: transparent;
}
.xf-table tbody tr:last-child td { border-bottom: 0; }
.xf-table tbody tr:hover { background: var(--xf-bg); }
.xf-table tbody td:first-child { font-family: var(--xf-font-head); font-weight: 600; width: 24%; }

/* ---------- testimonials ---------- */
.xf-testimonial .elementor-testimonial-wrapper { text-align: left; }
.xf-testimonial .elementor-testimonial-content { font-size: 20px; line-height: 1.5; }
.xf-testimonial .elementor-testimonial-content::before { content: "\201C"; }
.xf-testimonial .elementor-testimonial-content::after { content: "\201D"; }
.xf-testimonial .elementor-testimonial-meta {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--xf-border);
}
.xf-testimonial .elementor-testimonial-image { display: none; }
.xf-testimonial .elementor-testimonial-name { display: block; }
.xf-testimonial .elementor-testimonial-job { color: var(--xf-text-2); font-size: 13px; }

/* ---------- FAQ ---------- */
.xf-faq .e-n-accordion-item { border-top: 1px solid var(--xf-border); }
.xf-faq .e-n-accordion-item:last-of-type { border-bottom: 1px solid var(--xf-border); }
.xf-faq .e-n-accordion-item-title { padding: 20px 0; cursor: pointer; }
.xf-faq .e-n-accordion-item-title-text { font-family: var(--xf-font-head); }
.xf-faq-wrap { max-width: 56rem; }

/* ---------- contact + WPForms on the inverse panel ---------- */
.xf-contact { color: var(--xf-inv-text); }
.xf-contact .elementor-icon-list-text { color: var(--xf-inv-text); }
.xf-contact .elementor-icon-list-item a { color: #fff; }
.xf-contact .elementor-icon-list-item a:hover { color: var(--xf-accent-soft); }
.xf-contact .elementor-icon-list-item { align-items: flex-start; }
.xf-contact .elementor-icon-list-icon { margin-top: .18em; }

/* WPForms Lite 2.x renders with "modern markup": colours come from CSS custom
   properties on the container, set from the form's own style settings with a
   specificity our rules can't beat. Retheme the variables for the dark panel
   instead of fighting them — this is the supported hook and survives updates. */
.xf-formwrap .wpforms-container {
  --wpforms-label-color: #F3F4F4;
  --wpforms-label-sublabel-color: #C6CACE;
  --wpforms-label-error-color: #FFC9C9;
  --wpforms-label-size-font-size: 16px;
  --wpforms-label-size-line-height: 20px;
  --wpforms-label-size-sublabel-font-size: 13px;
  --wpforms-field-text-color: #151515;
  --wpforms-field-background-color: #FFFFFF;
  --wpforms-field-border-color: #C7C9CC;
  --wpforms-field-border-size: 1px;
  --wpforms-field-border-radius: 8px;
  --wpforms-field-menu-color: #FFFFFF;
  --wpforms-field-size-font-size: 17px;
  --wpforms-field-size-line-height: 22px;
  --wpforms-field-size-input-height: 48px;
  --wpforms-field-size-padding-h: 14px;
  --wpforms-button-background-color: #F2B705;
  --wpforms-button-border-color: #F2B705;
  --wpforms-button-text-color: #151515;
  --wpforms-button-border-radius: 8px;
  --wpforms-button-size-font-size: 16px;
  --wpforms-button-size-height: 48px;
  --wpforms-button-size-padding-h: 24px;
}
/* belt and braces, in case a future release stops reading a variable */
.xprof-foundation .xf-formwrap .wpforms-field-label,
.xprof-foundation .xf-formwrap .wpforms-field-checkbox label,
.xprof-foundation .xf-formwrap legend.wpforms-field-label { color: #F3F4F4 !important; }
.xprof-foundation .xf-formwrap .wpforms-field-sublabel,
.xprof-foundation .xf-formwrap .wpforms-field-description { color: #C6CACE !important; }
.xprof-foundation .xf-formwrap .wpforms-required-label { color: var(--xf-accent) !important; }
.xprof-foundation .xf-formwrap input,
.xprof-foundation .xf-formwrap select,
.xprof-foundation .xf-formwrap textarea { color: #151515 !important; }
.xprof-foundation .xf-formwrap input::placeholder,
.xprof-foundation .xf-formwrap textarea::placeholder { color: #6B7075 !important; opacity: 1; }

.xf-formwrap .wpforms-container { margin: 0; }
/* WPForms nests fields inside .wpforms-field-container, so the grid belongs
   there — putting it on .wpforms-form leaves every field in one half-width
   column. .xf-half is set per-field via the field's CSS class in WPForms. */
.xf-formwrap .wpforms-form { display: block; }
.xf-formwrap .wpforms-field-container { display: grid; grid-template-columns: 1fr; gap: 20px; }
.xf-formwrap .wpforms-field { padding: 0; }
@media (min-width: 640px) {
  .xf-formwrap .wpforms-field-container { grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .xf-formwrap .wpforms-field { grid-column: 1 / -1; }
  .xf-formwrap .wpforms-field.xf-half { grid-column: auto; }
}
/* anti-spam honeypots are rendered 1x1px; keep them out of the grid flow */
.xf-formwrap .wpforms-field:has(input[tabindex="-1"]) {
  position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; margin: -1px !important;
  padding: 0 !important; border: 0 !important;
}
.xf-formwrap .wpforms-field-label {
  font-family: var(--xf-font-body); font-size: 16px; font-weight: 700;
  color: var(--xf-inv-text); margin-bottom: 6px; display: block;
}
.xf-formwrap .wpforms-field-sublabel,
.xf-formwrap .wpforms-field-description {
  font-size: 13px; color: var(--xf-inv-muted); letter-spacing: .04em;
}
.xf-formwrap .wpforms-required-label { color: var(--xf-accent); }
.xf-formwrap input[type=text],
.xf-formwrap input[type=email],
.xf-formwrap input[type=url],
.xf-formwrap input[type=tel],
.xf-formwrap select,
.xf-formwrap textarea {
  font-family: var(--xf-font-body) !important; font-size: 18px !important;
  color: var(--xf-text) !important; background: #fff !important;
  border: 1px solid var(--xf-border) !important; border-radius: 8px !important;
  padding: .75rem .9rem !important; min-height: 48px !important; width: 100% !important;
  max-width: 100% !important; box-shadow: none !important;
}
.xf-formwrap textarea { min-height: 8rem !important; resize: vertical; }
.xf-formwrap input:focus, .xf-formwrap select:focus, .xf-formwrap textarea:focus {
  border-color: var(--xf-accent) !important; outline: 3px solid var(--xf-accent); outline-offset: 2px;
}
.xf-formwrap .wpforms-field-checkbox ul,
.xf-formwrap .wpforms-field-radio ul { margin: 0; padding: 0; list-style: none; }
.xf-formwrap .wpforms-field-checkbox li { display: flex; gap: 12px; align-items: flex-start; }
.xf-formwrap .wpforms-field-checkbox input[type=checkbox] {
  width: 22px; height: 22px; min-height: 0; flex: none; margin-top: .15rem; accent-color: var(--xf-accent);
}
.xf-formwrap .wpforms-field-checkbox label { font-weight: 400 !important; font-size: 16px !important; color: var(--xf-inv-text) !important; }
.xf-formwrap .wpforms-submit {
  font-family: var(--xf-font-body) !important; font-weight: 700 !important; font-size: 16px !important;
  background: var(--xf-accent) !important; color: var(--xf-text) !important;
  border: 1px solid var(--xf-accent) !important; border-radius: 8px !important;
  min-height: 48px !important; padding: .75rem 1.5rem !important; cursor: pointer;
  transition: background 180ms ease;
}
.xf-formwrap .wpforms-submit:hover { background: #fff !important; border-color: #fff !important; }
.xf-formwrap .wpforms-error { color: #FFD9D9 !important; font-size: 14px; }
.xf-formwrap .wpforms-confirmation-container-full {
  background: rgba(242,183,5,.12) !important; border: 1px solid var(--xf-accent) !important;
  color: var(--xf-inv-text) !important; border-radius: 8px; padding: 20px;
}

/* ---------- footer ---------- */
.xf-footer-list a, .xf-footer-list .xpro-info-list-title { text-decoration: none; }
.xf-footer-list a:hover .xpro-info-list-title { color: var(--xf-text) !important; text-decoration: underline; text-decoration-color: var(--xf-accent); }
.xf-socials .xpro-social-icon-item a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--xf-border); border-radius: 999px; background: var(--xf-surface);
}
.xf-socials .xpro-social-icon-item a:hover { border-color: var(--xf-accent); background: var(--xf-surface-alt); }
@media (max-width: 767px) {
  .xf-footer-bottom { flex-direction: column !important; align-items: flex-start !important; }
  .xf-footer-bottom .elementor-widget-text-editor { text-align: left !important; }
}

/* ---------- skip link ---------- */
.xf-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #151515; color: #fff; padding: .75rem 1.25rem; text-decoration: none;
  font-family: var(--xf-font-body); font-size: 16px;
}
.xf-skip:focus { left: 1rem; top: .5rem; color: #fff; }

/* programme media bleeds to the card edge */
.xf-prog-media{padding:0 !important;}
