/* PV Servicios · estilos del sitio público (y base compartida con el panel) */

@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('../fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('../fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('../fonts/barlow-latin-600-normal.woff2') format('woff2'); }

:root {
  --navy: #0a3b70;
  --navy-deep: #062748;
  --navy-ink: #0b1f33;
  --amber: #f6a81c;
  --amber-deep: #b46f00;
  --paper: #f6f3ee;
  --card: #ffffff;
  --line: #ddd6ca;
  --text: #1c2733;
  --muted: #5a6673;
  --wa: #128c4b;
  --wa-hover: #0e733d;
  --danger: #b3261e;
  --radius: 6px;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); }
.ico { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

.eyebrow {
  font: 600 .95rem/1 var(--display);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 28px; height: 4px; background: var(--amber); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.35rem;
  border: 2px solid transparent; border-radius: var(--radius);
  font: 600 1.05rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--sm { min-height: 40px; padding: .45rem .9rem; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: .9rem 1.6rem; font-size: 1.15rem; }

/* Barra superior */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; border-bottom: 4px solid var(--amber); }
.topbar__in { display: flex; align-items: center; gap: 1.5rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 42px; height: 42px;
  background: var(--amber); color: var(--navy-ink);
  font: 700 1.5rem/1 var(--display); border-radius: 4px;
}
.brand__text { font: 700 1.45rem/1 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.brand__text small { display: block; margin-top: 3px; font: 500 .72rem/1 var(--body); letter-spacing: .08em; opacity: .8; }
.nav { display: flex; gap: 1.5rem; }
.nav a { text-decoration: none; font-weight: 500; padding: .4rem 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-color: var(--amber); }

/* Portada */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: 4rem 4.5rem; }
.hero .eyebrow { color: var(--amber); }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; text-transform: uppercase; letter-spacing: .005em; }
.hero h1 em { font-style: normal; color: var(--amber); white-space: nowrap; }
.lead { font-size: 1.2rem; max-width: 34rem; margin-top: 1.25rem; color: #d8e3ef; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; padding: 1.5rem 0 0; margin: 2.25rem 0 0; border-top: 1px solid rgba(255, 255, 255, .2); color: #d8e3ef; font-size: .98rem; }
.hero__facts strong { display: block; font: 700 1.9rem/1 var(--display); color: #fff; text-transform: uppercase; }
.hero__photos { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; height: 460px; }
.hero__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.hero__photos img:first-child { grid-row: 1 / 3; }

/* Secciones */
.section { padding-block: 4.5rem; }
.section--tint { background: #ece7de; }
.section__head { margin-bottom: 2.25rem; max-width: 44rem; }
.section__head h2, .cta h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; text-transform: uppercase; color: var(--navy-ink); }

/* Servicios */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.services li { background: var(--card); padding: 1.75rem 1.5rem 1.9rem; }
.services .ico { width: 34px; height: 34px; color: var(--navy); margin-bottom: 1rem; }
.services h3 { font-size: 1.45rem; font-weight: 600; color: var(--navy-ink); margin-bottom: .4rem; }
.services p { color: var(--muted); }

/* Trabajos */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.75rem; }
.chip {
  min-height: 44px; padding: .45rem 1.05rem; border-radius: 999px;
  border: 1.5px solid #bfb6a6; background: transparent; color: var(--text);
  font: 500 1rem/1 var(--body); cursor: pointer;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip span { opacity: .65; margin-left: .3rem; font-variant-numeric: tabular-nums; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.projects > p { grid-column: 1 / -1; }
.project {
  display: flex; flex-direction: column; text-align: left; padding: 0; cursor: pointer;
  background: var(--card); color: inherit; font: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .18s, box-shadow .18s;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(11, 31, 51, .45); }
.project__img { position: relative; aspect-ratio: 4 / 3; background: #cfc8bb; overflow: hidden; }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project:hover .project__img img { transform: scale(1.04); }
.project__count { position: absolute; right: .6rem; bottom: .6rem; background: rgba(11, 31, 51, .82); color: #fff; font-size: .85rem; font-weight: 500; padding: .2rem .6rem; border-radius: 999px; }
.project__body { padding: 1.1rem 1.2rem 1.3rem; }
.project__cat { font: 600 .82rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--amber-deep); }
.project__body h3 { font-size: 1.55rem; font-weight: 600; color: var(--navy-ink); margin: .35rem 0 .4rem; }
.project__body p { color: var(--muted); font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { grid-column: 1 / -1; padding: 2.5rem 1.5rem; text-align: center; border: 1.5px dashed #bfb6a6; border-radius: var(--radius); color: var(--muted); }

/* Por qué */
.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.why .section__head { position: sticky; top: 100px; margin: 0; }
.why__list { list-style: none; counter-reset: why; margin: 0; padding: 0; }
.why__list li { counter-increment: why; display: grid; grid-template-columns: 3.5rem 1fr; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li::before { content: counter(why, decimal-leading-zero); grid-row: 1 / 3; font: 700 1.6rem/1.1 var(--display); color: var(--amber-deep); }
.why__list h3 { font-size: 1.45rem; font-weight: 600; color: var(--navy-ink); }
.why__list p { color: var(--muted); margin-top: .2rem; }

/* Contacto */
.cta { background: var(--navy-deep); color: #fff; padding-block: 3.5rem; border-top: 4px solid var(--amber); }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta h2 { color: #fff; }
.cta p { color: #d8e3ef; margin-top: .5rem; font-size: 1.15rem; }

.footer { background: var(--navy-ink); color: #a9b7c6; font-size: .92rem; padding-block: 1.25rem; }
.footer__in { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer a { color: #a9b7c6; }
.footer a:hover { color: #fff; }

/* Visor de fotos */
.lightbox { width: min(980px, 100vw - 1.5rem); max-height: calc(100dvh - 1.5rem); padding: 0; border: 0; border-radius: var(--radius); background: var(--navy-ink); color: #fff; overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(6, 20, 36, .86); }
.lightbox__stage { position: relative; flex: 1; min-height: 0; background: #050d16; display: grid; place-items: center; }
.lightbox__stage img { max-width: 100%; max-height: calc(100dvh - 9.5rem); object-fit: contain; }
.lightbox__nav, .lightbox__close {
  position: absolute; display: grid; place-items: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(11, 31, 51, .78); color: #fff;
  font: 400 2rem/1 var(--body); cursor: pointer; padding: 0 0 4px;
}
.lightbox__nav:hover, .lightbox__close:hover { background: var(--navy); }
.lightbox__nav--prev { left: .6rem; top: calc(50% - 24px); }
.lightbox__nav--next { right: .6rem; top: calc(50% - 24px); }
.lightbox__close { right: .6rem; top: .6rem; }
.lightbox__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .9rem 1.1rem 1.1rem; }
.lightbox__info h3 { font-size: 1.4rem; font-weight: 600; }
.lightbox__info p { color: #c5d2df; font-size: .98rem; margin-top: .2rem; }
.lightbox__count { font-variant-numeric: tabular-nums; color: #c5d2df; white-space: nowrap; }

@media (max-width: 900px) {
  .nav { display: none; }
  .hero__in { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 2.75rem 3rem; }
  .hero__photos { height: 300px; }
  .services, .projects { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; gap: 1.5rem; }
  .why .section__head { position: static; }
  .section { padding-block: 3.25rem; }
}
@media (max-width: 600px) {
  .services, .projects { grid-template-columns: 1fr; }
  .hero__cta .btn, .cta .btn { width: 100%; }
  .hero__photos { height: 240px; }
  .brand__text small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
