/* ── Reset & Base ──────────────────────────────────────────────────────────── */

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

:root {
  --bg:          #080810;
  --bg-surface:  #0e0e1a;
  --bg-card:     #12121f;
  --bg-card-hover: #18182a;
  --border:      rgba(255,255,255,0.07);
  --border-glow: rgba(99,102,241,0.3);
  --text:        #e8e8f0;
  --text-muted:  #7c7c9a;
  --text-faint:  #44445a;
  --accent:      #6366f1;
  --accent-2:    #818cf8;
  --accent-glow: rgba(99,102,241,0.15);
  --cyan:        #22d3ee;
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 4px 32px rgba(0,0,0,0.5);
  --shadow-card: 0 2px 16px rgba(0,0,0,0.4);
  --transition:  0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Layout ────────────────────────────────────────────────────────────────── */

.container {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.section { padding: 100px 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Typography helpers ────────────────────────────────────────────────────── */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-label { justify-content: center; }
.section-header .section-sub { margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn--primary:hover {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99,102,241,0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent-2);
  transform: translateY(-2px);
}

.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }

/* ── Nav ───────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(8,8,16,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(8,8,16,0.95);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
}
.nav__logo span { color: var(--accent-2); }
.nav__logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__links a:hover { color: #fff; }

.nav__cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.nav__cta:hover {
  background: var(--accent-2) !important;
  transform: translateY(-1px);
}

.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav__burger-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}
.nav__burger-icon--close { display: none; }
.nav__burger.open .nav__burger-icon--open  { display: none; }
.nav__burger.open .nav__burger-icon--close { display: block; }

/* ── Hero ──────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 60%, rgba(34,211,238,0.06) 0%, transparent 60%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 0%, black 0%, transparent 70%);
  opacity: 0.5;
}

.hero__inner {
  position: relative;
  padding: 80px 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  background: rgba(34,211,238,0.08);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero__badge::before {
  content: '';
  width: 7px; height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 24px;
  max-width: 820px;
}

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.hero__stat { display: flex; flex-direction: column; gap: 4px; }
.hero__stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
}
.hero__stat-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ── Quién soy ─────────────────────────────────────────────────────────────── */

.quien { background: var(--bg-surface); }

.quien__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.quien__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.quien__text p strong { color: var(--text); }

.quien__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  padding: 5px 12px;
  border-radius: 100px;
}

/* Profile card */

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 88px;
}

.profile-card__avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.profile-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.profile-card__role { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 20px; }
.profile-card__divider { height: 1px; background: var(--border); margin-bottom: 20px; }

.profile-card__list {
  list-style: none;
  text-align: left;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.profile-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.profile-card__list svg {
  width: 16px; height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Servicios ─────────────────────────────────────────────────────────────── */

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  cursor: default;
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.1);
}

.service-card__icon {
  width: 44px; height: 44px;
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.service-card__icon svg {
  width: 22px; height: 22px;
  color: var(--accent-2);
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.service-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── Featured ──────────────────────────────────────────────────────────────── */

.featured { background: var(--bg-surface); overflow: hidden; }

.featured__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.featured-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.featured-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 16px 48px rgba(99,102,241,0.12);
}

.featured-card--main {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-card), rgba(99,102,241,0.05));
  border-color: var(--border-glow);
}

.featured-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--accent-glow);
  border: 1px solid var(--border-glow);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.featured-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.featured-card__url {
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 14px;
  font-family: monospace;
}

.featured-card p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 16px; }

.featured-card__list {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.featured-card__list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.featured-card__list li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

/* Mock screen */

.mock-screen {
  background: #0a0a14;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 100%;
  min-height: 200px;
}

.mock-screen__bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: #111122;
  border-bottom: 1px solid var(--border);
}
.mock-screen__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #2a2a3a;
}
.mock-screen__bar span:nth-child(1) { background: #ff5f57; }
.mock-screen__bar span:nth-child(2) { background: #ffbd2e; }
.mock-screen__bar span:nth-child(3) { background: #28c840; }

.mock-screen__body { padding: 16px; }

.mock-line {
  height: 10px;
  background: #1e1e30;
  border-radius: 4px;
  margin-bottom: 10px;
}
.mock-line--title { height: 16px; width: 60%; background: #2a2a3e; margin-bottom: 16px; }
.mock-line--short { width: 40%; }

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.mock-stat {
  height: 48px;
  background: #1a1a2e;
  border: 1px solid #2a2a3a;
  border-radius: 6px;
}

.mock-table { display: flex; flex-direction: column; gap: 6px; }
.mock-row {
  height: 28px;
  background: #16162a;
  border-radius: 4px;
}

/* ── Portfolio ─────────────────────────────────────────────────────────────── */

.portfolio__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-2); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(99,102,241,0.1);
}
.project-card.hidden { display: none; }

.project-card__header { display: flex; align-items: center; justify-content: space-between; }
.project-card__cat {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.project-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.project-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.project-card__url { font-size: 0.78rem; color: var(--accent-2); font-family: monospace; }
.project-card p { font-size: 0.83rem; color: var(--text-muted); line-height: 1.6; flex: 1; }
.project-card__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
  transition: color var(--transition);
  margin-top: 4px;
  align-self: flex-start;
}
.project-card__link:hover { color: var(--cyan); }

/* ── Experiencia ───────────────────────────────────────────────────────────── */

.experiencia { background: var(--bg-surface); }

.experiencia__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.experiencia__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.experiencia__text p strong { color: var(--text); }

.experiencia__pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}
.pillar:hover {
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.pillar__icon {
  width: 40px; height: 40px;
  background: var(--accent-glow);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.pillar__icon svg { width: 20px; height: 20px; color: var(--accent-2); }
.pillar h4 { font-size: 0.9rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.pillar p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

/* ── CTA ───────────────────────────────────────────────────────────────────── */

.cta { text-align: center; }

.cta__inner {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 80px 48px;
  overflow: hidden;
  max-width: 100%;
}

.cta__glow {
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 300px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.cta__title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta__sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta__email {
  font-size: 0.85rem;
  color: var(--text-faint);
  font-family: monospace;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 48px;
  padding-bottom: 40px;
}

.footer__logo { font-size: 1.1rem; font-weight: 800; color: #fff; }
.footer__logo span { color: var(--accent-2); }

.footer__brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 8px;
  max-width: 280px;
  line-height: 1.6;
}
.footer__credit { color: var(--text-faint) !important; font-size: 0.78rem !important; margin-top: 4px !important; }

.footer__nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.footer__bottom p {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: center;
}

/* ── Reveal animations ─────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.servicios__grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.servicios__grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.servicios__grid .reveal:nth-child(4) { transition-delay: 0.21s; }
.servicios__grid .reveal:nth-child(5) { transition-delay: 0.28s; }
.servicios__grid .reveal:nth-child(6) { transition-delay: 0.35s; }

.portfolio__grid .reveal:nth-child(2) { transition-delay: 0.07s; }
.portfolio__grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.portfolio__grid .reveal:nth-child(4) { transition-delay: 0.07s; }
.portfolio__grid .reveal:nth-child(5) { transition-delay: 0.14s; }
.portfolio__grid .reveal:nth-child(6) { transition-delay: 0.21s; }

.experiencia__pillars .reveal:nth-child(2) { transition-delay: 0.07s; }
.experiencia__pillars .reveal:nth-child(3) { transition-delay: 0.14s; }
.experiencia__pillars .reveal:nth-child(4) { transition-delay: 0.21s; }

/* ── Featured nuevo ────────────────────────────────────────────────────────── */

.fd-main {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: center;
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(34,211,238,0.03));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 52px;
  margin-bottom: 28px;
  overflow: hidden;
}

.fd-main__glow {
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(99,102,241,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.fd-main__badges { display: flex; gap: 8px; margin-bottom: 16px; align-items: center; }

.fd-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid;
}
.fd-badge--saas { color: var(--accent-2); background: var(--accent-glow); border-color: var(--border-glow); }
.fd-badge--mem  { color: #f472b6; background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.25); }
.fd-badge--live {
  color: #4ade80;
  background: rgba(74,222,128,0.08);
  border-color: rgba(74,222,128,0.25);
  display: flex;
  align-items: center;
  gap: 5px;
}
.fd-badge__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s infinite;
}

.fd-main__title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.fd-main__url { font-size: 0.82rem; color: var(--accent-2); font-family: monospace; margin-bottom: 16px; }
.fd-main__desc {
  font-size: 0.925rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.fd-main__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}
.fd-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.fd-feature svg { width: 16px; height: 16px; color: var(--accent-2); flex-shrink: 0; }

.fd-main__stack {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.fd-main__stack span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.03em;
}

/* App screen mock */
.fd-screen {
  background: #07070f;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(99,102,241,0.1);
}
.fd-screen__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #0d0d1a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.fd-screen__dots { display: flex; gap: 5px; }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }
.fd-screen__url {
  font-size: 0.68rem;
  color: #3a3a5c;
  font-family: monospace;
  background: #111120;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 3px 12px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
}
.fd-screen__body {
  display: flex;
  height: 260px;
}

/* Sidebar mock */
.fd-sidebar {
  width: 52px;
  background: #0a0a16;
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}
.fd-sidebar__logo {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), var(--cyan));
  border-radius: 8px;
  margin-bottom: 8px;
  opacity: 0.7;
}
.fd-nav-item {
  height: 28px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.fd-nav-item--active {
  background: rgba(99,102,241,0.25);
  border: 1px solid rgba(99,102,241,0.3);
}

/* Content mock */
.fd-content { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.fd-content__header { display: flex; flex-direction: column; gap: 6px; }
.fd-title-line  { height: 14px; width: 55%; background: #1e1e30; border-radius: 4px; }
.fd-subtitle-line { height: 9px; width: 35%; background: #161624; border-radius: 4px; }

.fd-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.fd-metric {
  background: #111120;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 10px;
}
.fd-metric--accent {
  background: rgba(99,102,241,0.1);
  border-color: rgba(99,102,241,0.2);
}
.fd-metric__num  { height: 14px; width: 50%; background: #2a2a40; border-radius: 3px; margin-bottom: 6px; }
.fd-metric__label { height: 7px; width: 70%; background: #1a1a2a; border-radius: 3px; }

.fd-table { display: flex; flex-direction: column; gap: 5px; }
.fd-table__head { height: 22px; background: #0e0e1c; border-radius: 4px; }
.fd-table__row  { height: 28px; background: #111120; border-radius: 4px; }
.fd-table__row--muted { background: #0d0d18; opacity: 0.5; }

/* ── Secondary featured (Vanesa Vairo) ──────────────────────────────────── */

.fd-secondary {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 52px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 52px;
  transition: var(--transition);
}
.fd-secondary:hover {
  border-color: var(--border-glow);
  box-shadow: 0 16px 48px rgba(99,102,241,0.08);
}

.fd-secondary__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Phone mock */
.fd-phone {
  width: 140px;
  background: #0a0a16;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.5);
  position: relative;
}
.fd-phone__notch {
  width: 48px; height: 10px;
  background: #0d0d1a;
  border-radius: 0 0 8px 8px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
}
.fd-phone__screen { padding: 10px 10px 14px; display: flex; flex-direction: column; gap: 7px; }
.fd-phone__hero { height: 64px; background: linear-gradient(135deg, rgba(244,114,182,0.2), rgba(99,102,241,0.15)); border-radius: 8px; }
.fd-phone__line { height: 8px; background: #1a1a28; border-radius: 3px; }
.fd-phone__line--title { height: 12px; width: 75%; background: #22223a; }
.fd-phone__line--short { width: 50%; }
.fd-phone__btn { height: 26px; background: rgba(244,114,182,0.25); border: 1px solid rgba(244,114,182,0.3); border-radius: 6px; }
.fd-phone__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 2px; }
.fd-phone__card { height: 40px; background: #111120; border: 1px solid rgba(255,255,255,0.05); border-radius: 6px; }

.fd-secondary__title {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.fd-secondary__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* ── GymFlow Section ───────────────────────────────────────────────────────── */

.gymflow-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.gymflow-feat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition);
}

.gymflow-feat:hover { border-color: var(--border-glow); }

.gymflow-feat__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-2);
}

.gymflow-feat__icon svg { width: 22px; height: 22px; }

.gymflow-feat h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.gymflow-feat p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.gymflow-plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto 32px;
}

.gymflow-plan {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.gymflow-plan--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99,102,241,0.1) 0%, var(--bg-card) 60%);
}

.gymflow-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.gymflow-plan__top { margin-bottom: 20px; }

.gymflow-plan__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.gymflow-plan__price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 4px;
}

.gymflow-plan__price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.gymflow-plan__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.gymflow-plan__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 24px;
  flex: 1;
}

.gymflow-plan__list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-muted);
}

.gymflow-plan__list svg {
  width: 15px;
  height: 15px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.gymflow-plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.gymflow-plan__btn--primary {
  background: var(--accent);
  color: #fff;
}
.gymflow-plan__btn--primary:hover { background: var(--accent-2); }

.gymflow-plan__btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.gymflow-plan__btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.gymflow-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.gymflow-cta__note {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto 24px;
}

.pricing-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: border-color var(--transition);
}

.pricing-card:hover { border-color: var(--border-glow); }

.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, var(--bg-card) 60%);
}

.pricing-card__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: 24px; }

.pricing-card__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.pricing-card__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.pricing-card__period {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.pricing-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.pricing-card__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pricing-card__features svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
  flex-shrink: 0;
}

.pricing-card__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  text-align: center;
}

.pricing-card__btn--primary {
  background: var(--accent);
  color: #fff;
}
.pricing-card__btn--primary:hover { background: var(--accent-2); }

.pricing-card__btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
}
.pricing-card__btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.pricing__note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }
  .quien__inner { grid-template-columns: 1fr; }
  .quien__card { max-width: 480px; }
  .profile-card { position: static; }
  .featured-card--main { grid-template-columns: 1fr; }
  .mock-screen { min-height: 160px; }
  .gymflow-features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .nav__links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,8,16,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav__links.open { display: flex; }
  .nav__links a {
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }
  .nav__links a:last-child { border-bottom: none; }
  .nav__cta { padding: 12px 0 !important; background: transparent !important; }

  .nav__burger { display: flex; }

  .hero__title { font-size: 2rem; }
  .hero__sub { font-size: 0.95rem; }
  .hero__stats { gap: 32px; }

  .servicios__grid { grid-template-columns: 1fr; }
  .portfolio__grid { grid-template-columns: 1fr; }
  .featured__grid { grid-template-columns: 1fr; }
  .pricing__grid { grid-template-columns: 1fr; }
  .featured-card--main { grid-column: auto; }
  .gymflow-features { grid-template-columns: 1fr; }
  .gymflow-plans { grid-template-columns: 1fr; }

  /* ── Featured destacados mobile ── */
  .fd-secondary {
    grid-template-columns: 1fr;
    padding: 28px 20px;
    gap: 20px;
    overflow: hidden;
  }
  .fd-secondary + .fd-secondary { margin-top: 16px; }

  .fd-secondary__left { display: flex; justify-content: center; }
  .fd-secondary__title { font-size: 1.4rem; }
  .fd-secondary__desc { font-size: 0.875rem; }

  .fd-main__features { grid-template-columns: 1fr; gap: 8px; }

  .fd-phone { width: 110px; }

  .cta__inner { padding: 48px 24px; }

  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__nav { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
  .nav__inner { padding: 0 20px; }
  .nav__logo { font-size: 1.1rem; gap: 8px; white-space: nowrap; }
  .nav__logo-img { width: 28px; height: 28px; flex-shrink: 0; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; justify-content: center; }
  .portfolio__filters { gap: 6px; }
  .filter-btn { padding: 7px 14px; font-size: 0.78rem; }

  .fd-secondary { padding: 24px 16px; }
  .fd-phone { width: 96px; }
}
