/* ============================================
   ESTUDIOS ESCOBAR — SILICON CRAFT DARK 2026
   ============================================ */

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

:root {
  --bg:            #050509;
  --bg-2:          #08080f;
  --surface:       rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.065);
  --border:        rgba(255,255,255,0.07);
  --border-hover:  rgba(139,92,246,0.45);
  --purple:        #7c3aed;
  --purple-light:  #a78bfa;
  --purple-dim:    rgba(124,58,237,0.12);
  --blue:          #3b82f6;
  --blue-light:    #93c5fd;
  --cyan:          #22d3ee;
  --white:         #f8fafc;
  --text:          #f1f5f9;
  --text-muted:    #94a3b8;
  --text-faint:    #475569;
  --radius:        14px;
  --radius-lg:     22px;
  --radius-xl:     32px;
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
  --t:             0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.028;
}

/* ── CANVAS ────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── SCROLLBAR ─────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }

/* ── CONTAINER ─────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ── TYPOGRAPHY ────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.accent { color: var(--purple-light); }
.section-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 1rem;
}
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

/* ── BUTTONS ───────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--purple);
  color: #fff;
  padding: 0.85rem 1.6rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), background var(--t);
  will-change: transform;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 32px rgba(124,58,237,0.45); background: #6d28d9; }
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: scale(0.97); }
.btn-primary.btn-full { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--purple-light);
  padding: 0.82rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(139,92,246,0.35);
  cursor: pointer;
  transition: var(--t);
  font-family: 'Space Grotesk', sans-serif;
}
.btn-outline:hover { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.6); transform: translateY(-2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.05);
  color: var(--text-muted);
  padding: 0.82rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--t);
  font-family: 'Space Grotesk', sans-serif;
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--text); transform: translateY(-2px); }

/* Botón estilo "Ver servicio" para las cards */
.btn-service {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple-light);
  text-decoration: none;
  border: 1px solid rgba(167,139,250,0.25);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  transition: var(--t);
  background: rgba(167,139,250,0.05);
  font-family: 'Space Grotesk', sans-serif;
}
.btn-service:hover { background: var(--purple); color: #fff; border-color: var(--purple); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,58,237,0.35); }

/* ── SPLASH ────────────────────────────────────── */
#splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: splashOut 0.7s var(--ease) 2.4s forwards;
}
.splash-inner { display: flex; align-items: center; justify-content: center; }
.splash-logo {
  width: clamp(90px, 15vw, 140px);
  height: auto;
  opacity: 0;
  transform: scale(0.75);
  animation: splashLogoIn 0.8s var(--ease-spring) 0.3s forwards;
  filter: invert(1) drop-shadow(0 0 30px rgba(167,139,250,0.6));
}
@keyframes splashLogoIn { to { opacity: 1; transform: scale(1); } }
@keyframes splashOut { to { opacity: 0; pointer-events: none; } }

/* ── CURSOR ────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--purple-light);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}
#cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(167,139,250,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
}

/* ── REVEAL ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

/* ── NAVBAR ────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 3rem);
  max-width: 1100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.5rem;
  background: rgba(5,5,9,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 100px;
  transition: background var(--t), box-shadow var(--t);
}
#navbar.scrolled { background: rgba(5,5,9,0.85); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }
.nav-logo { font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; color: var(--white); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  transition: color var(--t), background var(--t);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.07); }
.nav-email {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.01em !important;
  color: var(--text-faint) !important;
}
.nav-email:hover { color: var(--purple-light) !important; background: transparent !important; }
.nav-cta { background: var(--purple) !important; color: #fff !important; padding: 0.5rem 1.1rem !important; }
.nav-cta:hover { background: #6d28d9 !important; }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ───────────────────────────────── */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5,5,9,0.95);
  backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
#mobile-menu.open { opacity: 1; pointer-events: all; }
#mobile-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 0.5rem; }
#mobile-menu ul a {
  display: block;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: -0.03em;
  padding: 0.3rem 0;
  transform: translateY(40px);
  opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.5s var(--ease), color 0.3s;
}
#mobile-menu.open ul a { transform: translateY(0); opacity: 1; }
#mobile-menu.open ul li:nth-child(1) a { transition-delay: 0.05s; }
#mobile-menu.open ul li:nth-child(2) a { transition-delay: 0.1s; }
#mobile-menu.open ul li:nth-child(3) a { transition-delay: 0.15s; }
#mobile-menu.open ul li:nth-child(4) a { transition-delay: 0.2s; }
#mobile-menu.open ul li:nth-child(5) a { transition-delay: 0.25s; }
#mobile-menu.open ul li:nth-child(6) a { transition-delay: 0.3s; }
#mobile-menu ul a:hover { color: var(--white); }

/* ── HERO ──────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
}
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.18; }
.orb-1 { width: 600px; height: 600px; background: radial-gradient(circle, #7c3aed, transparent); top: -200px; left: -200px; }
.orb-2 { width: 500px; height: 500px; background: radial-gradient(circle, #3b82f6, transparent); bottom: -100px; right: -100px; }
.orb-3 { width: 400px; height: 400px; background: radial-gradient(circle, #22d3ee, transparent); top: 40%; left: 50%; opacity: 0.08; }
.noise-overlay { display: none; }

.hero-content { flex: 1; max-width: 580px; position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-light);
  border: 1px solid rgba(167,139,250,0.2);
  background: rgba(167,139,250,0.06);
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}
.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.0;
  margin-bottom: 1.75rem;
}
.reveal-line { display: block; }
.hero-sub { font-size: 1.05rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2.5rem; max-width: 460px; }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--white); line-height: 1; }
.stat-label { font-size: 0.78rem; color: var(--text-faint); margin-top: 0.2rem; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

.hero-visual { flex: 1; max-width: 520px; position: relative; z-index: 2; }
.hero-card-wrap { position: relative; }
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.6s var(--ease);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.08);
}
.card-screen { position: relative; }
.card-screen img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.card-ui-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(5,5,9,0.9), transparent);
}
.ui-bar { display: flex; gap: 5px; margin-bottom: 0.5rem; }
.ui-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.ui-metrics { display: flex; gap: 0.75rem; }
.metric-item { background: rgba(255,255,255,0.06); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 0.4rem 0.75rem; }
.metric-val { font-size: 0.8rem; font-weight: 700; color: #4ade80; display: block; }
.metric-k { font-size: 0.65rem; color: var(--text-faint); }
.floating-badge {
  position: absolute;
  background: rgba(5,5,9,0.75);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  animation: floatBadge 3s ease-in-out infinite;
}
.badge-top { top: -1rem; right: -1rem; color: #fbbf24; }
.badge-bottom { bottom: 1.5rem; left: -1.5rem; animation-delay: 1.5s; }
.online-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 6px #4ade80; animation: pulse 2s infinite; }
@keyframes floatBadge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  z-index: 2;
}
.hero-scroll-hint span { font-family: 'Space Mono', monospace; font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--purple-light), transparent); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── TICKER ────────────────────────────────────── */
.ticker-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  background: rgba(255,255,255,0.015);
}
.ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.ticker-dot { color: var(--purple-light); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── SERVICIOS ─────────────────────────────────── */
#servicios { padding: 8rem 0; position: relative; z-index: 1; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t), background var(--t);
  display: flex;
  flex-direction: column;
  cursor: default;
}
.service-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.35); background: rgba(255,255,255,0.05); }

/* imagen/ilustración superior */
.service-img {
  background: rgba(124,58,237,0.06);
  border-bottom: 1px solid var(--border);
  height: 200px;
  overflow: hidden;
  position: relative;
  transition: background var(--t);
}
.service-card:hover .service-img { background: rgba(124,58,237,0.12); }
.service-img svg { width: 80px; height: 80px; color: var(--purple-light); opacity: 0.65; transition: opacity var(--t), transform var(--t); }
.service-card:hover .service-img svg { opacity: 1; transform: scale(1.07) translateY(-3px); }
.service-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.32,0.72,0,1); }
.service-card:hover .service-img img { transform: scale(1.06); }

.service-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--white); text-align: center; }
.service-body p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1.25rem; text-align: center; flex: 1; }
.service-body .btn-service { margin: 0 auto; }

/* ── PROCESO ───────────────────────────────────── */
#proceso { padding: 8rem 0; position: relative; z-index: 1; }
.proceso-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.proceso-visual { position: relative; }
.proceso-img-wrap { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; position: relative; }
.proceso-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(5,5,9,0.5)); pointer-events: none; }
.proceso-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.8s var(--ease); }
.proceso-visual:hover .proceso-img-wrap img { transform: scale(1.04); }
.proceso-img-overlay { display: none; }
.proceso-tag {
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  border-radius: 16px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(124,58,237,0.4);
}
.tag-number { font-size: 1.4rem; font-weight: 800; font-family: 'Space Mono', monospace; }
.proceso-content h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 2.5rem; }
.steps { display: flex; flex-direction: column; }
.step-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: var(--t);
}
.step-item:last-child { border-bottom: none; }
.step-item:hover .step-num { background: var(--purple); color: #fff; border-color: var(--purple); }
.step-num {
  width: 36px; height: 36px; min-width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--purple-light);
  transition: var(--t);
}
.step-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.35rem; }
.step-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ── SOBRE MI ──────────────────────────────────── */
#sobre-mi { padding: 8rem 0; position: relative; z-index: 1; }
.about-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.about-visual { position: relative; }
.about-img-wrap { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; transition: transform 0.8s var(--ease); }
.about-visual:hover .about-img-wrap img { transform: scale(1.04); }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.about-content h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 1.5rem; margin-top: 0.75rem; }
.about-text { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-text strong { color: var(--text); }
.about-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.5rem; }
.about-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--t);
}
.about-tag:hover { border-color: rgba(139,92,246,0.4); color: var(--purple-light); }

/* ── PORTFOLIO ─────────────────────────────────── */
#portfolio { padding: 8rem 0; position: relative; z-index: 1; }
.portfolio-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.portfolio-item:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); box-shadow: 0 24px 60px rgba(0,0,0,0.4); }
.portfolio-img { position: relative; overflow: hidden; aspect-ratio: 16/10; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s var(--ease); }
.portfolio-item:hover .portfolio-img img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,9,0.95) 0%, rgba(5,5,9,0.5) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-light);
  margin-bottom: 0.5rem;
  border: 1px solid rgba(167,139,250,0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  width: fit-content;
}
.portfolio-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; line-height: 1.5; }
.portfolio-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: var(--purple);
  border-radius: 100px;
  width: fit-content;
  transition: var(--t);
}
.portfolio-link:hover { background: #6d28d9; transform: translateX(3px); }
.portfolio-info { padding: 1.25rem 1.5rem; }
.portfolio-category { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.portfolio-info h3 { font-size: 1.05rem; font-weight: 700; margin-top: 0.3rem; }

/* ── PRECIOS ───────────────────────────────────── */
#precios { padding: 8rem 0; position: relative; z-index: 1; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple-light), transparent);
  opacity: 0;
  transition: opacity var(--t);
}
.pricing-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.pricing-card:hover::before { opacity: 1; }
.pricing-card.featured { border-color: rgba(139,92,246,0.4); background: rgba(124,58,237,0.07); transform: translateY(-8px); box-shadow: 0 24px 60px rgba(124,58,237,0.2); }
.pricing-card.featured::before { opacity: 1; }
.featured-label {
  position: absolute;
  top: -1px; left: 50%; transform: translateX(-50%);
  background: var(--purple);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 0 0 10px 10px;
}
.plan-name { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--purple-light); margin-bottom: 0.75rem; }
.plan-price { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--white); line-height: 1; margin-bottom: 0.4rem; display: flex; align-items: flex-start; }
.currency { font-size: 1.5rem; margin-top: 0.5rem; margin-right: 0.1rem; font-weight: 600; color: var(--text-muted); }
.plan-desc { font-size: 0.82rem; color: var(--text-faint); margin-bottom: 2rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.plan-features li { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: flex-start; gap: 0.6rem; }
.plan-features li::before { content: '✓'; color: #4ade80; font-weight: 700; flex-shrink: 0; font-size: 0.8rem; margin-top: 0.05rem; }
.plan-features li.no { color: var(--text-faint); }
.plan-features li.no::before { content: '×'; color: var(--text-faint); }

/* ── CALCULADORA ───────────────────────────────── */
#calculadora { padding: 8rem 0; position: relative; z-index: 1; }
.calc-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
.calc-left { display: flex; flex-direction: column; gap: 2rem; }
.calc-group { display: flex; flex-direction: column; gap: 0.75rem; }
.calc-group-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); }
.calc-group-sub { font-size: 0.8rem; color: var(--text-faint); }
.calc-buttons { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.calc-btn {
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  font-family: 'Space Grotesk', sans-serif;
}
.calc-btn:hover { border-color: rgba(139,92,246,0.4); color: var(--text); background: rgba(139,92,246,0.07); }
.calc-btn.active { background: var(--purple); border-color: var(--purple); color: #fff; font-weight: 600; }
.calc-extras { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.calc-extra-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: var(--t);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.calc-extra-item:hover { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.05); }
.calc-extra-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; }
.extra-price { margin-left: auto; font-size: 0.78rem; color: var(--purple-light); font-weight: 600; white-space: nowrap; }
.calc-extra-item.extra-included { opacity: 0.5; border-color: rgba(74,222,128,0.3); }
.calc-extra-item.extra-included .extra-price { color: #4ade80; }
.calc-right {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}
.calc-result-label { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.5rem; font-family: 'Space Mono', monospace; }
#calcPrice { font-size: 3.5rem; font-weight: 800; letter-spacing: -0.05em; color: var(--white); line-height: 1; margin-bottom: 0.5rem; transition: transform 0.2s var(--ease-spring); }
#calcPrice.bump { transform: scale(1.06); }
#calcDesc { font-size: 0.78rem; color: var(--text-faint); margin-bottom: 1.5rem; border-top: 1px solid var(--border); padding-top: 1rem; line-height: 1.5; }
.calc-disclaimer { font-size: 0.73rem; color: var(--text-faint); margin-bottom: 1.5rem; line-height: 1.5; }

/* ── TESTIMONIOS ───────────────────────────────── */
#testimonios { padding: 8rem 0; position: relative; z-index: 1; }
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--t), transform var(--t);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.testimonial-card:hover { border-color: rgba(139,92,246,0.3); transform: translateY(-3px); }
.testimonial-stars { display: flex; gap: 3px; }
.star { color: #fbbf24; font-size: 0.9rem; }
.star.empty { color: var(--border); }
.testimonial-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; flex: 1; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), var(--blue)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; flex-shrink: 0; }
.author-name { font-size: 0.88rem; font-weight: 700; }
.author-role { font-size: 0.75rem; color: var(--text-faint); }

/* ── CTA BANNER ────────────────────────────────── */
#cta-banner { position: relative; z-index: 1; padding: 0 2rem; margin: 2rem auto; max-width: 1200px; }
.cta-inner {
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(59,130,246,0.15));
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-xl);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% -20%, rgba(124,58,237,0.25), transparent 70%); pointer-events: none; }
.cta-inner .section-tag { color: var(--purple-light); }
.cta-inner h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 1rem; line-height: 1.1; position: relative; }
.cta-inner > p { font-size: 1rem; color: var(--text-muted); margin-bottom: 2.5rem; position: relative; }
.cta-actions { display: flex; justify-content: center; align-items: center; gap: 1rem; flex-wrap: wrap; position: relative; }
.cta-walink {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  padding: 0.9rem 1.75rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--t);
  box-shadow: 0 8px 32px rgba(37,211,102,0.3);
}
.cta-walink:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(37,211,102,0.45); }

/* ── FAQ ───────────────────────────────────────── */
#faq { padding: 8rem 0; position: relative; z-index: 1; }
.faq-head { text-align: center; margin-bottom: 3.5rem; }
.faq-head h2 { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin-top: 0.75rem; }
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t); }
.faq-item[open] { border-color: rgba(139,92,246,0.35); }
.faq-q {
  list-style: none;
  padding: 1.35rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  transition: color var(--t);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--purple-light); flex-shrink: 0; transition: transform 0.35s var(--ease); }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-item[open] .faq-q { color: var(--purple-light); }
.faq-a { padding: 0 1.75rem 1.35rem; color: var(--text-muted); font-size: 0.9rem; line-height: 1.75; }
.faq-a strong { color: var(--text); }

/* ── CONTACTO ──────────────────────────────────── */
#contacto { padding: 8rem 0; position: relative; z-index: 1; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; margin-bottom: 1rem; margin-top: 0.75rem; }
.contact-info > p { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: var(--t);
}
.contact-method:hover { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.05); transform: translateX(4px); }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(124,58,237,0.12); border: 1px solid rgba(124,58,237,0.2); display: flex; align-items: center; justify-content: center; color: var(--purple-light); flex-shrink: 0; }
.contact-method strong { display: block; font-size: 0.88rem; font-weight: 700; }
.contact-method span { font-size: 0.8rem; color: var(--text-faint); }
.contact-form-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.45rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }
.form-group input, .form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: 'Space Grotesk', sans-serif;
  transition: border-color var(--t);
  outline: none;
  width: 100%;
  resize: none;
}
.form-group input:focus, .form-group textarea:focus { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.05); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-faint); }

/* ── FOOTER ────────────────────────────────────── */
#footer { position: relative; z-index: 1; border-top: 1px solid var(--border); padding: 5rem 0 3rem; margin-top: 4rem; }
.footer-top { display: flex; gap: 4rem; margin-bottom: 4rem; }
.footer-brand { flex: 1; }
.footer-logo { font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-faint); line-height: 1.65; max-width: 280px; }
.footer-links { display: flex; gap: 4rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-heading { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.85rem; color: var(--text-faint); text-decoration: none; transition: color var(--t); }
.footer-col a:hover { color: var(--purple-light); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-faint); }
.footer-logo-img { width: 150px; height: auto; margin-bottom: 0.75rem; display: block; filter: invert(1); opacity: 0.8; }
.accent { color: var(--purple-light); }

/* ── WHATSAPP FLOAT ────────────────────────────── */
#wa-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  border-radius: 100px;
  padding: 0.85rem 1.25rem 0.85rem 1rem;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(37,211,102,0.4);
  transition: transform var(--t), box-shadow var(--t);
  animation: waPulse 3s ease-in-out infinite;
}
#wa-float:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 8px 32px rgba(37,211,102,0.55); animation: none; }
.wa-float-label { white-space: nowrap; }
@keyframes waPulse { 0%, 100% { box-shadow: 0 4px 24px rgba(37,211,102,0.4); } 50% { box-shadow: 0 4px 32px rgba(37,211,102,0.65); } }

/* ── LEGAL ─────────────────────────────────────── */
.legal-page { padding: 9rem 0 6rem; max-width: 780px; }
.legal-page h1 { font-size: clamp(2rem,4vw,3rem); font-weight:700; letter-spacing:-0.03em; margin-bottom:0.5rem; }
.legal-page .legal-date { color:var(--text-faint); font-size:0.85rem; margin-bottom:3rem; }
.legal-body h2 { font-size:1.1rem; font-weight:700; color:var(--purple-light); margin:2.5rem 0 0.75rem; }
.legal-body p, .legal-body li { font-size:0.9rem; color:var(--text-muted); line-height:1.8; margin-bottom:0.6rem; }
.legal-body ul { padding-left:1.5rem; margin-bottom:1rem; }
.legal-body a { color:var(--purple-light); }
.legal-nav { display:flex; gap:1.5rem; flex-wrap:wrap; margin-bottom:2rem; }
.legal-nav a { font-size:0.85rem; color:var(--text-faint); text-decoration:none; transition:color var(--t); }
.legal-nav a:hover, .legal-nav a.active { color:var(--purple-light); }
.cookie-table { width:100%; border-collapse:collapse; margin:1.25rem 0 2rem; font-size:0.85rem; }
.cookie-table th { text-align:left; padding:0.7rem 1rem; background:var(--surface); color:var(--text-muted); font-weight:600; border-bottom:1px solid var(--border); }
.cookie-table td { padding:0.7rem 1rem; color:var(--text-muted); border-bottom:1px solid var(--border); vertical-align:top; }
.cookie-table tr:last-child td { border-bottom:none; }

/* ── MEDIA QUERIES ─────────────────────────────── */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .pricing-card.featured { transform: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  #hero { flex-direction: column; padding-top: 8rem; padding-bottom: 4rem; text-align: center; }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { max-width: 100%; }
  .proceso-wrap, .about-wrap { grid-template-columns: 1fr; gap: 4rem; }
  .about-badge { right: 1rem; }
  .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .calc-wrap { grid-template-columns: 1fr; }
  .calc-right { position: static; }
  .calc-extras { grid-template-columns: 1fr; }
  .testimonios-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .container { padding: 0 1.25rem; }
  #navbar { top: 1rem; width: calc(100% - 2rem); }
  #servicios, #proceso, #portfolio, #precios, #testimonios, #cta-banner, #contacto, #faq, #sobre-mi { padding: 5rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 3rem; }
  .footer-top { flex-direction: column; gap: 2.5rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-inner { padding: 3rem 1.75rem; }
  .wa-float-label { display: none; }
  #wa-float { padding: 1rem; border-radius: 50%; }
}
