/*
Theme Name: NombresGG
Theme URI: https://nombresgg.com/
Author: Lê Thanh Sang
Author URI: https://nombresgg.com/
Description: Tema ligero para NombresGG — generador de nombres y símbolos para juegos. Estilo limpio (YouTube light), sin Bootstrap ni jQuery. Funciona junto al plugin NombresGG Core.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nombresgg
Tags: blog, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   Tokens
   ========================================================= */
:root {
	--accent: #f3a536;
	--accent-bd: #e3941f;
	--accent-ink: #3a1e08;
	--orange: #c2410c;
	--brown: #b45309;
	--line: #e5e5e5;
	--line2: #ececec;
	--ink: #0f0f0f;
	--ink2: #262626;
	--muted: #606060;
	--faint: #909090;
	--cream: #fffdf8;
	--sample: #fbf1de;
	--dashed: #e6c894;
	--wrap: 1280px;
	--mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* =========================================================
   Reset / base
   ========================================================= */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
	font-family: 'Roboto', Arial, sans-serif;
	background: #fff;
	color: var(--ink);
	-webkit-font-smoothing: auto;
	text-rendering: optimizeLegibility;
	line-height: 1.5;
}
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; height: auto; }
input, button, textarea { font-family: inherit; }
::placeholder { color: #9aa0a6; }
button { cursor: pointer; }
h1, h2, h3, h4 { color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 200; background: #fff; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: #fff; border-bottom: 1px solid var(--line);
}
.site-header__inner {
	max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
	height: 60px; display: flex; align-items: center; gap: 18px;
}
.site-logo { flex: none; display: flex; align-items: center; gap: 9px; }
.site-logo__icon { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; display: block; flex: none; }
.site-logo__text { font-size: 20px; font-weight: 900; letter-spacing: -.5px; color: var(--ink); line-height: 1; white-space: nowrap; }
.site-logo__text b { color: var(--orange); font-weight: 900; }
/* Por si algún custom-logo se cuela como <img> directo */
.site-logo > img:not(.site-logo__icon) { height: 30px; width: auto; display: block; }
@media (max-width: 380px) { .site-logo__text { display: none; } }

.header-search { flex: 1; max-width: 520px; display: flex; align-items: center; }
.header-search__field {
	flex: 1; display: flex; align-items: center; height: 40px;
	border: 1px solid #d6d6d6; border-radius: 20px 0 0 20px; background: #fff; padding: 0 16px;
}
.header-search__field input { width: 100%; border: none; outline: none; font-size: 15px; color: var(--ink); background: transparent; }
.header-search__btn {
	flex: none; height: 40px; width: 58px; border: 1px solid #d6d6d6; border-left: none;
	border-radius: 0 20px 20px 0; background: #f7f7f7; font-size: 16px; color: #444;
}

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: 2px; }
.main-nav a { padding: 8px 11px; border-radius: 18px; font-size: 14px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.main-nav a:hover { background: #f3f3f3; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a { color: var(--orange); font-weight: 700; }
.main-nav .btn-cta a, .main-nav a.btn-cta {
	flex: none; padding: 9px 16px; border-radius: 20px; background: var(--accent);
	color: var(--accent-ink); font-weight: 700; border: 1px solid var(--accent-bd);
}
.main-nav .btn-cta a:hover { background: var(--accent-bd); }
.header-mascot { flex: none; width: 34px; height: 34px; border-radius: 50%; object-fit: cover; margin-left: 8px; border: 1px solid #eee; }

.nav-toggle { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 18px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn { display: inline-block; padding: 11px 18px; border-radius: 22px; font-size: 15px; font-weight: 700; border: 1px solid transparent; }
.btn--primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-bd); }
.btn--primary:hover { background: var(--accent-bd); }
.btn--ghost { background: #fff; border-color: #d6d6d6; color: var(--ink); font-weight: 600; }
.btn--ghost:hover { border-color: #b9b9b9; }

/* =========================================================
   Sections / headings
   ========================================================= */
.section { max-width: var(--wrap); margin: 0 auto; padding: 42px 20px 8px; }
.section--tight { padding-top: 24px; }
.section-title { font-size: clamp(22px, 3vw, 28px); font-weight: 900; letter-spacing: -.5px; }
.section-sub { margin-top: 6px; font-size: 15px; color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.eyebrow { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--brown); }

/* =========================================================
   Hero (front-page)
   ========================================================= */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 46px 20px 36px; }
.hero__grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.hero__copy { flex: 1 1 420px; min-width: 300px; }
.hero__badge { display: flex; align-items: center; gap: 10px; }
.hero__badge img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.hero__title { margin-top: 16px; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; font-weight: 900; letter-spacing: -1px; }
.hero__title span { color: var(--orange); }
.hero__lead { margin-top: 16px; font-size: 17px; line-height: 1.55; color: #444; max-width: 520px; }
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__stats { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 26px; }
.hero__stat .n { font-size: 22px; font-weight: 900; }
.hero__stat .l { font-size: 12.5px; color: var(--muted); }
.hero__gen { flex: 1 1 380px; min-width: 300px; }

/* =========================================================
   Features strip
   ========================================================= */
.features { border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: var(--cream); }
.features__grid { max-width: var(--wrap); margin: 0 auto; padding: 26px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.feature { display: flex; gap: 12px; align-items: flex-start; }
.feature__icon { flex: none; width: 36px; height: 36px; border-radius: 9px; background: #fbe6cc; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--brown); }
.feature__t { font-size: 15px; font-weight: 700; }
.feature__d { font-size: 13.5px; color: var(--muted); line-height: 1.4; }

/* =========================================================
   SEO / EEAT block
   ========================================================= */
.prose-block { border-top: 1px solid var(--line2); margin-top: 42px; background: var(--cream); }
.prose-block__inner { max-width: 920px; margin: 0 auto; padding: 44px 20px; }
.prose { margin-top: 16px; font-size: 15.5px; line-height: 1.72; color: #3f3f3f; }
.prose p { margin-bottom: 14px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--orange); font-weight: 700; }
/* Contenido heredado de la HomePage antigua, conservado en el bloque inferior */
.legacy-home { font-size: 15.5px; line-height: 1.72; color: #3f3f3f; }
.legacy-home a { color: var(--orange); font-weight: 600; }
.legacy-home img, .legacy-home .wp-block-image { max-width: 100%; height: auto; }
.legacy-home .wp-block-image { margin: 18px 0; }
.legacy-home figure { margin: 18px auto; text-align: center; }
.legacy-home figcaption { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.legacy-home hr { margin: 28px 0; }

.eeat { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.eeat img { flex: none; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.eeat__body { flex: 1; min-width: 200px; }
.eeat__name { font-size: 14.5px; font-weight: 700; }
.eeat__desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.eeat__link { flex: none; font-size: 13px; font-weight: 700; color: var(--orange); }

/* =========================================================
   Search box inline (top section)
   ========================================================= */
.inline-search { width: 220px; max-width: 100%; padding: 10px 13px; font-size: 14px; color: var(--ink); background: #fff; border: 1px solid #d6d6d6; border-radius: 10px; outline: none; }
.updated-tag { font-size: 12px; font-family: var(--mono); color: var(--faint); }

/* =========================================================
   Blog: page head / chips / breadcrumb
   ========================================================= */
.page-head { max-width: var(--wrap); margin: 0 auto; padding: 34px 20px 8px; }
.breadcrumb { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.breadcrumb a { color: var(--faint); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--orange); }
.page-title { margin-top: 12px; font-size: clamp(26px, 4vw, 38px); font-weight: 900; letter-spacing: -.8px; }
.page-desc { margin-top: 8px; font-size: 16px; color: var(--muted); max-width: 640px; }
.chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 7px 14px; border-radius: 18px; font-size: 13.5px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid #d6d6d6; white-space: nowrap; }
.chip:hover { border-color: #b9b9b9; }
.chip.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent-bd); }

/* =========================================================
   Blog: featured + grid cards
   ========================================================= */
.featured {
	display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; background: #fff;
	border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.featured__media { position: relative; aspect-ratio: 16/9; background: var(--sample); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.featured__media img { width: 100%; height: 100%; object-fit: cover; }
.featured__badge { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--orange); padding: 5px 10px; border-radius: 14px; }
.featured__body { padding: 26px; display: flex; flex-direction: column; justify-content: center; }
.featured__cat { font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--brown); }
.featured__title { margin-top: 8px; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.18; font-weight: 900; letter-spacing: -.5px; }
.featured__excerpt { margin-top: 10px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.featured__meta { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.featured__meta img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); transform: translateY(-2px); }
.card__media { position: relative; aspect-ratio: 16/9; background: var(--sample); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__cat { position: absolute; top: 12px; left: 12px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: rgba(15,15,15,.78); padding: 4px 9px; border-radius: 12px; }
.card__body { padding: 16px; }
.card__title { font-size: 16.5px; line-height: 1.3; font-weight: 700; }
.card__excerpt { margin-top: 8px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.card__meta { margin-top: 14px; font-size: 12.5px; color: var(--faint); }

.list-title { font-size: 18px; font-weight: 900; margin-bottom: 16px; }

/* placeholder media pattern (sin imagen destacada) */
.media-ph { background-image: repeating-linear-gradient(135deg, #fbf1de 0, #fbf1de 12px, #f5e6c6 12px, #f5e6c6 24px); }
.media-ph__txt { font-family: var(--mono); font-size: 11px; color: #b4843a; background: rgba(255,255,255,.7); padding: 4px 9px; border-radius: 6px; }

/* =========================================================
   Pagination
   ========================================================= */
.pagination { margin-top: 30px; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 8px 13px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink); font-size: 14px; display: inline-block;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent-bd); color: var(--accent-ink); font-weight: 700; }
.pagination .page-numbers.dots { border: none; }
.pagination a.page-numbers:hover { border-color: #b9b9b9; }

/* =========================================================
   CTA banner
   ========================================================= */
.cta { max-width: var(--wrap); margin: 0 auto; padding: 36px 20px; }
.cta__box { background: var(--sample); border: 1px solid var(--dashed); border-radius: 16px; padding: 26px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.cta__left { display: flex; align-items: center; gap: 14px; }
.cta__left img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 1px solid var(--dashed); }
.cta__t { font-size: 18px; font-weight: 900; color: var(--accent-ink); }
.cta__d { font-size: 14px; color: #7a4a1a; }

/* =========================================================
   Single article
   ========================================================= */
.article { max-width: 760px; margin: 0 auto; padding: 30px 20px 8px; }
.article__kicker { display: inline-block; margin-top: 16px; font-family: var(--mono); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #fff; background: var(--orange); padding: 5px 11px; border-radius: 14px; }
.article__title { margin-top: 14px; font-size: clamp(28px, 4.4vw, 42px); line-height: 1.1; font-weight: 900; letter-spacing: -1px; }
.article__byline { margin-top: 16px; display: flex; align-items: center; gap: 11px; }
.article__byline img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.article__byline .by { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.article__byline .by strong { color: var(--ink); }
.article__hero { margin-top: 22px; position: relative; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; border: 1px solid var(--dashed); display: flex; align-items: center; justify-content: center; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }

.article__body { margin-top: 26px; font-size: 17px; line-height: 1.74; color: var(--ink2); }
.article__body p { margin-bottom: 18px; }
.article__body h2 { margin: 30px 0 12px; font-size: 24px; font-weight: 900; letter-spacing: -.4px; }
.article__body h3 { margin: 24px 0 10px; font-size: 20px; font-weight: 800; }
.article__body ul, .article__body ol { margin: 0 0 18px 22px; }
.article__body li { margin-bottom: 8px; }
.article__body a { color: var(--orange); font-weight: 700; }
.article__body img { border-radius: 12px; margin: 8px 0 18px; }
.article__body blockquote { margin: 0 0 18px; padding: 6px 0 6px 18px; border-left: 4px solid var(--accent); color: #444; font-style: italic; }
.article__body table { width: 100%; border-collapse: collapse; margin-bottom: 18px; font-size: 15px; }
.article__body th { text-align: left; padding: 10px 12px; border: 1px solid var(--line); font-weight: 700; background: #f7f7f7; }
.article__body td { padding: 10px 12px; border: 1px solid var(--line); }
.article__body tbody tr:nth-child(even) { background: #fafafa; }
.article__body code { background: #f3f3f3; padding: 2px 6px; border-radius: 6px; font-family: var(--mono); font-size: .9em; }

/* in-article copy block */
.copyblock { margin: 24px 0; background: var(--sample); border: 1px solid var(--dashed); border-radius: 14px; padding: 18px; }
.copyblock__label { font-size: 13px; font-weight: 700; color: #7a4a1a; margin-bottom: 10px; }
.copyblock__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--dashed); border-radius: 10px; padding: 12px 12px 12px 16px; }
.copyblock__nick { font-size: 22px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copyblock__btn { flex: none; font-size: 13px; font-weight: 700; color: var(--accent-ink); background: var(--accent); border: 1px solid var(--accent-bd); border-radius: 8px; padding: 8px 14px; }

/* FAQ accordion */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; padding: 15px 16px; background: #fff; border: none; font-size: 16px; font-weight: 700; color: var(--ink); }
.faq__icon { flex: none; font-size: 18px; color: var(--brown); }
.faq__a { padding: 0 16px; font-size: 15px; line-height: 1.6; color: #444; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq__item.is-open .faq__a { padding: 0 16px 16px; max-height: 600px; }

/* author box */
.author-box { margin: 24px 0; display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.author-box img { flex: none; width: 54px; height: 54px; border-radius: 50%; object-fit: cover; border: 1px solid #eee; }
.author-box__name { font-size: 15px; font-weight: 800; }
.author-box__bio { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-top: 4px; }

.related { max-width: 1100px; margin: 0 auto; padding: 18px 20px 8px; }

/* =========================================================
   Generic page
   ========================================================= */
.page-wrap { max-width: 820px; margin: 0 auto; padding: 30px 20px; }
.page-wrap .article__body { margin-top: 18px; }

/* =========================================================
   404 / search empty
   ========================================================= */
.notice-block { max-width: 760px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.notice-block h1 { font-size: clamp(40px, 8vw, 72px); font-weight: 900; color: var(--orange); letter-spacing: -2px; }
.notice-block p { margin-top: 12px; font-size: 16px; color: var(--muted); }
.notice-block .btn { margin-top: 22px; }
.empty-note { padding: 40px; text-align: center; color: var(--faint); font-size: 15px; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { border-top: 1px solid var(--line); background: #f7f7f7; margin-top: 42px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 24px 20px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.site-footer__logo img { height: 24px; width: auto; display: block; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 18px; flex: 1; list-style: none; }
.site-footer__nav a { font-size: 13.5px; color: var(--muted); }
.site-footer__nav a:hover { color: var(--ink); }
.site-footer__bottom { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
	.featured { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.main-nav { display: none; }
	.main-nav.is-open {
		display: flex; position: absolute; top: 60px; left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 0;
		background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
	}
	.main-nav.is-open ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.main-nav.is-open a { padding: 12px 8px; border-radius: 10px; }
	.main-nav.is-open .header-mascot { display: none; }
	.nav-toggle { display: block; }
	.header-search { max-width: none; }

	/* En móvil: el generador (tool) va primero, arriba del todo */
	.hero { padding-top: 18px; padding-bottom: 24px; }
	.hero__grid { flex-direction: column; gap: 24px; }
	.hero__gen { order: -1; width: 100%; }
	.hero__copy { order: 1; }
}
@media (max-width: 560px) {
	.header-search { display: none; }
	.site-header__inner { gap: 12px; }
}

/* =========================================================
   Mejora UX (2026-06): menú móvil natural + generador protagonista
   ========================================================= */

/* --- Generador: más ancho y sin hueco vertical en escritorio --- */
.hero__grid { align-items: flex-start; }
.hero__copy { flex: 1 1 360px; }
.hero__gen  { flex: 1.2 1 440px; }

/* El generador pasa a ancho completo ya en tablet (antes se encogía a 2 columnas) */
@media (max-width: 980px) {
	.hero__grid { flex-direction: column; gap: 26px; align-items: stretch; }
	.hero__gen  { order: -1; width: 100%; }
	.hero__copy { order: 1; }
	.hero { padding-top: 34px; padding-bottom: 30px; }
}

/* --- Botón hamburguesa: feedback de estado abierto --- */
.nav-toggle { display: flex; align-items: center; justify-content: center; cursor: pointer; line-height: 1; transition: background .15s, border-color .15s, color .15s; }
.nav-toggle[aria-expanded="true"] { background: var(--accent); border-color: var(--accent-bd); color: var(--accent-ink); }

/* --- Menú móvil: panel flotante con sombra y entrada suave --- */
@media (max-width: 760px) {
	.main-nav.is-open {
		gap: 0;
		padding: 8px 12px 12px;
		border: 1px solid var(--line);
		border-top: none;
		border-radius: 0 0 16px 16px;
		box-shadow: 0 16px 32px rgba(0, 0, 0, .14);
		max-height: calc(100dvh - 60px);
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		animation: nggMenuIn .18s ease-out;
	}
	.main-nav.is-open ul { gap: 0; }
	.main-nav.is-open li { border-bottom: 1px solid #f2f2f2; }
	.main-nav.is-open li:last-child { border-bottom: none; }
	.main-nav.is-open a {
		display: flex; align-items: center;
		padding: 14px 10px; border-radius: 10px;
		font-size: 15.5px; font-weight: 600;
	}
	.main-nav.is-open a:hover,
	.main-nav.is-open a:active { background: #f6f6f6; }
	/* CTA del menú: botón centrado de ancho completo, intencional */
	.main-nav.is-open .btn-cta { border-bottom: none; margin-top: 10px; }
	.main-nav.is-open .btn-cta a { justify-content: center; text-align: center; padding: 13px 16px; }

	.hero { padding-top: 16px; }
}

@keyframes nggMenuIn {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* --- En móvil, generador con menos relleno para aprovechar el ancho --- */
@media (max-width: 560px) {
	.ngg-gen { padding: 16px; border-radius: 14px; }
	.ngg-gen__controls { gap: 6px; }
}
