/* ============================================================
   Jose M. Fortunati — Diseño Web y Multimedia
   ============================================================ */

:root {
  --bg: #0d0d12;
  --bg-alt: #12141c;
  --surface: #161923;
  --surface-2: #1c2030;
  --border: #262b3d;
  --text: #e8eaf2;
  --muted: #9aa0b4;
  --accent: #f7b32b;
  --accent-strong: #ffc94d;
  --accent-dark: #d99a12;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --max: 1140px;
  --font-head: 'Bebas Neue', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: min(var(--max), 92%); margin: 0 auto; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}
.nav.is-scrolled { background: rgba(13, 13, 18, 0.96); }
.nav__inner {
  width: min(var(--max), 94%);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; }
.nav__name { font-size: 0.98rem; font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }
.nav__name strong { color: var(--accent); }

.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
  padding: 0.3rem 0;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link--cta {
  color: var(--bg);
  background: var(--accent);
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
}
.nav__link--cta::after { display: none; }
.nav__link--cta:hover { background: var(--accent-strong); color: var(--bg); }

.nav__toggle { display: none; background: none; border: 0; width: 34px; height: 34px; flex-direction: column; justify-content: center; gap: 5px; }
.nav__toggle span { display: block; height: 2px; width: 24px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 6% 1.2rem;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.85rem 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav__link--cta { border: 0; text-align: center; margin-top: 0.4rem; }
}

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 120px 0 80px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(247, 179, 43, 0.12), transparent 60%),
    radial-gradient(700px 500px at 5% 90%, rgba(70, 92, 255, 0.10), transparent 60%),
    var(--bg);
  z-index: 0;
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4rem; align-items: center; }

.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.28em; font-size: 0.78rem;
  color: var(--accent); font-weight: 700; margin-bottom: 1rem;
}
.hero__title {
  font-family: var(--font-head);
  font-size: clamp(3.6rem, 9vw, 6.4rem);
  line-height: 0.92; letter-spacing: 0.01em;
  font-weight: 400;
}
.hero__title span { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 600; margin-top: 0.8rem;
  letter-spacing: 0.02em;
}
.hero__desc { margin-top: 1.1rem; max-width: 46ch; color: var(--muted); font-size: 1.02rem; }

.hero__actions { display: flex; gap: 0.9rem; margin-top: 1.8rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  padding: 0.85rem 1.7rem; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: 0 10px 30px rgba(247, 179, 43, 0.25); }
.btn--primary:hover { background: var(--accent-strong); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

.hero__meta { list-style: none; margin-top: 2.2rem; display: grid; gap: 0.5rem; }
.hero__meta li { color: var(--muted); font-size: 0.92rem; display: flex; align-items: center; gap: 0.55rem; }
.hero__meta li span { font-size: 1rem; }

.hero__photo { position: relative; justify-self: center; }
.hero__frame {
  position: relative; width: min(330px, 82vw); border-radius: 24px; overflow: hidden;
  padding: 10px; background: linear-gradient(160deg, var(--surface-2), var(--bg-alt));
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.hero__frame::before {
  content: ""; position: absolute; inset: 10px; border-radius: 17px; z-index: 1;
  background: linear-gradient(180deg, transparent 55%, rgba(13,13,18,0.55));
  pointer-events: none;
}
.hero__frame img { width: 100%; height: auto; border-radius: 16px; object-fit: cover; }
.hero__badge {
  position: absolute; left: -18px; bottom: 26px; z-index: 2;
  background: var(--surface); border: 1px solid var(--border);
  padding: 0.7rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; line-height: 1.2;
}
.hero__badge strong { color: var(--accent); font-size: 1.05rem; }
.hero__badge span { color: var(--muted); font-size: 0.78rem; }

@media (max-width: 920px) {
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; gap: 2.6rem; text-align: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__meta { justify-items: center; }
  .hero__photo { order: -1; }
  .hero__badge { left: 50%; transform: translateX(-40%); }
}

/* ---------- SECTIONS ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section--contact { background: linear-gradient(180deg, var(--bg) 0%, #0a0a10 100%); }

.section__head { max-width: 720px; margin-bottom: 3.6rem; }
.section__kicker {
  text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.75rem;
  color: var(--accent); font-weight: 700; margin-bottom: 0.6rem;
}
.section__title {
  font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400; line-height: 1;
}
.section__lead { margin-top: 1rem; color: var(--muted); font-size: 1.02rem; }
.section__lead strong { color: var(--text); }

/* ---------- SOBRE MI ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 1.5rem; }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.9rem;
}
.card__title { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 0.55rem; margin-bottom: 1.2rem; }
.card__title--spaced { margin-top: 1.9rem; }
.card__icon { font-size: 1.2rem; }

.timeline { list-style: none; display: grid; gap: 1.3rem; }
.timeline li { position: relative; padding-left: 1.4rem; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px; bottom: -1.3rem;
  width: 2px; background: var(--border);
}
.timeline li:last-child::before { display: none; }
.timeline__dot {
  position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(247,179,43,0.18);
}
.timeline strong { font-size: 0.97rem; }
.timeline p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

.list-check { list-style: none; display: grid; gap: 0.5rem; }
.list-check li { padding-left: 1.5rem; position: relative; color: var(--muted); font-size: 0.93rem; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

.skills { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skills span {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 0.45rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s ease;
}
.skills span:hover { border-color: var(--accent); }
.about__note { margin-top: 1.6rem; color: var(--muted); font-size: 0.92rem; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
}

/* ---------- BANDAS ---------- */
.bands { display: grid; gap: 3.2rem; }

.band {
  display: grid; grid-template-columns: auto 1fr; gap: 2.2rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2.2rem;
}
.band--reverse { grid-template-columns: 1fr auto; }
.band--reverse .band__logo { order: 2; }
.band--feature { grid-column: 1 / -1; }

.band__logo {
  width: 150px; height: 150px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); align-self: start;
}
.band__logo img { width: 100%; height: 100%; object-fit: cover; }

.band__tag { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem; color: var(--accent); font-weight: 700; }
.band__name { font-family: var(--font-head); font-size: 2rem; font-weight: 400; margin-top: 0.2rem; letter-spacing: 0.01em; }
.band__quote { font-style: italic; color: var(--accent-strong); font-weight: 600; margin: 0.5rem 0 1rem; }
.band__body p:not(.band__quote, .band__tag) { color: var(--muted); font-size: 0.98rem; margin-bottom: 0.9rem; }
.band__body p em { color: var(--text); font-style: italic; }

.discography__title { margin: 1.6rem 0 1.2rem; font-size: 1.08rem; font-weight: 700; }
.discography {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.1rem;
}
.album { text-align: center; }
.album img {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 8px 22px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.album:hover img { transform: translateY(-4px); border-color: var(--accent); }
.album figcaption { display: flex; flex-direction: column; margin-top: 0.5rem; }
.album figcaption strong { font-size: 0.8rem; line-height: 1.25; }
.album figcaption span { color: var(--muted); font-size: 0.72rem; }

@media (max-width: 700px) {
  .band { grid-template-columns: 1fr; text-align: center; }
  .band--reverse { grid-template-columns: 1fr; }
  .band--reverse .band__logo { order: 0; }
  .band__logo { justify-self: center; }
  .band__body p { }
}

/* ---------- TRABAJOS ---------- */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.6rem; }

.work {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.2s ease;
}
.work:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--surface-2); }

.work__thumb {
  height: 200px; background: var(--surface-2);
  position: relative; overflow: hidden;
}
.work__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; transition: transform 0.35s ease; }
.work:hover .work__thumb img { transform: scale(1.04); }

.work__thumb--app {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(140deg, #1c2030, #12141c);
}
.work__thumb--app::before {
  content: attr(data-initials);
  font-family: var(--font-head); font-size: 5rem; color: var(--accent); letter-spacing: 0.05em;
  opacity: 0.85;
}
.work__year, .work__badge {
  position: absolute; top: 14px; font-size: 0.7rem; font-weight: 700;
  z-index: 2;
}
.work__year { left: 14px; background: var(--accent); color: var(--bg); padding: 0.25rem 0.7rem; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.06em; }
.work__badge { right: 14px; background: rgba(13,13,18,0.7); backdrop-filter: blur(6px); color: var(--text); padding: 0.25rem 0.7rem; border-radius: 999px; border: 1px solid var(--border); }

.work__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.work__body h3 { font-size: 1.25rem; font-weight: 700; }
.work__body p { color: var(--muted); font-size: 0.92rem; margin-top: 0.6rem; flex: 1; }

.work__tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1rem; }
.work__tags span { font-size: 0.7rem; font-weight: 600; color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); padding: 0.2rem 0.6rem; border-radius: 999px; }

.work__link {
  display: inline-block; margin-top: 1.1rem; color: var(--accent);
  font-weight: 700; font-size: 0.9rem;
  transition: color 0.2s ease, gap 0.2s ease;
}
.work__link:hover { color: var(--accent-strong); }
.work__link--button { background: none; border: 0; padding: 0; text-align: left; color: var(--accent); }
.work__link--button:hover { color: var(--accent-strong); }
.work__muted { color: var(--muted); font-size: 0.85rem; margin-top: 1rem; font-style: italic; }

/* ---------- CONTACTO ---------- */
.contact { text-align: center; max-width: 640px; margin: 0 auto; }
.contact .section__kicker { margin-top: 0; }
.contact-info { }

.contact__info {
  display: grid; gap: 1.1rem; margin-top: 2.8rem; text-align: left;
  border-top: 1px solid var(--border); padding-top: 2rem;
}
.contact__item { display: flex; gap: 0.9rem; align-items: center; }
.contact__icon {
  width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; font-size: 1.2rem;
}
.contact__item strong { font-size: 0.98rem; }
.contact__item p { color: var(--muted); font-size: 0.88rem; }
.contact__item a:hover { color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); background: var(--bg-alt); padding: 2.4rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: center; justify-content: space-between; }
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__brand img { width: 38px; height: 38px; border-radius: 9px; }
.footer__brand div { display: flex; flex-direction: column; line-height: 1.25; }
.footer__brand strong { font-size: 0.92rem; }
.footer__brand span { color: var(--muted); font-size: 0.78rem; }
.footer__nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer__nav a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__copy { color: var(--muted); font-size: 0.8rem; width: 100%; text-align: center; }

/* ---------- MODAL RUFFLE ---------- */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 5vw;
}
.modal.is-open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 5, 8, 0.8); backdrop-filter: blur(8px); }
.modal__dialog {
  position: relative; z-index: 1; width: min(980px, 100%);
  background: #101218; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
  animation: modalIn 0.28s ease;
}
@keyframes modalIn { from { transform: translateY(24px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1.2rem; background: var(--surface); border-bottom: 1px solid var(--border);
}
.modal__title { font-weight: 700; font-size: 1rem; }
.modal__actions { display: flex; align-items: center; gap: 1rem; }
.modal__hint { font-size: 0.72rem; color: var(--muted); }
.modal__close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; transition: color 0.2s ease, transform 0.2s ease; }
.modal__close:hover { color: var(--accent); transform: rotate(90deg); }
.modal__player { min-height: 420px; background: #000; }
.modal__player ruffle-player, .modal__player object, .modal__player iframe { width: 100%; height: 100%; min-height: 420px; display: block; }

@media (max-width: 640px) {
  .modal { padding: 3vw; }
  .modal__player, .modal__player ruffle-player { min-height: 60vh; }
}

/* ---------- REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* Fallback si la web antigua usa accentos en texto legible */
::selection { background: var(--accent); color: var(--bg); }