:root {
  --paper: #f7f4ed;
  --navy: #20204f;
  --orange: #e65310;
  --grid: rgba(32,32,79,.025);
  --toggle-surface: rgba(255,255,255,.62);
  --toggle-border: rgba(32,32,79,.16);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #12152f;
  --navy: #f4f0e9;
  --orange: #ff8244;
  --grid: rgba(244,240,233,.045);
  --toggle-surface: rgba(255,255,255,.07);
  --toggle-border: rgba(244,240,233,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: var(--paper); color: var(--navy); font-family: "DM Sans", Arial, sans-serif; transition: background-color .55s ease, color .55s ease; }
body, button, a { -webkit-tap-highlight-color: transparent; }
main { position: relative; overflow: clip; }
::selection { background: var(--orange); color: var(--paper); }
a { color: inherit; touch-action: manipulation; }
img, svg { display: block; max-width: 100%; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 700; letter-spacing: -.065em; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .8rem 1rem; background: var(--navy); color: var(--paper); }
.skip-link:focus { top: 1rem; }

.section { position: relative; z-index: 2; }
.journey-thread { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thread-progress { fill: none; stroke: var(--orange); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.thread-pulse { opacity: 0; transition: opacity .25s ease; }
.thread-pulse.is-visible { opacity: 1; }

.intro { display: grid; place-items: center; min-height: 100svh; padding: 100px clamp(24px, 7vw, 120px); isolation: isolate; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 74px 74px; mask-image: radial-gradient(ellipse at center, #000 10%, transparent 78%); }
.theme-toggle { position: absolute; z-index: 4; top: clamp(22px, 3vw, 42px); right: clamp(24px, 5vw, 80px); display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 9px 15px; border: 1px solid var(--toggle-border); border-radius: 999px; background: var(--toggle-surface); color: var(--navy); font: 600 .72rem "DM Sans", sans-serif; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .3s ease, background-color .3s ease, border-color .3s ease, transform .3s ease; }
.theme-toggle:hover { transform: translateY(-2px); border-color: var(--orange); }
.theme-toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.theme-icon { width: 18px; height: 18px; flex: none; }
.theme-icon--sun, [data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: block; }
.intro-glow { position: absolute; z-index: -1; width: min(78vw, 1040px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fffaf4 0%, rgba(255,236,216,.42) 46%, transparent 72%); pointer-events: none; }
.intro-content { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; }
.intro-logo { position: relative; isolation: isolate; width: min(850px, 86vw); margin: 0 0 clamp(12px, 2vw, 30px); animation: logo-in 1.05s cubic-bezier(.2,.75,.2,1) .1s both; }
.intro-logo::before { content: ""; position: absolute; z-index: -1; inset: -28% -12%; border-radius: 50%; background: radial-gradient(ellipse at center, rgba(255,255,255,.96) 0%, rgba(255,221,192,.42) 38%, rgba(230,83,16,.09) 58%, transparent 76%); filter: blur(24px); pointer-events: none; animation: logo-halo 7s ease-in-out 1s infinite alternate; }
.intro-logo::after { content: ""; position: absolute; z-index: 1; inset: 0; background: radial-gradient(ellipse closest-side, rgba(255,255,255,.48), rgba(255,228,203,.22) 42%, transparent 76%) no-repeat; background-size: 42% 160%; background-position: -45% 50%; -webkit-mask: url("assets/logo-desarrollo-creativo-new.png") center / contain no-repeat; mask: url("assets/logo-desarrollo-creativo-new.png") center / contain no-repeat; pointer-events: none; animation: logo-spotlight 7s ease-in-out 1.4s infinite alternate; }
.intro-logo img { width: 100%; height: auto; }
.intro-content > p { max-width: 35rem; margin: 0 0 34px; font-family: "Space Grotesk", sans-serif; font-size: clamp(1.3rem, 2.1vw, 2rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.3; animation: rise-in .9s cubic-bezier(.2,.75,.2,1) .38s both; }
.discover-link { position: relative; display: inline-block; padding: 10px 0 16px; text-decoration: none; font-size: .79rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; animation: rise-in .9s cubic-bezier(.2,.75,.2,1) .6s both; }
.discover-link::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 100%; height: 2px; background: var(--orange); transform: translateX(-50%) scaleX(.5); transition: transform .35s ease; }
.discover-link:hover::after, .discover-link:focus-visible::after { transform: translateX(-50%) scaleX(1); }

.journey-stage { padding: clamp(85px, 9vw, 155px) clamp(24px, 7vw, 120px); }
.movement-section { padding-top: clamp(95px, 12vw, 185px); }
.stroke-section { background: radial-gradient(circle at 23% 55%, rgba(230,83,16,.04), transparent 46%); }
.possibilities-section { padding-bottom: clamp(130px, 14vw, 220px); }
.stage-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); align-items: center; gap: clamp(34px, 5vw, 100px); width: min(100%, 1360px); margin: 0 auto; }
.stage-copy { position: relative; z-index: 2; min-width: 0; }
.stage-title { max-width: 690px; margin: 0 0 clamp(28px, 3vw, 46px); font-size: clamp(3.5rem, 6vw, 7.5rem); line-height: .96; text-wrap: balance; overflow-wrap: normal; }
.stage-title em, .end-content h2 em { color: var(--orange); font-style: normal; }
.stage-description { max-width: 365px; margin: 0; font-size: clamp(1.05rem, 1.2vw, 1.22rem); line-height: 1.6; }
.stage-visual { min-width: 0; }
.stage-artwork { position: relative; width: min(100%, 620px); margin: 0 auto; transform: translate3d(0, var(--drift-y, 0px), 0) rotate(var(--drift-rotate, 0deg)) scale(var(--art-scale, 1)); will-change: transform; }
.stage-blob { position: absolute; z-index: 0; inset: 3%; width: 94%; height: 94%; object-fit: contain; pointer-events: none; user-select: none; }
.stage-art-image { width: 100%; height: auto; pointer-events: none; user-select: none; }
.stage-artwork > svg { position: relative; z-index: 1; width: 100%; height: auto; overflow: visible; }
.stage-inner--reverse .stage-copy { grid-column: 2; grid-row: 1; text-align: right; }
.stage-inner--reverse .stage-title, .stage-inner--reverse .stage-description { margin-left: auto; }
.stage-inner--reverse .stage-visual { grid-column: 1; grid-row: 1; }

.movement-art { width: min(100%, 660px); }
.movement-art .stage-blob { inset: 1%; width: 98%; height: 98%; }
.movement-orbit-path { stroke: var(--orange); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 2.5s cubic-bezier(.55,0,.2,1) .1s; }
.movement-orbit-glint { stroke: #ffd5ad; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 70 930; stroke-dashoffset: 1000; opacity: 0; filter: drop-shadow(0 0 9px rgba(230,83,16,.8)); transition: opacity .5s ease 1.5s; }
.movement-section.is-active .movement-orbit-path { stroke-dashoffset: 0; }
.movement-section.is-active .movement-orbit-glint { opacity: .95; animation: coil-flow 5.2s linear 1.5s infinite; }

.stroke-art { isolation: isolate; filter: drop-shadow(0 30px 50px rgba(32,32,79,.12)); }

.possibilities-art { width: min(100%, 630px); }

.end-section { padding: 0 clamp(24px, 7vw, 120px); }
.end-halo { position: absolute; left: 50%; top: 47%; width: min(68vw, 840px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 1px solid rgba(230,83,16,.27); border-radius: 50%; box-shadow: 0 0 0 7vw rgba(230,83,16,.035), 0 0 0 14vw rgba(230,83,16,.025); pointer-events: none; }
.end-content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(100px, 12vw, 180px) 0 clamp(115px, 12vw, 170px); }
.end-light { position: relative; width: 64px; height: 64px; margin-bottom: 30px; border-radius: 50%; background: radial-gradient(circle, #fffaf0 0 6%, #ffc795 12%, rgba(230,83,16,.95) 19%, rgba(230,83,16,.32) 37%, rgba(230,83,16,.08) 58%, transparent 73%); filter: drop-shadow(0 0 16px rgba(230,83,16,.4)); transition: opacity .45s ease, transform .6s cubic-bezier(.2,.75,.2,1); }
.end-light::before { content: ""; position: absolute; inset: -22px; border-radius: 50%; background: radial-gradient(circle, rgba(230,83,16,.22), rgba(230,83,16,.06) 38%, transparent 69%); animation: light-breathe 3.6s ease-in-out infinite alternate; }
.journey-ready .end-light { opacity: 0; transform: scale(.6); }
.journey-complete .end-light { opacity: 1; transform: scale(1); }
.end-content h2 { margin: 0 0 30px; font-size: clamp(4.5rem, 9.5vw, 11rem); line-height: .9; }
.end-content p { max-width: 320px; margin: 0; line-height: 1.55; font-size: 1.04rem; }
.back-to-top, .site-footer span { font-size: .72rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.back-to-top { display: inline-flex; align-items: center; text-decoration: none; margin-top: 26px; padding: 8px 0; border-bottom: 1px solid currentColor; }
.site-footer { position: relative; z-index: 2; min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .footer-mark { width: 165px; height: auto; }
.site-footer span { opacity: .58; }

[data-theme="dark"] .intro-glow { width: min(96vw, 1120px); aspect-ratio: 1.35; background: radial-gradient(ellipse at center, rgba(250,245,236,.96) 0%, rgba(246,237,224,.93) 42%, rgba(255,190,137,.34) 66%, transparent 80%); filter: blur(12px); }
[data-theme="dark"] .intro-content > p, [data-theme="dark"] .discover-link { color: #20204f; }
[data-theme="dark"] .intro-logo::before { background: radial-gradient(ellipse at center, rgba(255,246,228,.6), rgba(255,197,146,.2) 52%, transparent 76%); }
[data-theme="dark"] .intro-logo::after { opacity: .6; }
[data-theme="dark"] .stroke-section { background: radial-gradient(circle at 23% 55%, rgba(255,130,68,.08), transparent 48%); }
[data-theme="dark"] .movement-art .stage-blob { opacity: .8; filter: saturate(.85); }
[data-theme="dark"] .stroke-art .stage-art-image { filter: brightness(0) invert(.82) sepia(.1); }
[data-theme="dark"] .possibilities-art .stage-art-image { filter: brightness(.72) sepia(.12); }
[data-theme="dark"] .stroke-art { filter: drop-shadow(0 30px 50px rgba(0,0,0,.2)); }
[data-theme="dark"] .site-footer .footer-mark { padding: 8px 10px; border-radius: 12px; background: rgba(250,245,236,.93); }

.reveal { opacity: 1; transform: none; }
.motion-ready .reveal { opacity: 0; transition: opacity .8s ease, transform .95s cubic-bezier(.2,.75,.2,1); }
.motion-ready .stage-copy.reveal { transform: translate3d(0, 42px, 0); }
.motion-ready .stage-visual.reveal { transform: translate3d(48px, 26px, 0) scale(.94); }
.motion-ready .stage-inner--reverse .stage-visual.reveal { transform: translate3d(-48px, 26px, 0) scale(.94); }
.motion-ready .end-content.reveal { transform: translate3d(0, 38px, 0); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
.motion-ready .stage-visual.reveal.is-visible { transition-delay: .16s; }
.motion-ready .stage-inner--reverse .stage-visual.reveal.is-visible { transform: none; }
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logo-in { from { opacity: 0; transform: translateY(22px) scale(.95); filter: blur(8px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes logo-halo { from { opacity: .55; transform: translateX(-3%) scale(.96); } to { opacity: .92; transform: translateX(3%) scale(1.04); } }
@keyframes logo-spotlight { from { background-position: -45% 50%; } to { background-position: 145% 50%; } }
@keyframes coil-flow { to { stroke-dashoffset: 0; } }
@keyframes light-breathe { from { opacity: .55; transform: scale(.86); } to { opacity: 1; transform: scale(1.16); } }

@media (max-width: 1050px) {
  .stage-title { font-size: clamp(3.2rem, 6.3vw, 6rem); }
  .stage-inner { gap: 34px; }
}
@media (max-width: 760px) {
  .thread-progress { stroke-width: 3; }
  .intro { min-height: 82svh; padding: 105px 24px 85px; }
  .intro-logo { width: min(100%, 560px); }
  .intro-content > p { max-width: 26rem; }
  .journey-stage { padding: 80px 24px 95px; }
  .movement-section { padding-top: 90px; }
  .possibilities-section { padding-bottom: 125px; }
  .stage-inner, .stage-inner--reverse { display: flex; flex-direction: column; align-items: stretch; gap: 22px; }
  .stage-copy { padding-right: clamp(44px, 10vw, 76px); }
  .stage-inner--reverse .stage-copy { padding-right: 0; padding-left: clamp(44px, 10vw, 76px); text-align: right; }
  .stage-inner--reverse .stage-title, .stage-inner--reverse .stage-description { margin-left: auto; }
  .stage-title { max-width: 640px; margin-bottom: 25px; font-size: clamp(3.45rem, 11vw, 6.4rem); }
  .stage-description { max-width: 410px; }
  .stage-visual { width: min(100%, 500px); align-self: center; }
  .end-content { padding: 105px 0 115px; }
  .end-content h2 { font-size: clamp(4rem, 12vw, 7rem); }
  .end-halo { width: 85vw; }
}
@media (max-width: 480px) {
  .intro { min-height: 74svh; }
  .theme-toggle { top: 18px; right: 20px; padding: 9px 12px; font-size: .65rem; }
  .intro-content > p { font-size: 1.38rem; }
  .stage-title { font-size: clamp(3rem, 12.2vw, 4.2rem); }
  .stage-visual { width: 100%; }
  .possibilities-art { width: 104%; margin-left: -2%; }
  .site-footer { min-height: 95px; }
  .site-footer .footer-mark { width: 132px; }
  .site-footer span { font-size: .54rem; text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .intro-logo::after { background-position: 50% 50%; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .stage-artwork { transform: none !important; }
  .thread-progress { stroke-dashoffset: 0 !important; }
  .thread-pulse { display: none; }
  .movement-orbit-path { stroke-dashoffset: 0; }
  .movement-orbit-glint { display: none; }
  body { transition: none; }
}
