/* ROSCH: paleta tomada del logo (gris carbón, gris medio y azul del cubo) */
:root {
  --ink: #1E2023;
  --ink-2: #404040;
  --muted: #6B6F75;
  --line: #E3E4E6;
  --soft: #F4F5F6;
  --paper: #FFFFFF;
  --blue: #2FA0D0;
  --blue-ink: #1B7FAD; /* azul con contraste AA sobre blanco */
  --radius: 4px;
  --wrap: 1200px;
  --font: "Figtree", "Avenir Next", "Avenir", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--paper); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.12; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; font-weight: 700; color: var(--blue-ink); margin-bottom: 14px; }
.eyebrow.light { color: #8FD3F0; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }

.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: var(--radius); border: 1px solid var(--blue); transition: background .2s, transform .2s; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { background: var(--blue-ink); border-color: var(--blue-ink); }
.btn .ico { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { padding: 9px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions.center { justify-content: center; }
.ico { width: 22px; height: 22px; flex: none; }
.ico-lg { width: 40px; height: 40px; color: var(--blue); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.site-header.over { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; }
.site-header.over:not(.solid) .brand img { filter: brightness(0) invert(1); }
.site-header.over:not(.solid) .menu a:not(.btn) { color: #fff; }
.site-header.over:not(.solid) .menu-btn span { background: #fff; }
.site-header.solid { background: rgba(255,255,255,.97); border-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 128px; height: auto; transition: filter .3s; }
.menu { display: flex; align-items: center; gap: 30px; }
.menu a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink-2); letter-spacing: .02em; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--blue-ink); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); transition: transform .25s; }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero, .p-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.p-hero { min-height: 72svh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,25,.55) 0%, rgba(20,22,25,.15) 35%, rgba(20,22,25,.82) 100%); }
.hero-inner { position: relative; padding: 140px 0 clamp(56px, 9vh, 110px); }
.hero h1, .p-hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.85); }
.back { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.85); text-decoration: none; font-size: .95rem; margin-bottom: 26px; }
.back:hover { color: #fff; }
.back .ico { width: 18px; height: 18px; }

/* Secciones */
.section { padding: clamp(72px, 10vw, 130px) 0; }
.section.soft { background: var(--soft); }
.section.dark { background: var(--ink); color: #C9CCD0; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark .lead { color: #A9ADB3; }
.head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.head.center { margin-inline: auto; }

.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.service { background: #fff; padding: 36px 28px 30px; }
.service h3 { margin-top: 22px; }
.service p { color: var(--muted); font-size: .98rem; margin: 0; }

.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; text-decoration: none; background: #2A2D31; border-radius: var(--radius); }
.project.wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .4s; opacity: .92; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(15,16,18,.85)); }
.project:hover img { transform: scale(1.05); opacity: 1; }
.project-meta { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.project-name { color: #fff; font-weight: 700; font-size: 1.2rem; }
.project.wide .project-name { font-size: 1.6rem; }
.project:last-child:nth-child(3n+2) { grid-column: span 2; aspect-ratio: auto; }
.project-go { color: #8FD3F0; font-size: .88rem; display: inline-flex; gap: 6px; align-items: center; opacity: 0; transform: translateY(6px); transition: .3s var(--ease); }
.project-go .ico { width: 16px; height: 16px; }
.project:hover .project-go, .project:focus-visible .project-go { opacity: 1; transform: none; }

.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.values li { border-top: 2px solid var(--ink); padding-top: 22px; }
.values .num { display: block; color: var(--blue-ink); font-weight: 700; font-size: .85rem; letter-spacing: .1em; margin-bottom: 14px; }
.values p { color: var(--muted); font-size: .98rem; }

.logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.logos li { border: 1px solid #2E3136; border-radius: var(--radius); display: grid; place-items: center; padding: 20px; aspect-ratio: 3 / 2; }
.logos img { max-height: 62px; max-width: 100%; width: auto; object-fit: contain; opacity: .72; transition: opacity .3s; }
.logos li:hover img { opacity: 1; }
.clients { border-top: 1px solid #2A2D31; }

.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { margin: 0; }
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: var(--radius); filter: grayscale(.2); }
.person figcaption { padding-top: 16px; display: flex; flex-direction: column; }
.person strong { color: var(--ink); font-size: 1.15rem; }
.person span { color: var(--muted); }

/* Contacto */
.contact { padding-bottom: 0; background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; padding-bottom: clamp(72px, 10vw, 120px); }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { color: var(--blue-ink); margin-top: 2px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--blue-ink); }
.card { background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: 0 20px 60px -30px rgba(20,22,25,.25); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #CFD2D6; border-radius: var(--radius); background: #fff; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,160,208,.18); }
[aria-invalid="true"] { border-color: #C0392B !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 14px 0 0; font-size: .95rem; min-height: 1.4em; }
.form-status.ok { color: #1E7B4C; }
.form-status.err { color: #B03A2E; }
.lead-form .btn { width: 100%; justify-content: center; margin-top: 6px; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(1) contrast(1.05); }

/* Proyecto */
.gallery { columns: 2; column-gap: 16px; }
.shot { display: block; margin-bottom: 16px; break-inside: avoid; overflow: hidden; border-radius: var(--radius); cursor: zoom-in; }
.shot img { width: 100%; transition: transform .6s var(--ease); }
.shot:hover img { transform: scale(1.03); }
.pager { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.pager a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 600; }
.pager a:hover { color: var(--blue-ink); }
.pager small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; }
.pager .nx { text-align: right; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn { margin-top: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12,13,15,.95); display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 86vh; width: auto; object-fit: contain; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; }
.lightbox button .ico { width: 30px; height: 30px; }
.lb-close { top: 14px; right: 14px; } .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); } .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.nf { min-height: 60vh; display: grid; place-items: center; }

/* Footer */
.site-footer { background: #15171A; color: #A9ADB3; padding: 72px 0 28px; font-size: .95rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.foot h3 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 14px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }
.foot-logo { width: 130px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.social { display: inline-flex; align-items: center; gap: 8px; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid #2A2D31; margin-top: 48px; padding-top: 22px; font-size: .85rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float .ico { width: 28px; height: 28px; }

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

/* Responsive */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .values { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .menu { position: fixed; inset: 76px 0 auto 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s; }
  .menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink) !important; }
  .menu .btn { margin-top: 16px; justify-content: center; }
  .site-header.over.open-menu { background: #fff; }
  .projects { grid-template-columns: 1fr 1fr; }
  .project.wide { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .project:last-child:nth-child(3n+2) { grid-column: auto; aspect-ratio: 4 / 3; }
  .project:last-child:nth-child(2n) { grid-column: span 2; aspect-ratio: 16 / 10; }
  .team { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .services, .values, .projects, .team { grid-template-columns: 1fr; }
  .project.wide, .project:last-child:nth-child(n) { grid-column: auto; aspect-ratio: 4 / 3; }
  .project-go { opacity: 1; transform: none; }
  .logos { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .logos li { padding: 10px; }
  .row2 { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .foot { grid-template-columns: 1fr; }
  .pager span { font-size: .95rem; }
}
