/* ===== LBK Ingeniería — paleta naranja / blanco ===== */
:root {
  --orange: #ff6a00;
  --orange-dark: #e65100;
  --amber: #ffa31a;
  --orange-text: #d24a00;     /* naranja con contraste suficiente para texto pequeño */
  --orange-soft: #fff1e6;
  --grad: linear-gradient(135deg, #ffa31a 0%, #ff6a00 55%, #ff4d00 100%);
  --ink: #1f2328;
  --text: #3f454d;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #fafaf9;
  --line: #e7e5e4;
  --dark: #1c1f23;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -12px rgba(0,0,0,.12);
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.015em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .5rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-text);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--orange); }
.section-head .eyebrow::after { content: ''; width: 24px; height: 2px; background: var(--orange); }
.accent { color: var(--orange); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.7rem; border-radius: 6px; border: 0; cursor: pointer;
  font: 700 .95rem/1 inherit; color: #fff; background: var(--grad);
  box-shadow: 0 8px 20px -8px rgba(255,106,0,.65);
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(255,106,0,.75); }
.btn-sm { padding: .6rem 1.1rem; font-size: .88rem; }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px #d6d3d1; }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-text); }
.btn-light { background: #fff; color: var(--orange-dark); box-shadow: 0 8px 20px -10px rgba(0,0,0,.35); }
.btn-light:hover { background: #fff; box-shadow: 0 12px 26px -10px rgba(0,0,0,.4); }
.btn-block { width: 100%; }

/* ===== Cabecera ===== */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-size: 1.15rem; letter-spacing: -.01em; }
.brand strong { color: var(--orange); font-weight: 800; }
.brand img { border-radius: 6px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a:not(.btn) { color: var(--text); font-weight: 500; font-size: .93rem; position: relative; transition: color .2s; }
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .2s;
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background: var(--grad);
  padding: 150px 0 110px;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(520px 380px at 88% 30%, rgba(255,255,255,.22), transparent 70%),
    radial-gradient(420px 320px at 5% 100%, rgba(120,20,0,.25), transparent 70%),
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 36px 36px;
}
.hero h1, .hero .lead, .hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: #fff; }
.hero .accent {
  color: #fff;
  background: linear-gradient(transparent 62%, rgba(255,214,102,.75) 62%, rgba(255,214,102,.75) 92%, transparent 92%);
  padding: 0 .1em;
}
.hero .btn { background: #fff; color: var(--orange-dark); box-shadow: 0 10px 24px -10px rgba(80,20,0,.5); }
.hero .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.75); }
.hero .btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero .hero-badges { border-color: rgba(255,255,255,.3); }
.hero .hero-badges li { color: #fff; }
.hero .hero-badges li::before { background: #ffd666; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; margin-bottom: 1.25rem; }
.lead { font-size: 1.12rem; max-width: 34em; margin-bottom: 2rem; color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.25rem; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.hero-badges li { font-size: .88rem; font-weight: 500; color: var(--ink); display: flex; align-items: center; gap: .5rem; }
.hero-badges li::before { content: ''; width: 6px; height: 6px; background: var(--orange); border-radius: 1px; }
.hero-visual { position: relative; }
.hero-visual { padding: 40px 30px 50px; }

/* Tarjeta orden de trabajo */
.ot-card {
  position: relative; z-index: 1;
  background: #fff; color: var(--ink); border-radius: 14px; padding: 1.5rem;
  max-width: 380px; margin: 0 auto;
  box-shadow: 0 30px 60px -20px rgba(90,25,0,.55);
}
.ot-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.ot-head small { display: block; font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.ot-head strong { font-size: 1.25rem; }
.pill { font-size: .75rem; font-weight: 700; color: var(--orange-dark); background: var(--orange-soft); padding: .35rem .75rem; border-radius: 999px; }
.ot-meta { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; padding: 1rem 0; }
.ot-meta dt { font-size: .72rem; color: var(--muted); }
.ot-meta dd { font-size: .88rem; font-weight: 600; }
.ot-progress-top { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: .4rem; }
.ot-progress-top b { color: var(--ink); }
.ot-progress .bar { height: 8px; border-radius: 99px; background: #f1efed; overflow: hidden; }
.ot-progress .bar i { display: block; height: 100%; width: 75%; border-radius: inherit; background: var(--grad); animation: fill 1.6s ease-out; }
@keyframes fill { from { width: 0; } }
.ot-checks { list-style: none; display: grid; gap: .55rem; margin-top: 1.1rem; }
.ot-checks li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.ot-checks li::before {
  content: ''; width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1.5px solid #d6d3d1; background: #fff center / 12px no-repeat;
}
.ot-checks li.done { color: var(--ink); }
.ot-checks li.done::before {
  border-color: transparent;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Tarjetas flotantes */
.mini-card {
  position: absolute; z-index: 2;
  border-radius: 12px; padding: .85rem 1rem;
  box-shadow: 0 20px 40px -16px rgba(60,15,0,.55);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-10px); } }
.kpi-card { top: 0; right: 0; background: #fff; color: var(--ink); display: flex; align-items: center; gap: .8rem; }
.kpi-card small { display: block; font-size: .72rem; color: var(--muted); }
.kpi-card strong { font-size: .95rem; }
.ring {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--orange) 0 93%, #f1efed 93% 100%);
}
.ring span { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.code-card { bottom: 0; left: 0; background: var(--dark); color: #e5e7eb; animation-delay: -3s; }
.code-card code { display: block; font: 500 .85rem/1.4 ui-monospace, Consolas, monospace; margin-bottom: .45rem; }
.code-card .k { color: #ffa31a; }
.code-card .f { color: #7dd3fc; }
.code-ok { display: flex; align-items: center; gap: .5rem; font-size: .78rem; color: #a8adb3; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px rgba(22,163,74,.15); }

/* ===== Secciones ===== */
.section { padding: 100px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head p { font-size: 1.05rem; color: var(--muted); }

/* Fusión */
.fusion { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.5rem; align-items: center; }
.fusion-card {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--orange);
  border-radius: var(--radius); padding: 2.25rem; height: 100%;
}
.fusion-card p { margin-bottom: 1.25rem; }
.icon-xl { width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 1.25rem; background: var(--grad); box-shadow: 0 8px 18px -8px rgba(255,106,0,.7); }
.icon-xl svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fusion-plus {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--orange); color: var(--orange); font-size: 1.6rem; font-weight: 400;
}
.check { list-style: none; display: grid; gap: .5rem; }
.check li { position: relative; padding-left: 1.6rem; font-weight: 500; color: var(--ink); font-size: .95rem; }
.check li::before {
  content: ''; position: absolute; left: .15rem; top: .45em; width: .45rem; height: .75rem;
  border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 3.5rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
}
.stat { text-align: center; padding: 1.75rem 1rem; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat strong { display: block; font-size: 1.9rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .88rem; color: var(--muted); }

/* Tarjetas */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; position: relative; transition: border-color .25s, box-shadow .25s;
}
.card::before {
  content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px;
  background: var(--grad); border-radius: var(--radius) var(--radius) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.card:hover { box-shadow: 0 18px 40px -18px rgba(255,106,0,.45); transform: translateY(-4px); }
.card { transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover .icon { background: var(--grad); }
.card:hover .icon svg { stroke: #fff; }
.icon, .icon svg { transition: background .25s, stroke .25s; }
.card:hover::before { transform: scaleX(1); }
.card p { color: var(--muted); font-size: .95rem; }
.icon {
  width: 46px; height: 46px; border-radius: 8px; display: grid; place-items: center; margin-bottom: 1.25rem;
  background: var(--orange-soft);
}
.icon svg { width: 23px; height: 23px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split p { margin-bottom: 1.5rem; }
.feature-list { list-style: none; display: grid; gap: .85rem; margin-bottom: 2rem; }
.feature-list li { padding-left: 1.6rem; position: relative; }
.feature-list li::before {
  content: ''; position: absolute; left: .15rem; top: .4em; width: .45rem; height: .75rem;
  border: solid var(--orange); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.feature-list strong { color: var(--ink); }

/* Dashboard mock */
.dash { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(0,0,0,.2); }
.dash-top { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.dash-top span { width: 10px; height: 10px; border-radius: 50%; background: #d6d3d1; }
.dash-body { padding: 1.5rem; display: grid; gap: 1.25rem; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.dash-kpis div { border: 1px solid var(--line); border-radius: 6px; padding: .9rem; }
.dash-kpis small { display: block; color: var(--muted); font-size: .75rem; }
.dash-kpis b { color: var(--ink); font-size: 1.5rem; }
.ok { color: #16a34a !important; }
.warn { color: var(--orange-dark) !important; }
.dash-bars { display: flex; align-items: flex-end; gap: .6rem; height: 120px; border: 1px solid var(--line); border-radius: 6px; padding: 1rem; }
.dash-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--orange); }
.dash-bars i:nth-child(odd) { background: #fdba74; }
.dash-rows { display: grid; gap: .5rem; }
.dash-rows div { display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 6px; padding: .7rem .9rem; font-size: .85rem; color: var(--text); }
.dash-rows em { font-style: normal; font-weight: 600; }

/* Pasos */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.steps li { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; border: 1px solid var(--line); }
.steps span {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 8px; background: var(--grad); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: 0 8px 18px -8px rgba(255,106,0,.7);
}
.steps p { color: var(--muted); font-size: .95rem; }

/* Banda CTA */
.band {
  padding: 64px 0;
  background:
    radial-gradient(500px 260px at 90% 50%, rgba(255,106,0,.35), transparent 70%),
    var(--dark);
}
.band h2 { color: #fff; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.band h2 { color: #fff; margin: 0; max-width: 24em; font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 600; }

/* Contacto */
.contact-list { list-style: none; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; font-weight: 500; color: var(--ink); }
.contact-list svg { width: 40px; height: 40px; padding: 9px; border-radius: 6px; background: var(--orange-soft); fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact-list a:hover { color: var(--orange-text); }

.form { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 2rem; box-shadow: var(--shadow); display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid #d6d3d1; border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(249,115,22,.15); }
.form-msg { font-size: .9rem; min-height: 1.2em; text-align: center; }
.form-msg.ok { color: #16a34a !important; }
.form-msg.err { color: #dc2626; }

/* Pie */
.footer { background: var(--dark); color: #a8adb3; padding: 48px 0; border-top: 3px solid var(--orange); }
.footer .brand { color: #fff; }
.footer-inner { display: grid; justify-items: center; gap: .75rem; text-align: center; }
.copy { font-size: .85rem; color: #7b8188; }

/* Animación de aparición */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mini-card, .ot-progress .bar i { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 120px 0 80px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fusion { grid-template-columns: 1fr; }
  .fusion-plus { margin: 0 auto; }
  .band-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .5rem 20px 1.25rem;
    border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 1rem; }
}
@media (max-width: 600px) {
  .section { padding: 72px 0; }
  .cards, .steps, .form .row { grid-template-columns: 1fr; }
  .fusion-card, .form { padding: 1.5rem; }
  .hero-badges { gap: .75rem 1.25rem; }
  .hero-visual { padding: 56px 0 64px; }
  .kpi-card { right: -6px; }
  .code-card { left: -6px; }
}

/* ===== Botón modo claro / oscuro ===== */
.nav-links { order: 2; margin-left: auto; }
.theme-toggle { order: 3; margin-left: 1.25rem; }
.nav-toggle { order: 4; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 8px; flex: none; cursor: pointer;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  transition: border-color .2s, color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--orange); color: var(--orange); }
.theme-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Campo trampa anti-spam */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }

/* ===== Proyectos ===== */
.projects { background: var(--dark); position: relative; overflow: hidden; }
.projects::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 15% 0%, rgba(255,106,0,.22), transparent 70%),
              radial-gradient(500px 300px at 90% 100%, rgba(255,163,26,.12), transparent 70%);
}
.projects .container { position: relative; }
.projects .section-head h2 { color: #fff; }
.projects .section-head p { color: #a8adb3; }
.projects .eyebrow { color: #ff9a4d; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project {
  position: relative; border-radius: 12px; padding: 2rem;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  color: #c9cdd3; transition: border-color .25s, transform .25s, background .25s;
}
.project::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad); border-radius: 12px 12px 0 0;
}
.project:hover { border-color: rgba(255,106,0,.55); background: rgba(255,255,255,.06); transform: translateY(-4px); }
.project h3 { color: #fff; font-size: 1.5rem; margin-bottom: .75rem; }
.project p { margin-bottom: 1.5rem; font-size: .97rem; }
.project-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.project-icon {
  width: 52px; height: 52px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad); box-shadow: 0 10px 22px -10px rgba(255,106,0,.8);
}
.project-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.project-tag {
  font-size: .75rem; font-weight: 600; letter-spacing: .04em; color: #ffb37a;
  border: 1px solid rgba(255,154,77,.4); padding: .35rem .8rem; border-radius: 999px;
}
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  font-size: .8rem; font-weight: 500; color: #e5e7eb;
  background: rgba(255,255,255,.07); padding: .4rem .75rem; border-radius: 6px;
}

/* ===== Modo oscuro ===== */
[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f3f4f6;
  --text: #c9cdd3;
  --muted: #9aa1a9;
  --bg: #121417;
  --bg-alt: #171a1e;
  --surface: #1d2126;
  --line: #2c3138;
  --orange-text: #ff9a4d;
  --orange-soft: rgba(255,106,0,.15);
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 28px -12px rgba(0,0,0,.6);
}
[data-theme="dark"] body { background: var(--bg); }
[data-theme="dark"] .header { background: rgba(18,20,23,.92); }
[data-theme="dark"] .header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.4); }
[data-theme="dark"] .hero { background: linear-gradient(135deg, #f08a12 0%, #e05200 55%, #9c3300 100%); }
[data-theme="dark"] .fusion-card,
[data-theme="dark"] .stats,
[data-theme="dark"] .card,
[data-theme="dark"] .dash,
[data-theme="dark"] .steps li,
[data-theme="dark"] .form,
[data-theme="dark"] .fusion-plus { background: var(--surface); }
[data-theme="dark"] .dash-top { background: #22272d; }
[data-theme="dark"] .dash-top span { background: #3a4049; }
[data-theme="dark"] .form input,
[data-theme="dark"] .form select,
[data-theme="dark"] .form textarea { background: #15181c; border-color: var(--line); }
[data-theme="dark"] .btn-outline { box-shadow: inset 0 0 0 1.5px var(--line); }
[data-theme="dark"] .projects { background: #0d0f12; }
[data-theme="dark"] .band { background: radial-gradient(500px 260px at 90% 50%, rgba(255,106,0,.3), transparent 70%), #0d0f12; border-top: 1px solid var(--line); }
[data-theme="dark"] .footer { background: #0d0f12; }
[data-theme="dark"] .form-msg.ok { color: #4ade80 !important; }
[data-theme="dark"] .form-msg.err { color: #f87171; }
@media (max-width: 760px) {
  .theme-toggle { margin-left: auto; margin-right: .5rem; }
  [data-theme="dark"] .nav-links { background: var(--bg); }
}
@media (max-width: 960px) {
  .project-grid { grid-template-columns: 1fr; }
}

/* Las tarjetas blancas del inicio siempre usan colores de modo claro (se ven bien sobre el naranja) */
.ot-card, .kpi-card {
  --ink: #1f2328; --text: #3f454d; --muted: #6b7280;
  --line: #e7e5e4; --orange-soft: #fff1e6;
  color-scheme: light;
}
