@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300..700&display=swap');

/* Colores reutilizables */
.red { color: #ff4136; }
.blue { color: #4a90e2; }
.green { color: #6aa84f; }
.cake { color: #fbbb77; }
.purple { color: #8b5cf6; }
.yellow { color: #f1c232; }
.sky { color: #86bdff; }
.eclipse { color: #2966ad; }

/* Base general */
html {
	scroll-behavior: smooth;
}

body {
	background-color: #fffafb;
	color: #737373;
	font-family: 'Fredoka', sans-serif;
	font-size: 30px;
	font-weight: 700;
	margin: 0;
	text-align: center;
}

p {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

h1 {
	font-size: clamp(44px, 10vw, 116px);
	line-height: 1.05;
	margin: 0;
}

h2 {
	font-size: clamp(36px, 8vw, 95px);
	line-height: 1.08;
	margin: 12px 0 14px;
}

main > section {
	border-bottom: 3.5px solid #d9d9d9;
	padding: 56px 24px 64px;
	scroll-margin-top: 79px;
}

main > section:last-child {
	border-bottom: none;
}

main > section > p {
	margin-top: 0;
	margin-bottom: 32px;
	max-width: 820px;
}

.banner {
	padding-top: 48px;
	padding-bottom: 64px;
}

.banner p {
	margin-top: 6px;
	margin-bottom: 28px;
	max-width: none;
}

/* Header */
header {
	position: sticky;
	top: 0;
	z-index: 100;
	background-color: white;
	border-bottom: 2px solid #d9d9d9;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 20px;
	height: 79px;
	padding-right: 24px;
	width: 100%;
	transition: box-shadow 0.25s ease;
}

header.scrolled {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

header a {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

header > a {
	flex-shrink: 0;
	margin-right: auto;
	transition: transform 0.2s ease;
}

header > a:hover {
	transform: scale(1.02);
}

header img {
	height: 59px;
	padding-left: 37px;
	padding-right: 10px;
}

.brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: fit-content;
}

.title {
	font-size: 37.5px;
	line-height: 1;
}

.sub-title {
	font-size: 18px;
	margin-top: -3px;
}

header nav {
	display: flex;
	align-items: center;
	margin-left: auto;
	margin-right: 12px;
}

.nav {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav a {
	display: flex;
	align-items: center;
	color: #737373;
	line-height: 1.2;
	padding: 8px 14px;
	border-radius: 8px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
	background-color: rgba(125, 185, 255, 0.18);
	color: #4098ff;
	transform: translateY(-2px);
}

.nav a.active {
	background-color: rgba(125, 185, 255, 0.35);
	color: #4098ff;
}

.topbar-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #f4f6fb;
	border: 1px solid #eaedf4;
	border-radius: 8px;
	color: #737373;
	cursor: pointer;
	font-family: inherit;
	font-size: 18px;
	font-weight: 700;
	height: 38px;
	width: 38px;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.icon-btn:hover {
	background-color: rgba(125, 185, 255, 0.25);
	border-color: #4a90e2;
	color: #4098ff;
	transform: scale(1.05);
}

#menu-btn {
	display: none;
}

/* Botones */
.btn-red,
.btn-blue,
.btn-black {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	gap: 8px;
	color: white;
	cursor: pointer;
	line-height: 1.2;
	margin: 0 6px 10px;
	padding: 12px 24px;
	border-radius: 18px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-red:hover,
.btn-blue:hover,
.btn-black:hover {
	transform: translateY(-3px) scale(1.02);
	box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
	filter: brightness(1.06);
}

.btn-red:active,
.btn-blue:active,
.btn-black:active {
	transform: translateY(0) scale(0.98);
	box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.btn-red {
	background-color: #ff4136;
	border: 3px solid #9b3f1c;
}

.btn-blue {
	background-color: #4a90e2;
	border: 3px solid #2966ad;
}

.btn-black {
	background-color: black;
	border: 3px solid #737373;
}

/* Estadísticas */
.stats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	list-style: none;
	margin: 34px 0 0;
	padding: 0;
}

.stats li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: white;
	border: 3px solid #d9d9d9;
	border-radius: 18px;
	box-sizing: border-box;
	font-size: 25px;
	gap: 6px;
	padding: 18px 28px;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stats li:hover {
	border-color: #86bdff;
	box-shadow: 0 8px 20px rgba(74, 144, 226, 0.12);
	transform: translateY(-4px);
}

.dato {
	font-size: 48px;
	line-height: 1.1;
}

/* Secciones */
.section-tag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background-color: rgba(125, 185, 255, 0.35);
	border: 3px solid #4a90e2;
	border-radius: 35px;
	color: #4098ff;
	font-size: 22px;
	line-height: 1.2;
	padding: 9px 22px;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.section-tag:hover {
	background-color: rgba(125, 185, 255, 0.48);
	transform: scale(1.03);
}

/* Cuadros de Divisiones y Juegos Destacados */
.div-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0 auto 32px;
	max-width: 1120px;
}

.div-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: white;
	border: 3px solid #d9d9d9;
	border-radius: 22px;
	box-sizing: border-box;
	color: #737373;
	gap: 10px;
	padding: 26px 22px;
	text-decoration: none;
	transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

a.div-card:hover,
.div-card:hover {
	border-color: #86bdff;
	box-shadow: 0 10px 24px rgba(74, 144, 226, 0.14);
	transform: translateY(-5px);
}

a.div-card:active {
	transform: translateY(-1px) scale(0.99);
}

.div-card h3 {
	font-size: 32px;
	line-height: 1.15;
	margin: 0;
}

.div-card p {
	font-size: 20px;
	line-height: 1.3;
	margin-top: 4px;
	margin-bottom: 10px;
}

.div-emoji {
	font-size: 56px;
	line-height: 1;
	margin: 4px 0;
	transition: transform 0.25s ease;
}

.div-card:hover .div-emoji,
.list-grid li:hover .div-emoji {
	transform: scale(1.12) rotate(-4deg);
}

.div-chips {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 4px 0 8px;
}

.div-chips span {
	background-color: #fffafb;
	border: 2px solid #d9d9d9;
	border-radius: 999px;
	color: #737373;
	font-size: 13px;
	padding: 4px 12px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.div-card:hover .div-chips span {
	background-color: #f4f8ff;
	border-color: #b7d7ff;
}

.badge {
	background-color: rgba(251, 187, 119, 0.25);
	border: 2px solid #fbbb77;
	border-radius: 999px;
	color: #e69138;
	font-size: 14px;
	padding: 4px 14px;
}

.autor {
	font-size: 15px;
	margin-top: -6px;
}

.div-more {
	color: #4098ff;
	font-size: 20px;
	margin-top: auto;
	padding-top: 10px;
	transition: transform 0.2s ease, color 0.2s ease;
}

.div-card:hover .div-more {
	color: #2966ad;
	transform: translateX(4px);
}

/* Lista horizontal de Apps */
.line-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin: 0 auto 32px;
	max-width: 980px;
}

.line-grid .div-card {
	display: grid;
	grid-template-columns: auto 1fr auto;
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 20px;
	row-gap: 6px;
	padding: 18px 26px;
	text-align: left;
	width: 100%;
}

.line-grid .div-emoji {
	grid-column: 1;
	grid-row: 1 / 3;
	font-size: 52px;
	margin: 0;
}

.line-grid .div-left {
	grid-column: 2;
	grid-row: 1;
	min-width: 0;
}

.line-grid .div-card h3 {
	font-size: 26px;
	text-align: left;
}

.line-grid .div-card p {
	font-size: 18px;
	margin: 2px 0 0;
	text-align: left;
}

.line-grid .div-right {
	grid-column: 3;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	align-self: start;
	gap: 6px;
}

.line-grid .autor {
	margin-top: 0;
	white-space: nowrap;
}

.line-grid .div-more {
	grid-column: 2;
	grid-row: 2;
	justify-self: center;
	margin-top: 2px;
	padding-top: 0;
	white-space: nowrap;
}

/* Cuadrícula 3x3 de Tecnologías */
.list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
	list-style: none;
	margin: 0 auto 32px;
	max-width: 1060px;
	padding: 0;
}

.list-grid li {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background-color: white;
	border: 3px solid #d9d9d9;
	border-radius: 20px;
	box-sizing: border-box;
	gap: 8px;
	padding: 22px 18px;
	transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.list-grid li:hover {
	border-color: #6aa84f;
	box-shadow: 0 8px 20px rgba(106, 168, 79, 0.14);
	transform: translateY(-4px);
}

.list-grid .div-emoji {
	font-size: 42px;
	margin: 0;
}

.list-grid h3 {
	font-size: 28px;
	line-height: 1.15;
	margin: 0;
}

.list-grid p {
	font-size: 18px;
	line-height: 1.25;
	margin: 0;
}

/* Sobre nosotros (#div-about + Misión) */
#div-about {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	align-items: stretch;
	gap: 20px;
	margin: 0 auto 20px;
	max-width: 1060px;
}

#div-about .div-left .line-grid {
	gap: 16px;
	height: 100%;
	margin: 0;
	max-width: none;
}

#div-about .div-left .div-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	flex: 1;
	gap: 18px;
	padding: 18px 24px;
	text-align: left;
}

#div-about .div-left .div-emoji {
	flex-shrink: 0;
	font-size: 48px;
	margin: 0;
}

#div-about .div-left h3 {
	font-size: 28px;
	text-align: left;
}

#div-about .div-left p {
	font-size: 18px;
	margin: 2px 0 0;
	text-align: left;
}

#div-about .div-right.div-grid {
	display: flex;
	height: 100%;
	margin: 0;
	max-width: none;
}

#div-about .div-right .div-card {
	justify-content: center;
	gap: 12px;
	padding: 28px 24px;
	width: 100%;
}

#div-about .div-right .div-emoji {
	font-size: 54px;
}

#div-about .div-right h3 {
	font-size: 32px;
}

#div-about .div-right p {
	font-size: 18px;
	line-height: 1.35;
	margin: 4px 0 0;
	max-width: 360px;
}

#about > .line-grid {
	margin: 0 auto;
	max-width: 1060px;
}

#about > .line-grid .div-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 22px;
	padding: 22px 28px;
	text-align: left;
}

#about > .line-grid .div-emoji {
	flex-shrink: 0;
	font-size: 54px;
	margin: 0;
}

#about > .line-grid h3 {
	font-size: 30px;
	text-align: left;
}

#about > .line-grid p {
	font-size: 18px;
	line-height: 1.3;
	margin: 4px 0 0;
	max-width: none;
	text-align: left;
}

/* Unirse al equipo (#join-team) */
#join-team {
	background-color: white;
	border: 3px solid #d9d9d9;
	border-radius: 24px;
	box-sizing: border-box;
	margin: 64px auto;
	max-width: 1220px;
	padding: 52px 44px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#join-team:hover {
	border-color: #fbbb77;
	box-shadow: 0 10px 26px rgba(241, 194, 50, 0.12);
}

#join-team h2 {
	font-size: clamp(34px, 5.2vw, 76px);
	line-height: 1.1;
	margin-top: 0;
	margin-bottom: 18px;
	white-space: nowrap;
}

#join-team p {
	font-size: 22px;
	line-height: 1.35;
	margin-bottom: 28px;
	max-width: 860px;
}

/* Contacto (#contacto) */
#contacto .line-grid {
	max-width: 960px;
}

#contacto .line-grid .div-card {
	grid-template-columns: auto 1fr;
	grid-template-rows: auto auto auto;
	row-gap: 4px;
	padding: 18px 26px;
}

#contacto .line-grid .div-emoji {
	grid-column: 1;
	grid-row: 1 / 4;
	font-size: 48px;
}

#contacto .line-grid h3 {
	grid-column: 2;
	grid-row: 1;
}

#contacto .line-grid p {
	grid-column: 2;
	grid-row: 2;
	margin-left: 0;
	margin-right: 0;
}

#contacto .line-grid .div-more {
	grid-column: 2;
	grid-row: 3;
	justify-self: center;
	margin-top: 6px;
}

/* Footer */
footer {
	background-color: black;
	box-sizing: border-box;
	color: white;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	padding: 36px 48px 28px;
	width: 100%;
}

footer .div-left {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
	text-align: left;
}

footer h4 {
	font-size: 38px;
	line-height: 1.1;
	margin: 0;
}

footer p {
	color: white;
	font-size: 18px;
	line-height: 1.4;
	margin: 0;
	max-width: none;
	text-align: left;
}

footer .div-right {
	display: flex;
	align-items: center;
}

footer img {
	height: 92px;
	width: auto;
	transition: transform 0.25s ease;
}

footer img:hover {
	transform: scale(1.06) rotate(-3deg);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
	border-top: 2px solid #545454;
	color: white;
	font-size: 18px;
	line-height: 1.35;
	margin-top: 28px;
	padding-top: 20px;
	width: 100%;
}

/* V2 - Modo oscuro + Header destacado */

:root {
  --v2-bg: #fffafb;
  --v2-bg-soft: #f4f6fb;
  --v2-card: #ffffff;
  --v2-border: #d9d9d9;
  --v2-text: #737373;
  --v2-heading: #1f2937;
  --v2-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] {
  --v2-bg: #0b0f19;
  --v2-bg-soft: #121829;
  --v2-card: #151b2c;
  --v2-border: rgba(255, 255, 255, 0.08);
  --v2-text: #cbd5e1;
  --v2-heading: #f1f5f9;
  --v2-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

body {
  background-color: var(--v2-bg);
  color: var(--v2-text);
  transition: background-color 0.3s ease, color 0.3s ease;
}

main > section {
  border-bottom-color: var(--v2-border);
}

.stats li,
.div-card,
.list-grid li,
#join-team {
  background-color: var(--v2-card);
  border-color: var(--v2-border);
  color: var(--v2-text);
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.div-chips span {
  background-color: var(--v2-bg);
  border-color: var(--v2-border);
  color: var(--v2-text);
}

.icon-btn {
  background-color: var(--v2-bg-soft);
  border-color: var(--v2-border);
  color: var(--v2-text);
}

header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 2px solid #d9d9d9;
  position: sticky;
  top: 0;
  z-index: 100;
}

[data-theme="dark"] header {
  background-color: rgba(11, 15, 25, 0.85);
  border-bottom-color: var(--v2-border);
}

[data-theme="dark"] header nav {
  background-color: rgba(11, 15, 25, 0.95);
  border-bottom-color: var(--v2-border);
}

[data-theme="dark"] .nav a {
  color: var(--v2-text);
}

[data-theme="dark"] .nav a:hover {
  background-color: rgba(125, 185, 255, 0.18);
  color: #4098ff;
}

[data-theme="dark"] .nav a.active {
  background-color: rgba(125, 185, 255, 0.35);
  color: #4098ff;
}

[data-theme="dark"] .icon-btn {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--v2-border);
  color: var(--v2-text);
}

[data-theme="dark"] .icon-btn:hover {
  background-color: rgba(125, 185, 255, 0.25);
  border-color: #4a90e2;
  color: #4098ff;
}

[data-theme="dark"] footer {
  background-color: #000000;
}

html {
  transition: background-color 0.3s ease;
}

body, header, .div-card, .stats li, .list-grid li, #join-team, .icon-btn {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

/* Colores de iconos (reales) */
.fa-x-twitter { color: #000000; }
.fa-discord { color: #5865F2; }
.fa-envelope { color: #737373; }
.fa-youtube { color: #FF0000; }
.fa-whatsapp { color: #25D366; }
.fa-facebook { color: #1877F2; }
.fa-instagram { color: #E4405F; }

.devicon-html5-plain { color: #E34F26; }
.devicon-css3-plain { color: #1572B6; }
.devicon-javascript-plain { color: #F7DF1E; }
.devicon-godot-plain { color: #478CBF; }
.devicon-rust-plain { color: #CE422B; }
.devicon-python-plain { color: #306998; }
.devicon-csharp-plain { color: #239120; }
.devicon-unity-plain { color: #000000; }
.devicon-kotlin-plain { color: #7F52FF; }

[data-theme="dark"] .fa-x-twitter,
[data-theme="dark"] .devicon-unity-plain,
[data-theme="dark"] .devicon-rust-plain {
  color: #ffffff;
}

/* Responsive */
@media (max-width: 1100px) {
	#menu-btn {
		display: inline-flex;
	}

	header nav {
		display: none;
		position: absolute;
		top: 79px;
		left: 0;
		width: 100%;
		background-color: white;
		border-bottom: 2px solid #d9d9d9;
		box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
		padding: 14px 20px;
		box-sizing: border-box;
	}

	header nav.open {
		display: block;
	}

	header nav.open .nav {
		flex-direction: column;
		align-items: stretch;
		gap: 6px;
	}

	header nav.open .nav a {
		justify-content: center;
		padding: 10px 16px;
	}
}

@media (max-width: 900px) {
	.div-grid,
	.list-grid,
	#div-about {
		grid-template-columns: 1fr;
		max-width: 480px;
	}

	#about > .line-grid {
		max-width: 480px;
	}

	.line-grid .div-card {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 10px;
		padding: 20px 18px;
		text-align: center;
	}

	.line-grid .div-card h3,
	.line-grid .div-card p,
	#div-about .div-left .div-card,
	#div-about .div-left h3,
	#div-about .div-left p,
	#about > .line-grid .div-card,
	#about > .line-grid h3,
	#about > .line-grid p {
		text-align: center;
	}

	#div-about .div-left .div-card,
	#about > .line-grid .div-card {
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 768px) {
	body {
		font-size: 20px;
	}

	main > section {
		padding: 40px 16px 48px;
	}

	#join-team {
		margin: 40px 16px;
		padding: 36px 20px;
	}

	#join-team h2 {
		font-size: clamp(28px, 7.5vw, 44px);
		white-space: normal;
	}

	.banner {
		padding-top: 32px;
		padding-bottom: 44px;
	}

	footer {
		flex-direction: column;
		align-items: center;
		gap: 20px;
		padding: 32px 20px 24px;
	}

	footer .div-left,
	footer p {
		align-items: center;
		text-align: center;
	}

	.footer-bottom {
		flex-direction: column;
		justify-content: center;
		text-align: center;
	}
}