/* =========================================================================
   ING. CARLOS BOZA — Servicios de Ingeniería Civil
   Sistema visual: negro / dorado premium + azul acero (blueprint)
   ========================================================================= */

:root {
  --bg: #050506;
  --bg-soft: #0c0c0e;
  --panel: rgba(20, 20, 22, 0.72);
  --panel-solid: #141416;
  --gold: #d4af37;
  --gold-light: #fbe69e;
  --gold-dark: #b88a1f;
  --uni: #d4af37;            /* acentos alineados al dorado */
  --steel: #9c958a;          /* neutro cálido para etiquetas/detalles */
  --steel-soft: rgba(212, 175, 55, 0.10);
  --text: #f2f2f2;
  --muted: #a1a1aa;
  --line: color-mix(in srgb, var(--gold) 25%, transparent);
  --line-soft: color-mix(in srgb, var(--gold) 12%, transparent);
  --radius: 20px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --glow: 0 0 28px color-mix(in srgb, var(--gold) 18%, transparent);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --motion: 1;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100vw;
  overflow-x: hidden;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Fondo con profundidad (parallax) ---------------------------------------- */
.bg-field { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.5; will-change: transform;
}
.bg-glow.g1 { width: 60vw; height: 60vw; left: -15vw; top: 5vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 65%); }
.bg-glow.g2 { width: 50vw; height: 50vw; right: -12vw; top: 40vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 9%, transparent), transparent 65%); }
.bg-glow.g3 { width: 45vw; height: 45vw; left: 20vw; top: 120vh;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 8%, transparent), transparent 65%); }
.bg-grid {
  position: absolute; inset: -10% -10%;
  background-image:
    linear-gradient(color-mix(in srgb, var(--steel) 7%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--steel) 7%, transparent) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 30%, transparent 75%);
  will-change: transform;
}
body.no-grid .bg-grid { display: none; }

.shell { position: relative; z-index: 1; }

/* Grano de película -------------------------------------------------------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.05; mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: no-preference) {
  .grain { animation: grainShift 0.9s steps(3) infinite; }
}
@keyframes grainShift {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-2%, 1.5%); }
  66% { transform: translate(1.5%, -2%); }
  100% { transform: translate(0, 0); }
}

/* Barra de progreso de scroll ---------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  box-shadow: 0 0 12px color-mix(in srgb, var(--gold) 60%, transparent);
  z-index: 200;
}

/* Nav ----------------------------------------------------------------------- */
nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 14px clamp(20px, 5vw, 48px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(5,5,6,0.55);
}
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 16px; letter-spacing: -0.3px; white-space: nowrap; }
.logo img { height: 40px; width: 40px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); }
.logo .sub { display: block; color: var(--gold); font-size: 10.5px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; }
.nav-steps { display: flex; gap: 22px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.nav-steps a { color: var(--muted); text-decoration: none; transition: color 0.25s; position: relative; }
.nav-steps a:hover, .nav-steps a.current { color: var(--gold-light); }
.nav-steps a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-cta {
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; white-space: nowrap;
  color: #0a0a0b; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: 10px 18px; border-radius: 999px;
  box-shadow: var(--glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 0 36px color-mix(in srgb, var(--gold) 35%, transparent); }
@media (max-width: 900px) { .nav-steps { display: none; } }

/* Hero ----------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 70px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 80px 20px 190px;
  perspective: 1400px;
}
.hero-ring {
  position: absolute; top: 44%; left: 50%;
  width: min(72vw, 740px); aspect-ratio: 1;
  margin: calc(min(72vw, 740px) / -2);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  pointer-events: none;
}
.hero-ring::before {
  content: ''; position: absolute; inset: 11%;
  border: 1px dashed color-mix(in srgb, var(--gold) 16%, transparent);
  border-radius: 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-ring::before { animation: ringSpin 70s linear infinite; }
}
@keyframes ringSpin { to { transform: rotate(360deg); } }

/* Escudo UNI como marca de agua detrás del título -------------------------- */
.hero-crest {
  position: absolute; top: 50%; left: 50%;
  width: 96%; height: auto;
  transform: translate(-50%, -50%);
  opacity: 0.12;
  filter: drop-shadow(0 0 40px color-mix(in srgb, var(--gold) 28%, transparent));
  pointer-events: none;
  -webkit-user-drag: none; user-select: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-crest { animation: crestBreathe 9s var(--ease) infinite; }
}
@keyframes crestBreathe {
  0%, 100% { opacity: 0.10; }
  50% { opacity: 0.16; }
}
@media (max-width: 640px) { .hero-crest { width: 74%; } }

/* Puntos que orbitan alrededor del escudo ---------------------------------- */
.orbit {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-1 { width: 78%; aspect-ratio: 1; }
.orbit-2 { width: 92%; aspect-ratio: 1; }
.orbit-3 { width: 64%; aspect-ratio: 1; }
.orbit-4 { width: 100%; aspect-ratio: 1; }
.orbit-dot {
  position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px 2px color-mix(in srgb, var(--gold) 70%, transparent);
}
.orbit-dot.small { width: 5px; height: 5px; margin-left: -2.5px; top: -2.5px; opacity: 0.8; }
@media (prefers-reduced-motion: no-preference) {
  .orbit-1 { animation: orbitSpin 28s linear infinite; }
  .orbit-2 { animation: orbitSpin 44s linear infinite reverse; }
  .orbit-3 { animation: orbitSpin 22s linear infinite reverse; }
  .orbit-4 { animation: orbitSpin 60s linear infinite; }
}
@keyframes orbitSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* chips flotantes con profundidad */
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--steel);
  background: rgba(12,14,18,0.7);
  border: 1px solid color-mix(in srgb, var(--steel) 25%, transparent);
  border-radius: 12px; padding: 10px 16px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  will-change: transform;
  pointer-events: none;
}
.float-chip .ic { display: inline-flex; color: var(--gold); }
.float-chip.fc1 { top: 22%; left: 10%; }
.float-chip.fc2 { top: 30%; right: 9%; }
.float-chip.fc3 { bottom: 33%; left: 13%; }
.float-chip.fc4 { bottom: 28%; right: 12%; }
@media (max-width: 980px) { .float-chip { display: none; } }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floatY 7s ease-in-out infinite; }
  .float-chip.fc2 { animation-delay: -2s; }
  .float-chip.fc3 { animation-delay: -4s; }
  .float-chip.fc4 { animation-delay: -5.5s; }
}
@keyframes floatY { 0%, 100% { margin-top: 0; } 50% { margin-top: -14px; } }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700;
  color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 999px; margin-bottom: 30px;
}
.hero-badge .pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 55%, transparent); }
  70% { box-shadow: 0 0 0 12px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(54px, 9.5vw, 124px);
  line-height: 0.96;
  letter-spacing: 1px;
  margin: 0 0 26px;
  text-transform: uppercase;
  font-weight: 400;
}
.hl {
  font-style: normal;
  background: linear-gradient(120deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hl-steel {
  font-style: normal;
  background: linear-gradient(120deg, #ffffff, #e7e2d6 60%, #b9b2a3);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.kline { display: block; overflow: hidden; }
.kline > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .kline > span { transform: translateY(112%); transition: transform 0.9s var(--ease); }
  .hero.loaded .kline:nth-of-type(1) > span { transform: none; transition-delay: 0.05s; }
  .hero.loaded .kline:nth-of-type(2) > span { transform: none; transition-delay: 0.16s; }
  .hero.loaded .kline:nth-of-type(3) > span { transform: none; transition-delay: 0.27s; }
}

.hero-sub {
  max-width: 640px; color: var(--muted);
  font-size: clamp(15px, 1.9vw, 18px); margin: 0 0 38px;
  text-wrap: pretty;
}
.hero-sub strong { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge, .hero-sub, .hero-ctas { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .hero.loaded .hero-badge { opacity: 1; transform: none; transition-delay: 0.35s; }
  .hero.loaded .hero-sub { opacity: 1; transform: none; transition-delay: 0.45s; }
  .hero.loaded .hero-ctas { opacity: 1; transform: none; transition-delay: 0.55s; }
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font); font-weight: 800; font-size: 15px; letter-spacing: 0.3px;
  color: #0a0a0b; text-decoration: none;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  border: none; border-radius: 999px; padding: 17px 34px; cursor: pointer;
  box-shadow: var(--glow), 0 14px 40px rgba(0,0,0,0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.btn-primary:hover { box-shadow: 0 0 44px color-mix(in srgb, var(--gold) 38%, transparent), 0 18px 50px rgba(0,0,0,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 15px; color: var(--text); text-decoration: none;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 999px;
  padding: 17px 30px; cursor: pointer;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.btn-ghost:hover { border-color: var(--line); background: color-mix(in srgb, var(--gold) 6%, transparent); }

/* Ticker ---------------------------------------------------------------------- */
.hero-ticker {
  position: absolute; bottom: 92px; left: 0; right: 0;
  overflow: hidden; padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 28px; white-space: nowrap;
  font-size: 13px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700;
  color: var(--muted);
}
.ticker-track i { color: var(--gold); font-style: normal; font-size: 9px; }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: tick 30s linear infinite; }
}
@keyframes tick { to { transform: translateX(-50%); } }

.scroll-cue {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--muted);
}
.scroll-cue .mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--muted); border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-cue .mouse span { width: 3px; height: 7px; border-radius: 3px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue .mouse span { animation: wheel 1.6s var(--ease) infinite; }
}
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

/* Secciones --------------------------------------------------------------------- */
.section { position: relative; padding: clamp(80px, 11vh, 130px) clamp(20px, 5vw, 48px); }
.section-inner { max-width: 1120px; margin: 0 auto; }
.section.alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.018) 18%, rgba(255,255,255,0.018) 82%, transparent);
}

.step-eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; letter-spacing: 2.6px; text-transform: uppercase; font-weight: 700;
  color: var(--steel); margin-bottom: 18px;
}
.step-eyebrow .num {
  font-family: var(--font-display); font-size: 26px; letter-spacing: 1px;
  color: var(--gold); line-height: 1;
}
.step-eyebrow .line { flex: 0 0 64px; height: 1px; background: var(--line); }

.title {
  font-family: var(--font-display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: 0.8px;
  margin: 0 0 18px; max-width: 760px; text-wrap: pretty;
}
.lead { color: var(--muted); font-size: clamp(15px, 1.8vw, 17px); max-width: 640px; margin: 0 0 46px; text-wrap: pretty; }

/* Reveal ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.85s var(--ease), transform 0.85s var(--ease); }
  .reveal.in { opacity: 1; transform: none; }
  .reveal.d1 { transition-delay: 0.08s; }
  .reveal.d2 { transition-delay: 0.16s; }
  .reveal.d3 { transition-delay: 0.24s; }
  .reveal.d4 { transition-delay: 0.32s; }
}

/* Cards genéricas ------------------------------------------------------------------ */
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), border-color 0.35s;
  overflow: hidden;
}
.card:hover { border-color: var(--line); }
.tilt-glare {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.08), transparent 55%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover .tilt-glare { opacity: 1; }

/* Franja de credenciales ------------------------------------------------------------ */
.cred-strip {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin-top: -70px; position: relative; z-index: 2;
  padding: 0 clamp(20px, 5vw, 48px);
}
.cred-chip {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; color: var(--text);
  background: var(--panel); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 12px 22px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.cred-chip .ic { color: var(--gold); display: inline-flex; }

/* Servicios -------------------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px;
}
.svc { padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 14px; }
.svc.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 10%, var(--panel-solid)), var(--panel));
}
@media (max-width: 720px) { .svc.featured { grid-column: span 1; } }
.svc-ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 9%, transparent);
  border: 1px solid var(--line-soft);
}
.svc h3 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
.svc p { margin: 0; color: var(--muted); font-size: 14.5px; text-wrap: pretty; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.svc-tags span {
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--steel); background: var(--steel-soft);
  border: 1px solid color-mix(in srgb, var(--steel) 22%, transparent);
  padding: 5px 11px; border-radius: 999px;
}

/* Sobre mí ----------------------------------------------------------------------------- */
.about-grid {
  display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.portrait-card { padding: 0; }
.portrait-card img {
  display: block; width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center top;
}
.portrait-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 16px 22px;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: var(--panel-solid);
}
.portrait-meta strong { font-size: 16px; letter-spacing: -0.2px; display: block; }
.portrait-meta .role { color: var(--muted); font-size: 12.5px; display: block; }
.portrait-meta .uni {
  font-family: var(--font-display); font-size: 26px; color: var(--gold); letter-spacing: 1.5px;
}
.about-body p { color: var(--muted); font-size: 15.5px; margin: 0 0 16px; max-width: 580px; text-wrap: pretty; }
.about-body p strong { color: var(--text); }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 30px 0; max-width: 580px; }
@media (max-width: 520px) { .about-stats { grid-template-columns: 1fr; } }
.stat { padding: 18px 20px; }
.stat .n {
  font-family: var(--font-display); font-size: 42px; line-height: 1; color: var(--gold);
  letter-spacing: 1px; display: flex; align-items: baseline; gap: 3px;
}
.stat .n .suf { font-size: 26px; color: var(--gold-dark); }
.stat .l { font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-top: 8px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-cert {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 7%, transparent);
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 16px;
}
.badge-cert .ic { display: inline-flex; color: var(--gold); }

/* Proceso -------------------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.pstep { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.pstep .pnum {
  font-family: var(--font-display); font-size: 56px; line-height: 1; letter-spacing: 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 80%, #fff 5%), color-mix(in srgb, var(--gold) 25%, transparent));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.pstep h3 { margin: 0; font-size: 18px; font-weight: 800; }
.pstep p { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }
.pstep .pline { position: absolute; top: 24px; right: 18px; color: var(--steel); opacity: 0.55; }

/* Proyectos -------------------------------------------------------------------------------- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.project { padding: 0; display: flex; flex-direction: column; }
.project image-slot { width: 100%; height: 230px; display: block; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.project-body .ptag {
  align-self: flex-start;
  font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--steel); background: var(--steel-soft);
  border: 1px solid color-mix(in srgb, var(--steel) 22%, transparent);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 4px;
}
.project-body h3 { margin: 0; font-size: 19px; font-weight: 800; letter-spacing: -0.2px; }
.project-body p { margin: 0; color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* Testimonios --------------------------------------------------------------------------------- */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; }
.testi { padding: 28px 26px; display: flex; flex-direction: column; gap: 16px; }
.testi .quote-mark { font-family: var(--font-display); font-size: 64px; line-height: 0.6; color: var(--gold); opacity: 0.85; }
.testi blockquote { margin: 0; font-size: 15.5px; color: var(--text); font-weight: 500; text-wrap: pretty; }
.testi .who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.testi .who .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px; color: var(--gold-light);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
  border: 1px solid var(--line);
}
.testi .who strong { display: block; font-size: 14px; }
.testi .who span { display: block; color: var(--muted); font-size: 12.5px; }
.testi .stars { color: var(--gold); font-size: 13px; letter-spacing: 3px; }

/* Contacto -------------------------------------------------------------------------------------- */
.contact-panel {
  position: relative; overflow: hidden;
  padding: clamp(44px, 6vw, 76px);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, color-mix(in srgb, var(--gold) 13%, transparent), transparent 60%),
    var(--panel);
}
.contact-panel .title { margin-left: auto; margin-right: auto; }
.contact-panel .lead { margin-left: auto; margin-right: auto; margin-bottom: 36px; }
.contact-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.contact-meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.meta-chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09); border-radius: 999px;
  padding: 11px 20px;
  transition: color 0.25s, border-color 0.25s;
}
.meta-chip:hover { color: var(--gold-light); border-color: var(--line); }
.meta-chip .ic { display: inline-flex; color: var(--gold); }

/* Footer ------------------------------------------------------------------------------------------- */
footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px;
  padding: 28px clamp(20px, 5vw, 48px) 36px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--muted); font-size: 12.5px;
}
footer .foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); }
footer .foot-brand img { height: 30px; width: 30px; object-fit: cover; border-radius: 50%; }
footer .foot-links { display: flex; gap: 18px; }
footer .foot-links a { color: var(--muted); text-decoration: none; transition: color 0.25s; }
footer .foot-links a:hover { color: var(--gold-light); }

/* FAB WhatsApp ---------------------------------------------------------------------------------------- */
.fab-stack { position: fixed; right: 22px; bottom: 22px; z-index: 150; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 12px; }
.fab-toggle {
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #0a0a0b;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 45%, transparent), 0 14px 36px rgba(0,0,0,0.55);
  transition: transform 0.3s var(--ease);
}
@media (prefers-reduced-motion: no-preference) {
  .fab-toggle { animation: fabPulse 3s infinite; }
}
@keyframes fabPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 40%, transparent), 0 14px 36px rgba(0,0,0,0.55); }
  60% { box-shadow: 0 0 0 16px transparent, 0 14px 36px rgba(0,0,0,0.55); }
  100% { box-shadow: 0 0 0 0 transparent, 0 14px 36px rgba(0,0,0,0.55); }
}
.fab-toggle:hover { transform: scale(1.07); }
.fab-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab-actions .fab-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; color: var(--text); text-decoration: none;
  background: var(--panel-solid);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 999px;
  padding: 11px 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.5);
  opacity: 0; transform: translateY(10px) scale(0.96); pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.25s;
}
.fab-actions .fab-btn:hover { border-color: var(--line); }
.fab-actions .fab-btn .ic { display: inline-flex; color: var(--gold); }
.fab-stack.open .fab-actions .fab-btn { opacity: 1; transform: none; pointer-events: auto; }
.fab-stack.open .fab-actions .fab-btn:nth-child(1) { transition-delay: 0.1s; }
.fab-stack.open .fab-actions .fab-btn:nth-child(2) { transition-delay: 0.05s; }
.fab-stack.open .fab-actions .fab-btn:nth-child(3) { transition-delay: 0s; }
