/* ============================================
   KREO IA Studio — CEO Portfolio
   Jorge Luis Ordoñez M.
   Design System & Global Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Space+Grotesk:wght@300..700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors */
  --bg-primary: #050508;
  --bg-secondary: #0a0a10;
  --bg-card: #0f0f18;
  --bg-card-hover: #141420;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 102, 0, 0.2);

  --text-primary: #f0f0f5;
  --text-secondary: #8a8a9a;
  --text-muted: #55556a;

  --accent-cyan: #ff6600;
  --accent-cyan-dim: rgba(255, 102, 0, 0.15);
  --accent-purple: #e65100;
  --accent-purple-dim: rgba(230, 81, 0, 0.15);
  --accent-emerald: #ff9f00;

  --gradient-hero: linear-gradient(135deg, #050508 0%, #120905 50%, #1c0e07 100%);
  --gradient-accent: linear-gradient(135deg, #ff6600, #e65100);
  --gradient-card: linear-gradient(145deg, rgba(15, 15, 24, 0.8), rgba(10, 10, 16, 0.95));

  /* Typography */
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing */
  --section-padding: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-padding: clamp(20px, 5vw, 60px);

  /* Effects */
  --glow-cyan: 0 0 40px rgba(255, 102, 0, 0.15);
  --glow-purple: 0 0 40px rgba(230, 81, 0, 0.15);
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

img {
  max-width: 100%;
  display: block;
}

/* --- Utility Classes --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent-cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: rgba(5, 5, 8, 0.7);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 10px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
  transition: var(--transition-smooth);
}

.navbar:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-logo span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--accent-cyan);
  color: var(--bg-primary) !important;
  padding: 8px 20px !important;
  border-radius: 100px;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.02em;
  transition: var(--transition-smooth) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: #33ddff;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4);
  transform: scale(1.05);
}

/* Mobile menu */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

/* Draggable Elements Styling */
.drag-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  pointer-events: none;
}

.drag-element {
  position: absolute;
  pointer-events: auto;
  cursor: grab;
  background: rgba(15, 15, 24, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.1s;
}

.drag-element:active {
  cursor: grabbing;
  transform: scale(1.05);
}

.drag-element--brain {
  top: 20%;
  left: 20%;
  border-color: rgba(0, 212, 255, 0.2);
}

.drag-element--brain:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.drag-element--cube {
  top: 55%;
  right: 25%;
  border-color: rgba(139, 92, 246, 0.2);
}

.drag-element--cube:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.2), 0 10px 30px rgba(0, 0, 0, 0.4);
}

.drag-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 0 8px currentColor);
}

.drag-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: visible;
  z-index: 10;
  background: var(--gradient-hero);
  padding: var(--section-padding) 0;
}

/* Neural Network Canvas Background */
.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* Floating Interactive Elements */
.hero-floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  transition: transform 0.15s ease-out;
  pointer-events: none;
}

.float-orb--cyan {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 102, 0, 0.25), rgba(255, 102, 0, 0.05) 60%, transparent 70%);
  box-shadow: 0 0 60px rgba(255, 102, 0, 0.15), inset 0 0 30px rgba(255, 102, 0, 0.1);
  top: 12%;
  right: 8%;
}

.float-orb--purple {
  width: 130px;
  height: 130px;
  background: radial-gradient(circle at 35% 35%, rgba(230, 81, 0, 0.25), rgba(230, 81, 0, 0.05) 60%, transparent 70%);
  box-shadow: 0 0 50px rgba(230, 81, 0, 0.15), inset 0 0 25px rgba(230, 81, 0, 0.1);
  top: 60%;
  left: 5%;
}

.float-orb--emerald {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 159, 0, 0.2), rgba(255, 159, 0, 0.05) 60%, transparent 70%);
  box-shadow: 0 0 40px rgba(255, 159, 0, 0.12), inset 0 0 20px rgba(255, 159, 0, 0.08);
  bottom: 20%;
  right: 15%;
}

/* Geometric shapes */
.float-shape {
  position: absolute;
  pointer-events: none;
  transition: transform 0.12s ease-out;
}

.float-shape--hex {
  width: 60px;
  height: 60px;
  top: 25%;
  left: 12%;
}

.float-shape--hex svg {
  width: 100%;
  height: 100%;
  stroke: rgba(0, 212, 255, 0.2);
  stroke-width: 1;
  fill: none;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.1));
}

.float-shape--diamond {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transform: rotate(45deg);
  top: 70%;
  right: 25%;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.08);
}

.float-shape--ring {
  width: 80px;
  height: 80px;
  border: 1.5px solid rgba(0, 212, 255, 0.12);
  border-radius: 50%;
  bottom: 30%;
  left: 20%;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.06);
}

.float-shape--cross {
  top: 15%;
  left: 45%;
}

.float-shape--cross::before,
.float-shape--cross::after {
  content: '';
  position: absolute;
  background: rgba(16, 185, 129, 0.25);
  border-radius: 1px;
}

.float-shape--cross::before {
  width: 20px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.float-shape--cross::after {
  width: 2px;
  height: 20px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.float-shape--dots {
  bottom: 15%;
  right: 35%;
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 8px;
}

.float-shape--dots span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(0, 212, 255, 0.3);
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.15);
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 28px;
}

.hero-badge .pulse {
  width: 6px;
  height: 6px;
  background: var(--accent-cyan);
  border-radius: 50%;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(0, 212, 255, 0); }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-title .divider {
  width: 40px;
  height: 1.5px;
  background: var(--gradient-accent);
}

.hero-tagline {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero-tagline strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-cyan);
  color: var(--bg-primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: var(--transition-smooth);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #33ddff;
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.3);
  transform: translateY(-2px);
}

.btn-primary svg {
  transition: transform 0.3s ease;
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text-primary);
  padding: 14px 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: var(--glow-cyan);
}

/* Hero Image */
.hero-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-image-container {
  position: relative;
  width: 380px;
  height: 460px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}

.hero-image-container::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: var(--gradient-accent);
  z-index: -1;
  opacity: 0.3;
  filter: blur(20px);
  animation: border-glow 4s ease-in-out infinite alternate;
}

@keyframes border-glow {
  0% { opacity: 0.2; }
  100% { opacity: 0.5; }
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(10%) contrast(1.05);
  transition: var(--transition-smooth);
}

.hero-image-container:hover img {
  filter: grayscale(0%) contrast(1.1);
  transform: scale(1.03);
}

/* Stats bar below image */
.hero-stats {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: rgba(5, 5, 8, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px 24px;
}

.hero-stat {
  text-align: center;
  padding: 0 16px;
  border-right: 1px solid var(--border-subtle);
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-cyan);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
  padding: var(--section-padding) 0;
  position: relative;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 285px 1.2fr;
  gap: 40px;
  align-items: start;
}

.about-image-placeholder-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 70px;
}

.about-image-placeholder {
  width: 285px;
  height: 345px;
  border-radius: 20px;
  background: transparent;
}

.about-visual {
  position: relative;
}

.about-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.about-quote-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(0, 212, 255, 0.06);
  line-height: 1;
}

.about-quote {
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.about-quote strong {
  color: var(--text-primary);
  font-weight: 600;
  font-style: normal;
}

.about-attribution {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.philosophy-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px;
  transition: var(--transition-smooth);
}

.philosophy-item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.philosophy-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.philosophy-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.philosophy-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
}

.projects-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
  transform: translateY(-4px);
}

@media (min-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .project-card {
    grid-template-columns: 1fr;
  }
  
  /* Proyecto 1: Destacado 2 columnas de ancho */
  .project-card:nth-child(1) {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  
  .project-card:nth-child(1) .project-image {
    min-height: 100%;
    height: 100%;
  }

  /* Proyecto 6: Destacado ancho completo */
  .project-card:nth-child(6) {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
  }

  .project-card:nth-child(6) .project-image {
    min-height: 100%;
    height: 100%;
  }
  
  /* Tarjetas verticales estándar (2, 3, 4, 5) */
  .project-card:not(:nth-child(1)):not(:nth-child(6)) .project-image {
    min-height: 230px;
    height: 230px;
  }
  
  .project-card:not(:nth-child(1)):not(:nth-child(6)) .project-info {
    padding: 24px;
  }
}

.project-image {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.project-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
}

.project-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

.project-desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-cyan);
  transition: var(--transition-smooth);
}

.project-link:hover {
  gap: 14px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  transition: var(--transition-smooth);
}

.skill-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-icon {
  font-size: 1.3rem;
}

.skill-label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
}

.skill-percentage {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

.skill-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.skill-bar-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   AI TEAM SECTION
   ============================================ */
.ai-team {
  padding: var(--section-padding) 0;
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.ai-team::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.ai-team-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.ai-team-header .section-label {
  justify-content: center;
}

.ai-team-header .section-label::before { display: none; }

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

.ai-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ai-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--glow-cyan);
}

.ai-card:hover::before {
  opacity: 1;
}

.ai-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
  background: var(--accent-cyan-dim);
  border: 1px solid rgba(0, 212, 255, 0.1);
}

.ai-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.ai-platform {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 10px;
}

.ai-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
  padding: var(--section-padding) 0;
  background: var(--bg-secondary);
}

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

.contact-info {
  max-width: 480px;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  transition: var(--transition-smooth);
}

.contact-method:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow-cyan);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-cyan-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-method-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
  fill: none;
  stroke-width: 1.5;
}

.contact-method-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.contact-method-value {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: block;
}

.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: var(--transition-smooth);
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-subtle);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.footer-copy span {
  color: var(--accent-cyan);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-link:hover {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-dim);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--text-secondary);
  transition: fill 0.3s ease;
}

.social-link:hover svg {
  fill: var(--accent-cyan);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .hero-text {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    width: 100%;
  }

  .hero-tagline {
    max-width: 100%;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-image-container {
    width: 300px;
    height: 370px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image-placeholder-wrapper {
    display: none;
  }

  .project-card,
  .project-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(even) .project-image {
    order: 0;
  }

  .project-image {
    min-height: 250px;
  }

  .ai-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .navbar {
    width: calc(100% - 40px);
    justify-content: space-between;
    padding: 10px 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 20px;
    gap: 8px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 10px 16px;
    border-radius: 8px;
  }

  .nav-links a:hover {
    background: var(--bg-card);
  }

  .nav-toggle {
    display: block;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-badge {
    font-size: 0.6rem;
  }

  .hero-image-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-image-container {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 500 / 600;
    overflow: hidden;
  }

  .hero-stats {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 16px 8px;
    margin: 24px auto 0;
    width: 100%;
    max-width: 320px;
    background: rgba(5, 5, 8, 0.9);
    border: 1px solid var(--border-subtle);
  }

  .hero-stat {
    padding: 0 12px;
    border-right: 1px solid var(--border-subtle);
  }

  /* Evitar que las imágenes de proyectos se alarguen o corten excesivamente */
  .project-image {
    min-height: auto !important;
    height: auto !important;
    aspect-ratio: 16 / 10;
    width: 100%;
    overflow: hidden;
  }

  .hero-stat:last-child {
    border-right: none;
  }

  .about-philosophy {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .float-orb--cyan { width: 100px; height: 100px; }
  .float-orb--purple { width: 70px; height: 70px; }
  .float-orb--emerald { width: 50px; height: 50px; }
}

/* Smooth scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 212, 255, 0.3);
}

/* Selection */
::selection {
  background: rgba(0, 212, 255, 0.2);
  color: var(--text-primary);
}
