/* ============================================================
   M&A Services Company — styles.css
   Premium corporate design system. No frameworks.
   Palette: deep navy, royal blue accent, slate, silver, white.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand palette */
  --ink:          #0B1E3F;  /* M&A Services Company navy */
  --ink-2:        #14305f;
  --steel-900:    #081427;  /* M&A Services Company ink (dark navy) */
  --steel-800:    #21262c;
  --steel-700:    #2d333b;
  --steel-600:    #404852;
  --steel-500:    #5a636e;
  --steel-400:    #7c8590;
  --steel-300:    #9aa3ad;
  --steel-200:    #c2c7ce;  /* silver */
  --steel-100:    #e4e7eb;
  --paper:        #F2F4F8;  /* mist */
  --white:        #ffffff;
  --flame:        #23457E;  /* M&A Services Company royal blue (accent) */
  --flame-bright: #3E6BB0;
  --flame-deep:   #1C3A6B;
  --flag-red:     #b11226;
  --ok:           #2f8a4e;

  /* Typography */
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Scale & spacing */
  --container: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-y: clamp(56px, 8vw, 104px);
  --radius: 10px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(8,20,39,.08), 0 2px 6px rgba(8,20,39,.06);
  --shadow-md: 0 8px 24px rgba(8,20,39,.12);
  --shadow-lg: 0 18px 48px rgba(8,20,39,.20);
  --bevel: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--steel-800);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--flame-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4,h5,h6 { margin: 0 0 .5em; line-height: 1.08; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,*::before,*::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: 1.02;
}
h1 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .005em;
     font-size: clamp(2.1rem, 6vw, 4.1rem); }
h2 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .01em;
     font-size: clamp(1.7rem, 4vw, 2.7rem); }
h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
     font-size: clamp(1.15rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1.1rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--steel-600); line-height: 1.6; }

/* Eyebrow label — a small structural tag, like a steel stamp */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600;
  text-transform: uppercase; letter-spacing: .22em;
  font-size: .78rem; color: var(--flame-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px;
  background: var(--flame); display: inline-block;
}
.eyebrow.on-dark { color: var(--flame-bright); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); }
.section--steel { background: var(--steel-900); color: var(--steel-100); }
.section--steel h1,.section--steel h2,.section--steel h3 { color: var(--white); }
.section--ink { background: var(--ink); color: var(--steel-100); }
.section--ink h2,.section--ink h3 { color: var(--white); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure.center { margin-inline: auto; }
.section-head { max-width: 64ch; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; }

.grid { display: grid; gap: clamp(18px, 3vw, 28px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3,.grid-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .grid-2,.grid-3,.grid-4{ grid-template-columns: 1fr;} }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .95rem;
  padding: 15px 28px; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--flame-bright); outline-offset: 3px; }
.btn--primary { background: var(--flame); color: #ffffff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--flame-bright); box-shadow: var(--shadow-md); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--steel-300); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost.on-dark { color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost.on-dark:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,30,63,.97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 3px solid var(--flame);
  color: var(--white);
}
.nav { display: flex; align-items: center; justify-content: flex-start; gap: 12px 16px; padding-block: 12px; flex-wrap: wrap; row-gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { height: 64px; width: auto; }
.nav-audit-wrap { display: flex; align-items: center; }
.brand:hover { text-decoration: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  color: var(--white); font-size: 1.15rem; letter-spacing: .03em;
}
.brand-text span {
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--steel-300); font-weight: 600;
}
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none;
  order: 3; width: 100%; flex-wrap: wrap; justify-content: center; margin-top: 2px; }
.nav-links a {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  letter-spacing: .05em; font-size: .95rem; color: var(--steel-200);
  padding: 10px 14px; border-radius: var(--radius); transition: color .15s, background .15s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--white); background: rgba(255,255,255,.08); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--flame-bright); }
.nav-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.nav-account {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  color: var(--steel-200); font-weight: 600; font-size: .85rem;
  padding: 7px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 8px;
}
.nav-account:hover { color: #fff; border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.06); text-decoration: none; }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; color: var(--white);
  font-family: var(--font-display); font-weight: 600; letter-spacing: .03em; font-size: 1.05rem;
}
.nav-phone:hover { color: var(--flame-bright); text-decoration: none; }
.nav-toggle {
  display: none; background: transparent; border: 2px solid rgba(255,255,255,.35);
  border-radius: var(--radius); width: 46px; height: 44px; padding: 0; color: var(--white);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: currentColor;
  margin-inline: auto; position: relative; transition: transform .2s, opacity .2s;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  /* Keep every nav title visible on its own tidy row instead of a dropdown */
  .nav-toggle { display: none; }
  .nav { flex-wrap: wrap; row-gap: 4px; padding-bottom: 6px; }
  .nav-links {
    order: 3; width: 100%;
    flex-wrap: wrap; justify-content: center; gap: 2px;
    margin-top: 2px;
  }
  .nav-links a { padding: 6px 10px; font-size: .92rem; }
  .nav-phone span.label { display: none; }
}
/* Móvil: logo + (área cliente / EN·ES) arriba a la derecha, botón de auditoría
   centrado en su propia fila, y los enlaces del menú centrados y equilibrados. */
@media (max-width: 600px) {
  .brand img { height: 38px; }
  .nav { gap: 8px 10px; }
  .nav-cta { flex-wrap: nowrap; gap: 8px; }
  .nav-account { padding: 6px 10px; font-size: .8rem; }
  .lang-switch a { padding: 5px 8px; }
  .nav-audit-wrap { flex-basis: 100%; justify-content: center; margin-top: 4px; }
  .nav-audit-wrap .btn { padding: 12px 30px; }
  .nav-links { gap: 4px 6px; margin: 4px auto 0; max-width: 380px; }
  .nav-links a { padding: 8px 12px; font-size: .9rem; }
}
@media (max-width: 360px) {
  .brand img { height: 34px; }
  .nav-account span { display: none; }   /* solo el icono en pantallas muy estrechas */
  .nav-account { padding: 7px 9px; }
  .nav-links a { padding: 7px 10px; font-size: .86rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  background:
    linear-gradient(180deg, rgba(11,30,63,.78) 0%, rgba(8,20,39,.92) 100%),
    radial-gradient(120% 90% at 78% 8%, rgba(35,69,126,.28), transparent 55%),
    var(--steel-900);
  overflow: hidden;
}
.hero::after {
  /* subtle steel diamond-plate texture */
  content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, #fff 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, #fff 0 1px, transparent 1px 14px);
  background-size: 28px 28px;
}
.hero .container { position: relative; z-index: 2; padding-block: clamp(64px, 11vw, 132px); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero h1 .accent { color: var(--flame-bright); }
.hero .lead { color: var(--steel-200); max-width: 54ch; margin-top: 8px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 28px; margin-top: 42px;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14);
}
.hero-trust div { line-height: 1.2; }
.hero-trust strong {
  font-family: var(--font-display); font-size: 1.9rem; color: var(--flame-bright); display: block;
}
.hero-trust span { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-300); }

.hero--sub { background:
    linear-gradient(180deg, rgba(11,30,63,.92), rgba(8,20,39,.95)),
    var(--steel-900); }
.hero--sub .container { padding-block: clamp(52px, 8vw, 88px); }
.hero--sub h1 { font-size: clamp(2rem, 5vw, 3.4rem); }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--steel-300); margin-bottom: 16px; letter-spacing: .04em; }
.breadcrumb a { color: var(--steel-200); }
.breadcrumb a:hover { color: var(--white); }

/* ---------- Steel plate card (signature element) ---------- */
.plate {
  background: var(--white);
  clip-path: var(--bevel);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--flame);
  transition: transform .18s ease, box-shadow .18s ease;
  height: 100%;
}
.plate:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plate h3 { margin-top: 10px; }
.plate p:last-child { margin-bottom: 0; }
.plate--dark { background: var(--steel-800); color: var(--steel-200); border-top-color: var(--flame); }
.plate--dark h3 { color: var(--white); }

/* Icon chip */
.chip {
  width: 54px; height: 54px; display: grid; place-items: center;
  background: var(--ink); color: var(--flame-bright); border-radius: var(--radius);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.chip svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* ---------- Service link list ---------- */
.svc-card { display: flex; flex-direction: column; }
.svc-card .chip { margin-bottom: 6px; }
.svc-card .more {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; font-size: .85rem; color: var(--flame-deep);
}
.svc-card .more::after { content: " →"; }

/* ---------- "Why us" feature row ---------- */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .chip { flex: 0 0 auto; }
.feature h3 { margin: 4px 0 6px; }
.feature p { margin: 0; color: var(--steel-600); }
.section--steel .feature p, .section--ink .feature p { color: var(--steel-300); }

/* ---------- Process steps (real sequence → numbered) ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  position: relative; padding: 22px 22px 22px 78px;
  border-left: 2px solid var(--steel-200);
}
.step:last-child { border-left-color: transparent; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: -23px; top: 16px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--flame-bright);
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  border-radius: var(--radius);
}
.step h3 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--steel-600); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px){ .gallery-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 520px){ .gallery-grid{ grid-template-columns: 1fr;} }
.shot {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--steel-800);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}
.shot img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 16px 14px; color: var(--white);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: .95rem;
  background: linear-gradient(180deg, transparent, rgba(8,20,39,.85));
}
.shot .tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: .68rem; letter-spacing: .08em; color: #ffffff;
  background: var(--flame); padding: 5px 10px; border-radius: 3px;
}

/* Gallery filter */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.filter-btn {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: .85rem; color: var(--steel-600);
  background: var(--white); border: 2px solid var(--steel-200);
  padding: 9px 18px; border-radius: var(--radius); transition: all .15s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.shot.is-hidden { display: none; }

/* Clickable gallery shot (opens lightbox) */
.shot-open {
  display: block; width: 100%; padding: 0; margin: 0; border: 0;
  background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: left;
}
.shot-open:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; display: none;
  align-items: center; justify-content: center;
  background: rgba(12, 14, 18, .92); padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-figure { margin: 0; max-width: min(1100px, 92vw); max-height: 88vh; text-align: center; }
.lightbox-img {
  max-width: 100%; max-height: 80vh; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox-caption {
  margin-top: 14px; color: var(--white);
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: 1rem;
}
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.1); color: var(--white);
  border: 0; cursor: pointer; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.lightbox-close { top: 18px; right: 22px; width: 46px; height: 46px; font-size: 30px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 34px; line-height: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--flame); color: #ffffff; }
@media (max-width: 520px){
  .lightbox-nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; }
}

/* ---------- Testimonials ---------- */
.quote {
  background: var(--white); padding: clamp(24px, 3vw, 34px);
  border-left: 4px solid var(--flame); box-shadow: var(--shadow-sm);
  border-radius: var(--radius); height: 100%;
}
.quote .stars { color: var(--flame); letter-spacing: 2px; margin-bottom: 10px; }
.quote blockquote { margin: 0 0 16px; font-size: 1.05rem; color: var(--steel-700); }
.quote .who { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); }
.quote .role { font-size: .82rem; color: var(--steel-500); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--ink) 0%, var(--steel-900) 100%);
  color: var(--white);
}
.cta-banner::before {
  content: ""; position: absolute; right: -60px; top: 50%; transform: translateY(-50%) rotate(12deg);
  width: 380px; height: 80px;
  background: linear-gradient(90deg, transparent, var(--flame));
  opacity: .25; filter: blur(2px);
}
.cta-banner .container {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 28px;
  padding-block: clamp(40px, 6vw, 64px);
}
.cta-banner h2 { color: var(--white); margin: 0; max-width: 18ch; }
.cta-banner p { margin: 8px 0 0; color: var(--steel-200); }
.cta-banner .actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px){ .form .row{ grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: .82rem; color: var(--ink);
}
.field label .req { color: var(--flag-red); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--steel-900);
  padding: 13px 14px; border: 2px solid var(--steel-200); border-radius: var(--radius);
  background: var(--white); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--flame); box-shadow: 0 0 0 3px rgba(35,69,126,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .error-msg { color: var(--flag-red); font-size: .82rem; display: none; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--flag-red); }
.field.invalid .error-msg { display: block; }
.form-note { font-size: .85rem; color: var(--steel-500); }
.form-success {
  display: none; background: #eef7f0; border: 2px solid var(--ok); color: #1d5e36;
  padding: 16px 18px; border-radius: var(--radius); font-weight: 600;
}
.form-success.show { display: block; }

/* ---------- Info / contact list ---------- */
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list .chip { flex: 0 0 auto; }
.info-list strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); font-size: .9rem; }
.info-list a { color: var(--flame-deep); }
.section--steel .info-list strong { color: var(--white); }
.section--steel .info-list a { color: var(--flame-bright); }

.hours { list-style: none; display: grid; gap: 8px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--steel-100); }
.hours li span:first-child { font-weight: 600; }
.hours .closed { color: var(--steel-400); }

.map-embed { width: 100%; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-sm); aspect-ratio: 16/10; }

/* ---------- Service areas chips ---------- */
.areas { display: flex; flex-wrap: wrap; gap: 10px; }
.areas span {
  background: var(--white); border: 1px solid var(--steel-200);
  padding: 8px 14px; border-radius: 999px; font-size: .9rem; color: var(--steel-700);
}
.section--ink .areas span, .section--steel .areas span { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: var(--steel-200); }

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; text-align: center; }
@media (max-width: 700px){ .stats{ grid-template-columns: repeat(2,1fr); gap: 24px; } }
.stat strong { font-family: var(--font-display); font-size: clamp(2.2rem,5vw,3.2rem); color: var(--flame-bright); display: block; line-height: 1; }
.stat span { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-300); }

/* ---------- Two-column media block ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.reverse .split-media { order: -1; }
@media (max-width: 860px){ .split{ grid-template-columns: 1fr; } .split.reverse .split-media{ order: 1; } /* en móvil la imagen siempre va bajo el texto */ }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
/* Panel de marca cuando un servicio aún no tiene imagen propia. */
.split-media--ph { display: flex; align-items: center; justify-content: center; aspect-ratio: 4/3;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  background: linear-gradient(135deg, var(--ink), var(--ink-2)); }
.split-media--ph span { color: var(--white); font-weight: 800; letter-spacing: .08em; font-size: 1.7rem; opacity: .9; }
.checklist { list-style: none; display: grid; gap: 12px; margin-top: 18px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: 0 0 auto; width: 22px; height: 22px; margin-top: 2px;
  background: var(--flame); border-radius: 3px;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section--steel .checklist li, .section--ink .checklist li { color: var(--steel-200); }

/* ---------- Footer ---------- */
.site-footer { background: var(--steel-900); color: var(--steel-300); padding-block: clamp(44px, 6vw, 72px) 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .footer-grid{ grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; color: var(--white); font-size: .95rem; margin-bottom: 16px; }
.site-footer a { color: var(--steel-300); }
.site-footer a:hover { color: var(--flame-bright); text-decoration: none; }
.footer-brand img { height: 64px; margin-bottom: 14px; }
.footer-brand p { font-size: .92rem; color: var(--steel-400); max-width: 34ch; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-bottom {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 22px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; font-size: .85rem; color: var(--steel-500);
}

/* ---------- Sticky mobile action bar + floating buttons ---------- */
.floaties { position: fixed; right: 16px; bottom: 84px; z-index: 90; display: flex; flex-direction: column; gap: 12px; }
.floaty {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-md); color: #fff; transition: transform .15s;
}
.floaty:hover { transform: scale(1.06); text-decoration: none; }
.floaty svg { width: 28px; height: 28px; fill: currentColor; }
.floaty--wa { background: #25d366; }
.floaty--call { background: var(--flame); color: #ffffff; }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none; grid-template-columns: 1fr 1fr;
  background: var(--ink); border-top: 3px solid var(--flame);
}
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 8px; color: var(--white); font-family: var(--font-display);
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .92rem;
}
.mobile-bar a:hover { text-decoration: none; }
.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.mobile-bar a.call { color: var(--flame-bright); }
.mobile-bar svg { width: 20px; height: 20px; fill: currentColor; }
@media (max-width: 760px){
  .mobile-bar { display: grid; }
  .floaties { bottom: 78px; }
  body { padding-bottom: 56px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; } }

/* ---------- Skip link & a11y ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--flame); color: #ffffff; padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--font-display); font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 2px; }

/* ---------- Misc ---------- */
.divider-bevel { height: 4px; background: var(--flame); width: 64px; margin: 18px 0; }
.note-box {
  background: #fff7ed; border: 1px solid #f6c98a; border-left: 4px solid var(--flame);
  padding: 14px 18px; border-radius: var(--radius); font-size: .92rem; color: var(--steel-700);
}
.muted { color: var(--steel-500); }
.text-flame { color: var(--flame-deep); }

/* ---------- Contact page additions ---------- */
.link-strong {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-display); font-weight: 600; letter-spacing: .03em;
  color: var(--flame-deep); font-size: 1.05rem; word-break: break-word;
}
.link-strong:hover { color: var(--ink); }

.hours-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-left: 3px solid var(--flame); border-radius: var(--radius);
  padding: 20px 22px;
}
.hours-card h3 { color: var(--white); margin: 0 0 10px; }
.hours-card .hours li { border-bottom-color: rgba(255,255,255,.12); }
.hours-card .hours li span:first-child { color: var(--steel-100); }
.hours-card .hours li span:last-child { color: var(--steel-200); }
.hours-note { margin: 14px 0 0; font-size: .88rem; color: var(--steel-300); }

.map-embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Legal pages (privacy / terms) ---------- */
.legal { line-height: 1.75; color: var(--steel-700); }
.legal h2 { font-size: 1.25rem; margin: 34px 0 10px; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul.checklist { margin: 0 0 16px; }
.legal a { color: var(--flame-deep); font-weight: 600; }
.legal a:hover { color: var(--ink); }

/* ============================================================
   M&A SERVICES COMPANY OVERRIDES — premium corporate (navy / white / gray)
   ============================================================ */
h1,h2,h3,.display,.btn,.nav-links a,.nav-phone,.svc-card .more,
.site-footer h4,.field label,.filter-btn,.stat span,.hero-trust span,
.shot figcaption,.shot .tag,.quote .who,.info-list strong,.lightbox-caption,
.mobile-bar a,.step::before,.skip-link {
  text-transform: none; letter-spacing: normal;
}
h1,h2,h3,.display { font-weight: 800; letter-spacing: -.01em; }
.eyebrow { letter-spacing: .14em; }                 /* keep a refined tag */
/* drop the industrial bevels for clean premium edges */
.plate,.chip,.shot,.btn { clip-path: none !important; }
.plate { border-radius: 14px; }
/* cleaner navy hero (no diamond-plate texture) */
.hero::after { display: none; }
.hero { background: radial-gradient(120% 120% at 85% 0%, #16315f 0%, var(--ink) 48%, var(--steel-900) 100%); }
.cta-banner::before { display: none; }
/* logo sizing on dark header / footer */
.brand img { height: 50px; width: auto; }
.footer-brand img { height: 40px; width: auto; }
/* primary button: white text on royal blue */
.btn--primary, .btn--primary:hover { color: #fff; }
/* slightly lighter header accent line */
.site-header { border-bottom-width: 2px; }

/* hero with brand image */
.hero--home {
  background:
    linear-gradient(100deg, rgba(8,20,39,.94) 0%, rgba(8,20,39,.72) 46%, rgba(11,30,63,.42) 100%),
    url("images/hero.jpg") center/cover no-repeat;
}
.hero--home::after { display: none; }

/* language switch */
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.25); border-radius: 8px; overflow: hidden; }
.lang-switch a { padding: 6px 9px; font-size: .78rem; font-weight: 700; color: var(--steel-200); }
.lang-switch a:hover { color: #fff; text-decoration: none; }
.lang-switch a.active { background: #fff; color: var(--ink); }

/* pricing plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: #fff; border: 1px solid var(--steel-200); border-radius: 14px;
  padding: 30px 24px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan.featured { border-color: var(--flame); box-shadow: var(--shadow-md); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--flame);
  color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }
.plan h3 { font-size: 1.15rem; margin: 0 0 8px; }
.plan-price { font-size: 2.1rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin-bottom: 18px; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--steel-500); }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-features li { font-size: .92rem; color: var(--steel-600); padding: 7px 0 7px 22px; position: relative; border-bottom: 1px solid var(--steel-100); }
.plan-features li::before { content: "\2713"; position: absolute; left: 0; color: var(--flame); font-weight: 800; }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-price .plan-was { font-size: 1.05rem; font-weight: 600; color: var(--steel-400); text-decoration: line-through; letter-spacing: 0; }
.plan-price .plan-per { font-size: .95rem; font-weight: 500; color: var(--steel-500); }
.plan-price .plan-offer { font-size: .68rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  color: #0f7a3d; background: #e4f6ec; border: 1px solid #b7e2c6; padding: 3px 9px; border-radius: 20px; align-self: center; }
.plan-note { font-size: .84rem; color: var(--steel-500); margin: -8px 0 16px; line-height: 1.45; }
.plans-footnote { margin-top: 26px; color: var(--steel-500); font-size: .95rem; }
.plans-footnote a { color: var(--flame); font-weight: 700; }

/* portfolio / work cards */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { background: #fff; border: 1px solid var(--steel-200); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.work-thumb { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--ink); }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.work-card:hover .work-thumb img { transform: scale(1.05); }
/* Marcador de posición cuando un artículo aún no tiene imagen propia. */
.thumb-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-2)); color: var(--white);
  font-weight: 800; letter-spacing: .06em; font-size: 1.5rem; opacity: .85; }
.work-thumb .tag { position: absolute; top: 12px; left: 12px; background: var(--flame); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .03em; padding: 5px 10px; border-radius: 6px; }
/* Mini-pantalla en vivo del sitio del cliente (si su web permite embeberse) */
.work-thumb--live { position: relative; display: block; overflow: hidden; aspect-ratio: 4/3; background: #fff; }
.work-thumb--live .live-frame { position: absolute; top: 0; left: 0; width: 1280px; height: 960px; border: 0;
  transform: scale(.3); transform-origin: 0 0; pointer-events: none; }
.work-thumb--live .live-overlay { position: absolute; inset: 0; z-index: 3; }
.work-thumb--live .tag { z-index: 4; }
.work-card:hover .work-thumb--live .live-frame { transform: scale(calc(var(--live-scale, .3) * 1.03)); transition: transform .25s ease; }

.work-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.work-body h3 { font-size: 1.05rem; margin: 0 0 6px; }
.work-body p { font-size: .92rem; color: var(--steel-600); margin: 0 0 16px; }
.work-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--steel-100); }
.work-metrics .m { text-align: center; }
.work-metrics .m b { display: block; font-size: 1.15rem; font-weight: 800; color: var(--flame); line-height: 1.1; }
.work-metrics .m span { font-size: .68rem; color: var(--steel-500); letter-spacing: .02em; }
.work-body .more { margin-top: 16px; font-weight: 600; color: var(--flame-deep); }
.work-body .more:hover { color: var(--ink); text-decoration: none; }
.is-hidden { display: none !important; }

/* platform teaser (M&A Services OS) */
.platform .badge-soon { display: inline-block; background: rgba(62,107,176,.18); color: var(--flame-bright);
  border: 1px solid rgba(62,107,176,.45); font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 14px; border-radius: 30px; margin-bottom: 16px; }
.module-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 24px 0 28px; }
.module-chips span { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  color: var(--steel-200); padding: 9px 18px; border-radius: 30px; font-size: .9rem; }

/* blog */
.post-date { font-size: .78rem; color: var(--steel-500); letter-spacing: .03em; margin-bottom: 8px; }
.legal img { display: block; }

/* cookie consent banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; width: 100%;
  margin: 0; background: var(--ink); color: #fff; border: none; border-top: 3px solid var(--flame-bright);
  border-radius: 0; padding: 20px clamp(16px, 4vw, 40px); box-shadow: 0 -10px 34px rgba(8,20,39,.4);
  display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.cookie-banner[hidden] { display: none; }
.cookie-banner-head { display: flex; align-items: center; gap: 8px; font-size: 1rem; flex: 0 0 100%; }
.cookie-banner-ico { font-size: 1.2rem; line-height: 1; }
.cookie-banner p { margin: 0; font-size: .95rem; color: #dbe2ee; flex: 1; min-width: 260px; line-height: 1.5; }
.cookie-banner a { color: var(--flame-bright); text-decoration: underline; }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn { padding: 11px 22px; font-size: .9rem; font-weight: 700; }
.cookie-banner .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
@media (max-width: 640px) { .cookie-banner { padding: 18px 18px 20px; } .cookie-banner-head { font-size: .95rem; } }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--steel-200); border-radius: 12px; padding: 0 22px; transition: border-color .15s; }
.faq-item[open] { border-color: var(--flame); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; font-size: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--flame); font-size: 1.5rem; font-weight: 400; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p { margin: 0 0 18px; color: var(--steel-600); font-size: .95rem; line-height: 1.65; }

/* social proof strip */
.socialproof { padding: clamp(34px,5vw,52px) 0; background: var(--paper); border-block: 1px solid var(--line); text-align: center; }
.socialproof .eyebrow { justify-content: center; }
.socialproof .sp-h2 { font-size: 1.15rem; color: var(--steel-600); font-weight: 600; margin: 4px 0 22px; }
.logo-strip { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: center; align-items: center; }
.logo-strip span { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  color: var(--steel-500); border: 1px solid var(--line); border-radius: 8px; padding: 10px 18px; background: #fff; filter: grayscale(1); }
