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

:root {
  --bg:        #080b14;
  --bg2:       #0d1220;
  --bg3:       #111827;
  --cyan:      #00d4ff;
  --cyan2:     #00a8cc;
  --purple:    #7c3aed;
  --purple2:   #a855f7;
  --green:     #10b981;
  --text:      #e2e8f0;
  --text2:     #94a3b8;
  --text3:     #64748b;
  --border:    rgba(0, 212, 255, 0.15);
  --glass:     rgba(13, 18, 32, 0.7);
  --radius:    12px;
  --radius-lg: 20px;
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Courier New', monospace;

  /* Typography System */
  --font-size-h1:    3rem;      /* 48px */
  --font-size-h2:    2.25rem;   /* 36px */
  --font-size-h3:    1.75rem;   /* 28px */
  --font-size-h4:    1.5rem;    /* 24px */
  --font-size-h5:    1.25rem;   /* 20px */
  --font-size-h6:    1.125rem;  /* 18px */
  --font-size-body:  1rem;      /* 16px */
  --font-size-small: 0.875rem;  /* 14px */
  
  --line-height-tight:  1.2;
  --line-height-snug:   1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose:  1.8;
  
  --font-weight-normal:   400;
  --font-weight-medium:   500;
  --font-weight-semibold: 600;
  --font-weight-bold:     700;
  --font-weight-extrabold: 800;

  --letter-spacing-tight:  -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:   0.025em;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.15), 0 4px 6px rgba(0,0,0,0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================== TYPOGRAPHY ===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  color: var(--text);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: 1.5rem;
  font-weight: var(--font-weight-bold);
}

h1 {
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: 2rem;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-snug);
  margin-bottom: 1.5rem;
}

h3 {
  font-size: var(--font-size-h3);
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

h4 {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
}

h5 {
  font-size: var(--font-size-h5);
  font-weight: var(--font-weight-medium);
}

h6 {
  font-size: var(--font-size-h6);
  font-weight: var(--font-weight-medium);
}

p {
  color: var(--text2);
  line-height: var(--line-height-relaxed);
  margin-bottom: 1.25rem;
  max-width: 70ch;
}

.content-container p,
.article-content p,
main > p {
  max-width: 70ch;
}

/* Accessibility */
*:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shad ow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
}

.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--cyan); color: var(--bg); padding: 0.5rem 1rem;
  border-radius: 0 0 8px 0; font-weight: 700; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ===================== GRID BG ===================== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ===================== NAV ===================== */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(8, 11, 20, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.05em;
}
.nav-logo span { color: var(--text2); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover {
  opacity: 0.95;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Hamburger button — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
/* X animation when open */
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===================== BREADCRUMBS ===================== */
.breadcrumbs {
  position: relative;
  z-index: 1;
  padding: 5.5rem 2rem 0;
}
.breadcrumbs-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text3);
}
.breadcrumbs-inner a {
  color: var(--text3);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumbs-inner a:hover { color: var(--cyan); }
.breadcrumbs-inner .sep { color: var(--text3); opacity: 0.4; }
.breadcrumbs-inner .current { color: var(--text2); }

/* ===================== HOME HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
  z-index: 1;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  animation: blobMove 10s ease-in-out infinite alternate;
}
.blob1 { width: 500px; height: 500px; background: var(--cyan);   top: -100px; left: -150px; }
.blob2 { width: 400px; height: 400px; background: var(--purple); bottom: 0; right: -100px; animation-delay: -4s; }
.blob3 { width: 300px; height: 300px; background: var(--green);  top: 40%; left: 40%; animation-delay: -7s; }

@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 20px) scale(1.1); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--cyan);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.3); }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

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

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: 0.85rem; color: var(--text3); margin-top: 0.2rem; }

/* ===================== PAGE HERO (inner pages) ===================== */
.page-hero {
  position: relative;
  z-index: 1;
  padding: 2rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.page-hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text2);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}
.page-hero .hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 20px rgba(0, 212, 255, 0.3);
  color: #fff;
}
.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.btn-outline:active {
  transform: translateY(0);
  box-shadow: none;
}
.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.88rem; }

/* ===================== SECTIONS ===================== */
section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}
.section-alt { background: var(--bg2); }
.section-dark { background: var(--bg); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 3.5rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto;
}

/* ===================== SERVICE CARDS ===================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  box-shadow: var(--shadow-md);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  opacity: 0;
  transition: opacity 0.3s;
}
.service-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: inherit;
}
.service-card:hover::before { opacity: 1; }

.service-card .card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--cyan);
  font-weight: 600;
  margin-top: 1rem;
  transition: gap 0.2s;
}
.service-card:hover .card-arrow { gap: 0.6rem; }

.service-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--cyan);
  margin-bottom: 1rem;
  display: block;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--purple);
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.65;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  background: rgba(0, 212, 255, 0.08);
  color: var(--cyan2);
  border: 1px solid rgba(0, 212, 255, 0.15);
}

/* ===================== SERVICE DETAIL PAGE ===================== */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.service-main { min-width: 0; }
.service-sidebar {
  position: sticky;
  top: 5rem;
}
.sidebar-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

/* prose */
.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.prose h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}
.prose p {
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prose strong { color: var(--text); font-weight: 600; }

/* Benefits */
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
}
.benefits-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.6;
}
.benefits-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Use cases grid */
.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}
.use-case-card {
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color 0.3s;
}
.use-case-card:hover { border-color: rgba(0,212,255,0.3); }
.use-case-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.use-case-card p {
  font-size: 0.82rem;
  color: var(--text2);
  line-height: 1.55;
  margin: 0;
}
.use-case-icon { font-size: 1.5rem; margin-bottom: 0.5rem; display: block; }

/* ===================== FAQ ===================== */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq-item:hover { border-color: rgba(0,212,255,0.25); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--cyan);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] { border-color: rgba(0,212,255,0.25); }
.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
}
.faq-answer p { margin-bottom: 0.5rem; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ===================== CTA BANNER ===================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0,212,255,0.08) 0%, rgba(124,58,237,0.08) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta-banner p {
  color: var(--text2);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================== RELATED SERVICES ===================== */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.related-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.related-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-3px);
  color: inherit;
}
.related-card-icon { font-size: 1.8rem; flex-shrink: 0; }
.related-card h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.3rem; }
.related-card p { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin: 0; }

/* ===================== TECH STACK ===================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.tech-item {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s;
}
.tech-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.15);
}
.tech-icon { font-size: 1.8rem; margin-bottom: 0.5rem; display: block; }
.tech-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.tech-type { font-size: 0.7rem; color: var(--text3); margin-top: 0.2rem; }

/* Tech categories */
.tech-category { margin-bottom: 3rem; }
.tech-category-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* Tech detail cards */
.tech-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.tech-detail-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all 0.3s;
}
.tech-detail-card:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-3px);
}
.tech-detail-card .tech-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.tech-detail-card .tech-big-icon { font-size: 2rem; }
.tech-detail-card h3 { font-size: 1rem; font-weight: 700; }
.tech-detail-card .level {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}
.level-expert { background: rgba(16,185,129,0.15); color: var(--green); }
.level-avanzado { background: rgba(0,212,255,0.1); color: var(--cyan); }
.tech-detail-card p {
  font-size: 0.85rem;
  color: var(--text2);
  line-height: 1.6;
  margin: 0;
}

/* ===================== ABOUT ===================== */
#sobre-mi { background: var(--bg2); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-badge-list { display: flex; flex-direction: column; gap: 1rem; }
.about-badge {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s;
}
.about-badge:hover { border-color: rgba(0, 212, 255, 0.3); }
.about-badge-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 10px;
}
.about-badge h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.about-badge p { font-size: 0.85rem; color: var(--text2); line-height: 1.5; }
.about-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.about-text p { color: var(--text2); line-height: 1.75; margin-bottom: 1rem; }
.about-text .highlight { color: var(--cyan); font-weight: 600; }

/* Skills full page */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.skill-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.skill-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.4rem; }
.skill-card p { font-size: 0.85rem; color: var(--text2); line-height: 1.6; margin: 0; }
.skill-level {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.75rem;
}
.skill-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
}
.skill-dot.filled { background: var(--cyan); }

/* ===================== PROCESS ===================== */
#proceso { background: var(--bg); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}
.step:hover {
  border-color: rgba(0, 212, 255, 0.3);
  transform: translateY(-3px);
}
.step-num {
  counter-increment: step;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 1.25rem;
}
.step h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.85rem; color: var(--text2); line-height: 1.6; }

/* Process detail */
.process-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--cyan), var(--purple));
  opacity: 0.3;
}
.timeline-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.75rem 1.75rem 1.75rem 0;
  position: relative;
}
.timeline-num {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.timeline-content {
  flex: 1;
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}
.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.timeline-content p {
  font-size: 0.9rem;
  color: var(--text2);
  line-height: 1.7;
  margin: 0;
}
.timeline-duration {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

/* ===================== CONTACT ===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
.contact-info h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.contact-info p { color: var(--text2); line-height: 1.75; margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 0.85rem; }
.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}
.contact-link:hover {
  border-color: rgba(0, 212, 255, 0.35);
  color: var(--cyan);
  transform: translateX(4px);
}
.contact-link-icon {
  font-size: 1.2rem;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 212, 255, 0.08);
  border-radius: 8px;
  flex-shrink: 0;
}
.contact-link-text { font-size: 0.9rem; font-weight: 500; }
.contact-link-label { font-size: 0.75rem; color: var(--text3); margin-top: 0.1rem; }

.contact-form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(10px);
}
.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.08);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select option { background: var(--bg2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===================== FOOTER ===================== */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-family: var(--font-mono); color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.footer-logo span { color: var(--text2); }
.footer-logo a { color: inherit; text-decoration: none; }
.footer-copy { font-size: 0.8rem; color: var(--text3); }
.footer-nav { display: flex; gap: 1.5rem; list-style: none; }
.footer-nav a { font-size: 0.8rem; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: var(--cyan); }
.footer-tech { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text3); display: flex; align-items: center; gap: 0.4rem; }
.rust-badge { color: #f74c00; font-weight: 700; }
.footer-legal { display: flex; gap: 1.25rem; margin-top: 0.25rem; }
.footer-legal a { font-size: 0.75rem; color: var(--text3); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--cyan); }

/* ===================== FORM CHECKBOX (GDPR) ===================== */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
}
.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.form-check label {
  font-size: 0.83rem;
  color: var(--text3);
  cursor: pointer;
  line-height: 1.5;
}
.form-check label a { color: var(--cyan); text-decoration: underline; }

/* ===================== COOKIE BANNER ===================== */
.cookie-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem;
}
.cookie-modal {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  max-width: 620px;
  width: 100%;
  margin-bottom: 1.5rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.cookie-modal h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.cookie-modal p {
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.cookie-modal a { color: var(--cyan); text-decoration: underline; }
.cookie-modal code { font-family: var(--font-mono); font-size: 0.82rem; color: var(--cyan); }
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation classes */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Service cards animation stagger */
.services-grid .service-card {
  animation: fadeInUp 0.6s ease-out both;
}

.services-grid .service-card:nth-child(1) { animation-delay: 0s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.7s; }
.services-grid .service-card:nth-child(9) { animation-delay: 0.8s; }
.services-grid .service-card:nth-child(10) { animation-delay: 0.9s; }

/* Hero elements fade in */
.hero-badge { animation: fadeIn 0.8s ease-out 0.2s both; }
.hero h1 { animation: fadeInUp 0.8s ease-out 0.4s both; }
.hero p { animation: fadeInUp 0.8s ease-out 0.6s both; }
.hero-cta { animation: fadeInUp 0.8s ease-out 0.8s both; }
.hero-stats { animation: fadeInUp 0.8s ease-out 1s both; }

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .service-detail { grid-template-columns: 1fr; }
  .service-sidebar { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 57px;
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 999;
    list-style: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .nav-links li:last-child { border-bottom: none; padding: 0.75rem 2rem; }
  .nav-links a {
    display: block;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    color: var(--text2);
  }
  .nav-links a:hover, .nav-links a.active { color: var(--cyan); background: rgba(0,212,255,0.05); }
  .nav-cta {
    display: inline-block;
    margin: 0 2rem;
    text-align: center;
    border-radius: 8px;
  }
  .about-layout,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; flex-wrap: wrap; gap: 1rem; }
  .process-timeline::before { left: 24px; }
  .timeline-num { width: 48px; height: 48px; }

  /* Typography responsive adjustments */
  h1 { font-size: 2.25rem; } /* 36px instead of 48px */
  h2 { font-size: 1.875rem; } /* 30px instead of 36px */
  h3 { font-size: 1.5rem; } /* 24px instead of 28px */
  h4 { font-size: 1.25rem; } /* 20px instead of 24px */
  p, body { line-height: var(--line-height-loose); } /* 1.8 para mejor legibilidad táctil */
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 6px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(0, 212, 255, 0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 212, 255, 0.4); }
