/* ==============================================
   ION SOFTWARE · style.css
   Diseño: oscuro, tecnológico, limpio, moderno
   ============================================== */

/* --- Variables globales --- */
:root {
  --bg-primary:    #070b16;
  --bg-secondary:  #0c1220;
  --bg-card:       #0f1828;
  --bg-card-hover: #141f35;

  --border:        rgba(0, 210, 255, 0.08);
  --border-hover:  rgba(0, 210, 255, 0.28);

  --cyan:          #00d2ff;
  --blue:          #3b82f6;
  --purple:        #8b5cf6;
  --green:         #22c55e;
  --yellow:        #eab308;

  --cyan-glow:     rgba(0, 210, 255, 0.12);
  --shadow-card:   0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow:   0 0 40px rgba(0, 210, 255, 0.08);

  --text-primary:  #f0f6ff;
  --text-secondary:#94a3b8;
  --text-muted:    #4e6280;

  --font-display:  'Space Grotesk', sans-serif;
  --font-body:     'Inter', sans-serif;

  --radius:        12px;
  --radius-lg:     20px;
  --radius-xl:     28px;

  --transition:    all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
}

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

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

/* Scrollbar elegante */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--cyan); border-radius: 10px; }

/* --- Contenedor --- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==============================================
   NAVEGACIÓN
   ============================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(7, 11, 22, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.logo-ion { color: var(--cyan); }
.logo-sw  { color: var(--text-primary); }

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

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--cyan);
  transition: width 0.25s ease;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==============================================
   BOTONES
   ============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 210, 255, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 210, 255, 0.38);
  color: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  background: rgba(0, 210, 255, 0.06);
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(0, 210, 255, 0.3);
  padding: 10px 18px;
  font-size: 0.84rem;
}
.btn-outline:hover {
  background: rgba(0, 210, 255, 0.08);
  border-color: var(--cyan);
}

/* ==============================================
   HERO
   ============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 210, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  animation: fadeInUp 0.9s ease both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.08;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 44px;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 18px 36px;
}
.stat { text-align: center; }
.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  animation: fadeIn 2s ease 1s both;
}
.scroll-indicator {
  width: 1.5px;
  height: 40px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scrollLine 2.2s ease-in-out infinite;
}

/* ==============================================
   SECCIONES
   ============================================== */
.section { padding: 104px 0; }

.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.section-desc {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ==============================================
   SOBRE MÍ
   ============================================== */
.about {
  background: linear-gradient(
    180deg,
    var(--bg-primary) 0%,
    var(--bg-secondary) 40%,
    var(--bg-primary) 100%
  );
}

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

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 1.02rem;
}
.about-text strong { color: var(--text-primary); }

.about-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.value-tag {
  background: rgba(0, 210, 255, 0.07);
  border: 1px solid rgba(0, 210, 255, 0.18);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.about-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}
.about-card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.about-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.about-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==============================================
   PROYECTOS
   ============================================== */
.projects { background: var(--bg-primary); }

.projects-filters {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.filter-btn:hover,
.filter-btn.active {
  background: rgba(0, 210, 255, 0.09);
  border-color: var(--cyan);
  color: var(--cyan);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 22px;
}

/* Tarjeta de proyecto */
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: default;
}
.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.project-thumb {
  width: 100%;
  height: 190px;
  background: linear-gradient(135deg, #0a1628 0%, #12203a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  position: relative;
  overflow: hidden;
}
.project-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, var(--bg-card));
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.project-body {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.status-stable  { background: rgba(34, 197, 94, 0.1);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.status-beta    { background: rgba(234,179,8,0.1);      color: var(--yellow); border: 1px solid rgba(234,179,8,0.2); }
.status-dev     { background: rgba(139,92,246,0.1);     color: var(--purple); border: 1px solid rgba(139,92,246,0.2); }

.project-os {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}

.project-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}
.project-version {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--font-display);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.project-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cargando */
.projects-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid var(--border);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 16px;
}

/* Vacío */
.projects-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* ==============================================
   DONACIONES
   ============================================== */
.donations {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}
.donations::before {
  content: '';
  position: absolute;
  top: -60%;
  left: -15%;
  width: 55%;
  height: 220%;
  background: radial-gradient(ellipse, rgba(0,210,255,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.donations::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 45%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.donations-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.donations-text .section-tag { display: block; margin-bottom: 12px; }
.donations-text .section-title { text-align: left; margin-bottom: 24px; }
.donations-text p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.donations-text strong { color: var(--cyan); }

.donations-quote {
  border-left: 2px solid var(--cyan);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.7;
}
.donate-btn { margin-top: 8px; }

.donations-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.donation-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
}
.donation-card:hover,
.donation-card.highlight {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.donation-card.highlight {
  border-color: rgba(0, 210, 255, 0.25);
  box-shadow: 0 0 24px rgba(0, 210, 255, 0.06);
}
.donation-emoji { font-size: 2rem; flex-shrink: 0; }
.donation-card h3 { font-size: 0.97rem; font-weight: 600; margin-bottom: 4px; }
.donation-card p  { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

/* ==============================================
   CONTACTO
   ============================================== */
.contact { background: var(--bg-primary); }

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.contact-item a {
  color: var(--cyan);
  font-size: 0.96rem;
}
.contact-item a:hover { text-decoration: underline; }

.contact-note {
  margin-top: 8px;
  padding: 16px;
  background: rgba(0,210,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.contact-note p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.94rem;
  transition: var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-status {
  font-size: 0.88rem;
  min-height: 20px;
}
.form-status.success { color: var(--green); }
.form-status.error   { color: #f87171; }

/* ==============================================
   FOOTER
   ============================================== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 14px;
  line-height: 1.75;
}
.footer-nav h4,
.footer-legal h4 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-nav ul,
.footer-legal ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a,
.footer-legal a {
  color: var(--text-secondary);
  font-size: 0.9rem;
}
.footer-nav a:hover,
.footer-legal a:hover { color: var(--cyan); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); }
.footer-made { font-style: italic; }

/* ==============================================
   MODAL
   ============================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.94) translateY(16px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 1;
}
.modal-close:hover {
  background: rgba(0,210,255,0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}
.modal-content { padding: 40px; }

/* Estilos dentro del modal */
.modal-section { margin-bottom: 20px; }
.modal-section h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.modal-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-features li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  padding-left: 22px;
  position: relative;
  line-height: 1.55;
}
.modal-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
}

/* ==============================================
   ANIMACIONES
   ============================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px var(--cyan); }
  50%       { box-shadow: 0 0 14px var(--cyan); }
}

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==============================================
   RESPONSIVE
   ============================================== */
@media (max-width: 1024px) {
  .about-grid      { grid-template-columns: 1fr; gap: 52px; }
  .donations-inner { grid-template-columns: 1fr; gap: 52px; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid     { grid-template-columns: 1fr 1fr; }
}

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

  /* Menú móvil */
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(280px, 80vw);
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 80px 32px 32px;
    border-left: 1px solid var(--border);
    gap: 24px;
    z-index: 800;
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1rem; }

  .hero-title      { letter-spacing: -0.8px; }
  .hero-stats      { gap: 20px; padding: 14px 24px; }
  .stat-value      { font-size: 1.5rem; }

  .about-cards     { grid-template-columns: 1fr; }
  .projects-grid   { grid-template-columns: 1fr; }
  .footer-grid     { grid-template-columns: 1fr; gap: 32px; }

  .modal-content   { padding: 28px 24px; }
}

@media (max-width: 480px) {
  .hero-cta        { flex-direction: column; align-items: stretch; }
  .hero-cta .btn   { justify-content: center; }
  .hero-stats      { flex-direction: column; gap: 14px; }
  .stat-divider    { width: 40px; height: 1px; }
  .project-actions { flex-direction: column; }
  .project-actions .btn { justify-content: center; }
}
