/* ===== Premium components v7 — shared across site ===== */

/* Nav on scroll */
body > nav { transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease; }
body > nav.nav-scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(12px);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 var(--border);
}

/* Hero cinematográfico */
.hero { position: relative; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.08);
  padding: 0.45rem 0.9rem;
  margin-bottom: 1.5rem;
  animation: badgePulse 3s ease-in-out infinite;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
@keyframes badgePulse {
  0%, 100% { border-color: rgba(201,168,76,0.35); }
  50% { border-color: rgba(201,168,76,0.65); }
}
.hero-headline { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 900; line-height: 1.05; margin-bottom: 1rem; }
.hero-headline em { font-style: italic; color: var(--gold); }
.hero-subline { font-size: 1rem; line-height: 1.65; color: rgba(240,237,232,0.75); max-width: 480px; margin-bottom: 1.25rem; }
.hero-desc-short { font-size: 0.88rem; line-height: 1.75; color: var(--text-muted); max-width: 440px; margin-bottom: 2rem; }
.hero-right [data-hero-parallax] { will-change: transform; transition: transform 0.1s linear; }

/* Trust bar */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.trust-bar-certs { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; }
.trust-cert {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(201,168,76,0.2);
  background: rgba(201,168,76,0.04);
  white-space: nowrap;
}
.trust-cert strong { color: var(--gold); font-weight: 500; }
.trust-bar-stats { display: flex; flex-wrap: wrap; gap: 1.5rem 2rem; }
.trust-stat { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--text-muted); }
.trust-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold); font-weight: 700; letter-spacing: 0; margin-bottom: 0.15rem; }

/* Service icons SVG */
.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1.35rem;
  border: 1px solid rgba(201,168,76,0.25);
  background: rgba(201,168,76,0.06);
}
.svc-icon--big { width: 3.25rem; height: 3.25rem; margin-bottom: 1.1rem; }
.svc-icon svg { width: 1.35rem; height: 1.35rem; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.svc-icon--big svg { width: 1.6rem; height: 1.6rem; }

/* Featured projects home */
.featured-projects { background: var(--bg); padding: 5rem 5rem 5.5rem; }
.featured-projects-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 1.5px;
  background: var(--border);
  margin-top: 2.5rem;
}
.fp-card {
  background: var(--bg3);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.fp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.fp-card:hover { background: var(--bg4); transform: translateY(-4px); }
.fp-card:hover::before { height: 100%; }
.fp-card--featured { grid-row: span 1; min-height: 280px; }
.fp-metric {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin: 0.75rem 0 0.35rem;
}
.fp-metric-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1rem; }
.fp-cat { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.6rem; }
.fp-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.6rem; line-height: 1.25; }
.fp-card--featured .fp-title { font-size: 1.45rem; }
.fp-desc { font-size: 0.82rem; line-height: 1.65; color: var(--text-muted); flex-grow: 1; margin-bottom: 1.25rem; }
.fp-link { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-top: auto; }

/* Process timeline */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  position: relative;
  border: 1px solid rgba(13,12,10,0.1);
}
.process-timeline::before {
  content: '';
  position: absolute;
  top: 2.85rem;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.45), transparent);
  z-index: 0;
}
.process-timeline .process-step {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(13,12,10,0.08);
}
.process-timeline .process-step:last-child { border-right: none; }
.process-step-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201,168,76,0.35);
  background: #fff;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--gold);
}
.process-timeline .process-step.is-active,
.process-timeline .process-step:hover {
  background: #fff;
  box-shadow: 0 12px 32px rgba(13,12,10,0.07);
}

/* Automation flow */
.automation-section {
  background: var(--bg2);
  padding: 5rem 5rem;
  position: relative;
  overflow: hidden;
}
.automation-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 50%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.auto-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.25rem;
  margin-top: 2.5rem;
  padding: 2rem;
  border: 1px solid var(--border);
  background: var(--bg3);
}
.auto-node {
  flex: 0 1 auto;
  min-width: 120px;
  max-width: 160px;
  padding: 1rem 1.1rem;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--bg);
  position: relative;
}
.auto-node-label { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.35rem; }
.auto-node-title { font-size: 0.8rem; font-weight: 500; color: var(--text); line-height: 1.35; }
.auto-arrow {
  color: rgba(201,168,76,0.5);
  font-size: 1.1rem;
  flex-shrink: 0;
  animation: flowPulse 2s ease-in-out infinite;
}
.auto-arrow:nth-child(4) { animation-delay: 0.4s; }
.auto-arrow:nth-child(8) { animation-delay: 0.8s; }
@keyframes flowPulse {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(3px); }
}
.auto-flow-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 1.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

/* Blog teaser */
.blog-teaser { background: var(--bg); padding: 5rem 5rem; }
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.blog-teaser-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
}
.blog-teaser-card:hover {
  background: var(--bg4);
  border-color: rgba(201,168,76,0.35);
  transform: translateY(-4px);
}
.blog-teaser-tag { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.75rem; }
.blog-teaser-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.65rem; }
.blog-teaser-excerpt { font-size: 0.82rem; line-height: 1.65; color: var(--text-muted); flex-grow: 1; margin-bottom: 1rem; }
.blog-teaser-read { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

/* Section curves & gold glow */
.section-dark--curve {
  margin-top: -2rem;
  padding-top: 6rem;
  border-radius: 1.75rem 1.75rem 0 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.2);
}
.section-glow-title { position: relative; }
.section-glow-title::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  height: 80px;
  background: radial-gradient(ellipse, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.testimonials-section.section-dark--curve { background: var(--bg2); }

/* FAQ accordion */
.faq-list .faq-item { border-bottom: 1px solid var(--border); }
.faq-list .faq-q {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding: 1.35rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.25s;
}
.faq-list .faq-q:hover { color: var(--gold-light); }
.faq-list .faq-q::after {
  content: '+';
  font-family: 'DM Sans', sans-serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform 0.35s ease;
}
.faq-list .faq-item.is-open .faq-q::after { transform: rotate(45deg); }
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.22,1,0.36,1);
}
.faq-list .faq-item.is-open .faq-panel { max-height: 600px; }
.faq-panel .faq-a { padding: 0 0 1.35rem; margin: 0; }

/* Service page visuals */
.service-visual-pack {
  display: grid;
  gap: 2rem;
  margin: 2.5rem 0;
}
.svc-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.svc-compare-col {
  background: var(--bg3);
  padding: 1.5rem 1.75rem;
}
.svc-compare-col--after { background: rgba(201,168,76,0.06); }
.svc-compare-label { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.svc-compare-col ul { list-style: none; }
.svc-compare-col li {
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgba(240,237,232,0.75);
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}
.svc-compare-col li::before { content: '—'; position: absolute; left: 0; color: var(--gold-dim); }
.svc-compare-col--after li::before { content: '→'; color: var(--gold); }

.svc-roadmap { border: 1px solid var(--border); background: var(--bg3); padding: 1.75rem 2rem; }
.svc-roadmap-title { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.25rem; }
.svc-roadmap-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.svc-roadmap-step { position: relative; padding-top: 0.5rem; }
.svc-roadmap-step::before {
  content: attr(data-step);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(201,168,76,0.2);
  display: block;
  margin-bottom: 0.5rem;
}
.svc-roadmap-step strong { display: block; font-size: 0.82rem; color: var(--text); margin-bottom: 0.35rem; }
.svc-roadmap-step span { font-size: 0.75rem; line-height: 1.55; color: var(--text-muted); }

.svc-pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--bg2);
}
.svc-pipe-node {
  flex: 1;
  min-width: 100px;
  padding: 1.1rem;
  text-align: center;
  border-right: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-pipe-node:last-child { border-right: none; }
.svc-pipe-node em { display: block; font-style: normal; color: var(--gold); font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.25rem; }

.service-sidebar-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2rem;
  position: sticky;
  top: 6rem;
  transition: box-shadow 0.35s, border-color 0.35s;
}
.service-sidebar-card.is-stuck {
  border-color: rgba(201,168,76,0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.35);
}

/* Shared utilities */
.section-intro { font-size: 0.92rem; line-height: 1.8; color: var(--text-muted); max-width: 580px; margin-bottom: 0; }
.section-intro--wide { max-width: 620px; }
.section-cta-center { text-align: center; margin-top: 2.5rem; }
.page-hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.page-hero-seo {
  font-size: 0.9rem;
  line-height: 1.85;
  color: rgba(240,237,232,0.72);
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--bg3);
  margin-bottom: 2rem;
}
.page-hero-seo strong { color: var(--text); }

/* Trust bar — solo certificaciones */
.trust-bar--certs-only { justify-content: center; }
.trust-cert {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.trust-cert-icon {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  opacity: 0.85;
}
.trust-cert-icon svg { width: 100%; height: 100%; fill: var(--gold); }

/* Service sidebar */
.service-sidebar-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.service-sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.service-sidebar-list li {
  font-size: 0.83rem;
  color: rgba(240,237,232,0.8);
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.service-sidebar-list li span { color: var(--gold); flex-shrink: 0; }
.service-sidebar-foot {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.service-sidebar-foot-label {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.service-sidebar-foot a {
  font-size: 0.82rem;
  color: var(--gold);
  text-decoration: none;
  display: block;
  margin-bottom: 0.4rem;
}
.btn-block { width: 100%; text-align: center; display: block; }
.btn-block + .btn-block { margin-top: 0.8rem; }

/* Link chips (sobre mí) */
.link-chips { display: flex; flex-direction: column; gap: 0.8rem; margin-top: 3rem; }
.link-chip {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  padding: 0.8rem 1rem;
  transition: border-color 0.3s, background 0.3s;
}
.link-chip:hover { border-color: rgba(201,168,76,0.5); background: rgba(201,168,76,0.04); }

/* Sobre mí / Proyectos — layout moderno */
.about-page .about-photo { position: relative; }
.about-page .about-content { min-width: 0; }
.page-hero .page-hero-seo { max-width: 640px; }
.projects-page .projects-main {
  padding: 0 5rem 5rem;
}
.about-page .about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  padding: 0 5rem 5rem;
  position: relative;
  z-index: 2;
}
.about-page .about-photo-frame {
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.about-page .about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.about-page .about-photo-deco {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(201,168,76,0.35);
  pointer-events: none;
}
.about-page .link-chips {
  margin-top: 2rem;
}
.about-page .about-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: var(--gold-light);
  line-height: 1.45;
  margin: 0 0 2rem;
  padding: 0 0 0 1.25rem;
  border: none;
  border-left: 2px solid var(--gold);
}
.about-page .about-content .prose {
  max-width: none;
}
.about-page .skills-section.about-skills-block {
  margin-top: 0;
  padding: 5rem;
  background: var(--bg2);
  border-radius: 1.75rem 1.75rem 0 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 -12px 32px rgba(0,0,0,0.18);
}
.about-page .certs-showcase {
  padding: 5rem;
  background: var(--bg2);
}
.about-page .certs-group {
  margin-top: 2.5rem;
}
.about-page .certs-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.about-page .certs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.about-page .cert-pill {
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.55rem 0.95rem;
  border: 1px solid var(--border);
  background: var(--bg3);
  color: rgba(240,237,232,0.82);
}
.about-page .cert-pill strong {
  color: var(--gold);
  font-weight: 500;
}
.about-page .cert-pill--highlight {
  border-color: rgba(201,168,76,0.4);
  background: rgba(201,168,76,0.07);
}
.about-page .edu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  margin-top: 2.5rem;
}
.about-page .edu-item {
  background: var(--bg3);
  padding: 1.75rem;
}
.about-page .edu-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.about-page .edu-item span {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.about-page .skills-section,
.projects-page .projects-faq {
  padding: 5rem;
}
.about-page .skills-grid,
.about-page .exp-grid {
  display: grid;
  gap: 1.5px;
  background: var(--border);
  margin-top: 2.5rem;
}
.about-page .skills-grid { grid-template-columns: repeat(4, 1fr); }
.about-page .exp-grid { grid-template-columns: repeat(2, 1fr); }
.about-page .skill-group,
.about-page .exp-item {
  background: var(--bg3);
  padding: 2rem;
  transition: background 0.3s;
}
.about-page .skill-group:hover,
.about-page .exp-item:hover { background: var(--bg4); }
.about-page .skill-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border);
}
.about-page .skill-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.about-page .skill-list li {
  font-size: 0.82rem;
  color: rgba(240,237,232,0.75);
  padding-left: 1rem;
  position: relative;
}
.about-page .skill-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold-dim);
  font-size: 0.75rem;
}
.about-page .exp-period { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 0.5rem; }
.about-page .exp-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 0.3rem; }
.about-page .exp-company { font-size: 0.82rem; color: var(--gold); margin-bottom: 0.8rem; }
.about-page .exp-desc { font-size: 0.82rem; line-height: 1.7; color: var(--text-muted); }

.projects-page .projects-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
}
.projects-page .project-card-full {
  background: var(--bg);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.35s, transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.projects-page .project-card-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--gold);
  transition: height 0.4s;
}
.projects-page .project-card-full:hover { background: var(--bg3); transform: translateY(-4px); }
.projects-page .project-card-full:hover::before { height: 100%; }
.projects-page .project-card-featured { grid-column: span 2; background: var(--bg3); }
.projects-page .featured-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.projects-page .featured-label { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.projects-page .featured-label::before { content: '★'; font-size: 0.6rem; margin-right: 0.35rem; }
.projects-page .project-placeholder-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  border: 1px dashed rgba(201,168,76,0.15);
  background: var(--bg);
}
.projects-page .project-placeholder-inner { text-align: center; }
.projects-page .project-placeholder-icon {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: rgba(201,168,76,0.15);
  margin-bottom: 1rem;
  line-height: 1;
}

/* Animated metrics in wsc-num */
.wsc-num[data-stat-value] { font-variant-numeric: tabular-nums; }

/* Home hero layout (moved from inline) */
.home-hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.home-hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem 6rem 5rem;
  position: relative;
  z-index: 2;
}
.home-hero-right { position: relative; overflow: hidden; }
.home-hero-img-wrap { position: absolute; inset: 0; }
.home-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--bg) 0%, rgba(8,8,8,0) 25%), linear-gradient(to top, var(--bg) 0%, rgba(8,8,8,0) 8%);
}
.home-stats-bar {
  background: var(--bg3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.home-stat-div { width: 1px; height: 50px; background: var(--border); }

/* Page polish — sobre-mi / proyectos */
.page-section-pad { padding: 5rem 5rem; }
.projects-page .projects-grid-full,
.projects-page .projects-filter { /* inherits from page inline + global */ }

@media (max-width: 900px) {
  .trust-bar { padding: 1.25rem 1.5rem; flex-direction: column; align-items: center; }
  .featured-projects-grid { grid-template-columns: 1fr; }
  .fp-card--featured { min-height: auto; }
  .process-timeline {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: unset;
  }
  .process-timeline::before { display: none; }
  .process-timeline .process-step {
    flex: 0 0 78%;
    scroll-snap-align: start;
    border-right: 1px solid rgba(13,12,10,0.08);
  }
  .blog-teaser-grid { grid-template-columns: 1fr; }
  .auto-flow { flex-direction: column; }
  .auto-arrow { transform: rotate(90deg); }
  .svc-compare { grid-template-columns: 1fr; }
  .svc-roadmap-steps { grid-template-columns: 1fr 1fr; }
  .svc-pipeline { flex-direction: column; }
  .svc-pipe-node { border-right: none; border-bottom: 1px solid var(--border); }
  .featured-projects, .automation-section, .blog-teaser { padding: 4rem 1.5rem; }
  .section-dark--curve { margin-top: -1rem; padding-top: 4.5rem; border-radius: 1.25rem 1.25rem 0 0; }
  .about-page .about-hero { grid-template-columns: 1fr; padding: 0 1.5rem 3rem; gap: 2.5rem; }
  .about-page .about-photo-deco { width: 48px; height: 48px; bottom: 0.75rem; right: 0.75rem; }
  .about-page .skills-section.about-skills-block,
  .about-page .certs-showcase { padding: 4rem 1.5rem; }
  .about-page .edu-grid { grid-template-columns: 1fr; }
  .about-page .skills-grid { grid-template-columns: 1fr; }
  .about-page .exp-grid { grid-template-columns: 1fr; }
  .about-page .skill-group,
  .about-page .exp-item { padding: 1.5rem; min-width: 0; }
  .about-page .experience-section,
  .about-page .langs-section { padding: 3.5rem 1.5rem; }
  .about-page .skills-section.about-skills-block {
    border-radius: 1.25rem 1.25rem 0 0;
    overflow: hidden;
  }
  .about-page .cert-pill { max-width: 100%; }
  .about-page .skills-section, .projects-page .projects-faq { padding: 4rem 1.5rem; }
  .projects-page .projects-main { padding: 0 1.5rem 4rem; }
  .projects-page .projects-grid-full { grid-template-columns: 1fr; }
  .projects-page .project-card-featured { grid-column: span 1; }
  .projects-page .featured-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .home-hero { display: flex; flex-direction: column; min-height: auto; }
  .home-hero-right { order: -1; height: 380px; }
  .home-hero-left { order: 1; padding: 1.5rem 1.5rem 2.5rem; }
  .home-stats-bar { display: grid; grid-template-columns: 1fr 1fr; background: var(--border); gap: 1px; padding: 0; }
  .home-stat-div { display: none; }
  .home-stats-bar .stat-item { background: var(--bg3); padding: 1.5rem 1rem; }
  .home-stats-bar > div:nth-child(9) { grid-column: span 2; }
  .page-section-pad { padding: 4rem 1.5rem; }
  .about-page .link-chip { font-size: 0.72rem; word-break: break-word; }
  .sector-strip { padding: 1.25rem 1.5rem; }
  .automation-section,
  .svc-compare-wrap { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .auto-arrow { animation: none; }
  .hero-right [data-hero-parallax] { transform: none !important; }
}

/* ── Home (index) ── */
.hero { min-height:100vh;display:grid;grid-template-columns:1fr 1fr;position:relative;overflow:hidden; }
.hero-left { display:flex;flex-direction:column;justify-content:center;padding:8rem 4rem 6rem 5rem;position:relative;z-index:2; }
.hero-eyebrow { font-size:0.72rem;letter-spacing:0.25em;text-transform:uppercase;color:var(--gold);margin-bottom:2rem;display:flex;align-items:center;gap:1rem; }
.hero-eyebrow::before { content:'';width:40px;height:1px;background:var(--gold); }
.hero-ctas { display:flex;gap:1rem;flex-wrap:wrap; }
.hero-right { position:relative;overflow:hidden; }
.hero-img-wrap { position:absolute;inset:0; }
.hero-img-wrap img { width:100%;height:100%;object-fit:cover;object-position:50% 25%;display:block; }
.hero-img-overlay { position:absolute;inset:0;background:linear-gradient(to right,var(--bg) 0%,rgba(8,8,8,0) 25%),linear-gradient(to top,var(--bg) 0%,rgba(8,8,8,0) 8%); }
.hero-deco { position:absolute;bottom:3rem;right:3rem;width:100px;height:100px;border:1px solid rgba(201,168,76,0.2); }
.scroll-hint { position:absolute;bottom:2.5rem;left:5rem;display:flex;align-items:center;gap:0.75rem;font-size:0.7rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--text-muted);z-index:2; }
.scroll-line { width:40px;height:1px;background:var(--text-muted);position:relative;overflow:hidden; }
.scroll-line::after { content:'';position:absolute;top:0;left:-100%;width:100%;height:100%;background:var(--gold);animation:scrollpulse 2s ease-in-out infinite; }
@keyframes scrollpulse{0%,100%{left:-100%}50%{left:100%}}
.stats-bar { background:var(--bg3);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:2.5rem 5rem;display:flex;justify-content:space-between;align-items:center;gap:2rem; }
.stat-item { text-align:center; }
.stat-num-big { font-family:'Playfair Display',serif;font-size:2.8rem;font-weight:700;color:var(--gold);line-height:1; }
.stat-label-sm { font-size:0.7rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--text-muted);margin-top:0.4rem; }
.stat-div { width:1px;height:50px;background:var(--border); }
.services-preview { background:var(--bg2); }
.service-cards { display:grid;grid-template-columns:repeat(3,1fr);gap:1.5px;background:var(--border);margin-top:3rem; }
.service-card { background:var(--bg);padding:2.5rem 2rem;position:relative;overflow:hidden;transition:background 0.35s ease,transform 0.35s cubic-bezier(0.22,1,0.36,1),box-shadow 0.35s ease;display:flex;flex-direction:column;color:inherit; }
.service-card::before { content:'';position:absolute;top:0;left:0;width:3px;height:0;background:var(--gold);transition:height 0.4s; }
.service-card:hover { background:var(--bg3);transform:translateY(-6px);box-shadow:0 16px 48px rgba(0,0,0,0.35); }
.service-card:hover::before { height:100%; }
.service-card-foot { display:flex;flex-wrap:wrap;gap:1rem 1.25rem;margin-top:1.5rem;align-items:center; }
.service-card-link { font-size:0.72rem;letter-spacing:0.12em;text-transform:uppercase;color:var(--gold);text-decoration:none;transition:letter-spacing 0.3s ease,color 0.3s; }
.service-card-link:hover { letter-spacing:0.16em;color:var(--gold-light); }
.service-card-link--muted { color:var(--text-muted); }
.service-card-link--muted:hover { color:var(--gold); }
.service-card-title { font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;margin-bottom:0.7rem; }
.service-card-desc { font-size:0.82rem;line-height:1.7;color:var(--text-muted);margin-bottom:0;flex-grow:1; }
.about-preview { background:var(--bg); }
.about-grid { display:grid;grid-template-columns:1fr 1fr;gap:6rem;align-items:center; }
.about-img-side { position:relative; }
.about-img-placeholder { aspect-ratio:3/4;background:var(--bg3);border:1px solid var(--border);display:flex;align-items:center;justify-content:center;overflow:hidden; }
.about-img-placeholder img { width:100%;height:100%;object-fit:cover;object-position:center top; }
.about-deco { position:absolute;bottom:-1.5rem;right:-1.5rem;width:80px;height:80px;border:1px solid rgba(201,168,76,0.3); }
.marquee-strip { background:var(--bg);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:3rem 0;overflow:hidden; }
.marquee-inner { display:flex;gap:3rem;white-space:nowrap;animation:marquee 25s linear infinite; }
.marquee-item { font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:900;font-style:italic;color:rgba(240,237,232,0.28);text-transform:uppercase;flex-shrink:0; }
.marquee-dot { color:rgba(201,168,76,0.35); }
@keyframes marquee{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.testimonials-section { background:var(--bg2); }
.testi-grid { display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;margin-top:3rem; }
.testi-card { background:var(--bg3);padding:2rem;border:1px solid var(--border);position:relative; }
.testi-card::before { content:'"';font-family:'Playfair Display',serif;font-size:4rem;color:rgba(201,168,76,0.08);position:absolute;top:0.5rem;left:1.5rem;line-height:1; }
.testi-text { font-size:0.87rem;line-height:1.75;color:rgba(240,237,232,0.8);margin-bottom:1.5rem;font-style:italic;position:relative;z-index:1; }
.testi-author { display:flex;align-items:center;gap:0.8rem; }
.testi-avatar { width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,var(--gold-dim),var(--gold));display:flex;align-items:center;justify-content:center;font-size:0.78rem;font-weight:500;color:#000;flex-shrink:0; }
.testi-name { font-size:0.82rem;font-weight:500; }
.testi-role { font-size:0.7rem;color:var(--text-muted); }

/* ── Proyectos ── */
.projects-page .projects-filter { display:flex;gap:1rem;flex-wrap:wrap;margin:2rem 0; }
.projects-page .filter-btn { font-size:0.72rem;letter-spacing:0.12em;text-transform:uppercase;padding:0.5rem 1.2rem;border:1px solid var(--border);color:var(--text-muted);background:none;cursor:pointer;transition:all 0.3s; }
.projects-page .filter-btn.active,
.projects-page .filter-btn:hover { border-color:var(--gold);color:var(--gold); }
.projects-page .project-cat { font-size:0.65rem;letter-spacing:0.2em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:1rem; }
.projects-page .project-num { font-family:'Playfair Display',serif;font-size:0.75rem;color:rgba(201,168,76,0.3);margin-bottom:1rem; }
.projects-page .project-title { font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;margin-bottom:0.8rem;line-height:1.2; }
.projects-page .project-desc { font-size:0.83rem;line-height:1.7;color:var(--text-muted);margin-bottom:1.5rem; }
.projects-page .project-results { background:rgba(201,168,76,0.05);border:1px solid rgba(201,168,76,0.1);padding:1rem;margin-bottom:1.5rem; }
.projects-page .project-results-title { font-size:0.65rem;letter-spacing:0.15em;text-transform:uppercase;color:var(--gold-dim);margin-bottom:0.6rem; }
.projects-page .project-result-item { font-size:0.82rem;color:rgba(240,237,232,0.8);display:flex;gap:0.5rem;margin-bottom:0.3rem; }
.projects-page .project-result-item::before { content:'↑';color:var(--gold);flex-shrink:0; }
.projects-page .project-tags { display:flex;flex-wrap:wrap;gap:0.4rem; }
.projects-page .project-tag { font-size:0.65rem;letter-spacing:0.1em;text-transform:uppercase;padding:0.2rem 0.6rem;background:rgba(201,168,76,0.06);color:var(--gold-dim);border:1px solid rgba(201,168,76,0.12); }

/* ── Sobre mí: idiomas ── */
.about-page .langs-section { background:var(--bg2);padding:5rem; }
.about-page .lang-bar-wrap { display:flex;flex-direction:column;gap:1.2rem;margin-top:2rem;max-width:500px; }
.about-page .lang-label { display:flex;justify-content:space-between;margin-bottom:0.4rem; }
.about-page .lang-name { font-size:0.85rem;color:var(--text); }
.about-page .lang-level { font-size:0.72rem;letter-spacing:0.1em;text-transform:uppercase;color:var(--text-muted); }
.about-page .lang-bar { height:2px;background:rgba(201,168,76,0.15);position:relative; }
.about-page .lang-fill { height:100%;background:var(--gold);transition:width 1s ease; }
.about-page .skills-section { background:var(--bg2); }
.about-page .experience-section { background:var(--bg);padding:5rem; }
.section-title--on-dark { color: #ffffff; }

/* ── 404 ── */
.error-page { min-height:80vh;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:8rem 2rem 4rem; }
.error-code { font-family:'Playfair Display',serif;font-size:clamp(6rem,20vw,12rem);font-weight:900;color:rgba(201,168,76,0.08);line-height:1;margin-bottom:-2rem;user-select:none; }
.error-title { font-family:'Playfair Display',serif;font-size:clamp(1.5rem,4vw,2.5rem);font-weight:700;margin-bottom:1rem; }
.error-title em { font-style:italic;color:var(--gold); }
.error-desc { font-size:0.92rem;line-height:1.8;color:var(--text-muted);max-width:480px;margin-bottom:2.5rem; }
.error-links { display:flex;gap:1rem;flex-wrap:wrap;justify-content:center; }

/* ── Brand wordmark (nav/footer) ── */
@media (max-width: 520px) {
  .brand-wordmark .brand-text { font-size: 0.82rem; }
  .brand-mark { width: 24px; height: 24px; }
  .about-page .experience-section,
  .about-page .langs-section,
  .about-page .skills-section.about-skills-block,
  .about-page .certs-showcase { padding: 3rem 1.25rem; }
  .trust-bar-certs { flex-direction: column; align-items: stretch; width: 100%; }
  .trust-cert { justify-content: center; }
}

/* ── Sector strip ── */
.sector-strip {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 1.35rem 5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}
.sector-strip-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  flex-shrink: 0;
}
.sector-strip-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: center;
}
.sector-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(201,168,76,0.12);
  background: rgba(201,168,76,0.03);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  cursor: default;
}
.sector-chip[data-sector] {
  cursor: pointer;
}
.sector-chip svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
}
.sector-chip:hover {
  color: var(--text);
  border-color: rgba(201,168,76,0.35);
  background: rgba(201,168,76,0.08);
}

/* ── Hero text reveal ── */
.hero-reveal .hero-reveal-line {
  display: block;
  opacity: 0;
  transform: translateY(1.15em);
}
.hero-ready .hero-reveal .hero-reveal-line {
  animation: heroLineIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-ready .hero-reveal .hero-reveal-line:nth-child(2) { animation-delay: 0.12s; }
.hero-ready .hero-eyebrow,
.hero-ready .hero-badge,
.hero-ready .hero-subline,
.hero-ready .hero-desc-short,
.hero-ready .hero-ctas {
  opacity: 0;
  transform: translateY(12px);
  animation: heroLineIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-ready .hero-eyebrow { animation-delay: 0.05s; }
.hero-ready .hero-badge { animation-delay: 0.18s; }
.hero-ready .hero-subline { animation-delay: 0.38s; }
.hero-ready .hero-desc-short { animation-delay: 0.48s; }
.hero-ready .hero-ctas { animation-delay: 0.58s; }
@keyframes heroLineIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Project cards — tilt + glow ── */
.fp-card[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}
.fp-card[data-tilt]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 0%), rgba(201,168,76,0.12), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
  z-index: 0;
}
.fp-card[data-tilt]:hover::after { opacity: 1; }
.fp-card[data-tilt] > * { position: relative; z-index: 1; }

/* ── Process timeline — línea progresiva ── */
.process-timeline {
  --process-progress: 0;
}
.process-timeline::before {
  transform: scaleX(var(--process-progress));
  transform-origin: left center;
  transition: transform 0.15s linear;
}
.process-timeline.is-in-view .process-step-icon {
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
}
.process-timeline.is-in-view .process-step.is-lit .process-step-icon {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.15);
  background: #fffef8;
}

/* ── n8n flow canvas + mini demo ── */
.flow-demo-wrap {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  background: var(--bg3);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
}
.flow-demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}
.flow-demo-label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.65rem;
}
.flow-demo-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.flow-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.flow-demo-tab {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
}
.flow-demo-tab:hover,
.flow-demo-tab.is-active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201,168,76,0.08);
}
.n8n-canvas {
  position: relative;
  min-height: 200px;
  padding: 1.5rem 0.5rem;
  overflow-x: auto;
}
.n8n-canvas-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: min(100%, 720px);
  margin: 0 auto;
}
.n8n-node {
  flex: 0 0 auto;
  width: 118px;
  padding: 0.85rem 0.65rem;
  text-align: center;
  border: 1px solid rgba(201,168,76,0.2);
  background: var(--bg);
  position: relative;
  transition: border-color 0.35s, box-shadow 0.35s, transform 0.35s, background 0.35s;
  opacity: 0.55;
}
.n8n-node.is-active {
  opacity: 1;
  border-color: var(--gold);
  background: rgba(201,168,76,0.1);
  box-shadow: 0 0 24px rgba(201,168,76,0.2);
  transform: translateY(-3px);
}
.n8n-node-type {
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.3rem;
}
.n8n-node-title {
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
}
.n8n-connector {
  flex: 0 0 36px;
  height: 2px;
  background: rgba(201,168,76,0.15);
  position: relative;
  overflow: hidden;
}
.n8n-connector::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: translateX(-100%);
}
.n8n-connector.is-active::after {
  animation: n8nFlowPulse 0.9s ease forwards;
}
@keyframes n8nFlowPulse {
  to { transform: translateX(100%); }
}
.flow-demo-metric {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.flow-demo-metric strong {
  color: var(--gold);
  font-weight: 500;
}
.flow-demo-disclaimer {
  font-size: 0.68rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.85;
}
.flow-demo-disclaimer a { color: var(--gold); }

@media (max-width: 900px) {
  .sector-strip { padding: 1.25rem 1.5rem; }
  .n8n-canvas-inner { min-width: 560px; justify-content: flex-start; }
  .n8n-node { width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal .hero-reveal-line,
  .hero-ready .hero-eyebrow,
  .hero-ready .hero-badge,
  .hero-ready .hero-subline,
  .hero-ready .hero-desc-short,
  .hero-ready .hero-ctas {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .fp-card[data-tilt] { transform: none !important; }
}

@media (max-width: 900px) {
  .hero{display:flex;flex-direction:column;min-height:auto;}
  .hero-right{order:-1;height:380px;overflow:hidden;}
  .hero-left{order:1;padding:1.5rem 1.5rem 2.5rem;}
  .hero-img-overlay{background:linear-gradient(to top,var(--bg) 0%,rgba(8,8,8,0) 45%);}
  .hero-deco,.scroll-hint{display:none;}
  .stat-div{display:none;}
  .stats-bar{display:grid;grid-template-columns:1fr 1fr;background:var(--border);gap:1px;padding:0;align-items:stretch;}
  .stat-item{background:var(--bg3);padding:1.5rem 1rem;text-align:center;}
  .stats-bar > div:nth-child(9){grid-column:span 2;}
  .service-cards,.testi-grid{grid-template-columns:1fr;}
  .about-grid{grid-template-columns:1fr;gap:2rem;}
  .services-preview,.about-preview{padding:4rem 1.5rem;}
}
