/* PAC-E · identidad del sitio actual: azul marino #234459, verdes #4EBF56 / #3FA64E, Lato + Quicksand */
:root {
  --navy: #234459;
  --navy-900: #172f3e;
  --navy-700: #2d566f;
  --green: #4EBF56;          /* acento decorativo */
  --green-mid: #3FA64E;      /* subtítulos, íconos */
  --green-btn: #2F7D3B;      /* botones con texto blanco (contraste 5,1:1) */
  --green-btn-hover: #266a31;
  --green-soft: #EEFBEF;
  --ink: #1b2730;
  --text: #33424c;
  --muted: #5b6a73;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --line: #dce3e1;
  --line-dark: rgba(238, 251, 239, .18);
  --radius: 6px;
  --wrap: 1180px;
  --display: "Quicksand", "Lato", system-ui, sans-serif;
  --sans: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { touch-action: manipulation; -webkit-tap-highlight-color: rgba(78,191,86,.2); margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-btn); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; text-wrap: balance; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 900; font-size: 20px; }
p { margin: 0; }
.eyebrow { font: 700 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--green-mid); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.lead { font-size: 19px; color: var(--muted); max-width: 62ch; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--green-btn); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .2s, border-color .2s, color .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-btn); color: #fff; }
.btn-primary:hover { background: var(--green-btn-hover); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }

/* Encabezado */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--navy); border-bottom: 1px solid var(--line-dark); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: #e6eef2; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: 4px; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 10px 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-dark); color: #fff; border-radius: 4px; width: 46px; height: 46px; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
@media (max-width: 920px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav { position: absolute; inset: 76px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--navy-900); padding: 12px 24px 20px; gap: 2px; border-bottom: 1px solid var(--line-dark); }
  .nav[hidden] { display: none; }
  .nav a { padding: 14px 8px; font-size: 17px; }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .brand img { height: 34px; }
}
@media (min-width: 921px) { .nav[hidden] { display: flex !important; } }

/* Portada */
.hero { position: relative; background: var(--navy-900); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23,47,62,.96) 0%, rgba(23,47,62,.88) 38%, rgba(23,47,62,.35) 68%, rgba(23,47,62,.1) 100%); }
.hero .wrap { position: relative; padding-block: clamp(72px, 11vw, 132px) clamp(64px, 9vw, 112px); }
.hero-copy { max-width: 700px; display: grid; gap: 22px; }
.hero .eyebrow { color: var(--green); }
.hero h1 { color: #fff; font-size: clamp(32px, 4.2vw, 50px); }
.hero p { font-size: clamp(17px, 1.6vw, 20px); color: #dbe7ed; max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 720px) {
  .hero-media::after { background: linear-gradient(180deg, rgba(23,47,62,.55) 0%, rgba(23,47,62,.92) 55%, rgba(23,47,62,.97) 100%); }
  .hero .wrap { padding-top: 220px; }
}

/* Franja de normas */

/* Secciones */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section-head { display: grid; gap: 14px; margin-bottom: 44px; max-width: 760px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); }

/* Clientes */
.clients { background: var(--surface); border-block: 1px solid var(--line); }
.clients .wrap { padding-block: 40px; display: grid; gap: 22px; }
.clients p { font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.client-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 24px; text-align: center; }
@media (max-width: 760px) { .client-list { grid-template-columns: repeat(2, 1fr); } }
.client-list li { font: 900 20px/1 var(--sans); color: #7d8b93; letter-spacing: .02em; white-space: nowrap; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.svc { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.svc:nth-child(4), .svc:nth-child(5) { grid-column: span 3; }
.svc figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--line); }
.svc figure img { width: 100%; height: 100%; object-fit: cover; }
.svc-body { padding: 22px 24px 26px; display: grid; gap: 12px; align-content: start; flex: 1; }
.svc-tag { font: 700 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--green-mid); }
.svc ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15.5px; }
.svc li { position: relative; padding-left: 20px; }
.svc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--green-mid); }
.svc.is-featured { border: 2px solid var(--green-mid); }
.svc.is-featured .svc-tag { color: var(--green-btn); }
.svc-link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
/* Realce de la tarjeta al pasar el puntero (y con foco de teclado) */
.svc figure img { transition: transform .4s ease; }
.svc:hover, .svc:focus-within { border-color: var(--green-mid); box-shadow: 0 14px 34px rgba(35, 68, 89, .18); transform: translateY(-5px); }
.svc:hover .svc-tag, .svc:focus-within .svc-tag { color: var(--green-btn); }
.svc:hover figure img, .svc:focus-within figure img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .svc:hover, .svc:focus-within, .svc:hover figure img, .svc:focus-within figure img { transform: none; }
}
@media (max-width: 980px) { .services { grid-template-columns: 1fr 1fr; } .svc, .svc:nth-child(4), .svc:nth-child(5) { grid-column: span 1; } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } }

/* Tableros (sección destacada) */
.boards { background: var(--navy); color: #d6e4ea; position: relative; overflow: hidden; }
.boards::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(238,251,239,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(238,251,239,.05) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.boards .wrap { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.boards .eyebrow { color: var(--green); }
.boards h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); }
.boards-copy { display: grid; gap: 22px; }
.boards-copy > p { font-size: 18px; max-width: 58ch; }
.board-types { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.board-types li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line-dark); color: #fff; font-weight: 700; }
.board-types span { font: 700 12px/1 var(--sans); color: var(--green); letter-spacing: .06em; min-width: 30px; }
.boards-ref { font-size: 15px; color: #b9ccd6; border-left: 3px solid var(--green); padding-left: 14px; }
.boards-media { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.boards-media figure { margin: 0; overflow: hidden; border-radius: var(--radius); position: relative; }
.boards-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.boards-media .big { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.boards-media .small { aspect-ratio: 4 / 3; }
.boards-media figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(23,47,62,.88); color: #fff; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 3px; }
@media (max-width: 920px) { .boards .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .board-types { grid-template-columns: 1fr; } }

/* Por qué PAC-E */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 2px solid var(--navy); }
.why div { padding: 26px 24px 8px 0; display: grid; gap: 10px; align-content: start; }
.why div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.why svg { width: 34px; height: 34px; color: var(--green-mid); }
.why p { font-size: 15.5px; }
@media (max-width: 980px) { .why { grid-template-columns: 1fr 1fr; } .why div:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } .why div, .why div + div { padding-left: 0; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 22px; } }

/* Cómo trabajamos: línea tipo diagrama unilineal */
.process { background: var(--surface); border-block: 1px solid var(--line); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: var(--navy); }
.steps li { position: relative; padding-right: 18px; display: grid; gap: 10px; counter-increment: step; }
.steps li::before { content: counter(step); width: 48px; height: 48px; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--navy); color: var(--navy); font: 900 18px/1 var(--sans); position: relative; }
.steps li:last-child::before { background: var(--green-btn); border-color: var(--green-btn); color: #fff; }
.steps b { color: var(--ink); font-size: 17px; }
.steps span { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps::before { left: 23px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .steps li { grid-template-columns: 48px 1fr; column-gap: 18px; padding: 0; }
  .steps li::before { grid-row: span 2; }
}

/* Proyectos */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 700 12px/1 var(--sans); letter-spacing: .04em; padding: 6px 9px; border-radius: 3px; background: var(--green-soft); color: var(--green-btn); white-space: nowrap; }
.chip.kv { background: #e7eef2; color: var(--navy); }
.project .client { font-weight: 700; color: var(--navy); font-size: 15px; }
.project p { font-size: 15.5px; }
.section-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
@media (max-width: 920px) { .projects { grid-template-columns: 1fr; } }

/* Cifras */
.figures { background: var(--green-soft); border-block: 1px solid #d3eed6; }
.figures .wrap { display: grid; grid-template-columns: repeat(4, 1fr); padding-block: 44px; }
.figure { padding: 4px 24px; display: grid; gap: 4px; }
.figure + .figure { border-left: 1px solid #c4e5c8; }
.figure b { font: 900 clamp(34px, 4vw, 46px)/1 var(--sans); color: var(--navy); font-variant-numeric: tabular-nums; }
.figure span { color: var(--text); font-size: 15px; }
@media (max-width: 760px) { .figures .wrap { grid-template-columns: 1fr 1fr; row-gap: 28px; } .figure:nth-child(3) { border-left: 0; } }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-copy { display: grid; gap: 18px; }
.about-copy h2 { font-size: clamp(24px, 2.75vw, 32px); }
.mission { background: var(--surface); border-left: 4px solid var(--green-mid); padding: 16px 20px; font-size: 16.5px; }
.mission b { color: var(--navy); }
.about-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.about-media img { border-radius: var(--radius); aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
.about-media img:first-child { margin-top: 40px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* Equipo */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-content: start; }
.avatar { grid-row: span 2; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 900 18px/1 var(--sans); letter-spacing: .04em; }
img.avatar { object-fit: cover; background: #e8eef1; border: 2px solid var(--navy); }
.member h3 { font-size: 18px; align-self: end; }
.member .role { font-size: 14px; font-weight: 700; color: var(--green-btn); }
.member p:last-child { grid-column: 1 / -1; font-size: 15px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 980px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .team { grid-template-columns: 1fr; } }

/* Contacto */
.contact { background: var(--navy); color: #d6e4ea; }
.contact .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); }
.contact h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); }
.contact .eyebrow { color: var(--green); }
.contact-info { display: grid; gap: 22px; align-content: start; }
.contact-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-dark); }
.contact-list svg { width: 22px; height: 22px; color: var(--green); }
.contact-list a { color: #fff; text-decoration: none; font-weight: 700; }
.contact-list a:hover { text-decoration: underline; }
.contact-list small { display: block; color: #9fb6c2; font-size: 13px; }
form.quote { background: var(--surface); color: var(--text); border-radius: var(--radius); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 14px; color: var(--ink); }
.field input, .field select, .field textarea { font: 16px/1.4 var(--sans); color: var(--ink); border: 1px solid #b9c6c3; border-radius: 4px; padding: 12px 12px; background: #fff; width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.field [aria-invalid="true"] { border-color: #b3261e; background: #fff7f6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(78,191,86,.45); border-color: var(--green-btn); }
.form-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
form.quote .btn { grid-column: 1 / -1; justify-content: center; border: 0; }
.form-status { grid-column: 1 / -1; font-weight: 700; color: var(--green-btn); }
@media (max-width: 900px) { .contact .wrap { grid-template-columns: 1fr; } }
@media (max-width: 560px) { form.quote { grid-template-columns: 1fr; } }

/* Pie */
.site-footer { background: var(--navy-900); color: #9fb6c2; font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.site-footer img { height: 40px; width: auto; margin-bottom: 14px; }
.site-footer .foot-title { color: #fff; font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 6px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #d6e4ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.legal { border-top: 1px solid var(--line-dark); }
.legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; font-size: 13px; grid-template-columns: none; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Página Proyectos */
.page-head { background: var(--navy-900); color: #d6e4ea; }
.page-head .wrap { padding-block: 64px 56px; display: grid; gap: 16px; }
.page-head h1 { color: #fff; font-size: clamp(32px, 4.5vw, 48px); }
.page-head .eyebrow { color: var(--green); }
.page-head p { max-width: 64ch; font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { font: 700 14px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid #b9c6c3; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 44px; }
.filters button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.project-list .project { grid-template-columns: 1fr auto; }
.project-list .project > * { grid-column: 1 / -1; }
.project-list .year { grid-column: 2; grid-row: 1; font: 900 15px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.project-list .project-meta { grid-column: 1; grid-row: 1; }
.project-list h3 { font-size: 19px; }
.count { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
@media (max-width: 820px) { .project-list { grid-template-columns: 1fr; } }

/* Botón flotante de WhatsApp */
.wa {
  position: fixed;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: max(18px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 20px rgba(23, 47, 62, .28);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wa svg { width: 30px; height: 30px; }
.wa:hover, .wa:focus-visible { background: #1EB955; transform: scale(1.06); box-shadow: 0 10px 26px rgba(23, 47, 62, .34); }
@media (prefers-reduced-motion: reduce) { .wa:hover, .wa:focus-visible { transform: none; } }
@media (max-width: 640px) { .wa { width: 54px; height: 54px; } .wa svg { width: 28px; height: 28px; } }

/* Ajustes para smartphone */
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.contact-list a { display: inline-block; padding-block: 11px; }
.svc-link { min-height: 44px; }
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding-block: 56px; }
  .section-head { margin-bottom: 28px; }
  .lead { font-size: 17px; }
  .hero .wrap { padding-top: 200px; padding-bottom: 48px; }
  .hero-media img { object-position: 70% 30%; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .svc figure { aspect-ratio: 2 / 1; }
  .svc-body { padding: 18px 18px 22px; }
  .boards-media { grid-template-columns: 1fr; }
  .boards-media .small { display: none; }
  .board-types li { padding: 9px 0; }
  .about-media { grid-template-columns: 1fr; }
  .about-media img { aspect-ratio: 16 / 10; }
  .about-media img:first-child { margin-top: 0; }
  .about-media img + img { display: none; }
  .why div, .why div + div { padding-top: 18px; padding-bottom: 18px; }
  .figures .wrap { padding-block: 32px; }
  .figure { padding: 4px 14px; }
  .member { padding: 18px; }
  .contact .btn, form.quote .btn { width: 100%; }
  .project { padding: 18px; }
  .section-foot .btn { width: 100%; justify-content: center; }
}

