/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
	--bg: #071222;
	--bg-alt: #0e1f39;
	--surface: #10294a;
	--accent: #31c5f4;
	--text: #f4f7fb;
	--muted: #a9bbd4;
	--cta: #ffd166;
	--radius: 18px;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	color: var(--text);
	font-family: "Segoe UI", "Trebuchet MS", sans-serif;
	background: radial-gradient(circle at 20% 0%, #103868, var(--bg));
}

a {
	color: inherit;
	text-decoration: none;
}

.site-shell {
	min-height: 100vh;
}

.container {
	width: min(1180px, 92vw);
	margin: 0 auto;
}

.main-header {
	position: sticky;
	top: 0;
	z-index: 30;
	backdrop-filter: blur(10px);
	background: rgba(6, 15, 28, 0.78);
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-toggle {
	display: none;
	margin-left: auto;
	border: 1px solid rgba(255, 255, 255, 0.18);
	background: rgba(255, 255, 255, 0.08);
	color: var(--text);
	padding: 8px 12px;
	border-radius: 10px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.header-inner {
	min-height: 76px;
	display: flex;
	align-items: center;
	gap: 20px;
}

.brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brand-mark {
	width: 34px;
	height: 34px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	color: #03203f;
	background: linear-gradient(130deg, #ffffff, var(--accent));
}

.brand-text {
	font-weight: 700;
	letter-spacing: 0.3px;
}

.main-nav {
	display: flex;
	gap: 16px;
	font-weight: 600;
	font-size: 14px;
}

.main-nav a {
	color: var(--muted);
}

.main-nav a:hover {
	color: var(--text);
}

.header-tools {
	margin-left: auto;
	display: flex;
	gap: 10px;
	align-items: center;
}

.quick-link {
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: var(--text);
	background: transparent;
	border-radius: 999px;
	font-weight: 600;
	padding: 8px 12px;
	cursor: pointer;
}

.search-input {
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(0, 0, 0, 0.22);
	color: var(--text);
	border-radius: 999px;
	padding: 8px 12px;
}

.mobile-nav {
	display: none;
	background: rgba(2, 9, 20, 0.97);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-inner {
	display: grid;
	gap: 10px;
	padding: 14px 0 18px;
}

.mobile-nav a {
	padding: 9px 2px;
	color: var(--muted);
	font-weight: 600;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-quick-links {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background: rgba(3, 9, 18, 0.82);
	backdrop-filter: blur(8px);
	display: none;
	align-items: flex-start;
	padding-top: 90px;
}

.search-overlay.is-open {
	display: flex;
}

.search-panel {
	background: linear-gradient(140deg, #0f2644, #091629);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	padding: 24px;
}

.search-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
}

.search-head h3 {
	margin: 0;
	font-size: clamp(24px, 5vw, 34px);
}

.search-form {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-form .search-input {
	flex: 1;
	padding: 12px 14px;
	background: rgba(0, 0, 0, 0.25);
}

.editor-paragraph,
.noticia-parrafo {
	line-height: 1.85;
	font-size: 1.08rem;
	color: #e5e7eb;
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;
}

.news-editor p.is-editor-empty:first-child::before {
	content: attr(data-placeholder);
	color: #6b7280;
	float: left;
	height: 0;
	pointer-events: none;
	user-select: none;
}

.editor-paragraph-color-default,
.noticia-parrafo-color-default { color: #e5e7eb; }
.editor-paragraph-color-primary,
.noticia-parrafo-color-primary { color: #31c5f4; }
.editor-paragraph-color-secondary,
.noticia-parrafo-color-secondary { color: #ffd166; }
.editor-paragraph-color-gray,
.noticia-parrafo-color-gray { color: #d1d5db; }
.editor-paragraph-color-black,
.noticia-parrafo-color-black { color: #111827; }
.editor-paragraph-color-custom,
.noticia-parrafo-color-custom { color: var(--paragraph-color, #e5e7eb); }

.editor-intro,
.noticia-intro {
	font-size: 1.25rem;
	line-height: 1.7;
	font-weight: 600;
	color: #f3f4f6;
}

.editor-dropcap::first-letter,
.noticia-dropcap::first-letter {
	float: left;
	font-size: 4rem;
	line-height: 0.86;
	font-weight: 900;
	margin: 0.08em 0.42rem 0 0;
	padding: 0.2rem 0.45rem;
	border-radius: 0.35rem;
	background: rgba(255, 255, 255, 0.08);
}

.editor-dropcap,
.noticia-dropcap {
	display: block;
	overflow: hidden;
}

.editor-dropcap-primary::first-letter,
.noticia-dropcap-primary::first-letter { color: #31c5f4; }
.editor-dropcap-secondary::first-letter,
.noticia-dropcap-secondary::first-letter { color: #ffd166; }
.editor-dropcap-gray::first-letter,
.noticia-dropcap-gray::first-letter { color: #d1d5db; }
.editor-dropcap-black::first-letter,
.noticia-dropcap-black::first-letter { color: #111827; background: rgba(255, 255, 255, 0.7); }
.editor-dropcap-custom::first-letter,
.noticia-dropcap-custom::first-letter { color: var(--dropcap-color, #31c5f4); }

.news-editor ul[data-type="taskList"],
.task-list {
	list-style: disc !important;
	padding-left: 1.5rem !important;
	margin: 1rem 0 !important;
}

.news-editor ul:not([data-type="taskList"]) {
	list-style: disc !important;
	list-style-position: outside !important;
	padding-left: 1.5rem !important;
	margin: 1rem 0 !important;
}

.news-editor ol {
	list-style: decimal !important;
	list-style-position: outside !important;
	padding-left: 1.5rem !important;
	margin: 1rem 0 !important;
}

.news-editor li {
	margin: 0.35rem 0;
	display: list-item !important;
}

.news-editor li[data-type="taskItem"],
.task-item {
	display: list-item !important;
	margin: 0.35rem 0;
	list-style: disc !important;
}

.news-editor li[data-type="taskItem"] > label,
.task-item > label {
	display: inline;
	cursor: text;
}

.news-editor li[data-type="taskItem"] > label > input[type="checkbox"],
.task-item > label > input[type="checkbox"] {
	display: none !important;
}

.news-editor li[data-type="taskItem"] > div,
.task-item > div {
	display: inline;
}

.news-editor blockquote {
	margin: 1.4rem 0;
	padding: 1rem 1.2rem;
	border-left: 4px solid rgba(255, 255, 255, 0.22);
	border-radius: 1rem;
	background: rgba(255, 255, 255, 0.05);
	color: #f3f4f6;
	font-style: italic;
	position: relative;
}

.news-editor blockquote::before {
	content: "\201C";
	position: absolute;
	top: -0.4rem;
	left: 0.8rem;
	font-size: 3rem;
	line-height: 1;
	color: rgba(255, 255, 255, 0.22);
}

.news-editor h2.editor-heading,
.news-editor h3.editor-heading {
	display: block;
}

.editor-heading,
.noticia-heading {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 900;
	line-height: 1.2;
	letter-spacing: -0.01em;
	padding: 0.1rem 0;
}

.editor-heading-primary,
.noticia-heading-primary { color: #31c5f4; }
.editor-heading-secondary,
.noticia-heading-secondary { color: #ffd166; }
.editor-heading-gray,
.noticia-heading-gray { color: #d1d5db; }
.editor-heading-black,
.noticia-heading-black { color: #111827; }
.editor-heading-custom,
.noticia-heading-custom { color: var(--heading-color, #e5e7eb); }

.editor-heading-normal,
.noticia-heading-normal { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.editor-heading-large,
.noticia-heading-large { font-size: clamp(1.9rem, 3.5vw, 2.7rem); }
.editor-heading-huge,
.noticia-heading-huge { font-size: clamp(2.2rem, 4vw, 3.1rem); }

.editor-heading-underline,
.noticia-heading-underline { text-decoration: underline; text-underline-offset: 0.3rem; }
.editor-heading-overline,
.noticia-heading-overline { text-decoration: overline; }

.editor-heading-bg-solid,
.noticia-heading-bg-solid {
	padding: 0.45rem 0.8rem;
	border-radius: 0.7rem;
	background: rgba(255, 255, 255, 0.08);
	display: inline-block;
}

.noticia-galeria {
	margin: 2.2rem 0;
	display: grid;
	gap: 0.9rem;
}

.noticia-galeria-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 0.8rem;
}

.noticia-galeria-item {
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	scroll-snap-align: start;
}

.noticia-galeria-item img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
}

.noticia-galeria-item figcaption,
.noticia-galeria-caption {
	font-size: 0.78rem;
	padding: 0.5rem 0.65rem;
	color: #9ca3af;
}

.noticia-video {
	margin: 2.2rem 0;
	display: grid;
	gap: 0.7rem;
}

.noticia-video-player iframe,
.noticia-video-player video {
	width: 100%;
	aspect-ratio: 16/9;
	border: 0;
	border-radius: 16px;
	background: #020617;
}

.news-editor [data-video-block] iframe,
.news-editor [data-video-block] video {
	width: 100%;
	aspect-ratio: 16/9;
	border: 0;
	border-radius: 0.75rem;
	background: #020617;
}

.noticia-video-centered .noticia-video-player {
	max-width: 860px;
	margin: 0 auto;
}

.noticia-video-caption {
	font-size: 0.78rem;
	color: #9ca3af;
}

.hero {
	padding: 96px 0;
	background-size: cover;
	background-position: center;
}

.hero-content {
	max-width: 740px;
	animation: rise-in 0.7s ease-out;
}

.hero h1 {
	margin: 10px 0 6px;
	font-size: clamp(34px, 7vw, 62px);
	line-height: 1.03;
}

.hero h2 {
	margin: 0;
	color: var(--accent);
	font-size: clamp(20px, 4vw, 30px);
}

.hero-description {
	color: var(--muted);
	max-width: 56ch;
	line-height: 1.7;
}

.btn-primary {
	display: inline-flex;
	margin-top: 16px;
	background: linear-gradient(130deg, var(--cta), #ffe59a);
	color: #2a230f;
	font-weight: 700;
	border-radius: 999px;
	padding: 12px 18px;
}

.section {
	padding: 60px 0;
}

.section-head {
	margin-bottom: 24px;
}

.kicker {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 11px;
	color: var(--accent);
}

.section-head h3 {
	margin: 8px 0 0;
	font-size: clamp(28px, 5vw, 42px);
}


.next-match {
	background: linear-gradient(130deg, rgba(26, 42, 76, 0.95), rgba(8, 63, 123, 0.88));
	border-radius: var(--radius);
	padding: 20px;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 10px;
	align-items: center;
}

.team {
	font-size: clamp(20px, 3vw, 30px);
	font-weight: 700;
	text-align: center;
}

.team-with-badge {
	display: grid;
	justify-items: center;
	gap: 8px;
}

.team-badge {
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background-position: center;
	background-size: contain;
	background-repeat: no-repeat;
	background-color: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.versus {
	color: var(--accent);
	font-weight: 800;
}

.match-meta {
	grid-column: 1/-1;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 14px;
	justify-content: center;
	color: var(--muted);
	font-size: 14px;
}


.news-layout {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 16px;
}

.news-main,
.news-card,
.calendar-item {
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.02);
}

.news-image,
.news-card-image {
	height: 230px;
	background-position: center;
	background-size: cover;
}

.news-copy,
.news-card div {
	padding: 14px;
}

.news-card {
	display: grid;
	grid-template-columns: 130px 1fr;
	transition: transform 0.2s ease;
}

.news-card:hover {
	transform: translateY(-4px);
}

.news-card-image {
	height: auto;
	min-height: 110px;
}

.news-cards {
	display: grid;
	gap: 12px;
}

.calendario {
	background: linear-gradient(180deg, rgba(0, 20, 40, 0.5), rgba(0, 0, 0, 0));
}

.calendar-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}

.calendar-item {
	padding: 16px;
}

.calendar-item-partido {
	background: rgba(49, 197, 244, 0.08);
}

.calendar-item-evento {
	background: rgba(255, 209, 102, 0.08);
}

.calendar-item-actividad {
	background: rgba(153, 247, 163, 0.08);
}

.calendar-teams {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0;
	color: var(--muted);
	font-weight: 700;
}

.calendar-badge {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	background-color: rgba(255, 255, 255, 0.12);
}

.calendar-item small {
	color: var(--accent);
	font-weight: 700;
}

.calendar-item p {
	color: var(--muted);
}

.cta {
	background-size: cover;
	background-position: center;
}

.cta-box {
	text-align: center;
	padding: 38px;
	border-radius: var(--radius);
	background: rgba(0, 0, 0, 0.42);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.sponsors {
	overflow: hidden;
}

.sponsors-track {
	display: flex;
	gap: 14px;
	width: max-content;
	animation: sponsors-slide 22s linear infinite;
}

.sponsor-card {
	width: 170px;
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.sponsor-logo {
	height: 56px;
	border-radius: 10px;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	background-color: rgba(255, 255, 255, 0.07);
	margin-bottom: 10px;
}

.main-footer {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	margin-top: 20px;
	padding: 30px 0;
	background: rgba(6, 12, 20, 0.8);
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr repeat(4, 1fr);
	gap: 16px;
}

.footer-grid h4,
.footer-grid h5 {
	margin: 0 0 8px;
}

.footer-grid p,
.footer-grid a {
	display: block;
	margin: 0 0 8px;
	color: var(--muted);
}

.footer-socials {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.footer-socials a {
	padding: 5px 10px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	font-size: 12px;
}

@keyframes sponsors-slide {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-50%);
	}
}

@keyframes hero-progress {
	from {
		width: 0%;
	}

	to {
		width: 100%;
	}
}

@keyframes rise-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 1100px) {
	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		display: none;
	}

	.mobile-nav.is-open {
		display: block;
	}

	.header-tools {
		display: none;
	}

	.news-layout,
	.calendar-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 740px) {
	.header-inner {
		flex-wrap: wrap;
		padding: 10px 0;
	}

	.header-tools {
		width: 100%;
		justify-content: space-between;
	}

	.footer-grid {
		grid-template-columns: 1fr;
	}

	.search-form {
		flex-direction: column;
		align-items: stretch;
	}

	.next-match {
		grid-template-columns: 1fr;
	}

	.news-card {
		grid-template-columns: 1fr;
	}

	.news-card-image {
		min-height: 140px;
	}
}
