/* =============================================================
   Corporación Motors — Premium static site
   Archetype: Editorial Dark Warm (adapted to navy + orange)
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
@property --mesh-angle {
  syntax: "<angle>"; inherits: false; initial-value: 0deg;
}

:root {
  /* Navy-tinted dark base (never pure black) */
  --bg:        #0b1422;
  --bg-2:      #0f1b2e;
  --bg-3:      #16243a;   /* card */
  --bg-4:      #1d3050;

  --cream:     #f3ede1;   /* text on dark, never pure white */
  --cream-2:   #cdd5e1;
  --cream-3:   #8c99ad;   /* metadata */

  --accent:    #f0832a;   /* brand orange, slightly lifted for dark bg */
  --accent-2:  #c45f12;
  --gold:      #d8a24a;

  --line:      rgba(243,237,225,.12);
  --line-2:    rgba(243,237,225,.07);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, monospace;

  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:  cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --nav-h: 76px;

  --z-nav: 100;
  --z-fab: 110;
  --z-splash: 200;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cream-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.04; letter-spacing: -0.01em; font-weight: 600; color: var(--cream); }
::selection { background: var(--accent); color: #1a0f04; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem;
  background: var(--cream); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Typography helpers
   ============================================================= */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.02;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.section-title em { font-style: italic; color: var(--accent); font-weight: 500; }

.kicker {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* =============================================================
   4. Buttons
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  transition: transform .4s var(--ease-out), background-color .3s var(--ease-out), color .3s var(--ease-out), box-shadow .4s var(--ease-out);
  will-change: transform;
}
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn-primary { background: var(--accent); color: #1a0f04; box-shadow: 0 10px 30px -10px rgba(240,131,42,.6); }
.btn-primary:hover { background: #ffa04d; transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(240,131,42,.7); }
.btn-ghost { background: rgba(243,237,225,.06); color: var(--cream); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(243,237,225,.12); transform: translateY(-2px); }

/* WhatsApp glyph (CSS mask, no external asset) */
.wa-ico {
  width: 1.1em; height: 1.1em; display: inline-block; background: currentColor;
  -webkit-mask: var(--wa) center/contain no-repeat; mask: var(--wa) center/contain no-repeat;
  --wa: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M.057 24l1.687-6.163a11.867 11.867 0 01-1.587-5.945C.16 5.335 5.495 0 12.05 0a11.82 11.82 0 018.413 3.488 11.82 11.82 0 013.48 8.414c-.003 6.557-5.338 11.892-11.893 11.892a11.9 11.9 0 01-5.688-1.448L.057 24zm6.597-3.807c1.676.995 3.276 1.591 5.392 1.592 5.448 0 9.886-4.434 9.889-9.885.002-5.462-4.415-9.89-9.881-9.892-5.452 0-9.887 4.434-9.889 9.884a9.86 9.86 0 001.51 5.26l-.999 3.648 3.736-.979z"/></svg>');
}
.wa-ico-lg { width: 1.6rem; height: 1.6rem; }

/* =============================================================
   5. Splash
   ============================================================= */
.splash {
  position: fixed; inset: 0; z-index: var(--z-splash);
  display: grid; place-items: center;
  background: var(--bg);
  animation: splashSafety .01s 4.5s forwards;
}
.splash.is-out { animation: splashOut .9s var(--ease-out) forwards; }
.splash-mark { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.splash-cm {
  font-family: var(--serif); font-weight: 600; font-size: 2.4rem; color: #1a0f04;
  width: 4.6rem; height: 4.6rem; display: grid; place-items: center;
  background: var(--accent); border-radius: 14px;
  animation: splashPulse 1.6s var(--ease-soft) infinite;
}
.splash-word { font-family: var(--mono); font-size: .72rem; letter-spacing: .35em; color: var(--cream-3); }
.splash-logo-img { width: clamp(220px, 62vw, 320px); height: auto; display: block; animation: splashPulse 1.6s var(--ease-soft) infinite; }
@keyframes splashPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; clip-path: inset(0 0 100% 0); } }
@keyframes splashSafety { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* =============================================================
   6. Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: var(--z-nav);
  transition: background-color .4s var(--ease-out), backdrop-filter .4s var(--ease-out), border-color .4s var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(11,20,34,.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; height: var(--nav-h);
  padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; }
.nav-cm {
  font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: #1a0f04;
  width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--accent); border-radius: 8px;
}
.nav-name { font-weight: 700; color: var(--cream); letter-spacing: -0.01em; }
.nav-logo-img { height: 2.6rem; width: auto; display: block; }
.footer-logo-img { height: 3rem; width: auto; display: block; }
.nav-links { display: none; gap: 2rem; }
.nav-links a { color: var(--cream-2); font-size: .95rem; position: relative; padding: .3rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta { display: none; }

.nav-burger { display: inline-flex; flex-direction: column; gap: 5px; padding: .6rem; }
.nav-burger span { width: 24px; height: 2px; background: var(--cream); transition: transform .3s var(--ease-out), opacity .3s; }
.nav[data-open] .nav-burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav[data-open] .nav-burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: 100%; inset-inline: 0;
  background: rgba(11,20,34,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s linear;
}
.nav[data-open] .nav-mobile {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: none;
}
.nav[data-open] {
  background: rgba(11,20,34,.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.nav-mobile-inner {
  display: flex; flex-direction: column; gap: .25rem;
  padding: 1rem var(--gutter) 1.6rem;
}
.nav-mobile a:not(.btn) { padding: .9rem .25rem; color: var(--cream-2); border-bottom: 1px solid var(--line-2); }
.nav-mobile .btn { margin-top: 1rem; justify-content: center; }

/* =============================================================
   7. Hero
   ============================================================= */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.04); }
.hero-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(75deg, rgba(11,20,34,.96) 0%, rgba(11,20,34,.78) 45%, rgba(11,20,34,.4) 100%),
    linear-gradient(0deg, rgba(11,20,34,.9) 0%, transparent 40%);
}
.hero-mesh {
  position: absolute; inset: -20%; z-index: 1; pointer-events: none; opacity: .55;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(240,131,42,.30), transparent 70%),
    radial-gradient(45% 45% at 80% 65%, rgba(29,48,80,.6), transparent 70%),
    conic-gradient(from var(--mesh-angle) at 60% 40%, rgba(216,162,74,.12), transparent 40%);
  filter: blur(70px);
  animation: meshSpin 22s linear infinite;
}
@keyframes meshSpin { to { --mesh-angle: 360deg; } }
.hero-grain {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}
.hero-inner { position: relative; z-index: 3; max-width: var(--container); margin: 0 auto; padding: calc(var(--nav-h) + 2rem) var(--gutter) 6rem; width: 100%; }
.hero-meta { font-family: var(--mono); font-size: .8rem; letter-spacing: .12em; color: var(--cream-2); display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(240,131,42,.6); animation: pingDot 2.4s var(--ease-out) infinite; }
@keyframes pingDot { 0% { box-shadow: 0 0 0 0 rgba(240,131,42,.5); } 70%,100% { box-shadow: 0 0 0 10px rgba(240,131,42,0); } }
.hero-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.2rem, 7vw, 5.6rem); line-height: 1.05; letter-spacing: -0.02em;
  color: var(--cream); max-width: 16ch;
  overflow-wrap: break-word;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub { margin-top: 1.6rem; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--cream-2); max-width: 46ch; }
.hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 14px; display: grid; place-items: start center; padding-top: 7px; }
.hero-scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--accent); animation: scrollDot 1.8s var(--ease-soft) infinite; }
@keyframes scrollDot { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* =============================================================
   8. Concept
   ============================================================= */
.concept { max-width: var(--container); margin: 0 auto; padding: clamp(5rem, 12vw, 9rem) var(--gutter); }
.concept-head { max-width: 56ch; }
.concept-lede { margin-top: 1.4rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--cream-2); }
.concept-figure { margin: 3.5rem 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--line); }
.concept-figure img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.08); transition: transform 1.2s var(--ease-out); }
.concept-figure:hover img { transform: scale(1.04); }

.pillars { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.pillar { padding: 2rem; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; }
.pillar-mark { display: block; width: 34px; height: 3px; border-radius: 2px; background: var(--accent); margin-bottom: 1.4rem; }
.pillar h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; color: var(--cream); margin-bottom: .7rem; }
.pillar p { color: var(--cream-2); font-size: .98rem; }

.stats { display: grid; grid-template-columns: 1fr; gap: 1.5rem; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: .3rem; }
.stat-num { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--accent); line-height: 1; }
.stat-label { color: var(--cream-3); font-size: .95rem; }

/* =============================================================
   9. Showcase (services)
   ============================================================= */
.showcase { position: relative; padding: clamp(4rem, 10vw, 7rem) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.showcase-head { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); margin-bottom: 2.6rem; }
.showcase-hint { font-family: var(--mono); font-size: .8rem; color: var(--cream-3); margin-top: 1rem; }
.showcase-viewport { overflow-x: auto; overflow-y: visible; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.showcase-viewport::-webkit-scrollbar { display: none; }
.showcase.is-pinned .showcase-viewport { overflow: visible; scroll-snap-type: none; }
.showcase-track { display: flex; gap: 1.5rem; padding-inline: var(--gutter); width: max-content; }

.scard {
  scroll-snap-align: start; flex: 0 0 auto; width: min(86vw, 360px);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
  transform-style: preserve-3d; transition: box-shadow .5s var(--ease-out), border-color .5s var(--ease-out);
  position: relative;
}
.scard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease-out);
  background: radial-gradient(40% 40% at var(--mx,50%) var(--my,30%), rgba(240,131,42,.18), transparent 70%);
}
.scard:hover { box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); border-color: rgba(240,131,42,.4); }
.scard:hover::after { opacity: 1; }
.scard-img { aspect-ratio: 16 / 11; overflow: hidden; }
.scard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.scard:hover .scard-img img { transform: scale(1.06); }
.scard-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; transform: translateZ(40px); }
.scard-idx { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; color: var(--cream-3); margin-bottom: .7rem; }
.scard h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; color: var(--cream); margin-bottom: .6rem; }
.scard-body > p { color: var(--cream-2); font-size: .95rem; margin-bottom: 1rem; }
.scard ul { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1.4rem; }
.scard li { position: relative; padding-left: 1.3rem; font-size: .9rem; color: var(--cream-2); }
.scard li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.scard-cta { margin-top: auto; font-family: var(--mono); font-size: .85rem; letter-spacing: .05em; color: var(--accent); transition: gap .3s var(--ease-out), color .3s; display: inline-flex; gap: .4rem; }
.scard-cta:hover { color: #ffa04d; }

/* =============================================================
   9b. Reputación y testimonios
   ============================================================= */
.reviews { position: relative; padding: clamp(4rem, 10vw, 7rem) 0; border-top: 1px solid var(--line); }
.reviews-head { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); margin-bottom: 2.6rem; }
.reviews-rating { display: flex; align-items: baseline; gap: .9rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.reviews-rating .stars { color: var(--accent); font-size: 1.55rem; letter-spacing: .15rem; line-height: 1; }
.reviews-sub { font-family: var(--mono); font-size: .85rem; letter-spacing: .07em; color: var(--cream-2); }
.reviews-viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-block: .4rem 1.2rem; }
.reviews-viewport::-webkit-scrollbar { display: none; }
.reviews-track { display: flex; gap: 1.5rem; padding-inline: var(--gutter); width: max-content; }
.rcard {
  scroll-snap-align: start; flex: 0 0 auto; width: min(82vw, 340px);
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
  transition: border-color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.rcard:hover { border-color: rgba(240,131,42,.4); box-shadow: 0 30px 60px -28px rgba(0,0,0,.7); }
.rcard-stars { color: var(--accent); font-size: 1rem; letter-spacing: .12rem; line-height: 1; }
.rcard-quote { color: var(--cream); font-size: 1.02rem; line-height: 1.55; flex: 1; }
.rcard-author { display: flex; align-items: center; gap: .8rem; }
.rcard-avatar { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: rgba(240,131,42,.15); color: var(--accent); font-family: var(--serif); font-weight: 600; font-size: .92rem; }
.rcard-name { display: block; color: var(--cream); font-weight: 600; font-size: .95rem; }
.rcard-meta { display: block; color: var(--cream-3); font-size: .82rem; }

/* =============================================================
   10. Diagnóstico
   ============================================================= */
.diag { position: relative; overflow: hidden; padding: clamp(5rem, 12vw, 8rem) var(--gutter); }
.diag-mesh {
  position: absolute; inset: -30%; z-index: 0; pointer-events: none; opacity: .7;
  background: radial-gradient(40% 40% at 75% 30%, rgba(240,131,42,.18), transparent 70%), radial-gradient(40% 50% at 20% 80%, rgba(29,48,80,.7), transparent 70%);
  filter: blur(80px);
}
.diag-inner { position: relative; z-index: 1; max-width: var(--container); margin: 0 auto; display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
.diag-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; color: var(--cream); }
.diag-title em { font-style: italic; color: var(--accent); }
.diag-text { margin: 1.4rem 0 2.2rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--cream-2); max-width: 46ch; }
.diag-list { display: flex; flex-direction: column; gap: 1.2rem; }
.diag-list li { display: flex; align-items: flex-start; gap: .9rem; font-size: 1.05rem; color: var(--cream); padding-bottom: 1.2rem; border-bottom: 1px solid var(--line); }
.diag-txt { flex: 1; line-height: 1.5; }
.diag-txt strong { font-weight: 700; }
.diag-check { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: rgba(240,131,42,.15); position: relative; margin-top: .15rem; }
.diag-check::after { content: ""; position: absolute; left: 9px; top: 5px; width: 5px; height: 9px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* =============================================================
   11. Warranty
   ============================================================= */
.warranty { max-width: var(--container); margin: 0 auto; padding: clamp(5rem, 12vw, 8rem) var(--gutter); }
.warranty-head { margin-bottom: 2.6rem; }
.warranty-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg-2); }
.wrow { display: flex; align-items: flex-start; gap: 1.4rem; padding: 2rem; border-bottom: 1px solid var(--line); }
.wrow:last-child { border-bottom: 0; }
.wrow-mark { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: 10px; background: rgba(240,131,42,.12); position: relative; }
.wrow-mark::after { content: ""; position: absolute; left: 16px; top: 9px; width: 6px; height: 12px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.wrow h3 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; color: var(--cream); margin-bottom: .35rem; }
.wrow p { color: var(--cream-2); }

/* =============================================================
   12. Contact
   ============================================================= */
.contact { max-width: var(--container); margin: 0 auto; padding: clamp(4rem, 10vw, 7rem) var(--gutter) clamp(5rem,12vw,8rem); display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: stretch; }
.contact-text { margin: 1.2rem 0 2rem; color: var(--cream-2); font-size: 1.1rem; max-width: 42ch; }
.contact-info { display: flex; flex-direction: column; gap: 1.4rem; margin-bottom: 2.2rem; }
.contact-info li { display: flex; flex-direction: column; gap: .2rem; }
.ci-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-3); }
.ci-value { color: var(--cream); font-size: 1.1rem; }
.ci-link { color: var(--accent); width: max-content; border-bottom: 1px solid rgba(240,131,42,.4); }
.ci-link:hover { color: #ffa04d; }
.contact-map { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); min-height: 360px; }
.contact-map iframe { width: 100%; flex: 1; min-height: 320px; border: 0; filter: grayscale(.3) contrast(1.05); }
.map-fallback { padding: .9rem 1.2rem; text-align: center; font-size: .9rem; color: var(--cream-2); background: var(--bg-2); border-top: 1px solid var(--line); }
.map-fallback:hover { color: var(--accent); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-inner { max-width: var(--container); margin: 0 auto; padding: 3.5rem var(--gutter); display: grid; gap: 1.6rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; }
.footer-name { display: block; font-weight: 700; color: var(--cream); }
.footer-tag { display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.footer-note { color: var(--cream-2); max-width: 50ch; }
.footer-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; color: var(--cream-3); font-size: .9rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.footer-meta a:hover { color: var(--accent); }

/* =============================================================
   14. Floating WhatsApp
   ============================================================= */
.fab {
  position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: var(--z-fab);
  display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.2rem;
  background: #25d366; color: #04361a; font-weight: 700; border-radius: 999px;
  box-shadow: 0 16px 36px -12px rgba(37,211,102,.7); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.fab:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 22px 44px -12px rgba(37,211,102,.8); }
.fab-text { display: none; }

/* =============================================================
   15. Reveal (progressive enhancement — visible by default)
   ============================================================= */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
/* never let split/reveal combos hide content */
[data-reveal][data-split] { opacity: 1; transform: none; }

/* =============================================================
   16. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .fab-text { display: inline; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .diag-inner { grid-template-columns: 1.05fr .95fr; }
  .concept-figure { aspect-ratio: 16 / 7; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-burger, .nav-mobile { display: none; }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .contact { grid-template-columns: 1fr 1fr; }
  .scard { width: 380px; }
}
@media (min-width: 1280px) {
  .scard { width: 400px; }
}

/* =============================================================
   17. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh, .diag-mesh { animation: none; }
  .splash-cm, .splash-logo-img { animation: none; }
  .hero-meta .dot { animation: none; }
  .hero-scroll span { animation: none; }
  [data-reveal], .js [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
