:root {
  --bg: #12100e;
  --bg-alt: #17140f;
  --surface: #1f1a15;
  --surface-2: #26201a;
  --border: #34291f;
  --text: #f4ede4;
  --text-dim: #b8ab9c;
  --text-faint: #7d7266;
  --brick: #c1440e;
  --brick-light: #e0641f;
  --gold: #d4a054;
  --green: #5fa86a;
  --red: #b6463a;
  --radius: 14px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Archivo Black', 'Inter', sans-serif; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(18, 16, 14, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { font-size: 24px; flex-shrink: 0; }
.brand-name { font-family: 'Archivo Black', sans-serif; font-size: 18px; letter-spacing: 0.5px; }
.brand-name em { font-style: normal; color: var(--brick-light); }
.brand-name.small { font-size: 16px; }
.main-nav { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.main-nav a { color: var(--text-dim); transition: color .15s; }
.main-nav a:hover { color: var(--text); }
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 0 auto; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-cta {
  background: var(--brick); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  border: none; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
}
.nav-cta-yt:hover { background: var(--brick-light); }
.nav-cta-apply {
  background: transparent; color: var(--gold) !important; border: 1.5px solid var(--gold);
}
.nav-cta-apply:hover { background: var(--gold); color: var(--bg) !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 86vh; display: flex; align-items: flex-end;
  overflow: hidden; background: radial-gradient(120% 100% at 20% 0%, #2a1c12 0%, var(--bg) 60%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 5%, rgba(18,16,14,0.35) 55%, rgba(18,16,14,0.15) 100%);
}
.hero-content { position: relative; padding-bottom: 72px; padding-top: 160px; }
.eyebrow {
  color: var(--gold); font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  font-size: 13px; margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px); color: var(--text); letter-spacing: 1px;
}
.hero h1 span { color: var(--brick-light); }
.subtitle {
  margin-top: 20px; max-width: 620px; font-size: clamp(16px, 2vw, 20px); color: var(--text-dim);
}
.hero-actions { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brick); color: #fff; }
.btn-primary:hover { background: var(--brick-light); }
.btn-ghost { border: 1.5px solid var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }
.section-head p { color: var(--text-dim); font-size: 16px; }

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
}
.portfolio-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden; cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.portfolio-card:hover { transform: translateY(-3px); border-color: var(--gold); }
.portfolio-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brick), var(--gold));
}
.pf-head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.pf-avatar {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--border); background: var(--surface-2);
}
.pf-name { font-weight: 800; font-size: 17px; }
.pf-role { color: var(--text-faint); font-size: 13px; }
.pf-stats-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 18px; }
.pf-stat { flex: 1 1 110px; min-width: 110px; }
.pf-stat-value {
  font-size: 24px; font-weight: 800; font-family: 'Archivo Black', sans-serif;
  margin-bottom: 4px; white-space: nowrap;
}
.pf-stat-label { color: var(--text-faint); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.pf-footer {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 14px; font-size: 13px; color: var(--text-dim);
}
.pf-footer .see-detail { color: var(--gold); font-weight: 600; }

/* ---------- Portfolio modal ---------- */
.portfolio-modal-stats { display: flex; gap: 18px; margin: 20px 0 28px; }
.portfolio-modal-stats .pf-stat-value { font-size: 30px; }
.modal-section-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint);
  font-weight: 700; margin-bottom: 12px;
}
.investment-list { display: flex; flex-direction: column; gap: 10px; }
.investment-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; cursor: pointer; transition: border-color .15s, transform .15s;
}
.investment-row:hover { border-color: var(--gold); transform: translateX(2px); }
.investment-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.investment-ep {
  font-family: 'Archivo Black', sans-serif; font-size: 13px; color: var(--text-faint); flex-shrink: 0;
}
.investment-title-wrap { min-width: 0; }
.investment-title { font-weight: 700; font-size: 14px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.investment-sub { font-size: 12px; color: var(--text-faint); }
.investment-row-amount { font-weight: 800; color: var(--green); font-size: 15px; flex-shrink: 0; }
.empty-state { color: var(--text-faint); font-size: 14px; }
.loading-state { color: var(--text-faint); font-size: 14px; grid-column: 1 / -1; }

/* ---------- Episodes ---------- */
.episodes-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px;
}
.ep-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .15s, border-color .15s;
}
.ep-card.is-clickable { cursor: pointer; }
.ep-card.is-clickable:hover { transform: translateY(-3px); border-color: var(--gold); }
.ep-num { font-family: 'Archivo Black', sans-serif; font-size: 22px; color: var(--text-faint); }
.ep-card.status-published .ep-num { color: var(--gold); }
.ep-badge {
  align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.status-todo .ep-badge { background: var(--surface-2); color: var(--text-faint); }
.status-confirmed .ep-badge { background: rgba(212, 160, 84, 0.15); color: var(--gold); }
.status-published .ep-badge { background: rgba(95, 168, 106, 0.15); color: var(--green); }
.ep-title { font-size: 14px; font-weight: 700; margin-top: 8px; }
.ep-meta { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
.ep-raised { font-size: 11px; color: var(--text-faint); margin-top: 8px; }
.ep-raised strong { color: var(--gold); font-weight: 700; }
.ep-guest { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ep-guest img {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border);
  background: var(--surface-2);
}
.ep-guest span { font-size: 12px; color: var(--text-dim); }
.ep-question { font-size: 30px; color: var(--text-faint); opacity: 0.5; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.is-open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 8, 6, 0.75); backdrop-filter: blur(3px); }
.modal-panel {
  position: relative; width: min(640px, calc(100% - 32px)); margin: 6vh auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 32px;
  max-height: 88vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 18px; right: 18px; background: var(--surface-2); border: none;
  color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px;
}
.modal-close:hover { background: var(--border); }
.modal-panel-form { padding: 0; width: min(560px, calc(100% - 32px)); overflow: hidden; }
.apply-iframe { width: 100%; height: 80vh; border: none; display: block; background: #fff; }
.modal-panel-form .modal-close { background: rgba(18, 16, 14, 0.7); }
.modal-panel-form .modal-close:hover { background: var(--bg); }
.apply-chooser { padding: 32px 28px 28px; }
.apply-chooser .modal-title { margin-bottom: 20px; padding-right: 28px; }
.apply-options { display: flex; flex-direction: column; gap: 12px; }
.apply-option {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; color: var(--text); font: inherit; cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.apply-option:hover { border-color: var(--gold); transform: translateY(-2px); }
.apply-option-icon { font-size: 22px; flex-shrink: 0; width: 36px; text-align: center; }
.apply-option-text { min-width: 0; }
.apply-option-title { font-weight: 700; font-size: 15px; display: block; }
.apply-option-sub { font-size: 12px; color: var(--text-faint); display: block; margin-top: 3px; }
.apply-form-view { display: flex; flex-direction: column; }
.apply-form-view[hidden] { display: none; }
.apply-back {
  align-self: flex-start; margin: 10px 0 0 10px; background: var(--surface-2);
  color: var(--text); border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  font-size: 12px; font-weight: 600; cursor: pointer; flex-shrink: 0;
}
.apply-back:hover { border-color: var(--gold); color: var(--gold); }
.apply-form-view .apply-iframe { height: 76vh; }
.modal-eyebrow { color: var(--gold); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.modal-title { font-size: 24px; margin-bottom: 6px; }
.modal-meta { color: var(--text-faint); font-size: 13px; margin-bottom: 20px; }
.modal-desc { color: var(--text-dim); font-size: 15px; margin-bottom: 24px; }
.modal-yt {
  display: inline-flex; align-items: center; gap: 8px; background: #ff0000; color: #fff;
  padding: 11px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; margin-bottom: 28px;
}
.modal-yt:hover { background: #e60000; }
.modal-guest {
  display: flex; align-items: center; gap: 14px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-bottom: 24px;
}
.modal-guest img {
  width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border);
  background: var(--surface); flex-shrink: 0;
}
.modal-guest-name { font-weight: 700; font-size: 15px; }
.modal-guest-bio { font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.invest-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.invest-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 14px;
  text-align: center;
}
.invest-card .name { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.invest-card .amount { font-size: 18px; font-weight: 800; }
.invest-card.invested .amount { color: var(--green); }
.invest-card.passed .amount { color: var(--text-faint); font-size: 13px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; }
.footer-inner p { color: var(--text-faint); font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; font-weight: 600; font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text); }
.copyright { text-align: center; color: var(--text-faint); font-size: 12px; margin-top: 40px; }

/* ---------- Responsive: tablet / móvil ---------- */
@media (max-width: 768px) {
  .wrap { padding: 0 18px; }
  .header-inner { height: 64px; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 8px 18px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 12px; }

  .hero { min-height: 72vh; }
  .hero-content { padding-top: 100px; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }

  .pf-head { gap: 10px; }
  .portfolio-card { padding: 20px; }

  .episodes-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .ep-card { padding: 14px; min-height: 130px; }

  .modal-panel { padding: 24px; margin: 4vh auto; max-height: 92vh; }
  .apply-chooser { padding: 24px 20px 20px; }
  .modal-title { font-size: 21px; }
  .invest-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }

  .footer-inner { flex-direction: column; gap: 16px; }
}

@media (max-width: 420px) {
  .portfolio-grid,
  .episodes-grid { grid-template-columns: 1fr; }
  .pf-stat-value { font-size: 22px; }
}
