@font-face {
  font-family: "Bebas Neue";
  src: url("../assets/fonts/bebas-neue.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../assets/fonts/cormorant-garamond-italic.woff2") format("woff2");
  font-weight: 500 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("../assets/fonts/outfit.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #1f2633;
  --bg-deep: #161b25;
  --bg-card: #252c3b;
  --bg-card-2: #2a3242;
  --orange: #E8693A;
  --orange-hover: #f07a50;
  --pink: #ce3356;
  --text: #ffffff;
  --muted: #c9cfd8;
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.28);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-h: 4rem;
  --max: 70rem;
  --font-sans: "Outfit", "Source Sans Pro", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Cormorant Garamond", "Noto Serif", Georgia, "Times New Roman", serif;
  --font-mark: "Bebas Neue", "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --radius: 0.85rem;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html, body { background: var(--bg-deep); color: var(--text); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--orange-hover); }
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  background: var(--orange);
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
}
.skip:focus { top: 0.75rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.4rem;
  border: 1.5px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { color: var(--text); border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.btn-solid:hover { background: var(--orange-hover); border-color: var(--orange-hover); color: #fff; }
.btn-pink {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.btn-pink:hover { filter: brightness(1.08); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, rgba(22, 27, 37, 0.78), rgba(22, 27, 37, 0.15) 85%, transparent);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled,
.site-header.is-open,
body.is-legal .site-header {
  background: rgba(22, 27, 37, 0.94);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}
.wordmark {
  font-family: var(--font-mark);
  font-size: 1.45rem;
  letter-spacing: 0.16em;
  color: var(--text);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.wordmark:hover { color: var(--text); }
.nav-desktop { display: none; }
.nav-desktop a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.35rem 0;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] { color: var(--orange); }
.socials {
  display: none;
  align-items: center;
  gap: 0.15rem;
}
.socials a, .icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.socials a:hover, .icon-btn:hover { color: var(--orange); background: rgba(255,255,255,0.06); }
.icon-btn { justify-self: end; }
.menu-btn { color: var(--text); }

/* Mobile menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.55);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 110;
  width: min(20.5rem, 88vw);
  height: 100vh;
  height: 100dvh;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
  padding: calc(var(--header-h) + 0.5rem) 1.4rem 2rem;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  overflow-y: auto;
}
body.menu-open .menu-backdrop { opacity: 1; visibility: visible; }
body.menu-open .menu-panel { transform: translateX(0); }
body.menu-open { overflow: hidden; }
.menu-panel a {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.menu-panel a:hover { color: var(--orange); }
.menu-socials {
  display: flex;
  gap: 0.4rem;
  margin-top: 1.4rem;
}
.menu-socials a { border: 0; padding: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; }

/* Hero — mobile: photo fills width (capped near native), text on navy below.
   Desktop: split layout so the low-res photo is never stretched full-bleed. */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text);
  isolation: isolate;
  background: var(--bg-deep);
  padding-top: var(--header-h);
}
.hero-media {
  position: relative;
  width: 100%;
  background: var(--bg-deep);
}
.hero-blur { display: none; }
.hero-media picture {
  display: block;
  width: 100%;
  max-width: 26rem; /* ~416px; mild upscale from 339px, fine on phones */
  margin-inline: auto;
}
.hero-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center top;
}
.hero-media::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 22%;
  background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 0.6rem 0 2.8rem;
  text-align: center;
}
.hero-name {
  margin: 0;
  font-family: var(--font-mark);
  font-size: clamp(3rem, 12vw, 7.2rem);
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 0.9;
  text-shadow: none;
}
.hero-lead, .hero-meta { text-shadow: none; }
.hero-rule {
  display: block;
  width: 4.5rem;
  height: 1px;
  margin: 1.05rem auto 1.15rem;
  background: #fff;
  opacity: 0.85;
}
.hero-lead {
  margin: 0 auto;
  max-width: 34rem;
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.55rem);
  font-weight: 500;
  line-height: 1.35;
  font-style: italic;
}
.hero-meta {
  margin: 0.7rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}
.hero-inner .btn-row { justify-content: center; }

/* Sections */
.section {
  padding: 4.2rem 0;
  background: var(--bg);
  scroll-margin-top: calc(var(--header-h) + 0.4rem);
}
#inicio { scroll-margin-top: 0; }
.section-alt { background: var(--bg-deep); }
.wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
}
.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}
.section h2 {
  margin: 0 0 0.7rem;
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.lede {
  margin: 0 0 2rem;
  max-width: 38rem;
  color: var(--muted);
}

/* Music */
.music-card {
  display: grid;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.cover-wrap {
  position: relative;
  width: min(100%, 20rem);
  margin: 0 auto;
  aspect-ratio: 1;
}
.vinyl {
  position: absolute;
  inset: 8% 0 8% 18%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #161b25 0 8%, var(--orange) 8.2% 14%, #0c0e13 14.2% 16%, #0c0e13 16%),
    repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,0.07) 0 1px, transparent 1px 8px),
    #11141a;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}
.cover-wrap img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.2rem;
  box-shadow: 0 12px 28px rgba(0,0,0,0.45);
}
.music-copy h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
}
.music-copy .tag {
  display: inline-block;
  margin-bottom: 0.7rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink);
}
.music-copy p { margin: 0 0 1.15rem; color: var(--muted); }

/* Bio */
.bio-grid {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}
.bio-photo {
  width: min(100%, 21.3rem);
}
.bio-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.bio-copy p { color: var(--muted); margin: 0 0 1rem; }
.bio-copy p.note {
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 0.4rem;
}

/* Modest portraits (native size is small; do not upscale much) */
.photo-sm {
  width: min(100%, 15rem);
  margin-inline: auto;
}
.photo-sm img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.clases-head, .contact-grid {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.6rem;
  align-items: center;
}
.clases-head .lede { margin-bottom: 0; }

/* Classes */
.facts {
  display: grid;
  gap: 0.9rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}
.facts li {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.8rem;
  padding: 1rem 1.05rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
}
.facts svg { margin-top: 0.15rem; color: var(--orange); }
.facts strong { display: block; font-weight: 600; color: var(--text); }
.facts span, .facts a { color: var(--muted); }
.facts a { color: var(--orange); }

/* Videos */
.cards {
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.ig-card {
  display: flex;
  flex-direction: column;
  min-height: 14rem;
  padding: 1.2rem 1.15rem 1.15rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  background:
    linear-gradient(160deg, rgba(206, 51, 86, 0.35), rgba(22, 27, 37, 0.2) 45%, rgba(232, 105, 58, 0.2)),
    var(--bg-card);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.ig-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--line-strong); }
.ig-card .kicker {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
}
.ig-card h3 {
  margin: 0.8rem 0 auto;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.2;
}
.ig-card .go {
  margin-top: 1.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--orange);
}

/* Contact */
.contact-box {
  max-width: 38rem;
}
.contact-box p { color: var(--muted); }
.phone {
  margin: 0.2rem 0 1.2rem;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
}
.phone a { color: var(--text); text-decoration: none; }
.phone a:hover { color: var(--orange); }
.wa-btn { min-width: min(100%, 18rem); }

/* Footer */
.site-footer {
  background: #10141c;
  border-top: 1px solid var(--line);
  padding: 2.4rem 0 calc(1.8rem + env(safe-area-inset-bottom));
  text-align: center;
}
.site-footer .wordmark { font-size: 1.8rem; display: inline-block; margin-bottom: 0.9rem; }
.footer-socials {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  margin-bottom: 1.1rem;
}
.footer-socials a {
  color: var(--text);
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  text-decoration: none;
}
.footer-socials a:hover { color: var(--orange); }
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.1rem;
  margin: 0 0 1.1rem;
}
.legal-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.86rem;
}
.legal-nav a:hover, .legal-nav a[aria-current="page"] { color: var(--orange); }
.credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.copy { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.82rem; }

/* Legal / 404 */
body.is-legal { background: var(--bg); }
.doc {
  padding: calc(var(--header-h) + 1.6rem) 0 3rem;
}
.doc h1 {
  margin: 0 0 0.4rem;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}
.doc .upd { color: var(--muted); font-size: 0.92rem; margin: 0 0 1.4rem; }
.doc h2 {
  margin: 1.7rem 0 0.5rem;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
}
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-left: 1.15rem; }
.doc .back-link {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
.doc .back-link:hover { color: var(--orange); }
.error-page { text-align: center; padding-top: 2rem; }
.error-page h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.error-kicker {
  margin: 0 0 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
}

@media (min-width: 800px) {
  :root { --header-h: 4.5rem; }
  .header-inner {
    grid-template-columns: auto 1fr auto auto;
    gap: 1.2rem;
  }
  .menu-btn { display: none; }
  .nav-desktop {
    display: flex;
    justify-content: center;
    gap: 1.15rem;
  }
  .socials { display: flex; }
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 26rem);
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 0;
    align-items: stretch;
  }
  .hero-media {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-h) + 1.6rem) 2rem 2.2rem;
    overflow: hidden;
  }
  .hero-blur {
    display: block;
    position: absolute;
    inset: -16%;
    width: 132%;
    height: 132%;
    max-width: none;
    object-fit: cover;
    object-position: center 20%;
    filter: blur(36px) saturate(1.12);
    transform: scale(1.06);
    opacity: 0.45;
    z-index: 0;
    pointer-events: none;
  }
  .hero-media::after {
    inset: 0;
    height: auto;
    background:
      linear-gradient(to right, var(--bg-deep) 0%, rgba(22, 27, 37, 0.45) 14%, rgba(22, 27, 37, 0.18) 40%, rgba(22, 27, 37, 0.22) 100%);
    z-index: 1;
  }
  .hero-media picture {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 21.1875rem; /* native 339px, no upscale */
    margin: 0;
  }
  .hero-photo {
    width: 21.1875rem;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
  }
  .hero-inner {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    padding: calc(var(--header-h) + 2rem) 3.2rem 3rem 3.4rem;
    text-align: left;
  }
  .hero-rule { margin-left: 0; }
  .hero-lead { margin-left: 0; }
  .hero-inner .btn-row { justify-content: flex-start; }
  .music-card {
    grid-template-columns: minmax(16rem, 22rem) 1fr;
    align-items: center;
    padding: 1.6rem 1.8rem;
    gap: 2rem;
  }
  .cover-wrap { margin: 0; width: 100%; }
  .bio-grid { grid-template-columns: minmax(16rem, 21.3rem) 1fr; gap: 2.6rem; }
  .clases-head, .contact-grid {
    grid-template-columns: 15rem 1fr;
    gap: 2rem;
    align-items: center;
  }
  .photo-sm { margin-inline: 0; }
  .contact-box { max-width: none; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 5.4rem 0; }
}

@media (min-width: 1100px) {
  .nav-desktop { gap: 1.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-blur { display: none !important; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Toast */
.cj-toast {
  position: fixed;
  z-index: 400;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: min(22rem, calc(100% - 2rem));
  padding: 0.75rem 1.15rem;
  border-radius: 999px;
  background: #0f1a14;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(31, 168, 85, 0.45);
  animation: cj-toast-in 0.2s ease;
}
.cj-toast.is-out { opacity: 0; transition: opacity 0.25s ease; }
@keyframes cj-toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Compartir: grande, acento naranja / WhatsApp, estilo Musicaliza-T */
.btn-share {
  display: inline-flex;
  width: 100%;
  justify-content: flex-start;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.7rem;
  padding: 0.7rem 1.15rem;
  border: 0;
  border-radius: 1.15rem;
  color: #fff;
  background: linear-gradient(135deg, #E8693A 0%, #d4552e 48%, #1fa855 130%);
  box-shadow: 0 8px 22px -6px rgba(31, 168, 85, 0.45), 0 1px 0 rgba(255,255,255,0.14) inset;
  text-align: left;
  line-height: 1.15;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
}
.btn-share:hover, .btn-share:focus-visible {
  filter: brightness(1.06);
  color: #fff;
}
.btn-share-icon {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0.42rem;
  border-radius: 999px;
  background: #fff;
  color: #1fa855;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.18);
}
.btn-share-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}
.btn-share-title {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.btn-share-sub {
  font-weight: 500;
  font-size: 0.76rem;
  color: #e9fff1;
  letter-spacing: 0.01em;
}
.hero-share {
  margin-top: 1.15rem;
  max-width: 22rem;
}
.hero-inner .hero-share { margin-left: auto; margin-right: auto; }
.footer-share {
  max-width: 22rem;
  margin: 0 auto 1.3rem;
}
.admin-link {
  display: inline-block;
  margin-top: 0.7rem;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
}
.admin-link:hover { color: var(--orange); }

@media (min-width: 800px) {
  .hero-inner .hero-share { margin-left: 0; }
}
