/* Servicios — «Nuestros servicios» block parity with live /services/ */
.section--services {
  background: var(--color-white);
  padding: 80px 20px 0;
}

.services-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0 0 60px;
  text-align: center;
}

.services-intro h2 {
  margin: 0;
  width: 100%;
}

.services-intro p {
  margin: 0;
  max-width: 1024px;
  font-size: 24px;
  line-height: 1.65;
  font-weight: 400;
  color: var(--color-text);
}

.services-list {
  display: grid;
  gap: 40px;
}

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

.service-block {
  background: var(--color-white);
  border-radius: 18px;
  padding: 64px;
  box-shadow: 0 6px 20px rgba(110, 110, 110, 0.48);
}

.service-block__icon {
  width: auto;
  height: 90px;
  max-width: 109px;
  object-fit: contain;
  object-position: left center;
  display: block;
  margin: 0 0 40px;
}

.service-block__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-block h3 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-black);
}

.service-block p {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
}

/* Live: plain footnote + .decoration_none.link.size-24 (not inventada caja) */
.costs-teaser {
  margin: 60px 0 250px;
  padding: 0 64px;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.costs-teaser p {
  margin: 0;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
}

.costs-teaser a,
.costs-teaser .link.size-24 {
  color: var(--color-black);
  font-size: 24px;
  font-weight: 500;
  line-height: inherit;
  text-decoration: none;
}

.costs-teaser a:hover {
  color: var(--color-accent-text);
}

@media (max-width: 1024px) {
  .service-block {
    padding: 32px;
  }

  .service-block__icon {
    height: 80px;
    margin-bottom: 24px;
  }

  .costs-teaser {
    padding: 0 24px;
  }
}

@media (max-width: 767px) {
  .section--services {
    padding: 40px 20px 0;
  }

  .services-intro {
    margin-bottom: 40px;
    gap: 16px;
  }

  .services-intro h2 {
    font-size: 32px;
  }

  .services-intro p {
    font-size: 20px;
    line-height: 1.65;
  }

  .services-list {
    gap: 24px;
  }

  .service-block {
    padding: 24px;
  }

  .service-block__icon {
    height: 70px;
    margin-bottom: 15px;
  }

  .service-block h3 {
    font-size: 24px;
  }

  .service-block p {
    font-size: 20px;
  }

  .costs-teaser {
    margin: 40px 0 120px;
    padding: 0;
  }

  .costs-teaser p,
  .costs-teaser a,
  .costs-teaser .link.size-24 {
    font-size: 20px;
  }
}

/* .page-hero--plain lives in components.css (critical path; this file is deferred) */

.narrow {
  max-width: 52rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: 1.75rem;
}

.eyebrow,
h3.eyebrow {
  font-size: var(--font-size-eyebrow);
  line-height: var(--line-height-eyebrow);
  letter-spacing: normal;
  text-transform: none;
  color: var(--color-accent-text);
  font-weight: 500;
  margin-bottom: var(--space-eyebrow-bottom);
  font-family: var(--font-body);
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-grid--3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feature-grid article {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.4rem;
}

.feature-grid h3,
.feature-grid h5,
.feature-grid h6 {
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-black);
}

.feature-grid--icons h3,
.feature-grid h5,
.feature-grid h6 {
  font-size: 1rem;
  font-weight: 500;
}

.feature-grid p {
  margin: 0;
  font-size: 0.95rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  display: block;
  margin-bottom: 0.75rem;
}

.feature-grid--icons article {
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(110, 110, 110, 0.28);
}

/* Empresa: Stage-Gate benefits — centered icon columns (live Elementor parity) */
.section--stage-benefits > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section--stage-benefits > .container > .eyebrow,
.section--stage-benefits > .container > h2 {
  text-align: center;
  max-width: 86%;
}

.section--stage-benefits > .container > h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8125rem); /* 32–45px like live kit */
  font-weight: 400;
  line-height: 1.2;
}

.feature-grid--stage-benefits {
  width: 100%;
  margin-top: 2.5rem; /* ~40px mobile */
  gap: 2.5rem;
  justify-items: center;
}

@media (min-width: 700px) {
  .feature-grid--stage-benefits {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2.5rem; /* 20px / 40px */
  }
}

@media (min-width: 1000px) {
  .feature-grid--stage-benefits {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 3.75rem; /* ~60px */
  }
}

.feature-grid--stage-benefits article {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  text-align: center;
  max-width: 18rem;
}

.feature-grid--stage-benefits .feature-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 14px;
}

@media (min-width: 1000px) {
  .feature-grid--stage-benefits .feature-icon {
    width: 88px;
    height: 88px;
  }
}

.feature-grid--stage-benefits h3,
.feature-grid--stage-benefits h5 {
  margin: 0 0 0.4rem;
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px tablet/mobile */
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-black);
}

@media (min-width: 1000px) {
  .feature-grid--stage-benefits h3,
  .feature-grid--stage-benefits h5 {
    font-size: 1.25rem; /* 20px */
  }
}

.feature-grid--stage-benefits p {
  margin: 0;
  font-size: 1rem; /* 16px mobile */
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .feature-grid--stage-benefits p {
    font-size: 1.125rem; /* 18px */
  }
}

/* Empresa: Aspectos esenciales — bordered icon+text cards (live parity) */
.section--essentials {
  background: var(--color-white);
}

.section--essentials > .container > h2 {
  margin-bottom: 6rem; /* ~96px to grid like live */
}

.feature-grid--essentials {
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .feature-grid--essentials {
    gap: 2.5rem;
  }
}

@media (min-width: 1000px) {
  .feature-grid--essentials.feature-grid--3 {
    gap: 60px;
  }
}

.feature-grid--essentials article {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 10px;
  align-items: start;
  background: transparent;
  box-shadow: none;
  border: 1px solid #dbdbdb;
  border-radius: 18px;
  padding: 18px;
}

.feature-grid--essentials .feature-icon {
  grid-row: 1 / span 2;
  width: 50px;
  height: 50px;
  margin-bottom: 0;
}

.feature-grid--essentials h3,
.feature-grid--essentials h5 {
  margin: 0;
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  line-height: 1.2;
  font-family: var(--font-body);
  color: var(--color-black);
}

.feature-grid--essentials p {
  margin: 0;
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
}

/* Empresa: Quiénes somos + Barcelona */
.about-split {
  display: grid;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
  }
}

.about-split__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--color-black);
}

.about-split__media {
  min-height: 320px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

@media (min-width: 900px) {
  .about-split__media {
    min-height: 100%;
  }
}

/* Empresa: Cómo trabajamos — measured vs live econsultants.es/empresa/ @1440 */
.how-we-work-section {
  background: transparent;
  /* Live boxed block uses ~120px top margin, not surface band */
  padding-top: 7.5rem;
  padding-bottom: 0;
}

.how-we-work__intro {
  max-width: none;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.how-we-work__intro h2 {
  margin: 0;
  max-width: 68%;
  font-size: 45px;
  line-height: 1.3;
  font-weight: 400;
}

.how-we-work__intro > p:not(.eyebrow) {
  margin: 20px 0 0;
  max-width: 88%;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.65;
}

.how-we-work__body {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-top: 80px;
  margin-bottom: 60px;
}

@media (min-width: 900px) {
  .how-we-work__body {
    grid-template-columns: 45% 55%;
    gap: 0;
  }
}

.how-we-work__figure {
  margin: 0;
  text-align: center;
}

.how-we-work__figure img {
  width: auto;
  max-width: 420px;
  height: auto;
  display: inline-block;
  object-fit: cover;
  border-radius: 28px;
}

.how-we-work__duration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 10px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-black);
}

.how-we-work__duration .calendar-icon {
  width: 24px;
  height: 24px;
  margin-right: 15px;
  margin-bottom: 3px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .how-we-work-section {
    padding-top: 5.625rem;
  }

  .how-we-work__intro h2 {
    max-width: 100%;
    font-size: clamp(1.75rem, 4vw, 45px);
  }

  .how-we-work__intro > p:not(.eyebrow) {
    max-width: 100%;
    font-size: 22px;
  }

  .how-we-work__body {
    margin-top: 60px;
    margin-bottom: 50px;
  }

  .how-we-work__figure img {
    max-width: 340px;
  }
}

@media (max-width: 767px) {
  .how-we-work-section {
    padding-top: 3.5rem;
  }

  .how-we-work__intro > p:not(.eyebrow) {
    font-size: 20px;
  }

  .how-we-work__body {
    margin-top: 40px;
    margin-bottom: 40px;
    gap: 40px;
  }

  .how-we-work__figure img {
    max-width: 250px;
  }
}

.vertical-timeline {
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d9d9d9;
  z-index: 1;
}

.timeline-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  align-items: start;
  gap: 58px;
  margin-bottom: 86px;
  box-sizing: border-box;
}

.timeline-item:first-child {
  padding-top: 22px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item .marker {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  grid-column: 1;
  justify-self: center;
  z-index: 2;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transition: transform 520ms cubic-bezier(0.2, 0.9, 0.2, 1), opacity 420ms ease;
}

.timeline-item .content {
  grid-column: 2;
  opacity: 0;
  transform: translateX(12px);
  transition: transform 520ms ease, opacity 520ms ease;
}

.timeline-item .content .title {
  font-size: 28px;
  margin: 0 0 6px;
  line-height: 1.2;
  color: #111;
  font-weight: 600;
}

.timeline-item .content .desc {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #636363;
  line-height: 1.4;
  font-weight: 500;
}

.timeline-item.is-visible .marker,
.timeline-item.visible .marker {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.timeline-item.is-visible .content,
.timeline-item.visible .content {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 160ms;
}

@media (max-width: 1024px) {
  .timeline::before {
    left: 45px;
  }

  .timeline-item {
    grid-template-columns: 90px 1fr;
    gap: 26px;
    margin-bottom: 30px;
  }

  .timeline-item .content .title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .timeline-item {
    grid-template-columns: 44px 1fr;
    margin-bottom: 46px;
  }

  .timeline::before {
    left: 22px;
  }

  .timeline-item .content .title {
    font-size: 24px;
  }
}

.split-media {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .split-media {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.split-media figure {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.steps-list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.85rem;
}

/* Empresa: Consultoría tecnológica y retrofit — Stage-Gate peek carousel
   Visual target: /tmp/exampleOfConsultoriaTecnologicayretrofit.png
   (~1/3 copy + ~2/3 cards; one full card + generous peek; slim green chevron) */
.retrofit-section {
  padding-top: 0;
  padding-bottom: 0;
}

.retrofit {
  background: var(--color-surface);
  border-radius: 32px;
  padding: 56px 48px 56px 56px;
  margin-top: 160px;
  display: flex;
  align-items: center; /* Figma: phase carousel vertically centered vs copy */
  gap: 40px;
}

.retrofit__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 0 0 32%;
  width: 32%;
  max-width: none;
}

.retrofit__copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--color-black);
}

.retrofit__copy p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-text);
}

.stage-carousel {
  /* ~65% active + gap + peek of next card (matches example proportions) */
  --stage-slide-size: 66%;
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
}

/* Soft grey edge fade so the peeking next card isn’t hard-clipped (Figma) */
.stage-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(2.5rem, 14%, 5.5rem);
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgb(239 239 237 / 0%),
    var(--color-surface) 72%,
    var(--color-surface)
  );
}

.stage-viewport {
  overflow: hidden;
  width: 100%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.stage-viewport.is-dragging {
  cursor: grabbing;
}

.stage-track {
  position: relative; /* offsetParent for slides — fixes first-paint offsetLeft */
  display: flex;
  align-items: stretch;
  gap: 16px;
  will-change: transform;
  transition: transform 0.35s ease;
}

.stage-card {
  flex: 0 0 var(--stage-slide-size);
  width: var(--stage-slide-size);
  min-width: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  padding: 1.75rem 1.6rem 1.5rem;
  background: var(--color-white);
  border-radius: 14px;
}

.stage-card__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.stage-card__num {
  display: block;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--color-accent);
}

.stage-card__title {
  margin: 0;
  width: 100%;
  font-family: var(--font-body);
  font-size: 1.5rem; /* Figma: phase title larger than body */
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-black);
}

.stage-card__block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stage-card__block p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--color-text);
}

.stage-card__block p.stage-card__label {
  font-size: 0.9375rem;
  font-weight: 700; /* Figma: Objetivo / Actividades bold */
  color: var(--color-black);
}

.stage-card__gate {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.stage-card__gate img {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin-top: 0.15rem;
}

.stage-card__gate p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700; /* Figma: Puerta x – … bold */
  line-height: 1.45;
  color: var(--color-black);
}

/* Slim green chevrons over the peek (example), not filled circles */
.carousel-nav--stage {
  position: absolute;
  inset: 0;
  margin: 0;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.carousel-nav--stage .carousel-btn {
  pointer-events: auto;
  z-index: 2;
  width: 22px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  opacity: 1;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.carousel-nav--stage .carousel-btn svg {
  width: 14px;
  height: 24px;
  display: block;
}

.carousel-nav--stage .carousel-btn:hover:not(:disabled) {
  color: #1e802f;
}

.carousel-nav--stage .carousel-btn:hover:not(:disabled) svg circle {
  fill: none;
}

.carousel-nav--stage .carousel-btn--prev {
  margin-left: 0.15rem;
}

.carousel-nav--stage .carousel-btn--next {
  margin-left: auto;
  margin-right: 0.15rem;
}

/* Example shows only the right chevron on the first slide */
.carousel-nav--stage .carousel-btn:disabled {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .stage-track {
    transition: none;
  }
}

@media (max-width: 1024px) {
  .retrofit {
    margin-top: 120px;
    padding: 32px;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
  }

  .retrofit__copy {
    flex: none;
    width: 100%;
  }

  .retrofit__copy h2 {
    font-size: clamp(1.5rem, 4vw, 36px);
  }

  /* Stacked / small: full-width cards, no edge fade */
  .stage-carousel {
    --stage-slide-size: 100%;
    width: 100%;
  }

  .stage-carousel::after {
    display: none;
  }

  .stage-track {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .retrofit__copy p {
    font-size: 16px;
  }

  .stage-carousel {
    --stage-slide-size: 100%;
  }

  .stage-card {
    padding: 1.35rem 1.15rem 1.25rem;
  }

  /* Mobile: keep chevrons vertically centered on each side (left/right),
     overlaying the card — not stacked below it (per designer). */
  .carousel-nav--stage {
    position: absolute;
    inset: 0;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    margin-top: 0;
  }

  .carousel-nav--stage .carousel-btn--prev {
    margin: 0;
  }

  .carousel-nav--stage .carousel-btn--next {
    margin: 0 0 0 auto;
  }

  .carousel-nav--stage .carousel-btn:disabled {
    opacity: 0;
    pointer-events: none;
  }
}

/* Empresa: Nuestro equipo — text-only carousel (WP #carrusel-equipo copy) */
.section--team {
  background: var(--color-white);
  padding-top: 160px;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.section--team > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section--team > .container > .eyebrow,
.section--team > .container > h2 {
  text-align: center;
  max-width: 86%;
}

.section--team > .container > h2 {
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8125rem); /* 32–45px like live */
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-black);
}

.team-carousel {
  --slide-size: 32%;
  position: relative;
  width: 100%;
}

.team-viewport {
  overflow: hidden;
  width: 100%;
  padding: 8px 0 12px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.team-viewport.is-dragging {
  cursor: grabbing;
}

.team-track {
  position: relative; /* offsetParent for slides — stable first-paint offsetLeft */
  display: flex;
  gap: 24px;
  will-change: transform;
  transition: transform 0.35s ease;
}

.team-card {
  flex: 0 0 var(--slide-size);
  width: var(--slide-size);
  min-width: 0;
  box-sizing: border-box;
  background: var(--color-surface);
  border-radius: var(--radius-md, 12px);
  padding: 1.75rem 1.5rem;
  text-align: left;
}

.team-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-black);
}

.team-card__role {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-accent-text);
}

.team-card > p:last-child {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--color-text);
}

.team-carousel .carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 1.5rem;
  padding: 0 1rem;
}

/* Visual dot ~10px; hit area ≥28px for Lighthouse touch-target spacing */
.team-carousel .carousel-dot {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.team-carousel .carousel-dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: #b8b8b8;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.team-carousel .carousel-dot:hover::after {
  background: #8a8a8a;
}

.team-carousel .carousel-dot:focus-visible {
  outline: 2px solid var(--color-accent, #259b38);
  outline-offset: 2px;
}

.team-carousel .carousel-dot.is-active::after,
.team-carousel .carousel-dot[aria-current="true"]::after {
  background: var(--color-accent, #259b38);
  transform: scale(1.15);
}

/* Large screens: narrower/taller cards + edge fade (mobile unchanged below) */
@media (min-width: 768px) {
  .team-carousel {
    --slide-size: 26%;
  }

  .team-viewport {
    position: relative;
    padding-left: clamp(1.25rem, 3.5vw, 2.75rem);
    padding-right: clamp(1.25rem, 3.5vw, 2.75rem);
  }

  .team-viewport::before,
  .team-viewport::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(3rem, 8vw, 6.5rem);
    z-index: 2;
    pointer-events: none;
  }

  .team-viewport::before {
    left: 0;
    background: linear-gradient(
      to right,
      var(--color-white) 0%,
      rgba(255, 255, 255, 0.85) 40%,
      transparent 100%
    );
  }

  .team-viewport::after {
    right: 0;
    background: linear-gradient(
      to left,
      var(--color-white) 0%,
      rgba(255, 255, 255, 0.85) 40%,
      transparent 100%
    );
  }

  .team-card {
    padding: 2.15rem 1.35rem;
  }
}

@media (max-width: 1280px) and (min-width: 768px) {
  .team-carousel {
    --slide-size: 32%;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .team-carousel {
    --slide-size: 42%;
  }
}

@media (max-width: 767px) {
  .section--team {
    padding-top: 80px;
  }

  .section--team > .container > h2 {
    margin-bottom: 1.75rem;
  }

  .team-carousel {
    --slide-size: 86%;
  }

  .team-card {
    padding: 1.4rem 1.2rem;
  }

  .team-card h3 {
    font-size: 1.125rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-track {
    transition: none;
  }
}

.industry-intro-section {
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 0;
}

.industry-intro {
  display: grid;
  gap: 1.75rem; /* 28px — live e-con-inner gap */
  align-items: start;
}

@media (min-width: 768px) {
  .industry-intro {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
  }
}

/* Live Elementor: copy column padded so text ≈500px at desktop; gap H3→p = 20px */
.industry-intro__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-sizing: border-box;
  padding-inline: 10px;
}

@media (min-width: 768px) {
  .industry-intro__copy {
    padding-inline: 32px;
  }
}

@media (min-width: 1025px) {
  .industry-intro__copy {
    padding-inline: 64px;
  }
}

.industry-intro__copy h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-black);
  margin: 0;
}

@media (min-width: 768px) {
  .industry-intro__copy h2 {
    font-size: 38px;
  }
}

@media (min-width: 1025px) {
  .industry-intro__copy h2 {
    font-size: 45px;
  }
}

.industry-intro__copy .lead {
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  color: var(--color-text);
}

@media (min-width: 768px) {
  .industry-intro__copy .lead {
    font-size: 22px;
  }
}

@media (min-width: 1025px) {
  .industry-intro__copy .lead {
    font-size: 24px;
  }
}

.industry-visual {
  position: relative;
  margin: 0;
  border-radius: 38px;
  overflow: hidden;
  line-height: 0;
}

.industry-visual > img {
  width: 100%;
  height: auto;
  display: block;
}

.industry-visual__stat {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  padding: 0 1.15rem 2.15rem 1.15rem;
  max-width: 260px;
  color: #fff;
  line-height: 1.35;
  pointer-events: none;
}

.industry-visual__stat p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 400;
  color: #fff;
  max-width: 12.5rem;
}

.number_percent {
  display: block;
  font-size: clamp(1.75rem, 4vw, 3.125rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

@media (max-width: 767px) {
  .industry-visual__stat {
    /* SVG green plate is ~41% of artboard (260/633); keep caption on that plate */
    max-width: 42%;
    padding: 0 0.4rem 0.55rem 0.5rem;
  }

  .industry-visual__stat p {
    font-size: 0.8125rem; /* 13px — eólica long line stays on plate */
    max-width: none;
  }

  .number_percent {
    font-size: 1.5rem; /* 24px */
  }
}

.industry-value-section {
  padding-top: clamp(5rem, 14vw, 11rem);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
}

.industry-value__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.8125rem); /* live 45px */
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-black);
  margin: 0 0 4.25rem; /* ~68px gap to tablist on live */
}

/* Mobile-safe tablist scroll: avoid justify-content:center + overflow-x
   (leading overflow becomes unreachable on touch). Pseudo spacers center
   when tabs fit; they collapse when content overflows so scroll starts at 0. */
.value-tabs__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
  margin-bottom: 0;
  padding-bottom: 0;
}

.value-tabs__list::before,
.value-tabs__list::after {
  content: "";
  margin: auto;
}

.value-tabs__tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--color-text); /* live inactive #636363 */
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 35px; /* live tab height ~46px */
  border-radius: 20px 20px 0 0;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
}

.value-tabs__tab[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-black);
}

.value-tabs__tab:hover,
.value-tabs__tab:focus-visible {
  background: var(--color-surface);
  outline: none;
}

.value-tabs__panel {
  display: none;
  background: var(--color-surface);
  border-radius: 46px;
  padding: clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem);
  gap: 35px;
  align-items: center;
}

.value-tabs__panel.is-active {
  display: grid;
}

@media (min-width: 800px) {
  .value-tabs__panel.is-active {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile: square top edges on tab chrome + panel (FEAT-33) */
@media (max-width: 767px) {
  .value-tabs__tab {
    border-radius: 0;
  }

  .value-tabs__panel {
    border-radius: 0 0 46px 46px;
  }
}

.value-tabs__copy {
  max-width: 450px;
}

.value-tabs__copy h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem); /* live 36px */
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1rem;
  color: var(--color-black);
}

.value-tabs__copy p {
  margin: 0;
  font-size: 1.125rem; /* live 18px */
  line-height: 1.65;
  color: var(--color-text);
}

.value-tabs__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.value-tabs__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Live per-panel image widths (eólica + shared assets on ferroviaria) */
.value-tabs__media img[src*="molinos"] {
  width: min(100%, 527px);
}

.value-tabs__media img[src*="experiencia-ferroviaria"] {
  width: min(100%, 547px);
}

.value-tabs__media img[src*="solutions"] {
  width: min(100%, 369px);
}

.value-tabs__media img[src*="innovacion"] {
  width: min(100%, 256px);
}

.value-tabs__media img[src*="oportunities"] {
  width: min(100%, 383px);
}

/* Industry CTA — vertical rhythm from Elementor (eólica #166c687 / title kit de98611):
   margins 250 / 180 / 120; title 56 / 48 / 40 @ lh 1.3.
   Title wrap matches Home (#cta): max-width min(22ch, 100%) — not full container. */
.cta-band--industry {
  padding-top: 250px;
  padding-bottom: 250px;
}

.cta-band--industry .cta-band__title {
  max-width: min(22ch, 100%);
  font-size: 3.5rem; /* 56px kit de98611 */
  line-height: 1.3;
}

@media (max-width: 1024px) {
  .cta-band--industry {
    padding-top: 180px;
    padding-bottom: 180px;
  }

  .cta-band--industry .cta-band__title {
    font-size: 3rem; /* 48px */
  }
}

@media (max-width: 767px) {
  .cta-band--industry {
    padding-top: 120px;
    padding-bottom: 120px;
  }

  .cta-band--industry .cta-band__title {
    font-size: 2.5rem; /* 40px */
  }
}

/* Keep legacy value-grid/stat-callout for any residual pages */
.stat-callout {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  text-align: center;
}

.stat-callout__value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  color: var(--color-accent-text);
  line-height: 1;
  margin: 0 0 0.5rem;
}

.stat-callout__label {
  margin: 0;
  font-size: 0.95rem;
}

.value-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.value-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.value-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.value-card h3 {
  margin-bottom: 0.5rem;
}

.value-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* Especialidades page — live Elementor: row1 text 55%|img 45%; row2 img 45%|text 55% */
.specialties-layout {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  padding-bottom: clamp(6rem, 14vw, 15rem);
}

.specialties-grid {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.specialties-row {
  display: grid;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .specialties-grid {
    gap: 5rem; /* live row2 margin-top 80px */
  }

  .specialties-row {
    gap: 1.75rem; /* live column-gap 28px */
  }

  /* Live post-414: a92b4ad 55% + 525b4b4 45% (text | image) */
  .specialties-row--eolica {
    grid-template-columns: 55fr 45fr;
  }

  /* Live: ca99c00 45% + 2daaccc 55% (image | text) — not a mirror of shared columns */
  .specialties-row--ferro {
    grid-template-columns: 45fr 55fr;
    grid-template-areas: "ferro-media ferro-text";
  }

  .specialties-row--ferro .media-card--ferro { grid-area: ferro-media; }
  .specialties-row--ferro .content-card--ferro { grid-area: ferro-text; }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .specialties-grid {
    gap: 3.75rem; /* live tablet margin-top 60px */
  }

  .specialties-row {
    gap: 1.25rem; /* live tablet gap 20px */
  }
}

.content-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 20px rgba(110, 110, 110, 0.48);
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.content-card h2,
.content-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--color-black);
  margin: 0;
}

.content-card p {
  margin: 0;
  color: var(--color-text);
  line-height: 1.6;
}

.content-card .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
  border-radius: 30px;
}

.media-card {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 280px;
  box-shadow: 0 6px 20px rgba(110, 110, 110, 0.28);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.specialty-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .specialty-cards {
    grid-template-columns: 1fr 1fr;
  }
}

.specialty-card {
  position: relative;
  min-height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  transition: transform var(--ease);
}

.specialty-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.15));
}

.specialty-card:hover {
  transform: translateY(-3px);
  color: var(--color-white);
}

.specialty-card__body {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
}

.specialty-card h2 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.specialty-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.specialty-card__cta {
  font-weight: 600;
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-section {
  padding-top: clamp(2rem, 4vw, 3rem);
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    /* Live Elementor e-con-boxed: padding-left 64px (desktop only) */
    padding-left: 64px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem 3rem;
  }
}

.contact-info__title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--color-black);
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  line-height: 1.5;
  color: var(--color-text);
}

.contact-row__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-black);
}

.contact-note {
  margin: 1.25rem 0 1.5rem;
  color: var(--color-text);
}

.contact-linkedin__title {
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--color-black);
}

.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-black);
  text-decoration: none;
  font-weight: 500;
}

.contact-linkedin:hover {
  color: var(--color-accent);
}

.contact-thanks {
  margin: 1.5rem 0 0;
  max-width: 28rem;
  line-height: 1.6;
  color: var(--color-text);
}

.contact-map {
  width: 100%;
  min-width: 0;
}

.contact-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 450px;
  border: 0;
  border-radius: 26px;
}

/* Contact extras — measured vs live Elementor #redes / #ferias (post-748) */
.contact-extras {
  padding-top: 180px;
  padding-bottom: 230px;
}

.contact-extras__title {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.8125rem); /* 32–45px */
  font-weight: 400;
  line-height: 1.3;
  margin: 0;
  color: var(--color-black);
}

.contact-extras__grid {
  display: grid;
  gap: 60px;
  margin-top: 20px;
  padding: 24px 0;
}

@media (min-width: 768px) {
  .contact-extras__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 64px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .contact-extras {
    padding-top: 90px;
    padding-bottom: 180px;
  }

  .contact-extras__grid {
    padding: 32px;
  }
}

@media (max-width: 767px) {
  .contact-extras {
    padding-top: 60px;
    padding-bottom: 120px;
  }
}

.contact-extras__col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-extras__heading {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-body);
  font-size: 1.5rem; /* 24px */
  font-weight: 600;
  line-height: 1.65;
  margin: 0;
  color: var(--color-black);
}

.contact-extras__heading img {
  flex-shrink: 0;
  width: 28px;
  height: 29px;
}

.contact-extras__list {
  margin: 0;
  padding: 0 0 0 43px;
  list-style: none;
  display: grid;
  gap: 20px;
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-black);
}

.contact-extras__list--ferias {
  gap: 20px;
}

.contact-extras__list a {
  color: var(--color-black);
  font-size: 1rem; /* 16px — kit link */
  font-weight: 500;
  text-decoration: none;
}

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

.contact-extras__note {
  margin: 0;
  padding-left: 43px;
  font-family: var(--font-body);
  font-size: 1.125rem; /* 18px */
  font-weight: 500;
  line-height: 1.65;
  color: var(--color-text);
}

@media (max-width: 767px) {
  .contact-extras__heading {
    font-size: 1.125rem; /* 18px tablet/mobile title-otros */
    justify-content: center;
    text-align: center;
  }

  .contact-extras__list,
  .contact-extras__note {
    padding-left: 0;
    text-align: center;
  }

  .contact-extras__list {
    font-size: 1rem; /* 16px */
  }

  .contact-extras__note {
    margin-top: 2px;
    font-size: 1rem; /* 16px */
  }
}

.inline-icon {
  vertical-align: -3px;
  margin-right: 0.35rem;
}

.form-stub-label,
.form-hint,
.table-note {
  font-size: 0.875rem;
  color: var(--color-muted);
}

.link-list {
  margin: 0.5rem 0 1.5rem;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.35rem;
}

.legal-prose {
  max-width: 71.25rem; /* ~1140px — live Elementor text column */
  color: var(--color-black);
  font-size: 1.125rem; /* 18px */
  line-height: 1.65;
}

.legal-prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
  color: var(--color-black);
}

.legal-prose p,
.legal-prose li {
  color: var(--color-black);
}

.legal-prose p {
  margin: 0 0 1.8rem;
  line-height: 1.65;
}

.legal-prose ul {
  margin: 0.75rem 0 1.8rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-prose li {
  margin-bottom: 0.45rem;
}

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

.data-table--wide {
  min-width: 960px;
}

.data-table tr.is-emphasis td {
  background: #f3faf4;
  font-weight: 600;
}

/* Costes page: table is the fold (no photo hero) — see .tablepress in components.css */
