/* ==========================================================================
   SAG Consulting – Estilos
   Paleta corporativa: #30261C #403831 #36544F #1F5F61 #0B8185
   ========================================================================== */
:root {
  --brown-900: #30261C;
  --brown-700: #403831;
  --sage-700: #36544F;
  --petrol-700: #1F5F61;
  --teal-600: #0B8185;
  --teal-400: #19a7a8;
  --teal-200: #8fd8d5;

  --ink-950: #0a1716;      /* fondo oscuro principal */
  --ink-900: #0f2423;
  --ink-800: #15302f;

  --bg: #ffffff;
  --bg-soft: #f3f7f6;
  --text: #1d2a29;
  --text-muted: #556664;
  --line: #dde7e5;
  --on-dark: #e9f3f2;
  --on-dark-muted: #a8c2bf;

  --grad: linear-gradient(135deg, var(--teal-600), var(--petrol-700));
  --grad-text: linear-gradient(90deg, #3cc7c4, var(--teal-200));

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 36, 35, .22);
  --shadow-lg: 0 24px 60px -20px rgba(11, 129, 133, .38);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;

  --font-head: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--teal-400); outline-offset: 3px; border-radius: 6px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--teal-600); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.btn {
  --b-bg: transparent; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .95em 1.6em; border-radius: 999px; border: 1.5px solid transparent; font: 600 .98rem/1 var(--font-body);
  cursor: pointer; text-decoration: none !important; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn .ico { transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 22px -8px rgba(11,129,133,.7); }
.btn-primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(11,129,133,.85); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--on-dark); border-color: rgba(233,243,242,.35); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--teal-200); background: rgba(143,216,213,.1); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--petrol-700); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(0,0,0,.4); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-sm { padding: .7em 1.2em; font-size: .9rem; }
.btn-xl { padding: 1.2em 2em; font-size: 1.05rem; letter-spacing: .03em; }
.btn-block { width: 100%; }

/* ---------- Encabezado ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h); transition: background-color .3s, box-shadow .3s, height .3s; }
.site-header.scrolled { --header-h: 66px; height: 66px; background: rgba(10, 23, 22, .88); box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 10px 30px -18px rgba(0,0,0,.6); }
.site-header.scrolled::before { content: ""; position: absolute; inset: 0; z-index: -2; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none !important; }
.brand-mark { border-radius: 10px; transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.05); }
.brand-text { white-space: nowrap; font-family: var(--font-head); font-size: 1.2rem; font-weight: 500; letter-spacing: -.01em; }
.brand-text strong { font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul a { position: relative; display: block; white-space: nowrap; padding: 8px 12px; color: var(--on-dark); font-size: .93rem; font-weight: 500; text-decoration: none; border-radius: 8px; transition: color .2s; }
.main-nav ul a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--teal-400); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.main-nav ul a:hover, .main-nav ul a.active { color: #fff; }
.main-nav ul a:hover::after, .main-nav ul a.active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); cursor: pointer; padding: 0; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle span:nth-child(1) { top: 15px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; color: var(--on-dark); background: var(--ink-950); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 60% at 80% 30%, rgba(11,129,133,.32), transparent 70%),
    radial-gradient(50% 50% at 10% 90%, rgba(54,84,79,.55), transparent 70%),
    radial-gradient(40% 40% at 0% 0%, rgba(64,56,49,.5), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(143,216,213,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(143,216,213,.06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 70% at 60% 40%, #000 30%, transparent 80%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(143,216,213,.08); border: 1px solid rgba(143,216,213,.2); font-size: .85rem; font-weight: 600; letter-spacing: .08em; color: var(--teal-200); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 0 rgba(25,167,168,.7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(25,167,168,0); } 100% { box-shadow: 0 0 0 0 rgba(25,167,168,0); } }
.hero h1 { color: #fff; margin: 22px 0 20px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--on-dark-muted); max-width: 580px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--on-dark-muted); font-size: .9rem; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .ico { color: var(--teal-400); }

.hero-visual { position: relative; aspect-ratio: 520/480; }
.net-svg { width: 100%; height: 100%; overflow: visible; }
.net-svg .orbit { fill: none; stroke: rgba(143,216,213,.16); stroke-dasharray: 4 8; transform-origin: 260px 240px; animation: spin 60s linear infinite; }
.net-svg .orbit-2 { animation-duration: 90s; animation-direction: reverse; stroke-opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.net-svg .links path { stroke: rgba(143,216,213,.3); stroke-width: 1.5; fill: none; }
.net-svg .pulses circle { fill: var(--teal-200); filter: drop-shadow(0 0 6px var(--teal-400)); }
.net-svg .node > circle { fill: var(--ink-800); stroke: rgba(143,216,213,.45); stroke-width: 1.5; }
.net-svg .node g { fill: none; stroke: var(--teal-200); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.net-svg .node { animation: bob 6s ease-in-out infinite; }
.net-svg .node:nth-of-type(2) { animation-delay: -1.5s; } .net-svg .node:nth-of-type(3) { animation-delay: -3s; } .net-svg .node:nth-of-type(4) { animation-delay: -4.5s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.net-svg .core { filter: drop-shadow(0 12px 30px rgba(11,129,133,.6)); }
.float-card { position: absolute; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(15,36,35,.72); border: 1px solid rgba(143,216,213,.18); backdrop-filter: blur(10px); box-shadow: 0 16px 40px -18px rgba(0,0,0,.7); animation: bob 7s ease-in-out infinite; }
.float-card .ico { width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: var(--grad); color: #fff; }
.float-card strong { display: block; font-size: .92rem; color: #fff; }
.float-card span { font-size: .78rem; color: var(--on-dark-muted); }
.fc-1 { left: -4%; bottom: 14%; } .fc-2 { right: -2%; top: 4%; animation-delay: -3s; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 1; width: 26px; height: 42px; border: 2px solid rgba(233,243,242,.35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--teal-200); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Cifras ---------- */
.stats { background: var(--ink-900); color: #fff; padding: 46px 0; border-top: 1px solid rgba(255,255,255,.06); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat-value { font-family: var(--font-head); font-size: 2.6rem; font-weight: 700; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--on-dark-muted); font-size: .95rem; }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink-950); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p:last-child { color: var(--text-muted); font-size: 1.07rem; }
.kicker { display: inline-block; margin-bottom: 14px; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-600); }
.kicker-light { color: var(--teal-200); }

/* ---------- Servicios ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.03);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; overflow: hidden;
}
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.service-card::after { content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(11,129,133,.12), transparent 70%); opacity: 0; transition: opacity .4s; pointer-events: none; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(11,129,133,.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-icon { width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(11,129,133,.12), rgba(31,95,97,.06)); color: var(--teal-600); transition: background .4s, color .4s, transform .4s var(--ease); }
.service-icon .ico { width: 28px; height: 28px; }
.service-card:hover .service-icon { background: var(--grad); color: #fff; transform: rotate(-6deg) scale(1.05); }
.service-card p { color: var(--text-muted); }
.check-list { display: grid; gap: 8px; margin-bottom: 22px; }
.check-list li { position: relative; padding-left: 26px; color: var(--text-muted); font-size: .96rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .42em; width: 16px; height: 16px; border-radius: 50%; background: rgba(11,129,133,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8185' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-8'/%3E%3C/svg%3E") center/11px no-repeat; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .94rem; }
.card-link .ico { transition: transform .25s var(--ease); }
.card-link:hover { text-decoration: none; } .card-link:hover .ico { transform: translateX(4px); }
.service-card--accent { background: linear-gradient(160deg, var(--petrol-700), var(--ink-900)); border-color: transparent; color: var(--on-dark); }
.service-card--accent h3 { color: #fff; } .service-card--accent p { color: var(--on-dark-muted); }
.service-card--accent .service-icon { background: rgba(255,255,255,.1); color: var(--teal-200); }
.service-card--accent .card-link { color: var(--teal-200); }

/* ---------- Sophos ---------- */
.sophos { overflow: hidden; background: radial-gradient(60% 80% at 0% 50%, rgba(11,129,133,.22), transparent 70%), var(--ink-950); }
.sophos-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.sophos-badge-wrap { display: grid; place-items: center; }
.partner-badge { position: relative; width: min(320px, 80vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; justify-items: center; text-align: center;
  background: radial-gradient(circle at 30% 25%, #f4f7f7, #c3ccce 45%, #8a979a 80%, #6c787b); color: var(--ink-900);
  box-shadow: inset 0 2px 6px rgba(255,255,255,.8), inset 0 -10px 20px rgba(0,0,0,.25), 0 30px 70px -20px rgba(11,129,133,.6); }
.partner-badge::before { content: ""; position: absolute; inset: 14px; border-radius: 50%; border: 2px solid rgba(15,36,35,.25); }
.pb-ring { position: absolute; inset: -18px; border-radius: 50%; border: 1px dashed rgba(143,216,213,.4); animation: spin 40s linear infinite; }
.pb-shield { width: 64px; height: 64px; fill: none; stroke: var(--petrol-700); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.pb-brand { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; letter-spacing: .14em; }
.pb-tier { margin-top: 6px; padding: 4px 14px; border-radius: 999px; background: var(--ink-900); color: #e5ecec; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sophos-copy > p { color: var(--on-dark-muted); font-size: 1.06rem; max-width: 640px; }
.sophos-products { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0 24px; }
.product { display: flex; gap: 14px; padding: 18px; border-radius: 14px; background: rgba(255,255,255,.035); border: 1px solid rgba(143,216,213,.14); transition: border-color .3s, background .3s, transform .3s var(--ease); }
.product:hover { border-color: rgba(143,216,213,.45); background: rgba(11,129,133,.1); transform: translateY(-3px); }
.product .ico { width: 40px; height: 40px; padding: 9px; border-radius: 11px; background: rgba(11,129,133,.2); color: var(--teal-200); }
.product h3 { font-size: 1rem; margin-bottom: 4px; }
.product p { margin: 0; font-size: .88rem; color: var(--on-dark-muted); }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.pill-list li { padding: 7px 16px; border-radius: 999px; border: 1px solid rgba(143,216,213,.3); color: var(--teal-200); font-size: .88rem; font-weight: 500; }

/* ---------- Facturación ---------- */
.facturacion { background: linear-gradient(180deg, var(--bg-soft), #fff); }
.fe-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.fe-panel::before { content: ""; position: absolute; width: 420px; height: 420px; left: -160px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(11,129,133,.14), transparent 70%); }
.fe-copy { position: relative; }
.lead-sm { font-size: 1.08rem; color: var(--text-muted); margin-bottom: 30px; }
.btn-invoice { background: linear-gradient(135deg, var(--brown-900), var(--brown-700)); color: #fff; box-shadow: 0 14px 34px -14px rgba(48,38,28,.8); white-space: normal; text-align: left; }
.btn-invoice .ico { width: 26px; height: 26px; color: var(--teal-200); }
.btn-invoice:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(48,38,28,.9); background: linear-gradient(135deg, var(--petrol-700), var(--teal-600)); }
.btn-invoice:hover .ico { transform: none; color: #fff; }
.btn-invoice.is-disabled { opacity: .7; cursor: not-allowed; }
.fe-note { margin-top: 16px; font-size: .92rem; color: var(--text-muted); }
.fe-benefits { position: relative; display: grid; gap: 14px; }
.fe-benefits li { display: flex; gap: 16px; padding: 18px 20px; border-radius: 14px; background: var(--bg-soft); border: 1px solid transparent; transition: border-color .3s, transform .3s var(--ease), background .3s; }
.fe-benefits li:hover { border-color: rgba(11,129,133,.3); background: #fff; transform: translateX(4px); }
.fe-ico { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; }
.fe-benefits h3 { font-size: 1.02rem; margin-bottom: 4px; }
.fe-benefits p { margin: 0; color: var(--text-muted); font-size: .93rem; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.step-n { display: inline-block; margin-bottom: 14px; font-family: var(--font-head); font-size: 2rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -14px; width: 8px; height: 8px; border-top: 2px solid var(--teal-600); border-right: 2px solid var(--teal-600); transform: rotate(45deg); opacity: .5; }

/* ---------- Proyectos ---------- */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--ink-900), var(--petrol-700)); display: grid; place-items: center; color: rgba(143,216,213,.55); overflow: hidden; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-media img { transform: scale(1.05); }
.project-media .ico { width: 46px; height: 46px; stroke-width: 1.3; }
.project-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-cat { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-600); }
.project-body h3 { margin: 0; }
.project-body p { margin: 0; color: var(--text-muted); font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { padding: 4px 10px; border-radius: 999px; background: var(--bg-soft); font-size: .78rem; font-weight: 500; color: var(--sage-700); }
.results { display: grid; gap: 4px; font-size: .9rem; color: var(--text); }
.results li::before { content: "↗ "; color: var(--teal-600); font-weight: 700; }
.project-card--placeholder { border-style: dashed; background: var(--bg-soft); }
.project-card--placeholder .project-media { background: repeating-linear-gradient(135deg, #e6eeed 0 12px, #edf3f2 12px 24px); color: #9fb6b3; }
.project-card--placeholder h3 { color: var(--text-muted); }

/* ---------- Nosotros ---------- */
.about { background: radial-gradient(60% 70% at 100% 0%, rgba(54,84,79,.55), transparent 70%), radial-gradient(40% 50% at 0% 100%, rgba(64,56,49,.5), transparent 70%), var(--ink-950); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-copy p { color: var(--on-dark-muted); font-size: 1.06rem; }
.tagline { margin-top: 28px; font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: #fff; letter-spacing: .02em; }
.tagline span { color: var(--teal-400); margin: 0 .3em; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.value { padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(143,216,213,.14); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.value:hover { transform: translateY(-4px); border-color: rgba(143,216,213,.4); background: rgba(11,129,133,.1); }
.value .ico { width: 38px; height: 38px; padding: 8px; margin-bottom: 14px; border-radius: 10px; background: var(--grad); color: #fff; }
.value h3 { font-size: 1.05rem; margin-bottom: 4px; }
.value p { margin: 0; font-size: .92rem; color: var(--on-dark-muted); }
.value-wide { grid-column: 1 / -1; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 860px; }
.faq-list { display: grid; gap: 12px; }
.faq { border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq[open] { border-color: rgba(11,129,133,.4); box-shadow: var(--shadow); }
.faq summary { position: relative; padding: 20px 60px 20px 24px; font-family: var(--font-head); font-weight: 600; font-size: 1.04rem; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B8185' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .3s var(--ease); }
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 20px; color: var(--text-muted); }
.faq-body p { margin: 0; }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 clamp(72px, 10vw, 110px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: clamp(32px, 5vw, 56px); border-radius: 28px; color: #fff; background: radial-gradient(60% 120% at 100% 0%, rgba(143,216,213,.25), transparent 60%), var(--grad); box-shadow: var(--shadow-lg); }
.cta-inner h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #fff; margin-bottom: 10px; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; flex: none; }

/* ---------- Contacto ---------- */
#contacto { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info > p { color: var(--text-muted); font-size: 1.06rem; }
.contact-actions { display: grid; gap: 12px; margin: 28px 0; }
.contact-btn { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none !important; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.contact-btn:hover { transform: translateX(6px); border-color: rgba(11,129,133,.45); box-shadow: var(--shadow); }
.cb-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgba(11,129,133,.1); color: var(--teal-600); flex: none; transition: background .3s, color .3s; }
.contact-btn:hover .cb-ico { background: var(--grad); color: #fff; }
.cb-wa .cb-ico { background: rgba(37,211,102,.12); color: #1aa954; }
.cb-wa:hover .cb-ico { background: #25D366; color: #fff; }
.contact-btn strong { display: block; font-size: 1rem; }
.contact-btn small { color: var(--text-muted); font-size: .9rem; }
.contact-meta { display: grid; gap: 10px; color: var(--text-muted); }
.contact-meta li { display: flex; align-items: center; gap: 10px; }
.contact-meta .ico { color: var(--teal-600); }

.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form h3 { font-size: 1.4rem; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
.field label span { color: var(--teal-600); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg-soft);
  font: inherit; font-size: 1rem; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c4d4d1; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-600); background: #fff; box-shadow: 0 0 0 4px rgba(11,129,133,.14); }
.field .invalid { border-color: #c0392b !important; background: #fff7f6; }
.field-error { min-height: 0; margin: 5px 0 0; font-size: .84rem; color: #b3261e; }
.field-error:empty { display: none; }
.field-check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 4px; }
.field-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--teal-600); }
.field-check label { font-weight: 400; font-size: .9rem; color: var(--text-muted); margin: 0; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#f-submit { margin-top: 18px; }
.spinner { display: none; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }
.form-status { margin-top: 14px; font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.ok { padding: 14px 16px; border-radius: 12px; background: #e8f6f1; color: #135e48; border: 1px solid #b9e3d4; }
.form-status.err { padding: 14px 16px; border-radius: 12px; background: #fdf0ee; color: #8c1d18; border: 1px solid #f2c7c1; }
.form-hint { margin: 10px 0 0; font-size: .82rem; color: var(--text-muted); }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink-950); color: var(--on-dark-muted); padding: 72px 0 0; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 9px; }
.site-footer a { color: var(--on-dark-muted); transition: color .2s; }
.site-footer a:hover { color: var(--teal-200); text-decoration: none; }
.tagline-sm { margin: 14px 0 10px; font-family: var(--font-head); color: var(--teal-200); font-weight: 600; letter-spacing: .04em; }
.footer-contact li, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer-contact .ico { color: var(--teal-400); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }
.footer-bottom p { margin: 0; }

/* ---------- Flotantes ---------- */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 26px -8px rgba(37,211,102,.75); transition: transform .3s var(--ease); }
.fab-wa .ico { width: 30px; height: 30px; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.6s infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }
.fab-wa:hover { transform: scale(1.08); }
.to-top { position: fixed; right: 27px; bottom: 92px; z-index: 90; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--ink-900); color: #fff; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(0,0,0,.5); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s, transform .3s var(--ease), visibility .3s, background .3s; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-600); }

/* ---------- Animaciones de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Página legal ---------- */
.legal { padding: calc(var(--header-h) + 60px) 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; margin-bottom: 1em; }
.legal-header { background: var(--ink-950); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services-grid, .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(340px, 86vw); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 24px; padding: 96px 24px 32px; background: var(--ink-950); box-shadow: -20px 0 60px rgba(0,0,0,.5); transform: translateX(100%); visibility: hidden; transition: transform .4s var(--ease), visibility .4s; z-index: -1; }
  .nav-open .main-nav { transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav ul a { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .main-nav ul a::after { display: none; }
  .nav-cta { width: 100%; }
  body.nav-open { overflow: hidden; }
  body.nav-open::before { content: ""; position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.5); }
  .hero-grid, .sophos-grid, .about-grid, .contact-grid, .fe-panel { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .hero { min-height: auto; }
  .scroll-cue { display: none; }
  .sophos-grid { gap: 48px; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .services-grid, .projects-grid, .steps, .sophos-products, .values, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .float-card { display: none; }
  .btn-xl { width: 100%; padding: 1.1em 1.2em; font-size: .98rem; }
  .fab-wa { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .to-top { right: 21px; bottom: 82px; }
  .footer-bottom { flex-direction: column; }
}

/* Movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .net-svg .pulses { display: none; }
}

/* ---------- Logo SAG ---------- */
.brand { gap: 8px; }
.brand-logo { width: auto; height: 58px; transition: transform .4s var(--ease); }
.brand:hover .brand-logo { transform: scale(1.04); }
.brand .brand-text { font-size: .82rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--on-dark-muted); align-self: flex-end; margin-bottom: 11px; margin-left: -4px; }
.site-header.scrolled .brand-logo { height: 50px; }
.site-footer .brand-logo { height: 64px; }

/* ---------- Acciones del menú ---------- */
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn-ghost .ico { width: 1.05em; height: 1.05em; color: var(--teal-200); }
.nav-actions .btn-ghost:hover .ico { transform: none; }

/* ---------- INVOSAG ---------- */
.fe-product { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -6px 0 16px; color: var(--text-muted); font-size: .95rem; }
.fe-product-name { padding: 5px 14px; border-radius: 8px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; }
.fe-integrations { margin: 0 0 28px; }
.fe-int-title { margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-700); }
.fe-int-list { display: flex; flex-wrap: wrap; gap: 8px; }
.fe-int-list li { padding: 7px 14px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; color: var(--petrol-700); }
.fe-int-list .fe-int-soon { background: transparent; border-style: dashed; color: var(--text-muted); font-weight: 500; }
.fe-access { margin: 14px 0 0; font-size: .92rem; color: var(--text-muted); }

@media (max-width: 1080px) {
  .nav-actions { flex-direction: column; align-items: stretch; }
  .nav-actions .btn { width: 100%; }
}
@media (min-width: 1081px) and (max-width: 1240px) {
  .main-nav { gap: 14px; }
  .main-nav ul a { padding: 8px 9px; }
}
.nav-actions.nav-actions--row { flex-direction: row; align-items: center; }
.nav-actions.nav-actions--row .btn { width: auto; }
@media (max-width: 480px) { .nav-actions--row .btn { padding: .6em .8em; font-size: .8rem; } .site-header:not(:has(.nav-toggle)) .brand-text { display: none; } }
