/* ==========================================================================
   MD TECH SOLUTIONS — styles.css
   Estética: negro profundo / navy, azul eléctrico, plateado metálico.
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --bg-deep:   #050814;
  --bg-navy:   #07101F;
  --bg-panel:  #0A0F1F;
  --blue:      #0077FF;
  --cyan:      #00B8FF;
  --silver:    #C9D1D9;
  --silver-hi: #E6EDF3;
  --white:     #F2F4F8;
  --gray:      #8A94A6;
  --line:      rgba(201, 209, 217, 0.12);
  --line-blue: rgba(0, 119, 255, 0.35);

  --font-display: "Sora", "Space Grotesk", sans-serif;
  --font-body:    "Inter", sans-serif;
  --font-tech:    "Space Grotesk", monospace;

  --radius: 16px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-deep);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.18; color: var(--silver-hi); }
h3 { font-size: 1.08rem; color: var(--silver-hi); }
p  { color: var(--gray); }

::selection { background: rgba(0, 119, 255, 0.35); color: var(--white); }

/* Focus visible accesible */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Línea neón de progreso de scroll ---------- */
.scroll-beam {
  position: fixed;
  top: 0; left: 0;
  width: 3px; height: 100vh;
  z-index: 90;
  background: rgba(201, 209, 217, 0.05);
  pointer-events: none;
}
.scroll-beam__fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 12px rgba(0, 184, 255, 0.7);
  transition: height 0.08s linear;
}
.scroll-beam__spark {
  position: absolute;
  left: 50%; top: 0;
  width: 9px; height: 9px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px 4px rgba(0, 184, 255, 0.8);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--blue), #0057C2);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(0, 184, 255, 0.25), 0 8px 28px rgba(0, 119, 255, 0.28);
}
.btn--primary::after { /* brillo que cruza el botón */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(0,184,255,0.45), 0 12px 36px rgba(0,119,255,0.42); }

.btn--ghost {
  background: rgba(10, 15, 31, 0.6);
  border-color: var(--line);
  color: var(--silver);
}
.btn--ghost:hover { border-color: var(--line-blue); color: var(--white); transform: translateY(-2px); }
.btn--nav { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
.nav.is-scrolled {
  background: rgba(5, 8, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}
.nav__glowline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 184, 255, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}
.nav.is-scrolled .nav__glowline { opacity: 1; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__tag { font-family: var(--font-tech); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--silver); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a:not(.btn) {
  font-size: 0.9rem;
  color: var(--silver);
  position: relative;
  transition: color 0.3s;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 184, 255, 0.8);
  transition: width 0.35s var(--ease);
}
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__links a:not(.btn):hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.nav__toggle span { width: 20px; height: 1.5px; background: var(--silver); transition: transform 0.3s, opacity 0.3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 90px;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(0, 119, 255, 0.18), transparent 65%),
    radial-gradient(700px 420px at 85% 80%, rgba(0, 184, 255, 0.08), transparent 60%),
    var(--bg-deep);
  overflow: hidden;
}
.hero__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.hero__glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 119, 255, 0.14), transparent 65%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}
.hero__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

.hero__emblem { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; }
.hero__emblem svg { filter: drop-shadow(0 0 22px rgba(0, 119, 255, 0.35)); }
.emblem-ring { transform-origin: 60px 60px; animation: ringSpin 26s linear infinite; }
@keyframes ringSpin { to { transform: rotate(360deg); } }
.hero__emblem-tag { font-family: var(--font-tech); font-size: 0.66rem; letter-spacing: 0.5em; color: var(--silver); padding-left: 0.5em; }

.hero__title {
  font-size: clamp(2rem, 5.2vw, 3.7rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--silver-hi);
  max-width: 18ch;
}
.accent-gradient {
  background: linear-gradient(95deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle { margin-top: 20px; max-width: 56ch; font-size: clamp(0.98rem, 1.5vw, 1.12rem); }
.hero__cta { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 170px));
  gap: 14px;
  margin-top: 56px;
}
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(10, 15, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-align: left;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.metric-card:hover {
  border-color: var(--line-blue);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 119, 255, 0.12);
}
.metric-card__label { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--silver-hi); }
.metric-card__line { width: 26px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: 2px; }
.metric-card__desc { font-size: 0.74rem; color: var(--gray); letter-spacing: 0.04em; }

.hero__scrollhint {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.hero__scrollhint-line {
  width: 1px; height: 42px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: hintPulse 2.2s ease-in-out infinite;
}
@keyframes hintPulse { 0%,100% { opacity: 0.25; } 50% { opacity: 1; } }
.hero__scrollhint-text { font-family: var(--font-tech); font-size: 0.62rem; letter-spacing: 0.3em; color: var(--gray); }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; position: relative; }
.section--alt {
  background:
    radial-gradient(800px 380px at 12% 8%, rgba(0, 119, 255, 0.07), transparent 60%),
    var(--bg-navy);
  border-block: 1px solid var(--line);
}
.section__head { max-width: 640px; margin-bottom: 56px; }
.section__head p { margin-top: 14px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-tech);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid var(--line-blue);
  border-radius: 100px;
  background: rgba(0, 119, 255, 0.06);
}

/* ---------- Cards de servicios ---------- */
.cards-grid--services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  position: relative;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(13, 19, 38, 0.85), rgba(7, 11, 24, 0.85));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.card:hover {
  border-color: var(--line-blue);
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 119, 255, 0.14);
}
/* Brillo que sigue al mouse (variables seteadas por JS) */
[data-shine]::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(0, 184, 255, 0.1), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
[data-shine]:hover::before { opacity: 1; }

.card__icon {
  width: 50px; height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  margin-bottom: 20px;
  background: rgba(0, 119, 255, 0.07);
}
.card__icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.9rem; }

/* ---------- Por qué elegirnos ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 31, 0.5);
  transition: border-color 0.35s, background 0.35s;
}
.why-item:hover { border-color: var(--line-blue); background: rgba(0, 119, 255, 0.05); }
.why-item__dot {
  flex: 0 0 auto;
  width: 9px; height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 184, 255, 0.8);
}
.why-item h3 { font-size: 1rem; margin-bottom: 6px; }
.why-item p { font-size: 0.88rem; }

/* ---------- Proceso ---------- */
.process { position: relative; max-width: 760px; margin-inline: auto; padding-left: 44px; }
.process__rail {
  position: absolute;
  left: 13px; top: 8px; bottom: 8px;
  width: 2px;
  background: rgba(201, 209, 217, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.process__rail-fill {
  width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
  box-shadow: 0 0 14px rgba(0, 184, 255, 0.7);
  transition: height 0.15s linear;
}
.process__step { position: relative; padding: 22px 0; }
.process__node {
  position: absolute;
  left: -39px; top: 32px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--gray);
  background: var(--bg-deep);
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.process__step.is-lit .process__node {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 16px 3px rgba(0, 184, 255, 0.65);
}
.process__body {
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 31, 0.55);
  transition: border-color 0.4s;
}
.process__step.is-lit .process__body { border-color: var(--line-blue); }
.process__num { font-family: var(--font-tech); font-size: 0.72rem; letter-spacing: 0.25em; color: var(--cyan); }
.process__body h3 { margin: 6px 0 8px; }
.process__body p { font-size: 0.9rem; }

/* ---------- Showcase / dashboard ---------- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.showcase__copy p { margin-top: 14px; }
.showcase__list { margin-top: 22px; display: grid; gap: 12px; }
.showcase__list li {
  position: relative;
  padding-left: 26px;
  color: var(--silver);
  font-size: 0.93rem;
}
.showcase__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 12px; height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 8px rgba(0, 184, 255, 0.7);
}

.showcase__visual { position: relative; }
.dash {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #0C1428, #070D1C);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 40px rgba(0, 119, 255, 0.08);
  overflow: hidden;
}
.dash__topbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.dash__dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(201, 209, 217, 0.18); }
.dash__title { margin-left: 10px; font-family: var(--font-tech); font-size: 0.7rem; letter-spacing: 0.16em; color: var(--gray); }
.dash__body { padding: 20px; display: grid; gap: 18px; }

.dash__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dash__kpi {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 4px;
}
.dash__kpi-label { font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gray); }
.dash__kpi-value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--silver-hi); }
.dash__kpi-trend { font-size: 0.68rem; color: var(--gray); }
.dash__kpi-trend.up { color: var(--cyan); }

.dash__chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: rgba(255, 255, 255, 0.015); }
.dash__chart svg { width: 100%; height: 110px; }
.dash__chart-line {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(0, 184, 255, 0.7));
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
}
.dash.is-visible .dash__chart-line { animation: drawLine 2.2s var(--ease) forwards 0.3s; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.dash__rows { display: grid; gap: 9px; }
.dash__row { display: flex; align-items: center; gap: 10px; }
.dash__row span:first-child { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 184, 255, 0.5); flex: 0 0 auto; }
.dash__row span:last-child { height: 7px; border-radius: 4px; background: rgba(201, 209, 217, 0.1); }

.float-panel {
  position: absolute;
  display: grid;
  gap: 3px;
  padding: 14px 18px;
  border: 1px solid var(--line-blue);
  border-radius: 12px;
  background: rgba(7, 16, 31, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.5), 0 0 18px rgba(0, 119, 255, 0.14);
}
.float-panel__label { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); }
.float-panel__value { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--silver-hi); }
.float-panel--a { top: -22px; right: -14px; animation: floatA 6s ease-in-out infinite; }
.float-panel--b { bottom: -24px; left: -18px; animation: floatB 7s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ---------- Proyectos ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.project {
  position: relative;
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 15, 31, 0.5);
  overflow: hidden;
  transition: border-color 0.35s, transform 0.35s var(--ease), box-shadow 0.35s;
}
.project:hover {
  border-color: var(--line-blue);
  transform: translateY(-5px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45), 0 0 20px rgba(0, 119, 255, 0.1);
}
.project h3 { font-size: 1rem; margin-bottom: 8px; }
.project p { font-size: 0.86rem; }

/* ---------- Contacto ---------- */
.section--contact {
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(0, 119, 255, 0.1), transparent 60%),
    var(--bg-navy);
  border-top: 1px solid var(--line);
}
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact__info p { margin-top: 14px; max-width: 44ch; }
.contact__data { margin-top: 30px; display: grid; gap: 14px; }
.contact__data li { display: grid; gap: 2px; }
.contact__data-label { font-family: var(--font-tech); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan); }
.contact__data a, .contact__data li > span:last-child { color: var(--silver-hi); font-size: 1rem; transition: color 0.3s; }
.contact__data a:hover { color: var(--cyan); }
.contact__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 24, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--silver); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 8, 20, 0.75);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field select { appearance: none; cursor: pointer; }
.field select option { background: var(--bg-navy); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.18);
  outline: none;
}
.form-status {
  grid-column: 1 / -1;
  min-height: 1.4em;
  font-size: 0.88rem;
  color: var(--cyan);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s, transform 0.5s;
}
.form-status.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding: 64px 0 44px;
}
.footer__phrase { margin-top: 18px; max-width: 34ch; font-size: 0.9rem; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--silver-hi); margin-bottom: 6px; }
.footer__col a, .footer__col span { font-size: 0.88rem; color: var(--gray); transition: color 0.3s; }
.footer__col a:hover { color: var(--cyan); }
.footer__bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  font-size: 0.78rem;
  color: var(--gray);
}

/* ---------- Recorrido de luz (vivorita neón) ---------- */
main { position: relative; }
.trail-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.trail-layer svg { display: block; }

/* ---------- Tilt 3D (transform aplicado por JS) ---------- */
.cards-grid--services, .projects-grid { perspective: 1200px; }
.card, .project { transform-style: preserve-3d; will-change: transform; }

/* ---------- Animaciones de aparición ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .showcase, .contact { grid-template-columns: 1fr; gap: 48px; }
  .float-panel--a { right: 6px; }
  .float-panel--b { left: 6px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 80px 0; }
  .scroll-beam { width: 2px; }

  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 64px; right: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 22px;
    padding: 28px 26px 32px;
    width: min(300px, 84vw);
    background: rgba(5, 8, 20, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0 0 0 18px;
    transform: translateX(110%);
    transition: transform 0.45s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }

  .hero { padding-top: 110px; }
  .hero__metrics { grid-template-columns: 1fr 1fr; width: 100%; }
  .br-desktop { display: none; }

  .process { padding-left: 36px; }
  .process__node { left: -31px; }
  .process__rail { left: 9px; }

  .contact__form { grid-template-columns: 1fr; padding: 26px 20px; }
  .footer__inner { grid-template-columns: 1fr; gap: 34px; padding: 52px 0 36px; }
}

/* ---------- Logo real (imagen con transparencia) ---------- */
.brand__logo { height: 36px; width: auto; }
.brand__logo--sm { height: 32px; }
.hero__logo {
  width: min(240px, 60vw);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(0, 119, 255, 0.4));
}

/* ---------- Fondo ambiente: partículas que derivan (toda la página) ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Fondos semitransparentes para que el ambiente se vea a través de las secciones */
.section--alt {
  background:
    radial-gradient(800px 380px at 12% 8%, rgba(0, 119, 255, 0.07), transparent 60%),
    rgba(7, 16, 31, 0.55);
}
.section--contact {
  background:
    radial-gradient(900px 480px at 80% 0%, rgba(0, 119, 255, 0.1), transparent 60%),
    rgba(7, 16, 31, 0.55);
}

/* ---------- Detalles del dashboard ---------- */
.dash__chart-label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  padding: 2px 4px 8px;
}
.showcase__caption {
  margin-top: 16px;
  font-size: 0.76rem;
  color: var(--gray);
  letter-spacing: 0.03em;
  text-align: center;
}

/* ======================================================================
   ACTUALIZACIÓN DE MARCA — MIHANOVICH DÍAZ SOFTWARE STUDIO
   Ajustes premium, contenido más claro y luz global de mouse.
   ====================================================================== */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 520px at 18% 12%, rgba(0, 119, 255, 0.08), transparent 62%),
    radial-gradient(780px 520px at 90% 28%, rgba(0, 184, 255, 0.065), transparent 64%);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 82;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  background:
    radial-gradient(circle at center,
      rgba(0, 184, 255, 0.18) 0%,
      rgba(0, 119, 255, 0.10) 22%,
      rgba(0, 119, 255, 0.035) 48%,
      transparent 70%);
  mix-blend-mode: screen;
  filter: blur(2px);
  transition: opacity 0.35s ease;
}

body.has-pointer .cursor-glow { opacity: 0.85; }

main, .footer { position: relative; z-index: 2; }
.nav { z-index: 120; }
.scroll-beam { z-index: 115; }

.brand__monogram {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 34px;
  overflow: visible;
  flex: 0 0 auto;
}
.brand__logo { height: 34px; width: auto; object-fit: contain; filter: drop-shadow(0 0 12px rgba(0,119,255,0.22)); }
.brand__logo--sm { height: 32px; }
.brand__tag {
  color: var(--silver-hi);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
}
.brand__subtag {
  margin-top: 4px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  color: var(--gray);
  text-transform: uppercase;
}

.hero__emblem { gap: 8px; margin-bottom: 26px; }
.hero__logo {
  width: min(310px, 72vw);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(0,119,255,0.38)) drop-shadow(0 18px 42px rgba(0,0,0,0.42));
}
.hero__emblem-tag {
  margin-top: 4px;
  color: var(--silver-hi);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
}
.hero__emblem-subtag {
  font-family: var(--font-tech);
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.92;
}
.hero__title { max-width: 22ch; }
.hero__subtitle { max-width: 72ch; }
.metric-card__desc { line-height: 1.4; }

.identity .section__head { max-width: 780px; }
.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.identity-card {
  position: relative;
  min-height: 260px;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(201,209,217,0.045), transparent 30%),
    linear-gradient(180deg, rgba(13, 19, 38, 0.88), rgba(7, 11, 24, 0.86));
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}
.identity-card::after {
  content: "";
  position: absolute;
  inset: auto 26px 22px 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.55;
}
.identity-card__kicker {
  display: inline-flex;
  margin-bottom: 22px;
  font-family: var(--font-tech);
  color: var(--cyan);
  letter-spacing: 0.22em;
  font-size: 0.7rem;
}
.identity-card h3 { margin-bottom: 12px; }
.identity-card p { font-size: 0.92rem; }
.identity-card strong { color: var(--silver-hi); font-weight: 500; }

.service-card {
  min-height: 410px;
  display: flex;
  flex-direction: column;
}
.service-card p { color: #a9b4c6; }
.card__examples {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,209,217,0.10);
  display: grid;
  gap: 10px;
}
.card__examples li {
  position: relative;
  padding-left: 18px;
  color: var(--silver);
  font-size: 0.82rem;
  line-height: 1.42;
}
.card__examples li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0,184,255,0.8);
}

.projects-grid .project p { color: #a9b4c6; }
.contact__form { box-shadow: 0 26px 70px rgba(0,0,0,0.34), 0 0 34px rgba(0,119,255,0.08); }

@media (max-width: 980px) {
  .identity-grid { grid-template-columns: 1fr; }
  .identity-card { min-height: auto; }
}

@media (max-width: 760px) {
  .brand__monogram { width: 48px; height: 30px; }
  .brand__logo { height: 30px; }
  .brand__tag { font-size: 0.58rem; letter-spacing: 0.16em; }
  .brand__subtag { font-size: 0.56rem; letter-spacing: 0.11em; }
  .hero__emblem-tag { font-size: 0.66rem; letter-spacing: 0.24em; }
  .hero__emblem-subtag { font-size: 0.56rem; letter-spacing: 0.22em; }
  .service-card { min-height: auto; }
  .cursor-glow { display: none; }
}
