/*
Theme Name: GYAct
Theme URI: https://gyact.org/
Author: GYAct · Global Youth Action (incubado por FUNAJIT)
Description: Tema propio de gyact.org. Contenido en las páginas (bloques HTML); el tema aporta maquetación, metadatos, formulario de contacto y endurecimiento básico.
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: gyact
*/

:root {
	--ink: #040637;
	--navy: #0B1452;
	--navy-2: #16226B;
	--line: #DCE3EC;
	--line-dark: #2A3B78;
	--bg: #FFFFFF;
	--bg-soft: #F3F6FA;
	--text: #1A2433;
	--muted: #4D5B70;
	--accent: #0F6CB0;      /* azul GYAct: texto/enlaces sobre blanco (AA) */
	--accent-bright: #6DB6EE; /* azul claro: sobre fondo oscuro */
	--gold: #E2B33C;
	--radius: 12px;
	--radius-sm: 8px;
	--max: 1160px;
	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.6; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
li { margin-bottom: .35em; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; color: #fff; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 44px; width: auto; }
.site-footer .brand img { height: 56px; }
.brand-name { font-weight: 800; letter-spacing: .02em; font-size: 1.08rem; }
.brand-name span { font-weight: 500; color: var(--muted); letter-spacing: 0; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; font-size: .95rem; color: var(--ink); cursor: pointer; }
.primary-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; align-items: center; }
.primary-nav li { margin: 0; }
.primary-nav a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-size: .95rem; font-weight: 500; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.primary-nav .nav-cta a { background: var(--ink); color: #fff; margin-left: 6px; }
.primary-nav .nav-cta a:hover { background: var(--navy-2); color: #fff; }
@media (max-width: 960px) {
	.nav-toggle { display: inline-block; }
	.primary-nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
	.primary-nav.is-open { display: block; }
	.primary-nav ul { flex-direction: column; align-items: stretch; }
	.primary-nav .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Bloques de contenido ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: #D5DEEA; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark a { color: var(--accent-bright); }
@media (max-width: 600px) { .section { padding: 56px 0; } }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-dark .eyebrow { color: var(--accent-bright); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 46em; }
.section-dark .lead { color: #B9C6D8; }

.hero { background: var(--ink); color: #D5DEEA; padding: 88px 0 72px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; max-width: 15em; }
.hero .lead { color: #B9C6D8; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero-art { justify-self: end; width: 100%; max-width: 420px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { justify-self: start; max-width: 300px; } }
.stage-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.stage-strip li { margin: 0; border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px 14px; font-size: .88rem; color: #D5DEEA; }
.stage-strip li strong { color: #fff; font-weight: 600; }
.badge-funajit { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: #fff; }
.badge-funajit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-block; padding: 12px 20px; border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; font-size: .98rem; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #fff; color: var(--ink); }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--accent-bright); }
.btn-ghost { border-color: var(--line-dark); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: .98rem; }
.section-dark .card { background: var(--navy); border-color: var(--line-dark); }
.section-dark .card p { color: #B9C6D8; }

.status { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; margin-bottom: 12px; }
.status-live { background: #DDF5EF; color: #0B6E5C; }
.status-dev { background: #FDF1D3; color: #7A5A0B; }
.status-road { background: #E6ECF5; color: #2C4A75; }

.split { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 24px; } }

.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 22px 24px; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline time { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); }

.facts { width: 100%; border-collapse: collapse; font-size: .97rem; }
.facts th, .facts td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts th { width: 32%; color: var(--ink); font-weight: 600; }

.callout { border-left: 4px solid var(--gold); background: var(--bg-soft); padding: 18px 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.callout p:last-child { margin: 0; }

.flow { counter-reset: none; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.flow li { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px; }
.flow li strong { color: var(--ink); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.45rem; }
.prose h3 { margin-top: 1.3em; }

.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0 48px; }
.page-hero .lead { margin-bottom: 0; }

/* ---------- Formulario ---------- */
.gyact-form { display: grid; gap: 16px; max-width: 640px; }
.gyact-form label { display: block; font-weight: 600; font-size: .93rem; color: var(--ink); margin-bottom: 6px; }
.gyact-form input, .gyact-form select, .gyact-form textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #B8C4D4; border-radius: var(--radius-sm); background: #fff; color: var(--text); }
.gyact-form textarea { min-height: 150px; resize: vertical; }
.gyact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .gyact-form .row-2 { grid-template-columns: 1fr; } }
.gyact-form .hp { position: absolute; left: -9999px; }
.gyact-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.gyact-form .consent input { width: auto; margin-top: 4px; }
.gyact-form button { justify-self: start; font: inherit; font-weight: 600; background: var(--ink); color: #fff; border: 0; border-radius: var(--radius-sm); padding: 12px 22px; cursor: pointer; }
.gyact-form button:hover { background: var(--navy-2); }
.form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; }
.form-notice.ok { background: #DDF5EF; color: #0B6E5C; }
.form-notice.err { background: #FBE4E4; color: #8A1F1F; }

/* ---------- Pie ---------- */
.site-footer { background: var(--ink); color: #B9C6D8; padding: 56px 0 32px; font-size: .95rem; }
.site-footer a { color: #D5DEEA; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-legal { border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; }

.not-found { padding: 120px 0; }
