/* ==========================================================================
   Roberto Marín Muñoz — main stylesheet
   ========================================================================== */

:root {
  --bg: #0c0c0e;
  --bg-alt: #17161a;
  --bg-card: #1e1c21;
  --text: #f2f0ec;
  --text-muted: #a9a6ad;
  --accent: #d99a4e;      /* warm amber — the "sentimental" undertone */
  --accent-soft: #e9c08a;
  --silver: #c9ccd1;      /* the "hard exterior" metallic accent */
  --border: #2c2a30;
  --danger: #e0665a;
  --success: #6bbf8c;
  --max-width: 1180px;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--accent-soft); }

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

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}

.section--alt { background: var(--bg-alt); }

.section-header { max-width: 640px; margin: 0 0 48px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .75rem;
  color: var(--accent);
  font-weight: 600;
}
h1, h2, h3 { font-weight: 700; line-height: 1.15; margin: .3em 0; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
p.lead { color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(12,12,14,.9), transparent);
  transition: background .25s ease, padding .25s ease;
}
.site-header.is-scrolled {
  background: rgba(12,12,14,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.brand {
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.brand span { color: var(--accent); }

.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  opacity: .85;
}
.nav a:hover { opacity: 1; color: var(--accent-soft); }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

@media (max-width: 780px) {
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-alt);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 22px;
    transform: translateX(100%);
    transition: transform .3s ease;
    border-left: 1px solid var(--border);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  background:
    linear-gradient(180deg, rgba(12,12,14,.35) 0%, rgba(12,12,14,.55) 55%, var(--bg) 100%),
    radial-gradient(circle at 70% 20%, rgba(217,154,78,.18), transparent 55%),
    #141317;
  padding-bottom: 90px;
}
.hero-inner { max-width: 760px; }
.hero .eyebrow { margin-bottom: 14px; display: block; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 18px;
}
.hero p.lead { font-size: 1.2rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: #17130b; }
.btn--primary:hover { background: var(--accent-soft); }
.btn--ghost { border-color: var(--silver); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.btn--block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Bio ---------- */
.bio-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: start;
}
.bio-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-text p { color: var(--text-muted); }
.bio-text strong { color: var(--text); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.tag {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .82rem;
  color: var(--silver);
}
@media (max-width: 780px) { .bio-grid { grid-template-columns: 1fr; } }

/* ---------- Music / releases ---------- */
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.release-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.release-art {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, #2a2730, #1a181d);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: .8rem;
}
.release-body { padding: 16px 18px 20px; }
.release-body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.release-meta { color: var(--text-muted); font-size: .85rem; margin: 0 0 14px; }
.release-links { display: flex; gap: 10px; flex-wrap: wrap; }
.icon-link {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  color: var(--silver);
}
.icon-link:hover { border-color: var(--accent); color: var(--accent); }
.icon-link svg { width: 16px; height: 16px; }

/* ---------- Listen everywhere ---------- */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}
.platform-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  background: var(--bg-card);
}
.platform-btn:hover { border-color: var(--accent); }
.platform-btn svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent-soft); }

/* ---------- Videos (consent-gated embeds) ---------- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.video-embed {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000 center/cover;
  border: 1px solid var(--border);
}
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-consent {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  background: rgba(12,12,14,.72);
}
.video-consent p { max-width: 340px; color: var(--text-muted); font-size: .88rem; margin: 0; }
.play-badge {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center; justify-content: center;
}
.play-badge svg { width: 20px; height: 20px; color: #17130b; margin-left: 3px; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.gallery-grid figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/5; background: var(--bg-card); border: 1px solid var(--border);
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Label ---------- */
.label-card {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px;
}

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

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; max-width: 640px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; color: var(--text-muted); margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 200px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; font-size: .85rem; color: var(--text-muted); margin-bottom: 20px; }
.checkbox-field input { margin-top: 4px; }
.checkbox-field a { color: var(--accent-soft); }

/* honeypot — hidden from real users, left in the tab flow for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.captcha-row { display: flex; align-items: center; gap: 14px; }
.captcha-question {
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px; font-weight: 600; letter-spacing: .03em; white-space: nowrap;
}

.form-note { font-size: .82rem; color: var(--text-muted); margin-top: 10px; }
.form-alert {
  border-radius: 8px; padding: 14px 16px; margin-bottom: 22px; font-size: .9rem;
}
.form-alert--success { background: rgba(107,191,140,.12); border: 1px solid var(--success); color: var(--success); }
.form-alert--error { background: rgba(224,102,90,.12); border: 1px solid var(--danger); color: var(--danger); }
.form-alert--info { background: rgba(255,255,255,.06); border: 1px solid var(--text-muted); color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-info h3 { margin-top: 0; }
.contact-info .contact-line { display: flex; gap: 10px; align-items: center; color: var(--text-muted); margin-bottom: 12px; }
.contact-info .contact-line svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { padding: 48px 0 32px; }
.footer-top {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; margin-bottom: 32px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: .88rem; }
.footer-links a:hover { color: var(--accent-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .8rem; color: var(--text-muted);
  border-top: 1px solid var(--border); padding-top: 24px;
}
.footer-bottom button.link-btn {
  background: none; border: none; color: var(--text-muted); text-decoration: underline;
  cursor: pointer; font-size: .8rem; padding: 0; font-family: var(--font);
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 140px 0 100px; }
.legal-page h1 { margin-bottom: .2em; }
.legal-page .updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal-page p, .legal-page li { color: var(--text-muted); }
.legal-page table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .9rem; }
.legal-page th, .legal-page td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); color: var(--text-muted); }
.legal-page th { color: var(--text); }
.legal-page .placeholder { color: var(--danger); }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 22px 0; transform: translateY(110%); transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner .container { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cookie-banner p { margin: 0; color: var(--text-muted); font-size: .88rem; max-width: 600px; }
.cookie-banner p a { color: var(--accent-soft); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn--small { padding: 10px 18px; font-size: .85rem; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  display: none; align-items: center; justify-content: center; z-index: 950; padding: 20px;
}
.modal-overlay.is-visible { display: flex; }
.modal {
  background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 520px; width: 100%; padding: 32px; max-height: 86vh; overflow-y: auto;
}
.modal h3 { margin-top: 0; }
.consent-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.consent-row:last-of-type { border-bottom: none; }
.consent-row strong { display: block; }
.consent-row span { color: var(--text-muted); font-size: .84rem; }

.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0; background: var(--border); border-radius: 999px; cursor: pointer; transition: background .2s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px;
  background: var(--text); border-radius: 50%; transition: transform .2s;
}
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled + .slider { opacity: .5; cursor: not-allowed; }

.modal-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--accent); color: #17130b;
  padding: 10px 16px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
