/* ==========================================================
   Gastón Cressa · Portfolio
   Tema Acer Nitro — rojo sobre negro
   ========================================================== */

:root {
  --red:        #FF2D2D;
  --red-hi:     #FFD9D9;
  --red-soft:   #FF5A5A;
  --red-deep:   #C43B3B;
  --bg:         #0D0D0D;
  --bg-card:    #1A0505;
  --bg-card-2:  #140707;
  --edge:       #3D0A0A;
  --edge-hi:    #6B1414;
  --text:       #E6E6E6;
  --muted:      #A08A8A;
  --mono: ui-monospace, "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* fondo: grilla roja muy tenue + vignette */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255,45,45,.035) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255,45,45,.035) 1px, transparent 1px) 0 0 / 44px 100%;
  pointer-events: none;
  z-index: 0;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0,0,0,0) 0 2px,
    rgba(0,0,0,.22) 2px 4px
  );
  pointer-events: none;
  z-index: 1;
  opacity: .5;
}

main, .nav, .footer { position: relative; z-index: 2; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------ NAV */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(13,13,13,.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--edge);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .5px;
}

.brand-mark {
  width: 16px; height: 16px;
  border: 2px solid var(--red);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px rgba(255,45,45,.6);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  background: var(--red);
  border-radius: 50%;
}

.nav-links { display: flex; gap: 4px; flex-wrap: wrap; }

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color .18s, background .18s;
}
.nav-links a:hover, .nav-links a:focus-visible {
  color: var(--red-hi);
  background: rgba(255,45,45,.10);
}

/* ------------------------------------------------------ HERO */
.hero { position: relative; overflow: hidden; }

.hero-rain { position: absolute; inset: 0; z-index: 0; opacity: .5; }
.hero-rain img { width: 100%; height: 100%; object-fit: cover; }

/* velo para que el texto se lea sobre la lluvia */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(13,13,13,.72), rgba(13,13,13,.94));
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 96px 20px 72px;
  text-align: center;
}

.kicker {
  font-family: var(--mono);
  color: var(--red-soft);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0 0 18px;
}

.hero h1 {
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 0 26px rgba(255,45,45,.45);
}
.hero h1 .amp { color: var(--red); }

.lead {
  max-width: 640px;
  margin: 0 auto 28px;
  color: #D6C6C6;
  font-size: 17px;
}
.lead strong { color: var(--red-hi); font-weight: 600; }

.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--edge-hi);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: all .18s;
}
.btn:hover { border-color: var(--red); color: var(--red-hi); box-shadow: 0 0 18px rgba(255,45,45,.28); }

.btn-primary {
  background: var(--red);
  border-color: var(--red);
  color: #140303;
}
.btn-primary:hover { background: var(--red-soft); border-color: var(--red-soft); color: #140303; }

.btn-sm { padding: 6px 14px; font-size: 12px; }

.hero-stats {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 40px 0 0;
  padding: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-family: var(--mono);
  font-size: 30px;
  color: var(--red);
  text-shadow: 0 0 16px rgba(255,45,45,.5);
}
.hero-stats span {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

/* ------------------------------------------------------ SECTIONS */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0 0; }

h2 {
  font-size: 26px;
  margin: 0 0 28px;
  font-weight: 800;
  letter-spacing: -.4px;
}
h2 .hash { color: var(--red); font-family: var(--mono); margin-right: 6px; }
h3 { margin: 0 0 8px; font-size: 17px; }
h3.sub { margin: 40px 0 18px; font-size: 18px; color: var(--red-soft); }
h4 { margin: 0 0 8px; font-size: 15px; font-family: var(--mono); color: var(--red-hi); line-height: 1.35; }
h4 a { color: var(--red-hi); text-decoration: none; transition: color .18s; }
h4 a::after { content: "↗"; font-size: 12px; opacity: .45; margin-left: 2px; }
h4 a { word-break: break-word; }
h4 a:hover { color: var(--red); }

.caption {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 14px 0 0;
  font-family: var(--mono);
}
.caption b { color: var(--red-soft); }
.caption i { color: #8A7A7A; }

.muted { color: var(--muted); margin: 0; }

a { color: var(--red-soft); }
a:hover { color: var(--red-hi); }

/* ------------------------------------------------------ TERMINAL */
.terminal-frame {
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  overflow: hidden;
  background: #0D0D0D;
  box-shadow: 0 0 40px rgba(255,45,45,.10);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  background: #170404;
  border-bottom: 1px solid var(--edge);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-r { background: #FF5F57; }
.dot-y { background: #FEBC2E; }
.dot-g { background: #28C840; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.terminal-body { display: block; width: 100%; height: auto; }

/* ------------------------------------------------------ ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.card-avatar { width: 100%; height: auto; display: block; }

.emblem-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.emblem-row img { width: 62px; height: 62px; }

.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 14px;
  color: #D6C6C6;
}
.bullets li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--red);
  font-family: var(--mono);
}
.bullets b { color: var(--red-hi); font-weight: 600; }

/* ------------------------------------------------------ CHIPS */
.chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.chip {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--edge-hi);
  color: var(--red-hi);
  white-space: nowrap;
  transition: all .18s;
}
.chip:hover {
  border-color: var(--red);
  box-shadow: 0 0 14px rgba(255,45,45,.3);
  transform: translateY(-1px);
}
.chip-ico { padding: 6px 12px; }
.chip-ico img { display: block; height: 32px; width: auto; }
.chip-sm { font-size: 11px; padding: 5px 12px; }
.chips-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0 0; }

/* ------------------------------------------------------ CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: linear-gradient(180deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}
.card:hover {
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 6px 26px rgba(255,45,45,.16);
}
.card p { margin: 0; font-size: 14.5px; color: var(--muted); }

.card-featured {
  border-color: var(--edge-hi);
  border-left: 3px solid var(--red);
  background:
    linear-gradient(180deg, rgba(255,45,45,.07), rgba(20,7,7,1));
  padding: 26px 28px;
}
.card-featured h3 { font-size: 21px; font-family: var(--mono); }
.card-featured h3 a { color: var(--red-hi); text-decoration: none; }
.card-featured h3 a:hover { color: var(--red); }

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(255,45,45,.12);
  border: 1px solid var(--edge-hi);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 0 0 14px;
}

/* ------------------------------------------------------ SOCIAL */
.social { display: flex; gap: 14px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  background: var(--bg-card-2);
  text-decoration: none;
  transition: all .18s;
}
.social-link:hover {
  border-color: var(--red);
  box-shadow: 0 0 20px rgba(255,45,45,.22);
  transform: translateY(-2px);
}
.social-link img:first-child { width: 34px; height: 34px; }
.social-link .badge { height: 30px; width: auto; }

/* ------------------------------------------------------ FOOTER */
.footer { text-align: center; padding: 56px 20px 40px; border-top: 1px solid var(--edge); }

.kurama { display: block; width: 210px; height: auto; margin: 0 auto 18px; }

.footer .muted { font-family: var(--mono); font-size: 12px; }

/* ------------------------------------------------------ RESPONSIVE */
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .card-avatar { max-width: 280px; margin: 0 auto; }
  .nav { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav-links { gap: 2px; }
  .hero-inner { padding: 64px 20px 52px; }
  .section { padding: 54px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
