/*
Theme Name: Grupo Grupo
Theme URI: https://grupogrupo.org
Author: Felipe Zegers
Description: Plataforma para intervenir la ciudad. Foto destacada en portada, stickers por campaña (categorías), grilla de fotos al azar, "Manda tu foto" y "Manda tu idea".
Version: 1.5.1
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: grupogrupo
*/

:root {
	--gg-y: #FFE500;
	--gg-f: #C8005F;
	--gg-fd: #8A0042;
	--gg-k: #111111;
	--gg-w: #FFFFFF;
	--gg-max: 1280px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--gg-y);
	color: var(--gg-f);
	font-family: Archivo, system-ui, -apple-system, sans-serif;
	font-size: 18px;
	line-height: 1.5;
}

a { color: var(--gg-f); }
a:hover { color: var(--gg-fd); }
img { max-width: 100%; height: auto; display: block; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100; top: 8px; left: 8px;
	background: var(--gg-f); color: var(--gg-y); padding: 10px 16px; border-radius: 8px;
}

.gg-wrap { max-width: var(--gg-max); margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Cabecera */
.gg-header {
	display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
	padding-top: 24px; padding-bottom: 24px;
}
.gg-logo { font-weight: 900; font-size: 24px; letter-spacing: -0.5px; text-decoration: none; }
.gg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.gg-nav a { text-decoration: none; font-weight: 600; font-size: 16px; }
.gg-nav a:hover { text-decoration: underline; }

/* Botones */
.gg-btn {
	display: inline-block; background: var(--gg-f); color: var(--gg-y); text-decoration: none;
	font: inherit; font-weight: 900; font-size: 17px; line-height: 1.1;
	padding: 13px 22px; border-radius: 999px; border: 3px solid var(--gg-f); cursor: pointer;
}
.gg-btn:hover { background: var(--gg-fd); border-color: var(--gg-fd); color: var(--gg-y); }
.gg-btn--line { background: transparent; color: var(--gg-f); }
.gg-btn--line:hover { background: var(--gg-f); border-color: var(--gg-f); color: var(--gg-y); }
.gg-linkbtn {
	background: none; border: 0; padding: 0; font: inherit; font-weight: 600;
	color: var(--gg-f); text-decoration: underline; cursor: pointer;
}

/* Portada: foto destacada */
.gg-hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-top: 8px; padding-bottom: 32px; }
.gg-hero-frame {
	flex: 0 1 800px; max-width: 800px; width: 100%; aspect-ratio: 4 / 3;
	border-radius: 16px; overflow: hidden; background: var(--gg-fd); margin: 0;
}
.gg-hero-frame a { display: block; width: 100%; height: 100%; }
.gg-hero-frame img, .gg-tile img { width: 100%; height: 100%; object-fit: cover; }
.gg-hero-frame.is-contain, .gg-tile.is-contain { background: var(--gg-k); }
.is-contain img { object-fit: contain; }
.gg-hero-text { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.gg-hero-main { display: flex; flex-direction: column; gap: 20px; }
.gg-kicker { font-size: 15px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--gg-fd); margin: 0; }
.gg-title { margin: 0; font-weight: 900; font-size: clamp(34px, 3.6vw, 48px); line-height: 0.98; letter-spacing: -1.5px; }
.gg-title--lead { font-size: clamp(30px, 3vw, 40px); line-height: 1.02; letter-spacing: -1px; }
.gg-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: gg; }
.gg-steps li { display: flex; gap: 12px; align-items: center; font-size: 20px; font-weight: 600; line-height: 1.2; }
.gg-steps li::before {
	counter-increment: gg; content: counter(gg);
	flex: 0 0 36px; height: 36px; border-radius: 999px; background: var(--gg-f); color: var(--gg-y);
	display: flex; align-items: center; justify-content: center; font-weight: 900;
}
.gg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.gg-hero-cap {
	border-top: 2px solid var(--gg-f); padding-top: 14px;
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; font-size: 16px;
}
.gg-hero-cap strong { font-weight: 900; }
.gg-hero-links { display: flex; flex-wrap: wrap; gap: 16px; font-weight: 600; }

/* Stickers (filtros) */
.gg-chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0 20px; }
.gg-chip {
	font: inherit; font-weight: 900; font-size: 16px; line-height: 1.1; padding: 10px 18px; border-radius: 999px;
	border: 3px solid var(--gg-f); background: transparent; color: var(--gg-f); cursor: pointer; transition: transform .15s;
}
.gg-chip:hover { transform: translateY(-2px); }
.gg-chip[aria-pressed="true"] { background: var(--gg-f); color: var(--gg-y); }
.gg-chip.is-dura { background: var(--gg-k); color: var(--gg-y); border-color: var(--gg-k); }
.gg-chip.is-dura[aria-pressed="true"] { background: var(--gg-y); color: var(--gg-k); }
.gg-chip.is-gente { background: var(--gg-w); border-color: var(--gg-w); }
.gg-chip.is-gente[aria-pressed="true"] { background: var(--gg-f); border-color: var(--gg-f); color: var(--gg-w); }
.gg-tag.is-gente { background: var(--gg-w); }

/* Grilla de fotos */
.gg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.gg-tile {
	position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
	background: var(--gg-fd); text-decoration: none; transition: transform .15s;
}
.gg-tile:hover { transform: scale(1.015); }
.gg-tile[hidden] { display: none; }
.gg-tile-cap { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.gg-tag { background: var(--gg-y); color: var(--gg-f); font-weight: 900; font-size: 13px; line-height: 1.2; padding: 4px 8px; border-radius: 6px; }
.gg-tile.is-dura .gg-tag { background: var(--gg-k); color: var(--gg-y); }
.gg-more { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; padding-top: 28px; }
.gg-more[hidden] { display: none; }
.gg-grid-section { padding-bottom: 64px; }

/* Bandas de color */
.gg-band { padding: 64px 0; }
.gg-band .gg-wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.gg-band-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.gg-band-form { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gg-band--f { background: var(--gg-f); color: var(--gg-y); }
.gg-band--f p { color: var(--gg-w); }
.gg-band--f a { color: var(--gg-y); }
.gg-band--f .gg-btn { background: var(--gg-y); color: var(--gg-f); border-color: var(--gg-y); }
.gg-band--w { background: var(--gg-w); color: var(--gg-f); }
.gg-band--w p { color: var(--gg-fd); }
.gg-band--d { background: var(--gg-fd); color: var(--gg-y); }
.gg-band--d p { color: var(--gg-w); }
.gg-band--d .gg-btn { background: var(--gg-y); color: var(--gg-fd); border-color: var(--gg-y); font-size: 22px; padding: 18px 40px; }
.gg-band--d .gg-btn:hover { background: var(--gg-w); border-color: var(--gg-w); color: var(--gg-fd); }
.gg-band--k { background: var(--gg-k); color: var(--gg-y); }
.gg-band--k p { color: var(--gg-w); }
.gg-band--k a { color: var(--gg-y); }
.gg-band--k .gg-wrap { flex-direction: column; gap: 20px; }
.gg-h2 { margin: 0; font-weight: 900; font-size: clamp(40px, 5vw, 64px); line-height: 0.95; letter-spacing: -2px; }
.gg-big { margin: 0; font-weight: 900; font-size: clamp(32px, 4.5vw, 56px); line-height: 1; letter-spacing: -1.5px; max-width: 1000px; }
.gg-band p { margin: 0; font-size: 20px; line-height: 1.45; max-width: 640px; }
.gg-band p.gg-big { font-size: clamp(32px, 4.5vw, 56px); line-height: 1; max-width: 1000px; color: var(--gg-y); }

/* Formularios de plugins dentro de las bandas */
.gg-band-form input[type="text"], .gg-band-form input[type="email"], .gg-band-form input[type="url"],
.gg-band-form input[type="file"], .gg-band-form textarea, .gg-band-form select {
	font: inherit; font-size: 18px; width: 100%; padding: 12px 14px; border-radius: 12px;
	border: 2px solid currentColor; background: var(--gg-w); color: var(--gg-fd);
}
.gg-band-form input[type="submit"], .gg-band-form button[type="submit"] {
	font: inherit; font-weight: 900; font-size: 18px; padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--gg-f); color: var(--gg-y);
}
.gg-band--f .gg-band-form input[type="submit"], .gg-band--f .gg-band-form button[type="submit"] { background: var(--gg-y); color: var(--gg-f); }

/* Página Únete */
.gg-unete-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gg-card { border-radius: 16px; padding: 32px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.gg-card p { margin: 0; font-size: 18px; line-height: 1.45; }
.gg-h3 { margin: 0; font-weight: 900; font-size: clamp(30px, 3vw, 40px); line-height: 1; letter-spacing: -1px; }
.gg-small { font-size: 15px !important; }
.gg-btn--ghost { background: transparent; color: var(--gg-y); border-color: var(--gg-y); }
.gg-band--f .gg-btn--ghost { background: transparent; color: var(--gg-y); border-color: var(--gg-y); }
.gg-btn--ghost:hover, .gg-band--f .gg-btn--ghost:hover { background: var(--gg-y); color: var(--gg-f); border-color: var(--gg-y); }

/* Formularios propios */
.gg-form { display: flex; flex-direction: column; gap: 14px; }
.gg-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.gg-form label.gg-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.gg-form label.gg-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.gg-form p { margin: 0; }
.gg-form .gg-btn { font-size: 18px; }
.gg-band--f .gg-form .gg-btn { background: var(--gg-y); color: var(--gg-f); border-color: var(--gg-y); }
.gg-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gg-form-msg { margin: 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; font-size: 16px !important; }
.gg-form-msg.is-ok { background: var(--gg-y); color: var(--gg-k) !important; }
.gg-form-msg.is-error { background: var(--gg-k); color: var(--gg-y) !important; }

/* Formularios Contact Form 7 */
.gg-band-form .wpcf7 form { display: flex; flex-direction: column; gap: 14px; }
.gg-band-form .wpcf7 p { margin: 0; }
.gg-band-form .wpcf7 label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 16px; }
.gg-band-form .wpcf7-list-item { margin: 0; }
.gg-band-form .wpcf7-list-item label { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.gg-band-form .wpcf7-not-valid-tip { color: inherit; font-size: 14px; font-weight: 600; }
.gg-band-form .wpcf7 form .wpcf7-response-output { margin: 0; padding: 10px 14px; border-radius: 10px; border-width: 2px; font-weight: 600; }
.gg-band-form .wpcf7-spinner { margin: 0 0 0 10px; }

/* Página Descargas */
.gg-descargas { display: flex; flex-direction: column; gap: 24px; padding-bottom: 64px; }
.gg-descarga { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: center;
	background: var(--gg-w); border-radius: 16px; padding: 28px; scroll-margin-top: 24px; }
.gg-descarga-img { background: var(--gg-y); border-radius: 12px; padding: 24px; display: flex; align-items: center; justify-content: center; }
.gg-descarga-img img { width: 100%; height: auto; max-height: 280px; object-fit: contain; }
.gg-descarga-info { display: flex; flex-direction: column; gap: 14px; }
.gg-descarga-info p { margin: 0; color: var(--gg-fd); font-size: 18px; }
.gg-medida { font-weight: 600; }
.gg-descarga-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gg-descarga-links li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.gg-descarga-links .gg-btn { min-width: 220px; text-align: center; font-size: 16px; padding: 11px 18px; }
.gg-descarga-links span { font-size: 15px; color: var(--gg-fd); }
.gg-descarga:target { outline: 4px solid var(--gg-f); }

/* Páginas internas */
.gg-page { padding-top: 24px; padding-bottom: 64px; }
.gg-page-head { display: flex; flex-direction: column; gap: 12px; padding-bottom: 24px; }
.gg-meta { font-size: 16px; color: var(--gg-fd); display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.gg-content { max-width: 800px; color: var(--gg-fd); }
.gg-content h2, .gg-content h3 { color: var(--gg-f); font-weight: 900; line-height: 1.1; }
.gg-content img { border-radius: 12px; margin: 16px 0; }
.gg-content iframe { max-width: 100%; }
.gg-content .wp-caption { max-width: 100%; }
.gg-content .wp-caption-text { font-size: 14px; }
.gg-content .alignleft { float: left; margin: 0 20px 12px 0; }
.gg-content .alignright { float: right; margin: 0 0 12px 20px; }
.gg-content .aligncenter { margin-left: auto; margin-right: auto; }
.gg-single-photo { max-width: 800px; aspect-ratio: auto; margin-bottom: 24px; }
.gg-single-photo img { width: 100%; height: auto; object-fit: initial; border-radius: 16px; }
.gg-postnav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; font-weight: 600; }
.gg-sticker-desc { max-width: 800px; color: var(--gg-fd); font-size: 20px; }
.gg-sticker-desc a { font-weight: 900; }

/* Pie */
.gg-footer {
	display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
	font-size: 14px; color: var(--gg-fd); padding-top: 32px; padding-bottom: 32px;
}
.gg-footer a { color: var(--gg-fd); }

@media (max-width: 900px) {
	.gg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gg-unete-grid { grid-template-columns: 1fr; }
	.gg-descarga { grid-template-columns: 1fr; padding: 20px; gap: 20px; }
	.gg-hero-frame { flex-basis: 100%; }
}
@media (max-width: 600px) {
	.gg-wrap { padding-left: 18px; padding-right: 18px; }
	.gg-grid { gap: 10px; }
	.gg-steps li { font-size: 18px; }
	.gg-band { padding: 48px 0; }
}

/* Ciudad de cada foto */
.gg-hero-city { font-weight: 600; }
.gg-tile-cap { flex-direction: column; align-items: flex-start; }
.gg-city { max-width: 100%; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.2; padding: 3px 7px; border-radius: 5px; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; }
.gg-tile:hover .gg-city, .gg-tile:focus-visible .gg-city { opacity: 1; transform: none; }
@media (hover: none) { .gg-city { display: none; } }
