/* Parque Taoísta Sanfeng — misma paleta y tipografía del sitio original (wudang-chile-site) */
:root {
    --background: #ffffff;            /* el cliente pidió fondo blanco */
    --foreground: hsl(30 10% 15%);
    --muted-foreground: hsl(30 8% 45%);
    --forest: hsl(145 30% 25%);
    --forest-soft: hsl(145 25% 30%);
    --gold: hsl(40 60% 50%);
    --gold-muted: hsl(38 35% 60%);
    --stone: hsl(30 8% 50%);
    --paper: hsl(40 30% 96%);
    --border: hsl(30 15% 86%);
    --shadow-zen: 0 4px 30px hsl(30 10% 15% / 0.06);
    --radius: 0.5rem;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --font-chinese: "Noto Serif SC", "Songti SC", serif;
    --header-h: 4.5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--background);
    color: var(--foreground);
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-chinese); font-weight: 400; line-height: 1.3; margin: 0 0 .5em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: 56rem; margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: .5rem; background: var(--forest); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: .5rem; }

/* ---------- Header / menú ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: hsl(0 0% 100% / .94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
}
.header-inner { max-width: 80rem; display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--forest); }
.brand-symbol { width: 2.25rem; height: 2.25rem; flex: none; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-chinese); font-size: 1rem; letter-spacing: .04em; line-height: 1.2; }
.brand-zh { color: var(--gold); font-size: .8rem; letter-spacing: .35em; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.main-nav a {
    font-family: var(--font-chinese); font-size: .95rem; color: var(--foreground);
    text-decoration: none; padding: .35rem 0; border-bottom: 1px solid transparent;
    transition: color .2s, border-color .2s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--forest); border-bottom-color: var(--gold-muted); }

.menu-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.menu-toggle span { display: block; width: 1.5rem; height: 2px; background: var(--forest); margin: 5px 0; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .menu-toggle { display: block; }
    .main-nav {
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--border);
        display: none; box-shadow: var(--shadow-zen);
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; padding: .5rem 1.25rem 1rem; }
    .main-nav li + li { border-top: 1px solid var(--border); }
    .main-nav a { display: block; padding: .8rem 0; border: 0; }
}

/* ---------- Cabecera de página ---------- */
.hero { background: #111; }
.hero-image { width: 100%; max-height: calc(100vh - var(--header-h)); object-fit: cover; }
.page-intro { text-align: center; padding: 3.5rem 1.25rem 1rem; }
.display { font-size: clamp(1.9rem, 4.5vw, 3rem); color: var(--forest); letter-spacing: .02em; }
.lead { font-size: 1.4rem; color: var(--muted-foreground); }

/* ---------- Bloques ---------- */
.stream { padding-bottom: 3rem; }
.stream > section { padding: 3.5rem 0; text-align: center; }
.stream > section + section { border-top: 1px solid hsl(30 15% 92%); }

.pretitle { font-family: var(--font-chinese); color: var(--gold); font-size: 1.15rem; margin: 0 0 1.5rem; }
.title { font-size: clamp(1.6rem, 3.6vw, 2.25rem); color: var(--forest); margin-bottom: .75rem; }

.feature-figure { margin: 0 auto 2.25rem; }
.feature-figure img { margin: 0 auto; border-radius: var(--radius); box-shadow: 0 20px 60px hsl(30 10% 15% / .1); }
.feature-figure figcaption { font-size: 1rem; color: var(--stone); margin-top: .6rem; font-style: italic; }

.divider { display: flex; align-items: center; justify-content: center; gap: 1rem; margin: 0 auto 1.75rem; }
.divider span { height: 1px; width: 4rem; background: linear-gradient(to right, transparent, var(--gold-muted)); }
.divider span:last-child { transform: scaleX(-1); }
.divider i { width: 6px; height: 6px; background: var(--gold-muted); transform: rotate(45deg); }

.prose { max-width: 40rem; margin: 0 auto; }
.prose p { margin: 0 0 1.1em; }
.prose h3, .prose h4 { color: var(--forest); font-size: 1.35rem; margin-top: 1.5em; }
.prose ul, .prose ol { list-style: none; padding: 0; margin: 0 0 1.2em; }
.prose li { padding: .45rem 0; }
.prose li::before { content: "·"; color: var(--gold); font-weight: 600; margin-right: .5rem; }
.prose b, .prose strong { color: var(--forest); font-weight: 600; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2rem auto; width: 50%; }

.links { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1rem; justify-items: center; }
.links a {
    display: inline-block; font-family: var(--font-chinese); font-size: 1.05rem;
    color: var(--forest); text-decoration: none;
    border: 1px solid var(--gold-muted); border-radius: 999px; padding: .6rem 1.5rem;
    transition: background .2s, color .2s;
}
.links a:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.links small { display: block; color: var(--stone); font-size: .95rem; margin-top: .35rem; }
.footnote { font-size: 1rem; color: var(--stone); font-style: italic; margin-top: 1.5rem; }

.section-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.section-links a {
    display: flex; align-items: center; justify-content: center; min-height: 6rem; padding: 1rem;
    font-family: var(--font-chinese); font-size: 1.3rem; text-decoration: none; color: var(--forest);
    background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .25s, box-shadow .25s, color .25s;
}
.section-links a:hover { color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-zen); }

.notice-card { border: 1px solid var(--gold-muted); border-radius: var(--radius); padding: 2.5rem 1.5rem; background: var(--paper); box-shadow: var(--shadow-zen); }
.notice-title { font-size: clamp(1.5rem, 4vw, 2.2rem); letter-spacing: .3em; color: var(--gold); }

.map-address { font-size: 1.3rem; color: var(--stone); }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-zen); margin-top: 1rem; }
.map-frame iframe { display: block; width: 100%; height: 22rem; border: 0; }
.map-link { font-size: 1rem; color: var(--muted-foreground); }

.timeline-list { list-style: none; margin: 0 auto; padding: 0; max-width: 40rem; position: relative; }
.timeline-list li { position: relative; padding: 0 0 2rem; }
.timeline-list li + li::before { content: ""; display: block; width: 1px; height: 2rem; background: var(--gold-muted); margin: 0 auto 1.5rem; }
.timeline-period { display: inline-block; font-family: var(--font-chinese); color: #fff; background: var(--forest); border-radius: 999px; padding: .3rem 1.2rem; margin-bottom: 1rem; }

.error-page { text-align: center; padding: 6rem 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--border); padding: 3rem 0 2rem; text-align: center; font-size: 1.05rem; }
.site-footer ul { list-style: none; padding: 0; margin: .75rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; }
.footer-address a { color: var(--foreground); }
.footer-motto { font-family: var(--font-chinese); color: var(--gold); letter-spacing: .3em; margin: 1.5rem 0 .5rem; }
.footer-copy { color: var(--stone); font-size: .9rem; margin: 0; }

/* ---------- Animación de aparición ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s ease-out, transform 1s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 640px) {
    body { font-size: 1.15rem; }
    .stream > section { padding: 2.5rem 0; }
    .map-frame iframe { height: 18rem; }
}
