@font-face {
  font-family: "Raleway";
  src: url("fuentes/Raleway-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fuentes/PTSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fuentes/PTSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --negro: #1d1d1d;
  --blanco: #ffffff;
  --gris_oscuro: #1d1d1d;
  --gris: #969d9d;
  --gris_2: #bebebe;
  --verde: #89a84f;
  --gris_in: #969d9d;
  --font-titulares: "Raleway", Arial, sans-serif;
  --font-texto: "PT Sans", Arial, sans-serif;
  --container-max: 1280px;
  --section-spacing: 58px;
  --section-content-gap: 100px;
  --header-sticky-height: 88px;
  --header-sticky-logo-width: 150px;
  --margen-lateral: 24px;
  --margen-lateral-movil: 16px;
  --margen-inferior-texto: 13px;
  --interlineado-texto: 1.40;
  --peso-regular: 400;
  --peso-semibold: 600;
  --fondo-seccion: color-mix(in srgb, var(--gris_2) 40%, var(--blanco));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: var(--header-sticky-height); }
html.page-ready { scroll-behavior: smooth; }
body { margin: 0; color: var(--negro); background: var(--blanco); font: 400 16px/1.40 var(--font-texto); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a, button { transition: color .3s ease, background-color .3s ease, border-color .3s ease; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button, input, textarea { border-radius: 0; }
button { background: none; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--verde); outline-offset: 5px; }
a:hover, button:hover { color: var(--verde); text-decoration: none; }
strong, b { font-weight: 600; }
figure { margin: 0; }
.no-wrap { white-space: nowrap; }
h1, h2 { margin: 0 0 30px; font-family: var(--font-titulares); font-size: 75px; line-height: .95; font-weight: 400; letter-spacing: -2.5px; color: var(--negro); }
h2 { font-size: 65px; }
h3 { margin: 0 0 22px; font-size: 21px; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 13px; }
.container { width: min(var(--container-max), calc(100% - 2 * var(--margen-lateral))); margin-inline: auto; }
.nav-text { margin: 0 0 13px; color: var(--gris_2); font-size: 19px; font-weight: 400; line-height: 1.35; }
.slogan { font-family: var(--font-titulares); color: var(--negro); font-size: 38px; font-weight: 400; line-height: 1.15; }
.section-tag { margin: 0 0 var(--section-content-gap); color: var(--negro); font-size: 28px; font-weight: 400; line-height: 1.40; }
.text-large { margin: 0 0 13px; font-size: 19px; font-weight: 400; line-height: 1.35; }
.body-text { margin: 0 0 13px; font-size: 16px; font-weight: 400; line-height: 1.40; }
.arrow-button { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding: 0; border: 0; margin: 0 0 13px; color: var(--negro); font: 600 16px/1.40 var(--font-texto); text-align: left; }
/* Compensar el centro óptico de PT Sans respecto a su caja de línea. */
.arrow-button .arrow-icon { position: relative; top: .08em; width: 35px; height: 15px; flex-shrink: 0; transition: transform .3s ease; }
.arrow-button:hover .arrow-icon { transform: translateX(5px); }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 20; padding: 12px; background: var(--blanco); }
.skip-link:focus { top: 16px; }
.site-header { --header-height: 145px; position: fixed; inset: 0 0 auto; height: var(--header-height); background: transparent; z-index: 5; transition: background-color .3s ease, height .3s ease; }
.site-header.is-scrolled { height: var(--header-sticky-height); background: var(--negro); }
.site-header.is-scrolled .brand { width: var(--header-sticky-logo-width); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 35px; }
.brand { display: block; flex-shrink: 0; width: 200px; aspect-ratio: 192.691 / 78.625; color: var(--gris_2); transition: color 1.2s ease, width .3s ease; }
.brand svg { display: block; width: 100%; height: 100%; animation: brand-enter 1.1s cubic-bezier(.22, 1, .36, 1) .1s both; }
.brand.is-lit { color: var(--blanco); }
.brand:hover, .brand:focus-visible { color: var(--blanco); }
.logo-symbol { fill: currentColor; transition: fill .3s ease; }
.brand .logo-symbol { transition-duration: 1.2s; }
.brand.is-lit .logo-symbol { fill: var(--blanco); }
.brand:hover .logo-symbol, .brand:focus-visible .logo-symbol,
.footer-brand:hover .logo-symbol, .footer-brand:focus-visible .logo-symbol,
.mobile-menu-brand .logo-symbol { fill: var(--verde); }
@keyframes brand-enter {
  from { opacity: 0; transform: translateY(calc(-100% - 100px)); }
  to { opacity: 1; transform: translateY(0); }
}
.main-navigation { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.main-navigation .nav-text { display: inline-flex; align-items: center; min-height: 44px; margin: 0; white-space: nowrap; }
.main-navigation [aria-current], .footer-nav [aria-current] { color: var(--blanco); font-weight: 600; }
.main-navigation a:active, .footer-nav a:active { color: var(--blanco); }
.main-navigation a:hover, .main-navigation a:focus-visible,
.mobile-menu a:hover, .mobile-menu a:focus-visible,
.mobile-menu-close:hover, .mobile-menu-close:focus-visible,
.menu-toggle:hover { color: var(--blanco); }
.languages { display: flex; align-items: center; flex-shrink: 0; gap: 4px; min-height: 44px; margin: 0; white-space: nowrap; color: var(--gris_2); font-size: 16px; line-height: 1.35; }
.languages > a, .languages > span { display: inline-flex; align-items: center; min-height: 44px; }
.languages [aria-current] { color: var(--blanco); font-weight: 600; }
.languages a:hover, .languages [aria-current]:hover { color: var(--blanco); }
.menu-toggle { display: none; }
body.menu-open { overflow: hidden; }
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(420px, calc(100% - 24px));
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  padding: 30px 32px;
  border: 0;
  background: var(--negro);
  color: var(--gris_2);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease, overlay .45s allow-discrete, display .45s allow-discrete;
}
.mobile-menu[open] { display: flex; flex-direction: column; opacity: 1; transform: translateX(0); }
.mobile-menu::backdrop {
  background-color: transparent;
  transition: background-color .4s ease, overlay .45s allow-discrete, display .45s allow-discrete;
}
.mobile-menu[open]::backdrop { background-color: color-mix(in srgb, var(--negro) 65%, transparent); }
@starting-style {
  .mobile-menu[open] { opacity: 0; transform: translateX(100%); }
  .mobile-menu[open]::backdrop { background-color: transparent; }
}
.mobile-menu-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; }
.mobile-menu-brand { display: block; width: 160px; color: var(--gris_2); }
.mobile-menu-brand svg { display: block; width: 100%; height: auto; }
.mobile-menu-close { flex-shrink: 0; width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; border: 0; }
.mobile-menu-close svg { width: 24px; height: 24px; }
.mobile-menu-navigation { display: flex; flex-direction: column; margin-block: 15px 45px; }
.mobile-menu-navigation .nav-text { display: flex; align-items: center; min-height: 60px; margin: 0; padding-block: 16px; border-bottom: 1px solid color-mix(in srgb, var(--gris_2) 25%, transparent); }
.mobile-menu-navigation [aria-current] { color: var(--blanco); font-weight: 600; }
.hero { position: relative; height: 100vh; height: 100dvh; min-height: 0; background: var(--negro); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity 1.2s ease; }
.hero-image.is-loaded { opacity: 1; }
.hero::after { content: ""; position: absolute; inset: 0; background: #000; opacity: .15; pointer-events: none; }
.hero-inner { height: 100%; position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding-block: 145px 115px; }
.hero-copy { --hero-heading-gap: 30px; --hero-title-size: 75px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--hero-heading-gap) 32px; padding-bottom: 30px; }
.hero-copy > h1 { grid-column: 1; grid-row: 1; }
.hero-copy > .text-large { grid-column: 1 / -1; grid-row: 2; }
/* Compensar el espacio de Raleway bajo la base visible de las letras del H1. */
.hero-actions { grid-column: 2; grid-row: 1; align-self: end; display: flex; flex-wrap: wrap; gap: 16px; margin: 0; transform: translateY(calc(var(--hero-title-size) * -.11)); }
.hero-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; border: 1px solid var(--blanco); color: var(--blanco); font-size: 16px; line-height: 1.35; text-align: center; }
.hero-button-primary { background: var(--verde); border-color: var(--verde); }
.hero-button:hover, .hero-button:focus-visible { background: var(--blanco); border-color: var(--blanco); color: var(--verde); }
/* Contraste del texto sobre fotografía. */
.hero h1, .hero .text-large, .hero .slogan { color: var(--blanco); }
.hero h1 { margin-bottom: 0; }
.hero .text-large { max-width: 1040px; }
.hero .slogan { position: absolute; bottom: 28px; left: 0; margin: 0; max-width: calc(100% - 80px); }
.hero-scroll { position: absolute; bottom: 24px; right: 0; width: 48px; height: 58px; display: grid; place-items: center; color: var(--blanco); }
.hero-scroll svg { width: 24px; height: 42px; animation: scroll-cue 1.8s ease-in-out infinite; }
@keyframes scroll-cue {
  0%, 100% { transform: translateY(-4px); }
  50% { transform: translateY(6px); }
}
.section { padding-block: var(--section-spacing); }
.projects { overflow: hidden; overflow: clip; }
.projects-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 50px; align-items: start; }
.projects-intro .text-large { margin-bottom: 20px; }
.project-gallery {
  --project-edge: max(var(--margen-lateral), calc((100vw - var(--container-max)) / 2));
  --project-inset: max(0px, calc(104px - var(--project-edge)));
  --project-gap: 28px;
  min-width: 0;
  scroll-margin-top: 60px;
}
/* La ventana llega al borde de pantalla; la ficha principal conserva su alineación. */
.project-viewport { width: calc(100% + var(--project-edge)); overflow: hidden; touch-action: pan-y pinch-zoom; }
.project-track { display: flex; align-items: stretch; gap: var(--project-gap); width: calc(100% - var(--project-edge) - var(--project-inset)); transition: transform .65s cubic-bezier(.22, 1, .36, 1); }
.project-slide { display: grid; flex: 0 0 100%; min-width: 0; grid-template-columns: minmax(0, 1fr) 235px; min-height: 420px; background: var(--blanco); opacity: .25; transition: opacity .65s ease; }
.project-slide.is-active { opacity: 1; }
.project-slide > img { width: 100%; height: 420px; object-fit: cover; }
.project-description { padding: 35px 23px; border: 1px solid var(--gris_2); border-left: 0; }
.project-location { font-size: 12px; line-height: 1.40; margin-bottom: 20px; }
.project-description h3 { margin-bottom: 24px; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; width: calc(100% - var(--project-inset)); margin-top: 30px; }
.gallery-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.arrow-icon { display: block; width: 35px; height: 15px; color: var(--negro); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; padding: 5px; }
.gallery-controls .arrow-icon { color: inherit; }
.gallery-controls .icon-button:is(:hover, :focus-visible) { color: var(--verde); }
.gallery-pagination { display: flex; align-items: center; gap: 0; }
.gallery-dot { display: grid; place-items: center; width: 24px; height: 44px; border: 0; padding: 0; }
.gallery-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gris_2); transition: background-color .3s ease; }
.gallery-dot[aria-current="true"]::after { background: var(--verde); }
.muted-section { background: var(--fondo-seccion); }
.group-layout { display: grid; grid-template-columns: 350px minmax(0,1fr); gap: 40px; }
.group-content { --group-columns: repeat(4, minmax(0, 1fr)); --group-column-gap: 30px; min-width: 0; }
.group-overview, .values, .certifications { display: grid; grid-template-columns: var(--group-columns); column-gap: var(--group-column-gap); }
.group-overview > .text-large { grid-column: span 2; }
.stat-number { font-family: var(--font-titulares); font-weight: 800; font-size: 48px; line-height: 1; margin-bottom: 12px; }

/* El contenido original sigue disponible para lectores de pantalla. */
.motion-text { position: relative; }
.motion-source { opacity: 0; }
.motion-visual { position: absolute; inset: 0; display: block; pointer-events: none; }
/* El texto visible define su composición tanto durante como después del efecto. */
.motion-inline > .motion-source { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.motion-inline > .motion-visual { position: static; inset: auto; }
/* Mantener el flujo inline conserva kerning, espacios tras <br> e hifenación. */
.motion-word, .motion-letter { display: inline; position: relative; top: 0; }
.motion-letter-word { display: inline; }
.motion-pending .motion-word, .motion-pending .motion-letter { opacity: 0; }
/* Los glifos provisionales se superponen: las letras definitivas conservan su ancho. */
.hero h1 .motion-letter[data-scramble] { color: transparent; }
.hero h1 .motion-letter[data-scramble]::after { content: attr(data-scramble); position: absolute; left: 0; top: 50%; width: 100%; overflow: hidden; color: var(--blanco); line-height: inherit; text-align: center; transform: translateY(-50%); }
.motion-digit { display: inline-block; position: relative; overflow: hidden; overflow: clip; vertical-align: top; height: 1lh; }
.motion-digit-space { opacity: 0; }
.motion-reel { position: absolute; inset: 0 0 auto; display: block; text-align: center; }
.motion-reel > span { display: block; height: 1lh; line-height: inherit; }
.former-number s.motion-text { display: inline-block; }
.former-number .motion-visual { white-space: pre; }
.process-phase.phase-enter-pending, .carbon-records > .card-enter-pending { opacity: 0; }
.process-section { overflow-x: clip; }
@media (prefers-reduced-motion: reduce), print {
  .motion-text:not(.motion-inline) > .motion-source { opacity: 1; }
  .motion-text:not(.motion-inline) > .motion-visual { display: none; }
  .motion-inline .motion-word, .motion-inline .motion-letter { opacity: 1 !important; top: 0 !important; }
  .hero h1 .motion-letter[data-scramble] { color: inherit; }
  .hero h1 .motion-letter[data-scramble]::after { display: none; }
  .sports-enter-pending li { opacity: 1 !important; transform: none !important; }
  .photo-reveal-pending { opacity: 1 !important; clip-path: none !important; transform: none !important; }
  .phase-enter-pending, .card-enter-pending { opacity: 1 !important; transform: none !important; }
}

.stat .body-text { margin-top: 22px; }
.values { margin-top: 70px; scroll-margin-top: 50px; }
.value { padding-top: 34px; border-top: 2px solid var(--negro); }
.value h3 { font-size: 18px; min-height: 44px; }
.certifications { --certification-height: 60px; --certification-row-height: 80px; margin-top: 80px; }
.certifications figure { display: grid; grid-template-rows: var(--certification-row-height) auto; justify-items: center; align-content: start; gap: 18px; text-align: center; }
.certifications img { align-self: end; object-fit: contain; object-position: center bottom; width: auto; max-width: 100%; height: var(--certification-height); }
.certifications .certification-environment { height: var(--certification-row-height); }
.certifications figcaption { align-self: start; }
.certifications figcaption, .interior-certifications figcaption { font: 400 12px/1.4 var(--font-texto); }
.sponsorship { position: relative; overflow-x: clip; padding-bottom: 0; min-height: 850px; }
.sponsorship .sports-enter-pending li, .photo-reveal-pending { opacity: 0; }
.sponsorship-layout { display: grid; grid-template-columns: 280px minmax(0,1fr) 430px; gap: 30px; align-items: start; }
.sponsorship-copy { padding-right: 50px; }
.sports-collage { position: relative; width: 100%; max-width: 430px; height: 510px; }
.sports-list { position: relative; z-index: 1; margin: 0; padding: 0; list-style: none; font-family: var(--font-titulares); font-size: 65px; line-height: .95; color: var(--verde); font-weight: 400; letter-spacing: -2.5px; }
.sports-list li { display: flex; align-items: center; gap: 28px; white-space: nowrap; }
.sports-list li::before { content: ""; width: 24px; height: 32px; flex-shrink: 0; background: url("../img/Topo-Intxausti.svg") center / contain no-repeat; }
.sport-photo { position: absolute; object-fit: cover; }
.sport-cesta { top: -130px; right: 0; width: 216px; height: 90px; }
.sport-cycling { top: 230px; right: 48px; width: 176px; height: 101px; }
.sport-car { top: 315px; left: 0; width: 158px; height: 90px; }
.sport-rugby { top: 418px; left: 198px; width: 130px; height: 84px; }
.sponsorship-main-image { width: 49%; height: auto; margin-top: -120px; }
.team { overflow-x: clip; }
.team-layout { display: grid; grid-template-columns: 390px minmax(0,1fr); gap: 65px; align-items: start; }
.team-copy .text-large { margin-bottom: 35px; }
.team-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.team-actions .arrow-button { gap: 10px; font-size: 16px; }
.team-actions .arrow-button .arrow-icon { width: 28px; }
.team-images { position: relative; padding: 0 20% 15px 0; }
.team-primary { width: 100%; height: 420px; object-fit: cover; }
.team-secondary { position: absolute; right: 0; top: 37%; width: 38%; height: 230px; object-fit: cover; }
.contact { display: grid; grid-template-columns: 1fr 1fr; max-width: 1920px; margin-inline: auto; }
.contact-content { padding: var(--section-spacing) 50px var(--section-spacing) max(24px, calc((100vw - 1280px) / 2)); min-width: 0; }
.contact-content > .text-large { margin-bottom: 70px; }
.contact-form { margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 30px; margin-bottom: 28px; }
.line-field { display: flex; align-items: baseline; gap: 10px; font-size: 16px; font-weight: 400; line-height: 1.4; }
.line-field input { min-width: 0; width: 100%; padding: 4px 0; background: transparent; border: 0; border-bottom: 1px solid var(--gris); transition: border-color .3s ease; }
.message-field { display: grid; gap: 12px; font-size: 16px; font-weight: 400; line-height: 1.4; }
.message-field textarea { width: 100%; padding: 10px; border: 1px solid var(--gris); resize: vertical; min-height: 90px; background: transparent; transition: border-color .3s ease; }
.line-field input:focus, .message-field textarea:focus { outline: none; box-shadow: none; }
.line-field input:focus { border-bottom-color: var(--verde); }
.message-field textarea:focus { border-color: var(--verde); }
.checkbox-field { display: flex; align-items: center; gap: 8px; margin: 15px 0 25px; font-size: 12px; }
.checkbox-field input { accent-color: var(--verde); flex-shrink: 0; margin: 0; width: 16px; height: 16px; }
.contact-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 32px; font-size: 16px; line-height: 1.4; }
.contact-offices, .contact-direct { display: flex; flex-wrap: wrap; align-items: center; max-width: 100%; gap: 12px 24px; }
.contact-direct { gap: 8px; }
.contact-phone { display: inline-flex; align-items: center; gap: 8px; }
.contact-links a { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; overflow-wrap: anywhere; }
.contact-offices a, .contact-phone a { white-space: nowrap; }
.contact-links img { flex-shrink: 0; }
.contact-offices a:hover img, .contact-offices a:focus-visible img { animation: office-bounce .65s ease; }
.contact-phone a:hover img, .contact-phone a:focus-visible img { transform-origin: 50% 65%; animation: phone-ring .7s ease-in-out; }
@keyframes office-bounce {
  0%, 100% { transform: translateY(0); }
  35% { transform: translateY(-5px); }
  60% { transform: translateY(0); }
  80% { transform: translateY(-2px); }
}
@keyframes phone-ring {
  0%, 100% { transform: rotate(0); }
  15%, 45% { transform: rotate(-14deg); }
  30%, 60% { transform: rotate(14deg); }
  75% { transform: rotate(-7deg); }
  90% { transform: rotate(7deg); }
}
.contact-image { width: 100%; height: 100%; min-height: 950px; object-fit: cover; }
.site-footer { background: var(--negro); color: var(--gris_2); padding: 60px 0 25px; font-size: 16px; }
.site-footer a:hover, .site-footer a:focus-visible { color: var(--blanco); }
.footer-grid { display: grid; grid-template-columns: repeat(4, max-content); justify-content: space-between; align-items: start; gap: 32px; }
.footer-brand { display: block; width: 160px; margin-bottom: 25px; color: var(--blanco); }
.footer-brand svg { display: block; width: 100%; height: auto; }
.footer-about p { max-width: 340px; }
.footer-lead { display: block; text-wrap: balance; }
.footer-nav { display: flex; flex-direction: column; gap: 10px; padding-top: 15px; }
.footer-addresses, .footer-contact { padding-top: 15px; }
.footer-addresses address { font-style: normal; margin-bottom: 24px; }
.footer-contact > a { display: block; overflow-wrap: anywhere; }
.footer-contact .social-link { display: flex; align-items: center; gap: 20px; margin-top: 27px; color: var(--gris); }
.footer-contact .social-link:hover, .footer-contact .social-link:focus-visible { color: var(--blanco); }
.footer-contact .social-link svg { display: block; width: 110px; height: 31px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--gris); margin-top: 90px; padding-top: 20px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.linkedin-tab { position: absolute; right: 0; top: 30%; display: block; width: 43px; color: var(--blanco); z-index: 4; transform: translateY(var(--linkedin-offset, 0px)); }
.linkedin-tab svg { display: block; width: 100%; height: auto; }
.linkedin-background { fill: var(--verde); transition: fill .3s ease; }
.linkedin-tab:hover, .linkedin-tab:focus-visible { color: var(--verde); }
.linkedin-tab:hover .linkedin-background, .linkedin-tab:focus-visible .linkedin-background { fill: var(--blanco); }

/* Espaciados y escala responsive. */
@media (min-width: 1600px) {
  .site-header { --header-height: 165px; }

  .sponsorship { min-height: 1030px; }
  .sponsorship-main-image { max-height: 520px; object-fit: cover; }
  .contact-content { padding-left: max(24px,calc((100vw - 1280px) / 2)); }
}
@media (max-width: 1250px) {
  .hero-copy { display: block; }
  .hero h1 { margin-bottom: var(--hero-heading-gap); }
  .hero-actions { margin: 24px 0 0; transform: none; }
  .header-inner { gap: 20px; }
  .main-navigation { gap: 18px; }
  .languages { font-size: 14px; }
  .projects-layout { grid-template-columns: 400px minmax(0,1fr); gap: 30px; }
  .project-slide { grid-template-columns: minmax(0,1fr) 200px; }
  .project-description { padding: 25px 16px; }
  .group-layout { grid-template-columns: 350px minmax(0,1fr); gap: 30px; }
  .group-content { --group-column-gap: 20px; }
  .sponsorship-layout { gap: 25px; }
  .team-layout { grid-template-columns: 340px minmax(0,1fr); gap: 35px; }
  .contact-content { padding-right: 35px; }
  .footer-grid { gap: 30px; }
}
@media (max-width: 1120px) {
  .menu-toggle { display: flex; align-items: center; flex-shrink: 0; gap: 15px; margin: 0 0 0 auto; padding: 0; border: 0; color: var(--gris_2); min-height: 44px; line-height: 1.35; }
  .menu-icon { position: relative; flex-shrink: 0; width: 25px; height: 15px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
  .menu-icon::after { content: ""; position: absolute; top: 6px; left: 0; width: 25px; border-top: 1px solid currentColor; }
  .main-navigation { display: none; }
  .site-header { --header-height: 115px; }
  .group-layout { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) and (max-width: 1179px) {
  .sponsorship-layout { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 40px 32px; }
  .sponsorship-title { grid-column: 1 / -1; }
  .sponsorship-copy { grid-column: 1; grid-row: 2; }
  .sports-collage { grid-column: 2; grid-row: 2; justify-self: end; }
  .sponsorship-main-image { margin-top: 0; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  h1, h2 { font-size: 60px; letter-spacing: -1.5px; }
  .slogan { font-size: 34px; }
  .hero-copy { padding-right: 20px; }
  .projects-layout { grid-template-columns: 280px minmax(0,1fr); }
  .sports-collage { height: 430px; }
  .sports-list { font-size: 60px; letter-spacing: -1.5px; }
  .sports-list li { gap: 18px; }
  .sports-list li::before { width: 20px; height: 26px; }
  .sport-cesta { top: -110px; width: 172px; height: 72px; }
  .sport-cycling { top: 185px; right: 12px; width: 140px; height: 80px; }
  .sport-car { top: 255px; width: 126px; height: 72px; }
  .sport-rugby { top: 340px; left: 158px; width: 104px; height: 67px; }
  .sponsorship-main-image { width: 47%; height: 320px; object-fit: cover; object-position: 65%; }
  .team-layout { grid-template-columns: 280px minmax(0,1fr); gap: 25px; }
  .team-primary { height: 350px; }
  .team-secondary { height: 160px; width: 45%; top: 60%; }
  .contact-content { padding: var(--section-spacing) 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-content > .text-large { margin-bottom: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 60px; }
  .footer-bottom { flex-direction: column; margin-top: 50px; }
}
@media (min-width: 768px) and (max-width: 1179px) {
  .projects-layout, .team-layout { grid-template-columns: 1fr; gap: 35px; }
  .projects-intro, .team-copy { max-width: 650px; }
}
@media (max-width: 767px) {
  :root { --header-sticky-height: 72px; --header-sticky-logo-width: 100px; --section-content-gap: 84px; }
  .container { width: calc(100% - 2 * var(--margen-lateral-movil)); }
  h1, h2 { font-size: 42px; letter-spacing: -1.2px; line-height: .95; margin-bottom: 25px; }
  .section-tag { font-size: 16px; }
  .slogan { font-size: 28px; }
  .site-header { --header-height: 95px; }
  .header-inner { gap: 18px; }
  .brand { width: 115px; }
  .menu-toggle { gap: 8px; }
  .menu-toggle > span:first-child { font-size: 14px; }
  .mobile-menu { padding: 24px; }
  .languages { font-size: 13px; }
  .hero-inner { padding-block: 100px 125px; }
  .hero h1 { max-width: 520px; }
  .hero h1 br { display: none; }
  .hero .text-large br { display: none; }
  .hero-copy { padding-bottom: 0; padding-right: 20px; }
  .hero-actions { gap: 12px; }
  .hero-button { padding: 10px 12px; font-size: 14px; }
  .hero .slogan { bottom: 28px; max-width: calc(100% - 65px); }
  .projects-layout { grid-template-columns: 1fr; gap: 40px; }
  .projects-intro { max-width: 520px; }
  .project-gallery { --project-edge: var(--margen-lateral-movil); --project-inset: 48px; --project-gap: 16px; }
  .project-slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; min-height: auto; }
  .project-slide > img { height: clamp(220px, 58vw, 320px); }
  .project-description { padding: 25px; border: 1px solid var(--gris_2); border-top: 0; min-height: 215px; }
  .gallery-controls { margin-top: 15px; }
  .group-layout { gap: 20px; }
  .group-content { --group-columns: repeat(2, minmax(0, 1fr)); --group-column-gap: 25px; }
  .group-overview { row-gap: 25px; }
  .group-overview > .text-large { grid-column: 1 / -1; margin-bottom: 20px; }
  .stat-number { font-size: 42px; }
  .values { row-gap: 35px; margin-top: 40px; }
  .value { padding-top: 22px; }
  .value h3 { min-height: 42px; margin-bottom: 18px; }
  .certifications { --certification-height: 52px; --certification-row-height: 70px; row-gap: 25px; margin-top: 45px; }
  .certifications figure:last-child { grid-column: 1 / -1; }
  .sponsorship { min-height: 0; }
  .sponsorship-layout { grid-template-columns: 1fr; gap: 24px; }
  .sponsorship-copy { max-width: 550px; padding-right: 0; }
  .sports-collage { margin: 110px 0 0; height: 342px; max-width: 360px; justify-self: center; }
  .sports-list { font-size: 42px; letter-spacing: -1.2px; }
  .sports-list li { gap: 18px; }
  .sports-list li::before { width: 14px; height: 19px; }
  .sport-cesta { top: -95px; width: 144px; height: 60px; }
  .sport-cycling { top: 136px; right: 8px; width: 118px; height: 68px; }
  .sport-car { top: 200px; width: 112px; height: 64px; }
  .sport-rugby { top: 275px; left: calc(50% - 20px); width: 104px; height: 67px; }
  .sponsorship-main-image { margin-top: 40px; width: 100%; height: auto; }
  .team-layout { grid-template-columns: 1fr; gap: 35px; }
  .team-copy { max-width: 550px; }
  .team-actions { gap: 0 25px; }
  .team-images { display: grid; gap: 0; padding: 0; }
  .team-primary { height: auto; object-fit: contain; }
  .team-secondary { position: static; inset: auto; z-index: 1; justify-self: end; width: 42%; height: auto; margin-top: clamp(-48px, -8vw, -28px); }
  .contact { grid-template-columns: 1fr; }
  .contact-content { padding: var(--section-spacing) 16px; }
  .contact-content > .text-large { margin-bottom: 40px; }
  .form-grid { gap: 25px 20px; }
  .line-field { flex-direction: column; gap: 4px; }
  .line-field input { min-height: 36px; }
  .message-field textarea { min-height: 125px; }
  .contact-links { gap: 12px 20px; }
  .contact-phone > span { display: none; }
  .contact-image { min-height: 0; height: 500px; }
  .site-footer { padding: 45px 0 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
  .footer-about { grid-column: 1 / -1; }
  .footer-about p { max-width: 360px; }
  .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 15px; margin-top: 45px; }
  .linkedin-tab { width: 32px; top: 28%; }
}
@media (max-width: 374px) {
  :root { --header-sticky-logo-width: 90px; }
  .header-inner { gap: 12px; }
  .brand { width: 100px; }
  .menu-toggle > span:first-child { display: none; }
  .hero-copy { padding-right: 8px; }
  .hero-actions { gap: 8px; }
  .hero-button { padding-inline: 10px; font-size: 12px; }
  .hero h1 { font-size: 42px; overflow-wrap: anywhere; }
  .group-content { --group-column-gap: 18px; }
  .values { row-gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-about, .footer-contact { grid-column: auto; }
}
/* Mantener todo el contenido dentro de la portada en pantallas apaisadas bajas. */
@media (max-height: 650px) and (min-width: 768px) {
  :root { --header-sticky-height: 72px; --header-sticky-logo-width: 110px; }
  .site-header { --header-height: 90px; }
  .brand { width: 120px; }
  .hero-inner { padding-block: 95px 85px; }
  .hero-copy { --hero-heading-gap: 20px; --hero-title-size: clamp(42px, 10vh, 75px); padding-bottom: 0; }
  .hero h1 { font-size: var(--hero-title-size); }
  .hero .slogan { font-size: 28px; bottom: 20px; }
}
@media (max-height: 650px) and (max-width: 767px) {
  .hero-inner { padding-block: 90px 95px; }
  .hero-copy { --hero-heading-gap: 20px; }
  .hero h1 { font-size: clamp(32px, 6vh, 42px); }
  .hero .text-large { font-size: 16px; }
  .hero-actions { margin-top: 16px; }
}
@media (max-height: 550px) and (max-width: 767px) {
  :root { --header-sticky-height: 64px; --header-sticky-logo-width: 90px; }
  .site-header { --header-height: 70px; }
  .brand { width: 90px; }
  .hero-inner { padding-block: 80px 70px; }
  .hero-copy { --hero-heading-gap: 16px; }
  .hero h1 { font-size: 32px; }
  .hero .text-large { font-size: 16px; }
  .hero .slogan { font-size: 22px; bottom: 18px; }
  .hero-scroll { bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html, html.page-ready { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
