/*
Theme Name: Rutas Nocturnas
Theme URI: https://rutasmusicales.com
Author: Rutas Musicales
Description: Tema editorial para viajes, ciudades y cultura musical.
Version: 1.0.0
Text Domain: rutas-nocturnas
*/

:root {
  --ink: #11100e;
  --paper: #f2eee6;
  --cream: #fbf8f2;
  --muted: #746f67;
  --line: rgba(17,16,14,.15);
  --acid: #e8ff48;
  --coral: #ff5f45;
  --violet: #8b7bff;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(15,13,10,.13);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 9999; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; color: #fff; background: #000; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 100; color: #fff; background: rgba(17,16,14,.94); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; color: var(--ink); background: var(--acid); border-radius: 50% 50% 50% 8px; transform: rotate(-8deg); font-size: 19px; }
.brand-mark span { transform: rotate(8deg); }
.brand-name { display: block; font-size: 1rem; font-weight: 850; letter-spacing: .11em; line-height: 1; text-transform: uppercase; }
.brand-tag { display: block; margin-top: 5px; color: rgba(255,255,255,.62); font-size: .7rem; letter-spacing: .05em; }
.main-nav ul { display: flex; align-items: center; gap: 26px; margin: 0; padding: 0; list-style: none; }
.main-nav a { color: rgba(255,255,255,.8); font-size: .84rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--acid); }
.header-search { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; text-decoration: none; }
.menu-toggle { display: none; width: 42px; height: 42px; color: #fff; background: none; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; font-size: 20px; }

.hero { min-height: 650px; position: relative; display: grid; align-items: end; color: #fff; background: #171512; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.08); }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,9,8,.9) 0%, rgba(10,9,8,.48) 52%, rgba(10,9,8,.2) 100%), linear-gradient(0deg, rgba(10,9,8,.8), transparent 58%); }
.hero-content { position: relative; z-index: 1; max-width: 850px; padding: 110px 0 72px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--acid); font-size: .76rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: currentColor; }
.hero h1 { max-width: 830px; margin: 0; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 6.7rem); font-weight: 500; line-height: .92; letter-spacing: -.045em; }
.hero-deck { max-width: 650px; margin: 24px 0 30px; color: rgba(255,255,255,.78); font-size: clamp(1rem, 1.7vw, 1.2rem); }
.button { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; color: var(--ink); background: var(--acid); border: 1px solid var(--acid); border-radius: 999px; font-size: .8rem; font-weight: 850; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; transition: .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(232,255,72,.2); }
.button.dark { color: #fff; background: var(--ink); border-color: var(--ink); }
.button.ghost { color: inherit; background: transparent; border-color: currentColor; }
.hero-index { position: absolute; right: max(20px, calc((100vw - 1180px)/2)); bottom: 68px; z-index: 1; color: rgba(255,255,255,.42); font-family: var(--serif); font-size: 5.5rem; line-height: 1; }

.ticker { color: #fff; background: var(--coral); overflow: hidden; border-block: 1px solid rgba(0,0,0,.16); }
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker span { padding: 13px 24px; font-size: .73rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 48px; color: var(--ink); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 90px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-kicker { margin: 0 0 8px; color: var(--coral); font-size: .73rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.section-title { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.8rem); font-weight: 500; line-height: .98; letter-spacing: -.035em; }
.text-link { flex: none; font-size: .78rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.route-card { min-height: 270px; position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 26px; border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); transition: transform .25s ease; }
.route-card:hover { transform: translateY(-7px); }
.route-card:nth-child(1) { background: var(--acid); }
.route-card:nth-child(2) { color: #fff; background: var(--violet); }
.route-card:nth-child(3) { color: #fff; background: var(--coral); }
.route-icon { font-size: 2.2rem; }
.route-count { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .65; }
.route-card h3 { max-width: 260px; margin: 0; font-family: var(--serif); font-size: 2.35rem; font-weight: 500; line-height: .98; }
.route-arrow { align-self: end; display: grid; place-items: center; width: 45px; height: 45px; border: 1px solid currentColor; border-radius: 50%; font-size: 1.2rem; }

.stories { background: var(--cream); }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.story-card { grid-column: span 4; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 38px rgba(20,18,15,.08); }
.story-card:first-child { grid-column: span 8; }
.story-image { display: block; aspect-ratio: 16/10; background: #d8d2c7; overflow: hidden; }
.story-card:first-child .story-image { aspect-ratio: 16/8.1; }
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.story-card:hover .story-image img { transform: scale(1.035); }
.story-copy { padding: 24px; }
.story-meta { display: flex; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-meta a { color: var(--coral); text-decoration: none; }
.story-card h3 { margin: 0 0 13px; font-family: var(--serif); font-size: clamp(1.55rem, 2.7vw, 2.3rem); font-weight: 500; line-height: 1.04; }
.story-card h3 a { text-decoration: none; }
.story-card p { margin: 0; color: var(--muted); font-size: .92rem; }

.manifesto { color: #fff; background: var(--ink); }
.manifesto-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.manifesto-number { color: var(--acid); font-family: var(--serif); font-size: clamp(8rem, 18vw, 15rem); line-height: .75; opacity: .95; }
.manifesto h2 { margin: 0 0 22px; font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.6rem); font-weight: 500; line-height: .98; }
.manifesto p { max-width: 660px; color: rgba(255,255,255,.67); font-size: 1.05rem; }

.archive-hero { padding: 100px 0 55px; background: var(--cream); border-bottom: 1px solid var(--line); }
.archive-hero h1 { max-width: 900px; margin: 0; font-family: var(--serif); font-size: clamp(3.1rem, 7vw, 6rem); font-weight: 500; line-height: .95; letter-spacing: -.04em; }
.archive-hero p { max-width: 670px; margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.archive-card { background: var(--cream); border-bottom: 2px solid var(--ink); }
.archive-card .story-image { border-radius: 14px; }
.archive-card .story-copy { padding: 22px 0 26px; }
.pagination { margin-top: 50px; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.page-numbers.current { color: var(--ink); background: var(--acid); border-color: var(--acid); }

.article-hero { position: relative; color: #fff; background: var(--ink); }
.article-hero-grid { min-height: 610px; display: grid; grid-template-columns: 1.03fr .97fr; }
.article-heading { display: flex; flex-direction: column; justify-content: end; padding: 80px max(38px, calc((100vw - 1180px)/2)) 62px max(20px, calc((100vw - 1180px)/2)); }
.article-heading h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(3rem, 5.7vw, 5.7rem); font-weight: 500; line-height: .94; letter-spacing: -.045em; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 28px; color: rgba(255,255,255,.62); font-size: .72rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.article-visual { min-height: 510px; }
.article-visual img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 70px; justify-content: center; align-items: start; padding: 75px 0 90px; }
.entry-content { font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.28rem); line-height: 1.76; }
.entry-content > * { max-width: 760px; }
.entry-content > p:first-child { font-size: 1.28em; line-height: 1.55; }
.entry-content h2, .entry-content h3 { margin: 2.15em 0 .65em; font-family: var(--sans); line-height: 1.12; letter-spacing: -.025em; }
.entry-content h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
.entry-content h3 { font-size: 1.55rem; }
.entry-content a { text-decoration-color: var(--coral); text-decoration-thickness: 2px; }
.entry-content figure, .entry-content img { border-radius: 14px; }
.entry-content blockquote { margin: 2em 0; padding: .3em 0 .3em 28px; border-left: 4px solid var(--coral); font-size: 1.35em; font-style: italic; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.article-aside { position: sticky; top: 110px; font-size: .82rem; }
.aside-label { margin-bottom: 12px; color: var(--muted); font-size: .68rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.share-links { display: flex; gap: 8px; }
.share-links a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; font-weight: 800; text-decoration: none; }
.article-aside hr { margin: 26px 0; border: 0; border-top: 1px solid var(--line); }
.article-aside a { font-weight: 750; }
.author-box { margin-top: 55px; padding: 28px; background: var(--acid); border-radius: var(--radius); font-family: var(--sans); }
.author-box strong { display: block; margin-bottom: 5px; font-size: 1.15rem; }
.author-box p { margin: 0; font-size: .9rem; }
.comments-area { margin-top: 55px; padding-top: 40px; border-top: 1px solid var(--line); font-family: var(--sans); }
.comments-area h2, .comment-reply-title { font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.comment-list { padding-left: 20px; }
.comment-form textarea { width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.form-submit .submit { padding: 12px 18px; color: var(--ink); background: var(--acid); border: 0; border-radius: 999px; font-weight: 800; }
.related { padding: 75px 0 90px; background: var(--cream); }

.page-shell { max-width: 830px; margin: 0 auto; padding: 85px 20px 100px; }
.page-shell h1 { margin: 0 0 35px; font-family: var(--serif); font-size: clamp(3rem, 7vw, 5.5rem); font-weight: 500; line-height: .95; }
.search-form { display: flex; gap: 8px; max-width: 560px; }
.search-field { width: 100%; padding: 14px 17px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font: inherit; }
.search-submit { padding: 12px 20px; color: var(--ink); background: var(--acid); border: 0; border-radius: 999px; font-weight: 800; }

.site-footer { color: #fff; background: #0b0a09; }
.footer-main { display: grid; grid-template-columns: 1.4fr .6fr .6fr; gap: 60px; padding: 75px 0 55px; }
.footer-main h2 { max-width: 560px; margin: 18px 0 0; font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 4.4rem); font-weight: 500; line-height: .98; }
.footer-label { color: var(--acid); font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.footer-links { margin: 20px 0 0; padding: 0; list-style: none; }
.footer-links li { margin: 9px 0; }
.footer-links a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; color: rgba(255,255,255,.45); border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .main-nav { position: fixed; inset: 78px 0 auto; display: none; padding: 28px 20px 36px; background: var(--ink); border-top: 1px solid rgba(255,255,255,.1); }
  .main-nav.open { display: block; }
  