/* ============================================================
   ANDRESNOTES_ · Personal Brand Website
   Dark space theme · Professional · Interactive
   ============================================================ */

:root {
  --bg:        #060810;
  --bg-2:      #0b0f1a;
  --bg-3:      #111827;
  --surface:   rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.14);

  --accent:    #7c3aed;
  --accent-2:  #a855f7;
  --cyan:      #22d3ee;
  --cyan-2:    #06b6d4;
  --blue:      #3b82f6;
  --glow:      rgba(124, 58, 237, 0.35);
  --glow-cyan: rgba(34, 211, 238, 0.2);

  --text-1:    #f8fafc;
  --text-2:    #94a3b8;
  --text-3:    #64748b;

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

  --nav-h:     70px;
  --r-sm:      8px;
  --r-md:      12px;
  --r-lg:      20px;
  --r-xl:      28px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --spring:     0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

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

img { display: block; max-width: 100%; border-radius: var(--r-md); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 99px; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 600px;
  margin-bottom: 56px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* ── REVEAL ANIMATION ───────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 13px 28px;
  border-radius: 99px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--glow); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-1);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 12px 28px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  transition: var(--transition);
  white-space: nowrap;
}
.btn-secondary:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(124,58,237,0.08);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; border-radius: var(--r-md); }

.btn-soon {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 28px;
  border-radius: var(--r-md);
}
.btn-soon span { font-size: 0.92rem; font-weight: 600; }
.btn-soon small { font-size: 0.72rem; opacity: 0.7; font-weight: 400; }
.btn-hotmart {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 28px;
  border-radius: var(--r-md);
  text-decoration: none;
}
.btn-hotmart span { font-size: 0.92rem; font-weight: 600; }
.btn-hotmart small { font-size: 0.72rem; opacity: 0.7; font-weight: 400; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s;
}
#navbar.scrolled {
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 14px;
  border-radius: 99px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-1); background: var(--surface-2); }

.nav-cta {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 99px;
  flex-shrink: 0;
  transition: var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px var(--glow); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 99px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  background: rgba(6, 8, 16, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--text-1); }
.mobile-menu.open { display: flex; }

/* ── HERO ───────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 24px;
  overflow: hidden;
}

#starfield {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 860px;
  padding-top: var(--nav-h);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(3.5rem, 12vw, 8rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

.hero-handle {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  backdrop-filter: blur(10px);
  padding: 24px 40px;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 32px;
}
.stat-num {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-3);
  font-weight: 500;
  text-align: center;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float-scroll 3s ease-in-out infinite;
}
@keyframes float-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.6; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}
.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 2px solid var(--border-2);
  border-radius: 99px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 3px;
  height: 8px;
  background: var(--text-3);
  border-radius: 99px;
  animation: scroll-wheel 2s ease-in-out infinite;
}
@keyframes scroll-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(12px); opacity: 0; }
}

/* ── SOBRE MÍ ───────────────────────────────────────────────── */
#sobre-mi {
  background: var(--bg-2);
  position: relative;
}
#sobre-mi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-2), transparent);
}

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

.sobre-text p {
  color: var(--text-2);
  margin-bottom: 16px;
  font-size: 0.97rem;
  line-height: 1.75;
}
.sobre-text p strong { color: var(--text-1); font-weight: 600; }

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  background: var(--surface);
  transition: var(--transition);
}
.tag:hover {
  border-color: var(--accent-2);
  color: var(--accent-2);
  background: rgba(124,58,237,0.1);
}

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: var(--transition);
}
.info-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateY(-2px);
}
.info-card-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.info-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.info-card p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.4;
}

/* ── PROYECTOS ──────────────────────────────────────────────── */
#proyectos {
  background: var(--bg);
}

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

.proyecto-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}
.proyecto-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.proyecto-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.4);
}
.proyecto-card:hover::before { opacity: 1; }

.proyecto-card.featured {
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), var(--surface));
}
.proyecto-card.featured::after {
  content: '★ Destacado';
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.25);
  padding: 3px 10px;
  border-radius: 99px;
}

.proyecto-header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.proyecto-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.proyecto-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.proyecto-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.2);
  padding: 3px 9px;
  border-radius: 99px;
}
.proyecto-date {
  font-size: 0.75rem;
  color: var(--text-3);
}

.proyecto-card h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-1);
}

.proyecto-card p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}

.proyecto-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.proyecto-skills span {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-3);
}

.proyecto-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: auto;
}

.proyecto-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
.proyecto-status.active { color: #34d399; }
.proyecto-status.completed { color: var(--text-3); }
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.proyecto-status.active .status-dot {
  animation: pulse-dot 2s ease infinite;
}

/* ── COMPETENCIAS ───────────────────────────────────────────── */
#competencias {
  background: var(--bg-2);
}

.comp-highlight {
  background: linear-gradient(135deg, rgba(124,58,237,0.1), rgba(34,211,238,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 40px;
}
.comp-highlight-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.comp-logo {
  font-size: 2.4rem;
  flex-shrink: 0;
}
.comp-highlight h3 {
  font-family: var(--font-sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.comp-highlight p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 16px;
}
.comp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.comp-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gallery-item.large {
  grid-column: 1 / 3;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay p {
  font-size: 0.8rem;
  color: white;
  font-weight: 500;
}

/* ── PRODUCTOS ──────────────────────────────────────────────── */
#productos {
  background: var(--bg);
}

.producto-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  margin-bottom: 32px;
  transition: var(--transition);
}
.producto-featured:hover {
  border-color: rgba(124,58,237,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.producto-featured-img {
  position: relative;
}
.producto-featured-img img {
  border-radius: var(--r-lg);
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.producto-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34,211,238,0.12);
  border: 1px solid rgba(34,211,238,0.25);
  padding: 4px 12px;
  border-radius: 99px;
}

.producto-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.producto-featured-content h3 {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.producto-tagline {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 16px;
  font-style: italic;
}
.producto-featured-content > p {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.producto-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.producto-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-2);
}
.feat-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.producto-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.platform-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  border: 1px solid var(--border-2);
  color: var(--text-3);
}

/* NOTION */
.notion-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  transition: var(--transition);
}
.notion-section:hover { border-color: var(--border-2); }

.notion-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.notion-header h3 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.notion-header p {
  color: var(--text-2);
  font-size: 0.9rem;
  max-width: 500px;
}
.notion-btn { align-self: center; flex-shrink: 0; }

.notion-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.notion-img-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.notion-img-wrap:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.notion-img-wrap img { width: 100%; border-radius: 0; }

/* ── DIVULGACIÓN ────────────────────────────────────────────── */
#divulgacion {
  background: var(--bg-2);
}

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

.topic-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.topic-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.topic-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0,0,0,0.35);
}
.topic-card:hover::before { transform: scaleX(1); }

.topic-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.topic-card h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.topic-card p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── CONTACTO ───────────────────────────────────────────────── */
#contacto {
  background: var(--bg);
}

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

.contacto-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contacto-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: var(--transition);
}
.contacto-card:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  transform: translateX(4px);
}
.contacto-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacto-icon svg { width: 20px; height: 20px; }
.ig-icon { background: linear-gradient(135deg, #e1306c, #833ab4); color: white; }
.li-icon { background: #0a66c2; color: white; }
.mail-icon { background: var(--surface-2); border: 1px solid var(--border-2); color: var(--text-2); }

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.contacto-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.contacto-handle {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-1);
}
.contacto-arrow {
  color: var(--text-3);
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.contacto-card:hover .contacto-arrow { transform: translateX(4px); color: var(--text-1); }

/* FORM */
.contacto-form-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text-1);
  font-family: var(--font-body);
  font-size: 0.9rem;
  padding: 12px 16px;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--accent-2); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
  color: #34d399;
  font-weight: 600;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-2), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}
.footer-brand p {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-1); }

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text-3);
  transition: var(--transition);
}
.footer-social a svg { width: 16px; height: 16px; }
.footer-social a:hover {
  border-color: var(--border-2);
  color: var(--text-1);
  background: var(--surface-2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-3);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .sobre-grid { gap: 40px; }
}

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

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  .sobre-grid { grid-template-columns: 1fr; gap: 40px; }
  .sobre-cards { grid-template-columns: 1fr; }

  .proyectos-grid { grid-template-columns: 1fr; }
  .proyecto-card.featured::after { display: none; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-item.large { grid-column: 1 / 3; }

  .producto-featured {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .notion-gallery { grid-template-columns: 1fr; }
  .notion-header { flex-direction: column; }
  .notion-btn { align-self: flex-start; }

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

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

  .hero-stats {
    flex-direction: row;
    padding: 16px 20px;
    gap: 0;
  }
  .stat-item { padding: 0 14px; }
  .stat-num { font-size: 1.4rem; }

  .footer-inner { flex-direction: column; gap: 24px; }
  .comp-highlight-content { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary { width: 100%; justify-content: center; }

  .hero-stats { flex-wrap: wrap; justify-content: center; }
  .stat-divider { display: none; }
  .stat-item { padding: 8px 16px; }

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

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-column: auto; aspect-ratio: 4/3; }

  .notion-gallery { grid-template-columns: 1fr; }
}

/* ── GLOW EFFECTS ───────────────────────────────────────────── */
#proyectos::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.06) 0%, transparent 70%);
  pointer-events: none;
}

#sobre-mi::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34,211,238,0.04) 0%, transparent 70%);
  pointer-events: none;
}
