:root {
  --forest:   #1C2B1A;
  --oliva:    #606C38;
  --oliva-lt: #A3B067;
  --cream:    #E8EDD4;
  --sage:     #C5CEAB;
  --bg:       #0f1a0e;
  --card:     #1a2819;
  --border:   rgba(163,176,103,0.15);
  --mono:     'DM Mono', monospace;
  --sans:     'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background-color: #0a1208;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

.bg-float { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fi { position: absolute; left: 0; fill: var(--oliva-lt); opacity: 0.06; animation-iteration-count: infinite; animation-timing-function: linear; pointer-events: auto; cursor: grab; user-select: none; }
.fi:active { cursor: grabbing; }
.bg-logo { opacity: 0.05; filter: grayscale(1) brightness(3); }

@keyframes driftLR {
  0%   { transform: translateX(-120px)             translateY(0px)   rotate(-6deg); }
  20%  { transform: translateX(20vw)               translateY(-28px) rotate(4deg);  }
  40%  { transform: translateX(40vw)               translateY(8px)   rotate(-2deg); }
  60%  { transform: translateX(60vw)               translateY(-22px) rotate(7deg);  }
  80%  { transform: translateX(80vw)               translateY(12px)  rotate(-5deg); }
  100% { transform: translateX(calc(100vw + 120px)) translateY(0px)  rotate(-6deg); }
}
@keyframes driftRL {
  0%   { transform: translateX(calc(100vw + 120px)) translateY(0px)  rotate(6deg);  }
  20%  { transform: translateX(80vw)               translateY(-24px) rotate(-4deg); }
  40%  { transform: translateX(60vw)               translateY(10px)  rotate(2deg);  }
  60%  { transform: translateX(40vw)               translateY(-30px) rotate(-7deg); }
  80%  { transform: translateX(20vw)               translateY(6px)   rotate(5deg);  }
  100% { transform: translateX(-120px)             translateY(0px)   rotate(6deg);  }
}

.panel {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 24px auto 0;
  background: var(--bg);
  min-height: 100vh;
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
  border-radius: 16px;
  overflow: clip;
}

nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,26,14,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--border);
  padding: 0 5vw;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { font-family: var(--mono); font-size: 15px; color: var(--oliva-lt); text-decoration: none; letter-spacing: 0.05em; transition: text-shadow 0.2s, transform 0.2s; display: inline-block; }
.nav-logo:hover { text-shadow: 0 0 8px rgba(163,176,103,1), 0 0 20px rgba(163,176,103,0.8), 0 0 40px rgba(163,176,103,0.4); transform: scale(1.12) translateY(-2px); }
.nav-logo span { color: var(--cream); }

.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; color: var(--sage); text-decoration: none; font-family: var(--mono); letter-spacing: 0.04em; transition: color 0.2s, text-shadow 0.2s, transform 0.2s; display: inline-block; }
.nav-links a:hover { color: #d4e87a; text-shadow: 0 0 8px rgba(163,176,103,1), 0 0 20px rgba(163,176,103,0.8), 0 0 40px rgba(163,176,103,0.4); transform: scale(1.2) translateY(-2px); }
.nav-links a.active { color: var(--cream); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--sage); transition: all 0.25s ease; transform-origin: center; }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.page { display: block; min-height: 100vh; animation: slideUp 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes slideUp { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: translateY(0); } }

.section { max-width: 860px; margin: 0 auto; padding: 72px 5vw; }

.section-tag { font-family: var(--mono); font-size: 11px; color: var(--oliva-lt); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }

h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: var(--cream); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px; }
h2 { font-size: 26px; font-weight: 500; color: var(--cream); letter-spacing: -0.02em; margin-bottom: 24px; }
h3 { font-size: 16px; font-weight: 500; color: var(--cream); margin-bottom: 6px; }
p { color: var(--sage); margin-bottom: 16px; }
.accent { color: var(--oliva-lt); }

@keyframes gratisGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(163,176,103,0.6), 0 0 20px rgba(163,176,103,0.3); }
  50%       { text-shadow: 0 0 16px rgba(163,176,103,1),  0 0 40px rgba(163,176,103,0.7), 0 0 70px rgba(163,176,103,0.3); }
}
.gratis-glow { animation: gratisGlow 2.4s ease-in-out infinite; }

.h1-with-logo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.h1-with-logo h1 { margin-bottom: 0; }
.h1-logo { width: 160px; height: 160px; object-fit: contain; opacity: 0.75; filter: grayscale(0.3) brightness(1.4); flex-shrink: 0; transform: translateY(-36px); transition: transform 0.3s ease, filter 0.3s ease, opacity 0.3s ease; cursor: pointer; }
.h1-logo:hover { opacity: 1; filter: grayscale(0) brightness(1.8) drop-shadow(0 0 12px rgba(163,176,103,0.9)) drop-shadow(0 0 30px rgba(163,176,103,0.5)); transform: translateY(-36px) scale(1.12); }
.h1-logo--gafas { width: 220px; height: 220px; transform: translate(12px, -16px); }
.h1-logo--gafas:hover { transform: translate(12px, -16px) scale(1.12); }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; padding: 80px 5vw 60px; max-width: 860px; margin: 0 auto; }
.hero-pfp-link { display: block; border-radius: 50%; flex-shrink: 0; }
.hero-pfp { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; border: 2px solid var(--oliva); display: block; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.hero-pfp-link:hover .hero-pfp { border-color: var(--oliva-lt); box-shadow: 0 0 40px rgba(163,176,103,0.85), 0 0 80px rgba(163,176,103,0.35); transform: scale(1.08) translateY(-4px); }
.hero-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero-socials { display: flex; gap: 8px; }

.hero-social-link { width: 32px; height: 32px; border-radius: 8px; background: rgba(96,108,56,0.12); border: 0.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 14px; text-decoration: none; transition: border-color 0.2s, transform 0.15s; color: var(--sage); }
.hero-social-link:hover { transform: translateY(-2px); }
.hs-instagram:hover { transform: scale(1.18) translateY(-3px); color: #E1306C; border-color: #E1306C; box-shadow: 0 0 14px rgba(225,48,108,0.8), 0 0 30px rgba(225,48,108,0.35); }
.hs-youtube:hover   { transform: scale(1.18) translateY(-3px); color: #FF0000; border-color: #FF0000; box-shadow: 0 0 14px rgba(255,0,0,0.8),   0 0 30px rgba(255,0,0,0.35); }
.hs-tiktok:hover    { transform: scale(1.18) translateY(-3px); color: #EE1D52; border-color: #EE1D52; box-shadow: 0 0 14px rgba(238,29,82,0.8),  0 0 30px rgba(238,29,82,0.35); }
.hs-discord:hover   { transform: scale(1.18) translateY(-3px); color: #5865F2; border-color: #5865F2; box-shadow: 0 0 14px rgba(88,101,242,0.8), 0 0 30px rgba(88,101,242,0.35); }
.hs-linkedin:hover  { transform: scale(1.18) translateY(-3px); color: #0A66C2; border-color: #0A66C2; box-shadow: 0 0 14px rgba(10,102,194,0.8), 0 0 30px rgba(10,102,194,0.35); }
.hs-github:hover    { transform: scale(1.18) translateY(-3px); color: #f0f6fc; border-color: #f0f6fc; box-shadow: 0 0 14px rgba(240,246,252,0.7), 0 0 30px rgba(240,246,252,0.25); }
.hs-email:hover     { color: var(--oliva-lt); border-color: var(--oliva-lt); box-shadow: 0 0 14px rgba(163,176,103,0.8), 0 0 30px rgba(163,176,103,0.35); transform: scale(1.18) translateY(-3px); }

.hero-badge { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--oliva-lt); background: rgba(96,108,56,0.12); border: 0.5px solid var(--oliva); padding: 4px 12px; border-radius: 99px; margin-bottom: 16px; }
.hero-desc { font-size: 17px; color: var(--sage); max-width: 480px; margin-bottom: 28px; }
#hero-cycle { display: inline-block; color: var(--oliva-lt); }

.btn { display: inline-block; font-family: var(--mono); font-size: 13px; padding: 10px 22px; border-radius: 6px; text-decoration: none; transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; border: none; }
.btn-primary { background: var(--oliva); color: var(--cream); }
.btn-primary:hover { background: #8aad3a; box-shadow: 0 0 20px rgba(138,173,58,0.85), 0 0 50px rgba(138,173,58,0.35); transform: scale(1.06) translateY(-3px); }
.btn-outline { background: transparent; color: var(--oliva-lt); border: 0.5px solid var(--oliva); margin-left: 12px; }
.btn-outline:hover { background: rgba(96,108,56,0.15); border-color: var(--oliva-lt); color: #c8e05a; box-shadow: 0 0 20px rgba(138,173,58,0.85), 0 0 50px rgba(138,173,58,0.35); transform: scale(1.06) translateY(-3px); }

.divider { display: flex; justify-content: center; margin: 0 auto; font-family: var(--mono); font-size: 13px; color: var(--oliva); letter-spacing: 0.05em; overflow: visible; user-select: none; }
.divider span { display: inline-block; transition: transform 0.18s ease-out, color 0.18s ease-out; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 8px; }
.card { position: relative; background: var(--card); border: 0.5px solid var(--border); border-radius: 12px; padding: 20px 22px; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; cursor: pointer; }
.card:hover { border-color: var(--oliva-lt); box-shadow: 0 0 18px rgba(163,176,103,0.5), 0 0 40px rgba(163,176,103,0.2); transform: scale(1.03) translateY(-4px); }
.card-tag { font-family: var(--mono); font-size: 10px; color: var(--oliva-lt); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }
.card p { font-size: 14px; margin-bottom: 0; }
.card-link { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--oliva-lt); text-decoration: none; }
.card-link::after { content: ''; position: absolute; inset: 0; }
.card-link:hover { color: var(--cream); }
.card a:not(.card-link) { position: relative; z-index: 2; }

@keyframes linkGlow {
  0%, 100% { text-shadow: 0 0 6px rgba(163,176,103,0.5), 0 0 14px rgba(163,176,103,0.2); }
  50%       { text-shadow: 0 0 12px rgba(163,176,103,1), 0 0 28px rgba(163,176,103,0.6), 0 0 50px rgba(163,176,103,0.2); }
}
.card-link-glow { animation: linkGlow 2.4s ease-in-out infinite; color: var(--oliva-lt); }

.newsletter-wrap { background: var(--card); border: 0.5px solid var(--border); border-radius: 16px; padding: 40px; text-align: center; max-width: 520px; margin: 0 auto; }
.newsletter-wrap h2 { margin-bottom: 8px; }
.newsletter-wrap p { margin-bottom: 24px; font-size: 15px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.newsletter-form input { flex: 1; min-width: 200px; background: var(--bg); border: 0.5px solid var(--oliva); border-radius: 6px; padding: 10px 16px; color: var(--cream); font-family: var(--mono); font-size: 13px; outline: none; }
.newsletter-form input::placeholder { color: var(--sage); opacity: 0.6; }
.newsletter-form input:focus { border-color: var(--oliva-lt); }
.newsletter-consent { margin-top: 10px; font-size: 11px; color: var(--sage); opacity: 0.7; text-align: center; }
.newsletter-consent a { color: var(--oliva-lt); text-decoration: underline; text-underline-offset: 3px; }
.newsletter-consent a:hover { color: #d4e87a; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 4px 12px; border-radius: 99px; background: rgba(96,108,56,0.12); border: 0.5px solid var(--oliva); color: var(--oliva-lt); transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; display: inline-block; cursor: default; }
.tag:hover { color: #d4e87a; border-color: var(--oliva-lt); box-shadow: 0 0 10px rgba(163,176,103,0.8), 0 0 24px rgba(163,176,103,0.35); transform: scale(1.1) translateY(-2px); }


.hero-contact-email { font-family: var(--mono); font-size: 11px; color: var(--sage); text-decoration: none; border-bottom: 0.5px solid var(--oliva); padding-bottom: 1px; letter-spacing: 0.03em; transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s; display: inline-block; }
.hero-contact-email:hover { color: #d4e87a; border-color: var(--oliva-lt); text-shadow: 0 0 8px rgba(163,176,103,1), 0 0 20px rgba(163,176,103,0.8), 0 0 40px rgba(163,176,103,0.4); transform: scale(1.18) translateY(-2px); }

footer { border-top: 0.5px solid var(--border); padding: 24px 5vw; display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 12px; color: var(--sage); flex-wrap: wrap; gap: 8px; }
footer a { color: var(--oliva-lt); text-decoration: none; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.star { position: absolute; pointer-events: none; font-size: 16px; z-index: 9999; animation: starFly 0.9s ease-out forwards; }
@keyframes starFly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1) rotate(0deg); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3) rotate(var(--rot)); }
}

.drag-hint { position: fixed; top: 72px; right: 20px; z-index: 200; font-family: var(--mono); font-size: 11px; color: var(--oliva-lt); background: rgba(15,26,14,0.85); border: 0.5px solid var(--oliva); border-radius: 8px; padding: 8px 14px; pointer-events: none; backdrop-filter: blur(8px); animation: hintIn 0.4s ease forwards; }
@keyframes hintIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  .fi, .gratis-glow, .card-link-glow { animation: none !important; }
  .divider span { transition: none !important; }
  .card { transition: none !important; }
  @keyframes slideUp { from { opacity: 1; transform: none; } }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(15,26,14,0.97); border-bottom: 0.5px solid var(--border); padding: 8px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 5vw; font-size: 14px; }
  .drag-hint { display: none; }
  .hero-badge { font-size: 9px; white-space: nowrap; }
  .hero-desc { min-height: 3.4em; }
  #hero-cycle { display: block; }
  .hero .btn-primary { display: block; width: fit-content; }
  .hero .btn-outline { display: block; width: fit-content; margin-left: 0; margin-top: 10px; }
  .hero { display: flex; flex-direction: row; gap: 16px; align-items: center; overflow: hidden; }
  .hero-photo-wrap { display: flex; flex-shrink: 0; margin-top: -40px; margin-left: -20px; }
  .hero-socials { display: none; }
  .hero-contact-email { display: none; }
  .hero-pfp { width: 100px; height: 100px; }
  .h1-with-logo { flex-direction: row; align-items: center; gap: 12px; }
  .h1-logo { width: 68px; height: 68px; transform: none; }
  .h1-logo:hover { transform: none; }
  .h1-logo--gafas { width: 80px; height: 80px; transform: none; }
  .h1-logo--gafas:hover { transform: none; }
.newsletter-wrap { padding: 28px 20px; }
}
