/* GeoGuía Experience / Explorar
   Página editorial complementaria del amanecer 3D */
:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #121212;
  --text: #f4f2ee;
  --muted: #a8a39e;
  --line: rgba(255, 255, 255, .11);
  --accent: #ff651e;
  --width: 1120px;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  color: var(--text); background:
    radial-gradient(ellipse 75% 430px at 80% 125px, rgba(255,101,30,.045), transparent 75%),
    var(--bg);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.header-container, .main-wrapper, .site-footer {
  width: min(var(--width), calc(100% - 76px));
  margin-inline: auto;
}
.site-header {
  position: sticky; top: 0; z-index: 20; height: 72px;
  background: rgba(10,10,10,.91); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.065);
}
.header-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand-link { display: flex; align-items: baseline; gap: 15px; text-decoration: none; }
.brand-title { font-size: 20px; font-weight: 760; letter-spacing: -.045em; }
.brand-title span { color: var(--accent); }
.brand-badge { font: 10px/1 monospace; color: #8a8581; letter-spacing: .15em; }
.btn-volver-3d { text-decoration: none; color: #bbb7b2; font-size: 13px; transition: color .18s; }
.btn-volver-3d:hover { color: #fff; }
.hero-header { position: relative; padding: clamp(95px, 11vw, 166px) 0 78px; isolation: isolate; }
.hero-header::before {
  content: ""; pointer-events: none; position: absolute; right: 2%; top: 18%;
  width: min(390px, 55vw); aspect-ratio: 1; border: 1px solid rgba(255,101,30,.11);
  border-radius: 50%; box-shadow: 0 0 0 50px rgba(255,101,30,.018), 0 0 0 104px rgba(255,101,30,.012);
  z-index: -1;
}
.eyebrow, .chapter-badge {
  color: #ff9b64; font: 600 11px/1.5 ui-monospace, Consolas, monospace;
  letter-spacing: .19em; text-transform: uppercase;
}
.hero-title {
  max-width: 1040px; margin: 23px 0 30px;
  font-size: clamp(58px, 8.4vw, 116px); line-height: .99;
  letter-spacing: -.077em; font-weight: 750;
}
.hero-title span { color: #89837f; }
.hero-desc { max-width: 530px; color: var(--muted); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.65; margin: 0 0 90px; }
.hero-foot {
  border-bottom: 1px solid var(--line); display: flex;
  align-items: center; justify-content: space-between; gap: 15px;
  padding: 25px 0; color: #8d8985; font: 11px/1.5 monospace; letter-spacing: .07em;
}
.hero-foot a { color: #dedbd6; text-decoration: none; font: 13px/1.5 Inter, sans-serif; letter-spacing: 0; }
.hero-foot a:hover { color: #ff9b64; }
.place {
  scroll-margin-top: 90px; display: grid; grid-template-columns: .9fr 1fr;
  align-items: center; gap: clamp(45px, 9vw, 125px);
  padding: clamp(95px, 11vw, 145px) 0;
}
.section-title {
  font-size: clamp(38px, 4.5vw, 67px); line-height: 1.07;
  font-weight: 710; letter-spacing: -.059em; margin: 15px 0 24px;
}
.place-copy > p:last-child, .solar-intro {
  margin: 0; color: var(--muted); line-height: 1.7; font-size: 16px; max-width: 430px;
}
.figure-panel {
  display: flex; flex-direction: column; min-height: 425px;
  padding: 30px 24px 18px; border: 1px solid var(--line);
  border-radius: 6px; background:
    radial-gradient(ellipse at 50% 50%, rgba(255,101,30,.085), transparent 57%), #131211;
}
.figure-art { flex: 1; display: grid; place-items: center; }
.geoglyph-svg { width: min(55%, 225px); height: auto; max-height: 345px; }
.figure-caption {
  border-top: 1px solid rgba(255,255,255,.085); padding-top: 15px;
  display: flex; justify-content: space-between; gap: 12px;
  color: #96918c; font: 10px/1.5 monospace; letter-spacing: .05em;
}
.solar-section { scroll-margin-top: 90px; border-top: 1px solid var(--line); padding: 100px 0 118px; }
.solar-head { display: flex; justify-content: space-between; gap: 38px; align-items: end; padding-bottom: 34px; }
.solar-head .section-title { margin-bottom: 0; }
.solar-intro { font-size: 14px; max-width: 330px; }
.rise-scene {
  --sun-x: 22%;
  height: clamp(330px, 42vw, 490px);
  position: relative; border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #070708 0%, #131112 30%, #221813 70%, #251911 100%);
  isolation: isolate;
}
.rise-scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 28% 36% at var(--sun-x) 48%, rgba(255,135,52,.18), transparent 90%);
  transition: background-position .65s ease;
}
.rise-scene::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.1), transparent 45%, rgba(0,0,0,.48));
}
.scene-sun {
  position: absolute; left: var(--sun-x); top: 48%;
  width: clamp(43px, 5.6vw, 67px); aspect-ratio: 1;
  border-radius: 50%; background: #ffb26a;
  box-shadow: 0 0 0 12px rgba(255,145,70,.12), 0 0 55px 24px rgba(255,124,41,.16);
  transform: translate(-50%, -50%);
  transition: left .8s cubic-bezier(.2,.75,.2,1); z-index: 2;
}
.ridge { position: absolute; inset: 0; }
.ridge-back {
  z-index: 3; background: #221e1c;
  clip-path: polygon(0 63%, 9% 59%, 16% 61%, 25% 53%, 35% 59%, 46% 56%, 55% 46%, 62% 54%, 73% 58%, 83% 51%, 91% 57%, 100% 53%, 100% 100%, 0 100%);
}
.ridge-front {
  z-index: 4; background: #111213;
  clip-path: polygon(0 75%, 13% 69%, 25% 74%, 38% 68%, 47% 73%, 55% 65%, 65% 72%, 78% 67%, 90% 73%, 100% 68%, 100% 100%, 0 100%);
}
.scene-label {
  position: absolute; z-index: 7; bottom: 28px; left: 29px; right: 29px;
  display: flex; justify-content: space-between; gap: 12px;
  color: #d8d0c9; font: 11px/1.5 monospace; letter-spacing: .085em;
}
.scene-label span:last-child { color: #ffb080; text-align: right; }
.solar-controls { padding-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.phase-btn {
  cursor: pointer; text-align: left; padding: 16px 4px 13px;
  border: 0; border-top: 2px solid #44413e; background: transparent;
  color: #88837e; font: 500 14px/1.5 Inter, sans-serif;
  transition: color .2s, border-color .2s;
}
.phase-btn:hover { color: #eee; border-color: #999; }
.phase-btn[aria-pressed="true"] { color: #f5eee8; border-color: var(--accent); }
.phase-btn .num { display: block; font: 10px/1.7 monospace; letter-spacing: .13em; color: #777; margin-bottom: 4px; }
.phase-btn[aria-pressed="true"] .num { color: #ff9b64; }
.solar-note { color: #827d78; font-size: 12px; line-height: 1.5; margin: 16px 0 0; }
.finish {
  display: flex; align-items: center; justify-content: space-between; gap: 26px;
  border-top: 1px solid var(--line); padding: 65px 0 105px;
}
.finish h2 { margin: 0; font-size: clamp(28px, 4.2vw, 52px); letter-spacing: -.055em; font-weight: 700; }
.finish a {
  white-space: nowrap; text-decoration: none; padding: 14px 20px;
  border: 1px solid #55504d; border-radius: 4px; font-size: 13px; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.finish a:hover { border-color: var(--accent); background: rgba(255,101,30,.07); }
.site-footer {
  display: flex; align-items: baseline; justify-content: space-between; gap: 35px;
  border-top: 1px solid var(--line); padding: 28px 0 55px;
}
.footer-sign { font: 11px/1.5 monospace; color: #8b8581; letter-spacing: .1em; flex-shrink: 0; }
.footer-details { max-width: 440px; min-width: 0; font-size: 12px; line-height: 1.6; color: #928d88; text-align: right; }
.footer-details summary { cursor: pointer; }
.footer-details p { margin: 12px 0 0; }
@media (max-width: 760px) {
  .site-header { height: 64px; }
  .header-container, .main-wrapper, .site-footer { width: calc(100% - 40px); }
  .brand-title { font-size: 19px; } .brand-badge { font-size: 9px; }
  .hero-header { padding: 82px 0 0; }
  .hero-title { font-size: clamp(53px, 11.5vw, 76px); }
  .hero-desc { font-size: 15px; margin-bottom: 72px; }
  .hero-foot { font-size: 10px; }
  .place { grid-template-columns: 1fr; padding: 100px 0; gap: 34px; }
  .figure-panel { min-height: 365px; }
  .solar-section { padding: 86px 0 100px; }
  .solar-head { display: block; }
  .solar-intro { margin-top: 15px; }
  .rise-scene { height: 375px; }
  .scene-label { left: 18px; right: 18px; bottom: 21px; font-size: 9px; }
  .phase-btn { font-size: 12px; }
  .finish { flex-direction: column; align-items: flex-start; padding: 56px 0 83px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 15px; }
  .footer-details { text-align: left; max-width: 100%; }
}
@media (max-width: 380px) {
  .header-container, .main-wrapper, .site-footer { width: calc(100% - 32px); }
  .brand-badge { font-size: 8px; } .btn-volver-3d { font-size: 11px; }
  .hero-title { font-size: 49px; }
  .scene-label span:first-child { max-width: 125px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
