/* ==========================================================================
   ARTTIC S.A.S. — Software con Propósito
   Paleta de marca: azul marino #112E42 · profundo #020C15 · acero #588BAA · blanco
   ========================================================================== */

:root {
  --navy-950: #020c15;
  --navy-900: #06131f;
  --navy-850: #0a1b2a;
  --navy-800: #0d2334;
  --navy-700: #112e42;   /* azul de marca */
  --navy-600: #1a4260;
  --steel-500: #588baa;  /* acento de marca */
  --steel-400: #7aa7c4;
  --steel-300: #a9c8dc;
  --ice-100: #e8f1f7;
  --white: #ffffff;

  --text: #e6eef4;
  --text-muted: #9fb3c3;
  --text-dim: #6f8699;
  --line: rgba(169, 200, 220, 0.12);
  --line-strong: rgba(169, 200, 220, 0.24);
  --card: rgba(17, 46, 66, 0.35);
  --card-hover: rgba(17, 46, 66, 0.6);

  --font-display: "Michroma", "Eurostile", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy-950);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--steel-500); color: var(--white); }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(100% - 64px, var(--container)); } }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  padding: 10px 16px; background: var(--white); color: var(--navy-700); border-radius: 8px;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--steel-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.15; color: var(--white); font-weight: 600; }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
p { margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--steel-400);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4vw, 3rem); margin: 18px 0 18px; }
.section-lead { color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.125rem); }

.gradient-text {
  background: linear-gradient(100deg, var(--white) 0%, var(--steel-300) 45%, var(--steel-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: transform .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), color .35s;
  overflow: hidden; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
  background: var(--white); color: var(--navy-700);
  box-shadow: 0 10px 30px -10px rgba(88, 139, 170, 0.6);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(88,139,170,.35) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(88, 139, 170, 0.8); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line-strong); color: var(--white); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--steel-400); background: rgba(88,139,170,0.12); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .4s var(--ease), border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(2, 12, 21, 0.78);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-bear { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.brand:hover .brand-bear { transform: rotate(-8deg) scale(1.06); }
.brand-word { width: 118px; height: auto; }

.nav-links { display: none; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  position: relative; display: block; padding: 8px 14px; font-size: 0.92rem; color: var(--text-muted);
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 1px;
  background: var(--steel-400); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.03);
}
.lang-switch button {
  border: 0; background: transparent; color: var(--text-dim); padding: 6px 11px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; transition: all .3s var(--ease);
}
.lang-switch button[aria-pressed="true"] { background: var(--white); color: var(--navy-700); }
.nav-cta { display: none; padding: 10px 20px; font-size: 0.88rem; }
.nav-links a, .nav-cta { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav { gap: 16px; }
  .nav-links { gap: 2px; }
  .nav-links a { padding: 8px 10px; }
  .nav-links a::after { left: 10px; right: 10px; }
}

.menu-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: transparent;
}
.menu-toggle span { height: 2px; background: var(--white); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(2, 12, 21, 0.97); backdrop-filter: blur(16px);
  padding: 32px 16px; display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
}
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.mobile-menu a:not(.btn) {
  font-family: var(--font-display); font-size: 1.6rem; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { margin-top: 24px; }

@media (min-width: 1024px) {
  .nav-links, .nav-cta { display: flex; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px; overflow: hidden;
  background:
    radial-gradient(1000px 600px at 78% 35%, rgba(88,139,170,0.22), transparent 60%),
    radial-gradient(800px 500px at 10% 90%, rgba(17,46,66,0.7), transparent 70%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
}
#network { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.75; }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(169,200,220,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169,200,220,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .hero-inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(17,46,66,0.45); font-size: 0.82rem; color: var(--text-muted);
}
.hero-badge .dot {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(88,139,170,0.25);
}
.hero-badge .dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd3a0;
  box-shadow: 0 0 0 0 rgba(95,211,160,0.6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(95,211,160,0); } 100% { box-shadow: 0 0 0 0 rgba(95,211,160,0); } }

.hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.1rem, 5.6vw, 4.1rem); line-height: 1.05; margin: 26px 0 26px; letter-spacing: 0.005em;
}
@media (min-width: 960px) { .hero-br { display: none; } }
.hero-line { white-space: nowrap; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; height: 1.12em; }
.rotator span {
  grid-area: 1 / 1; transform: translateY(110%); opacity: 0;
  transition: transform .9s var(--ease), opacity .9s var(--ease);
}
.rotator span.is-active { transform: translateY(0); opacity: 1; }
.rotator span.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero-sub { max-width: 560px; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-note { margin-top: 16px; font-size: 0.85rem; color: var(--text-dim); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--white); }
.hero-meta span { font-size: 0.82rem; color: var(--text-dim); letter-spacing: 0.04em; }

.hero-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 480px; margin-inline: auto; width: 100%; }
.hero-visual .ring {
  position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line-strong);
}
.hero-visual .ring.r2 { inset: 9%; border-style: dashed; border-color: rgba(88,139,170,0.3); animation: spin 60s linear infinite; }
.hero-visual .ring.r3 { inset: 20%; border-color: rgba(88,139,170,0.18); animation: spin 40s linear infinite reverse; }
.hero-visual .ring.r1::before, .hero-visual .ring.r3::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: var(--steel-400); box-shadow: 0 0 18px var(--steel-400);
}
.hero-visual .ring.r1 { animation: spin 26s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-visual .glow {
  position: absolute; inset: 22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(88,139,170,0.55), transparent 70%); filter: blur(30px);
  animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.7; } }
.hero-bear { position: relative; width: 56%; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.55)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px); } }
.chip-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(6,19,31,0.85); border: 1px solid var(--line-strong); backdrop-filter: blur(8px);
  font-size: 0.8rem; color: var(--text); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.8);
  animation: float 8s ease-in-out infinite;
}
.chip-float svg { width: 18px; height: 18px; color: var(--steel-400); }
.chip-float.c1 { top: 12%; left: -4%; }
.chip-float.c2 { bottom: 18%; right: -6%; animation-delay: -3s; }
.chip-float.c3 { bottom: 2%; left: 8%; animation-delay: -5s; }
@media (max-width: 959px) { .hero-visual { max-width: 360px; } .chip-float.c1 { left: 0; } .chip-float.c2 { right: 0; } }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 14px;
}
.scroll-cue::before {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--steel-400); animation: scrollcue 2s var(--ease) infinite;
}
@keyframes scrollcue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 700px) { .scroll-cue { display: none; } }

/* ---------- Industrias (marquee) ---------- */
.trust { padding: 44px 0; border-block: 1px solid var(--line); background: var(--navy-900); }
.trust-label { text-align: center; font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 24px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee-group { display: flex; gap: 64px; padding-right: 64px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.3rem; color: var(--steel-300); white-space: nowrap; }
.marquee-item svg { width: 26px; height: 26px; color: var(--steel-500); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Puntos con check (Contacto) ---------- */
.pillars { display: grid; gap: 14px; margin-top: 32px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar .check {
  flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(88,139,170,0.15); color: var(--steel-400);
}
.pillar .check svg { width: 16px; height: 16px; }
.pillar span { color: var(--text); }

/* ---------- Servicios ---------- */
.services { background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 50%, var(--navy-950)); }

/* Pestañas Pymes / Empresas: sin JS (sin .is-ready) se ocultan y se ven ambos paneles */
.seg-tabs {
  display: none; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(6,19,31,0.7);
}
.seg.is-ready .seg-tabs { display: flex; }
.seg-tabs button {
  border: 0; background: transparent; color: var(--text-muted); padding: 11px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.92rem; transition: color .3s, background-color .35s var(--ease), box-shadow .35s var(--ease);
}
.seg-tabs button:hover { color: var(--white); }
.seg-tabs button[aria-selected="true"] { background: var(--white); color: var(--navy-700); box-shadow: 0 10px 30px -12px rgba(88,139,170,0.7); }
@media (max-width: 559px) {
  .seg-tabs { width: 100%; }
  .seg-tabs button { flex: 1; padding: 10px 12px; font-size: 0.84rem; line-height: 1.3; }
}
.seg-panel[hidden] { display: none; }
.seg-panel + .seg-panel { margin-top: 72px; }
.seg.is-ready .seg-panel + .seg-panel { margin-top: 0; }
.seg-heading { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; text-align: center; margin-bottom: 12px; }
.seg.is-ready .seg-heading { display: none; }
.seg-intro { max-width: 680px; margin: 0 auto 32px; text-align: center; color: var(--text-muted); }

.services-grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid.three { grid-template-columns: repeat(3, 1fr); } }
.service-card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; padding: 38px 34px 30px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--line); overflow: hidden;
  transition: transform .5s var(--ease), border-color .4s, background-color .4s;
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(88,139,170,0.2), transparent 45%);
}
.service-card:hover { border-color: rgba(88,139,170,0.45); background: var(--card-hover); transform: translateY(-6px); }
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-time {
  position: absolute; top: 30px; right: 28px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  color: #8fe3bf; background: rgba(95,211,160,0.1); border: 1px solid rgba(95,211,160,0.25);
}
.service-time svg { width: 13px; height: 13px; }
.service-icon {
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; margin-bottom: 28px;
  background: linear-gradient(145deg, var(--navy-600), var(--navy-700)); border: 1px solid var(--line-strong);
  color: var(--white); box-shadow: 0 14px 30px -14px rgba(88,139,170,0.8);
  transition: transform .6s var(--ease);
}
.service-card:hover .service-icon { transform: rotate(-6deg) scale(1.06); }
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { color: var(--text-muted); }
.service-card .service-hook { color: var(--steel-300); font-weight: 600; margin-bottom: 10px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.service-tags span { font-size: 0.75rem; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--steel-300); }
.service-link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px;
  font-size: 0.9rem; font-weight: 600; color: var(--steel-300); transition: color .3s;
}
.service-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.service-card:hover .service-link { color: var(--white); }
.service-link:hover svg { transform: translateX(4px); }

.care-strip {
  display: flex; gap: 16px; align-items: center; margin-top: 20px; padding: 20px 24px; border-radius: var(--radius);
  border: 1px dashed rgba(122,167,196,0.45); background: rgba(17,46,66,0.3);
}
.care-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(88,139,170,0.18); color: var(--steel-300); }
.care-icon svg { width: 22px; height: 22px; }
.care-strip p { color: var(--text-muted); }
.care-strip strong { color: var(--white); font-weight: 600; }

/* ---------- Por qué Arttic: compromisos ---------- */
.why { background: linear-gradient(180deg, var(--navy-950), var(--navy-900) 50%, var(--navy-950)); }
.why-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 960px) {
  .why-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; }
  .why-text { position: sticky; top: calc(var(--header-h) + 32px); }
}
.why-text p { color: var(--text-muted); font-size: 1.05rem; }
.why-text p + p { margin-top: 18px; }
.promise-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .promise-grid { grid-template-columns: repeat(2, 1fr); } }
.promise {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(17,46,66,0.5), rgba(6,19,31,0.35));
  transition: border-color .3s, transform .4s var(--ease);
}
.promise:hover { border-color: rgba(88,139,170,0.45); transform: translateY(-4px); }
.promise-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; background: rgba(88,139,170,0.18); color: var(--steel-300); }
.promise-icon svg { width: 22px; height: 22px; }
.promise h3 { font-size: 1.05rem; margin-bottom: 8px; }
.promise p { color: var(--text-muted); font-size: 0.93rem; }

/* ---------- Proyectos ---------- */
.projects-grid { display: grid; gap: 20px; }
@media (min-width: 720px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.featured { grid-column: 1 / -1; }
}
.project-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px; padding: 30px; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); background: var(--navy-850);
  transition: transform .5s var(--ease), border-color .4s;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(88,139,170,0.5); }
.project-art { position: absolute; inset: 0; transition: transform 1s var(--ease); }
.project-card:hover .project-art { transform: scale(1.06); }
.project-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 20%, rgba(2,12,21,0.95) 85%); }
.project-card > *:not(.project-art) { position: relative; z-index: 1; }
.project-tag { align-self: flex-start; margin-bottom: 14px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.1); color: var(--ice-100); backdrop-filter: blur(6px); }
.project-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; margin-bottom: 10px; }
.project-card.featured h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.project-card p { color: var(--text-muted); font-size: 0.95rem; }
.project-card.featured p { font-size: 1.05rem; max-width: 520px; }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 28px;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
  background: radial-gradient(700px 320px at 50% 0%, rgba(88,139,170,0.45), transparent 70%), linear-gradient(180deg, var(--navy-700), var(--navy-900));
  border: 1px solid var(--line-strong);
}
.cta h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.9rem, 4.4vw, 3.3rem); margin: 18px auto 18px; max-width: 800px; }
.cta p { max-width: 640px; margin-inline: auto; color: var(--ice-100); opacity: 0.85; font-size: 1.08rem; }
.cta .hero-actions { justify-content: center; }
.cta-bear { position: absolute; right: -60px; bottom: -80px; width: 320px; opacity: 0.07; transform: rotate(-12deg); pointer-events: none; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; } }
.contact-list { display: grid; gap: 14px; margin-top: 32px; }
.contact-item {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  border: 1px solid var(--line); background: rgba(17,46,66,0.25); transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
a.contact-item:hover { border-color: rgba(88,139,170,0.5); background: rgba(17,46,66,0.5); transform: translateX(4px); }
.contact-item .ci-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(88,139,170,0.15); color: var(--steel-300); flex: none; }
.contact-item .ci-icon svg { width: 20px; height: 20px; }
.contact-item small { display: block; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.contact-item strong { font-weight: 600; color: var(--white); word-break: break-word; }

.form {
  padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(17,46,66,0.5), rgba(6,19,31,0.6));
  display: grid; gap: 18px;
}
.form-row { display: grid; gap: 18px; align-items: start; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(2,12,21,0.6); color: var(--white); font: inherit; font-size: 0.95rem;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a9c8dc' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field select option { background: var(--navy-900); }
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel-500); background: rgba(2,12,21,0.85);
  box-shadow: 0 0 0 4px rgba(88,139,170,0.18);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.85rem; color: var(--text-muted); }
.consent input { margin-top: 4px; accent-color: var(--steel-500); width: 16px; height: 16px; flex: none; }
.consent a { color: var(--steel-300); text-decoration: underline; text-underline-offset: 3px; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: 0.6; pointer-events: none; }
.form-status { font-size: 0.92rem; min-height: 1.4em; }
.form-status.ok { color: #5fd3a0; }
.form-status.err { color: #ff9a8a; }
.contact-promises { margin-top: 26px; gap: 10px; }
.contact-promises .pillar { align-items: center; font-size: 0.95rem; }

/* ---------- Preguntas frecuentes ---------- */
.faq-wrap { display: grid; gap: 8px; align-items: start; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
  .faq-wrap .section-head { position: sticky; top: calc(var(--header-h) + 32px); margin-bottom: 0; }
}
.faq-wrap .section-lead a { color: var(--steel-300); text-decoration: underline; text-underline-offset: 3px; }
.faq-list { display: grid; gap: 12px; }
.faq-item { border-radius: var(--radius); border: 1px solid var(--line); background: rgba(17,46,66,0.28); transition: border-color .3s, background-color .3s; }
.faq-item:hover, .faq-item[open] { border-color: rgba(88,139,170,0.45); }
.faq-item[open] { background: rgba(17,46,66,0.5); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px 22px;
  list-style: none; cursor: pointer; font-weight: 600; color: var(--white); border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--steel-400); border-bottom: 2px solid var(--steel-400);
  transform: translateY(-3px) rotate(45deg); transition: transform .35s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-item p { padding: 0 22px 22px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--navy-950); padding: 72px 0 32px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand p { margin-top: 18px; color: var(--text-muted); max-width: 320px; font-size: 0.95rem; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text-muted); font-size: 0.95rem; transition: color .3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--text-dim); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 14px 30px -10px rgba(37,211,102,0.6); transition: transform .4s var(--ease);
  opacity: 0; transform: scale(0.6); pointer-events: none;
}
.wa-float.show { opacity: 1; transform: scale(1); pointer-events: auto; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; }

/* ---------- Páginas legales ---------- */
.legal { padding: calc(var(--header-h) + 64px) 0 96px; }
.legal .container { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); margin: 16px 0 12px; }
.legal .updated { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--steel-300); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom { transform: scale(0.94); }
.reveal.is-visible { opacity: 1; transform: none; }

.hero .intro { opacity: 0; transform: translateY(24px); animation: intro 1.1s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes intro { to { opacity: 1; transform: none; } }

.progress-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 101; background: linear-gradient(90deg, var(--steel-500), var(--white)); transform-origin: left; transform: scaleX(0); }

/* ---------- Idioma ---------- */
[data-lang-only] { display: none; }
html[lang="es"] [data-lang-only="es"], html[lang="en"] [data-lang-only="en"] { display: revert; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .hero .intro { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}


/* ---------- La realidad: el iceberg ---------- */
.reality { background: linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%); }
.iceberg {
  position: relative; overflow: hidden; border-radius: 28px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #0f2a3d 0%, #0b2233 30%, #06131f 100%);
  box-shadow: 0 40px 100px -50px rgba(88,139,170,0.55);
}
.ice-sky {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 20px 0; text-align: center;
  background: radial-gradient(500px 180px at 50% 100%, rgba(169,200,220,0.22), transparent 70%);
}
.ice-tip { width: 190px; margin-bottom: -2px; animation: bob 6s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(169,200,220,0.35)); order: 2; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.ice-tip-label { order: 1; }
.ice-kicker { display: block; font-family: var(--font-display); font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--steel-400); margin-bottom: 6px; }
.ice-tip-label strong { font-size: 1.1rem; color: var(--white); }

.waterline { position: relative; height: 40px; margin-top: -20px; z-index: 1; overflow: hidden; }
.waterline svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; }
.waterline .wave { animation: wave 9s linear infinite; }
.waterline .w1 { fill: rgba(88,139,170,0.35); }
.waterline .w2 { fill: rgba(26,66,96,0.9); animation-duration: 14s; animation-direction: reverse; }
@keyframes wave { to { transform: translateX(-50%); } }

.ice-deep { position: relative; padding: 36px clamp(16px, 4vw, 48px) clamp(32px, 5vw, 56px); background: linear-gradient(180deg, rgba(26,66,96,0.9), rgba(6,19,31,0) 60%); }
.ice-body { position: absolute; left: 50%; top: 0; width: min(92%, 900px); height: 100%; transform: translateX(-50%); pointer-events: none; }
.ice-deep-head { position: relative; text-align: center; margin-bottom: 32px; }
.ice-deep-head strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--white); }
.ice-grid { position: relative; display: grid; gap: 12px; }
@media (min-width: 640px) { .ice-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .ice-grid { grid-template-columns: repeat(4, 1fr); } }
.ice-item {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius);
  background: rgba(2,12,21,0.55); border: 1px solid var(--line); backdrop-filter: blur(4px);
  transition: border-color .3s, background-color .3s, transform .4s var(--ease);
}
.ice-item:hover { border-color: rgba(122,167,196,0.5); background: rgba(17,46,66,0.7); transform: translateY(-3px); }
.ice-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: rgba(88,139,170,0.18); color: var(--steel-300); }
.ice-icon svg { width: 19px; height: 19px; }
.ice-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.ice-item p { font-size: 0.86rem; color: var(--text-muted); line-height: 1.55; }

.compare { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 860px) { .compare { grid-template-columns: 1fr 1fr; } }
.cmp-col { padding: clamp(24px, 3.5vw, 36px); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.cmp-col h3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 1.15rem; margin-bottom: 22px; }
.cmp-col h3 img { width: 96px; }
.cmp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cmp-col li { display: flex; gap: 12px; align-items: flex-start; }
.mk { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; }
.mk svg { width: 13px; height: 13px; }
.cmp-bad { background: rgba(2,12,21,0.5); }
.cmp-bad h3 { color: var(--text-muted); }
.cmp-bad li { color: var(--text-muted); }
.mk.no { background: rgba(255,120,110,0.12); color: #ff9a8a; }
.cmp-good { background: linear-gradient(160deg, rgba(88,139,170,0.22), rgba(17,46,66,0.45)); border-color: rgba(88,139,170,0.45); box-shadow: 0 30px 60px -40px rgba(88,139,170,0.7); }
.cmp-good li { color: var(--white); }
.mk.yes { background: rgba(95,211,160,0.15); color: #5fd3a0; }

.proto-callout {
  display: grid; gap: 20px; align-items: center; margin-top: 20px; padding: clamp(22px, 3.5vw, 32px);
  border-radius: var(--radius-lg); border: 1px dashed rgba(122,167,196,0.5); background: rgba(17,46,66,0.3);
}
@media (min-width: 820px) { .proto-callout { grid-template-columns: auto 1fr auto; gap: 24px; } }
.proto-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: linear-gradient(145deg, var(--navy-600), var(--navy-700)); border: 1px solid var(--line-strong); color: var(--white); }
.proto-icon svg { width: 26px; height: 26px; }
.proto-text h3 { font-size: 1.2rem; margin-bottom: 6px; }
.proto-text p { color: var(--text-muted); }
.proto-callout .btn { justify-self: start; }

/* ---------- Etapik: tarjeta destacada con personaje ---------- */
.art-duk { background: radial-gradient(circle at 75% 40%, rgba(169,200,220,0.35), transparent 55%), linear-gradient(135deg, #0d2334, #1a4260); }
.duk-img {
  position: absolute; right: 0; top: 0; width: 100%; height: 68%; max-width: none;
  object-fit: cover; object-position: center 15%;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  transition: transform 1.2s var(--ease);
}
.project-card.featured { min-height: 640px; }
@media (min-width: 900px) { .project-card.featured { min-height: 480px; } }
@media (max-width: 899px) {
  .duk-img { height: 60%; object-position: center top; }
  .project-card.featured .project-art::after { background: linear-gradient(180deg, transparent 48%, rgba(2,12,21,0.96) 66%); }
}
.project-card:hover .duk-img { transform: scale(1.04); }
@media (min-width: 900px) {
  .duk-img {
    width: auto; height: 100%; right: 6%; object-fit: contain;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 78%, transparent 100%);
  }
  .project-card.featured .project-art::after { background: linear-gradient(90deg, rgba(2,12,21,0.92) 0%, rgba(2,12,21,0.7) 45%, transparent 60%), linear-gradient(180deg, transparent 70%, rgba(2,12,21,0.5)); }
  .project-card.featured > *:not(.project-art) { max-width: 50%; }
}

/* ---------- Errores del formulario ---------- */
.field-error { display: block; min-height: 0; font-size: 0.8rem; color: #ff9a8a; line-height: 1.4; }
.field-error:empty { display: none; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #ff8a7a; box-shadow: 0 0 0 4px rgba(255,138,122,0.14); }
.field.has-error label { color: #ffb4a8; }
.consent.has-error { color: #ffb4a8; }
.consent.has-error input { outline: 2px solid #ff8a7a; outline-offset: 2px; }
.consent + .field-error { margin-top: -8px; }

/* ---------- Casos reales (sitios de clientes) ---------- */
.project-card.case { padding: 0; justify-content: flex-start; min-height: 0; background: linear-gradient(180deg, rgba(17,46,66,0.55), rgba(6,19,31,0.6)); }
.case-shot { position: relative; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: #0a1b2a; }
.case-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: rgba(6,19,31,0.95); border-bottom: 1px solid var(--line); }
.case-bar span { width: 8px; height: 8px; border-radius: 50%; background: rgba(169,200,220,0.25); }
.case-bar em { margin-left: 8px; font-style: normal; font-size: 0.72rem; color: var(--text-dim); font-family: ui-monospace, Menlo, monospace; }
.case-shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.project-card.case:hover .case-shot img { transform: scale(1.04); }
.case-body { display: flex; flex-direction: column; padding: 22px 24px 24px; }
.case-body h3 { font-size: 1.25rem; }
.case-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--steel-300); }
.case-link svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.case-link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.project-card.case:hover .case-link { color: var(--white); }
.project-card.case:hover .case-link svg { transform: translate(3px, -3px); }
.project-card.case > .case-body { position: static; }

/* ---------- Modal de confirmación ---------- */
.modal { border: 1px solid rgba(122, 167, 196, 0.35); border-radius: 20px; padding: 36px 32px 30px; max-width: min(420px, calc(100vw - 32px)); width: 100%; text-align: center; background: var(--navy-850); color: var(--text); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7); }
.modal::backdrop { background: rgba(2, 12, 21, 0.75); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .3s cubic-bezier(.22, 1, .36, 1); }
.modal-icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 211, 160, 0.14); color: #5fd3a0; }
.modal-icon svg { width: 32px; height: 32px; }
.modal h3 { font-size: 1.5rem; margin: 0 0 10px; color: var(--white); }
.modal p { margin: 0 0 24px; color: var(--text-muted); line-height: 1.6; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
