/*
Theme Name: Opiniones de Juguetes
Description: Spanish independent editorial catalogues.
Version: 1.0.0
Text Domain: opiniones-editorial
*/
:root {
    --paper: #f6f2ea;
    --ink: #29342b;
    --muted: #545d51;
    --line: #b2b1a0;
    --accent: #244834;
    --button-text: #fffdf7;
    --panel: #e9e5db;
    --title: Georgia, serif;
    --sans: system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.57 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid #d76726; outline-offset: 3px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--title); line-height: 1.05; letter-spacing: -.04em; }
h1 { font-size: clamp(2.6rem, 6vw, 6.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.05rem, 2.1vw, 1.6rem); }
.shell { width: min(1340px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 20; top: 0; left: 1rem; transform: translateY(-200%); padding: .75rem; background: var(--paper); }
.skip-link:focus { transform: none; }
.masthead { border-bottom: 1px solid var(--line); }
.masthead-inner { min-height: 87px; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; gap: 11px; align-items: center; font: 700 clamp(1.25rem, 2.8vw, 2.55rem)/1 var(--title); letter-spacing: -.07em; text-decoration: none; }
.mark { position: relative; flex: 0 0 25px; display: block; width: 25px; height: 25px; border: 2px solid var(--accent); transform: rotate(45deg); }
.mark::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--accent); }
.masthead nav, .footer nav { display: flex; gap: clamp(.8rem, 3.2vw, 2.6rem); flex-wrap: wrap; }
.masthead nav a { text-decoration: none; font-weight: 650; }
.masthead nav a:hover, .masthead nav a:focus-visible { text-decoration: underline; }
.primary { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: .8rem 1.1rem; color: var(--button-text); background: var(--accent); font-weight: 700; border: 0; text-decoration: none; }
.primary:hover { filter: brightness(1.13); }
.lead { margin-block: 42px 54px; display: grid; align-items: center; gap: clamp(28px,6vw,102px); grid-template-columns: 1fr 1.45fr; }
.lead-copy p { margin: 19px 0 22px; max-width: 33ch; color: var(--muted); font-size: clamp(1.04rem,1.8vw,1.32rem); }
.lead-picture img { aspect-ratio: 3/2; width: 100%; object-fit: cover; }
.brand-section, .story-section, .selected-section { padding-block: 28px 50px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .4rem 1rem; margin-bottom: 22px; }
.section-heading a, .text-link { color: var(--accent); font-size: .9rem; font-weight: 720; }
.brand-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; }
.brand-list a { display: grid; grid-template-columns: minmax(105px, .55fr) 1fr auto; gap: 15px; align-items: baseline; border-top: 1px solid var(--line); padding: 14px 0; text-decoration: none; }
.brand-list strong { font-family: var(--title); font-size: 1.5rem; }
.brand-list span { font-size: .9rem; }
.brand-list a:hover strong { text-decoration: underline; }
.product-grid, .story-grid { display: grid; gap: 19px; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; padding: 0; list-style: none; }
.story-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.product-tile, .story { min-width: 0; border-top: 1px solid var(--line); }
.product-tile a, .story a { display: block; color: inherit; text-decoration: none; }
.product-tile a:hover h3, .story a:hover h3 { text-decoration: underline; }
.tile-picture { display: grid; place-items: center; aspect-ratio: 1.2; background: #fff; }
.tile-picture img { width: 100%; height: 100%; max-height: 300px; object-fit: contain; }
.tile-copy, .story-copy { padding: 14px 0 19px; overflow-wrap: anywhere; }
.tile-copy p, .story-copy p { margin-block: 7px; color: var(--muted); font-size: .93rem; }
.label { display: block; margin-bottom: .35rem; color: var(--muted); text-transform: uppercase; font-size: .74rem; letter-spacing: .09em; font-weight: 720; }
.story img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: contain; background: var(--panel); }
.listing { padding-block: 32px 66px; min-height: 62vh; }
.listing > h1 { margin-bottom: 25px; }
.intro { max-width: 58ch; color: var(--muted); margin-block: 12px 21px; font-size: 1.1rem; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.filters label { display: grid; gap: 4px; }
.filters input, .filters select { background: var(--paper); color: var(--ink); border: 1px solid var(--line); padding: .68rem; min-height: 48px; }
.catalogue-count { margin-bottom: 12px; color: var(--muted); }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.page-numbers { min-width: 38px; padding: .4rem .6rem; border: 1px solid var(--line); text-align: center; }
.page-numbers.current { background: var(--accent); color: var(--button-text); }
.masthead-product .masthead-inner { min-height: 58px; }
.masthead-product .wordmark { font-size: 1.37rem; }
.masthead-product .mark { transform: rotate(45deg) scale(.74); }
.pdp { padding-block: 28px 65px; }
.product-lead { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,.92fr); gap: clamp(20px,5vw,72px); align-items: start; }
.product-buy { grid-column: 2; grid-row: 1; padding: 26px 23px; border-top: 2px solid var(--accent); background: var(--panel); }
.product-buy h1 { font-size: clamp(1.8rem,3.6vw,3.9rem); overflow-wrap: anywhere; }
.product-variant, .disclosure { color: var(--muted); font-size: .89rem; margin-top: 9px; }
.price { margin-top: 9px; }
.price strong { font-size: 1.75rem; }
.price small { color: var(--muted); }
.buy { width: 100%; min-height: 54px; margin-top: 15px; }
.gallery { min-width: 0; grid-column: 1; grid-row: 1; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; overscroll-behavior-x: contain; }
.slide { min-width: 100%; flex: 0 0 100%; aspect-ratio: 1.14; scroll-snap-align: start; border: 0; padding: 0; background: #fff; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-nav { display: flex; gap: .7rem; align-items: center; justify-content: center; margin-top: 9px; }
.gallery-nav button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; font-size: 1.5rem; }
.gallery-nav button:disabled { opacity: .45; }
.lightbox { border: 0; max-width: 94vw; max-height: 91vh; color: #221d1a; background: #fff; padding: 18px; }
.lightbox::backdrop { background: #0f1514dd; }
.lightbox img { width: min(780px,86vw); height: min(68vh,750px); object-fit: contain; }
.close-photo { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; font-size: 1.5rem; border-radius: 50%; border: 1px solid #555; background: #fff; }
.product-reading { max-width: 770px; margin: 32px auto 50px; }
.product-reading > section { margin: 25px 0; padding-top: 17px; border-top: 1px solid var(--line); }
.product-reading h2 { font-size: clamp(1.45rem,3.2vw,2.6rem); margin-bottom: 14px; }
.variants { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.variants a { display: block; border: 1px solid var(--line); padding: 7px 10px; }
.specs { margin: 4px 0; }
.specs div { display: grid; grid-template-columns: minmax(105px, .7fr) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; }
.product-reading details { padding: 11px 0; border-bottom: 1px solid var(--line); }
.product-reading summary { cursor: pointer; font-weight: 620; }
.product-reading details p { margin: 9px 0 0; }
.video { margin: 12px 0 18px; }
.video iframe, .video video { width: 100%; aspect-ratio: 16/9; border: 0; }
.video figcaption { margin-top: 7px; font-size: .85rem; color: var(--muted); }
.video-play { display: inline-flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; border: 1px solid var(--line); background: var(--panel); text-align: left; padding: .6rem .9rem; }
.play-symbol { flex: 0 0 43px; height: 43px; display: grid; place-items: center; color: var(--button-text); background: var(--accent); }
.related > h2 { margin-bottom: 15px; }
.article { max-width: 1030px; padding-block: 45px 80px; }
.article-head { margin: 0 auto 26px; }
.article-head h1 { font-size: clamp(2.5rem,6.5vw,5.2rem); max-width: 19ch; }
.article-cover { width: 100%; max-height: 555px; object-fit: contain; background: var(--panel); margin: 0 0 27px; }
.prose { max-width: 70ch; margin-inline: auto; }
.prose > * { margin-block: 0 18px; }
.prose p, .prose li { line-height: 1.65; }
.prose h2 { margin-block: 35px 13px; font-size: clamp(1.7rem,4vw,2.55rem); }
.prose h3 { margin-top: 20px; }
.prose img { margin: 15px auto; width: 100%; max-height: 500px; object-fit: contain; background: #fff; }
.prose table { border-collapse: collapse; width: 100%; overflow-wrap: anywhere; }
.prose :is(th, td) { padding: 9px; border: 1px solid var(--line); text-align: left; }
.footer { border-top: 1px solid var(--line); padding: 24px 0; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; }
.footer .wordmark { font-size: 1.25rem; }
.footer nav { font-size: .87rem; gap: 12px 21px; }
@media (max-width: 860px) {
    .brand-list { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .shell { width: calc(100% - 30px); }
    .masthead-inner { min-height: 0; display: grid; align-items: start; gap: 9px; padding: 12px 0; }
    .masthead nav { gap: 15px; font-size: .89rem; }
    .masthead-product { display: none; }
    .lead { grid-template-columns: 1fr; gap: 20px; margin-block: 19px 33px; }
    .lead-copy p { margin-block: 12px 14px; }
    .product-grid, .story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
    .brand-list a { grid-template-columns: minmax(91px,.7fr) 1fr auto; gap: 8px; }
    .pdp { padding-top: 11px; }
    .product-lead { display: flex; flex-direction: column; gap: 15px; }
    .product-buy, .gallery { width: 100%; }
    .product-buy { padding: 9px 10px 12px; }
    .product-buy h1 { font-size: clamp(1.48rem,6vw,2.45rem); line-height: 1.1; }
    .buy { margin-top: 10px; min-height: 51px; }
    .product-variant { margin-top: 7px; }
    .product-reading { margin-top: 22px; }
    .article { padding-block: 28px 45px; }
}

.theme-juguetes{--paper:#f0f0fa;--ink:#202355;--muted:#494d6e;--line:#aaaed3;--accent:#4141a6;--panel:#e1e0fb;--title:system-ui,sans-serif}
.theme-juguetes .masthead{background:#212659;color:#fff}
.theme-juguetes .mark{transform:none;background:#f8d995;border:0;border-radius:50%;clip-path:polygon(8% 0,100% 0,100% 64%,74% 100%,8% 100%)}
.theme-juguetes .mark::before{display:none}
.theme-juguetes .lead{grid-template-columns:1fr;gap:0;text-align:center;margin-top:0}
.theme-juguetes .lead-picture{order:-1}
.theme-juguetes .lead-picture img{height:clamp(215px,37vw,500px);object-position:50% 54%}
.theme-juguetes .lead-copy{padding:22px;max-width:850px;margin:-24px auto 0;background:#e1e0fb;position:relative}
.theme-juguetes .lead h1{font-size:clamp(2.6rem,6.25vw,6.5rem)}
.theme-juguetes .lead p{margin:14px auto;max-width:53ch}
.theme-juguetes .primary,.theme-juguetes .video-play{border-radius:24px}
.theme-juguetes .brand-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.theme-juguetes .brand-list a{display:grid;grid-template-columns:1fr;background:#e1e0fb;padding:13px 15px;gap:4px}
.theme-juguetes .brand-list a strong{font-size:1.23rem}
@media(max-width:760px){.theme-juguetes .lead-copy{padding:14px 12px;width:calc(100% - 20px)}.theme-juguetes .brand-list{grid-template-columns:1fr;gap:7px}}
