/* B4M ES Landing – main styles. Accent: #A5C34D. Font: Montserrat (400, 600, 800) */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/montserrat-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../assets/fonts/montserrat-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../assets/fonts/montserrat-800.woff2') format('woff2');
}

/* Font Awesome 6 – solid (fa-solid-900) and brands (fa-brands-400) */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: block;
  src: url('../assets/fonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/fa-brands-400.woff2') format('woff2');
}

/* Ionicons */
@font-face {
  font-family: 'Ionicons';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('../assets/fonts/ionicons.woff2') format('woff2');
}

/*
  Theme options (reduce green / alternate accent):
  Option A – Two accents: green for sections; --accent-secondary for titles on white, contact banner.
  Option B – Softer green: .section--bg-tint use var(--accent-soft); titles and CTAs stay green.
  Option C – Blue-grey: --accent-secondary: #4a6f8a; section--bg-tint-alt for Integración; titles + contact banner use accent-secondary.
  Option D (active) – Blue accent for country bar (--accent-blue); contact section bg #F0F8ED; headings green on white, dark on green.
*/
:root {
  --accent: #A5C34D;
  --accent-talent: #00963f;
  --accent-secondary: #2d2d2d;
  --accent-soft: #e8eedf;
  --accent-blue: #50718C;
  --font-montserrat: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-fa: 'Font Awesome 6 Free';
  --font-fa-brands: 'Font Awesome 6 Brands';
  --font-ion: 'Ionicons';
}

/* Icon font base classes – use with <i class="fas fa-icon-name"> or <i class="fab fa-icon-name"> or <i class="ion ion-icon-name"> */
.fa,
.fas,
.far,
.fal,
.fat,
.fass {
  font-family: var(--font-fa);
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

.fab {
  font-family: var(--font-fa-brands);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

.ion {
  font-family: var(--font-ion);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  line-height: 1;
}

/* Common Font Awesome 6 Free (solid) unicodes – add more as needed */
.fa-heart-pulse::before {
  content: "\f21e";
}

.fa-briefcase::before {
  content: "\f0b1";
}

.fa-utensils::before {
  content: "\f2e7";
}

.fa-clock::before {
  content: "\f017";
}

.fa-diagram-project::before {
  content: "\f542";
}

.fa-language::before {
  content: "\f1ab";
}

.fa-scale-balanced::before {
  content: "\f24e";
}

.fa-handshake::before {
  content: "\f2b5";
}

.fa-headset::before {
  content: "\f590";
}

.fa-person-chalkboard::before {
  content: "\e53d";
}

.fa-user-tie::before {
  content: "\f508";
}

.fa-check::before {
  content: "\f00c";
}

.fa-check-circle::before {
  content: "\f058";
}

.fa-comments::before {
  content: "\f086";
}

.fa-circle::before {
  content: "\f111";
}

.fa-chevron-right::before {
  content: "\f054";
}

.fa-magnifying-glass::before {
  content: "\f002";
}

.fa-user-group::before {
  content: "\f0c0";
}

.fa-video::before {
  content: "\f03d";
}

.fa-plane::before {
  content: "\f072";
}

.fa-folder-open::before {
  content: "\f07c";
}

.fa-award::before {
  content: "\f559";
}

.fa-star::before {
  content: "\f005";
}

.fa-phone::before {
  content: "\f095";
}

.fa-envelope::before {
  content: "\f0e0";
}

.fa-location-dot::before {
  content: "\f3c5";
}

/* Common Ionicons – add more as needed (codepoints may vary by version) */
.ion-ios-arrow-forward::before {
  content: "\f3d1";
}

.ion-md-arrow-forward::before {
  content: "\f3d1";
}

.ion-ios-checkmark-circle::before {
  content: "\f28b";
}

.ion-md-checkmark-circle::before {
  content: "\f28b";
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  background: #fff;
  padding: 0.5rem 1rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-montserrat);
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* In-text emphasis: semi-bold for less visual weight than full bold */
strong,
b {
  font-weight: 600;
}

/* Header: fixed so it overlays hero at top; semi-transparent background always visible */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: linear-gradient(180deg, #000000d6, #000000a3, #00000047, transparent);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header-logos a {
  display: block;
}

.header-logos img {
  display: block;
  height: 40px;
  width: auto;
}

.site-header .logo-tc-svg {
  display: block;
  height: 40px;
  width: auto;
}

.site-header .logo-tc .st0 {
  fill: #fff;
}

/* Hide Talent&Care logo in header */
.site-header .logo-tc {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  gap: 0.6rem;
}

.site-header .lang-switcher a {
  color: #fff;
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-weight: 600;
  opacity: 0.95;
}

.site-header .lang-switcher a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-header .lang-switcher .lang-current {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-montserrat);
  font-weight: 600;
}

/* Hide language selectors in header */
.site-header .lang-switcher {
  display: none;
}

/* 3-line hamburger – always visible */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
}

.nav-toggle-line {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

/* Overlay: right-side on desktop, fullscreen on mobile */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}

.nav-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.nav-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.nav-overlay-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 340px;
  height: 100%;
  background: #1a1a1a;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.nav-overlay.is-open .nav-overlay-panel {
  transform: translateX(0);
}

.nav-overlay-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  padding: 0;
}

.nav-overlay-close:hover {
  color: var(--accent);
}

.nav-overlay-nav {
  padding: 4rem 1.5rem 2rem;
}

.nav-overlay .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;
}

.nav-overlay .nav-menu>li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-overlay .nav-menu a,
.nav-overlay .nav-dropdown-trigger {
  display: block;
  padding: 0.85rem 0;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-montserrat);
  font-weight: 400;
}

.nav-overlay .nav-menu>li>.nav-dropdown-trigger {
  font-weight: 600;
}

.nav-overlay .nav-menu a:hover,
.nav-overlay .nav-dropdown-trigger:hover {
  color: var(--accent);
}

.nav-overlay .nav-dropdown {
  display: block;
  position: static;
  box-shadow: none;
  border: none;
  background: transparent;
  list-style: none;
  margin: 0 0 0.5rem 0;
  padding: 0 0 0 1rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.nav-overlay .nav-dropdown li {
  border-bottom: none;
}

.nav-overlay .nav-dropdown a {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}

.nav-overlay .nav-cta {
  margin-top: 1rem;
  background: var(--accent);
  color: #fff !important;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  text-align: center;
  font-family: var(--font-montserrat);
  font-weight: 600;
}

@media (max-width: 768px) {
  .nav-overlay-panel {
    max-width: none;
    width: 100%;
  }
}

/* Header "Cambiar idioma" trigger – visually distinct in top bar */
.header-lang-trigger {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 6px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  white-space: nowrap;
}

.header-lang-trigger:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-header.scrolled .header-lang-trigger {
  color: #2d2d2d;
  border-color: rgba(0, 0, 0, 0.25);
}

.site-header.scrolled .header-lang-trigger:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Overlay menu: "Área de soporte" after Contacto – line above */
.nav-item-sep {
  border-bottom: none;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Overlay menu: "Cambiar idioma" – first item, same CTA as header, centered, regular weight, no line after */
.nav-overlay .nav-menu>li.nav-item-lang-first {
  border-bottom: none;
  text-align: center;
  margin-bottom: 0.75rem;
}

.nav-overlay .nav-item-lang-first .header-lang-trigger {
  font-weight: 400;
}

/* Language modal – "Elige tu idioma" popup */
.lang-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.25s, opacity 0.25s;
}

.lang-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.lang-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.lang-modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.lang-modal-title {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.35rem;
  color: #2d2d2d;
  margin: 0 0 0.35rem;
}

.lang-modal-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.lang-lang-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d2d2d;
  background: #e8e8e8;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.lang-lang-btn:hover {
  background: #ddd;
  border-color: #ccc;
}

.lang-lang-btn.is-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
}

.lang-modal-continue {
  display: block;
  width: 100%;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-modal-continue:hover {
  background: #8aad3d;
}

.main-content {
  min-height: 50vh;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Last section grows to fill space (e.g. contact: light green stretches to footer); extra padding before footer */
.main-content>*:last-child {
  flex: 1 0 auto;
  min-height: 0;
  padding-bottom: 5rem;
}

/* Pages without hero: more padding on first section at top */
.main-content>*:first-child:not(.hero) {
  padding-top: 6rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

/* Reusable section background variants – Option A: green gradient; Option B: use var(--accent-soft) */
.section--bg-tint {
  background: radial-gradient(var(--accent), rgba(165, 195, 77, 0.22));
}

/* Option C: alternate section tint (blue-grey) e.g. Integración y apoyo */
.section--bg-tint-alt {
  background: radial-gradient(var(--accent-secondary), rgba(74, 111, 138, 0.18));
}

.section--bg-tint-alt .section-title {
  color: #2d2d2d;
}

.section-title {
  margin: 0 0 1.5rem;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--accent);
}

/* Option D: section titles green on white; Option A: var(--accent-secondary) */
.intro .section-title,
.ethics-section .section-title {
  color: var(--accent);
}

/* Gradient sections: dark header for contrast on tinted background */
.section--bg-tint .section-title {
  color: #2d2d2d;
}

.intro {
  padding-bottom: 0;
}

.intro .section-title {
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.intro .section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background: #1a1a1a;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      #000000a3 0%,
      #00000030 25%,
      transparent 50%,
      transparent 60%,
      #ffffff 100%);
}

.hero--image .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* picture (WebP + JPG fallback) fills hero like img */
.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
  padding: 2rem 1.5rem;
  width: 100%;
  font-family: var(--font-montserrat);
}

.hero-content-inner {
  max-width: 800px;
}

.hero-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.2;
  display: block;
}

.hero-title-part1 {
  color: #333;
}

.hero-title-part2 {
  color: #fff;
}

.hero-subtitle {
  margin: 0;
  font-family: var(--font-montserrat);
  font-weight: 400;
  font-size: 1.25rem;
  color: #333;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
}

.intro-text p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.intro-two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2rem;
}

.intro-paragraphs {
  margin-bottom: 3rem;
}

.intro-solution {
  margin-top: 3rem;
}

/* Full-width solution block (e.g. industria-transicion-verde: text+image row, then solution below) */
.intro-solution--full {
  display: block;
}

.intro-solution--full .intro-solution-card {
  width: 100%;
}

/* Base card layout for the solution block; visual style comes from modifier classes */
.intro-solution-card {
  padding: 2.5rem 2.25rem;
  border-radius: 12px;
}

/* Option A: “spotlight” card on neutral white with accent top border */
.intro-solution-card--white {
  background: #ffffff;
  border-top: 4px solid var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* Option B: soft accent-tinted card */
.intro-solution-card--tint {
  background: #F0F8ED;
  /* matches contact persons section background; used on atencion-sanitaria, index, and other sub-pages */
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

@media (max-width: 768px) {
  .intro-two-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.intro-column-left,
.intro-column-right {
  display: flex;
  flex-direction: column;
}

.intro-two-column .intro-text {
  max-width: none;
  margin: 0;
}

.intro-column-right .intro-image {
  margin-bottom: 0;
}

.intro-column-right .intro-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.section-title--accent {
  color: var(--accent);
  margin-top: 0;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}

.sector-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.sector-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #f0f0f0;
}

.sector-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sector-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.sector-title {
  margin: 0 0 1rem;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  color: #333;
}

.sector-cta {
  display: block;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(180deg, #B8D15E 0%, #A5C34D 100%);
  color: #fff;
  font-family: var(--font-montserrat);
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.2s;
  margin-top: auto;
}

.sector-cta:hover {
  opacity: 0.9;
}

.sector-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--accent);
  text-align: center;
  line-height: 48px;
}

.sector-icon.fas {
  background: none;
  border-radius: 0;
}

.diff-icon.fas {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  font-size: 2.2rem;
  color: var(--accent);
  margin-right: 0.5rem;
}

.differences .container {
  position: relative;
  z-index: 1;
}

.differences .section-title {
  text-align: center;
}

.differences-lead {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.differences-lead p {
  margin: 0 0 1rem;
  line-height: 1.7;
}

/* Contratación ética section – normal background, 4 cards */
.ethics-section .section-title {
  text-align: center;
}

.ethics-intro {
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
  line-height: 1.7;
  color: #555;
}

.ethics-columns {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.ethics-column-main .ethics-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.ethics-card {
  padding: 1.5rem 1.5rem 1.75rem;
  background: #f2f2f2;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.ethics-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.ethics-card>div {
  flex: 1;
}

.ethics-card-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.35;
}

.ethics-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

.ethics-card p:last-child {
  margin-bottom: 0;
}

.ethics-card-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.ethics-card-link:hover {
  text-decoration: underline;
}

.ethics-card--ral .ethics-card-ral-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.ethics-card--ral .ethics-card-ral-content p {
  margin: 0;
  order: 1;
}

.ethics-card--ral .ethics-card-ral-logo-link {
  order: 2;
}

.ethics-card-ral-logo-link {
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ethics-card-ral-logo-link:hover {
  opacity: 0.85;
  transform: scale(1.03);
}

.ethics-card-ral-logo {
  max-width: 140px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.ethics-card-accent {
  color: var(--accent);
  font-weight: 600;
}

.ethics-card--ral {
  background: #f5fbe8;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
}

/* RAL card has no icon – content is only child */
.ethics-card--ral>.ethics-card-ral-content {
  width: 100%;
}

.ethics-cta-wrap {
  margin: 2.5rem 0 0;
  text-align: center;
}

.ethics-cta-wrap--secondary {
  margin-top: 0.75rem;
}

.ethics-cta {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.ethics-cta:hover {
  background: #8aad3d;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {
  .ethics-columns {
    grid-template-columns: 1fr;
  }
}

/* Integración y apoyo section – white background (like index intro/sectors), 3 cards with heading + logo */
.integration-section .integration-section-title {
  text-align: center;
  color: #2d2d2d;
}

.integration-section-subtitle {
  text-align: center;
  margin: -0.5rem 0 2rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.15rem;
  color: #2d2d2d;
}

.integration-text {
  max-width: 900px;
  margin: 0 auto 3rem;
}

.integration-text p {
  margin: 0 0 1.25rem;
  line-height: 1.7;
  color: #333;
}

.integration-text p:last-child {
  margin-bottom: 0;
}

.integration-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Cards on white: border + shadow so they read like index sector cards */
.integration-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.integration-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

.integration-card-title {
  margin: 0 0 1rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.integration-card-logo {
  max-width: 100%;
  height: auto;
  display: block;
  max-height: 80px;
  object-fit: contain;
}

@media (max-width: 768px) {
  .integration-cards {
    grid-template-columns: 1fr;
  }
}

.differences-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.differences-list li {
  padding: 1.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.diff-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.differences-list li>div {
  flex: 1;
}

.differences-list h4 {
  margin: 0 0 0.5rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
}

.process-section {
  padding: 4rem 0;
  margin-top: 4rem;
  /* space between intro and process sections */
}

.process-section .section-title {
  text-align: center;
}

.process-cards {
  margin-top: 3rem;
}

.differences-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}

@media (max-width: 768px) {
  .differences-list {
    grid-template-columns: 1fr;
  }
}

.international .section-title {
  text-align: center;
}

.international-map {
  margin: 2rem 0;
  text-align: center;
}

.international-map img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.international-info {
  text-align: center;
  margin-top: 2rem;
}

.international-info p {
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.international-legend-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: inline-block;
}

.international-legend-icon.fas {
  color: var(--accent-talent);
  font-size: 24px;
  margin-right: 5px;
  padding-left: 5px;
}

.international p {
  margin: 0 0 0.5rem;
}

.international p.international-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.cases {
  padding-bottom: 0;
}

.cases .container {
  padding-bottom: 4rem;
}

.cases .section-title {
  text-align: center;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.case-card-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  z-index: 1;
  border-radius: 8px 8px 0 0;
}

.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.case-card-image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-card-logo {
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  width: auto;
  max-width: 90%;
}

.case-card-logo img {
  width: auto;
  height: auto;
  max-height: 50px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}

.case-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
  margin-top: 0;
  background: #fff;
}

.case-card blockquote {
  margin: 0 0 1.5rem;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.case-link {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
  font-family: var(--font-montserrat);
}

.case-link:hover,
.case-card:hover .case-link {
  background: #8aad3d;
}

/* Casos de éxito on white background (e.g. atencion-sanitaria): cards need border + shadow */
.cases-section--white .section-title {
  text-align: center;
  color: #2d2d2d;
}

/* 2-card grid: limit card width to match index (4 cards per row ≈ 282px each) */
.cases-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(282px * 2 + 1.5rem);
  margin-left: auto;
  margin-right: auto;
}

.cases-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
  .cases-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {

  .cases-grid--2,
  .cases-grid--3 {
    grid-template-columns: 1fr;
  }
}

.cases-section--white .case-card {
  border: 1px solid #e8e8e8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.cases-section--white .case-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-color: #ddd;
}

/* CTA looks like button (accent color), used inside linked case cards */
.case-card-cta {
  display: block;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  font-family: var(--font-montserrat);
  margin-top: auto;
  transition: background 0.2s ease;
}

.case-card:hover .case-card-cta {
  background: #8aad3d;
}

/* Reusable "Sus personas de contacto" section – Option D: card-style bg #F0F8ED, heading dark on green */
.contact-persons-section .contact-persons-title {
  text-align: center;
}

.contact-persons-section.section--bg-tint {
  background: #F0F8ED;
}

.contact-persons-section.section--bg-tint .contact-persons-title {
  color: #464646;
}

.contact-persons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-person-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.contact-person-image {
  width: 28%;
  min-width: 90px;
  max-width: 120px;
  height: 170px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f0f0f0;
}

.contact-person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-person-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-person-image picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.contact-person-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1.25rem 0;
  min-width: 0;
  justify-content: flex-start;
}

.contact-person-card .contact-person-name,
.contact-person-card .contact-person-phone,
.contact-person-card .contact-person-emails {
  margin: 0 0 0.25rem;
}

.contact-person-card .contact-person-name {
  margin-bottom: 0.4rem;
}

.contact-persons-section.section--bg-tint .contact-person-card {
  border-color: rgba(0, 0, 0, 0.08);
}

.contact-person-name {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.3;
  color: #333;
}

.contact-person-phone,
.contact-person-emails {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.contact-person-phone>a,
.contact-person-emails-links {
  flex: 1;
  min-width: 0;
}

.contact-person-icon {
  color: #333;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.contact-person-emails .contact-person-icon {
  margin-top: 0.2rem;
}

/* Option D: contact region banner blue accent; Option A: var(--accent-secondary); Option B/C: var(--accent) */
.contact-person-region-banner {
  margin-top: auto;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  margin-bottom: 0;
  padding: 0.5rem 1.25rem;
  background: var(--accent-blue);
  color: #fff;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 0 0 12px 0;
}

.contact-person-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-person-card a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-persons-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: #2d2d2d;
  color: #ddd;
  padding: 2rem 1rem 1rem;
  margin-top: 0;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col-group {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-address p {
  margin: 0.25rem 0;
}

.footer-address a {
  color: var(--accent);
  text-decoration: none;
}

.footer-address a:hover {
  text-decoration: underline;
}

.footer-col-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  color: #ddd;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-legal {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid #444;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
}

.footer-legal-links a {
  color: #999;
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.footer-copyright {
  text-align: right;
  margin: 0.5rem 0 0;
  color: #999;
}

/* Hero with logo bottom center (e.g. SeneCura story) – logo 2× story-page default (60px → 120px) */
.hero--logo-bottom .hero-logo {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero--logo-bottom .hero-logo img {
  display: block;
  height: 120px;
  width: auto;
  object-fit: contain;
}

/* Story / success story page (e.g. talent-care-convence-a-senecura) */
.story-page {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.story-page-title {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.75rem;
  color: #2d2d2d;
  margin: 0 0 0.5rem;
  text-align: center;
  line-height: 1.3;
}

.story-page-subtitle {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.1rem;
  color: #555;
  margin: 0 0 1.5rem;
  text-align: center;
}

.story-page-content {
  margin: 0 0 3rem;
}

.story-page-content p {
  margin: 0 0 1.5rem;
  line-height: 1.7;
}

.story-page-content--two-col {
  column-count: 2;
  column-gap: 2.5rem;
}

.story-page-content--two-col p {
  break-inside: avoid;
}

@media (max-width: 768px) {
  .story-page-content--two-col {
    column-count: 1;
  }
}

.story-page-quote {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 0;
  border-top: 1px solid #e0e0e0;
  margin: 0;
}

.story-page-quote-text p {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0;
  color: #444;
}

.story-page-quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
  border: none;
}

.story-page-quote-author-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin-bottom: 1rem;
}

.story-page-quote-author-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-montserrat);
  color: #2d2d2d;
  margin-bottom: 0.5rem;
}

.story-page-quote-author-role {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.9rem;
  color: #666;
}

.story-page-quote-author-role span {
  display: block;
}

@media (max-width: 768px) {
  .story-page-quote {
    grid-template-columns: 1fr;
  }
}

/* Países reclutadores page */
.recruiting-intro {
  padding-bottom: 1rem;
}

.recruiting-intro .section-title {
  color: var(--accent);
  text-align: center;
}

.recruiting-intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
}

.recruiting-tabs-section {
  padding-top: 0;
}

.recruiting-tabs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: start;
}

.recruiting-tabs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 1.5rem;
}

.recruiting-tab-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  color: #444;
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.recruiting-tab-button:hover {
  background: #eee;
  border-color: #ccc;
}

.recruiting-tab-button.active,
.recruiting-tab-button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.recruiting-tabs-panels {
  position: relative;
  min-height: 300px;
}

.recruiting-tab-panel {
  display: none;
}

.recruiting-tab-panel.active {
  display: block;
}

.recruiting-tab-panel-title {
  margin: 0 0 1rem;
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.5rem;
  color: #2d2d2d;
}

.recruiting-tab-bullets {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  line-height: 1.7;
}

.recruiting-tab-bullets li {
  margin-bottom: 0.5rem;
}

.recruiting-tab-map {
  margin-top: 1.5rem;
}

.recruiting-tab-map img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  display: block;
}

@media (max-width: 768px) {
  .recruiting-tabs {
    grid-template-columns: 1fr;
  }

  .recruiting-tabs-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .recruiting-tab-button {
    flex: 1 1 auto;
    min-width: 0;
  }
}

/* Recruiting testimonials (white section) */
.recruiting-testimonials {
  background: #fff;
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.recruiting-testimonials .section-title {
  color: var(--accent);
  text-align: center;
}

.recruiting-testimonials-intro {
  max-width: 700px;
  margin: 0 auto 2rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.recruiting-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.recruiting-testimonial-card {
  background: #f9f9f9;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.recruiting-testimonial-image {
  margin-bottom: 1rem;
}

.recruiting-testimonial-image img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}

.recruiting-testimonial-quote {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #444;
}

.recruiting-testimonial-name {
  display: block;
  font-style: normal;
  font-weight: 600;
  font-family: var(--font-montserrat);
  color: #2d2d2d;
  margin-bottom: 0.25rem;
}

.recruiting-testimonial-role {
  display: block;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 1024px) {
  .recruiting-testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* 2-click YouTube embed (GDPR – no third-party content until user clicks) */
.yt-embed {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
}

.yt-embed-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.yt-embed-poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.yt-embed-poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.yt-embed-notice {
  position: relative;
  z-index: 1;
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #fff;
  max-width: 420px;
  line-height: 1.5;
}

.yt-embed-load {
  position: relative;
  z-index: 1;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.yt-embed-load:hover {
  background: #8aad3d;
}

.yt-embed-load:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.yt-embed-iframe-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.yt-embed-iframe-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* La empresa / about page */
.about-intro {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.about-intro .section-title {
  margin-bottom: 1.5rem;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-intro-subtitle {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.about-intro-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.about-intro-text p {
  margin: 0 0 1rem;
}

.about-intro-text p:last-child {
  margin-bottom: 0;
}

.about-intro-mission {
  margin-top: 2.5rem;
}

.about-intro-values {
  margin-top: 2.5rem;
}

.about-intro-values-title {
  text-align: center;
  margin-bottom: 1.25rem;
}

.about-intro-values-body {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.about-intro-values-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  font-size: 2.5rem;
  flex-shrink: 0;
}

.about-mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.about-mission-subtitle,
.about-intro-values .about-intro-subtitle {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.125rem;
  color: #2d2d2d;
  margin: 0 0 0.75rem;
}

.about-intro-mission .about-intro-subtitle {
  color: var(--accent);
}

.about-mission-block p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.about-mission-block p:last-child {
  margin-bottom: 0;
}

.about-mission-tagline {
  font-weight: 600;
  color: var(--accent);
}

.about-values-lead {
  max-width: 720px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.about-ethics-link {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.5;
}

.about-ethics-link a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.about-ethics-link a:hover {
  text-decoration: none;
}

.about-spain-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2.5rem;
  align-items: center;
  margin-top: 1.5rem;
}

.about-spain-text p {
  margin: 0;
  max-width: none;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.about-spain-logo {
  flex-shrink: 0;
}

.about-spain-logo img {
  display: block;
  max-width: 200px;
  height: auto;
}

/* Equipo (team) page */
.team-section {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.team-section .container {
  text-align: center;
}

.team-section--light-green {
  background: #F0F8ED;
}

.team-section-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.team-section--light-green .team-section-title {
  color: #2d2d2d;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 140px;
}

.team-card-image {
  width: 140px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8e8;
  margin-bottom: 0.5rem;
}

.team-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Default: focus upper third so head/face is fully visible; override per person with 'pos' => 'center 25%' (more headroom) or 'center 40%' (face lower) in equipo.php */
  object-position: center 32%;
}

.team-card-image picture {
  display: block;
  width: 100%;
  height: 100%;
}

.team-card-image picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}

.team-card-name {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: #2d2d2d;
}

/* Self-hosted page video – same size as YouTube embed */
.page-video {
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
}

.page-video--16-9 {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1a1a;
}

.page-video-element {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.about-video-section {
  padding-top: 0;
  padding-bottom: 3rem;
}

/* Código deontológico page */
.code-page {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

/* Contact page – Dónde estamos (office cards) */
.contact-offices-section {
  padding-top: 6rem;
  padding-bottom: 3rem;
  background: #F0F8ED;
}

.contact-offices-title {
  margin-bottom: 0.75rem;
}

.contact-offices-intro {
  max-width: 640px;
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.contact-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-office-card {
  background: #fafafa;
  border-radius: 10px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  border-top: 4px solid transparent;
  display: flex;
  flex-direction: column;
}

.contact-office-card--green {
  border-top-color: var(--accent);
}

.contact-office-card--blue {
  border-top-color: var(--accent-blue);
}

.contact-office-card--tc {
  border-top-color: var(--accent-talent);
}

/* Contact office logos: same height, correct ratio, centered */
.contact-office-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.contact-office-logo img {
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.contact-office-logo--tc .logo-tc-svg {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

.contact-office-name {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.35;
  color: #2d2d2d;
  margin: 0 0 1rem;
  text-align: center;
}

.contact-office-sub {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #555;
}

.contact-office-details {
  flex: 1;
}

.contact-office-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.6rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #333;
}

.contact-office-row:last-child {
  margin-bottom: 0;
}

.contact-office-icon {
  flex-shrink: 0;
  width: 1.25rem;
  text-align: center;
  margin-top: 0.15rem;
}

.contact-office-card--green .contact-office-icon {
  color: var(--accent);
}

.contact-office-card--blue .contact-office-icon {
  color: var(--accent-blue);
}

.contact-office-card--tc .contact-office-icon {
  color: var(--accent-talent);
}

.contact-office-card a {
  color: var(--accent);
  text-decoration: none;
}

.contact-office-card a:hover {
  text-decoration: underline;
}

.contact-office-card--blue a {
  color: var(--accent-blue);
}

.contact-office-card--tc a {
  color: var(--accent-talent);
}

.contact-office-hours {
  font-size: 0.875rem;
  color: #555;
}

@media (max-width: 900px) {
  .contact-offices-grid {
    grid-template-columns: 1fr;
  }
}

.code-page-title {
  margin-bottom: 1.5rem;
}

.code-intro {
  margin-bottom: 2rem;
  max-width: 720px;
}

.code-intro p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.code-block {
  margin-bottom: 2rem;
}

.code-block-title {
  font-family: var(--font-montserrat);
  font-weight: 800;
  font-size: 1.25rem;
  color: #2d2d2d;
  margin: 0 0 1rem;
}

.code-subtitle {
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--accent);
  margin: 1.5rem 0 0.75rem;
}

.code-block .code-subtitle:first-child {
  margin-top: 0;
}

.code-block p {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

.code-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
}

.code-list li {
  margin-bottom: 0.35rem;
  font-size: 1rem;
  line-height: 1.5;
  color: #333;
}

.code-block a {
  color: var(--accent);
  text-decoration: underline;
}

.code-block a:hover {
  text-decoration: none;
}

.code-version {
  margin: 2rem 0 0;
  font-size: 0.875rem;
  color: #666;
}

/* Legal / privacy sub-pages – modern layout */
.legal-page.code-page {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

/* Aviso legal: first content block uses full container width (no narrow max-width) */
.aviso-legal-page .code-intro {
  max-width: none;
}

.legal-block .legal-details {
  margin: 0.75rem 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--accent-soft);
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.legal-block .legal-details p {
  margin: 0.35rem 0;
}

.legal-block .legal-details p:first-child {
  margin-top: 0;
}

.legal-block .legal-details p:last-child {
  margin-bottom: 0;
}

.legal-block .legal-details .legal-domains {
  margin: 0.5rem 0 0;
  padding-left: 1.5rem;
}

.legal-block .legal-details .legal-domains li {
  margin-bottom: 0.25rem;
}

/* Section shown only when ?section=email (Política de Privacidad) */
.legal-section-email {
  display: none;
}

.legal-section-email.is-visible {
  display: block;
}

/* Cookies table – responsive */
.legal-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.legal-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.legal-table th {
  font-family: var(--font-montserrat);
  font-weight: 600;
  color: var(--accent-secondary);
  background: #f5f5f5;
}

.legal-table td:first-child {
  white-space: nowrap;
}

.legal-table code {
  font-size: 0.875rem;
  padding: 0.2em 0.45em;
  background: #eee;
  border-radius: 4px;
  font-family: ui-monospace, monospace;
}

.legal-accordion-item {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8e8e8;
}

.legal-accordion-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.legal-numbered {
  list-style-type: decimal;
}

/* Contratación justa – Enfermería page */
.fair-recruitment-page .container {
  text-align: center;
}

.fair-recruitment-page .code-page-title {
  text-align: center;
}

.fair-recruitment-page .code-intro {
  margin-left: auto;
  margin-right: auto;
}

.fair-recruitment-page .code-block {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.fair-recruitment-page .code-block-title {
  text-align: center;
}

.fair-recruitment-image {
  margin: 2rem 0;
  text-align: center;
}

.fair-recruitment-image img {
  display: block;
  max-width: 100%;
  max-height: 960px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 8px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Green button: white text, no underline, darker green on hover */
.fair-recruitment-cta,
.fair-recruitment-page .code-block a.fair-recruitment-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-montserrat);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--accent);
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.fair-recruitment-cta:hover,
.fair-recruitment-page .code-block a.fair-recruitment-cta:hover {
  background: #8aad3d;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 768px) {

  .about-intro-grid,
  .about-mission-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-intro-values-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-intro-values-body .intro-text {
    text-align: left;
  }

  .about-spain-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-spain-text {
    text-align: left;
  }

  .header-logos {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-legal-links {
    justify-content: center;
  }

  .footer-copyright {
    text-align: center;
  }
}