/* =========================================================
   Genuvia IT — rediseño visual (mismo contenido que index.html)
   Header/hero/contacto oscuros, contenido claro. Sin dependencias.
   Mismo sistema visual que los marketplaces (marketplace_agentes/css/market.css):
   Inter embebida, azul #1748d8, azul noche #07112b, degradado lavanda, botones redondeados.
   ========================================================= */

:root {
  --ink: #07112b;
  --ink-2: #0c1b44;
  --ink-3: #12224f;
  --paper: #ffffff;
  --paper-2: #f5f7fb;
  --text: #0f172a;
  --text-2: #475569;
  --text-3: #64748b;
  --line: #e3e8f0;
  --line-2: #d3dbe7;
  --d-text: #e8eefc;
  --d-muted: #9aa8c7;
  --d-line: rgba(148, 178, 255, .14);
  --d-line-2: rgba(148, 178, 255, .26);
  --blue: #1748d8;
  --blue-d: #103bb8;
  --blue-l: #5c8cff;
  --cyan: #9fbaff;
  --grad: linear-gradient(90deg, #1748d8 0%, #5c8cff 100%);
  --grad-d: linear-gradient(90deg, #9fbaff 0%, #5c8cff 60%, #b8ccff 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(7, 17, 43, .06), 0 1px 1px rgba(7, 17, 43, .04);
  --shadow-h: 0 10px 30px -12px rgba(7, 17, 43, .18), 0 2px 6px rgba(7, 17, 43, .05);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); background: var(--paper); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { letter-spacing: -0.015em; line-height: 1.25; font-weight: 700; }
strong { font-weight: 700; color: inherit; }

/* Los textos traducidos traen <span style="color:#0066cc">: se pintan con el degradado de marca */
.hl span, .closing span {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; -webkit-text-fill-color: transparent;
}

section { padding: 112px 0; position: relative; }
section.alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 22px; }
.sec-head.center h2::after { margin-inline: auto; }
.intro { font-size: 1.15rem; color: var(--text-2); margin-top: 22px; line-height: 1.75; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border-radius: 999px; font: 600 1rem var(--font);
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -8px rgba(23, 72, 216, .7); }
.btn-primary:hover { background: var(--blue-d); }
/* Sobre fondo oscuro el botón principal es blanco, como en los marketplaces */
.hero .btn-primary, section.dark .btn-primary { background: #fff; color: var(--ink); box-shadow: none; }
.hero .btn-primary:hover, section.dark .btn-primary:hover { background: #f2f6ff; }

/* ---------- Header ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, border-color .3s, box-shadow .3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 17, 43, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-color: var(--d-line); box-shadow: 0 10px 30px -20px rgba(0,0,0,.6); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
/* Marca igual que los marketplaces: ícono + "Genuvia IT" */
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 32px; height: 32px; }
.brand-texto { display: flex; flex-direction: column; line-height: 1.05; }
.brand-texto b { font-size: 18px; letter-spacing: -0.02em; }
.brand-texto b span { color: #8fb0ff; }
.brand-texto small { font-size: 11px; color: #9fb0d4; font-weight: 500; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; font-weight: 600; color: var(--d-muted); }
.nav-links > a:hover { color: #fff; }
.nav-in-ico { display: inline-flex; align-items: center; gap: 8px; }
.nav-in-ico svg { width: 19px; height: 19px; }
.only-mobile { display: none; }
.pill-link { color: #fff !important; padding: 9px 18px; border-radius: 999px; border: 1px solid var(--d-line-2); background: rgba(23, 72, 216, .14); transition: background .2s, border-color .2s; }
.pill-link:hover { background: rgba(23, 72, 216, .32); border-color: var(--blue-l); }
.burger { display: none; background: none; border: 1px solid var(--d-line-2); border-radius: 10px; width: 44px; height: 44px; color: #fff; cursor: pointer; }
.burger svg { width: 22px; height: 22px; }

/* Selector de idioma que inyecta i18n.js (trae estilos inline: se pisan acá) */
#language-selector { background: rgba(255, 255, 255, .06) !important; border: 1px solid var(--d-line-2); border-radius: 10px !important; padding: 3px !important; margin-top: 0 !important; box-shadow: none !important; }
#language-selector button { font-family: var(--font) !important; font-size: .8rem !important; padding: 6px 12px !important; border-radius: 7px !important; min-width: 0 !important; }
#language-selector button[style*="30, 58, 138"], #language-selector button[style*="#1e3a8a"] { background: var(--blue) !important; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); color: var(--d-text); padding: 176px 0 120px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background: radial-gradient(1200px 600px at 85% -10%, rgba(66, 116, 255, .45), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(23, 72, 216, .35), transparent 60%); }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--d-line) 1px, transparent 1px), linear-gradient(90deg, var(--d-line) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .55;
  mask-image: radial-gradient(ellipse 70% 70% at 65% 35%, #000 15%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 35%, #000 15%, transparent 75%);
}
/* Red animada de la portada (canvas, ver script "red-hero" en index_v2.html): tenue detrás del texto, plena a la derecha */
#red-hero { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .45) 35%, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .18) 0%, rgba(0, 0, 0, .45) 35%, #000 60%); }
@media (max-width: 1180px) { #red-hero { mask-image: none; -webkit-mask-image: none; opacity: .45; } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--d-line-2), transparent); }

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
/* Etiqueta sobre el título: igual que ".ceja" de los marketplaces (mayúsculas, línea adelante) */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #8fb0ff; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.1rem); line-height: 1.02; letter-spacing: -0.035em; margin: 22px 0 24px;
  background: linear-gradient(180deg, #ffffff 35%, #b8ccff 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--d-muted); max-width: 46ch; line-height: 1.7; }
.hero-ctas { margin-top: 40px; }
.hero-card {
  position: relative; border-radius: 24px; padding: 48px 40px;
  background: linear-gradient(180deg, rgba(18, 34, 79, .75), rgba(7, 17, 43, .85));
  border: 1px solid var(--d-line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-card::before { content: ""; position: absolute; inset: 30px; z-index: -1; background: radial-gradient(closest-side, rgba(23, 72, 216, .55), transparent); filter: blur(40px); }
.hero-card img { width: 100%; filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.15); mix-blend-mode: lighten; }

/* Panel de la portada: las líneas de trabajo de Genuvia (reemplaza la tarjeta con el logo) */
.hero-panel {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, rgba(18, 34, 79, .78), rgba(7, 17, 43, .9));
  border: 1px solid var(--d-line-2);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 85% 0%, rgba(66, 116, 255, .3), transparent 70%); pointer-events: none; }
.hp-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--d-line); font-size: .86rem; font-weight: 600; color: var(--d-muted); }
.hp-item { position: relative; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--d-line); transition: background .2s; }
.hp-item:last-child { border-bottom: 0; }
.hp-item:hover { background: rgba(255, 255, 255, .04); }
.hp-item:hover .hp-txt b { color: #fff; }
.hp-ico { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #9fbaff; background: rgba(23, 72, 216, .22); border: 1px solid rgba(143, 176, 255, .3); }
.hp-ico svg { width: 21px; height: 21px; }
.hp-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.hp-txt b { color: #e8eefc; font-size: 1.02rem; letter-spacing: -0.01em; transition: color .2s; }
.hp-txt small { color: var(--d-muted); font-size: .88rem; line-height: 1.45; }
.hp-tag { flex: none; font-size: .72rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; color: #c9d7ff; background: rgba(143, 176, 255, .12); border: 1px solid rgba(143, 176, 255, .25); }
.hp-tag.ok { color: #6ee7b7; background: rgba(52, 211, 153, .1); border-color: rgba(52, 211, 153, .3); }
@media (max-width: 680px) { .hp-tag { display: none; } .hp-item { padding: 16px; } }

/* ---------- Sobre nosotros ---------- */
.block { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--line); }
.block-title { font-size: clamp(1.4rem, 2.2vw, 1.8rem); color: var(--text); }
.block-text { font-size: 1.08rem; color: var(--text-2); margin-top: 14px; max-width: 900px; line-height: 1.75; }
.check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.check {
  position: relative; padding: 22px 22px 22px 58px; border-radius: 14px; background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text-2); font-size: 1rem; line-height: 1.6;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.check:hover { transform: translateY(-2px); box-shadow: var(--shadow-h); border-color: #c9d6f5; }
.check::before {
  content: ""; position: absolute; left: 20px; top: 22px; width: 24px; height: 24px; border-radius: 7px;
  background: rgba(23, 72, 216, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231748d8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.closing { margin: 72px auto 0; max-width: 900px; text-align: center; font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.6; color: var(--text); font-weight: 500; letter-spacing: -0.01em; }

/* ---------- Casos de uso ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; display: flex; flex-direction: column; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); }
.case-img { height: 220px; overflow: hidden; }
.case-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.case:hover .case-img img { transform: scale(1.05); }
.case-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 1.28rem; color: var(--text); }
.case-body p { color: var(--text-2); margin-top: 12px; font-size: .97rem; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag { font-size: .78rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.t-blue { background: #e8efff; color: #1f4fd1; } .t-green { background: #e6f6ee; color: #1f7a4d; }
.t-orange { background: #fff1e4; color: #c2620c; } .t-purple { background: #f2eafe; color: #6d32c4; }
.cta-line { margin-top: 56px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 28px 32px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-line p { font-size: 1.12rem; color: var(--text); font-weight: 600; }

/* ---------- Genuvia AI Agents (sección oscura) ---------- */
section.dark { background: var(--ink); color: var(--d-text); overflow: hidden; }
.dark-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 480px at 50% 0%, rgba(23, 72, 216, .25), transparent 65%); }
.dark-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--d-line) 1px, transparent 1px), linear-gradient(90deg, var(--d-line) 1px, transparent 1px); background-size: 64px 64px; opacity: .45; mask-image: radial-gradient(ellipse 60% 55% at 50% 10%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 10%, #000 10%, transparent 70%); }
section.dark .wrap { position: relative; }
section.dark .eyebrow { margin-bottom: 22px; }
section.dark h2 { color: #fff; }
section.dark .hl span { background: var(--grad-d); -webkit-background-clip: text; background-clip: text; }
section.dark .intro { color: var(--d-muted); }
.agent-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.agent-type { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--d-line-2); background: linear-gradient(180deg, rgba(18, 34, 79, .7), rgba(12, 27, 68, .5)); transition: transform .3s, border-color .3s, box-shadow .3s; }
.agent-type:hover { transform: translateY(-4px); border-color: rgba(122, 162, 255, .55); box-shadow: 0 24px 48px -24px rgba(23, 72, 216, .6); }
.at-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; color: var(--cyan); background: rgba(143, 176, 255, .1); border: 1px solid rgba(143, 176, 255, .28); }
.at-ico svg { width: 21px; height: 21px; }
.agent-type h3 { font-size: 1.12rem; color: #fff; }
.agent-type p { font-size: .9rem; color: var(--d-muted); margin-top: 10px; line-height: 1.6; }
.areas { margin-top: 56px; text-align: center; }
.areas h3 { font-size: 1.15rem; color: #fff; margin-bottom: 22px; }
.area-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 980px; margin: 0 auto; }
.area-chips a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--d-line-2); background: rgba(255, 255, 255, .03); color: var(--d-text); font-size: .9rem; font-weight: 600; transition: background .2s, border-color .2s; }
.area-chips a:hover { background: rgba(23, 72, 216, .2); border-color: var(--blue-l); }
.agents-ctas { margin-top: 48px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.agents-ctas .btn svg { width: 18px; height: 18px; }
.btn-ghost { color: #fff; border-color: var(--d-line-2); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); }

/* ---------- JDE Support Hub +IA ---------- */
.sh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
#supporthub .levels { margin-top: 28px; }
.chat-mock { position: relative; border-radius: 20px; overflow: hidden; background: linear-gradient(180deg, var(--ink-3), var(--ink)); border: 1px solid #1f2d4d; box-shadow: 0 40px 80px -36px rgba(15, 23, 42, .6); color: var(--d-text); }
.chat-mock::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 80% 0%, rgba(23, 72, 216, .3), transparent 70%); pointer-events: none; }
.cm-bar { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--d-line); font-size: .88rem; font-weight: 700; }
.cm-dots { display: flex; gap: 6px; } .cm-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.cm-body { position: relative; padding: 22px; display: grid; gap: 14px; }
.cm-user { justify-self: end; max-width: 82%; background: #fff; color: var(--ink); padding: 11px 15px; border-radius: 16px 16px 4px 16px; font-size: .92rem; font-weight: 500; }
.cm-ai { padding: 16px; border-radius: 16px 16px 16px 4px; border: 1px solid var(--d-line-2); background: rgba(255, 255, 255, .04); font-size: .92rem; color: #cdd7ee; }
.cm-ai b { color: #fff; }
.cm-steps { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.cm-steps li { display: flex; align-items: center; gap: 10px; font-size: .86rem; color: var(--d-muted); }
.cm-steps .ok, .cm-steps .wait { width: 20px; height: 20px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.cm-steps .ok { background: rgba(52, 211, 153, .15); color: #34d399; }
.cm-steps .wait { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.cm-btns { display: flex; gap: 8px; margin-top: 14px; }
.cm-btns span { font-size: .8rem; font-weight: 700; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--d-line-2); }
.cm-btns .pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.cm-input { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--d-line); color: #6b7a9e; font-size: .88rem; }
.cm-input i { font-style: normal; width: 30px; height: 30px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.sh-features { margin-top: 72px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sh-f { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.sh-f:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.sh-ico { width: 42px; height: 42px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--blue); background: #eaf0ff; border: 1px solid #cfdcff; }
.sh-ico svg { width: 20px; height: 20px; }
.sh-f h3 { font-size: 1.05rem; color: var(--text); }
.sh-f p { font-size: .92rem; color: var(--text-2); margin-top: 6px; line-height: 1.55; }
.sh-ent { margin-top: 36px; text-align: center; color: var(--text-3); font-weight: 600; font-size: .95rem; }

/* ---------- Genuvia e1Page Solutions (sección clara) ---------- */
.eyebrow.light { color: var(--blue); }
.eyebrow.light::before { background: currentColor; }
.e1p-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.e1p-title { margin-top: 22px; }
.e1p-title::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; background: var(--grad); margin-top: 22px; }
.levels-title { margin-top: 40px; font-size: 1.05rem; color: var(--text); text-transform: uppercase; letter-spacing: .08em; }
.levels { list-style: none; counter-reset: nivel; margin-top: 16px; display: grid; gap: 4px; }
.levels li { counter-increment: nivel; display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.levels li:last-child { border-bottom: 0; }
.levels li::before { content: counter(nivel); grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: var(--blue); background: #eaf0ff; border: 1px solid #cfdcff; }
.levels b { color: var(--text); font-size: 1.02rem; }
.levels span { color: var(--text-2); font-size: .93rem; line-height: 1.55; margin-top: 2px; }
.shots { position: relative; height: 540px; }
.shot { position: absolute; width: 78%; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 30px 60px -28px rgba(15, 23, 42, .45); transition: transform .5s ease; }
.shot img { width: 100%; height: auto; }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d3dbe7; }
.shot.s1 { top: 0; left: 0; z-index: 1; transform: rotate(-2deg); }
.shot.s2 { top: 120px; right: 0; z-index: 2; }
.shot.s3 { bottom: 0; left: 8%; z-index: 3; transform: rotate(1.5deg); }
.shots:hover .s1 { transform: rotate(-3deg) translate(-8px, -8px); }
.shots:hover .s3 { transform: rotate(2.5deg) translate(4px, 10px); }
.areas.light h3 { color: var(--text); }
.areas.light .area-chips a { color: var(--text); background: var(--paper); border-color: var(--line-2); box-shadow: var(--shadow); }
.areas.light .area-chips a:hover { border-color: var(--blue); color: var(--blue-d); background: #f3f6ff; }
.btn-outline { color: var(--blue-d); border-color: #b9caf5; background: var(--paper); }
.btn-outline:hover { background: #f3f6ff; border-color: var(--blue); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-item {
  position: relative; padding: 32px; border-radius: var(--radius); background: var(--paper);
  border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s, border-color .3s; overflow: hidden;
}
.service-item::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.service-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-h); border-color: #c9d6f5; }
.service-item:hover::before { transform: scaleX(1); }
.service-ico { width: 64px; height: 64px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; }
.service-ico img { width: 44px; height: 44px; object-fit: contain; }
.service-item h3 { font-size: 1.2rem; color: var(--text); }
.service-item p { color: var(--text-2); margin-top: 12px; font-size: .95rem; }

/* ---------- Clientes ---------- */
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.clients-grid .client-card { width: calc((100% - 4 * 18px) / 5); }
.client-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px 16px 16px; text-align: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-h); }
.client-logo { height: 70px; display: grid; place-items: center; }
.client-logo img { max-height: 62px; max-width: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.client-card:hover .client-logo img { filter: none; opacity: 1; }
.client-name { margin-top: 12px; font-size: .85rem; font-weight: 700; color: var(--text-3); letter-spacing: .01em; }

/* ---------- Contacto (oscuro) ---------- */
#contact { background: var(--ink); color: var(--d-text); overflow: hidden; }
#contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 420px at 15% 0%, rgba(23, 72, 216, .22), transparent 60%), radial-gradient(600px 400px at 100% 100%, rgba(143, 176, 255, .1), transparent 60%); pointer-events: none; }
#contact .wrap { position: relative; }
#contact h2 { color: #fff; }
#contact .intro { color: var(--d-muted); }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 36px; }
.info { padding: 26px; border-radius: 14px; border: 1px solid var(--d-line-2); background: rgba(255, 255, 255, .03); }
.info h3 { font-size: 1.02rem; color: #fff; margin-bottom: 10px; display: flex; align-items: center; gap: 12px; }
.info h3::before { content: ""; width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--d-line-2); background: rgba(23, 72, 216, .16) center / 18px no-repeat; }
.info:nth-child(1) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
.info:nth-child(2) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L8 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.info:nth-child(3) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238fb0ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.info p { color: var(--d-muted); line-height: 1.65; }
.info a:hover { color: #fff; }
.form-card { max-width: 760px; margin: 0 auto; padding: 40px; border-radius: 20px; border: 1px solid var(--d-line-2); background: linear-gradient(180deg, rgba(18, 34, 79, .8), rgba(12, 27, 68, .8)); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.form-card > h3 { font-size: 1.4rem; color: #fff; text-align: center; margin-bottom: 28px; }
.cf { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--d-muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; font: 500 .98rem var(--font); color: #fff; background: rgba(7, 17, 43, .7);
  border: 1px solid var(--d-line-2); border-radius: 10px; padding: 13px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239aa8c7' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { background: var(--ink-2); color: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue-l); box-shadow: 0 0 0 4px rgba(23, 72, 216, .22); }
.cf .btn { justify-self: center; margin-top: 8px; padding-inline: 40px; }
.follow { margin-top: 40px; text-align: center; }
.follow p { color: var(--d-muted); margin-bottom: 12px; }
.follow a { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--d-line-2); transition: background .2s; }
.follow a:hover { background: rgba(255, 255, 255, .06); }
.follow svg { width: 18px; height: 18px; }

/* ---------- Footer ---------- */
footer { background: #070c17; color: var(--d-muted); border-top: 1px solid var(--d-line); padding: 34px 0; font-size: .88rem; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-logo { height: 38px; width: auto; filter: invert(1) hue-rotate(180deg) saturate(1.5) brightness(1.15); mix-blend-mode: lighten; }

/* ---------- Toast ---------- */
.toast { position: fixed; top: 92px; right: 24px; z-index: 100; padding: 14px 18px; border-radius: 10px; color: #fff; font-weight: 600; max-width: 400px; box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5); cursor: pointer; }
.toast.ok { background: #15803d; } .toast.err { background: #b91c1c; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1320px) {
  .nav-links { gap: 20px; font-size: .9rem; }
}
@media (max-width: 1180px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: rgba(7, 17, 43, .98); border-bottom: 1px solid var(--d-line); }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--d-line); }
  .nav-links .pill-link { margin-top: 14px; text-align: center; padding: 12px; }
  #language-selector-container { margin-top: 16px; align-self: flex-start; }
  .only-mobile { display: inline; }
  .burger { display: grid; place-items: center; }
  .hero-grid, .e1p-grid, .sh-grid { grid-template-columns: 1fr; }
  .sh-features { grid-template-columns: 1fr 1fr; }
  .chat-mock { max-width: 600px; }
  .shots { height: 480px; max-width: 640px; }
  #hero-image { max-width: 460px; }
  .check-grid, .cases, .services-grid, .agent-types { grid-template-columns: 1fr 1fr; }
  .clients-grid .client-card { width: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 680px) {
  section { padding: 80px 0; }
  .hero { padding: 140px 0 84px; }
  .check-grid, .cases, .services-grid, .info-grid, .row2, .agent-types, .sh-features { grid-template-columns: 1fr; }
  .clients-grid .client-card { width: calc((100% - 18px) / 2); }
  .form-card { padding: 26px 20px; }
  .shots { height: 300px; }
  .shot { width: 86%; }
  .shot.s2 { top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
