:root {
  --paper: #f5f2ec;
  --paper-2: #ece7de;
  --ink: #13233f;
  --ink-2: #3a4862;
  --ink-3: #5b6780;
  --line: #d7d0c3;
  --red: #c8202a;
  --red-deep: #a3161f;
  --navy: #13233f;
  --navy-2: #1c3157;
  --on-navy: #e9ecf3;
  --on-navy-2: #b4bed2;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --sec: clamp(88px, 11vw, 152px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
html { scrollbar-color: #b9b0a0 var(--paper); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: #c4bcae; border: 3px solid var(--paper); border-radius: 8px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.08; }
p { margin: 0 0 1em; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 999px;
  padding: .95em 1.5em; font-weight: 500; font-size: .97rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.btn svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }
.btn:hover { background: var(--red); border-color: var(--red); }
.btn:active { transform: scale(.97); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #b8ae9d; }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-small { padding: .7em 1.15em; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; padding: 1.1em; }
.btn[disabled] { opacity: .55; cursor: progress; }

.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.linklike:hover { color: var(--red); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 236, 0);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(245, 242, 236, .97); box-shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(19,35,63,.25); backdrop-filter: saturate(1.2) blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; position: relative; z-index: 61; }
/* El PNG original es un cuadrado de 567px con la coma en x 211-333, y 178-384: se recorta para mostrar solo la coma. */
.brand-mark { --w: 27px; width: var(--w); height: calc(var(--w) * 206 / 122); position: relative; overflow: hidden; flex: none; }
.brand-mark img { position: absolute; max-width: none; width: calc(var(--w) * 567 / 122); height: auto; left: calc(var(--w) * -211 / 122); top: calc(var(--w) * -178 / 122); }
.brand-name { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; line-height: 1; letter-spacing: -0.01em; display: flex; flex-direction: column; }
.brand-name small { font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; font-weight: 500; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-size: .95rem; color: var(--ink-2); position: relative; padding: 6px 0; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.nav a:not(.btn):hover, .nav a.active { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; }

/* Hero */
.hero { padding: clamp(24px, 4vw, 56px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
  line-height: 1.02; letter-spacing: -0.028em; font-weight: 400;
}
.hero h1 .comma { color: var(--red); font-style: italic; }
.lead { font-size: clamp(1.06rem, 1.3vw, 1.2rem); color: var(--ink-2); max-width: 50ch; margin: 28px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { margin: 0; height: clamp(420px, 68vh, 640px); overflow: hidden; border-radius: 4px; position: relative; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px; margin-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); font-size: .93rem; color: var(--ink-2); }
.hero-foot p { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.hero-foot i { width: 4px; height: 4px; background: var(--red); border-radius: 50%; display: inline-block; }
.hero-phone { font-variant-numeric: tabular-nums; text-decoration: none; font-weight: 500; color: var(--ink); white-space: nowrap; }
.hero-phone:hover { color: var(--red); }

/* Load moment */
.js .hero-media { clip-path: inset(0 0 100% 0); }
.js .hero-media img { transform: scale(1.12); }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); }
.js.loaded .hero-media { clip-path: inset(0 0 0 0); transition: clip-path 1.4s var(--ease) .1s; }
.js.loaded .hero-media img { transform: scale(1); transition: transform 2.2s var(--ease) .1s; }
.js.loaded .hero-copy > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js.loaded .hero-copy > :nth-child(2) { transition-delay: .12s; }
.js.loaded .hero-copy > :nth-child(3) { transition-delay: .22s; }

/* Sections */
.section { padding: var(--sec) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head p { color: var(--ink-2); max-width: 46ch; margin: 0; }

/* About */
.about { background: var(--paper-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 104px); align-items: center; }
.about-media { position: relative; padding-bottom: 18%; }
.about-img-a { width: 82%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.about-img-b { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; border: 8px solid var(--paper-2); }
.about-copy h2 { margin-bottom: 28px; }
.about-copy > p { color: var(--ink-2); max-width: 58ch; }

.tabs { margin-top: 40px; border-top: 1px solid var(--line); }
.tab-list { display: flex; gap: 28px; }
.tab-list [role=tab] {
  background: none; border: 0; padding: 18px 0 12px; cursor: pointer;
  font-family: var(--serif); font-size: 1.45rem; color: var(--ink-3);
  position: relative; transition: color .2s ease;
}
.tab-list [role=tab]::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out); }
.tab-list [role=tab][aria-selected=true] { color: var(--ink); }
.tab-list [role=tab][aria-selected=true]::after { transform: scaleX(1); }
.tab-list [role=tab]:hover { color: var(--ink); }
.tab-panel p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink); max-width: 52ch; margin: 6px 0 0; }
.tab-panel:not([hidden]) { animation: fadeUp .3s var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Services */
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.service { border-bottom: 1px solid var(--line); }
.service-head {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: clamp(22px, 2.6vw, 34px) 0;
}
.service-name { font-family: var(--serif); font-size: clamp(1.7rem, 3.4vw, 2.9rem); line-height: 1.1; letter-spacing: -0.02em; transition: color .2s ease, transform .25s var(--ease-out); }
.service-plus { width: 22px; height: 22px; position: relative; flex: none; }
.service-plus::before, .service-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .25s var(--ease-out); }
.service-plus::after { transform: rotate(90deg); }
.service-head[aria-expanded=true] .service-plus::after { transform: rotate(0); }
.service-body { padding: 0 0 clamp(26px, 3vw, 36px); }
.service-body p { max-width: 60ch; color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.service-body:not([hidden]) { animation: fadeUp .3s var(--ease-out); }

/* Values */
.values { background: var(--navy); color: var(--on-navy); }
.values-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px 80px; }
.values h2 { color: #fff; }
.value-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.value-list > div { padding: 26px 0 30px; border-top: 1px solid rgba(233,236,243,.2); }
.value-list dt { font-family: var(--serif); font-size: 1.6rem; color: #fff; margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.value-list dt::before { content: ","; color: var(--red); font-style: italic; font-size: 1.3em; line-height: 0; transform: translateY(-.05em); }
.value-list dd { margin: 0; color: var(--on-navy-2); font-size: .98rem; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(160px, 17vw, 230px); gap: 12px; grid-auto-flow: dense; }
.g { padding: 0; border: 0; background: var(--paper-2); overflow: hidden; cursor: zoom-in; border-radius: 3px; position: relative; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out), filter .4s ease; filter: saturate(.92); }
.g { transition: transform .16s var(--ease-out); }
.g:active { transform: scale(.985); }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }

/* Clients */
.clients { background: #fff; }
.logo-wall { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(28px, 4vw, 48px) 0; }
.logo-wall img { width: 100%; height: auto; }

/* Blog */
.posts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.post { text-decoration: none; display: flex; flex-direction: column; }
.post-img { aspect-ratio: 16/10; overflow: hidden; border-radius: 3px; background: var(--paper-2); margin-bottom: 22px; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.post-meta { font-size: .86rem; color: var(--ink-3); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.post h3 { font-size: clamp(1.4rem, 2.1vw, 1.8rem); line-height: 1.18; margin-bottom: 14px; transition: color .2s ease; }
.post:hover h3 { color: var(--red); }
.post > p:not(.post-meta) { color: var(--ink-2); max-width: 56ch; }
.read { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: .95rem; }
.read svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease-out); }

/* Contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 104px); align-items: start; }
.contact-copy h2 { margin-bottom: 24px; }
.contact-copy > p { color: var(--ink-2); max-width: 44ch; }
.contact-lines { list-style: none; padding: 0; margin: 36px 0 0; border-top: 1px solid var(--line); }
.contact-lines li { border-bottom: 1px solid var(--line); }
.contact-lines a { display: flex; align-items: center; gap: 14px; padding: 18px 0; text-decoration: none; font-size: 1.08rem; font-variant-numeric: tabular-nums; transition: color .2s ease; }
.contact-lines a:hover { color: var(--red); }
.contact-lines svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; flex: none; }

.form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: clamp(24px, 3.5vw, 44px); box-shadow: 0 24px 48px -32px rgba(19,35,63,.35); }
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .88rem; font-weight: 500; margin-bottom: 7px; color: var(--ink); }
.opt { color: var(--ink-3); font-weight: 400; }
.field input:not([type=checkbox]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #cfc7b8; border-radius: 4px;
  padding: .78em .9em; transition: border-color .25s, box-shadow .25s;
  caret-color: var(--red);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%2313233f' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8em center; background-size: 16px; padding-right: 2.4em; }
.field textarea { resize: vertical; min-height: 110px; }
.field ::placeholder { color: #7a8396; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #a99f8c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(19,35,63,.12); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.err { color: var(--red-deep); font-size: .84rem; margin: 6px 0 0; min-height: 0; }
.err:empty { display: none; }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; margin: 22px 0 24px; }
.check input { width: 19px; height: 19px; margin: 2px 0 0; accent-color: var(--ink); cursor: pointer; }
.check label { font-weight: 400; font-size: .94rem; margin: 0; color: var(--ink-2); cursor: pointer; }
.check .err { grid-column: 2; }
.form-success { margin-top: 18px; padding: 16px 18px; background: #e7efe6; border: 1px solid #b9cfb6; border-radius: 4px; color: #1f3d22; }
.form-success p { margin: 0; }

/* Footer */
.footer { background: var(--navy); color: var(--on-navy-2); padding: clamp(64px, 8vw, 96px) 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-name small { color: var(--on-navy-2); }
.footer-brand p { max-width: 44ch; margin-top: 24px; }
.footer h3 { font-family: var(--sans); font-size: .95rem; color: #fff; font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 10px; }
.footer a, .footer .linklike { text-decoration: none; color: var(--on-navy-2); transition: color .25s; font-variant-numeric: tabular-nums; }
.footer a:hover, .footer .linklike:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(233,236,243,.25); border-radius: 50%; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.socials a:active { transform: scale(.94); }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid rgba(233,236,243,.16); padding-top: 24px; padding-bottom: 28px; font-size: .86rem; }
.footer-base p { margin: 0; }

/* WhatsApp float */
.wa-float {
  position: fixed; right: clamp(16px, 2.5vw, 28px); bottom: clamp(16px, 2.5vw, 28px); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -10px rgba(19,35,63,.6);
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.wa-float:hover { background: #1f8f4e; }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }

/* Dialogs */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10, 18, 34, .72); backdrop-filter: blur(4px); }
dialog[open] { animation: dlgIn .28s var(--ease-out); }
dialog[open]::backdrop { animation: fadeIn .28s ease; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes dlgIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease, color .15s ease, transform .16s var(--ease-out); }
.dialog-close:active, .lb-nav:active { transform: scale(.94); }
.dialog-close:hover { background: var(--ink); color: #fff; }
.dialog-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.policy { max-width: 640px; width: calc(100% - 32px); border-radius: 8px; background: var(--paper); }
.policy-inner { padding: clamp(28px, 5vw, 52px); position: relative; }
.policy h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin: 0 48px 22px 0; }
.policy p { color: var(--ink-2); }
.policy .btn { margin-top: 10px; }

.lightbox { background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox figure { margin: 0; max-width: min(1100px, 86vw); }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border-radius: 3px; }
.lightbox figcaption { color: #dfe4ee; text-align: center; margin-top: 14px; font-size: .95rem; }
.lightbox .dialog-close { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; top: 20px; right: 20px; }
.lb-nav { position: fixed; top: calc(50% - 26px); width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background-color .15s ease, transform .16s var(--ease-out); }
.lb-nav:hover { background: var(--red); border-color: var(--red); }
.lb-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }

/* Scroll reveal: content is visible by default; JS adds the class only when motion is welcome */
.reveal-on .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal-on .rv.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .nav { gap: 22px; }
  .nav a:not(.btn) { font-size: .9rem; }
}
@media (max-width: 900px) {
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 46px; height: 46px; background: none; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; z-index: 60; }
  .menu-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
  .menu-toggle[aria-expanded=true] span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-toggle[aria-expanded=true] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 0; background: var(--paper); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 0 var(--gutter); visibility: hidden; opacity: 0; transition: opacity .18s ease, visibility 0s .18s;
  }
  .nav.open { visibility: visible; opacity: 1; transition: opacity .25s var(--ease-out); }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2.2rem; color: var(--ink); }
  .nav-cta { margin: 24px 0 0; }
  .brand-mark { --w: 23px; }
  .brand-name { font-size: 1.6rem; }
  .header-inner { height: 76px; }
  .hero-grid, .about-grid, .contact-grid, .values-grid { grid-template-columns: 1fr; }
  .hero-media { height: 42vh; min-height: 260px; max-height: 420px; order: -1; }
  .section-head { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .value-list, .posts, .logo-wall, .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .lb-nav { top: auto; bottom: 24px; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* Movimiento al pasar el mouse: solo con puntero real (evita estados pegados en pantallas tactiles) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover svg { transform: translateX(3px); }
  .service-head:hover .service-name { color: var(--red); transform: translateX(6px); }
  .g:hover img { transform: scale(1.04); filter: saturate(1.05); }
  .post:hover .post-img img { transform: scale(1.03); }
  .post:hover .read svg { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
