/*
Theme Name: Seriepolís Editorial
Theme URI: https://seriepolis.com/
Description: Revista de series y televisión con grilla compacta y navegación por plataformas.
Version: 1.3.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: seriepolis-editorial
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--ink: #21192b;
	--ink-deep: #191320;
	--panel: #fff;
	--paper: #fff;
	--muted: #655c6c;
	--line: #ded5e3;
	--accent: #f5d248;
	--link: #603b77;
	--sans: Ubuntu, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--display: var(--sans);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .19em; }
a:hover { color: var(--link); }
:focus-visible { outline: 2px solid var(--link); outline-offset: 4px; }
img, video, iframe { max-width: 100%; }
img, video { height: auto; }
figure { margin-inline: 0; }
button, input, textarea { font: inherit; }
p { overflow-wrap: anywhere; }
.shell { width: min(100% - 64px, 1280px); margin-inline: auto; }
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.skip-link:focus {
	z-index: 30;
	top: 12px;
	left: 12px;
	width: auto;
	height: auto;
	padding: 12px 18px;
	clip-path: none;
	color: var(--ink);
	background: var(--accent);
}
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: inset 0 4px 0 var(--ink); }
.header-inner, .footer-inner { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.wordmark {
	font: 700 clamp(1.45rem, 2.9vw, 2.5rem)/1 var(--sans);
	letter-spacing: -.055em;
	text-transform: uppercase;
	text-decoration: none;
	overflow-wrap: anywhere;
}
.wordmark span { color: var(--link); }
.custom-logo-link { display: block; flex: 0 1 auto; width: min(100%, 220px); min-width: 0; }
.custom-logo { display: block; max-height: 58px; width: auto; height: auto; object-fit: contain; object-position: left center; }
.header-tools { display: flex; flex: 1; min-width: 0; align-items: center; gap: 24px; }
.primary-nav { margin-left: auto; }
.nav-list, .platforms ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.nav-list li { position: relative; }
.nav-list a { display: block; padding-block: 8px; text-decoration: none; font-size: .85rem; font-weight: 650; }
.nav-list .current-menu-item > a, .nav-list .current-menu-ancestor > a { color: var(--link); }
.nav-list .menu-item-has-children > a::after { content: "⌄"; margin-left: .35em; }
.nav-list .sub-menu {
	position: absolute;
	display: none;
	z-index: 10;
	top: 100%;
	left: 0;
	width: max-content;
	max-width: min(240px, 80vw);
	margin: 0;
	padding: 8px 14px;
	border: 1px solid var(--line);
	background: var(--panel);
	list-style: none;
}
.nav-list li:hover > .sub-menu, .nav-list li:focus-within > .sub-menu { display: block; }
.nav-list .has-submenu-toggle > a { display: inline-block; }
.nav-list .has-submenu-toggle > a::after { content: none; }
.submenu-toggle { padding: 6px; border: 0; color: var(--link); background: transparent; cursor: pointer; }
.nav-list .has-submenu-toggle > .sub-menu[hidden] { display: none; }
.nav-list .has-submenu-toggle > .sub-menu:not([hidden]) { display: block; }
.search-form { display: flex; align-items: stretch; max-width: 330px; background: var(--panel); border: 1px solid var(--line); }
.search-form label { flex: 1; min-width: 0; }
.search-form input { width: 100%; min-height: 42px; padding: 8px 10px; border: 0; color: var(--ink); background: transparent; font-size: .9rem; }
.search-form input::placeholder { color: var(--muted); }
.search-form button { flex: 0 0 44px; display: grid; place-items: center; border: 0; color: var(--ink); background: transparent; cursor: pointer; }
.search-form button:hover { color: var(--ink-deep); background: var(--accent); }
.search-icon { position: relative; width: 13px; height: 13px; border: 2px solid currentColor; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; transform: rotate(45deg); background: currentColor; }
.header-search { flex: 0 1 190px; }
.main-content { min-height: 55vh; padding-block: 35px 70px; }
.edition { margin-bottom: 24px; }
.edition h1, .archive-heading h1 {
	margin: 0;
	font: 700 clamp(2.45rem, 5.2vw, 4.9rem)/1 var(--display);
	letter-spacing: -.065em;
	overflow-wrap: anywhere;
}
.edition p { margin: 8px 0 0; color: var(--muted); }
.platforms { margin-bottom: 24px; padding: 10px 0; border-block: 1px solid var(--line); }
.platforms ul { gap: 5px 6px; }
.platforms a {
	display: block;
	padding: 6px 11px;
	border-radius: 4px;
	color: var(--ink);
	text-decoration: none;
	font-size: .8rem;
	font-weight: 650;
}
.platforms a:hover { color: var(--link); background: #eee6f3; }
.platforms a[aria-current] { color: var(--ink); background: var(--accent); }
.story-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 27px 20px; }
.story-grid.columns-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.story-grid.columns-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.story-card { min-width: 0; border-bottom: 1px solid var(--line); }
.card-media { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; background: #342746; border-radius: 4px; }
.card-image { width: 100%; height: 100%; display: block; object-fit: cover; }
.card-copy { padding: 11px 0 15px; }
.story-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted); font-size: .7rem; }
.story-meta:empty { display: none; }
.story-category { color: var(--link); font-weight: 800; text-transform: uppercase; letter-spacing: .055em; text-decoration: none; }
.story-category:hover { text-decoration: underline; }
.story-title { margin: 5px 0 0; font: 700 clamp(1.22rem, 1.8vw, 1.77rem)/1.09 var(--display); letter-spacing: -.04em; overflow-wrap: anywhere; }
.story-title a { text-decoration: none; }
.story-title a:hover { color: var(--link); text-decoration: underline; }
.card-excerpt { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.media-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-9deg); color: #f7ecd8; font: 700 clamp(3rem, 6vw, 7rem)/1 var(--display); letter-spacing: -.13em; }
.media-mark span { color: var(--accent); }
.card-media--empty {
	background: repeating-linear-gradient(125deg, transparent 0 15px, rgba(255,255,255,.1) 16px 17px),
		radial-gradient(ellipse at 72% 22%, #795589, #30243e 70%);
}
.story-card:nth-child(3n + 2) .card-media--empty {
	background: repeating-linear-gradient(35deg, transparent 0 15px, rgba(255,255,255,.1) 16px 17px),
		radial-gradient(ellipse at 65% 24%, #795e3d, #312820 70%);
}
.story-card:nth-child(3n) .card-media--empty {
	background: repeating-linear-gradient(125deg, transparent 0 15px, rgba(255,255,255,.1) 16px 17px),
		radial-gradient(ellipse at 60% 27%, #36696c, #173335 70%);
}
.section-title {
	margin: 37px 0 17px;
	padding-top: 12px;
	border-top: 1px solid var(--line);
	font: 700 clamp(1.9rem, 3.1vw, 2.9rem)/1 var(--display);
	letter-spacing: -.055em;
}
.section-title::before { content: ""; display: inline-block; width: 6px; height: .79em; margin-right: .29em; background: var(--accent); }
.archive-heading { margin-bottom: 24px; }
.archive-description, .empty-state { color: var(--muted); }
.pagination, .comments-pagination { margin-top: 28px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); text-decoration: none; }
.page-numbers.current { background: var(--accent); color: var(--ink-deep); border-color: var(--link); }
.reader-header, .reader-content, .comments-area { width: min(100%, 730px); margin-inline: auto; }
.reader-header { margin-bottom: 25px; }
.reader-header h1 { margin: 9px 0 14px; font: 700 clamp(2.45rem, 5.5vw, 5.35rem)/.98 var(--display); letter-spacing: -.055em; overflow-wrap: anywhere; }
.reader-categories { color: var(--link); font-weight: 800; font-size: .83rem; }
.reader-deck { color: var(--muted); font-size: clamp(1.15rem, 2vw, 1.5rem); margin-block: 0 16px; }
.reader-byline { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.reader-cover { margin: 0 auto 28px; max-width: 1050px; }
.reader-cover img { width: 100%; display: block; }
.reader-cover figcaption, .wp-caption-text, .wp-block-image figcaption { padding-top: 6px; color: var(--muted); font-size: .82rem; }
.reader-content { font-size: clamp(1.02rem, 1.6vw, 1.19rem); line-height: 1.72; overflow-wrap: anywhere; }
.reader-content :is(h2, h3, h4) { font-family: var(--display); line-height: 1.15; }
.reader-content a:not(.wp-element-button), .comment-content a { color: var(--link); }
.reader-content blockquote { border-left: 3px solid var(--accent); margin-inline: 0; padding-left: 20px; }
.reader-content pre, .wp-block-table { overflow-x: auto; }
.reader-content table { border-collapse: collapse; max-width: 100%; }
.reader-content :is(td, th) { border: 1px solid var(--line); padding: 6px; }
.reader-content .alignwide, .reader-content .alignfull { width: min(1100px, calc(100vw - 64px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.aligncenter { display: block; margin-inline: auto; }
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.wp-caption { max-width: 100%; }
.reader-content::after { content: ""; display: block; clear: both; }
.reader-tags a { display: inline-block; margin: 4px; }
.comments-area { border-top: 1px solid var(--line); margin-top: 38px; padding-top: 16px; }
.comment-list, .comment-list .children { padding-left: clamp(12px, 3vw, 26px); }
.comment-form :is(input:not([type="checkbox"]), textarea), .post-password-form input {
	max-width: 100%;
	padding: 8px;
	border: 1px solid var(--line);
	background: var(--panel);
	color: var(--ink);
}
.comment-form label:not([for="wp-comment-cookies-consent"]) { display: block; }
.comment-form input[type="submit"], .post-password-form input[type="submit"] { background: var(--accent); color: var(--ink); cursor: pointer; font-weight: 700; }
.bypostauthor > .comment-body { border-left: 2px solid var(--line); padding-left: 10px; }
.site-footer { background: var(--paper); border-top: 1px solid var(--line); }
.footer-inner { justify-content: space-between; min-height: 120px; }
.footer-inner p { margin: 8px 0 0; color: var(--muted); font-size: .875rem; }

@media (max-width: 960px) {
	.story-grid[class*="columns-"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
	.shell { width: calc(100% - 30px); }
	.nav-list { gap: 2px 13px; }
	.nav-list .sub-menu { position: static; max-width: 100%; }
	.main-content { padding-block: 24px 40px; }
	.edition { margin-bottom: 16px; }
	.platforms { margin-bottom: 16px; }
	.story-grid[class*="columns-"] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
	.story-title { font-size: 1.23rem; }
	.card-copy { padding-top: 8px; }
	.reader-content .alignwide, .reader-content .alignfull { width: calc(100vw - 30px); }
	.footer-inner { display: block; min-height: 0; }
	.footer-inner nav { margin-top: 12px; }
}
@media (max-width: 350px) {
	.story-grid[class*="columns-"] { grid-template-columns: minmax(0, 1fr); }
}

@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('assets/fuentes/ubuntu-400.woff2') format('woff2');
}
@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('assets/fuentes/ubuntu-500.woff2') format('woff2');
}
@font-face {
	font-family: Ubuntu;
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('assets/fuentes/ubuntu-700.woff2') format('woff2');
}
.featured-story {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	align-items: center;
	gap: clamp(24px, 5vw, 70px);
	margin-bottom: 30px;
	padding-bottom: 6px;
}
.featured-media { aspect-ratio: 16 / 9; border-radius: 5px; }
.featured-copy { padding: 14px clamp(0px, 1vw, 14px) 14px 0; }
.featured-label {
	display: inline-block;
	margin: 0 0 16px;
	padding: 4px 8px;
	border-radius: 3px;
	background: var(--accent);
	color: var(--ink);
	font-weight: 700;
	font-size: .8rem;
}
.featured-copy .story-meta { font-size: .78rem; }
.featured-copy h1 {
	margin: 8px 0 0;
	font: 700 clamp(2rem, 4vw, 4rem)/1.01 var(--display);
	letter-spacing: -.048em;
	overflow-wrap: anywhere;
}
.featured-copy h1 a { text-decoration: none; }
.featured-copy h1 a:hover { text-decoration: underline; }
.featured-deck { max-width: 43ch; margin: 14px 0 0; color: var(--muted); }
@media (max-width: 960px) {
	.featured-story { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
	.featured-media:has(img) { aspect-ratio: auto; }
	.featured-media .card-image { width: 100%; height: auto; }
	.featured-copy { padding: 0; }
}
@media (max-width: 650px) {
	.featured-copy h1 { font-size: clamp(1.7rem, 6.2vw, 2.35rem); }
	.featured-label { margin-bottom: 10px; }
}

.nav-list .platform-menu summary {
	padding-block: 8px;
	cursor: pointer;
	font-size: .85rem;
	font-weight: 650;
}
.nav-list .platform-menu summary:hover { color: var(--link); }
.nav-list .platform-menu[open] > .sub-menu { display: block; }
.recent-stories .section-title {
	margin-top: 0;
	margin-bottom: 20px;
	padding-top: 17px;
	font-size: clamp(1.55rem, 2.8vw, 2.3rem);
	letter-spacing: -.035em;
}
















.streaming-service { display: inline-block; padding: 4px 9px; border-radius: 4px; background: #f2edf7; color: var(--ink); font-weight: 500; font-size: .8rem; }



.streaming-note { font-size: .83rem; }
.where-to-watch { margin: 28px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.where-to-watch h2 { margin: 2px 0 10px; font-size: 1.45rem; }
.where-to-watch p { margin: 6px 0; }
.watch-country { color: var(--link); font-size: .8rem; font-weight: 700; }
.watch-services { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.watch-services .streaming-service {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px 5px 5px;
}
.watch-services img { width: 32px; height: 32px; border-radius: 4px; object-fit: contain; }
.watch-source { display: inline-block; margin-top: 7px; }
.watch-services a { color: inherit; }





.mobile-menu-toggle { display: none; }
@media (max-width: 960px) {
	.header-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 12px; padding-block: 12px; }
	.site-header .wordmark { flex: 0 1 auto; min-width: 0; }
	.site-header .custom-logo-link { max-width: calc(100% - 56px); }
	.site-header .custom-logo { max-height: 48px; }
	.mobile-menu-toggle:not([hidden]) {
		display: inline-grid;
		flex: 0 0 44px;
		width: 44px;
		height: 44px;
		place-items: center;
		border: 1px solid var(--line);
		border-radius: 4px;
		background: var(--paper);
		color: var(--ink);
		cursor: pointer;
	}
	.mobile-menu-icon, .mobile-menu-icon::before, .mobile-menu-icon::after {
		display: block;
		width: 20px;
		height: 2px;
		border-radius: 1px;
		background: currentColor;
	}
	.mobile-menu-icon { position: relative; }
	.mobile-menu-icon::before, .mobile-menu-icon::after { position: absolute; left: 0; content: ""; }
	.mobile-menu-icon::before { top: -6px; }
	.mobile-menu-icon::after { top: 6px; }
	.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon { background: transparent; }
	.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
	.mobile-menu-toggle[aria-expanded="true"] .mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }
	.mobile-menu-toggle:not([hidden])[aria-expanded="false"] + .header-tools { display: none; }
	.header-tools {
		flex: 1 0 100%;
		display: grid;
		gap: 12px;
		margin-top: 12px;
		padding-top: 12px;
		border-top: 1px solid var(--line);
	}
	.header-tools .primary-nav { margin-left: 0; }
	.header-tools .nav-list { align-items: stretch; flex-direction: column; gap: 0; }
	.header-tools .nav-list a, .header-tools .platform-menu summary { padding-block: 10px; }
	.header-tools .nav-list .sub-menu { position: static; width: 100%; max-width: none; }
	.header-tools .search-form { max-width: none; }
}

.footer-social ul { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.footer-social a { display: block; padding-block: 6px; font-size: .9rem; font-weight: 500; text-decoration: none; }
.footer-social a:hover { text-decoration: underline; }
