@font-face {
	font-family: 'telegraf regular';
	src: url("../fonts/Telegraf_Font_Family/Telegraf_Regular_400.b361ce7dfa2b.ttf") format('truetype');
}

@font-face {
	font-family: 'telegraf bold';
	src: url("../fonts/Telegraf_Font_Family/Telegraf_UltraBold_800.1c4d48d73f5c.ttf") format('truetype');
}

@font-face {
	font-family: 'league spartan';
	src: url("../fonts/League_Spartan/LeagueSpartan-VariableFont_wght.74e0325138e0.ttf") format('truetype');
}

@font-face {
	font-family: 'bebas neue';
	src: url("../fonts/Bebas_Neue/BebasNeue-Regular.b5685f7fcc0b.woff2") format('woff2');
	font-weight: 400;
}

@font-face {
	font-family: 'bebas neue condensed';
	src: url("../fonts/Bebas_Neue/BebasNeue-Condensed.75e6bc832f59.woff2") format('woff2');
	font-weight: 400;
}

:root {
	--plyr-color-main: var(--color-primary);
	--plyr-color-main-hover: var(--color-secondary);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'telegraf regular';
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

main {
	flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'bebas neue';
}

/* Navbar */
#main-navbar .nav-link {
	padding: 0 1rem;
	font-family: 'bebas neue condensed', sans-serif;
	font-stretch: ultra-condensed;
	font-weight: 400;
	font-size: 1.5rem;
	font-style: normal;
	color: #000000;
	transition: background-color 0.3s ease;
}

#main-navbar .nav-link.active {
	background-color: var(--color-primary);
	color: var(--color-primary-content);
}

#main-navbar .nav-link:hover {
	background-color: var(--color-primary);
}

/* Dropdown navbar */
#main-navbar .dropdown-menu {
    background-color: #000000;
	margin: 0;
}

#main-navbar .dropdown-menu li {
	border-bottom: 1px solid #27272a;
}

#main-navbar .dropdown-menu li:last-child {
	border-bottom: none;
}

#main-navbar .dropdown-menu li a,
#main-navbar .dropdown-menu li button {
    margin: 0.5rem;
	font-family: 'bebas neue condensed', sans-serif;
	font-stretch: ultra-condensed;
	font-weight: 400;
	font-size: 1.5rem;
	font-style: normal;
	color: #ffffff;
	transition: color 0.3s ease, background-color 0.3s ease;
}

#main-navbar .dropdown-menu li a:hover,
#main-navbar .dropdown-menu li button:hover {
	color: var(--color-primary);
}

/* Menú lateral móvil desde la derecha */
.mobile-menu {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	z-index: 100;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mobile-menu-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0);
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.mobile-menu-panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 320px;
	max-width: 80vw;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
}

#mobile-menu-drawer:checked ~ .mobile-menu {
	pointer-events: auto;
	opacity: 1;
}

#mobile-menu-drawer:checked ~ .mobile-menu .mobile-menu-overlay {
	background-color: rgba(0, 0, 0, 0.5);
}

#mobile-menu-drawer:checked ~ .mobile-menu .mobile-menu-panel {
	transform: translateX(0);
}

.mobile-menu ul {
	width: 100%;
}

.mobile-menu li a, .mobile-menu summary {
	border-bottom: 1px solid #27272a;
}

.mobile-menu .active {
	color: var(--color-primary);
}


/* Estilos de encabezados */
.web-heading {
	font-family: 'league spartan';
	font-weight: 700;
	line-height: 1.2em;
	font-size: 3.5rem;
	text-transform: uppercase;
}

.web-heading .inverted {
	color: #ffffff;
}

.web-heading mark {
	background-color: #DDB355;
	color: #000000;
	padding: 5px 5px 0px 5px;
}

.web-heading mark.alt {
	background-color: #000000;
	color: #FFFFFF;
	padding: 5px 5px 0px 5px;
}

.web-text {
	font-size: 1.25rem;
	line-height: 1.35;
}

.web-btn {
	padding: 1.75rem 1rem;
	font-family: 'bebas neue', sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	border: 0;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.btn.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary-content);
	border: 0;
}
.btn.btn-primary:hover {
    background-color: var(--color-secondary-content);
    color: var(--color-primary-content);
}
.btn.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-secondary-content);
	border: 0;
}
.btn.btn-secondary:hover {
    background-color: var(--color-primary);
	color: var(--color-secondary-content);
}

/* Estilos genéricos de páginas y blog */
.web p {
	margin-bottom: 1.5rem;
}

.web a:not(.btn):not(.link):not(.badge) {
	position: relative;
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

.web a:not(.btn):not(.link):not(.badge)::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform-origin: right center;
	transform: scaleX(0);
	transition: transform 0.3s ease, background-color 0.3s ease;
}

.web a:not(.btn):not(.link):not(.badge):hover {
	color: color-mix(in oklab, var(--color-primary) 80%, #000);
}

.web a:not(.btn):not(.link):not(.badge):hover::after {
	transform-origin: left center;
	transform: scaleX(1);
	background: currentColor;
}

.web h1,
.web h2,
.web h3,
.web h4,
.web h5,
.web h6 {
	font-family: 'league spartan', sans-serif;
	font-weight: 600;
	margin-top: 1.2rem;
	margin-bottom: 1rem;
	line-height: 1.2;
}
.web h1 {
	font-size: 3.5rem;
}
.web h2 {
	font-size: 2.5rem;
}
.web h3 {
	font-size: 2rem;
}
.web h4 {
	font-size: 1.75rem;
}
.web h5 {
	font-size: 1.4rem;
}
.web h6 {
	font-size: 1.25rem;
}

.web ul,
.web ol {
	list-style: inside;
	margin-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.web ul li,
.web ol li {
	margin-bottom: 0.5rem;
}

.web details {
	font-size: 1rem;
	background-color: var(--color-base-100);
	padding-bottom: 1rem;
}

.web details summary {
    cursor: pointer;
    background-color: var(--color-base-200);
    color: var(--color-primary-content);
    padding: 0.5rem 1rem;
    list-style: none;
    position: relative;
}

.web details summary::after {
    content: ">";
    position: absolute;
    right: 1rem;
	font-weight: bold;
	font-size: 1.2rem;
	font-family: monospace;
    transition: transform 0.2s ease;
}

.web details[open] summary::after {
    transform: rotate(90deg);
}

.web details table {
	margin: 1rem;
	width: auto;
}

.web table td {
	border: 1px solid var(--color-base-300);
	padding: 0.5rem 1rem;
	text-align: left;
}

.web table tr:first-child {
	font-weight: bold;
	background-color: var(--color-base-200);
}

.web blockquote {
	border-left: 4px solid var(--color-primary-content);
	padding-left: 1rem;
	margin: 1rem 0;
}

.web blockquote p {
	margin-bottom: 0.5rem;
}

/* TinyMCE */
.tox-promotion-link {
	display: none !important;
}

.tox-statusbar__branding {
	display: none !important;
}

.rotate-fade {
	transform-origin: center;
	opacity: 0;
	transform: rotate(180deg);
}

.rotate-fade.is-animated {
	animation: rotate-fade 2s ease 1 forwards;
}

/* Listas anidadas */
/* Capítulos: 1, 2, 3 */
.chapter {
  counter-reset: chapter;
}

.chapter > li {
  counter-increment: chapter;
}

.chapter > li::marker {
  content: counter(chapter) ". ";
}

/* Subapartados: 1.1, 1.2 */
.section {
  counter-reset: section;
}

.section > li {
  counter-increment: section;
}

.section > li::marker {
  content: counter(chapter) "." counter(section) " ";
}

/* Responsive */
@media (max-width: 640px) {
	.web-heading {
		font-size: 2.5rem;
	}
	.web-text {
		font-size: 1.1rem;
	}
	.web-btn {
		padding: 1.5rem 1rem;
		font-size: 1.1rem;
		letter-spacing: 0.3em;
	}
}

/* Animaciones */

/* Si se añaden más animaciones, añadirlas también al archivo `animate-on-scroll.js` */
@keyframes rotate-fade {
	from {
		transform: rotate(180deg);
		opacity: 0;
	}
	to {
		transform: rotate(0deg);
		opacity: 1;
	}
}