/* =========================================================
   FF4ever · estilos del tema
   ========================================================= */
:root {
	--ff-line: rgba(170, 190, 255, .16);
	--ff-ease: cubic-bezier(.2, .7, .1, 1);
	--ff-label: var(--wp--preset--font-family--cinzel);
	--ff-display: var(--wp--preset--font-family--cormorant);
	--ff-ink: var(--wp--preset--color--tinta);
	--ff-muted: var(--wp--preset--color--niebla);
	--ff-gold: var(--wp--preset--color--oro);
	color-scheme: dark;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.ff-body {
	background-color: var(--ff-ink);
	background-image:
		radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.35), transparent 60%),
		radial-gradient(1px 1px at 72% 8%, rgba(255,255,255,.25), transparent 60%),
		radial-gradient(1px 1px at 38% 62%, rgba(255,255,255,.2), transparent 60%),
		radial-gradient(1.5px 1.5px at 88% 44%, rgba(200,215,255,.35), transparent 60%),
		radial-gradient(1px 1px at 22% 86%, rgba(255,255,255,.2), transparent 60%),
		radial-gradient(1200px 800px at 85% -10%, color-mix(in srgb, var(--ff-acc) 14%, transparent), transparent 60%);
	background-size: 420px 420px, 520px 520px, 380px 380px, 640px 640px, 460px 460px, 100% 100%;
	background-attachment: fixed;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection { background: color-mix(in srgb, var(--ff-acc) 60%, transparent); color: #fff; }
:focus-visible { outline: 2px solid var(--ff-glow); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wp-site-blocks { overflow-x: clip; }

/* ---------- Etiquetas y títulos ---------- */
.ff-kicker, .ff-kicker.wp-block-post-date {
	font-family: var(--ff-label); font-size: .74rem !important; letter-spacing: .34em; text-transform: uppercase; color: var(--ff-gold);
	margin-bottom: 1rem !important;
}
.ff-kicker a { color: inherit; text-decoration: none; }
.ff-section { padding-block: clamp(4rem, 3rem + 6vw, 9rem); position: relative; }
.ff-section__title { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4.6rem) !important; margin-top: 0 !important; max-width: 18ch; }
.ff-section__lead { max-width: 44rem; color: var(--ff-muted); font-size: 1.15rem; margin-bottom: 3rem !important; }
.ff-h { font-family: var(--ff-label) !important; font-size: clamp(.95rem, .8rem + .5vw, 1.15rem) !important; font-weight: 600 !important; letter-spacing: .32em !important; text-transform: uppercase; color: var(--ff-gold) !important; display: flex; align-items: center; gap: 18px; }
.ff-h::before, .ff-h::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--ff-line), transparent); }
.ff-h::before { max-width: 48px; }
h1 em, h2 em { font-style: italic; color: var(--ff-glow); }

/* ---------- Cabecera ---------- */
.ff-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	padding-block: 18px !important;
	transition: background .5s var(--ff-ease), padding .5s var(--ff-ease), box-shadow .5s;
	background: linear-gradient(180deg, rgba(7,10,26,.75), transparent);
}
.admin-bar .ff-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ff-header { top: 46px; } }
.ff-header.is-scrolled { background: rgba(7,10,26,.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-block: 10px !important; box-shadow: 0 1px 0 var(--ff-line); }
.ff-header__bar { gap: 24px; }
.ff-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ff-glow); }
.ff-brand__gem { width: 18px; height: 28px; color: var(--ff-acc); filter: drop-shadow(0 0 10px var(--ff-acc)); transition: transform .8s var(--ff-ease); }
.ff-brand:hover .ff-brand__gem { transform: rotateY(180deg); }
.ff-brand__txt { font-family: var(--ff-label); font-size: 1.15rem; letter-spacing: .26em; color: #fff; }
.ff-brand__txt b { color: var(--ff-gold); font-weight: 400; }
.ff-header__nav { gap: 1.6rem !important; }
.ff-header .wp-block-navigation a { text-decoration: none; color: var(--wp--preset--color--texto); position: relative; padding-block: 6px; }
.ff-header .wp-block-navigation a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ff-gold); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ff-ease); }
.ff-header .wp-block-navigation a:hover::after, .ff-header .wp-block-navigation .current-menu-item a::after { transform: scaleX(1); }
.ff-header__login a { font-family: var(--ff-label); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; padding: 9px 16px; border: 1px solid var(--ff-line); color: var(--ff-glow); white-space: nowrap; transition: border-color .3s, background .3s; }
.ff-header__login a:hover { border-color: var(--ff-glow); background: rgba(255,255,255,.04); }
.ff-header__search .wp-block-search__button { background: transparent !important; color: var(--wp--preset--color--texto) !important; border: 0; padding: 6px; }
.ff-header__search .wp-block-search__input { background: rgba(7,10,26,.9); color: #fff; border: 1px solid var(--ff-line); }
.wp-block-navigation__responsive-container.is-menu-open { padding: 90px 28px 40px !important; background: radial-gradient(120% 80% at 70% 0%, rgba(111,140,255,.3), transparent 60%), var(--ff-ink) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1.4rem !important; }
.wp-block-navigation__responsive-container.is-menu-open a { font-family: var(--ff-display); font-size: 2rem; text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) { .ff-header__login, .ff-header__search { display: none; } }

/* ---------- Portal (portada) ---------- */
.ff-main { padding-top: 0 !important; margin-top: 0 !important; }
.ff-sky { position: relative; isolation: isolate; overflow: hidden; }
.ff-sky > .ff-sky__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.ff-portal {
	min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
	padding-block: 140px 110px !important;
	background:
		radial-gradient(900px 600px at 50% 40%, color-mix(in srgb, var(--ff-acc) 26%, transparent), transparent 65%),
		radial-gradient(1400px 900px at 50% 120%, rgba(227,201,138,.10), transparent 60%),
		linear-gradient(180deg, #050713 0%, var(--ff-ink) 100%);
}
.ff-portal::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(180deg, transparent, var(--ff-ink)); z-index: -1; }
.ff-portal__crystal { position: absolute; left: 50%; top: 50%; width: min(48vw, 360px); translate: -50% -56%; z-index: -1; opacity: .5; filter: drop-shadow(0 0 80px var(--ff-acc)); animation: ff-crystal 14s ease-in-out infinite; pointer-events: none; }
.ff-portal__crystal svg { width: 100%; height: auto; display: block; }
@keyframes ff-crystal { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-24px) rotate(2deg); } }
.ff-portal__title { font-size: clamp(3.2rem, 1.6rem + 7vw, 8.5rem) !important; line-height: .95 !important; letter-spacing: -.015em !important; margin-block: .2em .3em !important; text-shadow: 0 0 60px rgba(111,140,255,.35); }
.ff-portal__title em { display: block; font-weight: 500; background: linear-gradient(180deg, #fff 0%, var(--ff-glow) 40%, var(--ff-acc) 130%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ff-portal__lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem) !important; color: color-mix(in srgb, var(--wp--preset--color--texto) 80%, transparent); max-width: 38rem; margin-inline: auto !important; margin-bottom: 2.5rem !important; }
.ff-portal--404 { min-height: 90svh; }
.ff-pagehead { padding-block: 170px 70px !important; margin-bottom: 3rem; background: radial-gradient(900px 400px at 50% 20%, color-mix(in srgb, var(--ff-acc) 22%, transparent), transparent 70%); border-bottom: 1px solid var(--ff-line); }
.ff-pagehead h1 { font-size: clamp(2.6rem, 1.6rem + 4vw, 5.4rem) !important; }

.wp-block-button.is-style-outline .wp-block-button__link { background: transparent !important; color: var(--ff-glow) !important; border: 1px solid var(--ff-line) !important; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { border-color: var(--ff-glow) !important; background: rgba(255,255,255,.04) !important; }
.wp-block-button__link { transition: transform .3s var(--ff-ease), box-shadow .3s; box-shadow: 0 10px 40px -12px var(--ff-acc); }
.wp-block-button__link:hover { transform: translateY(-2px); }

/* ---------- Interludio ---------- */
.ff-interlude { padding-block: clamp(6rem, 4rem + 8vw, 12rem) !important; background: radial-gradient(800px 400px at 50% 50%, rgba(227,201,138,.10), transparent 70%), linear-gradient(180deg, var(--ff-ink), #0a0f26 50%, var(--ff-ink)); border-block: 1px solid var(--ff-line); }
.ff-interlude__quote { border: 0 !important; padding: 0 !important; text-align: center; }
.ff-interlude__quote p { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.4rem) !important; line-height: 1.2; color: #fff; }
.ff-interlude__quote cite { font-family: var(--ff-label); font-style: normal; font-size: .72rem !important; letter-spacing: .3em; text-transform: uppercase; color: var(--ff-gold) !important; }

/* ---------- Ficha de obra ---------- */
.ff-main--obra > * + * { margin-top: clamp(3.5rem, 2.5rem + 3vw, 6rem) !important; }
.ff-main--obra > .ff4-b-cabecera { margin-top: 0 !important; }
.ff-main--obra > .ff4-b-coleccion { margin-top: 0 !important; }
.ff-story__content > p:first-child::first-letter { float: left; font-family: var(--ff-display); font-size: 4.6em; line-height: .78; padding: .08em .1em 0 0; color: var(--ff-glow); text-shadow: 0 0 30px var(--ff-acc); }
.ff-story__content p { font-size: 1.2rem; }
.ff-page-content > p, .ff-story__content > p { hyphens: auto; }

/* ---------- Comentarios ---------- */
.ff-comments { padding-bottom: 4rem; }
.ff-comments__intro { color: var(--ff-muted); }
.ff-comment { gap: 16px !important; padding: 20px 0; border-bottom: 1px solid var(--ff-line); }
.ff-comment .wp-block-avatar img { border-radius: 50%; box-shadow: 0 0 0 1px var(--ff-line); }
.wp-block-comment-author-name { font-family: var(--ff-label); font-size: .8rem; letter-spacing: .1em; }
.wp-block-comment-date { font-size: .8rem; color: var(--ff-muted); }
.wp-block-comment-date a { color: inherit; text-decoration: none; }
.wp-block-comment-reply-link a { font-family: var(--ff-label); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ff-gold); text-decoration: none; }

/* ---------- Formularios ---------- */
input[type=text], input[type=email], input[type=url], input[type=password], input[type=search], input[type=number], textarea, select {
	background: rgba(255,255,255,.035); color: var(--wp--preset--color--texto); border: 1px solid var(--ff-line); border-radius: 2px; padding: 12px 14px; font: inherit; font-size: 1rem;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ff-glow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ff-acc) 25%, transparent); }
.comment-form label { font-family: var(--ff-label); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted); }
.comment-form textarea, .comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url] { width: 100%; }
.comment-form .submit, input[type=submit], button[type=submit]:not(.ff4-chip):not(.wp-block-search__button) {
	font-family: var(--ff-label); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600;
	background: var(--ff-glow); color: var(--ff-ink); border: 0; border-radius: 2px; padding: 14px 26px; cursor: pointer;
}
.ff-bigsearch { max-width: 640px; margin-inline: auto; }
.ff-bigsearch .wp-block-search__input { font-size: 1.1rem; padding: 16px 18px; }
.ff-bigsearch .wp-block-search__button { font-family: var(--ff-label); font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; background: var(--ff-glow); color: var(--ff-ink); border: 0; padding-inline: 22px; }

/* ---------- Ventana clásica ---------- */
.ff-window, .ff-section--window .ff4-com > div {
	background: linear-gradient(180deg, #24388f 0%, #0f1957 100%);
	border: 2px solid #dfe6ff; border-radius: 8px;
	box-shadow: 0 0 0 2px #0a0f2e, 0 20px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.25);
	padding: 24px 26px !important; color: #fff;
}
.ff-window p { font-family: var(--ff-label); font-size: 1rem; letter-spacing: .04em; line-height: 1.7; }

/* ---------- Tarjetas de entradas ---------- */
.ff-postcard { height: 100%; padding-bottom: 20px; border: 1px solid var(--ff-line); transition: border-color .4s; }
.ff-postcard:hover { border-color: color-mix(in srgb, var(--ff-acc) 70%, transparent); }
.ff-postcard > *:not(.wp-block-post-featured-image) { padding-inline: 20px; }
.ff-postcard .wp-block-post-title a { text-decoration: none; }

/* ---------- Pie ---------- */
.ff-footer { margin-top: 0 !important; padding-block: 80px 60px !important; border-top: 1px solid var(--ff-line); background: radial-gradient(700px 300px at 50% 0%, color-mix(in srgb, var(--ff-acc) 16%, transparent), transparent 70%); }
.ff-footer__crystal { width: 22px; margin: 0 auto 26px; color: var(--ff-acc); filter: drop-shadow(0 0 14px var(--ff-acc)); }
.ff-footer__motto { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); color: #fff; }
.ff-footer__nav { margin-block: 2rem !important; font-family: var(--ff-label); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; gap: 1.4rem !important; }
.ff-footer__nav a { text-decoration: none; color: var(--ff-muted); }
.ff-footer__nav a:hover { color: var(--ff-glow); }
.ff-footer__legal { font-size: .82rem; color: var(--ff-muted); max-width: 46rem; margin-inline: auto !important; line-height: 1.6; }
.ff-footer__copy { font-family: var(--ff-label); font-size: .64rem; letter-spacing: .24em; text-transform: uppercase; color: color-mix(in srgb, var(--ff-muted) 70%, transparent); }

/* ---------- BuddyPress (perfiles, actividad, grupos) en modo noche ---------- */
#buddypress, .buddypress-wrap { color: var(--wp--preset--color--texto); }
.buddypress-wrap a { color: var(--ff-glow); }
.buddypress-wrap .bp-navs, .buddypress-wrap .bp-navs li, .buddypress-wrap .subnav, .buddypress-wrap .bp-subnavs, .buddypress-wrap .item-list-tabs { background: transparent !important; border-color: var(--ff-line) !important; }
.buddypress-wrap .bp-navs li a { font-family: var(--ff-label); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted) !important; }
.buddypress-wrap .bp-navs li.selected a, .buddypress-wrap .bp-navs li.current a, .buddypress-wrap .bp-navs li a:hover { color: #fff !important; background: rgba(255,255,255,.05) !important; }
.buddypress-wrap .bp-navs li .count { background: var(--ff-glow) !important; color: var(--ff-ink) !important; border: 0 !important; }
.buddypress-wrap .activity-list .activity-item .activity-content .activity-inner, .buddypress-wrap .activity-list .activity-item .activity-content blockquote,
.buddypress-wrap .activity-list.bp-list, .buddypress-wrap .bp-list, .buddypress-wrap .item-list > li, .buddypress-wrap .activity-update-form, .buddypress-wrap #whats-new-form,
.buddypress-wrap .profile, .buddypress-wrap table.profile-fields, .buddypress-wrap .standard-form, .buddypress-wrap .bp-feedback, .buddypress-wrap .select-wrap, .buddypress-wrap .bp-dir-search-form {
	background: transparent !important; border-color: var(--ff-line) !important; color: var(--wp--preset--color--texto) !important;
}
.buddypress-wrap .bp-list li, .buddypress-wrap .activity-list .activity-item { border-color: var(--ff-line) !important; }
.buddypress-wrap table.profile-fields tr td, .buddypress-wrap table tr td, .buddypress-wrap table tr th { background: transparent !important; border-color: var(--ff-line) !important; }
.buddypress-wrap table.profile-fields tr.alt td, .buddypress-wrap table tr.alt td { background: rgba(255,255,255,.025) !important; }
.buddypress-wrap .activity-meta .button, .buddypress-wrap .generic-button a, .buddypress-wrap .generic-button button, .buddypress-wrap button, .buddypress-wrap input[type=submit], .buddypress-wrap .button {
	background: rgba(255,255,255,.04) !important; color: var(--ff-glow) !important; border: 1px solid var(--ff-line) !important; border-radius: 2px !important; font-family: var(--ff-label); letter-spacing: .1em; font-size: .68rem !important; text-transform: uppercase;
}
.buddypress-wrap .generic-button a:hover, .buddypress-wrap button:hover, .buddypress-wrap input[type=submit]:hover { border-color: var(--ff-glow) !important; background: rgba(255,255,255,.08) !important; }
.buddypress-wrap select, .buddypress-wrap .select-wrap select { background: var(--ff-ink) !important; color: var(--wp--preset--color--texto) !important; }
.buddypress-wrap .bp-feedback { border-left: 3px solid var(--ff-gold) !important; }
.buddypress-wrap .bp-feedback .bp-icon { background: var(--ff-gold) !important; }
#item-header, .buddypress-wrap #item-header { padding: 24px 0; border-bottom: 1px solid var(--ff-line); }
#item-header-avatar img, .buddypress-wrap .item-avatar img { border-radius: 50% !important; box-shadow: 0 0 0 2px var(--ff-ink), 0 0 0 3px var(--ff-glow), 0 0 30px var(--ff-acc) !important; }
.buddypress-wrap .user-nicename, .buddypress-wrap .activity-header, .buddypress-wrap .item-meta, .buddypress-wrap .activity-time-since { color: var(--ff-muted) !important; }
#buddypress h2, .buddypress-wrap h2, .buddypress-wrap h3 { font-family: var(--ff-display); }
.bp-wrap .members-list .list-title a, .buddypress-wrap .list-title a { font-family: var(--ff-display); font-size: 1.2rem; text-decoration: none; }

/* Registro */
.buddypress-wrap .register-section, .buddypress-wrap #signup-form, #signup-form { color: var(--wp--preset--color--texto); }
#signup-form label, .buddypress-wrap .standard-form label { font-family: var(--ff-label); font-size: .72rem !important; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted); }
.buddypress-wrap .standard-form input[type=text], .buddypress-wrap .standard-form input[type=email], .buddypress-wrap .standard-form input[type=password], .buddypress-wrap .standard-form textarea { background: rgba(255,255,255,.035) !important; color: #fff !important; border: 1px solid var(--ff-line) !important; }

/* ---------- Varios ---------- */
.wp-block-separator { border-color: var(--ff-line); opacity: 1; }
.wp-block-image figcaption { color: var(--ff-muted); }
.wp-block-query-pagination a, .wp-block-query-pagination span { font-family: var(--ff-label); text-decoration: none; }
.wp-block-post-featured-image img { border: 1px solid var(--ff-line); }
.ff-noresults { margin-top: 2rem; }
@media (prefers-reduced-motion: reduce) { .ff-portal__crystal { animation: none; } }

/* Accesibilidad: texto solo para lectores de pantalla */
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #000; display: block; height: auto; left: 5px; padding: 15px 23px 14px; top: 5px; width: auto; z-index: 100000; }

.ff-footer p, .has-text-align-center { text-align: center; }
.ff-footer__legal { text-align: center; }
