/* ==========================================================================
   FS Contratista S.A.S — hoja de estilos (mobile-first)
   ========================================================================== */

:root {
  --c-primary: #012E69;
  --c-secondary: #0053B7;
  --c-accent: #FFB100;
  --c-text: #414141;
  --c-muted: #5C5C5C;
  --c-border: #E6E6E6;
  --c-bg-alt: #F4F6FA;
  --c-white: #FFFFFF;
  --c-whatsapp: #128C7E;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(1, 46, 105, .10);
  --shadow-lift: 0 16px 40px rgba(1, 46, 105, .16);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --header-h: 72px;
  --font-head: 'Poppins', "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset ligero ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; }
figure, blockquote { margin: 0; }
address { font-style: normal; }
table { border-collapse: collapse; }
button { font: inherit; color: inherit; cursor: pointer; }
dialog { padding: 0; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- Tipografía ---------- */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
}
body.nav-open { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--c-primary);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h2 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }

a { color: var(--c-secondary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-secondary);
  margin: 0 0 .75rem;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section--dark .eyebrow,
.cta-band .eyebrow { color: var(--c-accent); }

/* ---------- Utilidades ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--c-primary);
  color: var(--c-white);
  padding: .75rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--c-white); }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--c-primary);
  border-radius: 4px;
}
.section--dark :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible { box-shadow: none; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn__icon { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }

.btn--primary { background: var(--c-accent); color: var(--c-primary); }
.btn--primary:hover { background: #FFC53D; color: var(--c-primary); box-shadow: 0 8px 20px rgba(255, 177, 0, .35); }

.btn--secondary { background: var(--c-primary); color: var(--c-white); }
.btn--secondary:hover { background: var(--c-secondary); color: var(--c-white); box-shadow: 0 8px 20px rgba(1, 46, 105, .25); }

.btn--outline { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn--outline:hover { background: var(--c-white); color: var(--c-primary); box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 18px rgba(1, 46, 105, .12);
  border-bottom-color: var(--c-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 48px; width: auto; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: transparent;
  border: 2px solid var(--c-border);
  border-radius: 10px;
}
.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--c-primary);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 16px 30px rgba(1, 46, 105, .15);
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
  padding: .5rem 1.25rem 1.25rem;
}
.site-nav.is-open { display: block; }
.site-nav__list { list-style: none; }
.site-nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .25rem .25rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--c-border);
}
.site-nav__link:hover,
.site-nav__link.is-active { color: var(--c-secondary); }
.site-nav__cta { margin-top: 1rem; width: 100%; }

@media (min-width: 900px) {
  .brand__logo { height: 56px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: static;
    background: transparent;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    padding: 0;
  }
  .site-nav__list { display: flex; gap: .25rem; }
  .site-nav__link {
    position: relative;
    min-height: 44px;
    padding: .25rem .6rem;
    border-bottom: 0;
    font-size: .95rem;
  }
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: .6rem;
    right: .6rem;
    bottom: 4px;
    height: 3px;
    border-radius: 2px;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform .2s ease;
  }
  .site-nav__link:hover::after,
  .site-nav__link.is-active::after { transform: scaleX(1); }
  .site-nav__link.is-active { color: var(--c-primary); }
  .site-nav__cta {
    margin-top: 0;
    width: auto;
    min-height: 44px;
    padding: .55rem 1.2rem;
    font-size: .95rem;
  }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .site-nav { gap: .5rem; }
  .site-nav__link { padding-inline: .4rem; font-size: .9rem; }
  .site-nav__link::after { left: .4rem; right: .4rem; }
}

/* ---------- Secciones ---------- */
.section { padding-block: 4rem; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-primary); color: var(--c-white); }
.section--dark h2, .section--dark h3 { color: var(--c-white); }
.section__header { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; }
.section__header .eyebrow { justify-content: center; }
.section__title { margin-bottom: .5rem; }
.section__lead { color: var(--c-muted); font-size: 1.075rem; margin: 0; }

@media (min-width: 900px) {
  .section { padding-block: 5.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 760px);
  display: flex;
  align-items: center;
  color: var(--c-white);
  overflow: hidden;
  isolation: isolate;
  padding-block: 3.5rem 3rem;
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, rgba(1, 46, 105, .94) 0%, rgba(1, 46, 105, .78) 55%, rgba(1, 46, 105, .45) 100%);
}
.hero__content { max-width: 760px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1rem;
}
.hero__eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--c-accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.hero__title {
  color: var(--c-white);
  font-size: clamp(2rem, 4vw + 1rem, 3.5rem);
  margin-bottom: 1rem;
}
.hero__text { font-size: 1.125rem; max-width: 620px; color: rgba(255, 255, 255, .92); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .875rem; margin-bottom: 2.75rem; }
.hero__actions .btn { flex: 1 1 100%; }
.hero__stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
}
.stat { display: flex; flex-direction: column; }
.stat__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
  color: var(--c-accent);
  line-height: 1.1;
}
.stat__label { color: rgba(255, 255, 255, .85); font-size: .9rem; line-height: 1.4; margin-top: .25rem; }

@media (min-width: 600px) {
  .hero__actions .btn { flex: 0 0 auto; }
}

/* Entrada del hero al cargar (solo CSS; termina siempre visible) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero__eyebrow,
  .hero__title,
  .hero__text,
  .hero__actions,
  .hero__stats { animation: hero-rise .7s var(--ease-out) both; }
  .hero__title { animation-delay: .12s; }
  .hero__text { animation-delay: .24s; }
  .hero__actions { animation-delay: .36s; }
  .hero__stats { animation-delay: .5s; }
}
@media (min-width: 900px) {
  .hero { padding-block: 5rem 4rem; }
  .hero__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 2.5rem; align-items: center; }
.about__media { position: relative; isolation: isolate; }
.about__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about__media::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 55%;
  height: 55%;
  right: -12px;
  bottom: -12px;
  border-radius: var(--radius);
  background: var(--c-accent);
}
.about__text p { color: var(--c-text); }
.about__signature {
  margin-top: 1.5rem;
  padding-left: 1rem;
  border-left: 4px solid var(--c-accent);
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-primary);
}
@media (min-width: 900px) {
  .about { grid-template-columns: 5fr 7fr; gap: 4rem; }
  .about__media img { max-height: 620px; }
}

/* ---------- Tarjetas (misión, visión, valores) ---------- */
.cards-3, .why-grid { display: grid; gap: 1.5rem; }
.card {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--c-accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card__icon,
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 83, 183, .08);
  color: var(--c-secondary);
  margin-bottom: 1.25rem;
}
.card__icon svg,
.feature__icon svg { width: 28px; height: 28px; }
.card__title { font-size: 1.35rem; }
.card p:last-child { margin-bottom: 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip {
  padding: .35rem .9rem;
  border-radius: 999px;
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
}
@media (min-width: 900px) {
  .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Servicios ---------- */
.services-grid { display: grid; gap: 1.5rem; }
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .45s var(--ease-out); }
.service-card:hover .service-card__img { transform: scale(1.05); }
/* El cuerpo se pinta encima de la imagen ampliada para que no invada el texto */
.service-card__body { position: relative; background: var(--c-white); display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.75rem; }
.service-card__title { font-size: 1.3rem; margin-bottom: .5rem; }
.service-card__summary { color: var(--c-muted); }
.service-card__subtitle { color: var(--c-secondary); margin: .5rem 0 .35rem; }
.service-card__list { list-style: none; margin-bottom: 1.25rem; }
.service-card__list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .45rem;
  line-height: 1.5;
}
.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(255, 177, 0, .25);
}
.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-secondary);
  text-decoration: none;
}
.service-card__link svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.service-card__link:hover { color: var(--c-primary); text-decoration: underline; }
@media (min-width: 600px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Maquinaria ---------- */
.machinery-grid { display: grid; gap: 1.5rem; margin-bottom: 3.5rem; }
.machine-card {
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.machine-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.machine-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .45s var(--ease-out); }
.machine-card:hover .machine-card__img { transform: scale(1.05); }
.machine-card__body { position: relative; background: var(--c-white); padding: 1.5rem; overflow-x: auto; }
.spec-table { width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
.spec-table caption {
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--c-primary);
  padding-bottom: .75rem;
}
.spec-table th,
.spec-table td { text-align: left; padding: .65rem .75rem; border-bottom: 1px solid var(--c-border); }
.spec-table thead th {
  background: var(--c-primary);
  color: var(--c-white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
}
.spec-table tbody tr:nth-child(even) { background: var(--c-bg-alt); }
.spec-table tbody th { font-weight: 600; color: var(--c-primary); }
@media (max-width: 599px) {
  .machine-card__body { padding: 1.25rem 1rem; }
  .spec-table { font-size: .875rem; }
  .spec-table th,
  .spec-table td { padding: .55rem .5rem; }
  .spec-table thead th { white-space: normal; font-size: .8rem; }
}

.subsection-title {
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.subsection-title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.equipment-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.equipment-grid:last-child { margin-bottom: 0; }
.equipment-item {
  height: 100%;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.equipment-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.equipment-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; transition: transform .45s var(--ease-out); }
.equipment-item:hover img { transform: scale(1.05); }
.equipment-item figcaption { position: relative; background: var(--c-white); padding: .85rem 1rem 1rem; border-top: 1px solid var(--c-border); flex: 1; }
.equipment-item__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--c-primary);
  line-height: 1.3;
  font-size: .95rem;
  overflow-wrap: break-word;
  hyphens: auto;
}
.equipment-item__meta { display: block; color: var(--c-muted); font-size: .875rem; margin-top: .2rem; }
@media (min-width: 600px) {
  .equipment-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (min-width: 900px) {
  .machinery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .equipment-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Galería ---------- */
.gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.gallery__item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-primary);
}
.gallery__item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery__item:hover img,
.gallery__item:focus-visible img { transform: scale(1.05); }
.gallery__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2rem .75rem .65rem;
  background: linear-gradient(to top, rgba(1, 46, 105, .95), rgba(1, 46, 105, 0));
  color: var(--c-white);
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.3;
}
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
  .gallery__caption { font-size: .875rem; }
}
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Lightbox ---------- */
dialog.lightbox {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--c-white);
  overflow: visible;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
.lightbox figure { display: flex; flex-direction: column; align-items: center; }
.lightbox__img {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.lightbox__caption { margin-top: .75rem; text-align: center; font-weight: 600; color: var(--c-white); }
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: fixed;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .92);
  color: var(--c-primary);
}
.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg { width: 22px; height: 22px; }
.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: var(--c-accent); }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Clientes y testimonios ---------- */
.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.clients-grid li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  padding: 1.25rem;
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.clients-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.client-logo {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .8;
  transition: filter .2s ease, opacity .2s ease;
}
.clients-grid li:hover .client-logo,
.clients-grid li:focus-within .client-logo { filter: none; opacity: 1; }
.testimonials { display: grid; gap: 1.5rem; }
.testimonial {
  position: relative;
  background: var(--c-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.75rem 1.75rem;
  border-left: 4px solid var(--c-accent);
  transition: transform .2s ease, box-shadow .2s ease;
}
.testimonial:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.testimonial blockquote p {
  font-size: 1.075rem;
  line-height: 1.6;
  color: var(--c-text);
  font-style: italic;
}
.testimonial blockquote p::before { content: "\201C"; }
.testimonial blockquote p::after { content: "\201D"; }
.testimonial figcaption { display: flex; flex-direction: column; }
.testimonial__name { font-family: var(--font-head); font-weight: 600; color: var(--c-primary); }
.testimonial__role { color: var(--c-muted); font-size: .9rem; }
@media (min-width: 600px) {
  .clients-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .clients-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Por qué elegirnos ---------- */
.why__layout { display: grid; gap: 2.5rem; align-items: center; }
.why__media { display: none; }
.feature {
  background: var(--c-white);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 1.75rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
.feature h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--c-muted); }
@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .why__layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; }
  .why__media { display: block; }
  .why__media img {
    width: 100%;
    max-width: 320px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}

/* ---------- Franja CTA ---------- */
.cta-band {
  background: var(--c-primary);
  color: var(--c-white);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--c-accent);
}
.cta-band h2 { color: var(--c-white); margin-bottom: .4rem; }
.cta-band p { color: rgba(255, 255, 255, .88); margin: 0; font-size: 1.1rem; }
.cta-band__inner { display: grid; gap: 1.75rem; align-items: center; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .875rem; }
.cta-band__actions .btn { flex: 1 1 100%; }
@media (min-width: 600px) {
  .cta-band__actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  .cta-band__inner { grid-template-columns: 1fr auto; }
}

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-list { list-style: none; display: grid; gap: 1.25rem; }
.contact-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary);
  color: var(--c-accent);
}
.contact-item__icon svg { width: 24px; height: 24px; }
.contact-item h3 { font-size: 1.05rem; margin: .15rem 0 .25rem; }
.contact-item p { margin: 0; }
.contact-item a {
  display: inline-block;
  padding-block: .15rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.contact-links { list-style: none; display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .1rem; }
.contact-map iframe {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--c-bg-alt);
}
.contact-map { display: flex; flex-direction: column; gap: 1rem; }
.map-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
.map-card__name { margin: 0 0 .15rem; font-weight: 700; }
.map-card address { margin-bottom: .35rem; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem; align-items: start; }
  .contact-map iframe { aspect-ratio: auto; height: 460px; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: #001E46;
  color: rgba(255, 255, 255, .85);
  padding-top: 3.5rem;
  font-size: .95rem;
}
.site-footer h2 {
  color: var(--c-white);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--c-white); text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer__logo { width: 150px; height: auto; margin-bottom: 1rem; }
.site-footer__grid p { margin-bottom: .5rem; }
.site-footer__grid ul { list-style: none; }
.site-footer__grid li { margin-bottom: .1rem; }
.site-footer__grid li a { display: inline-block; padding-block: .3rem; }
.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  transition: background-color .2s ease;
}
.social-links a:hover { background: var(--c-accent); color: var(--c-primary); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; }
.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  padding-block: 1.25rem 5.5rem;
  font-size: .875rem;
  color: rgba(255, 255, 255, .75);
}
.site-footer__bottom p { margin: 0; }
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: 3rem; }
  .site-footer__bottom { padding-bottom: 1.25rem; }
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-whatsapp);
  color: var(--c-white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  transition: transform .2s ease, background-color .2s ease;
}
.whatsapp-float:hover { background: #0E7166; color: var(--c-white); transform: scale(1.06); }
.whatsapp-float svg { width: 30px; height: 30px; fill: currentColor; }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float:hover { transition: none; transform: none; }
}

/* ---------- 404 ---------- */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: 4rem;
  background: var(--c-bg-alt);
}
.error-page__code {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 1;
  color: var(--c-primary);
  margin-bottom: .5rem;
}
.error-page__code span { color: var(--c-accent); }
.error-page h1 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
.error-page__text { color: var(--c-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.error-page__actions { display: flex; flex-wrap: wrap; gap: .875rem; justify-content: center; }

/* ---------- Animaciones de aparición al hacer scroll ----------
   main.js añade .js-anim al <html> y .reveal solo a los elementos por debajo
   de la pantalla; sin JS nada se oculta. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease-out, transform .65s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js-anim .reveal--zoom { transform: scale(.96); }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }
@media print {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Movimiento reducido (al final para prevalecer sobre los :hover) ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover,
  .card, .card:hover,
  .service-card, .service-card:hover,
  .machine-card, .machine-card:hover,
  .equipment-item, .equipment-item:hover,
  .clients-grid li, .clients-grid li:hover,
  .testimonial, .testimonial:hover,
  .feature, .feature:hover,
  .service-card__img, .service-card:hover .service-card__img,
  .machine-card__img, .machine-card:hover .machine-card__img,
  .equipment-item img, .equipment-item:hover img,
  .gallery__item img, .gallery__item:hover img,
  .gallery__item:focus-visible img { transition: none; transform: none; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
}
