:root {
  /* Paleta blanco y negro (branding 360 FT CLUB) */
  --black: #000000;
  --black-2: #0d0d0d;
  --black-3: #161616;
  --ivory: #f5f5f7;
  --ivory-soft: rgba(245, 245, 247, .62);
  --ivory-faint: rgba(245, 245, 247, .14);
  --gold: #f5f5f7;          /* acento principal: blanco */
  --gold-light: #86868b;    /* segunda línea de los titulares: gris */
  --grey: #a1a1a6;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: var(--display);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--black); color: var(--ivory);
  font: 400 17px/1.6 var(--sans); letter-spacing: -.012em; -webkit-font-smoothing: antialiased;
}
/* grano sutil */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 200; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0 0 .5em; letter-spacing: -.04em; }
h1 { font-size: clamp(2.9rem, 7.6vw, 6.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; }
h3 { font-size: 1.45rem; letter-spacing: -.03em; }
em { font-style: normal; color: var(--gold-light); }
p { margin: 0 0 1.1em; }
strong { font-weight: 700; color: var(--ivory); }

.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; z-index: 300; background: var(--ivory); color: var(--black); padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.kicker {
  font: 600 .82rem/1 var(--sans); letter-spacing: -.01em;
  color: var(--grey); margin-bottom: 1.6rem; display: flex; align-items: center; gap: .9rem;
}
.kicker::before { content: ""; width: 34px; height: 1px; background: var(--grey); }
.center .kicker { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.7rem; border: 1px solid transparent; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); letter-spacing: -.01em;
  text-decoration: none; cursor: pointer; transition: all .35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: #d2d2d7; }
.btn-line { border-color: var(--ivory-faint); color: var(--ivory); background: transparent; }
.btn-line:hover { border-color: var(--ivory); color: var(--ivory); }
.btn-sm { padding: .7rem 1.15rem; font-size: .85rem; }
a:focus-visible, button:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }

/* ---------- Cabecera ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 100; transition: background .4s var(--ease); border-bottom: 1px solid var(--ivory-faint); }
.site-header.is-scrolled { background: rgba(0, 0, 0, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.header-inner { height: 80px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font: 700 1.2rem var(--display); letter-spacing: -.03em; }
.mono { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--ivory-faint); color: var(--gold); font: 700 .9rem var(--display); letter-spacing: -.02em; border-radius: 50%; overflow: hidden; flex: none; }
.mono img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav a:not(.btn) { font-size: .85rem; text-decoration: none; color: var(--ivory-soft); transition: color .3s; }
.nav a:not(.btn):hover { color: var(--ivory); }
.menu-toggle { display: none; }

/* ---------- Huecos para fotos ---------- */
.slot {
  position: relative; overflow: hidden; background:
    radial-gradient(120% 90% at 30% 20%, #1c1c1c 0%, var(--black-2) 60%);
  border: 1px solid var(--ivory-faint);
}
.slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 1.2s var(--ease); }
.slot-label {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1rem;
  font: 500 .8rem/1.4 var(--sans); color: rgba(255, 255, 255, .75);
}
.slot-label::before {
  content: ""; position: absolute; width: 42px; height: 42px; top: calc(50% - 46px); left: calc(50% - 21px);
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  background: linear-gradient(var(--gold), var(--gold)) center / 12px 1px no-repeat, linear-gradient(var(--gold), var(--gold)) center / 1px 12px no-repeat;
  opacity: .7;
}

/* ---------- Portada ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 110px; overflow: hidden; }
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; border: 0; }
.hero-photo img { object-position: 46% 40%; }
.hero-photo .slot-label { align-items: start; padding-top: 22vh; justify-items: end; padding-right: 8vw; }
.hero-photo .slot-label::before { display: none; }
.hero-shade { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 2; background: linear-gradient(90deg, var(--black) 0%, rgba(0,0,0,.55) 22%, rgba(0,0,0,0) 50%), linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,0) 22%); }
.hero-inner { position: relative; z-index: 3; }
.hero-inner h1 { max-width: 9.5em; }
.hero-lead { max-width: 30rem; font-size: 1.08rem; color: var(--ivory-soft); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2.4rem 0 2.2rem; }
.handle { font: 600 1.05rem var(--sans); color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .4); padding-bottom: 2px; }
.handle:hover { border-color: var(--gold-light); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; display: none; bottom: 3rem; width: 1px; height: 70px; background: var(--ivory-faint); overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: -30px; width: 1px; height: 30px; background: var(--gold); animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { to { top: 70px; } }

/* ---------- Cinta ---------- */
.ribbon { border-block: 1px solid var(--ivory-faint); overflow: hidden; padding: 1.4rem 0; background: var(--black-2); }
.ribbon-track { display: flex; width: max-content; gap: 2.6rem; align-items: center; animation: slide 38s linear infinite; }
.ribbon span { font: 700 clamp(1.5rem, 2.8vw, 2.2rem) var(--display); letter-spacing: -.035em; white-space: nowrap; }
.ribbon i { font-style: normal; color: var(--gold); font-size: .9rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(5.5rem, 11vw, 9.5rem) 0; }
.section-tight { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-head { margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.section-head.center { text-align: center; }
.split-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; }
.split-head > p { color: var(--ivory-soft); max-width: 26rem; }

/* Sobre mí */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(3rem, 8vw, 7rem); align-items: center; }
.about-photo { aspect-ratio: 4 / 5; }
.about-copy > p:not(.kicker) { color: var(--ivory-soft); max-width: 34rem; }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.square { aspect-ratio: 1 / 1; }
.gallery .slot:hover img { transform: scale(1.05); }

/* Club */
.club { background: var(--black-2); border-block: 1px solid var(--ivory-faint); position: relative; overflow: hidden; }
.club::before {
  content: "360"; position: absolute; right: -2vw; top: 50%; transform: translateY(-50%);
  font: 800 clamp(12rem, 30vw, 28rem)/1 var(--display); letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06);
  pointer-events: none;
}
.club-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 7vw, 6rem); align-items: start; }
.club-title { font-size: clamp(3rem, 6.6vw, 5.6rem); letter-spacing: -.045em; }
.club-lead { color: var(--ivory-soft); max-width: 30rem; font-size: 1.08rem; }
.club-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.2rem; }
.pillars { list-style: none; margin: 0; padding: 0; }
.pillars li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 1rem; padding: 1.6rem 0; border-top: 1px solid var(--ivory-faint); transition: padding .4s var(--ease); }
.pillars li:last-child { border-bottom: 1px solid var(--ivory-faint); }
.pillars li:hover { padding-left: .6rem; }
.p-num { font: 600 1.05rem var(--sans); color: var(--gold); padding-top: .15rem; }
.pillars h3 { margin-bottom: .25rem; font-size: 1.35rem; }
.pillars p { margin: 0; color: var(--ivory-soft); font-size: .95rem; }

/* Ebooks */
.books { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.book { display: flex; flex-direction: column; }
.cover { aspect-ratio: 3 / 4; margin-bottom: 1.4rem; transition: border-color .4s; background: #fff; }
.book:hover .cover { border-color: rgba(255, 255, 255, .5); }
.book:hover .cover img { transform: scale(1.04); }
.book-tag { font: 600 .82rem/1 var(--sans); color: var(--gold); margin-bottom: .8rem; }
.book h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.book > p:not(.book-tag) { color: var(--ivory-soft); font-size: .93rem; flex: 1; }
.book-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 1.1rem; border-top: 1px solid var(--ivory-faint); }
.price { font: 700 1.45rem var(--display); letter-spacing: -.03em; color: var(--ivory); }

/* Suplementación */
.code-card {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center;
  padding: clamp(2.2rem, 5vw, 4rem); border: 1px solid rgba(255, 255, 255, .35);
  background: linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 55%);
}
.code-card p:not(.kicker) { color: var(--ivory-soft); max-width: 32rem; margin: 0; }
.code-box { display: flex; flex-direction: column; align-items: stretch; gap: .8rem; text-align: center; }
.code-label { font: 600 .82rem/1 var(--sans); color: var(--ivory-soft); }
.code {
  font: 800 2.4rem/1 var(--display); letter-spacing: .18em; border-radius: 16px; color: var(--ivory); background: transparent;
  border: 1px dashed rgba(255, 255, 255, .55); padding: 1.1rem 0 1.1rem .3em; cursor: pointer; transition: background .3s;
}
.code:hover { background: rgba(255, 255, 255, .08); }
.code-hint { font-size: .78rem; color: var(--ivory-soft); margin-bottom: .6rem; }

/* Contacto */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: clamp(2.2rem, 5vw, 4rem); border-top: 1px solid var(--ivory-faint); border-bottom: 1px solid var(--ivory-faint); }
.contact-card p:not(.kicker) { color: var(--ivory-soft); margin: 0; max-width: 28rem; }
.contact-box { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-mail { font: 700 clamp(1.15rem, 2.4vw, 1.75rem)/1.2 var(--display); letter-spacing: -.03em; color: var(--ivory); text-decoration: none; word-break: break-all; }
.contact-mail { text-decoration: underline; text-decoration-color: var(--ivory-faint); text-underline-offset: 6px; }
.contact-mail:hover { text-decoration-color: var(--ivory); }
.contact-actions { display: flex; gap: .8rem; flex-wrap: wrap; }

/* YouTube destacado */
.yt-feature {
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center; text-decoration: none;
  padding: clamp(2rem, 4.5vw, 3.4rem); margin-bottom: 0; border: 1px solid var(--ivory-faint); border-bottom: 0;
  background: linear-gradient(120deg, var(--black-3), var(--black-2) 60%); transition: background .4s var(--ease);
}
.yt-feature:hover { background: var(--black-3); }
.yt-feature h3 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); letter-spacing: -.04em; margin-bottom: .6rem; }
.yt-feature p:not(.yt-tag) { color: var(--ivory-soft); max-width: 36rem; margin: 0; }
.yt-tag { display: flex; align-items: center; gap: .6rem; font: 600 .82rem/1 var(--sans); color: var(--grey); margin-bottom: 1.2rem; }
.yt-play { width: 26px; height: 18px; border-radius: 5px; background: var(--ivory); position: relative; }
.yt-play::after { content: ""; position: absolute; left: 10px; top: 5px; border-left: 8px solid var(--black); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.yt-feature .btn { white-space: nowrap; }

/* Redes */
.socials { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--ivory-faint); border-left: 1px solid var(--ivory-faint); border-right: 1px solid var(--ivory-faint); }
.social { position: relative; display: flex; flex-direction: column; gap: .3rem; padding: 2.4rem 2rem; text-decoration: none; border-bottom: 1px solid var(--ivory-faint); transition: background .4s var(--ease); }
.social + .social { border-left: 1px solid var(--ivory-faint); }
.social:hover { background: var(--black-2); }
.s-name { font: 700 1.9rem var(--display); letter-spacing: -.035em; }
.s-handle { color: var(--ivory-soft); font-size: .9rem; }
.s-arrow { position: absolute; right: 2rem; top: 2.4rem; color: var(--gold); font-size: 1.3rem; transition: transform .4s var(--ease); }
.social:hover .s-arrow { transform: translate(4px, -4px); }

/* Final */
.final { position: relative; overflow: hidden; padding: clamp(7rem, 15vw, 13rem) 0; text-align: center; }
.final-photo { position: absolute; inset: 0; }
.final-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: grayscale(1) contrast(1.05); opacity: .42; }
.final-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--black) 0%, rgba(0,0,0,.25) 35%, rgba(0,0,0,.25) 65%, var(--black) 100%); }
.final-inner { position: relative; }
.final h2 { margin-bottom: 2.6rem; }

/* Pie */
.site-footer { border-top: 1px solid var(--ivory-faint); padding: 2.6rem 0; font-size: .82rem; color: var(--ivory-soft); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 1.6rem; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: var(--ivory); }
.site-footer p { margin: 0; }

/* Aparición (solo con JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Movimiento continuo: se pausa si el sistema pide menos movimiento */
@media (prefers-reduced-motion: reduce) {
  .ribbon-track, .scroll-cue span { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .books { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .about, .club-inner, .split-head, .code-card, .contact-card { grid-template-columns: 1fr; }
  .about-photo { max-width: 480px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .socials { grid-template-columns: 1fr; }
  .yt-feature { grid-template-columns: 1fr; gap: 1.6rem; }
  .yt-feature .btn { justify-self: start; }
  .hero { display: block; min-height: 0; padding: 0 0 72px; }
  .hero-photo { position: relative; width: 100%; height: 64svh; min-height: 380px; }
  .hero-shade { top: 0; width: 100%; height: 64svh; min-height: 380px; bottom: auto; background: linear-gradient(0deg, var(--black) 0%, rgba(0,0,0,0) 40%), linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,0) 22%); }
  .hero-photo img { object-position: 47% 30%; }
  .hero-inner { margin-top: -70px; }
  .social + .social { border-left: 0; }
}
@media (max-width: 860px) {
  .menu-toggle {
    display: grid; gap: 7px; place-content: center; width: 46px; height: 46px; cursor: pointer;
    background: transparent; border: 1px solid var(--ivory-faint); border-radius: 12px;
  }
  .menu-toggle span { display: block; width: 20px; height: 1px; background: var(--ivory); transition: transform .3s; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: fixed; inset: 80px 0 auto; display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(0, 0, 0, .97); padding: 1rem 1.5rem 2rem; border-bottom: 1px solid var(--ivory-faint);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 1.1rem 0; border-bottom: 1px solid var(--ivory-faint); font-size: .95rem; }
  .nav .btn { margin-top: 1.4rem; }
  .site-header.menu-open { background: rgba(0, 0, 0, .97); }
}
@media (max-width: 560px) {
  .wrap { width: min(var(--wrap), 100% - 2.2rem); }
  .books { grid-template-columns: 1fr; }
  .gallery { gap: 8px; }
  .hero { padding-bottom: 90px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .scroll-cue { display: none; }
  .hero-photo .slot-label { justify-items: center; padding-right: 1rem; padding-top: 96px; }
}
