/*
Theme Name: Luna Project
Template: twentytwentyfive
Description: Tema hijo de Luna Project — estudio independiente de videojuegos y software.
Version: 1.2.0
Text Domain: luna-project
*/

a { text-decoration: none; }
.wp-block-button__link { min-height: 48px; display: inline-flex; align-items: center; }
.luna-eyebrow { font-family: var(--wp--preset--font-family--mono); letter-spacing: .14em; text-transform: uppercase; }
.luna-card { border: 1px solid var(--wp--preset--color--line); border-radius: 24px; background: var(--wp--preset--color--surface); transition: border-color .2s; }
.luna-card:hover { border-color: #4A5060; }

/* Lanzamientos */
.luna-featured { display: flex; flex-wrap: wrap; border: 1px solid var(--wp--preset--color--line); border-radius: 28px; overflow: hidden; background: var(--wp--preset--color--surface); margin-bottom: 64px; }
.luna-featured__media { flex: 1 1 420px; min-height: 340px; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #14161B 0 14px, #0F1014 14px 28px); color: #8A909C; font-family: var(--wp--preset--font-family--mono); }
.luna-featured__media img { width: 100%; height: 100%; object-fit: cover; }
.luna-featured__body { flex: 1 1 380px; padding: 44px; display: flex; flex-direction: column; gap: 14px; }
.luna-featured__body h2 { margin: 0; font-size: 40px; }
.luna-featured__body p { margin: 0; color: var(--wp--preset--color--soft); }
.luna-badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; font-family: var(--wp--preset--font-family--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid #2C5A62; color: var(--wp--preset--color--accent); }
.luna-featured .luna-badge { background: var(--wp--preset--color--accent); color: #031A1E; border: 0; }
.luna-badge--disponible { color: #9BE3B4; border-color: #2F6B4A; }
.luna-countdown { display: flex; gap: 10px; flex-wrap: wrap; }
.luna-countdown div { width: 84px; padding: 14px 0; text-align: center; border: 1px solid var(--wp--preset--color--line); border-radius: 14px; }
.luna-countdown b { display: block; font-family: var(--wp--preset--font-family--display); font-size: 28px; font-weight: 600; }
.luna-countdown small, .luna-meta { color: var(--wp--preset--color--muted); }
.luna-calendar { border-top: 1px solid var(--wp--preset--color--line); }
.luna-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; padding: 24px 4px; border-bottom: 1px solid var(--wp--preset--color--line); }
.luna-row__date { flex: 0 0 150px; font-family: var(--wp--preset--font-family--mono); font-size: 14px; }
.luna-row__name { flex: 1 1 260px; display: flex; flex-direction: column; }
.luna-row__name strong { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 20px; }
.luna-row__name small { color: var(--wp--preset--color--muted); }
.luna-row a { font-weight: 600; color: var(--wp--preset--color--accent); }

/* WooCommerce sobre fondo oscuro */
.woocommerce ul.products li.product, .wc-block-grid__product { border: 1px solid var(--wp--preset--color--line); border-radius: 20px; padding: 0 0 20px; background: var(--wp--preset--color--surface); overflow: hidden; }
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce ul.products li.product .price { padding: 0 20px; }
.woocommerce ul.products li.product .price { color: var(--wp--preset--color--accent) !important; }
.woocommerce ul.products li.product .button { margin: 12px 20px 0; border-radius: 999px; }
.woocommerce span.onsale { background: var(--wp--preset--color--accent); color: #031A1E; }
.woocommerce .woocommerce-ordering select, .woocommerce input.input-text, .woocommerce textarea, .woocommerce select { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); border: 1px solid var(--wp--preset--color--line); border-radius: 10px; min-height: 44px; padding: 0 12px; }
.woocommerce-info, .woocommerce-message { background: var(--wp--preset--color--surface); color: var(--wp--preset--color--text); border-top-color: var(--wp--preset--color--accent); }

/* Identidad Lüna Project */
h1, h2, .wp-block-post-title { font-stretch: 82%; }
h1 { text-transform: uppercase; }
.luna-hero-logo { width: 100%; max-width: 460px; height: auto; mix-blend-mode: screen; }
.trp-language-switcher, .trp-ls-shortcode-current-language { background: transparent !important; }
.luna-newsletter input[type=email], .luna-newsletter input[type=text] { min-height: 52px; border-radius: 999px; border: 1px solid #031A1E; padding: 0 20px; background: #fff; color: #031A1E; }
.luna-newsletter input[type=submit], .luna-newsletter button { min-height: 52px; border-radius: 999px; border: 0; padding: 0 26px; background: #031A1E !important; color: #fff !important; font-weight: 600; cursor: pointer; }

/* Selector de idioma: solo el de la cabecera */
.trp-floating-switcher { display: none !important; }
.trp-shortcode-switcher, .trp-shortcode-switcher .trp-language-item, .trp-shortcode-switcher .trp-language-item-name { color: var(--wp--preset--color--text) !important; background: transparent !important; }
.trp-shortcode-anchor { border: 1px solid #2C2F37 !important; border-radius: 999px !important; }
.trp-shortcode-overlay { border: 0 !important; box-shadow: none !important; }
.trp-shortcode-switcher .trp-switcher-dropdown-list { background: var(--wp--preset--color--surface) !important; border-radius: 16px !important; }
.trp-shortcode-switcher svg { stroke: currentColor; color: var(--wp--preset--color--text); }
.luna-newsletter a, .luna-newsletter label { color: #031A1E !important; }
.luna-newsletter .tnp-field-privacy label { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.luna-newsletter .tnp-subscription { max-width: 560px; margin: 16px 0 0 !important; }

/* Blog en tarjetas */
.luna-blog-title { margin-bottom: 40px; }
.luna-posts { display: flex; flex-direction: column; gap: 40px; padding: 0; margin: 0; list-style: none; }
.luna-post-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; align-items: center; padding: 40px; border: 2px solid var(--wp--preset--color--line); border-radius: 28px; background: var(--wp--preset--color--surface); box-shadow: 10px 10px 0 #2C5A62; transition: transform .2s, box-shadow .2s, border-color .2s; }
.luna-post-card:hover { transform: translate(-3px, -3px); box-shadow: 13px 13px 0 var(--wp--preset--color--accent); border-color: #4A5060; }
.luna-post-card > * { margin: 0 !important; }
.luna-post-card__media { margin: 0; aspect-ratio: 1; border-radius: 18px; overflow: hidden; border: 2px solid #000; }
.luna-post-card__media a, .luna-post-card__media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.luna-post-card__body { display: flex; flex-direction: column; gap: 16px; }
.luna-post-card__body > * { margin: 0 !important; }
.luna-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.luna-pills a { padding: 5px 14px; border-radius: 999px; background: var(--wp--preset--color--accent); color: #031A1E !important; font-weight: 700; font-size: 13px; box-shadow: 3px 3px 0 #2C5A62; }
.luna-pills .wp-block-post-terms__separator { display: none; }
.luna-post-card__title { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; }
.luna-post-card__title a { color: var(--wp--preset--color--text); }
.luna-post-card__title a:hover { color: var(--wp--preset--color--accent); }
.luna-post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 14px; font-weight: 600; color: var(--wp--preset--color--soft); }
.luna-post-meta > * { display: inline-flex; align-items: center; gap: 7px; color: inherit; }
.luna-post-meta a:hover { color: var(--wp--preset--color--accent); }
.luna-post-meta svg { width: 16px; height: 16px; color: var(--wp--preset--color--accent); }
.luna-post-meta img { border-radius: 50%; border: 2px solid var(--wp--preset--color--accent); }
.luna-post-meta b { font-weight: 600; }
.luna-post-card__excerpt p { margin: 0; color: var(--wp--preset--color--soft); line-height: 1.8; }
.luna-post-card__excerpt .wp-block-post-excerpt__more-text { display: none; }
/* Donaciones (PayPal) */
.luna-donate { border-width: 2px; box-shadow: 10px 10px 0 #2C5A62; scroll-margin-top: 24px; }
.luna-donate > * { max-width: 760px; margin-left: 0 !important; }
.luna-donate h2 { margin-top: 8px; }
.luna-donate__note { padding: 16px 20px; border-left: 3px solid var(--wp--preset--color--accent); border-radius: 0 14px 14px 0; background: #0F1014; }
.luna-donate__button { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 0 28px; border-radius: 999px; background: var(--wp--preset--color--accent); color: #031A1E !important; font-weight: 700; text-decoration: none; box-shadow: 4px 4px 0 #2C5A62; transition: transform .2s, box-shadow .2s; }
.luna-donate__button:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #2C5A62; }
.luna-donate__button svg { width: 20px; height: 20px; }
.luna-donate__link { margin-top: 12px; font-family: var(--wp--preset--font-family--mono); font-size: 14px; color: var(--wp--preset--color--muted); }

@media (max-width: 781px) {
	.luna-donate { padding: 32px 24px !important; box-shadow: 6px 6px 0 #2C5A62; }
	.luna-post-card { grid-template-columns: 1fr; gap: 24px; padding: 20px; box-shadow: 6px 6px 0 #2C5A62; }
	.luna-post-card__media { aspect-ratio: 3 / 2; }
}
