/*
Theme Name: Pulso
Theme URI: https://musicpulse.site/
Author: MusicPulse
Description: Tema propio de MusicPulse, guías para músicos independientes: registrar, publicar y cobrar tu música.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: pulso
*/

:root {
	--tinta: #17131F;
	--tinta-2: #231D2E;
	--papel: #FBF8F3;
	--crema: #F3ECE1;
	--linea: #E4DCCF;
	--texto: #2A2533;
	--gris: #6A6474;
	--pulso: #E4472D;
	--pulso-osc: #B53420;
	--registra: #D9412A;
	--publica: #4450C8;
	--cobra: #17866A;
	--resuelve: #B8700E;
	--ok: #17866A;
	--aviso: #B8700E;
	--radio: 14px;
	--ancho: 1160px;
	--estrecho: 740px;
	--titulos: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
	--cuerpo: "Inter", "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--papel);
	color: var(--texto);
	font-family: var(--cuerpo);
	font-size: 17px;
	line-height: 1.7;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pulso-osc); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--pulso); }
h1, h2, h3, h4 { font-family: var(--titulos); color: var(--tinta); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1.1em; }
.wrap { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: var(--estrecho); }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ---------- Cabecera ---------- */
.site-header { background: var(--papel); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); }
.brand:hover { color: var(--tinta); }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-family: var(--titulos); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name span { color: var(--pulso); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.site-nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--texto); font-weight: 600; font-size: .95rem; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current-cat > a { background: var(--crema); color: var(--tinta); }
.site-nav .nav-cta a { background: var(--tinta); color: #fff; }
.site-nav .nav-cta a:hover { background: var(--pulso); color: #fff; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; cursor: pointer; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--linea); background: #fff; align-items: center; justify-content: center; }
.nav-btn span, .nav-btn span::before, .nav-btn span::after { display: block; width: 20px; height: 2px; background: var(--tinta); position: relative; content: ""; transition: transform .2s; }
.nav-btn span::before { position: absolute; top: -6px; }
.nav-btn span::after { position: absolute; top: 6px; }

@media (max-width: 900px) {
	.nav-btn { display: flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--papel); border-bottom: 1px solid var(--linea); box-shadow: 0 12px 24px rgba(23,19,31,.08); }
	.site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 2px; }
	.site-nav a { border-radius: 10px; padding: 12px 14px; font-size: 1.05rem; }
	.nav-toggle:checked ~ .site-nav { display: block; }
	.nav-toggle:checked ~ .nav-btn span { background: transparent; }
	.nav-toggle:checked ~ .nav-btn span::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle:checked ~ .nav-btn span::after { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Portada ---------- */
.hero { background: var(--tinta); color: #EDE7F3; position: relative; overflow: hidden; }
.hero-in { padding: 72px 20px 88px; position: relative; z-index: 2; }
.hero .eyebrow { color: #FFB3A5; }
.hero h1 { color: #fff; max-width: 17ch; }
.hero h1 em { font-style: normal; color: var(--pulso); }
.hero-sub { font-size: 1.15rem; max-width: 58ch; color: #CFC7DA; }
.hero-pulse { position: absolute; left: 0; right: 0; bottom: 18px; width: 100%; height: 90px; z-index: 1; opacity: .9; }
.hero-pulse path { fill: none; stroke: var(--pulso); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.hero-search { margin-top: 28px; display: flex; gap: 8px; max-width: 560px; }
.hero-search input { flex: 1; min-width: 0; font: inherit; padding: 14px 16px; border-radius: 12px; border: 1px solid #3A3247; background: var(--tinta-2); color: #fff; }
.hero-search input::placeholder { color: #9C93AA; }
.hero-search button, .btn { font: inherit; font-weight: 700; padding: 14px 20px; border-radius: 12px; border: 0; background: var(--pulso); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
.hero-search button:hover, .btn:hover { background: var(--pulso-osc); color: #fff; }
.eyebrow { font-family: var(--cuerpo); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pulso-osc); margin: 0 0 12px; }

.section { padding: 72px 0; }
.section.alt { background: var(--crema); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head p { color: var(--gris); font-size: 1.05rem; }

.ruta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.ruta-paso { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 24px 22px 22px; text-decoration: none; color: var(--texto); position: relative; transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.ruta-paso:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,19,31,.09); color: var(--texto); }
.ruta-num { font-family: var(--titulos); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--c, var(--pulso)); }
.ruta-paso h3 { margin: 10px 0 6px; }
.ruta-paso p { color: var(--gris); font-size: .96rem; margin: 0 0 14px; flex: 1; }
.ruta-meta { font-size: .85rem; font-weight: 700; color: var(--c, var(--pulso)); }
.ruta-paso::before { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: var(--c, var(--pulso)); }

.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--linea); border-radius: var(--radio); background: #fff; margin: 0 0 1.5em; }
.tabla-wrap table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: .95rem; }
.tabla-wrap th, .tabla-wrap td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla-wrap th { background: var(--tinta); color: #fff; font-family: var(--titulos); font-weight: 700; font-size: .92rem; }
.tabla-wrap tr:last-child td { border-bottom: 0; }
.tabla-wrap td strong { color: var(--tinta); }
.nota-tabla { font-size: .88rem; color: var(--gris); }

.problemas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.problemas a { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; background: #fff; border: 1px solid var(--linea); border-left: 4px solid var(--resuelve); border-radius: 12px; text-decoration: none; color: var(--texto); }
.problemas a:hover { border-color: var(--resuelve); color: var(--texto); }
.problemas .q { font-family: var(--titulos); font-weight: 700; color: var(--tinta); display: block; font-size: 1.05rem; line-height: 1.3; }
.problemas .r { font-size: .92rem; color: var(--gris); display: block; margin-top: 4px; line-height: 1.5; }

.grid-guias { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(23,19,31,.09); }
.card-img { aspect-ratio: 1200 / 630; background: var(--tinta); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 1.12rem; margin: 8px 0 8px; line-height: 1.3; }
.card h3 a { color: var(--tinta); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { font-size: .93rem; color: var(--gris); margin: 0; line-height: 1.55; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--crema); color: var(--tinta); text-decoration: none; position: relative; z-index: 2; }
.tag.sec { background: var(--c, var(--pulso)); color: #fff; }
.tag.sec:hover { color: #fff; opacity: .9; }

.confianza { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.confianza div { border-top: 3px solid var(--tinta); padding-top: 16px; }
.confianza h3 { font-size: 1.1rem; }
.confianza p { color: var(--gris); font-size: .96rem; }

/* ---------- Guía ---------- */
.migas { font-size: .88rem; color: var(--gris); margin: 34px 0 18px; }
.migas a { color: var(--gris); text-decoration: none; }
.migas a:hover { color: var(--pulso-osc); }
.migas span { margin: 0 6px; }
.entry-head { padding-bottom: 8px; }
.entry-head .tags { margin-bottom: 14px; }
.dek { font-size: 1.2rem; color: var(--gris); line-height: 1.55; margin: 0 0 16px; }
.entry-meta { font-size: .88rem; color: var(--gris); display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); }
.entry-meta strong { color: var(--tinta); }
.entry-media { margin: 26px 0 8px; }
.entry-media img { border-radius: var(--radio); width: 100%; }
.entry-content { padding: 20px 0 10px; }
.entry-content h2 { margin-top: 1.8em; font-size: 1.6rem; }
.entry-content h2::before { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--c, var(--pulso)); margin-bottom: 14px; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .45em; }
.entry-content blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--pulso); font-size: 1.1rem; color: var(--tinta); }

.ficha { background: #fff; border: 1px solid var(--linea); border-radius: var(--radio); padding: 20px 22px; margin: 0 0 1.6em; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.ficha div { border-left: 3px solid var(--c, var(--pulso)); padding-left: 12px; }
.ficha b { display: block; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.ficha span { display: block; font-family: var(--titulos); font-weight: 700; color: var(--tinta); font-size: 1.05rem; line-height: 1.35; }

ol.pasos { list-style: none; counter-reset: paso; padding: 0; margin: 0 0 1.5em; }
ol.pasos > li { counter-increment: paso; position: relative; padding: 2px 0 14px 54px; margin: 0; }
ol.pasos > li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--tinta); color: #fff; font-family: var(--titulos); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
ol.pasos > li::after { content: ""; position: absolute; left: 17px; top: 40px; bottom: 2px; width: 2px; background: var(--linea); }
ol.pasos > li:last-child::after { display: none; }

.aviso, .dato, .ok { border-radius: 12px; padding: 16px 18px 4px; margin: 0 0 1.4em; border: 1px solid; }
.aviso { background: #FFF6E6; border-color: #F1D29B; }
.dato { background: #F1F2FF; border-color: #C9CDF5; }
.ok { background: #EAF6F1; border-color: #B7DFCF; }
.aviso > strong:first-child, .dato > strong:first-child, .ok > strong:first-child { display: block; font-family: var(--titulos); color: var(--tinta); margin-bottom: 4px; }

.faq { margin: 2em 0 1em; }
.faq-item { background: #fff; border: 1px solid var(--linea); border-radius: 12px; margin-bottom: 10px; padding: 0 18px; }
.faq-item summary { cursor: pointer; font-family: var(--titulos); font-weight: 700; color: var(--tinta); padding: 14px 0; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--pulso); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0 0 14px; }

.fuentes { font-size: .9rem; color: var(--gris); border-top: 1px solid var(--linea); padding-top: 14px; margin-top: 2em; }
.fuentes h2 { font-size: 1.05rem; margin-top: 0; }
.fuentes h2::before { display: none; }
.fuentes ul { padding-left: 1.1em; }

.verificamos { background: var(--crema); border-radius: var(--radio); padding: 20px 22px; margin: 28px 0; font-size: .95rem; }
.verificamos h2 { font-size: 1.1rem; margin: 0 0 6px; }
.relacionadas { padding: 20px 0 60px; }
.relacionadas h2 { font-size: 1.4rem; }
.relacionadas .grid-guias { grid-template-columns: repeat(3, 1fr); }

/* ---------- Archivo y páginas ---------- */
.archive-head { background: var(--tinta); color: #CFC7DA; padding: 56px 0 50px; }
.archive-head h1 { color: #fff; }
.archive-head p { max-width: 62ch; font-size: 1.1rem; margin: 0; }
.archive-head .eyebrow { color: #FFB3A5; }
.page-simple { padding: 40px 0 70px; }
.page-simple h1 { margin-top: 10px; }
.paginacion { margin-top: 36px; display: flex; gap: 8px; flex-wrap: wrap; }
.paginacion a, .paginacion span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--linea); text-decoration: none; background: #fff; }
.paginacion .current { background: var(--tinta); color: #fff; }
.buscador { display: flex; gap: 8px; max-width: 560px; margin: 20px 0; }
.buscador input { flex: 1; min-width: 0; font: inherit; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--linea); background: #fff; }

/* ---------- Pie ---------- */
.site-footer { background: var(--tinta); color: #BDB4C9; padding: 56px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #E4DDEE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.footer-legal { border-top: 1px solid #332B40; margin-top: 36px; padding-top: 20px; font-size: .85rem; color: #968CA5; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
	.ruta { grid-template-columns: repeat(2, 1fr); }
	.grid-guias, .relacionadas .grid-guias { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	body { font-size: 16.5px; }
	.wrap { padding: 0 16px; }
	.hero-in { padding: 48px 16px 92px; }
	.hero-search { flex-direction: column; }
	.section { padding: 52px 0; }
	.ruta, .grid-guias, .relacionadas .grid-guias, .problemas, .confianza, .footer-grid { grid-template-columns: 1fr; }
	.ficha { grid-template-columns: 1fr; }
	.entry-content h2 { font-size: 1.4rem; }
}
