/* ============================================================
   BRUNO MARCIAL · brunomarcial.com · Design System v1
   Dark cinematic — inspirado en motionsites.ai
   ============================================================ */

:root {
  --bg: #06070d;
  --bg-2: #0b0d17;
  --bg-3: #10131f;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #f2f3f7;
  --muted: #9aa0b4;
  --accent: #f6a821;
  --accent-2: #ff6b3d;
  --accent-soft: rgba(246, 168, 33, 0.14);
  --grad: linear-gradient(100deg, #f6a821, #ff6b3d 60%, #ff4d6d);
  --radius: 18px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #100a00; }

/* ---------- Texturas de fondo ---------- */
.noise::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.glow-orb.amber { background: radial-gradient(circle, rgba(246,168,33,.55), transparent 65%); }
.glow-orb.red   { background: radial-gradient(circle, rgba(255,77,109,.35), transparent 65%); }
.glow-orb.blue  { background: radial-gradient(circle, rgba(64,106,255,.28), transparent 65%); }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 35%, transparent 75%);
  z-index: 0;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }
section { position: relative; padding: 110px 0; }

/* ---------- Tipografía ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 18px; }
h3 { font-size: 1.35rem; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--muted); max-width: 640px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--grad); }

/* ---------- Header ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(6, 7, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--panel-border);
}
.nav {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.12rem;
  color: var(--text); text-decoration: none;
  letter-spacing: -0.01em;
}
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.burger { display: none; background: none; border: 0; cursor: pointer; z-index: 60; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: .3s; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, background .25s;
  border: 0;
}
.btn-primary {
  background: var(--grad);
  color: #14080a;
  box-shadow: 0 8px 32px rgba(246, 140, 33, 0.35);
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 44px rgba(246, 140, 33, 0.5); }
.btn-ghost {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); transform: translateY(-2px); }

/* ---------- HERO ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}
#particles { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 100px; padding: 8px 18px;
  font-size: 0.82rem; color: var(--muted);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 12px #3ddc84; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-photo { position: relative; justify-self: center; }
.hero-photo .frame {
  width: min(380px, 80vw);
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--panel-border);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 90px rgba(246,168,33,.13);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(200deg, transparent 55%, rgba(6,7,13,.85));
}
.hero-photo .ring {
  position: absolute; inset: -22px;
  border: 1px dashed rgba(246,168,33,.35);
  border-radius: 32px;
  animation: spin-slow 26s linear infinite;
  pointer-events: none;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.float-chip {
  position: absolute;
  background: rgba(13, 15, 25, 0.85);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0,0,0,.45);
  white-space: nowrap;
}
.float-chip b { color: var(--accent); font-family: var(--font-display); }
.chip-1 { top: 6%; left: -22%; }
.chip-2 { bottom: 18%; right: -16%; }
.chip-3 { bottom: -4%; left: -10%; }

/* ---------- Stats ---------- */
.stats {
  padding: 0 0 90px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 30px 26px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform .3s, border-color .3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(246,168,33,.4); }
.stat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
}
.stat:hover::before { opacity: 1; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { color: var(--muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Marquee logos ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: 26px 0;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; gap: 64px; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: rgba(255,255,255,.34);
  white-space: nowrap;
  letter-spacing: 0.04em;
  transition: color .3s;
}
.marquee-track span:hover { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards genéricas ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.card:hover {
  transform: translateY(-7px);
  border-color: rgba(246,168,33,.45);
  box-shadow: 0 24px 60px rgba(0,0,0,.45), 0 0 60px rgba(246,168,33,.07);
}
.card .icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(246,168,33,.3);
  border-radius: 14px;
  font-size: 1.5rem;
  margin-bottom: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 0.97rem; }
.card .card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  color: var(--accent); font-weight: 600; font-size: 0.92rem;
  text-decoration: none;
}
.card .card-link:hover { gap: 13px; }
.card .card-link::after { content: "→"; transition: transform .25s; }

/* ---------- Media library ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 38px;
}
.filter-btn {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  border-radius: 100px;
  padding: 9px 20px;
  font-size: 0.88rem; font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.filter-btn.active {
  background: var(--grad);
  color: #14080a;
  border-color: transparent;
  box-shadow: 0 6px 22px rgba(246,140,33,.3);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.media-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s, border-color .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.media-card:hover {
  transform: translateY(-6px);
  border-color: rgba(246,168,33,.45);
  box-shadow: 0 22px 55px rgba(0,0,0,.5);
}
.media-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  cursor: pointer;
  overflow: hidden;
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.media-card:hover .media-thumb img { transform: scale(1.06); }
.media-thumb .play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(180deg, transparent 40%, rgba(6,7,13,.7));
  transition: background .3s;
}
.media-thumb .play::before {
  content: "";
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(246,168,33,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314080a'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 26px no-repeat;
  box-shadow: 0 10px 32px rgba(246,140,33,.45);
  transition: transform .3s;
}
.media-thumb:hover .play::before { transform: scale(1.12); }
.media-thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.media-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.media-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 100px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid rgba(246,168,33,.25);
}
.tag.alt { background: rgba(99,140,255,.12); color: #8fb0ff; border-color: rgba(99,140,255,.3); }
.media-body h3 { font-size: 1.02rem; line-height: 1.4; }
.media-body .outlet { color: var(--muted); font-size: 0.85rem; margin-top: auto; }
.media-card a.ext {
  color: var(--accent); font-size: .88rem; font-weight: 600; text-decoration: none;
}

/* ---------- Quote band ---------- */
.quote-band {
  text-align: center;
  padding: 130px 0;
  position: relative;
  overflow: hidden;
}
.quote-band blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 880px;
  margin: 0 auto;
}
.quote-band .author { margin-top: 24px; color: var(--muted); }

/* ---------- Sobre mí ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--panel-border);
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
  position: relative;
}
.about-photo img { width: 100%; display: block; }
.timeline { margin-top: 34px; display: grid; gap: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 1px; background: linear-gradient(var(--accent), transparent);
}
.tl-item { position: relative; padding: 0 0 26px 36px; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 14px rgba(246,168,33,.5);
}
.tl-item b { font-family: var(--font-display); display: block; font-size: 1.02rem; }
.tl-item span { color: var(--muted); font-size: 0.92rem; }

/* ---------- Artículos ---------- */
.article-card { display: flex; flex-direction: column; }
.article-card .meta { font-size: .82rem; color: var(--muted); margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.article-body { display: none; margin-top: 18px; color: var(--muted); font-size: .97rem; }
.article-body p { margin-bottom: 14px; }
.article-body strong { color: var(--text); }
.article-card.open .article-body { display: block; animation: fadeIn .4s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Contacto ---------- */
.contact-band {
  background:
    radial-gradient(ellipse 60% 90% at 50% 110%, rgba(246,140,33,.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--panel-border);
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
  position: relative;
}
.contact-band h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.contact-band .lead { margin: 18px auto 40px; }
.contact-channels { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--panel-border);
  padding: 44px 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-social { display: flex; gap: 18px; }
.footer-social a { color: var(--muted); text-decoration: none; transition: color .25s; }
.footer-social a:hover { color: var(--accent); }

/* ---------- Links page ---------- */
.links-page {
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: 90px 20px 60px;
  max-width: 560px; margin: 0 auto;
  position: relative; z-index: 2;
}
.links-avatar {
  width: 110px; height: 110px; border-radius: 50%;
  overflow: hidden; border: 2px solid var(--accent);
  box-shadow: 0 0 40px rgba(246,168,33,.35);
  margin-bottom: 20px;
}
.links-avatar img { width: 100%; height: 100%; object-fit: cover; }
.links-page h1 { font-size: 1.6rem; text-align: center; }
.links-page .sub { color: var(--muted); text-align: center; margin: 10px 0 34px; font-size: .95rem; }
.link-btn {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 17px 22px;
  margin-bottom: 14px;
  color: var(--text); text-decoration: none;
  font-weight: 600; font-family: var(--font-display); font-size: .98rem;
  transition: all .25s;
  backdrop-filter: blur(8px);
}
.link-btn:hover {
  transform: translateY(-3px) scale(1.015);
  border-color: rgba(246,168,33,.5);
  box-shadow: 0 14px 40px rgba(0,0,0,.45), 0 0 30px rgba(246,168,33,.1);
}
.link-btn.primary { background: var(--grad); color: #14080a; border: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: 180px 0 60px; position: relative; overflow: hidden; }
.page-hero .lead { margin-top: 14px; }

/* ---------- Servicios ---------- */
.service-block {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px;
  padding: 60px 0; border-top: 1px solid var(--panel-border);
  align-items: start;
}
.service-block:last-of-type { border-bottom: 1px solid var(--panel-border); }
.service-block .num {
  font-family: var(--font-display); font-size: .9rem; color: var(--accent);
  letter-spacing: .15em; margin-bottom: 14px; display: block;
}
.check-list { list-style: none; display: grid; gap: 13px; margin-top: 8px; }
.check-list li { padding-left: 32px; position: relative; color: var(--muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 21px; height: 21px; border-radius: 6px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: .75rem; font-weight: 800;
  border: 1px solid rgba(246,168,33,.3);
}
.price-note {
  display: inline-block; margin-top: 22px;
  background: var(--panel); border: 1px solid var(--panel-border);
  border-radius: 12px; padding: 12px 20px;
  font-size: .9rem; color: var(--muted);
}
.price-note b { color: var(--accent); }

/* ---------- Reveal (GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(36px); }
html.no-js .reveal, html.reduced .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-ctas { justify-content: center; }
  .hero-photo { margin-top: 30px; }
  .chip-1 { left: -4%; } .chip-2 { right: -4%; } .chip-3 { left: -2%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .media-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .service-block { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .cards-3, .media-grid, .stats-grid { grid-template-columns: 1fr; }
  .nav-links {
    position: fixed; inset: 0;
    background: rgba(6,7,13,.96);
    backdrop-filter: blur(18px);
    flex-direction: column; justify-content: center;
    gap: 34px;
    font-size: 1.3rem;
    transform: translateY(-100%);
    visibility: hidden;
    overflow-y: auto;
    transition: transform .4s cubic-bezier(.7,0,.3,1), visibility 0s .4s;
    z-index: 55;
  }
  .nav-links.open { transform: translateY(0); visibility: visible; transition: transform .4s cubic-bezier(.7,0,.3,1); }
  .burger { display: block; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
