/* FEMAR — paleta tomada del logo: negro, rojo, verde y gris */
:root {
  --ink: #14161a;
  --ink-2: #1e2127;
  --ink-3: #2a2e36;
  --paper: #ffffff;
  --paper-2: #f4f3f0;
  --line: #e2e0db;
  --muted: #5d636e;
  --red: #d42a2a;
  --red-dark: #b01f1f;
  --green: #2e8b3e;
  --radius: 14px;
  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.02; margin: 0; letter-spacing: .01em; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

.eyebrow {
  font: 600 .78rem/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.eyebrow--light { color: #ff6b6b; }
.accent { color: var(--red); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 .95rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--sm { padding: 10px 18px; font-size: .85rem; }
.btn--block { width: 100%; }

/* Navegación */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(20,22,26,.94); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__logo img { width: 140px; height: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; font-size: .93rem; opacity: .85; }
.nav__links a:not(.btn):hover { opacity: 1; }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 6px auto; transition: transform .25s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: zoom 14s ease-out forwards; }
@keyframes zoom { to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(20,22,26,.55) 0%, rgba(20,22,26,.25) 70%), linear-gradient(180deg, rgba(20,22,26,.55) 0%, transparent 25%); }
.hero__content { position: relative; padding-block: 120px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 9vw, 7rem); font-weight: 700; letter-spacing: .04em; text-shadow: 0 4px 30px rgba(0,0,0,.45); }
.hero__down { margin-top: 36px; color: #fff; opacity: .9; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(8px); } }
/* Cifras (Nosotros) */
.stats {
  list-style: none; margin: 64px 0 0; padding: 36px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center;
  border-top: 1px solid var(--line);
}
.stats li + li { border-left: 1px solid var(--line); }
.stats strong { display: block; font: 700 clamp(2.2rem, 4.5vw, 3.4rem)/1 var(--head); }
.stats span { display: block; margin-top: 6px; font-size: .9rem; color: var(--muted); font-weight: 500; }
.h-line::after { content: ""; display: block; width: 72px; height: 6px; background: var(--ink); margin-top: 16px; }

/* Secciones */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--alt { background: var(--paper-2); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__lead { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }

/* Tarjetas de servicios */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -18px rgba(20,22,26,.35); }
.card__img { aspect-ratio: 4/3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 26px 26px 30px; }
.card__num { font: 700 .85rem/1 var(--head); color: var(--red); letter-spacing: .1em; }
.card h3 { margin: 8px 0 10px; }
.card p { color: var(--muted); font-size: .95rem; }

.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: .94rem; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks--lg { font-size: 1rem; gap: 12px; margin-top: 26px; }

/* Banda de volquetes */
.band { background: var(--ink); color: #fff; padding: clamp(64px, 9vw, 100px) 0; }
.band__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.band h2 { margin-bottom: 18px; }
.band p { color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 480px; }
.band__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.band__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/2; }
.band__img img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }

/* Proceso */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--line); }
.steps span { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font: 700 1.15rem/1 var(--head); margin-bottom: 18px; }
.steps h3 { font-size: 1.3rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .94rem; }

/* Galería */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { border: 1px solid var(--line); background: #fff; padding: 9px 18px; border-radius: 999px; font: 500 .88rem/1 var(--body); cursor: pointer; color: var(--ink); }
.filters button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.project {
  position: relative; display: block; width: 100%; aspect-ratio: 4/3.4; padding: 0; border: 0; cursor: pointer;
  border-radius: 12px; overflow: hidden; background: var(--paper-2); text-align: left; color: #fff; font: inherit;
}
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.project:hover img, .project:focus-visible img { transform: scale(1.05); }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); }
.project__info { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; font-size: .88rem; }
.project__info b { font: 600 1.5rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .02em; }
.project__count {
  position: absolute; z-index: 1; top: 14px; right: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgba(20,22,26,.65); backdrop-filter: blur(6px); font-size: .78rem; font-weight: 600;
}
.project.is-hidden { display: none; }
.more { margin-top: 28px; text-align: center; color: var(--muted); }
.more a { color: var(--red); font-weight: 600; }

/* Nosotros */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about__img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 { margin-bottom: 28px; }
.about p { color: var(--muted); font-size: 1.05rem; }
.about p + p { margin-top: 16px; }
.about__img img { object-position: center 30%; }

/* Clientes */
.clients { padding: 56px 0; border-bottom: 1px solid var(--line); text-align: center; }
.clients__list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 48px; }
.clients__list li { font: 600 clamp(1.3rem, 2.4vw, 1.8rem)/1.2 var(--head); text-transform: uppercase; color: #9a9ea6; letter-spacing: .03em; }

/* Contacto */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.info { margin: 34px 0 0; display: grid; gap: 18px; }
.info div { border-left: 3px solid var(--red); padding-left: 16px; }
.info dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.info dd { margin: 4px 0 0; font-weight: 500; }
.info a { text-decoration: none; }
.info a:hover { color: var(--red); }

.form { background: var(--paper-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.form input, .form select, .form textarea {
  font: 400 1rem/1.4 var(--body); color: var(--ink);
  padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.form textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form__status { font-size: .9rem; min-height: 1.4em; }
.form__status.ok { color: var(--green); }
.form__status.err { color: var(--red); }

.map { margin-top: 64px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); filter: grayscale(.4); }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0; font-size: .9rem; }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 32px; align-items: center; }
.footer__social { display: flex; gap: 16px; }
.footer__social a { color: #fff; opacity: .8; }
.footer__social a:hover { opacity: 1; }
.footer__copy { grid-column: 1 / -1; font-size: .8rem; opacity: .6; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; margin-top: 8px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 25px -8px rgba(0,0,0,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox::backdrop { background: rgba(10,11,13,.95); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 76px 10px 24px; font-size: .9rem; color: rgba(255,255,255,.7); }
.lightbox__bar strong { font: 600 1.4rem/1 var(--head); text-transform: uppercase; color: #fff; margin-right: 10px; }
.lightbox__img { width: 100%; height: 100%; min-height: 0; object-fit: contain; padding: 8px 72px; }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 24px 20px; justify-content: safe center; scrollbar-width: thin; }
.lightbox__thumbs button { flex: 0 0 auto; width: 76px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; opacity: .55; background: none; }
.lightbox__thumbs button.is-active { opacity: 1; border-color: var(--red); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; font-size: 1.8rem; line-height: 1; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 12px; right: 14px; }
.lightbox__prev { left: 14px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 14px; top: 50%; translate: 0 -50%; }

/* Animación al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .projects { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .stats li:nth-child(3) { border-left: 0; }
  .band__inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about__img { aspect-ratio: 4/3; }
}
@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 72px 0 auto; background: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .3s; z-index: -1;
  }
  .nav__links.is-open { transform: none; }
  .nav__links a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav__links .btn { margin-top: 16px; }
  .nav.is-open { background: var(--ink); }
  .cards, .steps { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .projects { grid-template-columns: 1fr; }
  .lightbox__img { padding: 8px 0; }
  .lightbox__nav { display: none; }
  .lightbox__bar { padding-left: 16px; }
  .lightbox__bar #lb-meta { display: none; }
  .form .row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .map iframe { height: 280px; }
}
