/* Global Connect · phone and tablet fixes over the pages' own stylesheets.
   Loaded on every page, after the page's CSS (added by _build/site-chrome/build.py). Each block names the page or
   component it fixes and why; the Webflow breakpoints are 991px (tablet), 767px and 479px (phones). */

/* ── Webflow hero text blocks (home, Global Connect Mobility). The export gives them fixed widths (950px, 1200px,
      370px) and fixed heading heights, so a longer title was cut off on tablets and small phones, and the page
      scrolled sideways. ── */
@media screen and (max-width: 991px) {
  .frame-37 { width: 100%; max-width: 100%; padding-left: 40px; padding-right: 40px; box-sizing: border-box; }
  .frame-515074 { width: 100%; max-width: 100%; }
  .h1.is-regular, .h1.is-extrabold-italic, .h1.is-bold { height: auto; line-height: 1.2; }
}
@media screen and (max-width: 479px) {
  .frame-37 { padding-left: 0; padding-right: 0; }
}
/* Laptops 992–1199px: the home title's 1200px block was wider than the screen (the page scrolled sideways by up to
   104px); it now takes the width there is, its lines keep their spacing and may wrap. */
@media screen and (min-width: 992px) and (max-width: 1199px) {
  .frame-515074 { width: 100%; max-width: 100%; }
  .frame-515074 .h1.is-regular, .frame-515074 .h1.is-extrabold-italic, .frame-515074 .h1.is-bold { height: auto; }
}

/* ── Hero logos of the product pages on phones: one size for the six (Mobility, Learning, Education, Advisor,
      Consulting, Languages), 375px where the column allows it, else the column's width (the narrowest column is
      the screen minus 49px). Their images are all lockup edge to edge, with the GC mark at the same share of the
      width (10.6–10.8%), so the same width looks the same size; each page keeps its alignment.
      Tablets (768–1099px): Mobility, Learning and Education follow Learning's half-column size (Mobility's was
      76px smaller at 768px); from 1100px those three are 475px. ── */
@media screen and (max-width: 767px) {
  img.image-6[src*="GlobalConnectMobility"],
  .p-learning .p-hero-logo,
  .hero-logo[src$="logo-education-white.png"],
  .p-advisor .adv-hero__logo,
  .hero-logo[src$="logo-consulting.png"],
  .p-languages .hero-logo { width: min(375px, calc(100vw - 50px)); max-width: 100%; height: auto; }
}
@media screen and (min-width: 768px) and (max-width: 1099px) {
  img.image-6[src*="GlobalConnectMobility"],
  .p-learning .p-hero-logo,
  .hero-logo[src$="logo-education-white.png"] { width: min(475px, calc(50vw - 24px)); max-width: 100%; height: auto; }
}

/* ── Hero text under the logo on phones: Advisor, Languages and Consulting follow Global Connect Education's
      (title 34/42 with its highlighted words bold, intro 16/24, 24px between logo, title and intro). Each page keeps
      its alignment, colours, the style of its highlighted words and Consulting its «Servicios» label. ── */
@media screen and (max-width: 767px) {
  .p-advisor .adv-hero h1 { margin-top: 24px; }
  .p-languages .hero-title { font-size: 34px; line-height: 42px; }
  .p-languages .hero-text { margin-top: 24px; font-size: 16px; line-height: 24px; }
  .hero-in .hero-copy > h1 { font-size: 34px; line-height: 42px; }
  .hero-in .hero-copy > h1 + p { margin-top: 8px; }   /* 16px gap of the hero + 8px */
}

/* ── Global Connect Languages · buttons on phones. The page had two sizes (46px with 12px text, 62px with 16px);
      now one, the phone size of the other product pages (Consulting, Learning: 54px tall, 14px text, 24px sides).
      The two hero buttons stack at full width, as the two-button heroes of Education and Consulting do. ── */
@media screen and (max-width: 767px) {
  .p-languages main .btn { min-height: 54px; padding: 16px 24px; border-radius: 30px; font-size: 14px; line-height: 20px; }
  .p-languages .hero-btns { align-self: stretch; flex-direction: column; align-items: stretch; gap: 16px; }
  .p-languages .hero-btns .btn { width: 100%; }
}

/* ── Slider dots that a finger can hit (touch screens: iPad, phones). The home's news dots (20×10px) and the
      Consulting services dots (22×11px) were too thin: each button is now 24px tall, with the same pill drawn
      inside it (::before), so they look the same. Their spacing (26px and 29px apart) already meets WCAG 2.5.8. ── */
.gc-news__dot, .gc-news__dot.is-active { position: relative; height: 24px; background: transparent; }
.gc-news__dot::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 10px; border-radius: 99px; background: #c9cdd2; }
.gc-news__dot.is-active::before { background: #141414; }
.svc-dots { height: 24px; }
.svc-dot, .svc-dot[aria-current="true"] { position: relative; height: 24px; background: transparent; }
.svc-dot::before { content: ""; position: absolute; left: 0; right: 0; top: 6.5px; height: 11px; border-radius: 20px; background: rgba(0, 0, 0, .5); }
.svc-dot[aria-current="true"]::before { background: var(--ink, #141518); }

/* ── Global Connect Mobility · plans. On tablets the four plan cards shared a 700px row (text down to 9px); they
      now take two per row. On phones a card no longer has a fixed height, so its list never spills out (e.g. with
      the accessibility tool's larger text). ── */
@media screen and (max-width: 991px) {
  .pricing20_component { width: 100%; max-width: 700px; }
  .pricing20_plan .body-small { font-size: 12px; line-height: 16px; }
}
@media screen and (min-width: 480px) and (max-width: 991px) {
  .pricing20_grid-list { display: grid; grid-template-columns: 1fr 1fr; }
  .pricing20_grid-list > .pricing-card-gradient { width: 100%; height: auto; box-sizing: border-box; }
  .pricing20_grid-list .pricing20_plan { width: auto; height: 100%; box-sizing: border-box; }
  .pricing20_grid-list .pricing20_feature-list { width: auto; }
}
@media screen and (max-width: 479px) {
  .pricing20_plan { height: auto; }
  .pricing22_row.header .button-6.small, .pricing22_row.header .button-7.small { font-size: 12px; padding-left: 8px; padding-right: 8px; }
}
/* Comparison table: on 320–400px phones the four «Comenzar / Get started» buttons were wider than the screen and
   pushed the first column off it; they now fit their column (two lines if needed). */
@media screen and (max-width: 400px) {
  .pricing22_row.header .pricing22_row-content { min-width: 0; padding-left: 2px; padding-right: 2px; }
  .pricing22_row.header .button-6.small, .pricing22_row.header .button-7.small {
    width: 100%; min-width: 0; box-sizing: border-box; padding: 8px 4px; font-size: 11px; line-height: 13px; white-space: normal; text-align: center;
  }
}

/* ── Nosotros. On tablets the culture cards kept a 350px maximum height (their text ran out of the card), and the
      team photos kept their natural width inside wider cards, so the name bar floated below them; the team list
      was also wider (740px) than a tablet's content. ── */
@media screen and (max-width: 991px) {
  .layout241_component { height: auto; }
  .layout241_component .grid-3 { align-items: stretch; }
  .layout241_component .culture_card { height: auto; max-height: none; }
  .team20_list { width: 100%; max-width: 740px; }
  .team20_item > div:not([class]) { width: 100%; height: 100%; }
  .team20_item .image-8, .team20_item .image-9 { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
}
@media screen and (max-width: 767px) {
  .team20_item { width: 100%; max-width: 340px; }
}

/* ── Nosotros · «Nuestro equipo» on landscape iPads and small laptops (992–1299px). Webflow's two columns cannot
      shrink below 350px + 740px, so with less than ~1100px of content the second founder's card was cut off at the
      screen's edge. There the section stacks as on tablets (title and text centred above, the two cards below, at
      their desktop size). ── */
@media screen and (min-width: 992px) and (max-width: 1299px) {
  .team_content.principal { display: flex; flex-direction: column; align-items: center; gap: 50px; }
  .team20_content-left.principal { align-items: center; }
  .body-regular.is-regular.team { text-align: center; }
  .team20_list { max-width: 100%; }
}

/* ── Portrait iPads (768–991px): sections that fell back to the phone's single narrow column (lots of empty space
      at the sides) use the tablet's width — Learning's three plans, Education's three goals and Consulting's three
      values side by side, as from 992px up. ── */
@media screen and (min-width: 768px) and (max-width: 991px) {
  .gc-lp__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; width: 100%; }
  .gc-lp__card { padding-left: 16px; padding-right: 16px; }
  .goal-cards { flex-direction: row; align-items: stretch; width: 100%; }
  .goal-cards > .goal-card { flex: 1 1 0; min-width: 0; width: auto; }
  .value-cards { flex-wrap: nowrap; width: 100%; }
  .value-cards > .value-card { flex: 1 1 0; min-width: 0; width: auto; height: auto; min-height: 260px; }
  .value-card h3 { white-space: normal; text-align: center; }
}

/* ── Home · «Somos miembros y participantes». The title had no side margin, so on small phones it touched the
      screen edges. ── */
@media screen and (max-width: 479px) {
  .section_logos.is-partners .padding-section-large > .h3 { padding-left: 20px; padding-right: 20px; box-sizing: border-box; }
}

/* ── Home · news. Justified text left wide gaps between words on narrow screens, and on tablets the slide kept
      its two columns, leaving a narrow text column: image above text up to 991px. ── */
@media screen and (max-width: 991px) {
  .gc-news__p { text-align: left !important; }
  .gc-news__slide { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Blog · the search box took half the width of a phone. ── */
@media screen and (max-width: 767px) {
  .blog-search-input { max-width: 100%; }
}
/* Blog · category filters. They stayed on one line that scrolled sideways, so on phones only «Ver todos» showed
   and nothing hinted at the rest; they now wrap onto as many lines as needed (inline flow, so the list markup and
   its role stay as they are). */
@media screen and (max-width: 991px) {
  .content-filter_form { display: block; overflow: visible; }
  .content-filter_form .w-dyn-list, .content-filter_form .content-filter_filter-list { display: inline; }
  .content-filter_form > .content-filter_filter_button, .content-filter_form .w-dyn-item { display: inline-block; vertical-align: middle; margin: 0 8px 10px 0; }
  .content-filter_form .content-filter_filter_button { width: auto; }
}

/* ── Global Connect Advisor · the interest tiles of the preview were too narrow for their labels on phones. ── */
@media screen and (max-width: 479px) {
  .gc-af__tiles { gap: 6px; }
  .gc-af__tile strong { font-size: 11px; line-height: 14px; margin: 8px 6px 6px; overflow-wrap: anywhere; hyphens: auto; }
}

/* ── Search results (Webflow's default page, which has no design of its own). ── */
.gc-search { max-width: 1240px; margin: 0 auto; padding: 4rem 20px 5rem; font-family: Figtree, sans-serif; color: #141518; }
.gc-search h1 { font-size: 2.5rem; line-height: 1.2; font-weight: 700; margin: 0 0 1.5rem; }
.gc-search form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 2rem; }
.gc-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gc-search .w-input { flex: 1 1 260px; height: 48px; margin: 0; padding: 12px 20px; border: 0; border-radius: 50px; background: #f7f7f7; font: inherit; font-size: 16px; }
.gc-search .w-button { height: 48px; padding: 0 28px; border-radius: 50px; background: #141518; color: #fff; font: inherit; font-size: 16px; }
@media screen and (max-width: 479px) {
  .gc-search { padding-top: 2.5rem; }
  .gc-search h1 { font-size: 1.75rem; }
  .gc-search .w-button { width: 100%; }
}

/* ── Headings for agents and screen readers (added by _build/agents/build.py, data.json → headings). ──
   A Webflow title wrapper made a real <h1>: same look as the <div> it was (the tag's own browser and Webflow
   defaults are reset; the element's classes still style it). */
h1:where(.gc-h) { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; }
/* An <h1> only screen readers and agents see, on pages whose visible title is an image. */
.gc-visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Search results (site-tools.js) and the 404 page. ── */
.gc-search__status { margin: 0 0 1rem; color: #4a4d55; }
.gc-search__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.gc-search__list a { font-size: 1.15rem; font-weight: 700; color: #141518; text-decoration: underline; text-underline-offset: 3px; }
.gc-search__list p { margin: .35rem 0 0; color: #4a4d55; line-height: 1.5; }
.gc-404__text { font-size: 1.1rem; line-height: 1.5; margin: 0 0 1.5rem; max-width: 640px; }
.gc-404__links a { color: #141518; text-decoration: underline; text-underline-offset: 3px; }

/* ── Contact · other ways to reach us. ── */
.gc-contact-more { max-width: 560px; margin: 2.5rem auto 0; font-family: Figtree, sans-serif; color: #141518; text-align: left; }
.gc-contact-more__title { margin: 0 0 .75rem; font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
.gc-contact-more__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: 1rem; line-height: 1.5; }
.gc-contact-more__list a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.gc-contact-more__intro { margin: 0 0 1rem; line-height: 1.5; }
