/* =============================================================
   ICAS LTDA — Premium Metal (azul metálico + plata)
   Misma línea visual de tarjeta, landing QR y brochure.
   ============================================================= */
:root {
  --bg0: #061334;
  --bg1: #0b2050;
  --bg2: #1d4787;
  --steel: #2c5fa8;
  --silver: #e9edf3;
  --silver-2: #b9c3d1;
  --silver-3: #8d97a6;
  --ink: #ffffff;
  --ink-soft: rgba(226,236,252,.86);
  --ink-mute: rgba(206,222,250,.68);
  --accent: #9cc0ff;
  --line: rgba(200,220,255,.14);
  --line-soft: rgba(200,220,255,.08);
  --glass: linear-gradient(150deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.025) 100%);
  --metal: linear-gradient(150deg, #f6f8fb 0%, #c9d2de 45%, #eef2f7 60%, #aab5c4 100%);

  --display: "Archivo", "Arial", sans-serif;
  --sans: "Archivo", Helvetica, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "Archivo", Helvetica, Arial, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --r: 16px;
  --nav-h: 132px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; background: var(--bg0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 300;
  color: var(--ink); background: var(--bg0);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; overscroll-behavior-y: none;
}
img, svg, video { 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; }
a:hover { color: #fff; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 400; }
ul { list-style: none; padding: 0; }
::selection { background: var(--silver); color: var(--bg1); }
:focus-visible { outline: 2px solid var(--silver); outline-offset: 3px; }
.mono { font-family: var(--mono); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; padding: .7rem 1.2rem;
  background: var(--silver); color: var(--bg1); z-index: 9999; font-weight: 600;
  font-family: var(--mono); font-size: .85rem; border-radius: 8px; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   Fondo metálico animado (fijo detrás de todo)
   ============================================================= */
.bg-metal { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(168deg, #0b2050 0%, #1d4787 22%, #0a1c46 46%, #2c5fa8 62%, #0b2050 82%, #061334 100%);
}
.bg-metal::before { /* metal cepillado */
  content: ""; position: absolute; inset: -50%;
  background: repeating-linear-gradient(100deg, rgba(255,255,255,.018) 0 1px, transparent 1px 4px);
  transform: rotate(-4deg);
}
.bg-metal::after { /* grano */
  content: ""; position: absolute; inset: 0; opacity: .22; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.bg-glow { position: absolute; border-radius: 50%; filter: blur(60px); will-change: transform; }
.bg-glow.g1 { width: 70vw; height: 55vw; left: 40%; top: -20%; background: radial-gradient(closest-side, rgba(120,170,255,.32), transparent); animation: drift1 26s ease-in-out infinite alternate; }
.bg-glow.g2 { width: 55vw; height: 55vw; left: -20%; top: 45%; background: radial-gradient(closest-side, rgba(70,120,220,.30), transparent); animation: drift2 32s ease-in-out infinite alternate; }
.bg-glow.g3 { width: 40vw; height: 40vw; right: -10%; bottom: -15%; background: radial-gradient(closest-side, rgba(220,232,255,.14), transparent); animation: drift1 38s ease-in-out infinite alternate-reverse; }
.bg-ring { position: absolute; border-radius: 50%; }
.bg-ring.r1 { width: 620px; height: 620px; left: -220px; top: -160px; border: 1px dashed rgba(200,220,255,.13); animation: spin 120s linear infinite; }
.bg-ring.r2 { width: 460px; height: 460px; right: -160px; top: 38%; border: 1px solid rgba(200,220,255,.09); }
.bg-ring.r3 { width: 900px; height: 900px; right: -420px; bottom: -520px; border: 1px dashed rgba(200,220,255,.08); animation: spin 180s linear infinite reverse; }
.bg-sheen { position: absolute; left: 0; right: 0; height: 1px; top: 30%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  animation: sheenY 14s ease-in-out infinite; opacity: .5; }
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-8vw, 6vh) scale(1.15); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(10vw, -8vh) scale(.9); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sheenY { 0%,100% { top: 18%; opacity: 0; } 20% { opacity: .5; } 50% { top: 82%; opacity: .35; } 80% { opacity: 0; } }
@keyframes sheenX { 0% { transform: translateX(-120%); } 55%,100% { transform: translateX(320%); } }

/* ---------- Utilities ---------- */
.container { max-width: 1320px; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 720px)  { .container { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .container { padding-inline: 3.5rem; } }

.section { position: relative; padding-block: 5rem; }
.section::before { /* filete metálico entre secciones */
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(1200px, 90%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(233,237,243,.35), transparent);
}
.section-alt { background: linear-gradient(180deg, rgba(6,19,52,.35), rgba(6,19,52,.15)); }
@media (min-width: 960px) { .section { padding-block: 7.5rem; } }

.section-head { max-width: 760px; margin-bottom: 3rem; }
.section-num {
  display: inline-flex; align-items: center; gap: .7rem; color: var(--silver-2);
  font-size: .78rem; font-weight: 600; letter-spacing: .22em; margin-bottom: 1rem;
}
.section-num::after { content: ""; width: 38px; height: 1px; background: linear-gradient(90deg, var(--silver), transparent); }
.section-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 300; margin-bottom: .8rem;
  background: linear-gradient(180deg, #ffffff 30%, #b9c3d1 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-lede { color: var(--ink-mute); font-size: 1.08rem; max-width: 56ch; }
.label { color: var(--silver-2); font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; margin-bottom: .7rem; }

.btn {
  position: relative; font-weight: 500; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.8rem; border-radius: 12px;
  font-family: var(--mono); font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s, color .2s;
}
.btn-primary {
  background: var(--metal); color: var(--bg1);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 12px 30px rgba(2,10,30,.45);
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.9), transparent);
  transform: translateX(-120%); animation: sheenX 5s ease-in-out 1.5s infinite;
}
.btn-primary:hover { color: var(--bg1); transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 18px 40px rgba(2,10,30,.55); }
.btn-ghost {
  background: var(--glass); color: #fff; border: 1px solid rgba(233,237,243,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(233,237,243,.6); background: rgba(255,255,255,.12); }
.btn:active { transform: none; transition-duration: .1s; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-soft), transform .9s var(--ease-soft); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================================
   Nav
   ============================================================= */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 500; height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease-out), border-color .35s var(--ease-out), height .35s var(--ease-out);
}
.nav.is-scrolled {
  height: 88px;
  background: rgba(8,24,62,.72); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}
.nav-inner { max-width: 1320px; margin-inline: auto; padding-inline: 1.25rem; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
@media (min-width: 720px)  { .nav-inner { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .nav-inner { padding-inline: 3.5rem; } }
.nav-brand { display: flex; align-items: center; }
.nav-logo { height: 96px; width: auto; filter: drop-shadow(0 2px 10px rgba(0,0,0,.4)); transition: height .35s var(--ease-out); }
.nav.is-scrolled .nav-logo { height: 58px; }
@media (max-width: 539px) { .nav-logo { height: 70px; } .nav.is-scrolled .nav-logo { height: 50px; } }
.nav-links { display: none; align-items: center; gap: 2rem; }
@media (min-width: 1240px) { .nav-links { display: flex; } }
.nav-link { position: relative; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); padding-block: .3rem; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: linear-gradient(90deg, transparent, #fff, transparent); transform: scaleX(0); transition: transform .45s var(--ease-out); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-cta { display: none; }
@media (min-width: 720px) { .nav-cta { display: inline-flex; padding: .75rem 1.3rem; } }
.nav-burger { display: grid; gap: 5px; width: 32px; height: 24px; align-content: center; }
@media (min-width: 1240px) { .nav-burger { display: none; } }
.nav-burger span { height: 2px; background: var(--silver); transition: transform .3s, opacity .3s; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  position: fixed; inset: 0; z-index: 490; color: #fff;
  background: linear-gradient(168deg, #0b2050 0%, #1d4787 40%, #0a1c46 100%);
  display: flex; flex-direction: column; gap: 2.5rem; padding: calc(var(--nav-h) + .5rem) 2rem 2rem;
  overflow-y: auto; overscroll-behavior: contain;
  clip-path: inset(0 0 100% 0); transition: clip-path .6s var(--ease-soft);
}
.nav-mobile > nav { margin-top: auto; }
.nav-mobile > .nav-mobile-foot { margin-bottom: auto; }
.nav-mobile[data-open="true"] { clip-path: inset(0); }
.nav-mobile nav { display: flex; flex-direction: column; gap: 1.2rem; }
.nav-mobile nav a { font-family: var(--display); font-size: 2rem; line-height: 1.2; font-weight: 300;
  background: linear-gradient(180deg, #fff 30%, #b9c3d1); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-mobile-foot { display: flex; flex-direction: column; gap: .6rem; font-family: var(--mono); font-size: .9rem; color: var(--ink-mute); }

/* =============================================================
   Hero — mosaico de fotos en movimiento
   ============================================================= */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: clip; isolation: isolate; }
.hero-mosaic {
  position: absolute; z-index: -2; top: -20%; bottom: -20%; right: -6%; width: 78%;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  transform: rotate(-8deg);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 34%, #000 100%);
}
.mosaic-col { overflow: hidden; }
.mosaic-track { display: flex; flex-direction: column; gap: 14px; animation: mosaicUp 70s linear infinite; will-change: transform; }
.hero-mosaic.is-paused .mosaic-track { animation-play-state: paused; }
.mosaic-col:nth-child(2) .mosaic-track { animation-name: mosaicDown; animation-duration: 85s; }
.mosaic-col:nth-child(3) .mosaic-track { animation-duration: 60s; }
.mosaic-col:nth-child(4) .mosaic-track { animation-name: mosaicDown; animation-duration: 78s; }
.mosaic-track img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px;
  border: 1px solid rgba(233,237,243,.18);
  box-shadow: 0 18px 40px rgba(2,10,30,.5);
  filter: saturate(.9) contrast(1.05);
}
.mosaic-track img:nth-child(3n+2) { aspect-ratio: 1 / 1; }
.mosaic-track img:nth-child(4n) { aspect-ratio: 4 / 5; }
@keyframes mosaicUp { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes mosaicDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hero-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,26,68,.96) 0%, rgba(8,26,68,.82) 32%, rgba(8,26,68,.25) 62%, rgba(8,26,68,.35) 100%),
    linear-gradient(180deg, rgba(6,19,52,.55) 0%, transparent 25%, transparent 70%, rgba(6,19,52,.9) 100%);
}
@media (max-width: 959px) {
  .hero { align-items: flex-end; }
  .hero-mosaic { width: 150%; right: -25%; grid-template-columns: repeat(3, 1fr); -webkit-mask-image: none; mask-image: none; }
  .mosaic-col:nth-child(4) { display: none; }
  .hero-shade { background: linear-gradient(180deg, rgba(8,26,68,.55) 0%, rgba(8,26,68,.55) 35%, rgba(8,26,68,.94) 72%, rgba(6,19,52,1) 100%); }
}
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 1320px; margin-inline: auto; padding: calc(var(--nav-h) + 3rem) 1.25rem 5rem; }
@media (min-width: 720px)  { .hero-inner { padding-inline: 2.5rem; } }
@media (min-width: 1280px) { .hero-inner { padding-inline: 3.5rem; } }
.hero-rule { width: min(420px, 100%); height: 2px; position: relative; overflow: hidden; margin-bottom: 1.8rem;
  background: linear-gradient(90deg, rgba(233,237,243,.05), rgba(233,237,243,.4), rgba(233,237,243,.05)); }
.hero-rule::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 38%;
  background: linear-gradient(90deg, transparent, #fff, transparent); animation: sheenX 5.5s ease-in-out 1.2s infinite; }
.hero-logo { position: relative; width: clamp(260px, 40vw, 600px); margin: 0 0 1.6rem -1%; }
.hero-logo::before { content: ""; position: absolute; inset: -18% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150,190,255,.28), transparent 72%); animation: logoGlow 6s ease-in-out infinite alternate; }
.hero-logo img { width: 100%; height: auto; filter: invert(1) brightness(.97) contrast(1.04) saturate(.5) drop-shadow(0 6px 24px rgba(0,0,0,.35)); mix-blend-mode: screen; }
@keyframes logoGlow { from { opacity: .55; transform: scale(.96); } to { opacity: 1; transform: scale(1.04); } }
.hero-inner .kicker { display: flex; align-items: center; gap: .8rem; font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(206,222,250,.78); margin-bottom: 1.4rem; font-weight: 500; }
.hero-inner .kicker span { width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--silver)); }
.hero-inner .kicker span:last-child { background: linear-gradient(90deg, var(--silver), transparent); }
.hero-title {
  font-family: var(--display); font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(2.5rem, 6.2vw, 5.1rem); line-height: 1.02; max-width: 15ch;
  background: linear-gradient(180deg, #ffffff 35%, #aab5c4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,.35));
}
.hero-sub { margin-top: 1.1rem; font-size: 1.05rem; max-width: 46ch; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-scroll { position: absolute; right: 1.25rem; bottom: 1.5rem; z-index: 1; color: var(--ink-mute); font-size: .7rem; letter-spacing: .14em; writing-mode: vertical-rl; }
@media (min-width: 720px) { .hero-scroll { right: 2.5rem; } }
@media (max-width: 539px) { .hero-scroll { display: none; } }

.hero-anim > * { animation: heroUp 1s var(--ease-out) both; }
.hero-anim > *:nth-child(2) { animation-delay: .12s; }
.hero-anim > *:nth-child(3) { animation-delay: .24s; }
.hero-anim > *:nth-child(4) { animation-delay: .36s; }
.hero-anim > *:nth-child(5) { animation-delay: .48s; }
.hero-anim > *:nth-child(6) { animation-delay: .6s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* =============================================================
   Marquee
   ============================================================= */
.marquee {
  position: relative; overflow: hidden; padding-block: 1rem;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border-block: 1px solid var(--line);
}
.marquee-track { display: inline-flex; gap: 1.4rem; white-space: nowrap; will-change: transform; font-family: var(--mono); font-size: .8rem; letter-spacing: .2em; font-weight: 600; color: var(--silver); }
.marquee-track span:nth-child(even) { color: var(--silver-3); }

/* =============================================================
   Nosotros
   ============================================================= */
.about-grid { display: grid; gap: 2.5rem; margin-bottom: 3.5rem; }
@media (min-width: 960px) { .about-grid { grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; } }
.about-figure { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); border: 1px solid rgba(233,237,243,.2); box-shadow: 0 30px 60px rgba(2,10,30,.5); }
.about-figure img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 1.2rem; }
.about-block { padding: 2rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.about-block p { color: var(--ink-soft); font-size: 1.05rem; max-width: 60ch; }

.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 720px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-item { position: relative; overflow: hidden; padding: 2rem 1.6rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .4s var(--ease-out), border-color .3s; }
.why-item::before { content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); }
.why-item:hover { transform: translateY(-4px); border-color: rgba(233,237,243,.35); }
.why-num { display: block; color: var(--silver-2); font-size: .8rem; letter-spacing: .2em; margin-bottom: .9rem; }
.why-item h4 { font-weight: 500; font-size: 1.25rem; margin-bottom: .5rem; }
.why-item p { color: var(--ink-mute); font-size: .92rem; }

/* =============================================================
   Servicios
   ============================================================= */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px)  { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  position: relative; overflow: hidden; padding: 1rem 1rem 1.8rem; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  transition: transform .45s var(--ease-out), border-color .3s, box-shadow .45s;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(233,237,243,.38); box-shadow: 0 30px 60px rgba(2,10,30,.45); }
.service-img { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 1.4rem; border-radius: 14px; filter: saturate(.75); transition: filter .5s; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-soft); }
.service-card:hover .service-img { filter: saturate(1); }
.service-card:hover .service-img img { transform: scale(1.06); }
.service-num { position: absolute; top: 1.7rem; right: 1.7rem; font-size: .78rem; letter-spacing: .14em; color: var(--bg1); font-weight: 600; background: var(--metal); padding: .35rem .6rem; border-radius: 8px; }
.service-card h3 { font-weight: 500; font-size: 1.4rem; margin: 0 .6rem .6rem; }
.service-card p { color: var(--ink-mute); font-size: .95rem; margin-inline: .6rem; }
.new-badge { display: inline-block; margin: 0 .6rem .9rem; background: var(--metal); color: var(--bg1); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .65rem; border-radius: 6px; font-weight: 600; }
.service-card-new { border-color: rgba(233,237,243,.45); box-shadow: 0 0 0 1px rgba(233,237,243,.12) inset, 0 20px 50px rgba(2,10,30,.35); }
@media (min-width: 1280px) {
  .service-card-new { grid-column: 1 / -1; display: grid; grid-template-columns: 420px 1fr; gap: 2rem; align-items: center; padding: 1rem 2rem 1rem 1rem; }
  .service-card-new .service-img { aspect-ratio: 16 / 10; margin-bottom: 0; height: 100%; grid-row: span 4; }
  .service-card-new .service-num { position: static; justify-self: start; margin: 0 .6rem .2rem; }
  .service-card-new h3 { font-size: 2rem; }
}

/* =============================================================
   Proyectos — mosaico
   ============================================================= */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: .8rem; }
@media (min-width: 720px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 200px; } }
@media (min-width: 1280px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; } }
.gallery-item { position: relative; overflow: hidden; display: block; width: 100%; height: 100%; border-radius: 14px; border: 1px solid var(--line); }
.gallery-item:nth-child(7n+1) { grid-row: span 2; grid-column: span 2; }
.gallery-item:nth-child(7n+4) { grid-row: span 2; }
.gallery-item:nth-child(7n+6) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.9); transform: scale(1.01); transition: transform .9s var(--ease-soft), filter .6s; }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6,19,52,.75)); opacity: .7; transition: opacity .4s; }
.gallery-item:hover img { filter: none; transform: scale(1.07); }
.gallery-cat { position: absolute; z-index: 1; left: .8rem; bottom: .8rem; background: rgba(8,24,62,.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(233,237,243,.25); color: #fff; font-size: .64rem; padding: .35rem .6rem; letter-spacing: .14em; text-transform: uppercase; border-radius: 6px; }
.gallery-item:hover .gallery-cat { background: var(--metal); color: var(--bg1); border-color: transparent; }

.lightbox { position: fixed; inset: 0; z-index: 900; background: rgba(6,19,52,.94); backdrop-filter: blur(10px); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .35s var(--ease-out); padding: 2rem; }
.lightbox[data-open="true"] { opacity: 1; pointer-events: auto; }
.lightbox-img { max-width: min(92vw, 1100px); max-height: 80vh; object-fit: contain; border-radius: 12px; border: 1px solid rgba(233,237,243,.25); }
.lightbox-caption { color: var(--ink-soft); font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; margin-top: 1rem; text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; color: #fff; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(233,237,243,.35); display: grid; place-items: center; font-size: 1.4rem; background: rgba(255,255,255,.06); transition: background .2s, color .2s; }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-nav:hover { background: var(--silver); color: var(--bg1); }
.lightbox-prev { left: 1rem; } .lightbox-next { right: 1rem; }
@media (max-width: 720px) { .lightbox-nav { display: none; } }

/* =============================================================
   Videos
   ============================================================= */
.video-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width: 720px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-slot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); }
.video-slot-poster { width: 100%; height: 100%; object-fit: cover; filter: saturate(.6) brightness(.5); transition: transform .9s var(--ease-soft); }
.video-slot:hover .video-slot-poster { transform: scale(1.05); }
.video-slot-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; text-align: center; padding: 1rem; }
.video-play { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: var(--bg1); font-size: 1.05rem; background: var(--metal); box-shadow: 0 10px 30px rgba(2,10,30,.5); transition: transform .3s; }
.video-slot:hover .video-play { transform: scale(1.08); }
.video-slot-label { color: #fff; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.video-slot-badge { color: var(--ink-soft); border: 1px solid rgba(233,237,243,.3); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px; }

/* =============================================================
   Clientes — placas metálicas
   ============================================================= */
.stats-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.stat { flex: 1 1 220px; padding: 1.6rem 1.8rem; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.stat-num { display: block; font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 300; line-height: 1;
  background: linear-gradient(180deg, #fff 30%, #9aa6b8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { display: block; margin-top: .6rem; color: var(--ink-mute); font-size: .9rem; max-width: 24ch; }
.stat-seal { display: flex; align-items: center; gap: 1rem; }
.stat-seal-icon { color: var(--silver); flex-shrink: 0; }
.stat-seal .stat-label { margin-top: 0; }

.clients-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 640px)  { .clients-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px)  { .clients-grid { grid-template-columns: repeat(6, 1fr); } }
.client-logo {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 1.4rem 1.1rem; min-height: 96px;
  border-radius: 12px; background: var(--metal);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.12) inset, 0 12px 26px rgba(2,10,30,.35);
  transition: transform .35s var(--ease-out);
}
.client-logo::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); transform: translateX(-160%); transition: transform .9s var(--ease-soft); }
.client-logo:hover { transform: translateY(-3px); }
.client-logo:hover::after { transform: translateX(320%); }
.client-name { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1; }
.client-logo img { max-width: 100%; max-height: 50px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }

/* =============================================================
   Equipo
   ============================================================= */
.team-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .team-grid { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.team-photo { overflow: hidden; aspect-ratio: 4/3; border-radius: var(--r); border: 1px solid rgba(233,237,243,.2); box-shadow: 0 30px 60px rgba(2,10,30,.5); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-text p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 1.1rem; }
.team-text p:last-child { margin-bottom: 0; color: #fff; font-weight: 600; }

/* =============================================================
   Contacto
   ============================================================= */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info { display: flex; flex-direction: column; padding: 1rem 2rem 2rem; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); transition: padding-left .25s var(--ease-out); }
a.contact-row:hover { padding-left: .4rem; }
.contact-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); }
.contact-value { font-size: 1.05rem; font-weight: 500; text-align: right; }
.contact-cta-buttons { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.contact-cta-buttons .btn { flex: 1 1 auto; }
.contact-map { min-height: 320px; overflow: hidden; border-radius: 20px; border: 1px solid rgba(233,237,243,.2); }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; filter: grayscale(.4) contrast(1.05) brightness(.92); }

/* =============================================================
   Footer
   ============================================================= */
.footer { position: relative; background: linear-gradient(180deg, rgba(6,19,52,.4), rgba(4,12,34,.95)); color: var(--ink-soft); border-top: 1px solid var(--line); }
.footer-inner { padding-block: 3.5rem; display: grid; gap: 2.5rem; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
.footer-brand { display: flex; flex-direction: column; gap: .8rem; }
.footer-logo { width: 200px; height: auto; }
.footer-brand p { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-bottom { padding-block: 1.4rem; display: flex; flex-wrap: wrap; gap: .8rem 1.5rem; justify-content: space-between; font-size: .76rem; color: rgba(206,222,250,.5); }
.footer-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-legal a, .footer-legal button {
  font-size: .76rem; color: rgba(206,222,250,.5); text-decoration: underline; text-underline-offset: 2px;
  background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer;
}
.footer-legal a:hover, .footer-legal button:hover { color: #fff; }

/* =============================================================
   Legal pages (Privacidad / Términos / Cookies)
   ============================================================= */
.legal-hero { padding-top: calc(var(--nav-h) + 3rem); }
.legal-updated { display: inline-block; margin-top: .9rem; font-size: .78rem; letter-spacing: .06em; color: var(--ink-mute); }
.legal-body { max-width: 74ch; }
.legal-body h2 { font-size: 1.3rem; margin-top: 2.6rem; margin-bottom: .8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.legal-body h2:first-child, .legal-body > h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body p { color: var(--ink-soft); margin-bottom: 1rem; max-width: 68ch; }
.legal-body ul { padding-left: 1.3rem; margin-bottom: 1rem; color: var(--ink-soft); }
.legal-body li { margin-bottom: .5rem; }
.legal-body li::marker { color: var(--accent); }
.legal-body strong { color: #fff; font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-body a:hover { color: #fff; }
.legal-note { margin-top: 1.4rem; padding: 1.1rem 1.3rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--line); font-size: .86rem; color: var(--ink-mute); max-width: 68ch; }
.legal-back { display: inline-flex; align-items: center; gap: .5rem; margin-top: 3rem; font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; }
.legal-back:hover { color: #fff; }

/* =============================================================
   Cookie consent bar
   ============================================================= */
.cookie-bar {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 10000;
  max-width: 760px; margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem; border-radius: 14px;
  background: var(--bg1); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(2,10,30,.55);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.cookie-bar.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.cookie-bar p { flex: 1 1 320px; font-size: .86rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.cookie-bar p a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-bar-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.cookie-bar .btn { padding: .6rem 1.1rem; font-size: .76rem; }
@media (max-width: 560px) {
  .cookie-bar { flex-direction: column; align-items: stretch; }
  .cookie-bar p { flex: 0 0 auto; }
  .cookie-bar-actions { justify-content: flex-end; }
}

/* Policy list (Políticas corporativas / SST) */
.policy-list { display: flex; flex-direction: column; gap: 1rem; margin-block: 1.6rem 2.6rem; }
.policy-card {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.3rem 1.5rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--line);
}
.policy-card h3 { font-size: 1.02rem; font-weight: 500; margin-bottom: .3rem; }
.policy-card p { color: var(--ink-mute); font-size: .84rem; margin: 0; }
.policy-card a { flex-shrink: 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.policy-card a:hover { color: #fff; }
@media (max-width: 560px) { .policy-card { flex-direction: column; align-items: flex-start; } }
.policy-links-inline { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-bottom: 2rem; }
.policy-links-inline a { font-family: var(--mono); font-size: .82rem; color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.policy-links-inline a:hover { color: #fff; }

/* ---------- PQR form ---------- */
.pqr-form { display: flex; flex-direction: column; gap: 1.3rem; margin-top: 2rem; max-width: 62ch; }
.form-row { display: grid; gap: 1.3rem; }
@media (min-width: 640px) { .form-row-2 { grid-template-columns: 1fr 1fr; } }
.form-field { display: flex; flex-direction: column; gap: .5rem; }
.form-field label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-mute); }
.form-field input, .form-field select, .form-field textarea {
  font: inherit; font-size: .95rem; color: var(--ink); background: rgba(255,255,255,.05);
  border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1rem;
  transition: border-color .25s var(--ease-out);
}
.form-field select option { color: #0a1628; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; min-height: 140px; }
.form-consent { display: flex; align-items: flex-start; gap: .7rem; font-size: .86rem; color: var(--ink-soft); }
.form-consent input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.form-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-banner { padding: 1rem 1.3rem; border-radius: 12px; font-size: .9rem; margin-bottom: 1.8rem; max-width: 68ch; }
.form-banner-ok { background: rgba(120, 217, 160, .12); border: 1px solid rgba(120, 217, 160, .35); color: #bdf3d4; }
.form-banner-error { background: rgba(255, 120, 120, .12); border: 1px solid rgba(255, 120, 120, .35); color: #ffc9c9; }

/* Map consent placeholder (contact section) */
.map-consent { height: 100%; min-height: 320px; }
.map-consent-placeholder {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  gap: .9rem; height: 100%; min-height: 320px; padding: 1.8rem;
}
.map-consent-placeholder p { color: var(--ink-mute); font-size: .86rem; max-width: 36ch; margin: 0; }
.map-consent-placeholder .btn { font-size: .76rem; padding: .6rem 1.1rem; }

/* WhatsApp */
.whatsapp-float { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 400; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.12), 0 14px 30px rgba(2,10,30,.5); transition: transform .25s var(--ease-out); }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .mosaic-track, .bg-glow, .bg-ring, .bg-sheen, .btn-primary::after, .hero-rule::after { animation: none !important; }
  .marquee-track { animation-duration: 90s !important; }
}
