/* ============================================================
   MENTE Y LUNA — design system
   Concept: the site is drawn like a natal chart. Every structural
   device (rings, ticks, glyphs, degrees) comes from real chart-reading
   vocabulary rather than decoration borrowed from elsewhere.
   ============================================================ */

:root{
  --night:#150e25;
  --night2:#1e1636;
  --night3:#251c40;
  --line:rgba(244,236,219,.13);
  --line-strong:rgba(244,236,219,.26);
  --vellum:#f3ecd9;
  --vellum-ink:#241a3d;
  --vellum-line:rgba(36,26,61,.16);
  --cream:#f1ebdd;
  --soft:#cabfdd;
  --muted:#8d84a6;
  --moon:#c9c1e6;
  --moon-dim:#8d84b8;
  --ember:#c65a34;
  --ember-bright:#e07c4f;
  --max:1320px;
  --shadow:0 40px 90px rgba(6,3,16,.45);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--night);color:var(--cream);min-height:100vh;
  font-family:'IBM Plex Sans',Arial,sans-serif;
}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
button{font:inherit}
h1,h2,h3{font-family:'Fraunces',Georgia,serif;font-weight:440;margin:0;line-height:1.05;letter-spacing:-.01em}
p{margin:0}
.glyph{font-family:'Noto Sans Symbols2','Segoe UI Symbol','Fraunces',serif}

/* -------- structural rules borrowed from chart-drawing -------- */
.deg{font-family:'IBM Plex Mono',monospace;font-size:11px;letter-spacing:.02em;color:var(--moon-dim)}
.rule{height:1px;background:var(--line)}
.ticked{position:relative}
.ticked:before{
  content:"";position:absolute;left:0;top:0;bottom:0;width:1px;
  background:repeating-linear-gradient(180deg,var(--line-strong) 0 1px,transparent 1px 9px);
}

/* -------- site chrome -------- */
.site{min-height:100vh;display:grid;grid-template-rows:74px 1fr}
header{
  height:74px;display:flex;align-items:center;gap:18px;padding:0 clamp(18px,4vw,56px);
  border-bottom:1px solid var(--line);background:rgba(21,14,37,.92);position:sticky;top:0;z-index:100;backdrop-filter:blur(14px)
}
.logo{display:flex;align-items:center;gap:10px;font-family:'Fraunces',serif;font-size:22px;letter-spacing:.01em;white-space:nowrap}
.logo .mark{font-family:'Noto Sans Symbols2','Segoe UI Symbol',serif;color:var(--ember-bright);font-size:19px;transform:translateY(-1px)}
.logo em{font-style:italic;color:var(--moon)}
nav{margin-left:auto;display:flex;align-items:center;gap:26px;font-size:13px}
nav a{color:var(--soft);position:relative;padding:4px 0}
nav a:hover{color:var(--cream)}
.lang{display:flex;border-left:1px solid var(--line);padding-left:18px;gap:4px;font-family:'IBM Plex Mono',monospace}
.lang button{border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;padding:5px 8px;font-size:11px;letter-spacing:.04em}
.lang button.active{color:var(--ember-bright);border-color:var(--line-strong)}
.menu{display:none;margin-left:auto;width:40px;height:40px;border:1px solid var(--line);background:transparent;color:var(--cream);font-size:18px}
.mobile-nav{display:none}
.mobile-nav.open{
  display:flex;position:fixed;top:74px;left:0;right:0;z-index:90;background:var(--night2);
  border-bottom:1px solid var(--line);padding:22px;flex-direction:column;gap:16px;font-size:14px
}
.mobile-nav .mobile-lang{border-left:0;padding-left:0;margin-top:6px}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:50px;padding:0 22px;
  border:1px solid var(--ember);color:var(--cream);font-size:13px;font-weight:500;transition:.2s ease;
}
.btn.fill{background:var(--ember);border-color:var(--ember)}
.btn.fill:hover{background:var(--ember-bright);border-color:var(--ember-bright)}
.btn:not(.fill):hover{border-color:var(--line-strong);background:rgba(244,236,219,.05)}
.note{font-size:12.5px;color:var(--muted);line-height:1.6}

/* -------- home -------- */
.home{
  min-height:calc(100vh - 74px);display:grid;grid-template-columns:1fr 1fr;align-items:center;
  gap:40px;padding:clamp(28px,5vw,30px) clamp(18px,4vw,56px);overflow:hidden
}
.home-copy{max-width:600px}
.eyebrow{font-family:'IBM Plex Mono',monospace;font-size:12px;color:var(--moon-dim);display:flex;align-items:center;gap:10px}
.eyebrow .rule{width:34px}
.home-copy h1{font-size:clamp(40px,4.6vw,64px);letter-spacing:-.03em;margin:20px 0 22px}
.lede{font:400 18px/1.6 'Fraunces',Georgia,serif;color:var(--soft);max-width:480px;font-style:italic}
.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:30px}

.wheel-wrap{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center}
.wheel-wrap svg{width:min(100%,480px);height:auto;overflow:visible}
.wheel-cap{margin-top:16px;text-align:center}
.wheel-cap strong{display:block;font-family:'Fraunces',Georgia,serif;font-size:19px;margin-bottom:4px}
.wheel-cap span{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted)}
.chart-sky{animation:chart-spin 160s linear infinite;transform-origin:300px 300px}
.moon-terminator{animation:moon-phase 14s ease-in-out infinite}
@keyframes chart-spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes moon-phase{
  0%{cx:300px}
  48%{cx:440px}
  52%{cx:440px}
  100%{cx:300px}
}
.chart-line{stroke:var(--line-strong);stroke-width:1;fill:none}
.chart-tick{stroke:var(--line);stroke-width:1}
.chart-glyph{font-family:'Noto Sans Symbols2','Segoe UI Symbol',serif;fill:var(--moon);font-size:19px;text-anchor:middle;dominant-baseline:middle}
.chart-portrait{filter:saturate(.8) contrast(1.05)}
.chart-caption{font-family:'IBM Plex Mono',monospace;font-size:10.5px;fill:var(--muted);text-anchor:middle;letter-spacing:.04em}

/* -------- entry portal -------- */
.portal{max-width:900px;margin:0 auto;padding:clamp(50px,8vw,90px) clamp(18px,4vw,20px)}
.portal-head{margin-bottom:20px}
.portal-list{border-top:1px solid var(--line)}
.portal-row{
  display:grid;grid-template-columns:60px 1fr auto;align-items:center;gap:24px;
  padding:26px 4px;border-bottom:1px solid var(--line);transition:.2s ease
}
.portal-row:hover{background:rgba(244,236,219,.03);padding-left:14px}
.portal-row .glyph{font-size:26px;color:var(--ember-bright)}
.portal-row h2{font-size:clamp(24px,3vw,32px)}
.portal-row p{font:15px/1.5 'Fraunces',Georgia,serif;color:var(--soft);margin-top:6px;max-width:520px}
.portal-row .go{font-size:20px;color:var(--moon)}

/* -------- interior page layout -------- */
.page{min-height:calc(100vh - 74px);display:grid;grid-template-columns:320px 1fr}
.side{
  border-right:1px solid var(--line);padding:48px 34px;position:sticky;top:74px;height:calc(100vh - 74px);
  display:flex;flex-direction:column;background:rgba(244,236,219,.015)
}
.side .eyebrow{margin-bottom:14px}
.side h1{font-size:clamp(34px,3.4vw,44px);letter-spacing:-.02em}
.side p{font:16px/1.6 'Fraunces',Georgia,serif;color:var(--soft);margin-top:18px;font-style:italic}
.side .back{margin-top:auto;color:var(--moon);font-size:13px;display:flex;align-items:center;gap:8px}
.side .back .glyph{font-size:15px}
.stage{padding:48px clamp(22px,5vw,64px);display:grid;align-items:start}

/* -------- consultas: moon-phase choices -------- */
.choice-grid{border-top:1px solid var(--line)}
.consult-cta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:28px 0 8px;border-top:1px solid var(--line);margin-top:8px}
.consult-cta p{margin:0;color:var(--muted);font-size:14px}
.booking{padding:40px 0 8px;border-top:1px solid var(--line);margin-top:8px}
.booking h2{margin:8px 0 6px}
.booking>p{color:var(--muted);font-size:14px;margin:0 0 20px}
.booking .calendly-inline-widget{border-radius:14px;overflow:hidden;border:1px solid var(--line)}
.choice{
  display:grid;grid-template-columns:52px 1fr;gap:22px;padding:28px 6px;border-bottom:1px solid var(--line);
  transition:.2s ease
}
.choice:hover{background:rgba(244,236,219,.03)}
.choice .phase{padding-top:6px}
.choice .phase svg{width:34px;height:34px}
.choice h2{font-size:24px;margin-bottom:8px}
.choice p{font:15px/1.55 'Fraunces',Georgia,serif;color:var(--soft)}
.choice small{display:block;margin-top:14px;color:var(--ember-bright);font-family:'IBM Plex Mono',monospace;font-size:11.5px;letter-spacing:.02em}

/* -------- massiel: profile + ephemeris timeline -------- */
.profile{display:grid;grid-template-columns:.62fr 1.38fr;gap:52px;align-items:center}
.profile-photo{position:relative}
.profile-photo img{width:100%;max-height:62vh;object-fit:cover;object-position:center 26%;filter:saturate(.82) contrast(1.03)}
.profile-photo:before{
  content:"";position:absolute;inset:-10px;border:1px solid var(--line-strong);pointer-events:none
}
.profile h2{font-size:clamp(38px,4.4vw,54px);letter-spacing:-.025em;margin:10px 0 6px}
.role{font:italic 17px 'Fraunces',Georgia,serif;color:var(--moon);margin-bottom:22px}
.profile > div > p{font:16px/1.65 'Fraunces',Georgia,serif;color:var(--soft);max-width:640px}

.timeline{margin-top:34px}
.timeline-label{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted);margin-bottom:14px}
.timeline-track{position:relative;padding-top:18px}
.timeline-track:before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:var(--line-strong)}
.timeline-points{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.tpoint{position:relative}
.tpoint:before{content:"";position:absolute;top:-19px;left:0;width:7px;height:7px;border-radius:50%;background:var(--ember-bright)}
.tpoint b{display:block;font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--ember-bright);margin-bottom:5px}
.tpoint span{font-size:12.5px;color:var(--muted);line-height:1.5}

/* -------- escuchar: media -------- */
.listen{display:grid;grid-template-columns:1.1fr .9fr;gap:24px;align-items:stretch}
.feature-media{
  border:1px solid var(--line);min-height:460px;padding:40px;display:flex;flex-direction:column;justify-content:flex-end;
  background:radial-gradient(circle at 82% 12%,rgba(198,90,52,.12),transparent 40%),var(--night2)
}
.feature-media h2{font-size:clamp(34px,4vw,50px);margin:10px 0 14px}
.feature-media p{font:16px/1.55 'Fraunces',Georgia,serif;color:var(--soft);max-width:560px}
.fake-player{margin-top:24px;border-top:1px solid var(--line);padding-top:18px;display:grid;grid-template-columns:56px 1fr auto;gap:16px;align-items:center}
.play{width:56px;height:56px;border-radius:50%;border:1px solid var(--ember);display:grid;place-items:center;color:var(--ember-bright);font-size:18px}
.wave{height:22px;background:repeating-linear-gradient(90deg,rgba(201,193,230,.75) 0 2px,transparent 2px 7px);mask:linear-gradient(#000 0 0);opacity:.55}
.fake-player span{font-family:'IBM Plex Mono',monospace;font-size:11px;color:var(--muted)}
.media-list{border-top:1px solid var(--line)}
.media-card{padding:24px 0;border-bottom:1px solid var(--line)}
.media-card .deg{display:block;margin-bottom:6px}
.media-card h3{font-size:22px;margin-bottom:6px}
.media-card p{font:14px/1.5 'Fraunces',Georgia,serif;color:var(--muted)}
.video-demo{
  margin-top:14px;aspect-ratio:16/9;background:linear-gradient(135deg,#2a2049,#160f26);border:1px solid var(--line);
  display:grid;place-items:center;position:relative;overflow:hidden
}
.video-demo:before{content:"";position:absolute;width:56%;aspect-ratio:1;border:1px solid rgba(201,193,230,.25);border-radius:50%}
.video-demo .play{z-index:2;background:rgba(21,14,37,.78)}

/* -------- aprender: roman list -------- */
.learn-list{border-top:1px solid var(--line)}
.learn-item{display:grid;grid-template-columns:56px 1fr auto;gap:22px;align-items:center;padding:26px 4px;border-bottom:1px solid var(--line)}
.learn-item .num{font-family:'Fraunces',Georgia,serif;font-style:italic;font-size:17px;color:var(--moon)}
.learn-item h2{font-size:28px}
.learn-item p{font:14px/1.5 'Fraunces',Georgia,serif;color:var(--muted);margin-top:6px}
.learn-item .go{font-size:19px;color:var(--ember-bright)}

/* -------- tienda: shop -------- */
.shop-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.product{position:relative;border:1px solid var(--line);overflow:hidden;background:var(--night2)}
.product img{width:100%;height:225px;object-fit:cover;filter:saturate(.72) brightness(.82)}
.product-body{padding:18px}
.product h3{font-size:20px}
.product p{font:13px/1.5 'Fraunces',Georgia,serif;color:var(--muted);margin-top:7px}
.seal{
  position:absolute;top:14px;right:14px;z-index:2;background:var(--ember);color:var(--cream);
  font-family:'IBM Plex Mono',monospace;font-size:9.5px;letter-spacing:.05em;padding:5px 9px;
  clip-path:polygon(6% 0,94% 0,100% 50%,94% 100%,6% 100%,0 50%)
}

/* -------- contacto -------- */
.contact{max-width:720px}
.contact h2{font-size:clamp(38px,4.6vw,58px);letter-spacing:-.03em;margin:12px 0 20px}
.contact > p{font:18px/1.6 'Fraunces',Georgia,serif;color:var(--soft);max-width:560px}
.coords{margin-top:24px;font-family:'IBM Plex Mono',monospace;font-size:11.5px;color:var(--muted);display:flex;gap:18px;flex-wrap:wrap}
.coords span b{color:var(--moon)}
.contact-card{margin-top:32px;border-top:1px solid var(--line);padding-top:26px;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.contact-card .email{font-family:'IBM Plex Mono',monospace;font-size:13px;color:var(--muted)}
.disclaimer{margin-top:40px;max-width:640px}

/* -------- mobile -------- */
@media(max-width:980px){
  nav{display:none}
  .menu{display:block}
  .home{grid-template-columns:1fr;padding-top:20px}
  .wheel-wrap{order:-1}
  .wheel-wrap svg{width:min(78%,380px)}
  .page{grid-template-columns:1fr}
  .side{position:relative;top:auto;height:auto;border-right:0;border-bottom:1px solid var(--line);padding:32px 22px}
  .side .back{margin-top:22px}
  .stage{padding:36px 22px}
  .profile,.listen{grid-template-columns:1fr}
  .profile-photo img{max-height:40vh}
  .shop-grid{grid-template-columns:1fr 1fr}
  .timeline-points{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  header{padding:0 18px}
  .home{padding:18px}
  .home-copy h1{font-size:clamp(36px,11vw,50px)}
  .actions{flex-direction:column}
  .btn{width:100%}
  .shop-grid{grid-template-columns:1fr}
  .profile h2{font-size:40px}
  .timeline-points{grid-template-columns:1fr}
  .timeline-track:before{display:none}
  .tpoint:before{display:none}
  .feature-media{padding:26px;min-height:400px}
  .fake-player{grid-template-columns:48px 1fr}
  .fake-player span{display:none}
  .play{width:48px;height:48px}
  .learn-item{grid-template-columns:36px 1fr auto}
  .learn-item h2{font-size:23px}
  .product img{height:250px}
  .portal-row{grid-template-columns:40px 1fr;row-gap:6px}
  .portal-row .go{display:none}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none!important;animation:none!important}
}
