/*
Theme Name: Música FAQ
Description: Revista independiente de audio, instrumentos y grabación.
Version: 1.3.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: musica-faq
*/

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("assets/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --paper: #171215;
  --panel: #241a1e;
  --ink: #f8eee3;
  --muted: #d0c1b8;
  --line: #4d3936;
  --signal: #e7c184;
  --signal-bright: #f3d4a2;
  --dark: #100c0e;
  --button-ink: #251912;
  --measure: 1256px;
  --sans: Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(ellipse 70% 38rem at 95% 16rem, #2b1a23 0%, transparent 100%), var(--paper); font: 16px/1.62 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; line-height: .98; }
h1 { font-size: clamp(2.55rem, 6.4vw, 6.1rem); }
h2 { font-size: clamp(2rem, 4vw, 3.9rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p + p { margin-top: 1em; }

.wrap { width: min(var(--measure), calc(100% - 72px)); margin-inline: auto; }
.skip { position: absolute; top: 0; left: 1rem; transform: translateY(-200%); background: var(--paper); padding: .8rem; z-index: 20; }
.skip:focus { transform: none; }
.masthead { padding: .95rem 0; background: linear-gradient(105deg, #100c0e, #20151b); border-bottom: 1px solid var(--line); }
.masthead__inner { display: flex; align-items: center; justify-content: space-between; gap: .85rem 2.5rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .75rem; color: inherit; text-decoration: none; white-space: nowrap; }
.brand__mark { width: 48px; height: 48px; }
.brand__name { font: italic 400 3.5rem/.9 var(--serif); letter-spacing: -.025em; }
.brand__edition { border-left: 1px solid #866446; padding-left: .7rem; margin-left: .18rem; font: 650 .7rem/1.4 var(--sans); letter-spacing: .22em; color: var(--signal); }
.nav { display: flex; gap: clamp(.85rem, 2vw, 1.85rem); flex-wrap: wrap; align-items: center; }
.nav a { font-size: .82rem; text-decoration: none; font-weight: 550; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--signal); text-decoration: underline; }
.masthead__mobile { display: none; }
.search-link { font-size: .85rem; text-decoration: none; margin-left: auto; }
.eyebrow { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase; color: var(--signal); }
.section { padding-block: clamp(2.9rem, 7vw, 6.2rem); }
.section-head { display: flex; gap: 1.5rem; align-items: end; justify-content: space-between; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.section-head a { white-space: nowrap; font-size: .88rem; font-weight: 650; color: var(--signal); }
.intro { color: var(--muted); max-width: 58ch; font-size: clamp(1rem, 1.25vw, 1.17rem); }
.lead { font-size: clamp(1.12rem, 1.6vw, 1.32rem); max-width: 58ch; }

.cover { min-height: clamp(37rem, 48vw, 48rem); position: relative; display: grid; isolation: isolate; align-items: center; overflow: hidden; background: var(--dark); border-bottom: 1px solid var(--line); }
.cover__inner { position: relative; }
.cover__text { max-width: 40rem; padding: 4rem 0; }
.cover__label { display: flex; align-items: center; gap: .7rem; color: var(--signal); margin-bottom: 1.4rem; }
.cover__label::before { content: ""; flex: 0 0 1.8rem; height: 1px; background: currentColor; }
.cover h1 { font-size: clamp(4.8rem, 8.9vw, 9.65rem); letter-spacing: -.038em; line-height: .85; }
.cover h1 em { display: block; color: var(--signal); font-weight: 400; }
.cover .intro { max-width: 36ch; margin-top: 1.65rem; }
.cover__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.3rem; margin-top: 1.55rem; }
.cover__link { display: inline-flex; align-items: center; gap: 1.7rem; padding: .8rem 1.1rem; min-height: 44px; background: linear-gradient(125deg, #f0ce96, #bd935a); color: var(--button-ink); font-size: .83rem; font-weight: 700; text-decoration: none; }
.cover__link:hover { background: var(--signal-bright); }
.cover__guide { font-size: .84rem; font-weight: 600; color: var(--ink); text-decoration: none; padding: .5rem 0; }
.cover__guide span { margin-left: .3rem; color: var(--signal); }
.cover__guide:hover { text-decoration: underline; }
.cover__figure, .studio-band__figure { position: absolute; inset: 0; z-index: -2; margin: 0; }
.cover__image, .studio-band__image { width: 100%; height: 100%; object-fit: cover; }
.cover__image { object-position: center 56%; }
.cover::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #100c0e 0%, #100c0eea 18%, #100c0e91 45%, transparent 74%), linear-gradient(0deg, #100c0ec4, transparent 25%); }
.cover-search { margin-top: 1.6rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
.cover-search .search-form { margin: 0; width: min(100%, 570px); }
.search-form { display: flex; align-items: stretch; gap: 0; margin-top: 1.6rem; }
.search-form input { min-width: 0; width: 100%; border: 1px solid var(--line); background: #1e151a; color: var(--ink); padding: .72rem .85rem; border-radius: 0; }
.search-form input::placeholder { color: #baaaa1; }
.search-form button { padding: .65rem 1.05rem; border: 1px solid #8c6e50; background: #302120; color: var(--signal); font-weight: 650; }
.search-form button:hover { background: var(--signal); color: var(--button-ink); border-color: var(--signal); }
.topic-grid, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.topic { display: grid; border-bottom: 1px solid var(--line); text-decoration: none; }
.topic img { aspect-ratio: 3/2; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.topic strong { font-family: var(--serif); font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 400; padding: .62rem 0; }
.topic:hover strong { color: var(--signal); }
.wide-band { background: linear-gradient(115deg, #20161b, #2d1e23 70%, #25191b); border-block: 1px solid var(--line); }
.card { background: linear-gradient(155deg, #2a1e25, #1d151a); border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; min-width: 0; }
.card:hover { border-color: #8b684f; }
.card:hover h3, .answer-row:hover strong { color: var(--signal); }
.card__image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--panel); }
.card--product .card__image { object-fit: contain; padding: .6rem; background: #fff; }
.card__text { padding: 1.25rem; display: grid; gap: .55rem; }
.card__text h3 { font: 400 clamp(1.75rem, 2.35vw, 2.5rem)/1.02 var(--serif); }
.card__text p { color: var(--muted); font-size: .92rem; }
.answer-list { display: grid; }
.answer-row { display: grid; grid-template-columns: 12.5rem 1fr auto; gap: .5rem 1.5rem; align-items: baseline; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.answer-row strong { font-size: clamp(1rem, 1.35vw, 1.2rem); }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.studio-band { position: relative; isolation: isolate; overflow: hidden; background: var(--dark); border-block: 1px solid var(--line); }
.studio-band::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #150e13f5 2%, #150e13d8 37%, #150e13bc 100%); }
.studio-band__image { object-position: center 57%; }
.studio-band h2 { max-width: 14ch; }
.studio-band .intro { margin: 1.1rem 0; }
.studio-band .inline-link { color: var(--signal); }
.studio-band .answer-list { background: #170f15be; padding: .25rem clamp(.95rem, 2vw, 1.5rem); border: 1px solid #654940; }
.studio-band .answer-row { grid-template-columns: minmax(6rem, .62fr) minmax(0, 1fr) auto; }
.studio-band .answer-row:last-child { border-bottom: 0; }
.site-footer { background: var(--dark); color: var(--ink); border-top: 1px solid var(--line); margin-top: 2.5rem; padding: 2.2rem 0; }
.site-footer__grid { display: flex; justify-content: space-between; align-items: start; gap: 1rem 2rem; flex-wrap: wrap; }
.site-footer p { max-width: 54ch; font-size: .91rem; color: #e4d8cb; }
.footer-brand { display: inline-block; margin-bottom: .45rem; font: 400 2.55rem/1 var(--serif); text-decoration: none; }
.site-footer a { text-underline-offset: .26em; }
.breadcrumbs { margin: 1.2rem 0; font-size: .86rem; color: var(--muted); }
.page-title { padding: clamp(2rem, 5vw, 4rem) 0 1.7rem; }
.archive-grid > .page-title { padding: clamp(1.5rem, 4.5vw, 4.2rem); margin: clamp(1.4rem, 4vw, 3.1rem) 0 1.65rem; border: 1px solid var(--line); background: linear-gradient(92deg, #1a1218f7 8%, #21161bc7 54%, #150d0f75), url("assets/estudio-analogico-640.webp") center 43% / cover; }
.page-title .intro { margin-top: .8rem; }
.page-title .eyebrow { margin-bottom: .8rem; }
.archive-grid { padding-bottom: 3rem; }
.pagination { padding: 1.4rem 0; }
.pagination .nav-links { display: flex; gap: .8rem; flex-wrap: wrap; }
.brand-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .6rem; }
.brand-list a { display: flex; min-height: 44px; justify-content: space-between; align-items: center; gap: .5rem; padding: .54rem .82rem; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.brand-list small { color: var(--muted); }
.brand-list a:hover { box-shadow: inset 0 -2px var(--signal); }

.product-head { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(1.4rem, 5vw, 4.4rem); align-items: start; }
.product-panel { padding: clamp(1.05rem, 3.2vw, 2.4rem); border: 1px solid var(--line); border-top-color: #ba925f; background: linear-gradient(144deg, #302027, #1d151b 80%); }
.product-panel h1 { font-size: clamp(2.55rem, 4.8vw, 4.9rem); margin: .55rem 0 1rem; overflow-wrap: break-word; }
.product-panel .intro { margin-top: 1rem; font-size: .98rem; }
.purchase { display: flex; justify-content: space-between; align-items: center; gap: .8rem; width: 100%; min-height: 3.1rem; background: linear-gradient(126deg, #f0ce96, #d0aa72); color: var(--button-ink); padding: .72rem .95rem; font-weight: 750; text-decoration: none; }
.purchase:hover { background: var(--signal-bright); }
.price { font-size: 1.3rem; font-weight: 800; margin-bottom: .6rem; }
.specstrip { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding-top: .65rem; font-size: .78rem; color: var(--muted); }
.gallery { min-width: 0; }
.gallery__track { display: flex; overflow: auto; scrollbar-width: none; scroll-snap-type: x mandatory; background: #fff; border: 1px solid var(--line); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { display: block; flex: 0 0 100%; scroll-snap-align: start; background: #fff; min-width: 0; }
.gallery__slide img { width: 100%; aspect-ratio: 5/4; object-fit: contain; }
.gallery__controls { display: flex; justify-content: center; align-items: center; gap: .75rem; padding: .75rem; }
.gallery__controls button, .lightbox button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); min-width: 44px; min-height: 44px; }
.gallery__controls button:disabled { opacity: .4; cursor: default; }
.lightbox { border: 0; padding: 1rem; max-width: min(920px, 96vw); background: var(--paper); }
.lightbox::backdrop { background: #181b16df; }
.lightbox img { max-height: 73vh; object-fit: contain; margin: auto; }
.product-main { max-width: 860px; margin: 2.75rem auto 0; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.5rem 0 2.4rem; }
.pros-cons > section { padding: 1rem; background: var(--panel); border-top: 1px solid #a2835f; }
.pros-cons ul { padding-left: 1.1rem; }
.product-main h2 { margin-top: 1.8rem; margin-bottom: .7rem; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.product-main dl { margin: 1rem 0; }
.product-main dl div { display: grid; grid-template-columns: .65fr 1fr; gap: 1rem; border-bottom: 1px solid var(--line); padding: .6rem 0; }
.product-main dt { font-weight: 700; }
.product-main dd { margin: 0; }
.product-main details { border-bottom: 1px solid var(--line); padding: .72rem 0; }
.product-main details p { margin-top: .65rem; }
summary { font-weight: 750; cursor: pointer; }
.video { margin-top: 1.45rem; }
.video iframe { aspect-ratio: 16/9; display: block; width: 100%; border: 0; }

.article-header { max-width: 900px; margin: 0 auto; padding: 2rem 0; }
.article-header h1 { font-size: clamp(2.45rem, 5.4vw, 5.3rem); }
.article-header .eyebrow, .article-header .lead { margin-bottom: .7rem; }
.article-header .lead { margin-top: 1rem; }
.article-cover { width: 100%; aspect-ratio: 2.1; object-fit: cover; }
.prose { width: min(100%, 72ch); margin: 2rem auto 4rem; font-size: 1.08rem; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.8rem); margin-top: 1.5em; }
.prose h3 { margin-top: 1.4em; }
.prose figure { margin: 1.65rem 0; }
.prose figcaption { color: var(--muted); font-size: .85rem; margin-top: .35rem; }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: .45rem; border: 1px solid var(--line); text-align: left; }
.inline-link { font-weight: 750; }
.inquiry { display: grid; gap: .8rem; max-width: 35rem; }
.inquiry label { display: grid; gap: .28rem; font-weight: 750; }
.inquiry input, .inquiry textarea { font: inherit; width: 100%; background: var(--panel); border: 1px solid var(--line); padding: .6rem; color: var(--ink); }
.inquiry button { justify-self: start; border: 0; min-height: 44px; padding: .6rem 1rem; font-weight: 750; color: var(--button-ink); background: var(--signal); }

@media (max-width: 850px) {
  .wrap { width: calc(100% - 36px); }
  .cover h1 { font-size: clamp(4.2rem, 10vw, 6rem); }
  .nav { gap: .65rem; }
  .nav a { font-size: .83rem; }
  .card__text { padding: .9rem; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .masthead { position: relative; z-index: 2; padding: .56rem 0; }
  .masthead__inner { gap: .8rem; }
  .brand { gap: .48rem; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 2.65rem; }
  .brand__edition { margin-left: 0; padding-left: .45rem; font-size: .63rem; }
  .masthead__nav { display: none; }
  .masthead__mobile { display: block; }
  .masthead__mobile summary { display: flex; align-items: center; gap: .55rem; min-height: 44px; font-size: .76rem; list-style: none; }
  .masthead__mobile summary::-webkit-details-marker { display: none; }
  .menu-lines { width: 1rem; height: .43rem; border-block: 1px solid currentColor; }
  .masthead__mobile[open] summary { color: var(--signal); }
  .masthead__mobile .nav { display: grid; position: absolute; top: 100%; inset-inline: 0; grid-template-columns: 1fr 1fr; gap: 0 1rem; padding: .5rem 1rem; background: var(--paper); border-block: 1px solid var(--line); }
  .masthead__mobile .nav a { padding: .78rem 0; }
  .single-mf_product .masthead { display: none; }
  .single-mf_product .breadcrumbs { margin: .6rem 0; }
  .cover { display: block; min-height: 0; }
  .cover__text { padding: 2.25rem 0 clamp(14rem, 54vw, 24rem); }
  .cover h1 { font-size: clamp(4.1rem, 15.5vw, 6.25rem); }
  .cover__label { margin-bottom: 1.25rem; }
  .cover .intro { margin-top: 1rem; }
  .cover__actions { gap: .65rem 1rem; margin-top: 1rem; }
  .cover__guide { padding: .45rem 0; }
  .cover__figure { inset: auto 0 0; height: 55%; }
  .cover__image { object-position: 79% 53%; }
  .cover::before { background: linear-gradient(180deg, #100c0e 2%, #100c0e 30%, #100c0ee0 52%, #100c0e1a 75%, #100c0e65 100%); }
  .cover-search { margin-top: 1rem; }
  .topic-grid, .cards, .product-head, .split { grid-template-columns: 1fr; }
  .cards { gap: 1rem; }
  .card__image { aspect-ratio: 1.63; }
  .product-panel { padding: .85rem .9rem 1rem; }
  .product-panel h1 { margin: .36rem 0 .8rem; font-size: clamp(2.5rem, 10vw, 3.45rem); }
  .product-panel .intro, .specstrip { display: none; }
  .product-head { gap: .8rem; }
  .answer-row, .studio-band .answer-row { grid-template-columns: 1fr auto; }
  .answer-row .eyebrow { grid-column: 1/-1; }
  .section-head { align-items: start; flex-direction: column; gap: .75rem; }
  .article-cover { aspect-ratio: 1.5; }
}

@media (max-width: 370px) {
  .pros-cons { grid-template-columns: 1fr; }
}
