/*!
 * GDNT - CSS
 */
 /* ---------- :root variables ---------- */
 :root{
  --brand-white: #ffffff;
  --brand-alt-bg: #C9C9C9;
  --text-color: #000000;
  --muted-gray: #747171;
  --accent: #121206;
  --container-max: 1200px;
  --gap: 1rem;
  --radius: 10px;
  /* track: desplazamiento con transform (GPU) */
  --carousel-gap: 1rem;
  --header-height: 80px;

}
/* --------------
===== FONTS =====
-------------- */
/* ===== GRAPHIK ===== */
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Thin.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Thin.woff') format('woff');
  font-weight: 100;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-ThinItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-ThinItalic.woff') format('woff');
  font-weight: 100;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Extralight.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Extralight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-ExtralightItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-ExtralightItalic.woff') format('woff');
  font-weight: 200;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Light.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-LightItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-RegularItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-RegularItalic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Regular.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Medium.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-MediumItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-MediumItalic.woff') format('woff');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Semibold.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Semibold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-SemiboldItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-SemiboldItalic.woff') format('woff');
  font-weight: 600;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Bold.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-BoldItalic.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-BoldItalic.woff') format('woff');
  font-weight: 700;
  font-style: italic;
}
@font-face {
  font-display: swap;
  unicode-range: U+000-5FF;
  font-family: 'Graphik';
  src: url('../fonts/Graphik/Graphik-Black.woff2') format('woff2'),
      url('../fonts/Graphik/Graphik-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
}

/* ===== DINPRO ===== */
@font-face {
  font-family: 'DINPro';
  font-display: swap;
  src: url('../fonts/DINPro/DINPro-Light.woff2') format('woff2'),
       url('../fonts/DINPro/DINPro-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
}
@font-face {
  font-family: 'DINPro';
  font-display: swap;
  src: url('../fonts/DINPro/DINPro-Regular.woff2') format('woff2'),
       url('../fonts/DINPro/DINPro-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'DINPro';
  font-display: swap;
  src: url('../fonts/DINPro/DINPro-Medium.woff2') format('woff2'),
       url('../fonts/DINPro/DINPro-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'DINPro';
  font-display: swap;
  src: url('../fonts/DINPro/DINPro-Bold.woff2') format('woff2'),
       url('../fonts/DINPro/DINPro-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
}

/* ===== GLOBAL TYPOGRAPHY - Sistema tipográfico (DINPro + Graphik) ===== */

/* Body / texto base */
html, body {
  font-family: 'Graphik', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px; /* base que puedes ajustar */
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Textos corrientes */
body, p, li, small, label, input, textarea, button {
  font-family: 'Graphik', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Titulares: DINPro */
h1, h2, h4, h5, h6 {
  font-family: 'DINPro', 'Graphik', system-ui, sans-serif;
  color: var(--text-color);
  margin: 0 0 .5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h3 {
  font-family: 'Graphik', system-ui, sans-serif;
  color: var(--muted-gray);
  margin: 0 0 .5rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

/* Escalas sugeridas (ajusta si quieres) */
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem;   font-weight: 700; }
h3 { font-size: 2rem; font-weight: 700; }
h4 { font-size: 1.25rem;font-weight: 600; }
h5 { font-size: 1.05rem;font-weight: 500; }
h6 { font-size: 0.95rem;font-weight: 500; }

/* Párrafos */
p { font-size: 1rem; color: #333; }

/* Enlaces que parezcan botón o CTA: usar DINPro para mayor impacto */
a.btn, .btn, button.primary {
  font-family: 'DINPro', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Overlays / leyendas en hero / cards */
.history-figure-caption, .empresa-overlay, .card .card-title {
  font-family: 'DINPro', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;           /* estética tipo Inditex en overlays */
  letter-spacing: 0.06em;              /* pequeño tracking para mejorar lectura */
}

/* Subtítulos / pre-title (muted) */
.pre-title, .muted {
  font-family: 'Graphik', system-ui, sans-serif;
  font-weight: 500;
  text-transform: none;
  color: var(--muted-gray);
}

/* Small utility: fallback específico cuando DINPro no cargue inmediatamente */
.din-fallback {
  font-family: 'Graphik', system-ui, sans-serif;
}

/* Correcciones de bootstrap */
/*
 * Los contenedores conservan el padding de Bootstrap (mitad de --bs-gutter-x).
 * Antes se anulaba globalmente con !important y las .row (margen negativo de
 * -12px) desbordaban el viewport, generando scroll horizontal en todas las páginas.
 * Solo las capas a sangre van sin padding lateral:
 */
.main-navbar > .container-fluid,
body.home #content > .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

/* Correcciones de b5st.css */
ol, ul {
  padding-left: 0.5rem!important;
}

.entry-content li {
  margin-left: 0.5em!important;
}

/* ===== HOME ===== */
/* ===== HERO VIDEO ===== */
.hero--video {
  position: relative;
  overflow: hidden;
  background: #000; /* fallback */
}

/* Video como fondo */
.hero--video .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  /* fade-in */
  opacity: 0;
  transition: opacity 1.2s ease;
}

/* Cuando el vídeo está listo */
.hero--video.loaded .hero-video {
  opacity: 1;
}

/* Overlay */

.hero.hero--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse 80% 95% at 0% 100%,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.6) 30%,
    rgba(0,0,0,.25) 60%,
    rgba(0,0,0,0) 85%);
}
.hero.hero--video {
  justify-content: flex-start;
  align-items: flex-end;
}

/* Contenido encima */
.hero--video .hero-inner {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin: 0;
  padding: 0 0 10vh 6vw;
  text-align: left;
}

/* ===== SECTION ONE — NUESTRA HISTORIA ===== */
.section-one { 
  padding: 3.5rem 0;
  background: var(--brand-white);
  color: var(--text-color);
}

.section-one .heading {
  text-align: center;
}

.section-one .heading p {
  text-align: justify;
  text-align-last: center;
}

.section-one .heading {
  max-width: 720px;
  margin: 0 auto 4rem;
}

.section-one h2 {
  margin-bottom: 2rem;
}

/* Grid de indicadores (icono + texto), 4 columnas x 2 filas */
.section-one .history-stats {
  --history-stat-icon-size: 75px;
}

.section-one .history-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.section-one .history-stat-icon {
  width: var(--history-stat-icon-size);
  height: var(--history-stat-icon-size);
  object-fit: contain;
  margin-bottom: 1.75rem;
}

.section-one .history-stat-text {
  margin: 1rem 3rem 0 3rem;
  font-size: 1.2rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--text-color);
}

/* ===== SECTION TWO — EMPRESAS DEL GRUPO ===== */
.section-two { 
  padding: 3rem 1rem;
  position: relative;
}

.section-two > * {
  position: relative;
  z-index: 1;
}
.section-two .heading { 
  text-align: center;
  margin-bottom: 1.25rem;
}

.section-two h2 {
  margin-bottom: 2rem;
}

/* Texto introductorio entre el heading y la rejilla de empresas */
.section-two .section-two-intro {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  color: var(--muted-gray, #6a6a6a);
}

.empresa-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.empresa-item:nth-child(1) {
  grid-column: 1 / span 2;
}
.empresa-item:nth-child(2) {
  grid-column: 2 / span 2;
}
.empresa-item:nth-child(3) {
  grid-column: 4 / span 2;
}
.empresa-item:nth-child(4) {
  grid-column: 2 / span 2;
}
.empresa-item:nth-child(5) {
  grid-column: 4 / span 2;
}

/* tarjeta */
.empresa-item {
  list-style: none;
}
.empresa-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  height: 260px;
  color: inherit;
  background-color: #fff;
  transition: transform .28s ease, box-shadow .28s ease;
}
.empresa-item:nth-child(n+4) {
  margin-top: .5rem;
}

/* fondo (imagen) */
.empresa-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  /* Filtro B&N 
  filter: grayscale(100%) contrast(0.95) brightness(0.95);*/
  transition: filter .36s ease, transform .36s ease;
  will-change: filter, transform;
}

/* overlay with logo and desc */
.empresa-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.3));
  color: #fff;
  transition: background .32s ease;
}

/* logo monocromo: ensure it sits on top */
.empresa-logo {
  max-width: 150px;
  height: auto;
  object-fit: contain;
  margin-bottom: .75rem;
  filter: brightness(1) invert(0); }

/* title if no logo */
.empresa-title { font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: .5rem; }

/* description hidden for small displays (we'll reveal on hover) */
.empresa-desc {
  display: none;
  font-size: .95rem;
  margin: 0;
  color: rgba(255,255,255,0.95);
  max-width: 92%;
}

/* hover/focus state - show color image and description */
.empresa-card:hover,
.empresa-card:focus {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  outline: none;
}

.empresa-card:hover .empresa-desc,
.empresa-card:focus .empresa-desc {
  display: block;
  opacity: 1;
}

/* make sure logo remains visible even when desc appears */
.empresa-card:hover .empresa-logo,
.empresa-card:focus .empresa-logo { filter: none; }

/* accessibility focus */
.empresa-card:focus { box-shadow: 0 18px 40px rgba(0,0,0,0.12); }

/* small utility */
.section-two .empresa-overlay a { color: inherit; text-decoration: none; }

/* ===== SECTION THREE — CARRUSEL DE NOTICIAS ====== */
.section-three h2 {
  text-align: center;
  margin-bottom: 2rem !important;
}

.section-three .multi-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
  
.section-three .mc-track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform .4s cubic-bezier(.2,.9,.3,1); 
  will-change: transform;
  padding-bottom: 1rem;
  /* evita que los elementos flex se encojan inesperadamente */
  align-items: stretch;
}
  
/* items: computar el ancho restando el espacio total de gaps para evitar overflow */
/* Para 3 columnas: restamos 2 * gap (entre 3 items hay 2 gaps) */
.section-three .mc-item {
  box-sizing: border-box;
  flex: 0 0 calc((100% - (2 * var(--carousel-gap))) / 3);
  max-width: calc((100% - (2 * var(--carousel-gap))) / 3);
  min-width: 240px; /* si quieres un límite menor en pantallas pequeñas */
}
  
/* Card */
.section-three .card {
  display: flex;
  flex-direction: column;
  height: 100%; /* para que .mt-auto en el botón funcione */
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
}
  
/* Imagen superior: cubrir y mantener proporción */
.section-three .card-img-top,
.section-three img.card-img-top {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
  
/* Lazy images: transición suave */
.section-three img.lazy { opacity: 0; transition: opacity .36s ease; }
.section-three img.loaded { opacity: 1; }
  
/* Controles */
.section-three .mc-prev,
.section-three .mc-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 12;
  opacity: 0.95;
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  cursor: pointer;
}
  
/* aumentar área de touch en móvil */
.section-three .mc-prev { left: 8px; }
.section-three .mc-next { right: 8px; }
  
/* Focus y hover accesible */
.section-three .mc-prev:focus,
.section-three .mc-next:focus {
  outline: 3px solid rgba(52,51,22,0.12); /* color base */
  outline-offset: 3px;}

.section-three .mc-prev:hover,
.section-three .mc-next:hover { transform: translateY(-50%) scale(1.02); }
  
/* Pequeñas utilidades */
.section-three .card-body { display:flex; flex-direction:column; }

/* CTA de tarjeta y prev/next del carrusel */
.section-three .mc-prev,
.section-three .mc-next,
.section-three .card .card-body .btn {
  font-family: 'DINPro', system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: .95rem;
}

/* Título / Link en paleta */
.section-three .card .card-title a {
  color: var(--accent);
  font-family: 'DINPro', system-ui, sans-serif;
  font-weight: 600;
  margin-bottom: .6rem;
  transition: color .25s ease;
}

.section-three .card .card-title a:hover {
  color: var(--text-color);
}
/* Botones en paleta */
.section-three .card .btn,
.section-three .card a.btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: .55rem .9rem;
  transition: transform .2s ease, opacity .2s ease, background-color .2s ease, border-color .2s ease;
}

.section-three .card .btn:hover,
.section-three .card a.btn:hover {
  background: rgba(52,51,22,0.9); /* fallback si no quieres otra variable */
  border-color: rgba(52,51,22,0.9);
  opacity: 0.95;
  transform: translateY(-1px);
}

.section-three .card .btn:focus,
.section-three .card a.btn:focus {
  outline: 3px solid rgba(52,51,22,0.18);
  outline-offset: 3px;
}

/* Altura resumen */
.section-three .card .card-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;     /* número de líneas visibles */
  overflow: hidden;
  min-height: calc(1.6em * 3); /* line-height (1.6) * 3 líneas */
  margin-bottom: 1rem;
}

.section-three .card-body {
  display: flex;
  flex-direction: column;
}

.section-three .card-body .btn {
  margin-top: auto;
  align-self: flex-start; /* opcional, para que no se estire */
}

/* ------------------------ */

/* ===== HISTORY PAGE ===== */
.history-page {
  padding: 4rem 1rem;
}

.history-page .wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.history-page__header {
  text-align: center;
  margin-bottom: 3rem;
}

.history-page__title {
  font-size: 2.25rem;
  margin: 0 0 .5rem;
}

.history-page__intro {
  max-width: 900px;
  margin: .75rem auto 0;
  color: #666;
}

/* ===== HITOS ===== */

.hito{
  padding: 3rem 0; /* o 2rem */
  border-top: 1px solid rgba(0,0,0,0.06);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.9,.2,1),
              transform .6s cubic-bezier(.2,.9,.2,1);
}

.hito:first-child{
  border-top: none;
  padding-top: 0;
}

.hito.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hito__container > *:last-child{
  margin-bottom: 0;
}

/* Tipografía */
.hito__year {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--muted-gray);
  margin-bottom: .25rem;
}

.hito__title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .5rem;
}

.hito__text {
  line-height: 1.6;
  color: #333;
  max-width: 720px;
}

/* =====================================================
   STACK LAYOUT (simple + panoramic)
   ===================================================== */

.hito__body--stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
}

/* Imagen stack (panoramic) */
.hito__media--panoramic img {
  width: 100%;
  max-width: 900px;
  height: 240px;
  object-fit: cover;
  /*border-radius: 6px;*/
  display: block;
}

/* =====================================================
   TWO COLUMNS (left / right)
   ===================================================== */

.hito__body--twocol {
  display: grid;
  grid-template-columns: 1fr; /* mobile */
  gap: 1.5rem;
}

/* Alineación texto derecha */
.hito__body--left .hito__col--copy  {
  text-align: right;
}

/* Imagen twocol */
.hito__col--media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  /*border-radius: 6px;*/
  display: block;
}

/* Centrado vertical del bloque texto */
.hito__col--copy {
  display: flex;
}

.hito__copy {
  margin: auto 0;
  width: 100%;
}

/* ------------------------ */

/* ===== PROPUESTA DE VALOR ===== */
/*.pdevalor-w h3 {
  margin-bottom: 1rem;
}*/
/* Misión / Visión: texto + imagen en zigzag */
.misionvision { align-items: stretch !important; }
.misionvision > .panel-grid-cell { position: relative; }

.misionvision .mv-texto {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4rem);
  background: #e2e2e2;
}
.misionvision .mv-texto h3 {
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2rem);
  margin-bottom: 1rem;
}
.misionvision .mv-texto p:last-child { margin-bottom: 0; }

.misionvision .mv-imagen { height: 100%; min-height: 320px; }
.misionvision .sow-image-container {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
}
.misionvision .sow-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.vision li { margin: .5rem 0; }
/*OLD
.misionvision{
  align-items: stretch !important;
}
.misionvision .panel-grid-cell{
  position: relative;
}
.misionvision .sow-image-container{
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
}
.misionvision .sow-image-container img{
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}*/
.vision li {
  margin: 0.5rem 0;
}
/* Propuesta de valor grupal: rejilla 3x2, todas las cajas iguales */
.panel-row-style.gdnt-cards-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;              /* todas las filas miden como la más alta */
  gap: 30px;
  width: 80%;
  max-width: 1200px;
  margin-inline: auto;
}
.gdnt-cards-3 > .panel-grid-cell {
  width: auto !important;            /* anula los anchos calc() de SiteOrigin */
  margin: 0 !important;
  align-self: stretch !important;
}
.gdnt-cards-3 .so-panel,
.gdnt-cards-3 .panel-widget-style { height: 100%; }

.pdevalor-grupal {
  display: flex;
  flex-direction: column;
  justify-content: center;   /* centrado vertical */
  text-align: center;        /* centrado horizontal */
  padding: 2rem 2.5rem;
  background: #e2e2e2;
}
.pdevalor-grupal h5 {
  font-size: 1.3rem;
  line-height: 1.25;
  margin-bottom: 1rem;       /* quitamos el min-height de 2 líneas */
}
.pdevalor-grupal p { margin-bottom: 0; }

/* ------------------------ */

/* ===== COMPANY PAGE ===== */

/*
 * Scroll-snap a nivel de DOCUMENTO (html).
 * La clase .companies-snap la añade company-page.js en el IIFE.
 * Así el scroll nativo del navegador (incluida la navegación por anclas)
 * funciona correctamente sin efectos secundarios en otras páginas.
 */
html.companies-snap {
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-height);
}

/* En la página de empresas el body no necesita compensar el navbar:
   el main ya lleva margin-top establecido por JS. */
.page-template-company-page {
  padding-top: 0 !important;
}

/* El main es un contenedor de flujo normal; JS fija su margin-top. */
.companies-fullpage-page {
  background: #fff;
}

/* El wrapper interno ya no es el scroll-container; es solo un bloque. */
.companies-fullpage {
  position: relative;
}

/* Cada slide ocupa exactamente el espacio disponible bajo el navbar. */
.company-slide {
  position: relative;
  height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #f3f3f3;
}

.company-slide__media,
.company-slide__overlay,
.company-slide__image {
  position: absolute;
  inset: 0;
}

.company-panel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1.4s ease, opacity 1s ease;
}

.company-slide__overlay {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,1)    0%,
    rgba(255,255,255,0.85) 20%,
    rgba(255,255,255,0.55) 45%,
    rgba(255,255,255,0.25) 65%,
    rgba(255,255,255,0.0)  85%
  );
  backdrop-filter: blur(2px);
}

.company-slide__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-left: clamp(1.5rem, 7vw, 10rem) !important;
  padding-right: clamp(1.5rem, 4vw, 4rem) !important;
}

.company-slide__inner {
  max-width: 720px;
  color: #fff;
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s ease;
}

.company-slide.is-visible .company-slide__inner {
  opacity: 1;
  transform: translateY(0);
}

.company-slide.is-visible .company-panel__image {
  transform: scale(1);
}

.company-slide__counter {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.5rem;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.9);
}

.company-slide__counter-line {
  width: 56px;
  height: 1px;
  background: rgba(0, 0, 0, 0.55);
}

.company-slide__title {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 5vw, 5.25rem);
  line-height: .95;
  font-weight: 400;
  letter-spacing: -.04em;
}

.company-slide__text {
  max-width: 620px;
  margin-bottom: 2rem;
  font-size: clamp(1rem, 1.1vw, 1.125rem);
  line-height: 1.75;
  color: rgba(255,255,255,.92);
}

.company-slide__text p:last-child {
  margin-bottom: 0;
}

.company-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
}

.company-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 190px;
  padding: .95rem 1.5rem;
  border: 1px solid transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  font-weight: 500;
  transition: all .25s ease;
}

.company-link-btn--primary {
  background: #000000;
  color: #ffffff;
}

.company-link-btn--primary:hover {
  background: #464646;
  color: #fff;
  border-color: #111;
}


.companies-empty {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* ------------------------ */

/* ===== SUSTAINABILITY PAGE ===== */
.sustainability-w h3 {
  margin-bottom: 1rem;
}

.sustainability-images {
  padding: 5% 25% 5% 25%!important;
}
.sustainability-images h3 {
  font-size: 1.2rem;
  margin-top: 10px!important;
}

.sostenibilidad{
  display: none;
}
.sostenibilidad.is-visible{
  display: block;
}
.sost-toggle{
  cursor: pointer;
}

/* ------------------------ */

/* ===== QUALITY PAGE ===== */
.quality h3 {
  text-align: left;
  padding: 0.9rem 0.9rem 0.9rem 2.5rem;
}
.quality img {
  border: none !important;
  max-width: 120px !important;
  height: auto !important;
}
.quality-enterprise {
  min-height: 100px !important;
}
/* ------------------------ */

/* ===== INNOVATION PAGE ===== */
/* Innovation Center: bloque "Nuestra misión" */
.innovation-mision {
  padding: 5% 20% !important;
  align-items: stretch !important;              /* ambas columnas a la misma altura */
}
.innovation-mision > .panel-grid-cell:first-child {
  align-self: center;                            /* texto centrado en vertical */
}
.innovation-mision > .panel-grid-cell:last-child {
  position: relative;
  min-height: 360px;
}
.innovation-mision .sow-image-container {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden;
}
.innovation-mision .sow-image-container img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;                  /* rellena sin deformar */
}

.valordiferencial {
  padding: 0 20%;
}

.valordiferencial h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.innovation-objetives {
  padding: 5% 20% 5% 20%!important;
}

.objetives-boxes p {
  margin-bottom: 0!important;
  font-size: 1.1rem;
}

/* Ecosistema industrial: 5 columnas con filete, todas de igual altura */
.panel-row-style.gdnt-ecosistema {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}
.gdnt-ecosistema > .panel-grid-cell {
  width: auto !important;
  margin: 0 !important;
  align-self: stretch !important;
}
.gdnt-ecosistema .panel-cell-style,
.gdnt-ecosistema .so-panel { height: 100%; }

.gdnt-ecosistema .so-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 4px solid var(--text-color);
  padding: .75rem 0 .75rem 1.5rem;
  margin-bottom: 0 !important;
}
.gdnt-ecosistema p { margin-bottom: 0; }

.innovation-ecosystem {
  padding: 0 20%!important;
}
/* Innovation Center: bloque de contacto */
.innovation-contact {
  padding: clamp(3rem, 8vw, 7rem) clamp(1.5rem, 8vw, 10rem) !important;
  gap: clamp(1.5rem, 4vw, 4rem);
}
.innovation-contact h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  line-height: 1.15;
  max-width: 22ch;
  text-wrap: balance;
  margin-bottom: 1rem;
}
.innovation-contact p {
  font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem);
  max-width: 55ch;
  margin-bottom: 0;
}
.innovation-contact .ow-button-base a {
  padding: 1rem 2rem !important;
  font-size: .95rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 2px solid var(--text-color) !important;
  transition: background-color .2s, color .2s;
}
.innovation-contact .ow-button-base a:hover,
.innovation-contact .ow-button-base a:focus-visible {
  background: transparent !important;
  color: var(--text-color) !important;
}
/*OLD
.innovation-contact {
  padding: 20% 20% 20% 20%!important;
}

.innovation-contact h4 {
  margin-bottom: 3rem;
  font-size: 3rem;
}

.innovation-contact p {
  font-size: 1.5rem;
}

.innovation-contact a {
  font-size: 1.2rem!important;
  font-weight: 550;
}*/

/* ===== HEADER ===== */
/* NavBar */
.navbar-brand {
  background: rgba(0, 0, 0, 0) url(../img/logo-gdnt.png) no-repeat scroll 0 0;
  text-indent: -9999px;
  height: 50px;  
  width: 130px;
}

.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;

  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);

  padding: 0.75rem 2.25rem;
}

/* Compensar altura navbar fixed */
body {
  padding-top: var(--header-height);
}

/* Logo */
.main-navbar .navbar-brand {
  color: #000;
}

/* Enlaces */
.main-navbar .navbar-nav > li > a {
  color: #000;
  font-family: 'DINPro';
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-navbar .navbar-nav > li > a:hover {
  opacity: 0.6;
}

.main-navbar .dropdown-menu {
  border: none;
  border-radius: 0;
  padding: 0.75rem 0;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.main-navbar .dropdown-menu .dropdown-item {
  padding: 0.6rem 1.5rem;
}

/* SVG logo */
.main-navbar svg {
  fill: #000;
}

.main-navbar .navbar-nav {
  gap: 2.5rem; /* 👈 aire real entre items */
}

.main-navbar .navbar-nav > li > a {
  padding: 0; /* quitamos el padding lateral Bootstrap */
}

/* Hero */
.hero {
  position: relative;
  width: 100%;
  min-height: 420px;
  height: 90vh;
  max-height: 1080px;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.15);
  z-index: 1;
}

/* Titulo */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  padding: 0 2rem;
  text-align: center;
}
/* Texto del hero de la Home (H1 + párrafo con el mismo aspecto) */
.home-hero-title,
.home-hero-text {
  font-family: 'DINPro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(1.25rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.home-hero-title strong,
.home-hero-text strong {
  font-weight: 700;
}
.hero-title {
  font-family: 'DINPro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: #ffffff;
  margin: 0;
}

/* ===== FOOTER ===== */
/* Listas y estilos general */
.main-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-footer {
  background-color: #ffffff;
  color: #000000;
  font-size: 13px;
  line-height: 1.6;
}
.main-footer a {
  color: inherit;
  text-decoration: none;
}

/* NIVEL 1 */
/* Grupo */
.footer-group-logos {
  border-bottom: 1px solid #e5e5e5;
  padding: 40px 0;
}
.footer-group-logos img {
  max-height: 40px;
  width: auto;
  opacity: 0.9;
}
/* Multiples logos */
.group-logos-list img {
  max-height: 28px;
  opacity: 0.7;
}

/* NIVEL 2 - MENUS */
.main-footer h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-nav li {
  margin-bottom: 10px;
}

/* Títulos de menú: botón de acordeón en móvil, título estático en tablet/PC */
.footer-col__toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.footer-col__toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 4px;
}
.footer-col__toggle .bi {
  font-size: .7rem;
  transition: transform .25s ease;
}
.footer-col__toggle:not(.collapsed) .bi {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  /* En tablet y PC los menús se ven siempre abiertos */
  .footer-col__menu.collapse,
  .footer-col__menu.collapsing {
    display: block !important;
    height: auto !important;
    transition: none;
  }
  .footer-col__toggle {
    pointer-events: none;
    cursor: default;
  }
  .footer-col__toggle .bi {
    display: none;
  }
}
.footer-nav a {
  font-size: 13px;
  font-weight: 400;
  transition: opacity 0.2s ease;
}
.footer-nav a:hover {
  opacity: 0.6;
}

/* NIVEL 3 - LEGAL + SOCIAL */
.footer-copyright {
  border-top: 1px solid #e5e5e5;
  padding: 20px 0;
  font-size: 12px;
}
.footer-social a {
  margin-left: 20px;
  font-size: 14px;
  color: #000;
  transition: opacity 0.2s ease;
}
.footer-social a:hover {
  opacity: 0.6;
}

/* ---------------------------------- */

/* ===== TALENTO ===== */
/* ===== Archivo de ofertas ===== */
/* Título */
.joffer .card-body h2 a {
  color: #000 !important;
}
/* Botón */
.joffer .card-footer a {
  background-color: #6c757d !important;
  color: #000 !important;
  border: none;
}
.joffer .card-footer a:hover {
  background-color: #000 !important;
  color: #fff !important;
  border: none;
}
.joffer .card-footer a:active {
  background-color: #333;
  color: #000;
}

/* ---------------------------------- */

/* ===== NOTICIAS ===== */

/* Single */
.noticia-simple {
	padding: 60px 20px;
}

.noticia-simple__contenedor {
	width: 100%;
	max-width: 1100px;
	margin: 0 auto;
}

.noticia-simple__articulo {
	margin: 0;
}

.noticia-simple__contenido > :first-child {
	margin-top: 0;
}

.noticia-simple__contenido > :last-child {
	margin-bottom: 0;
}

.noticia-simple__articulo a {
  color: var(--accent) !important;
}
/* ===== Archivo de noticias ===== */

.news-archive {
	padding-top: 3rem;
	padding-bottom: 5rem;
}

.news-archive__header {
	margin-bottom: 3rem;
	max-width: 900px;
}

.news-archive__eyebrow {
	margin: 0 0 0.875rem;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #6c757d;
}

.news-archive__title {
	margin: 0;
	font-size: clamp(2.5rem, 6vw, 4.75rem);
	line-height: 0.95;
	font-weight: 400;
	letter-spacing: -0.03em;
	color: #111;
}

.news-archive__description {
	margin-top: 1.25rem;
	max-width: 720px;
	font-size: 1rem;
	line-height: 1.7;
	color: #444;
}

.news-card {
	height: 100%;
}

.news-card__media {
	position: relative;
	overflow: hidden;
	background: #f3f3f3;
	aspect-ratio: 4 / 3;
	margin-bottom: 1rem;
}

.news-card__media--featured {
	aspect-ratio: 16 / 10;
	margin-bottom: 0;
}

.news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.news-card:hover .news-card__media img {
	transform: scale(1.02);
}

.news-card__placeholder {
	width: 100%;
	height: 100%;
	background: #ececec;
}

.news-card__content {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.news-card__date {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #777;
}

.news-card__title {
	margin: 0;
	font-size: clamp(1.4rem, 2vw, 2.1rem);
	line-height: 1.08;
	font-weight: 400;
	letter-spacing: -0.02em;
}

.news-card__title a {
	color: #111;
	text-decoration: none;
}

.news-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #444;
	max-width: 620px;
}

.news-card__cta {
	display: inline-block;
	width: fit-content;
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	border-bottom: 1px solid #111;
	padding-bottom: 0.25rem;
}

.news-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: 1.5rem;
	align-items: start;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #e9e9e9;
}

.news-card__content--featured {
	padding-top: 0.25rem;
}

.news-card__title--featured {
	font-size: clamp(2rem, 4vw, 3.75rem);
	line-height: 0.98;
}

.news-pagination {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	margin-top: 4rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e9e9e9;
}

.news-pagination a {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #111;
	text-decoration: none;
	border-bottom: 1px solid #111;
	padding-bottom: 0.25rem;
}

.news-archive__empty {
	padding-top: 1rem;
	color: #444;
}

/* ===== FORMULARIOS CF7 ===== */
/* --- Sección CV espontáneo (talent-page.php) --- */
.gdnt-cv-section {
  padding: 0;
}

.gdnt-cv-section__inner {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius, 10px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
  padding: 2.5rem 2rem;
}

.gdnt-cv-section__title {
  font-family: 'DINPro', system-ui, sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.gdnt-cv-section__lead {
  color: var(--muted-gray);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* --- Sección solicitud de oferta (single-job_offer.php) --- */
.gdnt-apply-section__title {
  font-family: 'DINPro', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.75rem;
}

/* --- Campos comunes a ambos formularios --- */
.gdnt-cf7 .wpcf7-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

/* Cada <p> de CF7 es un ítem del grid */
.gdnt-cf7 .wpcf7-form > p {
  margin: 0;
}

/* Campos que siempre ocupan todo el ancho */
.gdnt-cf7 .wpcf7-form > p:has(textarea),
.gdnt-cf7 .wpcf7-form > p:has(input[type="file"]),
.gdnt-cf7 .wpcf7-form > p:has(input[type="checkbox"]),
.gdnt-cf7 .wpcf7-form > p:has(.wpcf7-acceptance),
.gdnt-cf7 .wpcf7-form > p:has(.wpcf7-submit),
.gdnt-cf7 .wpcf7-response-output {
  grid-column: 1 / -1;
}

/* Los controles heredan el ancho de su <p> */
.gdnt-cf7 .wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Inputs de texto / email / tel */
.gdnt-cf7 .wpcf7-form input[type="text"],
.gdnt-cf7 .wpcf7-form input[type="email"],
.gdnt-cf7 .wpcf7-form input[type="tel"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(52, 51, 22, 0.25);
  border-radius: var(--radius, 10px);
  background: #fff;
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text-color);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
}

.gdnt-cf7 .wpcf7-form input[type="text"]:focus,
.gdnt-cf7 .wpcf7-form input[type="email"]:focus,
.gdnt-cf7 .wpcf7-form input[type="tel"]:focus {
  outline: none;
  border-color: var(--text-color);
  box-shadow: 0 0 0 3px rgba(52, 51, 22, 0.1);
}

/* Textarea */
.gdnt-cf7 .wpcf7-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  min-height: 130px;
  border: 1px solid rgba(52, 51, 22, 0.25);
  border-radius: var(--radius, 10px);
  background: #fff;
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 0.95rem;
  color: var(--text-color);
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.gdnt-cf7 .wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--text-color);
  box-shadow: 0 0 0 3px rgba(52, 51, 22, 0.1);
}

/* Input file */
.gdnt-cf7 .wpcf7-form input[type="file"] {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px dashed rgba(52, 51, 22, 0.35);
  border-radius: var(--radius, 10px);
  background: rgba(255, 255, 255, 0.6);
  font-family: 'Graphik', system-ui, sans-serif;
  font-size: 0.88rem;
  color: var(--muted-gray);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gdnt-cf7 .wpcf7-form input[type="file"]:hover {
  border-color: var(--text-color);
  background: rgba(255, 255, 255, 0.9);
}

/* Botón enviar */
.gdnt-cf7 .wpcf7-form .wpcf7-submit {
  justify-self: start;
  padding: 0.85rem 2.5rem;
  background: var(--text-color);
  color: #fff;
  border: 1px solid var(--text-color);
  border-radius: var(--radius, 10px);
  font-family: 'DINPro', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.gdnt-cf7 .wpcf7-form .wpcf7-submit:hover {
  background: rgba(52, 51, 22, 0.82);
  border-color: rgba(52, 51, 22, 0.82);
  transform: translateY(-1px);
}

.gdnt-cf7 .wpcf7-form .wpcf7-submit:focus {
  outline: 3px solid rgba(52, 51, 22, 0.18);
  outline-offset: 3px;
}

.gdnt-cf7 .wpcf7-form .wpcf7-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Mensajes de validación y respuesta */
.gdnt-cf7 .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #b94a48;
  margin-top: 0.3rem;
  display: block;
}

.gdnt-cf7 .wpcf7-form input.wpcf7-not-valid,
.gdnt-cf7 .wpcf7-form textarea.wpcf7-not-valid {
  border-color: #b94a48;
}

.gdnt-cf7 .wpcf7-response-output {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius, 10px);
  font-size: 0.9rem;
  font-family: 'Graphik', system-ui, sans-serif;
  border: 1px solid transparent;
  margin-top: 0.5rem;
}

.gdnt-cf7 .wpcf7-form.sent .wpcf7-response-output {
  background: #f0f7f0;
  border-color: #c3dfc3;
  color: #2d5a2d;
}

.gdnt-cf7 .wpcf7-form.failed .wpcf7-response-output,
.gdnt-cf7 .wpcf7-form.invalid .wpcf7-response-output,
.gdnt-cf7 .wpcf7-form.spam .wpcf7-response-output {
  background: #fdf3f3;
  border-color: #e8c4c4;
  color: #7a2020;
}

/* ===== MEDIA QUERYS - RESPONSIVE ===== */
/* ===== HOME ===== */
/* HERO */
@media (prefers-reduced-motion: reduce) {
  .hero--video .hero-video {
    display: none;
  }
}
@media (max-width: 576px) {
  /* Margen inferior para que el texto no quede pegado al borde del hero */
  .hero--video .hero-inner { padding: 0 1.25rem calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
  .hero.hero--video::before {
    background: linear-gradient(0deg,
      rgba(0,0,0,.8) 0%,
      rgba(0,0,0,.5) 50%,
      rgba(0,0,0,.1) 100%);
  }
}
/* Sección 1 - Historia */
/*@media (max-width: 992px) {
  .history-image { height: 340px; }
  .history-figure-caption * { font-size: 1.6rem; }
}

@media (max-width: 576px) {
  .history-image { height: 240px; }
  .history-figure-caption * { font-size: 1.25rem; padding: 0 0.75rem; }
}
  
/* Sección 2 - Empresas */
/* responsive: 2 cols on tablet, 1 col on mobile */
/*@media (max-width: 992px) {
  .empresa-grid { grid-template-columns: repeat(2, 1fr); }
  .empresa-card { height: 260px; }
}

@media (max-width: 576px) {
  .empresa-grid { grid-template-columns: 1fr; }
  .empresa-card { height: 220px; }
  .empresa-desc { display: block; } /* on small screens show description by default */
/*}*/

/* Sección 3 - Carrusel de noticias */
  /* Movil */
@media (max-width: 576px) {
  /* Ajuste imagen de la tarjeta */
  .section-three .card-img-top { height: 160px; }
  /* Aumentar área de touch en móvil */
  .section-three .mc-prev { left: 8px; }
  .section-three .mc-next { right: 8px; }
}
  
/* Accesibilidad / reduced motion */
@media (prefers-reduced-motion: reduce) {
  .section-three .mc-track { transition: none; }
  .section-three img.lazy, .section-three img.loaded { transition: none; }
}
  
/* Responsive: 2 columnas */
@media (max-width: 992px) {
  .section-three .mc-item {
    flex: 0 0 calc((100% - (1 * var(--carousel-gap))) / 2);
    max-width: calc((100% - (1 * var(--carousel-gap))) / 2);
    min-width: 240px;
  }
}
  
/* Responsive: 1 columna */
@media (max-width: 576px) {
  .section-three .mc-item {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .section-one .history-stat-icon {
    --history-stat-icon-size: 48px;
  }
  .section-one .history-stat-text {
    font-size: 0.9rem;
    margin: 1rem 0 0; /* sin los 3rem laterales: en col-6 dejaban ~70px de texto */
  }
}

/* ===== MÁRGENES GENERALES EN MÓVIL ===== */
@media (max-width: 575.98px) {
  /* 20px de margen lateral en lugar de 12px */
  .container,
  .container-fluid {
    --bs-gutter-x: 2.5rem;
  }

  /* Títulos de hero largos (p. ej. "SOLUCIONES GLOBALES"): que no desborden en pantallas estrechas */
  .hero-inner {
    max-width: 100%;
    padding: 0 1.25rem;
  }
  .hero-title {
    overflow-wrap: break-word;
  }

  /* Inicio: el contenedor ya aporta el margen lateral */
  .section-two {
    padding-left: 0;
    padding-right: 0;
  }

  /* Inicio: el texto justificado en columna estrecha deja huecos */
  .section-one .heading p {
    text-align: left;
    text-align-last: auto;
  }

  /* Inicio: flechas del carrusel debajo de las tarjetas, sin tapar el título */
  .section-three .multi-carousel {
    padding-bottom: 3.5rem;
  }
  .section-three .mc-prev,
  .section-three .mc-next {
    top: auto;
    bottom: 0.5rem;
    transform: none;
    min-width: 44px;
    min-height: 44px;
  }
  .section-three .mc-prev { left: calc(50% - 52px); }
  .section-three .mc-next { right: calc(50% - 52px); }
  .section-three .mc-prev:hover,
  .section-three .mc-next:hover { transform: none; }
}

/* ===== HISTORY PAGE ===== */
/* Desktop */
@media (min-width: 820px) {

  /* Two columns SIEMPRE 50 / 50 */
  .hito__body--twocol {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  /* Orden según tipo */
  .hito__body--left .hito__col--media { order: 1; }
  .hito__body--left .hito__col--copy  { order: 2; }

  .hito__body--right .hito__col--copy  { order: 1; }
  .hito__body--right .hito__col--media { order: 2; }

  /* Tamaños desktop */
  .hito__year { font-size: 3rem; }
  .hito__title { font-size: 1.6rem; }
}

/* Espaciado final */
.history-list {
  padding-bottom: 3rem;
}

/* ===== COMPANY PAGE ===== */
/*
 * Altura flexible: en móvil/tablet y en pantallas de poca altura el texto de
 * algunas empresas no cabe en una pantalla. El slide ocupa como mínimo una
 * pantalla pero crece con su contenido, y el snap deja de ser obligatorio.
 */
@media (max-width: 991.98px), (max-height: 760px) {
  .company-slide {
      height: auto;
      min-height: calc(100vh - var(--header-height));
      min-height: calc(100svh - var(--header-height));
  }

  .company-slide__content {
      padding-top: 3rem;
      padding-bottom: 3rem;
  }
}

/* PC con poca altura: se mantiene el encaje, pero no obligatorio */
@media (min-width: 992px) and (max-height: 760px) {
  html.companies-snap {
      scroll-snap-type: y proximity;
  }
}

@media (max-width: 991.98px) {
  /* Móvil/tablet: scroll libre */
  html.companies-snap {
      scroll-snap-type: none;
  }

  .company-slide {
      align-items: end;
      scroll-snap-align: none;
  }

  /* Overlay oscuro para texto en claro */
  .company-slide__overlay {
      background: linear-gradient(
          180deg,
          rgba(0, 0, 0, 0.35) 0%,
          rgba(0, 0, 0, 0.65) 30%,
          rgba(0, 0, 0, 0.85) 100%
      );
  }

  .company-slide__content {
      padding-top: 4rem;
      padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
  }

  .company-slide__counter {
      color: rgba(255, 255, 255, 0.9);
  }

  .company-slide__counter-line {
      background: rgba(255, 255, 255, 0.6);
  }

  .company-slide__title {
      color: #fff;
      text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  }

  .company-slide__text,
  .company-slide__text p,
  .company-slide__text li,
  .company-slide__text strong,
  .company-slide__text a {
      color: rgba(255, 255, 255, 0.92);
  }

  .company-slide__text {
      text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  }

  .company-link-btn--primary {
      background: #fff;
      color: #000;
  }

  .company-link-btn--primary:hover,
  .company-link-btn--primary:focus-visible {
      background: rgba(255, 255, 255, 0.85);
      color: #000;
      border-color: #fff;
  }

  .company-slide__title {
      font-size: clamp(2rem, 9vw, 3.4rem);
  }

  .company-slide__text {
      font-size: 1rem;
      line-height: 1.6;
  }

  .company-link-btn {
      width: 100%;
  }
}

/* ===== ¿QUIENES SOMOS? ===== */
@media (max-width: 991.98px) {
  .panel-row-style.gdnt-cards-3 { 
    grid-template-columns: repeat(2, 1fr);
    width: 100%;           /* en tablet y móvil, ancho completo */
  }
}
@media (max-width: 575.98px) {
  .panel-row-style.gdnt-cards-3 { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pdevalor-grupal h5 { min-height: 0; }
}
/* Tablet y móvil (SiteOrigin apila a 780px) */
@media (max-width: 780px) {
  .misionvision > .panel-grid-cell { margin-bottom: 0 !important; }
  .misionvision > .panel-grid-cell:has(> .mv-imagen) { order: -1; }  /* foto siempre encima de su texto */
  .misionvision .mv-imagen { min-height: 0; aspect-ratio: 16 / 9; } /* altura propia para la foto */
  .misionvision { margin-bottom: 2rem; }
}

/* ===== INNOVATION PAGE ===== */
@media (max-width: 1199.98px) {
  .panel-row-style.gdnt-ecosistema { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
  .panel-row-style.gdnt-ecosistema { grid-template-columns: repeat(2, 1fr); }
  .innovation-ecosystem { padding: 3rem 1.5rem !important; }
  .innovation-contact .ow-button-base a { display: block; text-align: center; }
  .misionvision .mv-imagen { min-height: 0; aspect-ratio: 1 / 1; }
  .innovation-objetives { padding: 3rem 1.5rem !important; }
}
@media (max-width: 575.98px) {
  .panel-row-style.gdnt-ecosistema { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
@media (max-width: 767.98px) {
  .main-footer {
    text-align: center;
  }

  .footer-group-logos {
    padding: 30px 0;
  }

  /* Sin aire extra: las líneas del logo y del copyright cierran el acordeón */
  .footer-content .row.py-5 {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Acordeón: Conócenos / Empresas / Legal */
  .footer-col {
    border-bottom: 1px solid #e5e5e5;
  }
  .footer-col:last-child {
    border-bottom: 0;
  }
  .main-footer h3.footer-col__title {
    margin: 0;
  }
  .footer-col__toggle {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    padding: .85rem 0;
  }
  .main-footer .footer-col__menu .footer-nav {
    padding: 0 0 1rem !important; /* anula el padding-left global de ul */
  }

  /* Copyright y redes centrados */
  .footer-copyright p {
    margin-bottom: .5rem;
  }
  .footer-social a {
    display: inline-block;
    margin: 0 6px;
    padding: .5rem;
    font-size: 18px;
  }
}

/* ===== NOTICIAS ===== */
@media (max-width: 991.98px) {
	.news-card--featured {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767.98px) {
	.news-archive {
		padding-top: 2rem;
		padding-bottom: 3.5rem;
	}

	.news-archive__header {
		margin-bottom: 2rem;
	}

	.news-card__title,
	.news-card__title--featured {
		font-size: 1.75rem;
		line-height: 1.05;
	}

	.news-card__media,
	.news-card__media--featured {
		aspect-ratio: 4 / 3;
	}

	.news-pagination {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ===== INNOVATION PAGE ===== */
@media (min-width: 781px) {
  .valordiferencial .widget_sow-image {
    position: relative;
    height: 100%;
  }
  .valordiferencial .widget_sow-image img {
    position: absolute;
    inset: 0;
    width: 75%;
    height: 100% !important;
    margin-left: auto;
    object-fit: cover;
  }
}

@media (max-width: 780px) {
  .valordiferencial .widget_sow-image img {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
  }
}

/* ===== FORMULARIOS DE TALENTO (CF7) ===== */
@media (max-width: 767.98px) {
  .gdnt-cv-section__inner {
    padding: 1.75rem 1.25rem;
  }

  .gdnt-cf7 .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .gdnt-cf7 .wpcf7-form .wpcf7-submit {
    width: 100%;
    justify-self: stretch;
  }
}
